:root {
    --ink: #12213f;
    --ink-soft: #1c3157;
    --parchment: #f7f1e3;
    --parchment-dim: #efe6d1;
    --paper-line: #ddceac;
    --gold: #c79a3e;
    --gold-deep: #a97f2e;
    --brass: #9c5a34;
    --slate: #5c6478;
    --ink-text: #1a2438;
    --card-bg: #fffdf8;
    --shadow: 0 18px 40px -22px rgba(18, 33, 63, 0.35);
    --focus: #2f6fed;
    /* fixed brand panel colors: the navy/parchment header, footer and CTA
       band are the HeroLearn brand mark itself, not theme-adaptive text —
       they stay constant across light/dark so the logo lockups always sit
       on their intended navy ground. */
    --brand: #12213f;
    --on-brand: #f7f1e3;
    --on-brand-muted: rgba(247, 241, 227, 0.78);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ink: #f7f1e3;
      --ink-soft: #d8cba3;
      --parchment: #0b111f;
      --parchment-dim: #0f1729;
      --paper-line: #2a3654;
      --gold: #dcb257;
      --gold-deep: #efc873;
      --brass: #c3703f;
      --slate: #9aa3bf;
      --ink-text: #eee7d3;
      --card-bg: #131d33;
      --shadow: 0 18px 46px -20px rgba(0, 0, 0, 0.55);
      --focus: #7fb0ff;
    }
  }

  :root[data-theme="dark"] {
    --ink: #f7f1e3;
    --ink-soft: #d8cba3;
    --parchment: #0b111f;
    --parchment-dim: #0f1729;
    --paper-line: #2a3654;
    --gold: #dcb257;
    --gold-deep: #efc873;
    --brass: #c3703f;
    --slate: #9aa3bf;
    --ink-text: #eee7d3;
    --card-bg: #131d33;
    --shadow: 0 18px 46px -20px rgba(0, 0, 0, 0.55);
    --focus: #7fb0ff;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--parchment);
    color: var(--ink-text);
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 { font-family: "Fraunces", Georgia, "Times New Roman", serif; text-wrap: balance; margin: 0; }

  .eyebrow {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--brass);
    font-weight: 600;
  }

  a { color: inherit; }
  img { max-width: 100%; display: block; }

  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

  :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

  /* ---------- HEADER ---------- */
  header.site {
    position: sticky; top: 0; z-index: 50;
    background: var(--brand);
    border-bottom: 1px solid rgba(199, 154, 62, 0.35);
  }
  .nav-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 12px 24px; max-width: 1180px; margin: 0 auto;
  }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .brand img { height: 40px; width: auto; }
  .brand span {
    font-family: "Fraunces", serif; font-size: 1.28rem; font-weight: 600;
    color: var(--on-brand); letter-spacing: 0.01em;
  }
  .brand span em { color: var(--gold); font-style: normal; }

  nav.primary { display: flex; align-items: center; gap: 28px; }
  nav.primary a.navlink {
    text-decoration: none; color: rgba(247,241,227,0.86);
    font-size: 0.95rem; font-weight: 600; padding: 6px 2px;
    border-bottom: 2px solid transparent; transition: border-color 0.15s ease, color 0.15s ease;
  }
  nav.primary a.navlink:hover { color: var(--parchment); border-color: var(--gold); }

  .auth-actions { display: flex; align-items: center; gap: 12px; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; font-family: inherit; font-weight: 700; font-size: 0.95rem;
    padding: 10px 20px; border-radius: 8px; text-decoration: none;
    cursor: pointer; border: 1.5px solid transparent; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    white-space: nowrap;
  }
  .btn:active { transform: translateY(1px); }
  .btn-gold { background: var(--gold); color: #201404; }
  .btn-gold:hover { background: var(--gold-deep); box-shadow: 0 8px 20px -6px rgba(199,154,62,0.55); }
  .btn-ghost-dark { background: transparent; color: var(--on-brand); border-color: rgba(247,241,227,0.4); }
  .btn-ghost-dark:hover { border-color: var(--gold); color: var(--gold); }
  .btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
  .btn-outline:hover { background: var(--ink); color: var(--parchment); }
  .btn-lg { padding: 14px 28px; font-size: 1.02rem; }

  .burger { display: none; background: none; border: none; color: var(--parchment); font-size: 1.6rem; cursor: pointer; padding: 4px 8px; }

  @media (max-width: 880px) {
    nav.primary, .auth-actions { display: none; }
    .burger { display: inline-flex; }
    header.site.open nav.primary,
    header.site.open .auth-actions {
      display: flex; flex-direction: column; align-items: stretch; width: 100%;
    }
    header.site.open .nav-row { flex-wrap: wrap; }
    header.site.open .auth-actions { padding-top: 10px; border-top: 1px solid rgba(247,241,227,0.15); margin-top: 10px; }
  }

  /* ---------- HERO ---------- */
  .hero {
    position: relative; overflow: hidden;
    background:
      radial-gradient(circle at 15% 20%, rgba(199,154,62,0.10), transparent 45%),
      var(--parchment);
    padding: 76px 0 64px;
  }
  .hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.85fr; gap: 56px; align-items: center;
  }
  .hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1.14; color: var(--ink); margin-top: 14px; }
  .hero h1 em { font-style: normal; color: var(--brass); }
  .hero p.lead { font-size: 1.1rem; color: var(--slate); max-width: 52ch; margin-top: 20px; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
  .hero-tags { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; }
  .hero-tag {
    display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink);
    font-family: "IBM Plex Mono", monospace;
  }
  .hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

  .hero-emblem {
    position: relative; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1 / 1;
  }
  .gear-ring {
    position: absolute; inset: 0; border-radius: 50%;
    background:
      repeating-conic-gradient(from 0deg, rgba(156,90,52,0.16) 0deg 4deg, transparent 4deg 18deg);
    -webkit-mask: radial-gradient(circle, transparent 63%, #000 64%);
            mask: radial-gradient(circle, transparent 63%, #000 64%);
  }
  .hero-emblem-card {
    position: relative; width: 78%; background: var(--card-bg); border-radius: 26px;
    box-shadow: var(--shadow); border: 1px solid var(--paper-line);
    padding: 34px; display: flex; align-items: center; justify-content: center;
  }
  .hero-emblem-card img { width: 100%; height: auto; }

  /* ---------- SECTIONS ---------- */
  section { padding: 72px 0; }
  .section-head { max-width: 62ch; margin-bottom: 44px; }
  .section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); color: var(--ink); margin-top: 10px; }
  .section-head p { color: var(--slate); margin-top: 14px; font-size: 1.03rem; }

  .science { background: var(--parchment-dim); border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
  .card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .dial-card {
    background: var(--card-bg); border: 1px solid var(--paper-line); border-radius: 16px;
    padding: 26px; box-shadow: var(--shadow);
  }
  .dial-icon {
    width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, var(--gold), var(--brass));
    color: #1c1204; font-size: 1.35rem; margin-bottom: 16px; box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35);
  }
  .dial-card h3 { font-size: 1.12rem; color: var(--ink); }
  .dial-card p { color: var(--slate); font-size: 0.96rem; margin-top: 8px; }

  .sensors .card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .sensor-card {
    background: var(--card-bg); border: 1px solid var(--paper-line); border-radius: 14px;
    padding: 22px 18px; text-align: left;
  }
  .sensor-badge {
    width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: var(--brand); color: var(--gold); font-size: 1.2rem; margin-bottom: 14px;
  }
  .sensor-card h3 { font-size: 1rem; color: var(--ink); font-family: "Source Sans 3", sans-serif; font-weight: 700; }
  .sensor-card p { color: var(--slate); font-size: 0.9rem; margin-top: 6px; }

  /* ---------- MODULES ---------- */
  .modules { scroll-margin-top: 84px; }
  .module-featured {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0;
    background: var(--card-bg); border: 1px solid var(--paper-line); border-radius: 20px;
    overflow: hidden; box-shadow: var(--shadow);
  }
  .module-featured figure { margin: 0; position: relative; min-height: 320px; }
  .module-featured figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .plate-tag {
    position: absolute; left: 18px; top: 18px; background: var(--brand); color: var(--gold);
    font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.08em;
    padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
  }
  .module-copy { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
  .module-copy h3 { font-size: 1.55rem; color: var(--ink); }
  .module-copy p { color: var(--slate); font-size: 0.99rem; }
  .module-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
  .fact-chip {
    font-family: "IBM Plex Mono", monospace; font-size: 0.76rem; color: var(--ink);
    background: var(--parchment-dim); border: 1px solid var(--paper-line);
    padding: 5px 11px; border-radius: 999px;
  }
  .fact-chip-new {
    color: var(--brass); border-color: var(--brass); background: transparent;
    font-weight: 600;
  }
  .module-copy .btn { align-self: flex-start; margin-top: 10px; }
  .module-note {
    font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; letter-spacing: 0.02em;
    color: var(--slate); margin-top: 6px;
  }
  .parcours-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
  .parcours-row .btn { margin-top: 0; flex: 1 1 auto; white-space: nowrap; }
  .btn-brass { background: var(--brass); color: #fff8ef; }
  .btn-brass:hover { background: var(--gold-deep); }
  .new-badge {
    font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; text-transform: uppercase;
    letter-spacing: 0.06em; background: rgba(255,255,255,0.22); padding: 2px 7px;
    border-radius: 999px; margin-left: 8px;
  }
  .plate-tag-new {
    position: absolute; left: 18px; top: 56px; background: var(--brass); color: #fff8ef;
    font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.06em;
    padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
  }
  @media (max-width: 500px) {
    .parcours-row { flex-direction: column; }
    .parcours-row .btn { width: 100%; }
  }

  .modules .module-featured + .module-featured { margin-top: 26px; }
  .plate-tag-crises { background: var(--slate); color: var(--parchment); }
  .modules-soon { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .soon-card {
    border: 1px dashed var(--paper-line); border-radius: 14px; padding: 20px;
    background: var(--parchment-dim); position: relative;
  }
  .soon-card .lock { position: absolute; right: 14px; top: 14px; opacity: 0.55; font-size: 0.95rem; }
  .soon-card h4 { font-size: 0.98rem; color: var(--ink); font-family: "Fraunces", serif; margin-top: 4px; }
  .soon-card p { color: var(--slate); font-size: 0.84rem; margin-top: 6px; }
  .soon-card .eyebrow { font-size: 0.66rem; }

  /* ---------- CTA BAND ---------- */
  .cta-band {
    background: var(--brand); color: var(--on-brand); text-align: center;
    border-top: 3px solid var(--gold);
  }
  .cta-band h2 { color: var(--on-brand); font-size: clamp(1.6rem, 3vw, 2.3rem); }
  .cta-band p { color: var(--on-brand-muted); margin: 14px 0 30px; font-size: 1.02rem; }
  .cta-band .btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
  .cta-note { margin-top: 18px; font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: rgba(247,241,227,0.55); }

  /* ---------- FOOTER ---------- */
  footer.site {
    background: var(--brand); color: rgba(247,241,227,0.75); padding: 56px 0 28px;
    border-top: 1px solid rgba(199,154,62,0.25);
  }
  .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
  .footer-brand img { height: 34px; margin-bottom: 14px; }
  .footer-brand p { font-size: 0.9rem; max-width: 30ch; color: rgba(247,241,227,0.6); }
  .footer-col h5 {
    font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.1em;
    font-size: 0.72rem; color: var(--gold); margin-bottom: 14px;
  }
  .footer-col a {
    display: block; text-decoration: none; color: rgba(247,241,227,0.78);
    font-size: 0.92rem; margin-bottom: 10px;
  }
  .footer-col a:hover { color: var(--gold); }
  .footer-bottom {
    margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(247,241,227,0.12);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 0.8rem; color: rgba(247,241,227,0.45);
  }
  .footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .footer-legal a, .footer-legal-link {
    color: rgba(247,241,227,0.45); text-decoration: none; font-size: 0.8rem;
    font-family: inherit; background: none; border: none; padding: 0; cursor: pointer;
  }
  .footer-legal a:hover, .footer-legal-link:hover { color: var(--gold); }

  /* ---------- COOKIE CONSENT ---------- */
  .cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
    padding: 16px; display: flex; justify-content: center;
  }
  .cookie-banner[hidden] { display: none; }
  .cookie-banner-inner {
    width: 100%; max-width: 760px; background: var(--brand); color: var(--on-brand);
    border: 1px solid rgba(199,154,62,0.35); border-radius: 16px; box-shadow: var(--shadow);
    padding: 24px 26px;
  }
  .cookie-banner-inner[hidden] { display: none; }
  .cookie-banner-top { display: flex; gap: 16px; align-items: flex-start; }
  .cookie-banner-icon img { width: 40px; height: 40px; display: block; flex-shrink: 0; }
  .cookie-banner-copy h2 { font-size: 1rem; color: var(--on-brand); margin: 0 0 6px; font-family: "Fraunces", serif; }
  .cookie-banner-copy p { font-size: 0.85rem; color: var(--on-brand-muted); margin: 0; line-height: 1.5; }
  .cookie-banner-copy a { color: var(--gold); }
  .cookie-banner-actions { display: flex; gap: 10px; margin-top: 18px; }
  .cookie-banner-actions .btn { white-space: nowrap; flex: 1; justify-content: center; }
  .btn-cookie-icon { display: inline-flex; align-items: center; gap: 8px; }
  .btn-cookie-icon img { width: 22px; height: 22px; display: block; }
  @media (max-width: 640px) {
    .cookie-banner-icon { display: none; }
    .cookie-banner-actions { flex-direction: column; }
    .cookie-banner-actions .btn { width: 100%; }
  }

  .cookie-banner-prefs h2 { font-size: 1.05rem; color: var(--on-brand); margin: 0 0 14px; font-family: "Fraunces", serif; }
  .cookie-pref-row {
    display: flex; justify-content: space-between; align-items: center; gap: 18px;
    padding: 14px 0; border-top: 1px solid rgba(247,241,227,0.14);
  }
  .cookie-pref-row:first-of-type { border-top: none; }
  .cookie-pref-row strong { display: block; color: var(--on-brand); font-size: 0.92rem; margin-bottom: 4px; }
  .cookie-pref-row p { margin: 0; color: var(--on-brand-muted); font-size: 0.82rem; line-height: 1.5; }
  .cookie-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
  .cookie-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .cookie-toggle-track {
    position: absolute; inset: 0; background: rgba(247,241,227,0.2); border-radius: 999px; transition: background 0.15s;
  }
  .cookie-toggle-track::before {
    content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--on-brand); transition: transform 0.15s;
  }
  .cookie-toggle input:checked + .cookie-toggle-track { background: var(--gold); }
  .cookie-toggle input:checked + .cookie-toggle-track::before { transform: translateX(18px); background: #1c1204; }
  .cookie-toggle-locked {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 24px; flex-shrink: 0;
    border-radius: 999px; background: rgba(199,154,62,0.35); position: relative;
  }
  .cookie-toggle-locked::before {
    content: ""; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold);
  }

  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-emblem { max-width: 320px; margin: 0 auto; }
    .card-grid-3, .sensors .card-grid-4, .modules-soon { grid-template-columns: 1fr 1fr; }
    .module-featured { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    .card-grid-3, .sensors .card-grid-4, .modules-soon { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .module-copy { padding: 28px 22px; }
  }

  /* ---------- LEGAL PAGES ---------- */
  .legal-hero { background: var(--brand); color: var(--on-brand); padding: 64px 0 44px; border-bottom: 3px solid var(--gold); }
  .legal-hero .wrap { max-width: 820px; }
  .legal-hero .eyebrow { color: var(--gold); }
  .legal-hero h1 { color: var(--on-brand); font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-top: 10px; }
  .legal-hero p { color: var(--on-brand-muted); margin-top: 14px; font-size: 1rem; }
  .legal-hero .legal-updated { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: rgba(247,241,227,0.55); margin-top: 18px; }

  .legal-content { padding: 56px 0 80px; }
  .legal-content .wrap { max-width: 820px; }
  .legal-toc {
    background: var(--card-bg); border: 1px solid var(--paper-line); border-radius: 14px;
    padding: 22px 26px; margin-bottom: 46px;
  }
  .legal-toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); font-family: "IBM Plex Mono", monospace; margin: 0 0 12px; }
  .legal-toc ol { margin: 0; padding-left: 20px; color: var(--ink); font-size: 0.92rem; line-height: 1.9; }
  .legal-toc a { color: var(--ink); text-decoration: none; }
  .legal-toc a:hover { color: var(--brass); text-decoration: underline; }

  .legal-section { margin-bottom: 40px; scroll-margin-top: 90px; }
  .legal-section h2 {
    font-size: 1.3rem; color: var(--ink); font-family: "Fraunces", serif;
    padding-bottom: 10px; border-bottom: 1px solid var(--paper-line); margin-bottom: 16px;
  }
  .legal-section h3 { font-size: 1.02rem; color: var(--ink); margin: 20px 0 8px; }
  .legal-section p { color: var(--slate); font-size: 0.98rem; line-height: 1.75; margin-bottom: 14px; }
  .legal-section ul, .legal-section ol.legal-list { color: var(--slate); font-size: 0.98rem; line-height: 1.75; padding-left: 22px; margin-bottom: 14px; }
  .legal-section li { margin-bottom: 6px; }
  .legal-section a { color: var(--brass); }
  .legal-section strong { color: var(--ink); }

  .legal-card {
    background: var(--parchment-dim); border: 1px solid var(--paper-line); border-radius: 12px;
    padding: 18px 22px; margin: 18px 0; font-size: 0.92rem; color: var(--ink);
  }
  .legal-card.legal-card-brass { border-color: var(--brass); }
  .legal-card p:last-child { margin-bottom: 0; }

  .legal-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--paper-line); border-radius: 12px; }
  table.legal-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
  table.legal-table th, table.legal-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
  table.legal-table th { background: var(--parchment-dim); color: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
  table.legal-table td { color: var(--slate); }
  table.legal-table tr:last-child td { border-bottom: none; }

  .legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); text-decoration: none; font-size: 0.9rem; font-family: "IBM Plex Mono", monospace; }
  .legal-back:hover { text-decoration: underline; }

  @media (max-width: 560px) {
    .legal-hero { padding: 48px 0 32px; }
    .legal-content { padding: 40px 0 60px; }
  }

  /* ---------- CONTACT FORM ---------- */
  .contact-form { margin-bottom: 20px; }
  .contact-field { border: none; padding: 0; margin: 0 0 26px; }
  .contact-field legend { padding: 0; margin-bottom: 14px; font-weight: 700; color: var(--ink); font-size: 0.98rem; }
  .contact-field label:not(.contact-radio) { display: block; font-weight: 600; color: var(--ink); font-size: 0.92rem; margin-bottom: 8px; }
  .contact-optional { font-weight: 400; color: var(--slate); }
  .contact-field input[type="text"],
  .contact-field input[type="email"],
  .contact-field textarea {
    width: 100%; box-sizing: border-box; font: inherit; font-size: 0.96rem; color: var(--ink);
    background: var(--card-bg); border: 1px solid var(--paper-line); border-radius: 10px;
    padding: 12px 14px; resize: vertical;
  }
  .contact-field input:focus, .contact-field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
  .contact-hint { font-size: 0.82rem; color: var(--slate); margin-top: 8px; }
  .contact-hint a { color: var(--brass); }

  .contact-radio-group { display: grid; gap: 12px; }
  .contact-radio { display: block; cursor: pointer; }
  .contact-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .contact-radio-card {
    display: block; border: 1px solid var(--paper-line); background: var(--card-bg);
    border-radius: 12px; padding: 14px 16px; transition: border-color 0.15s, background 0.15s;
  }
  .contact-radio-card strong { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 4px; }
  .contact-radio-card span { display: block; color: var(--slate); font-size: 0.85rem; }
  .contact-radio input:checked + .contact-radio-card { border-color: var(--gold); background: var(--parchment-dim); box-shadow: inset 0 0 0 1px var(--gold); }
  .contact-radio input:focus-visible + .contact-radio-card { outline: 2px solid var(--gold); outline-offset: 2px; }

  .contact-submit-row { margin-top: 8px; }
  /* ---------- FEEDBACK DE NAVIGATION ---------- */
  .parcours-feedback {
    min-height: 1.35em; margin: 10px 0 0; color: var(--slate);
    font-size: 0.84rem;
  }

/* ---------- COMPTES ---------- */
  .account-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
    max-width: 900px; margin: 30px auto 0; text-align: left;
  }
  .account-card, .demo-panel {
    background: rgba(247, 241, 227, 0.08); border: 1px solid rgba(247, 241, 227, 0.22);
    border-radius: 16px; padding: 24px; box-shadow: 0 12px 28px -20px rgba(0, 0, 0, 0.6);
  }
  .account-card { display: flex; flex-direction: column; gap: 8px; }
  .account-card h3, .demo-panel h3 { color: var(--on-brand); font-family: "Fraunces", serif; font-size: 1.35rem; margin: 0 0 8px; }
  .account-card label { color: var(--on-brand-muted); font-size: 0.9rem; margin-top: 4px; }
  .account-card input, .demo-actions input {
    width: 100%; border: 1px solid rgba(247, 241, 227, 0.35); border-radius: 7px;
    background: rgba(255,255,255,0.94); color: var(--ink-text); padding: 10px 12px; font: inherit;
  }
  .account-card input:focus, .demo-actions input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
  .account-card .btn { margin-top: 10px; }
  .account-logout { color: var(--on-brand); border-color: rgba(247,241,227,0.45); }
  .account-status { min-height: 1.4em; margin: 14px auto 0; color: var(--on-brand-muted); }
  .account-status[data-state="error"] { color: #ffb4a8; }
  .account-status[data-state="ok"] { color: #bce5bd; }
  .demo-panel { max-width: 900px; margin: 24px auto 0; text-align: left; }
  .demo-panel p { color: var(--on-brand-muted); margin: 8px 0; }
  .demo-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
  .demo-actions input { flex: 1 1 18rem; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  @media (max-width: 700px) {
    .account-grid { grid-template-columns: 1fr; }
    .demo-actions { flex-direction: column; align-items: stretch; }
  }
