/* ============================================================
   CNED_APP — Design System
   Charte graphique inspirée du tableau de bord CNED
   Playfair Display (titres) · Inter (texte)
   ============================================================ */

:root {
  /* ---- Couleurs ---- */
  --blue:        #3D5AFE;   /* bleu CNED principal */
  --blue-600:    #2E45D6;
  --blue-700:    #2438B0;
  --blue-soft:   #EEF1FF;   /* fond bleu très clair (item actif sidebar) */

  --bg:          #F8F9FD;   /* fond global */
  --surface:     #FFFFFF;
  --ink:         #1F2A44;   /* texte principal */
  --muted:       #6B7280;   /* texte secondaire */
  --border:      #E8ECF5;

  --green:       #00A86B;
  --green-soft:  #E9F8F1;
  --orange:      #FF8A00;
  --orange-soft: #FFF3E4;
  --purple:      #A000FF;
  --red:         #EF4444;
  --gold:        #F5A623;

  /* ---- Dégradés de progression ---- */
  --grad-blue:   linear-gradient(90deg, #5A54FF 0%, #A7D8E8 100%);
  --grad-green:  linear-gradient(90deg, #00A86B 0%, #A7E3CF 100%);
  --grad-warm:   linear-gradient(90deg, #FF8A00 0%, #A000FF 100%);
  --grad-banner: linear-gradient(120deg, #ECEBFF 0%, #EAF1FF 45%, #E7F6F0 100%);

  /* ---- Rayons / ombres ---- */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(31,42,68,.04);
  --shadow-sm: 0 2px 8px rgba(31,42,68,.05);
  --shadow:    0 8px 30px rgba(31,42,68,.07);
  --shadow-lg: 0 20px 60px rgba(31,42,68,.10);
  --shadow-blue: 0 10px 30px rgba(61,90,254,.28);

  /* ---- Typo ---- */
  --font-title: "Playfair Display", Georgia, serif;
  --font-body:  "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* atmosphère : halos doux en fond */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(61,90,254,.06), transparent 60%),
    radial-gradient(45vw 45vw at -5% 110%, rgba(0,168,107,.05), transparent 60%);
}

/* ---- Typo helpers ---- */
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; color: var(--ink); line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.serif { font-family: var(--font-title); }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: var(--r-pill);
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn i { font-size: .95em; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(61,90,254,.34); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #d7deee; }
.btn-soft { background: var(--blue-soft); color: var(--blue); }
.btn-soft:hover { background: #e3e8ff; transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================================
   HEADER public
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,249,253,.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-badge {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--blue); box-shadow: var(--shadow-blue);
}
.logo-badge img { width: 22px; height: 22px; }
.logo-name { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.logo-tag { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; margin-top: -2px; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu > li > a:not(.btn) {
  display: inline-block; padding: 9px 14px; border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 500; color: var(--muted); transition: .18s;
}
.nav-menu > li > a:not(.btn):hover { color: var(--ink); background: var(--surface); }
.nav-menu > li > a.active { color: var(--blue); background: var(--blue-soft); }
.nav-cta { margin-left: 8px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  border-radius: 11px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); }
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.menu-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2){ opacity: 0; }
.menu-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 86px 0; }
.section--tight { padding: 56px 0; }
.title-block { max-width: 680px; margin-bottom: 46px; }
.title-block.center { margin-left: auto; margin-right: auto; text-align: center; }
.title-block p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* ---- HERO ---- */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 500; color: var(--muted); box-shadow: var(--shadow-xs); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,168,107,.16); }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lead { font-size: 1.12rem; color: var(--muted); margin: 22px 0 30px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: var(--blue); }

/* ============================================================
   CARTES
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px;
}
.card-hover { transition: transform .22s ease, box-shadow .28s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ============================================================
   MOCKUP de tableau de bord (visuel hero)
   ============================================================ */
.mock {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #fcfdff; }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: #e2e7f2; }
.mock-bar .dots span:nth-child(1){ background:#ff6058; } .mock-bar .dots span:nth-child(2){ background:#ffbd2e; } .mock-bar .dots span:nth-child(3){ background:#28c840; }
.mock-bar .ttl { font-size: .78rem; color: var(--muted); margin-left: 6px; }
.mock-body { padding: 20px; display: grid; gap: 16px; }

.mock-welcome { background: var(--grad-banner); border-radius: var(--r); padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.mock-welcome .ava { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow-xs); }
.mock-welcome h4 { font-family: var(--font-title); font-size: 1.25rem; }
.mock-welcome small { color: var(--muted); font-size: .76rem; }

.mock-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.mock-stat { border-radius: var(--r); padding: 16px 14px; text-align: center; }
.mock-stat .v { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; }
.mock-stat .l { font-size: .68rem; color: var(--muted); margin-top: 2px; }
.mst-green { background: var(--green-soft); } .mst-green .v { color: var(--green); }
.mst-blue  { background: var(--blue-soft); }  .mst-blue .v  { color: var(--blue); }
.mst-mint  { background: #E9F8F1; }           .mst-mint .v  { color: var(--green); }
.mst-peach { background: var(--orange-soft); }.mst-peach .v { color: var(--orange); }

.mock-prog { display: grid; gap: 13px; }
.prog-row .top { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 6px; }
.prog-row .top .pct { color: var(--muted); }
.bar { height: 11px; border-radius: var(--r-pill); background: #eef1f7; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: var(--r-pill); }
.fill-blue  > i, .fill-blue  { background: var(--grad-blue); }
.fill-green > i, .fill-green { background: var(--grad-green); }
.fill-warm  > i, .fill-warm  { background: var(--grad-warm); }

/* ============================================================
   ÉTAPES (fonctionnement)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .28s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step .num { font-family: var(--font-title); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--blue); opacity: .22; }
.step .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 1.15rem; margin: 10px 0 16px; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--muted); }
.step::after { content: ""; position: absolute; top: 50%; right: -14px; width: 12px; height: 12px; border-top: 2px solid var(--border); border-right: 2px solid var(--border); transform: rotate(45deg) translateY(-50%); }
.step:last-child::after { display: none; }

/* ============================================================
   BLOC SÉCURITÉ
   ============================================================ */
.sec-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.sec-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.sec-item .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 14px; }
.sec-item h4 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.sec-item p { font-size: .86rem; color: var(--muted); }
.ic-blue { background: var(--blue-soft); color: var(--blue); }
.ic-green { background: var(--green-soft); color: var(--green); }
.ic-orange { background: var(--orange-soft); color: var(--orange); }
.ic-purple { background: #F3E8FF; color: var(--purple); }

/* ============================================================
   PAGE ACCÈS (saisie du code)
   ============================================================ */
.access-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 50px 24px; }
.access-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 40px 36px; text-align: center; }
.access-card .lock { width: 66px; height: 66px; border-radius: 18px; background: var(--grad-banner); display: grid; place-items: center; margin: 0 auto 22px; font-size: 1.6rem; color: var(--blue); }
.access-card h1 { font-size: 1.8rem; margin-bottom: 8px; }
.access-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }

.code-input {
  width: 100%; text-align: center; font-family: "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .18em; text-transform: uppercase; font-size: 1.15rem; font-weight: 600;
  padding: 16px 18px; border: 1.5px solid var(--border); border-radius: var(--r);
  background: var(--bg); color: var(--ink); transition: .18s;
}
.code-input::placeholder { letter-spacing: .12em; color: #b8c0d4; font-weight: 500; }
.code-input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(61,90,254,.12); }

.form-msg { margin-top: 16px; font-size: .9rem; border-radius: var(--r-sm); padding: 12px 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.err { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.form-msg.ok  { background: var(--green-soft); color: #047857; border: 1px solid #A7F3D0; }

.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: inherit; font-size: .94rem; color: var(--ink); background: var(--bg); transition: .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(61,90,254,.1);
}
.field textarea { resize: vertical; min-height: 92px; }

/* ============================================================
   FORMULAIRE DE DEMANDE
   ============================================================ */
.form-page { padding: 56px 0 80px; }
.form-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.form-head .lock { width: 64px; height: 64px; border-radius: 18px; background: var(--grad-banner); display: grid; place-items: center; margin: 0 auto 20px; font-size: 1.5rem; color: var(--blue); }
.form-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.form-head p { color: var(--muted); font-size: 1.02rem; }

.form-card { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 38px 40px; }

.form-section { margin-bottom: 30px; }
.form-section:last-of-type { margin-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-section-title .n { width: 24px; height: 24px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: .78rem; font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field .req { color: var(--blue); margin-left: 2px; }
.field .err-line { display: none; color: #B91C1C; font-size: .8rem; margin-top: 6px; }
.field.has-error input, .field.has-error textarea { border-color: #FCA5A5; background: #FEF2F2; }
.field.has-error .err-line { display: block; }

/* Cases légales */
.legal-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; }
.check { display: flex; gap: 13px; align-items: flex-start; padding: 9px 0; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { flex-shrink: 0; width: 22px; height: 22px; border: 1.5px solid #cbd3e6; border-radius: 7px; background: #fff; display: grid; place-items: center; transition: .15s; margin-top: 1px; }
.check .box i { color: #fff; font-size: .72rem; opacity: 0; transform: scale(.5); transition: .15s; }
.check input:checked + .box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .box i { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(61,90,254,.18); }
.check .txt { font-size: .92rem; line-height: 1.5; }
.check .txt a { color: var(--blue); font-weight: 600; }
.check.has-error .box { border-color: #FCA5A5; background: #FEF2F2; }

/* Captcha (Cloudflare Turnstile) */
.captcha-wrap { margin: 24px 0 4px; min-height: 66px; display: flex; justify-content: center; }
.captcha-placeholder { width: 300px; height: 65px; border: 1px dashed var(--border); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted); font-size: .82rem; background: var(--bg); }

/* Succès après envoi */
.form-success { max-width: 560px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 48px 40px; }
.form-success .ic { width: 76px; height: 76px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 22px; }
.form-success h2 { font-size: 1.9rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 640px) {
  .form-card { padding: 28px 22px; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGES LÉGALES (article)
   ============================================================ */
.legal { max-width: 820px; margin: 0 auto; }
.legal-head { text-align: center; margin-bottom: 40px; }
.legal-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-head p { color: var(--muted); margin-top: 10px; }
.legal-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 40px 44px; }
.legal-body h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin: 22px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink); font-size: .96rem; line-height: 1.8; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { list-style: disc; margin: 0 0 16px 22px; }
.legal-body li { margin-bottom: 7px; }
.legal-body a { color: var(--blue); font-weight: 500; }
.legal-note { background: var(--blue-soft); border-radius: var(--r-sm); padding: 14px 18px; font-size: .86rem; color: var(--ink); margin-bottom: 24px; }
.legal-meta { color: var(--muted); font-size: .85rem; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ============================================================
   404
   ============================================================ */
.err-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 50px 24px; text-align: center; }
.err-code { font-family: var(--font-title); font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; line-height: 1; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
   ESPACE UTILISATEUR (dashboard connecté)
   ============================================================ */
.dash-banner { background: var(--grad-banner); border-radius: var(--r-lg); padding: 26px 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-banner .ava { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: var(--shadow-xs); }
.dash-banner h1 { font-size: 1.8rem; }
.dash-banner .chips { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: .86rem; }
.dash-banner .chips span { display: inline-flex; align-items: center; gap: 6px; }

.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.dash-card-h { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin-bottom: 16px; }
.dash-card-h .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: .9rem; }

.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; }
.status-pill.ok { background: var(--green-soft); color: var(--green); }
.status-pill.off { background: #FEF2F2; color: #B91C1C; }

.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px; }
.dl-row:last-child { margin-bottom: 0; }
.dl-row .os { display: flex; align-items: center; gap: 12px; }
.dl-row .os .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: var(--blue-soft); color: var(--blue); }

.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 16px 4px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.tl-item .ev { font-size: .92rem; font-weight: 500; }
.tl-item .dt { font-size: .8rem; color: var(--muted); }

.info-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.info-line:last-child { border-bottom: none; }
.info-line .k { color: var(--muted); }
.info-line .v { font-weight: 500; }

@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 14px; max-width: 340px; }
.footer h5 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { font-size: .92rem; color: var(--ink); transition: .15s; }
.footer ul a:hover { color: var(--blue); }
.footer-note { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.footer-note i { color: var(--blue); margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--blue); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step::after { display: none; }
  .sec-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 4px; background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 24px 22px;
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu .nav-cta { margin: 6px 0 0; }
  .section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .mock-stats { grid-template-columns: repeat(2,1fr); }
  .steps, .sec-grid, .footer-grid { grid-template-columns: 1fr; }
  .access-card { padding: 32px 24px; }
}
