/* ============================================================
   RÉVISE MATHS LYCÉE — Feuille de style principale
   Mobile-first, KaTeX compatible
   Refonte design 16/07/2026 — Design System Express (site-type FORMATION) :
   palette bleu académique + ambre + vert, Sora/Inter, grille de points
   "papier millimétré" en filigrane, cartes à accents colorés, gamification
   façon Duolingo (barres de progression, badges série).
   Anciens noms de variables CONSERVÉS (valeurs mises à jour) pour ne rien
   casser sur les pages qui référencent var(--color-*) dans leur <style>.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* --- Palette (Design System Express, site FORMATION) --- */
  --color-primary: #2451B8;        /* bleu académique — confiance/sérieux */
  --color-primary-dark: #173A8C;
  --color-primary-light: #EAF0FB;  /* fond des badges/pills */
  --color-accent: #F5A623;         /* ambre — motivation, gamification */
  --color-accent-dark: #D9891D;
  --color-cta: #22C55E;            /* vert — validation, boutons d'action */
  --color-cta-dark: #16A34A;
  --color-success: #22C55E;
  --color-error: #ef4444;          /* uniquement états d'erreur (champ) */
  --color-bg: #F7F9FC;
  --color-bg-alt: #EEF3FC;         /* bandes alternées (refonte structurelle 16/07/2026 v2) */
  --color-surface: #ffffff;
  --color-border: #E2E8F0;
  --color-text: #14171F;
  --color-text-muted: #5B6472;
  --color-youtube: #ff0000;        /* réservé aux VRAIS liens YouTube */
  --color-navy-deep: #14213D;      /* navy dramatique — bloc formations (design v2) */

  /* --- Alias explicites du design system (mêmes valeurs, nommage guide) --- */
  --bg: var(--color-bg);
  --bg-alt: var(--color-bg-alt);
  --surface: var(--color-surface);
  --text: var(--color-text);
  --text-muted: var(--color-text-muted);
  --primary: var(--color-primary);
  --primary-dk: var(--color-primary-dark);
  --success: var(--color-success);
  --accent: var(--color-accent);
  --border: var(--color-border);

  /* --- Échelle d'espacement 8pt --- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;

  /* --- Radius tokens (site FORMATION = plus sobre que les boutiques : pas de pill sur les boutons) --- */
  --radius: 10px;        /* boutons */
  --radius-card: 12px;   /* cartes (module, avis, exercice) */
  --radius-lg: 16px;     /* grands blocs (hero, bandeaux, offre) */
  --radius-pill: 999px;  /* réservé aux badges / séries / onglets actifs */

  --shadow: 0 1px 3px rgba(20,23,31,.06);
  --shadow-lg: 0 14px 34px rgba(20,40,80,.14);
  --shadow-hover: 0 16px 32px rgba(36,81,184,.18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Sora', var(--font);
  --max-width: 940px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(1100px 480px at 100% -10%, rgba(36,81,184,.07), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(245,166,35,.06), transparent 55%),
    var(--color-bg);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo { font-family: var(--font-heading); letter-spacing: -.01em; }

/* Accessibilité — focus clavier toujours visible (ajout 16/07/2026) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- HEADER ---- */
/* Dégradé bleu académique + grille de points "papier millimétré" en filigrane
   (motif mathématique léger, 100% CSS, zéro image lourde). */
header {
  background:
    radial-gradient(circle, rgba(255,255,255,.16) 1px, transparent 1.4px) 0 0 / 20px 20px,
    linear-gradient(120deg, #2451B8 0%, #2f5fce 55%, #173A8C 100%);
  color: #fff;
  padding: 15px 20px;
  box-shadow: 0 6px 22px rgba(23,58,140,.24);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logo { font-size: 1.22rem; font-weight: 800; text-decoration: none; color: #fff; letter-spacing: -.02em; }
.logo span { color: var(--color-accent); }
.nav-yt {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-yt a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: .86rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.22);
  transition: background .18s, transform .15s, border-color .18s;
}
.nav-yt a:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
/* Lien officiel de la CHAÎNE YouTube : rouge assumé (c'est la marque) */
.nav-yt a[href*="youtube.com"] { background: var(--color-youtube); border-color: transparent; }
.nav-yt a[href*="youtube.com"]:hover { background: #e60000; }
/* Liens internes mis en avant : pill ambre chaleureux (plus de rouge) */
.nav-yt a.nav-pack-link { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); }
.nav-yt a.nav-pack-link:hover { background: rgba(255,255,255,.30); }
/* Onglet de la page en cours : pill ambre plein pour reperer ou l'on se trouve */
.nav-yt a.nav-pack-link.active { background:var(--color-accent); color:#173A8C; border-color:var(--color-accent); font-weight:800; box-shadow:0 2px 8px rgba(245,166,35,.45); }
.nav-yt a.nav-pack-link.active:hover { background:#e0951c; transform:none; color:#173A8C; }

/* ---- MAIN CONTAINER ---- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 16px 48px;
}

/* ---- HERO ---- */
/* Filigrane "papier millimétré" (grille de points) + halo bleu asymétrique en coin haut-droit :
   motif mathématique léger, 100% CSS/SVG data-uri, aucune image lourde. */
.hero {
  position: relative;
  background:
    radial-gradient(680px 300px at 88% -20%, rgba(36,81,184,.10), transparent 65%),
    radial-gradient(circle, rgba(36,81,184,.07) 1px, transparent 1.4px) 0 0 / 24px 24px,
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.2rem, 1.3rem + 4vw, 3.9rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 14px;
  line-height: 1.08;
}
.hero h1 .hl {
  background-image: linear-gradient(120deg, rgba(245,166,35,.42), rgba(245,166,35,.42));
  background-repeat: no-repeat;
  background-size: 100% 38%;
  background-position: 0 90%;
  padding: 0 4px;
}
.hero p {
  color: var(--color-text-muted);
  font-size: 1.06rem;
  max-width: 640px;
  margin: 0 auto 20px;
}
.badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.badge {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 5px 15px;
  font-size: .84rem;
  font-weight: 600;
  border: 1px solid #e0e3fb;
}
.cta-yt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-youtube);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255,0,0,.18);
  transition: transform .15s, box-shadow .2s;
}
.cta-yt:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255,0,0,.26); }

.hero-proof {
  font-size: .92rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: -6px auto 16px;
}
.hero-urgency {
  display: inline-block;
  background: #fff7ed;
  color: var(--color-accent-dark);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: .9rem;
  font-weight: 700;
  margin: 0 auto 18px;
}
.cta-primary-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-dark));
  color: #fff;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  min-height: 48px;
  margin: 0 8px 12px;
  box-shadow: 0 10px 24px rgba(34,197,94,.28);
  transition: transform .15s, box-shadow .2s;
}
.cta-primary-email:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(34,197,94,.36); }

/* ---- CAPTURE EMAIL ---- */
.email-capture {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #e0e3fb;
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.email-capture h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  color: var(--color-text);
  margin-bottom: 10px;
  border: none;
  padding: 0;
}
.email-capture > p {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 20px;
}
.capture-form { max-width: 560px; margin: 0 auto; }
.capture-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.capture-input {
  flex: 1 1 240px;
  min-width: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 13px 15px;
  font-size: 1rem;
  font-family: var(--font);
  background: #fff;
  min-height: 48px;
  transition: border-color .18s, box-shadow .18s;
}
.capture-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(36,81,184,.12); }
.btn-capture {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 8px 18px rgba(34,197,94,.24);
  transition: transform .15s, box-shadow .2s;
  font-family: var(--font);
}
.btn-capture:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(34,197,94,.32); }
.btn-capture:disabled { opacity: .7; cursor: default; transform: none; }
.capture-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: .82rem;
  color: var(--color-text-muted);
  margin: 14px auto 0;
  max-width: 520px;
}
.capture-consent input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--color-primary); }
.capture-consent a { color: var(--color-primary); }
.capture-note {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}
.capture-success {
  display: none;
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 600;
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- MINI CTA CONTEXTUEL (pages module) ---- */
.module-email-cta {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #e0e3fb;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-top: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.module-email-cta p { color: var(--color-text-muted); margin-bottom: 14px; font-size: .95rem; }
.module-email-cta strong { color: var(--color-text); }
.module-email-cta .capture-row { margin-bottom: 0; }

/* ---- SECTION GÉNÉRIQUE + GRILLE DE CARTES ---- */
.modules-section { margin-bottom: 6px; }
.modules-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
  text-align: center;
}
.modules-section h2::after {
  content: "";
  display: block;
  width: 54px; height: 4px;
  margin: 10px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
@media (max-width: 860px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}
.module-card {
  --acc: var(--color-primary);
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--acc);
  overflow: hidden;
  min-height: 44px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module-card:hover, .module-card:focus-visible {
  border-color: var(--color-border);
  border-top-color: var(--acc);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.module-card .card-icon {
  font-size: 1.7rem;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--acc) 12%, white);
  border-radius: 50%;
  transition: transform .2s ease;
}
.module-card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.module-card h3 { font-size: 1.12rem; font-weight: 800; color: var(--color-text); }
.module-card p {
  font-size: .9rem;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.card-level {
  display: inline-block;
  background: color-mix(in srgb, var(--acc) 12%, white);
  color: var(--acc);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: .76rem;
  font-weight: 700;
}
.card-arrow {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--acc);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.module-card:hover .card-arrow, .module-card:focus-visible .card-arrow { transform: translateX(6px); }

/* Mobile : les tuiles deviennent une rangée d'app-tiles a glissement horizontal
   fluide (meme pattern que .quick-launch), plus adapte au pouce que 5-9 cartes
   empilees verticalement. Design v2 structurel, 16/07/2026. */
@media (max-width: 600px) {
  .module-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 2px 26px 12px 2px;
    margin: 0 -2px 26px;
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
  }
  .module-grid::-webkit-scrollbar { display: none; }
  .module-card { scroll-snap-align: start; flex: 0 0 76%; min-width: 232px; }
}
/* Accents distincts par outil — touche "cartes colorées", ajout 16/07/2026.
   Utilisation : <a class="module-card acc-b"> ... (classe ADDITIVE, ne remplace rien). */
.module-card.acc-a { --acc: #2451B8; } /* bleu primaire */
.module-card.acc-b { --acc: #F5A623; } /* ambre */
.module-card.acc-c { --acc: #22C55E; } /* vert */
.module-card.acc-d { --acc: #A855F7; } /* violet */
.module-card.acc-e { --acc: #EC4899; } /* rose */
.module-card.acc-f { --acc: #0EA5E9; } /* bleu ciel */

/* ---- PAGE EXERCICE ---- */
.exercise-page header + main { padding-top: 26px; }

.ex-header {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ex-header .back-link {
  font-size: .88rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ex-header .back-link:hover { text-decoration: underline; }
.ex-header h1 { font-size: 1.55rem; font-weight: 800; color: var(--color-text); }
.ex-header .subtitle { color: var(--color-text-muted); font-size: .95rem; }

/* ---- EXERCISE CARD ---- */
.ex-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.enonce-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-primary);
  margin-bottom: 6px;
}
#enonce {
  font-size: 1.05rem;
  line-height: 1.7;
  min-height: 48px;
}

/* ---- CHAMPS DE RÉPONSE ---- */
.answer-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.answer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.answer-row label { font-size: .95rem; white-space: nowrap; }
.answer-input {
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 1rem;
  width: 140px;
  transition: border-color .18s, box-shadow .18s;
  font-family: var(--font);
}
.answer-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(36,81,184,.12); }
.answer-input.correct { border-color: var(--color-success); background: #ecfdf5; }
.answer-input.incorrect { border-color: var(--color-error); background: #fef2f2; }

/* ---- BOUTONS ---- */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .2s, background .2s;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #2451B8, #3D63C4); color: #fff; box-shadow: 0 8px 18px rgba(36,81,184,.26); }
.btn-primary:hover { box-shadow: 0 12px 24px rgba(36,81,184,.34); }
.btn-success { background: linear-gradient(135deg, #22C55E, #16A34A); color: #fff; box-shadow: 0 8px 18px rgba(34,197,94,.24); }
.btn-success:hover { box-shadow: 0 12px 24px rgba(34,197,94,.32); }
.btn-outline {
  background: #fff;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-new { background: #fff7ed; color: var(--color-accent-dark); border: 2px solid #fed7aa; }
.btn-new:hover { background: #ffedd5; }

/* ---- FEEDBACK ---- */
.feedback-box {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .95rem;
  display: none;
  gap: 8px;
  align-items: flex-start;
}
.feedback-box.show { display: flex; }
.feedback-box.ok { background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46; }
.feedback-box.ko { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }
.feedback-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ---- SOLUTION ---- */
.solution-box {
  background: #f5f3ff;
  border: 1.5px solid #ddd6fe;
  border-radius: var(--radius);
  padding: 18px 16px;
  display: none;
  /* Empêche le débordement horizontal (formules KaTeX larges) */
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}
.solution-box.show { display: block; }
.solution-box h4 {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.solution-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .95rem;
  line-height: 1.7;
  /* min-width:0 évite le bug flex où les enfants ne se contractent pas */
  min-width: 0;
}
.solution-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: baseline;
  /* min-width:0 critique en grid : force la colonne 1fr à respecter sa limite */
  min-width: 0;
}
/* La cellule de texte dans le grid doit aussi pouvoir se contracter */
.solution-step > div:last-child {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.step-num {
  background: linear-gradient(135deg, #2451B8, #3D63C4);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- CTA CHAÎNE ---- */
.cta-channel {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #e0e3fb;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
  margin-top: 28px;
  box-shadow: var(--shadow);
}
.cta-channel p { color: var(--color-text-muted); margin-bottom: 14px; font-size: .95rem; }
.cta-channel strong { color: var(--color-text); }

/* ---- BLOC OFFRE PAYANTE ---- */
.offer-block {
  position: relative;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  margin-top: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.offer-badge {
  display: inline-block;
  background: linear-gradient(135deg, #F5A623, #D9891D);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 5px 17px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(245,166,35,.28);
}
.offer-block h2 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 10px;
  border: none;
  padding: 0;
}
.offer-pitch {
  color: var(--color-text);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 20px;
}
.offer-list {
  list-style: none;
  max-width: 430px;
  margin: 0 auto 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.offer-list li {
  font-size: .97rem;
  color: var(--color-text);
}
.offer-price {
  margin-bottom: 22px;
}
.price-amount {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.price-detail {
  font-size: .85rem;
  color: var(--color-text-muted);
}
.btn-offer {
  display: inline-block;
  background: linear-gradient(135deg, #2451B8, #3D63C4);
  color: #fff;
  text-decoration: none;
  padding: 16px 38px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(36,81,184,.30);
  transition: transform .15s, box-shadow .2s;
  min-height: 52px;
  line-height: 1.2;
}
.btn-offer:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(36,81,184,.38);
}
.offer-note {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}

/* ---- SECTION AVIS (réutilisable) ---- */
.reviews-band { margin: 34px 0; }
.reviews-band h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}
.reviews-band .rev-sub { text-align: center; color: var(--color-text-muted); max-width: 600px; margin: 0 auto 22px; font-size: .96rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-card .stars { color: #F5A623; font-size: 1rem; letter-spacing: 1px; }
.review-card p { font-style: italic; color: var(--color-text); font-size: .95rem; line-height: 1.55; }
.review-card .who {
  display: flex; align-items: center; gap: 9px;
  margin-top: auto; font-size: .85rem; color: var(--color-text-muted); font-weight: 600;
}
.review-card .who .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .9rem;
  background: linear-gradient(135deg, #2451B8, #173A8C);
}

/* ---- FOOTER ---- */
footer {
  background: linear-gradient(120deg, #173A8C 0%, #0F2861 100%);
  color: rgba(255,255,255,.82);
  text-align: center;
  padding: 26px 16px;
  font-size: .88rem;
  margin-top: 44px;
}
footer a { color: #FBBF57; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---- KATEX OVERRIDES ---- */
/* overflow-x:auto permet de scroller les formules très larges DANS la boîte */
.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  /* évite que la formule pousse la boîte parente vers l'extérieur */
  padding-bottom: 4px;   /* laisse un peu d'espace pour la barre de scroll */
}
/* Permet aux formules inline de passer à la ligne si nécessaire */
.katex { font-size: 1.05em; white-space: normal; }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .header-inner { justify-content: center; }
  .hero { padding: 28px 18px; }
  .ex-card { padding: 20px 16px; }
  .solution-step { grid-template-columns: 24px 1fr; }
  .answer-input { width: 120px; }
}

/* --- Photos décoratives (Pexels, libres de droit — ajout 15/07/2026) --- */
.deco-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; margin: 28px auto; padding: 0 16px; }
.deco-strip figure { margin: 0; }
.deco-strip img { width: 100%; height: 190px; object-fit: cover; border-radius: 14px; box-shadow: 0 8px 26px rgba(20,40,80,.14); display: block; }
.deco-strip figcaption { font-size: .82rem; color: var(--color-text-muted, #64748b); text-align: center; margin-top: 7px; }
.deco-banner { display: block; width: 100%; max-width: 500px; height: auto; border-radius: 16px; box-shadow: 0 8px 26px rgba(20,40,80,.14); margin: 18px auto 22px; }
@media (max-width: 640px) {
  .deco-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .deco-strip img { height: 132px; }
  .deco-strip figure:last-child { display: none; }
  .deco-banner { max-width: 100%; }
}


/* Badge "ton prof" — confiance (ajout 15/07/2026) */
.prof-badge{display:flex;align-items:center;gap:16px;max-width:680px;margin:22px auto;padding:16px 20px;background:linear-gradient(135deg,#eef4ff,#f7fbff);border:1px solid #dbe7fb;border-radius:16px;box-shadow:0 8px 26px rgba(20,40,80,.10);}
.prof-badge img{width:84px;height:84px;border-radius:50%;object-fit:cover;flex:0 0 auto;box-shadow:0 4px 14px rgba(20,40,80,.18);}
.prof-badge .pb-txt{display:flex;flex-direction:column;gap:3px;}
.prof-badge .pb-txt strong{font-size:1.02rem;color:var(--color-primary,#1a56a0);}
.prof-badge .pb-txt span{font-size:.9rem;color:var(--color-text-muted,#475569);line-height:1.42;}
@media(max-width:560px){.prof-badge{flex-direction:column;text-align:center;gap:12px;padding:16px;}.prof-badge img{width:96px;height:96px;}}


/* ================================================================
   MENU DISCRET — refonte 15/07/2026
   Probleme corrige : la bande de menu (sticky) mangeait trop d'ecran
   (8 onglets qui debordaient sur 2-3 lignes = bande d'environ 157px,
   sur mobile ET sur ordinateur), et restait collee en haut au defilement.
   Solution (a TOUTES les tailles d'ecran) :
     1) les onglets sont ranges derriere un bouton hamburger -> bande fine
        (logo + ☰) + menu deroulant VERTICAL (aucun scroll horizontal) ;
     2) defilement vers le BAS = la bande se cache ; vers le HAUT = revient
        (classes .nav-hidden / .nav-compact posees par bos-nav-shrink.js).
   ================================================================ */
header {
  transition: transform .28s ease, padding .2s ease, box-shadow .2s ease;
  will-change: transform;
  padding: 11px 16px;
}
header.nav-hidden { transform: translateY(-100%); box-shadow: none; }
header.nav-compact { padding-top: 8px; padding-bottom: 8px; }

.header-inner {
  position: relative;             /* ancre le menu deroulant (hamburger) sous le bouton */
  max-width: 1180px;              /* elargi vs 940 pour que les onglets tiennent en 1 ligne sur ordi */
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 1.06rem; flex: 0 0 auto; white-space: nowrap; transition: font-size .2s ease; }

/* ===== DEFAUT (ordi + tablette) : PETITS onglets VISIBLES + masquage au scroll =====
   Fred prefere le menu visible (petits boutons) : l'eleve garde toujours un
   apercu du menu, et la bande se cache/reapparait au defilement vertical
   (classe .nav-hidden posee par bos-nav-shrink.js). Pas de hamburger tant que
   les onglets tiennent. */
.nav-burger { display: none; }   /* cache tant que les onglets rentrent */
.nav-yt {
  display: flex; flex-direction: row; align-items: center;
  flex-wrap: wrap; justify-content: flex-end; gap: 5px;
  position: static; width: auto; max-height: none; opacity: 1;
  overflow: visible; pointer-events: auto; background: none;
  box-shadow: none; padding: 0; border-radius: 0;
}
.nav-yt a { width: auto; justify-content: center; font-size: .74rem; padding: 5px 10px; white-space: nowrap; gap: 4px; }
.nav-yt a svg { width: 15px; height: 15px; }

/* ===== TROP D'ONGLETS POUR LA LARGEUR (telephone <=600px) : hamburger =====
   Quand les 8 onglets ne tiennent plus proprement, on les range derriere un
   bouton pour ne pas couvrir tout le haut de l'ecran. */
@media (max-width: 600px) {
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 42px; height: 36px; padding: 8px 9px; flex: 0 0 auto;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.30);
    border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-burger span { display: block; height: 2.5px; width: 100%; background: #fff; border-radius: 2px; transition: transform .22s ease, opacity .18s ease; }
  header.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  header.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  header.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-yt {
    position: absolute; top: calc(100% + 12px); right: 0; left: auto;
    width: min(340px, calc(100vw - 28px));
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; justify-content: flex-start; gap: 6px;
    background: linear-gradient(160deg, #2451B8 0%, #173A8C 100%);
    margin: 0; padding: 0 12px; z-index: 50;
    box-shadow: 0 18px 34px rgba(20,10,60,.34);
    border-radius: 16px;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .30s ease, opacity .2s ease, padding .30s ease;
  }
  header.menu-open .nav-yt {
    max-height: 78vh; overflow-y: auto; opacity: 1; pointer-events: auto;
    padding: 12px;
  }
  .nav-yt a { width: 100%; justify-content: flex-start; font-size: .96rem; padding: 13px 14px; min-height: 44px; }
  .nav-yt a svg { width: 18px; height: 18px; }
  header { padding: 9px 12px; }
  .logo { font-size: 1rem; }
}

/* ================================================================
   ACCÈS RAPIDE (chips horizontales) — pattern "stories" familier
   aux ados, ajouté 16/07/2026 à la demande de Fred : depuis la home,
   1 tap doit suffire pour lancer un quiz/une flashcard/un jeu, sans
   attendre d'avoir scrollé toute la page. Scroll horizontal avec un
   léger dégradé de fondu à droite pour signaler qu'on peut glisser.
   ================================================================ */
.quick-launch {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 28px 10px 2px;
  margin: 0 -2px 6px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
}
.quick-launch::-webkit-scrollbar { display: none; }
.quick-launch a {
  --acc: var(--color-primary);
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  background: color-mix(in srgb, var(--acc) 12%, white);
  color: var(--acc);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.quick-launch a .ql-ico { font-size: 1.15rem; line-height: 1; }
.quick-launch a:hover, .quick-launch a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--acc);
  box-shadow: 0 8px 18px rgba(20,40,80,.14);
}
.quick-launch a.acc-a { --acc: #2451B8; }
.quick-launch a.acc-b { --acc: #F5A623; }
.quick-launch a.acc-c { --acc: #22C55E; }
.quick-launch a.acc-d { --acc: #A855F7; }

/* ================================================================
   GAMIFICATION — barres de progression & badge série (façon Duolingo)
   Composants réutilisables (site FORMATION), ajout 16/07/2026.
   ================================================================ */
.bos-progress {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
  overflow: hidden;
}
.bos-progress > span, .bos-progress > i {
  display: block;
  height: 100%;
  background: var(--color-success);
  border-radius: var(--radius-pill);
  transition: width .4s ease;
}
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-accent);
  color: #173A8C; /* navy sur ambre : contraste AA (blanc sur ambre échoue en petit texte) */
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .78rem;
  line-height: 1.4;
}

/* Mise en valeur du compteur de série ("Série") en badge accent — additif,
   sans toucher au HTML/JS (id uniques déjà posés par chaque page). Les
   barres de progression elles-mêmes (qz/fc/g/cm) sont ajustées directement
   dans le <style> inline de chaque page (radius pill + couleurs du système).
   Texte en navy (pas blanc) : contraste AA sur fond ambre en petit texte gras. */
.g-stat:has(#calcul-streak), .g-stat:has(#deriv-streak), .g-stat:has(#gr-streak),
.cm-stat:has(#cm-streak) {
  background: var(--color-accent);
}
.g-stat:has(#calcul-streak) .n, .g-stat:has(#calcul-streak) .l,
.g-stat:has(#deriv-streak) .n, .g-stat:has(#deriv-streak) .l,
.g-stat:has(#gr-streak) .n, .g-stat:has(#gr-streak) .l,
.cm-stat:has(#cm-streak) .n, .cm-stat:has(#cm-streak) .l {
  color: #173A8C;
}

/* ---- Respiration verticale entre grandes sections sur mobile ---- */
@media (max-width: 600px) {
  main > section, main > .deco-strip, main > .prof-badge {
    margin-bottom: var(--space-8);
  }
  .hero .quick-launch { margin-bottom: var(--space-4); }
  .btn, .btn-offer, .cta-yt, .cta-primary-email { min-height: 44px; }
}

/* ================================================================
   DESIGN V2 STRUCTUREL — 16/07/2026 (refonte demandée : la v1 n'avait
   change que les tokens/couleurs, pas la structure). Palette et fontes
   du Design System Express CONSERVEES (bleu #2451B8 / ambre #F5A623 /
   vert #22C55E, Sora+Inter) — ce bloc ajoute la STRUCTURE : hero en
   split asymetrique avec cartes flottantes, bande de preuve chiffree,
   bloc sombre "formations" a bords diagonaux, tuiles app pour les
   modules, mini-heros colores par outil, footer en colonnes.
   ================================================================ */

/* ---- HERO — split asymetrique desktop / empile mobile ---- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* minmax(0,…) : sans lui, la piste gonfle a la largeur max-content d'un enfant (quick-launch) et deborde sur mobile */
  gap: 26px;
  align-items: center;
  text-align: center;
}
.hero-grid > * { min-width: 0; }
.hero-copy .quick-launch { max-width: 100%; }
.hero-visual {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}
.hero-visual .float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 7px 13px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .86rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  pointer-events: none;
}
.hero-visual .fc-1 { top: -4px; left: 2px; transform: rotate(-7deg); }
.hero-visual .fc-2 { bottom: 6px; right: -6px; color: var(--color-accent-dark); transform: rotate(5deg); }
.hero-visual .fc-3 {
  top: 44%; left: -10px; color: #16A34A; transform: rotate(-4deg);
  display: none;
}
@media (min-width: 900px) {
  .hero { text-align: left; padding: 52px 44px; }
  .hero-grid { grid-template-columns: 55fr 45fr; gap: 44px; text-align: left; }
  .hero .quick-launch, .hero .badge-list { justify-content: flex-start; }
  .hero p, .hero-proof { margin-left: 0; margin-right: 0; }
  .hero-visual { max-width: 380px; margin: 0; }
  .hero-visual .fc-3 { display: block; }
  .hero-visual .fc-1 { top: -10px; left: -18px; }
  .hero-visual .fc-2 { bottom: 14px; right: -20px; }
}

/* ---- BANDE DE PREUVE — 3 chiffres reels + mention programme officiel ---- */
.proof-band {
  /* 100vw inclut la barre de defilement -> ~8px de debordement horizontal ; 100% du conteneur suffit */
  width: 100%;
  border-radius: 14px;
  margin-bottom: 30px;
  padding: 26px 16px 22px;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.proof-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: clamp(22px, 7vw, 60px);
  flex-wrap: wrap;
}
.proof-stat { display: flex; flex-direction: column; align-items: center; }
.proof-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--color-primary);
  line-height: 1;
}
.proof-stat.acc-b .proof-num { color: var(--color-accent-dark); }
.proof-stat.acc-c .proof-num { color: #16A34A; }
.proof-label {
  font-size: .8rem;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.proof-tag { margin-top: 14px; font-size: .88rem; color: var(--color-text); font-weight: 700; }

/* ---- BLOC SOMBRE FORMATIONS — bords diagonaux (max 2 sur la page) ---- */
.formations-band {
  /* meme piege 100vw que proof-band : 100% du conteneur, sans debordement */
  width: 100%;
  margin-top: 54px;
  margin-bottom: 54px;
  padding: 70px 16px 76px;
  background:
    radial-gradient(760px 340px at 14% 0%, rgba(245,166,35,.14), transparent 62%),
    linear-gradient(135deg, var(--color-navy-deep) 0%, #173A8C 55%, #0F2861 100%);
  color: #fff;
  text-align: center;
  clip-path: polygon(0 34px, 100% 0, 100% calc(100% - 34px), 0 100%);
}
.formations-band-inner { max-width: 700px; margin: 0 auto; }
.formations-band .fb-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--radius-pill);
  padding: 5px 15px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.formations-band h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 12px; border: none; padding: 0; }
.formations-band p { color: #dbe7fb; max-width: 580px; margin: 0 auto 22px; line-height: 1.55; }
.formations-band .btn-formations {
  display: inline-block;
  background: var(--color-accent);
  color: #173A8C;
  text-decoration: none;
  font-weight: 900;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 1rem;
  min-height: 48px;
  box-sizing: border-box;
  line-height: 1.2;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 10px 24px rgba(245,166,35,.28);
}
.formations-band .btn-formations:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245,166,35,.36); }
@media (max-width: 600px) {
  .formations-band {
    padding: 50px 16px 54px;
    clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%);
  }
}

/* ---- MINI-HERO BANDEAU — pages outils (quiz/flashcards/jeux/calcul-mental)
   Bandeau plein-largeur degrade de la couleur d'accent de l'outil, pour
   que chaque outil ait sa propre identite visuelle des l'arrivee sur la
   page. Couleurs choisies + verifiees pour un contraste texte AA. ---- */
.tool-band {
  /* meme piege 100vw que proof-band (scrollbar = +8px de debordement) : 100% du conteneur */
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 22px;
  padding: 28px 16px 24px;
  text-align: center;
}
.tool-band-inner { max-width: var(--max-width); margin: 0 auto; }
.tool-band h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 0 0 6px; line-height: 1.2; }
.tool-band p { max-width: 560px; margin: 0 auto; font-size: .96rem; opacity: .92; }
.tool-band.acc-a { background: linear-gradient(120deg, #2451B8, #173A8C); color: #fff; }
.tool-band.acc-a h1 { color: #fff; }
.tool-band.acc-b { background: linear-gradient(120deg, #F5A623, #E8941A); color: #173A8C; }
.tool-band.acc-b h1 { color: #173A8C; }
.tool-band.acc-c { background: linear-gradient(120deg, #15803D, #14532D); color: #fff; }
.tool-band.acc-c h1 { color: #fff; }
.tool-band.acc-d { background: linear-gradient(120deg, #9333EA, #6D28D9); color: #fff; }
.tool-band.acc-d h1 { color: #fff; }

/* ---- FOOTER MODERNE — colonnes propres (page d'accueil) ---- */
footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 26px;
  text-align: left;
  padding-bottom: 22px;
}
footer .footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
footer .footer-col h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
  opacity: .85;
}
footer .footer-logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.08rem; color: #fff; margin-bottom: 2px; }
footer .footer-logo span { color: var(--color-accent); }
footer .footer-col a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .86rem;
  line-height: 1.5;
}
footer .footer-col a:hover { color: #fff; text-decoration: underline; }
footer .footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 16px;
  text-align: center;
}
footer .footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.7); margin: 4px 0; }
footer .footer-bottom a { color: #FBBF57; }
@media (max-width: 860px) {
  footer .footer-inner { grid-template-columns: 1fr 1fr; }
  footer .footer-col.footer-brand { grid-column: 1 / -1; text-align: center; align-items: center; }
}
@media (max-width: 480px) {
  footer .footer-inner { grid-template-columns: 1fr; text-align: center; }
  footer .footer-col { align-items: center; }
}
