/* ===========================================================
   HOTELIUM — SYSTÈME DE DESIGN VITRINE
   Source unique de vérité. Toute page de présentation
   doit lier ce fichier et ne redéfinir aucun token.
   Palette : navy de confiance + vert signature.
   =========================================================== */

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

/* ===========================================================
   1. TOKENS PRIMITIFS
   =========================================================== */
:root {
  /* Navy — structure, surfaces sombres, texte fort */
  --n900: #0B1B2E;
  --n800: #12293F;
  --n700: #17334D;
  --n600: #1E3A5F;
  --n500: #2C5183;
  --n400: #4A73A3;
  --n300: #8FA9C4;
  --n200: #C6D5E4;
  --n100: #E4EBF3;
  --n50:  #F3F7FB;

  /* Vert — signal, réussite, économies */
  --v800: #14532D;
  --v700: #15803D;
  --v600: #16A34A;
  --v500: #22C55E;
  --v300: #86EFAC;
  --v100: #DCFCE7;
  --v50:  #F0FDF4;

  /* Ambre — attention, offre mise en avant */
  --am700: #B45309;
  --am600: #D97706;
  --am100: #FEF3C7;

  /* Ciel — différenciation d'offre */
  --sk700: #0369A1;
  --sk600: #0284C7;
  --sk300: #7DD3FC;
  --sk100: #E0F2FE;

  /* Rouge — erreur, alerte */
  --r600: #DC2626;
  --r100: #FEE2E2;

  /* Neutres */
  --white: #FFFFFF;
  --ink:   #0F172A;
  --ink2:  #475569;
  /* #64748B passe 4.76:1 sur blanc mais tombe à 4.42:1 sur les fonds
     teintés (--n50) : on assombrit pour rester AA partout. */
  --ink3:  #5C6B80;
  --line:  #E2E8F0;
  --line2: #CBD5E1;

  /* ---------- Tokens sémantiques ---------- */
  --bg:            var(--white);
  --bg-alt:        var(--n50);
  --bg-dark:       var(--n900);
  --surface:       var(--white);
  --text:          var(--ink);
  --text-muted:    var(--ink2);
  --text-subtle:   var(--ink3);
  --border:        var(--line);
  --border-strong: var(--line2);
  --brand:         var(--n600);
  --brand-deep:    var(--n900);
  --accent:        var(--v700);
  --accent-bright: var(--v500);
  --ring:          var(--n500);

  /* Texte sur fond sombre */
  --on-dark:        rgba(255, 255, 255, .92);
  --on-dark-muted:  rgba(255, 255, 255, .62);
  --on-dark-subtle: rgba(255, 255, 255, .40);
  --on-dark-line:   rgba(255, 255, 255, .12);

  /* ---------- Typographie ---------- */
  --ff: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: clamp(2.6rem, 5.2vw, 4.25rem);
  --fs-h1:      clamp(2.25rem, 4.4vw, 3.5rem);
  --fs-h2:      clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-h3:      clamp(1.25rem, 1.8vw, 1.6rem);
  --fs-lead:    clamp(1.02rem, 1.3vw, 1.15rem);
  --fs-body:    1rem;
  --fs-sm:      .9rem;
  --fs-xs:      .8rem;
  --fs-label:   .72rem;

  /* ---------- Échelle d'espacement (base 4) ---------- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  40px;
  --sp-8:  56px;
  --sp-9:  72px;
  --sp-10: 96px;
  --sp-11: 120px;

  --section-y:    var(--sp-10);
  --section-y-sm: var(--sp-8);

  /* ---------- Rayons ---------- */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* ---------- Élévation ---------- */
  --sh-sm: 0 1px 2px rgba(11, 27, 46, .06), 0 1px 3px rgba(11, 27, 46, .04);
  --sh-md: 0 4px 12px rgba(11, 27, 46, .07), 0 2px 4px rgba(11, 27, 46, .04);
  --sh-lg: 0 12px 32px rgba(11, 27, 46, .10), 0 4px 8px rgba(11, 27, 46, .04);
  --sh-xl: 0 24px 56px rgba(11, 27, 46, .13), 0 8px 16px rgba(11, 27, 46, .05);

  /* ---------- Mouvement ---------- */
  --dur-fast: 150ms;
  --dur:      220ms;
  --dur-slow: 380ms;
  --ease:     cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* ---------- Layout ---------- */
  --wrap:    1200px;
  --wrap-lg: 1320px;
  --wrap-rd: 720px;
  --nav-h:   64px;
}

/* ===========================================================
   2. COUCHE DE COMPATIBILITÉ (anciens noms de tokens)
   Les pages non encore réécrites utilisent --g9, --lime, etc.
   On les redirige ici pour qu'elles héritent de la palette
   navy sans modification de leur balisage.
   À supprimer une fois toutes les pages réécrites.
   =========================================================== */
:root {
  --g9: var(--n900);
  --g8: var(--n800);
  --g7: var(--n700);
  --g6: var(--n600);
  --g5: var(--v700);
  --g4: var(--n400);
  --g3: var(--n300);
  --g2: var(--n200);
  --g1: var(--n100);
  --g0: var(--n50);

  --lime:    var(--v500);
  --lime-hi: var(--v300);

  --a6: var(--am700);
  --a1: var(--am100);
  /* --b6 sert surtout de couleur de texte sur --b1 : on prend le ton
     foncé, seul à passer 4.5:1 sur ce fond comme sur blanc. */
  --b6: var(--sk700);
  --b1: var(--sk100);

  --sage:  var(--n100);
  --sage2: var(--n200);

  --muted:  var(--on-dark-subtle);
  --subtle: var(--on-dark-line);
}

/* ===========================================================
   3. RESET & BASE
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--sp-5));
}

body {
  font-family: var(--ff);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Accessibilité : anneau de focus visible et cohérent partout */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible,
.footer :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--v300);
}

::selection { background: var(--n600); color: var(--white); }

.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;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px;
  z-index: 2000;
  background: var(--n900); color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-weight: 700; font-size: var(--fs-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* ===========================================================
   4. TYPOGRAPHIE
   =========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff);
  /* « inherit » et non une couleur fixe : les sections sombres posent
     color:#fff sur leur conteneur, les titres doivent suivre. */
  color: inherit;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.035em; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; }
h4 { font-size: 1.05rem;     font-weight: 700; letter-spacing: -.01em; }

p { text-wrap: pretty; }
strong, b { font-weight: 700; color: var(--text); }

.display {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.7;
}

.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-accent { color: var(--accent); }
.text-brand  { color: var(--brand); }
.text-center { text-align: center; }

/* ===========================================================
   5. LAYOUT
   =========================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--sp-7);
}
.wrap-lg { max-width: var(--wrap-lg); }
.wrap-rd { max-width: var(--wrap-rd); }

.section     { padding: var(--section-y) 0; }
.section-sm  { padding: var(--section-y-sm) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark);
  color: var(--on-dark);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: var(--on-dark-muted); }

/* En-tête de section */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-9);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.section-label-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.section-dark .section-label { color: var(--v300); }

.section-h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin-bottom: var(--sp-4);
}
.section-sub {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 auto;
}
.section-dark .section-sub { color: var(--on-dark-muted); }

/* Grilles */
.grid      { display: grid; gap: var(--sp-5); }
.grid-2    { grid-template-columns: repeat(2, 1fr); }
.grid-3    { grid-template-columns: repeat(3, 1fr); }
.grid-4    { grid-template-columns: repeat(4, 1fr); }
.grid-split{ grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }

/* ===========================================================
   6. BANDEAU D'ANNONCE
   =========================================================== */
.announce {
  background: var(--n900);
  color: var(--on-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: center;
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.announce-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--v500);
  flex-shrink: 0;
}
.announce a,
.announce button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--on-dark-subtle);
  transition: text-decoration-color var(--dur) var(--ease);
}
.announce a:hover,
.announce button:hover { text-decoration-color: var(--v500); }

/* ===========================================================
   7. NAVIGATION
   =========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease);
}
.nav.is-scrolled { box-shadow: var(--sh-md); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo svg { width: 32px; height: 32px; color: var(--brand); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.nav-menu a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-menu a:hover { background: var(--n50); color: var(--brand); }
.nav-menu a[aria-current="page"],
.nav-menu a.active {
  color: var(--brand);
  background: var(--n100);
  font-weight: 700;
}

/* Boutons de nav — mêmes règles que .btn, sans !important.
   Sélecteurs qualifiés pour passer devant « .nav-menu a ». */
.nav-menu .nav-account,
.nav-menu .nav-cta,
.nav-account,
.nav-cta {
  font-size: var(--fs-sm);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-4);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.nav-menu .nav-account,
.nav-account {
  border: 1.5px solid var(--border-strong);
  color: var(--brand);
  background: transparent;
}
.nav-menu .nav-account:hover,
.nav-account:hover { background: var(--n50); border-color: var(--brand); color: var(--brand); }

.nav-menu .nav-cta,
.nav-cta {
  border: 1.5px solid transparent;
  background: var(--n900);
  color: var(--white);
}
.nav-menu .nav-cta:hover,
.nav-cta:hover { background: var(--n700); color: var(--white); }

.nav-ham {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-ham:hover { background: var(--n50); }

/* ===========================================================
   8. BOUTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  min-height: 44px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--ff);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn-lg { padding: var(--sp-4) var(--sp-6); font-size: 1rem; min-height: 52px; }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); min-height: 38px; }
.btn-block { width: 100%; }

/* Primaire — navy */
.btn-primary, .btn-dark {
  background: var(--n900);
  color: var(--white);
}
.btn-primary:hover, .btn-dark:hover {
  background: var(--n700);
  color: var(--white);
  box-shadow: var(--sh-md);
}

/* Accent — vert (contraste AA sur blanc) */
.btn-accent, .btn-green {
  background: var(--v700);
  color: var(--white);
}
.btn-accent:hover, .btn-green:hover {
  background: var(--v800);
  color: var(--white);
  box-shadow: var(--sh-md);
}

/* Contour */
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--n50); border-color: var(--brand); color: var(--brand); }

/* Fantôme */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  padding-left: var(--sp-3);
  padding-right: var(--sp-3);
}
.btn-ghost:hover { color: var(--brand); background: var(--n50); }
.btn-ghost svg { transition: transform var(--dur) var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }

/* Ambre */
.btn-amber {
  background: var(--am700);
  color: var(--white);
}
.btn-amber:hover { background: #92400E; color: var(--white); box-shadow: var(--sh-md); }

/* Sur fond sombre */
.btn-white {
  background: var(--white);
  color: var(--n900);
}
.btn-white:hover { background: var(--n50); color: var(--n900); box-shadow: var(--sh-md); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--on-dark-line);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--on-dark-subtle);
  color: var(--white);
}

/* ===========================================================
   9. BADGES & PASTILLES
   =========================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--n100);
  color: var(--n700);
}
.badge-accent { background: var(--v100); color: var(--v800); }
.badge-amber  { background: var(--am100); color: #7C2D12; }
.badge-sky    { background: var(--sk100); color: var(--sk700); }

/* Étiquette de survol au-dessus d'une carte */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--n50);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
}
.hero-tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--v500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .22);
  flex-shrink: 0;
}

/* ===========================================================
   10. CARTES
   =========================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}
.card-dark {
  background: var(--n800);
  border-color: var(--on-dark-line);
  color: var(--on-dark);
}
.card-dark h3, .card-dark h4 { color: var(--white); }
.card-dark p { color: var(--on-dark-muted); }

/* Icône de carte */
.card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--n100);
  color: var(--brand);
  margin-bottom: var(--sp-4);
}
.card-icon svg { width: 20px; height: 20px; }
.card-icon-accent { background: var(--v100); color: var(--v800); }

/* Pastille de validation dans une liste */
.check {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--v100);
  color: var(--v800);
}
.check svg { width: 12px; height: 12px; }

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================================================
   11. FAQ (details/summary)
   =========================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: var(--wrap-rd);
  margin: 0 auto;
}
details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
details.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text);
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '';
  width: 20px; height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform var(--dur) var(--ease);
}
details.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-body {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===========================================================
   12. BANDE D'APPEL À L'ACTION
   =========================================================== */
.cta-band {
  background: var(--n900);
  padding: var(--section-y) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -220px; left: 50%;
  width: 760px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34, 197, 94, .13) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.04em;
  line-height: 1.06;
  margin-bottom: var(--sp-4);
}
.cta-band p {
  font-size: var(--fs-lead);
  color: var(--on-dark-muted);
  max-width: 520px;
  margin: 0 auto var(--sp-7);
  line-height: 1.7;
}
.cta-btns {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--on-dark-subtle);
}

/* ===========================================================
   13. PIED DE PAGE
   =========================================================== */
.footer {
  background: var(--n900);
  border-top: 1px solid var(--on-dark-line);
  padding: var(--sp-9) 0 var(--sp-7);
  color: var(--on-dark-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-8);
}
.footer-brand { color: var(--white); }
.footer-brand .brand-name {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-4);
}
.footer-brand .brand-name svg { width: 30px; height: 30px; color: var(--v500); }
.footer-brand p {
  font-size: var(--fs-sm);
  line-height: 1.65;
  max-width: 260px;
  color: var(--on-dark-muted);
}
.footer-col h4,
.footer-col-title {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-subtle);
  margin-bottom: var(--sp-4);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--white); }
.footer-cta { color: var(--v300); font-weight: 700; }
.footer-cta:hover { color: var(--v300); }
.footer-bottom {
  border-top: 1px solid var(--on-dark-line);
  padding-top: var(--sp-5);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--on-dark-subtle);
  line-height: 1.7;
}
.footer-bottom a { color: var(--on-dark-subtle); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--on-dark-muted); }

/* ===========================================================
   14. CONTENU RÉDACTIONNEL (pages légales, articles)
   =========================================================== */
.prose {
  max-width: var(--wrap-rd);
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 {
  font-size: var(--fs-h3);
  color: var(--text);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}
.prose ul, .prose ol { padding-left: var(--sp-5); }
.prose ul li { list-style: disc; margin-bottom: var(--sp-2); }
.prose ol li { list-style: decimal; margin-bottom: var(--sp-2); }
.prose a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--n300);
  transition: text-decoration-color var(--dur) var(--ease);
}
.prose a:hover { text-decoration-color: var(--brand); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.prose th, .prose td {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  text-align: left;
}
.prose th { background: var(--n50); color: var(--text); font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--sp-5);
  color: var(--text-muted);
  font-style: italic;
}

/* Tableau : jamais de débordement horizontal de la page */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===========================================================
   15. MOUVEMENT
   Le contenu reste visible si JS est absent : l'état masqué
   n'est appliqué que lorsque <html> porte la classe "js".
   =========================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.js .reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 60ms; }
.reveal-delay-2 { transition-delay: 120ms; }
.reveal-delay-3 { transition-delay: 180ms; }
.reveal-delay-4 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===========================================================
   16. UTILITAIRES
   =========================================================== */
.stack     { display: flex; flex-direction: column; }
.row       { display: flex; align-items: center; }
.row-wrap  { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); } .gap-5 { gap: var(--sp-5); }
.gap-6 { gap: var(--sp-6); }
.center { justify-content: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hr { border: none; border-top: 1px solid var(--border); }

/* ===========================================================
   17. RESPONSIVE
   Points de rupture : 1024 / 900 / 768 / 560
   =========================================================== */
@media (max-width: 1024px) {
  :root { --section-y: var(--sp-9); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-6); }
}

@media (max-width: 900px) {
  .wrap { padding: 0 var(--sp-5); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-split { grid-template-columns: 1fr; gap: var(--sp-6); }
}

@media (max-width: 768px) {
  :root { --section-y: var(--sp-8); --section-y-sm: var(--sp-7); }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-1);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-lg);
    padding: var(--sp-4);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a,
  .nav-menu .nav-account,
  .nav-menu .nav-cta {
    width: 100%;
    text-align: center;
    padding: var(--sp-3) var(--sp-4);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-ham { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 var(--sp-4); }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }

  /* Les libellés longs ne doivent pas déborder : sur mobile les rangées
     de boutons passent en colonne pleine largeur et le texte se coupe. */
  .cta-btns,
  .hero-btns-row,
  .btn-row { flex-direction: column; align-items: stretch; }
  .cta-btns .btn,
  .hero-btns-row .btn,
  .btn-row .btn {
    width: 100%;
    white-space: normal;
  }
}

/* ===========================================================
   18. IMPRESSION
   =========================================================== */
@media print {
  .nav, .announce, .cta-band, .footer, .nav-ham { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
