/* ==========================================================================
   FIXGLASS — Feuille de style principale
   Charte : bleu #0289FE / gris #797C85 (issus du logo)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de design
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --brand:          #0289FE;   /* bleu logo — accents, icônes, filets */
  --brand-strong:   #0A6FD1;   /* bleu texte / boutons (contraste AA sur blanc) */
  --brand-deep:     #05509E;
  --brand-darker:   #063C74;
  --brand-050:      #EFF7FF;
  --brand-100:      #D8EBFF;
  --brand-200:      #B4D8FF;

  /* Gris (dérivés du gris du logo) */
  --gray-050: #F7F9FC;
  --gray-100: #EEF1F6;
  --gray-200: #DFE4EC;
  --gray-300: #C6CCD8;
  --gray-400: #9AA0AB;
  --gray-500: #797C85;   /* gris logo */
  --gray-600: #5C606B;
  --gray-700: #434752;

  /* Encres sombres */
  --ink-900: #0A0F17;
  --ink-800: #0F1723;
  --ink-700: #17222F;
  --ink-600: #23303F;

  /* États */
  --success:    #0E8A46;
  --success-bg: #E7F6ED;
  --danger:     #C8271C;
  --danger-bg:  #FDECEA;
  --warn:       #A85C00;
  --warn-bg:    #FFF4E2;

  /* Sémantique */
  --bg:          #FFFFFF;
  --bg-soft:     var(--gray-050);
  --surface:     #FFFFFF;
  --text:        var(--ink-800);
  --text-muted:  var(--gray-600);
  --text-invert: #FFFFFF;
  --border:      var(--gray-200);
  --border-soft: var(--gray-100);

  /* Typographie */
  --font-title: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-xs:   0.8125rem;  /* 13 */
  --fs-sm:   0.875rem;   /* 14 */
  --fs-base: 1rem;       /* 16 */
  --fs-md:   1.0625rem;  /* 17 */
  --fs-lg:   1.25rem;    /* 20 */
  --fs-xl:   1.5rem;     /* 24 */
  --fs-2xl:  1.875rem;   /* 30 */
  --fs-3xl:  2.375rem;   /* 38 */
  --fs-4xl:  3rem;       /* 48 */

  /* Espacement (rythme 4 / 8) */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.5rem;   --sp-8: 3rem;
  --sp-9: 4rem;     --sp-10: 5rem;    --sp-11: 6.5rem;

  /* Rayons */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;

  /* Ombres */
  --sh-1: 0 1px 2px rgba(10, 15, 23, .05), 0 1px 3px rgba(10, 15, 23, .05);
  --sh-2: 0 2px 6px rgba(10, 15, 23, .06), 0 6px 16px rgba(10, 15, 23, .06);
  --sh-3: 0 8px 24px rgba(10, 15, 23, .09), 0 2px 8px rgba(10, 15, 23, .05);
  --sh-4: 0 18px 48px rgba(10, 15, 23, .14);
  --sh-brand: 0 8px 24px rgba(2, 137, 254, .28);

  /* Mouvement */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 140ms; --t: 220ms; --t-slow: 320ms;

  /* Divers */
  --container: 1180px;
  --header-h: 76px;

  /* Échelle z-index */
  --z-base: 1; --z-sticky: 40; --z-header: 100; --z-drawer: 200; --z-modal: 300; --z-toast: 400;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Taille par défaut des pictogrammes ; toute règle contextuelle
   (.btn svg, .checklist svg, .icon-box svg…) reste prioritaire. */
.ico { width: 20px; height: 20px; flex: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.375rem); }
h3 { font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem); }
h4 { font-size: var(--fs-md); }

p  { margin: 0 0 var(--sp-4); max-width: 72ch; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.35em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; color: var(--ink-900); }

a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-7) 0; }

::selection { background: var(--brand-200); color: var(--ink-900); }

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

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.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: var(--z-toast);
  background: var(--ink-900); color: #fff; padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md); font-weight: 600; text-decoration: none;
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: var(--sp-3); color: #fff; }

/* --------------------------------------------------------------------------
   3. Mise en page
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-6); } }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--border-soft); }

.section--dark {
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(2, 137, 254, .28), transparent 60%),
    radial-gradient(900px 480px at 96% 110%, rgba(2, 137, 254, .16), transparent 62%),
    var(--ink-900);
  color: rgba(255, 255, 255, .85);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark strong { color: #fff; }
.section--dark a:not(.btn) { color: #7CC2FF; }

.stack > * + * { margin-top: var(--sp-4); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 980px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: var(--sp-9); }
  .split--reverse > *:first-child { order: 2; }
}

/* En-tête de section */
.section-head { max-width: 46rem; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head p { color: var(--text-muted); font-size: var(--fs-md); margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-title);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-strong);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px;
}
.section--dark .eyebrow { color: #7CC2FF; }

.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--text-muted); }
.section--dark .lead { color: rgba(255, 255, 255, .82); }

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75rem 1.5rem;
  font-family: var(--font-title); font-size: var(--fs-base); font-weight: 700;
  letter-spacing: -.01em; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; border-radius: var(--r-md);
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; width: 20px; height: 20px; }

.btn--primary {
  background: var(--brand-strong); color: #fff; box-shadow: var(--sh-brand);
}
.btn--primary:hover { background: var(--brand-deep); color: #fff; box-shadow: 0 10px 28px rgba(2, 137, 254, .34); }

.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-700); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--gray-300); }
.btn--ghost:hover { background: var(--gray-050); border-color: var(--brand); color: var(--brand-deep); }

.btn--light { background: #fff; color: var(--ink-900); }
.btn--light:hover { background: var(--brand-050); color: var(--brand-darker); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.btn--lg { min-height: 56px; padding: .9rem 1.85rem; font-size: var(--fs-md); }
.btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   5. En-tête & navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink-900); color: rgba(255, 255, 255, .78);
  font-size: var(--fs-sm);
}
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 42px; padding-block: 6px; }
.topbar__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.topbar__list li { display: inline-flex; align-items: center; gap: .45em; margin: 0; }
.topbar__list svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--brand-200); text-decoration: underline; }
@media (max-width: 767px) { .topbar__hide-sm { display: none; } }

.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.header.is-scrolled { box-shadow: var(--sh-2); border-color: transparent; }

.header__inner { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 46px; } }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.nav__list > li { margin: 0; position: relative; }

.nav__link {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .6rem .7rem; border-radius: var(--r-sm);
  font-family: var(--font-title); font-size: .9375rem; font-weight: 600;
  color: var(--ink-700); text-decoration: none; white-space: nowrap;
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.nav__link:hover { color: var(--brand-strong); background: var(--brand-050); }
.nav__link[aria-current="page"] { color: var(--brand-strong); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -2px;
  height: 3px; border-radius: 3px; background: var(--brand);
}
.nav__link svg { width: 14px; height: 14px; transition: transform var(--t) var(--ease); }
.nav__item--has-sub:hover .nav__link svg,
.nav__item--has-sub:focus-within .nav__link svg { transform: rotate(180deg); }

.subnav {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-4); padding: var(--sp-2); margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.nav__item--has-sub:hover .subnav,
.nav__item--has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav li { margin: 0; }
.subnav a {
  display: block; padding: .6rem .75rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-700); text-decoration: none;
}
.subnav a span { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--text-muted); }
.subnav a:hover { background: var(--brand-050); color: var(--brand-strong); }

.header__cta { display: none; align-items: center; gap: var(--sp-3); flex: none; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px;
  background: transparent; border: 1.5px solid var(--border); border-radius: var(--r-md);
  color: var(--ink-900);
}
.burger:hover { border-color: var(--brand); color: var(--brand-strong); }
.burger svg { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (min-width: 1080px) {
  .nav { display: block; }
  .header__cta { display: flex; }
  .burger { display: none; }
}

/* Menu mobile */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(10, 15, 23, .55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease), visibility var(--t);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  background: #fff; box-shadow: var(--sh-4);
  padding: var(--sp-5) var(--sp-5) var(--sp-8);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform var(--t-slow) var(--ease);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.drawer__head img { height: 36px; }
.drawer__close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); border-radius: var(--r-md); background: #fff; color: var(--ink-900);
}
.drawer__close svg { width: 20px; height: 20px; }
.drawer__nav { list-style: none; margin: 0; padding: 0; }
.drawer__nav li { margin: 0; border-bottom: 1px solid var(--border-soft); }
.drawer__nav a {
  display: block; padding: .95rem .25rem; font-family: var(--font-title);
  font-size: var(--fs-md); font-weight: 650; color: var(--ink-800); text-decoration: none;
}
.drawer__nav a[aria-current="page"] { color: var(--brand-strong); }
.drawer__nav .is-sub a { padding-left: var(--sp-5); font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); }
.drawer__foot { margin-top: auto; display: grid; gap: var(--sp-3); }

body.no-scroll { overflow: hidden; }

/* Barre d'action mobile fixe */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 20px rgba(10, 15, 23, .08);
}
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 58px; background: #fff; color: var(--ink-900);
  font-family: var(--font-title); font-weight: 700; font-size: var(--fs-sm); text-decoration: none;
}
.actionbar a svg { width: 19px; height: 19px; color: var(--brand); }
.actionbar a.is-primary { background: var(--brand-strong); color: #fff; }
.actionbar a.is-primary svg { color: #fff; }
@media (min-width: 1080px) { .actionbar { display: none; } }
@media (max-width: 1079px) { body { padding-bottom: 58px; } }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: rgba(255, 255, 255, .86);
  background:
    radial-gradient(1100px 620px at 8% -18%, rgba(2, 137, 254, .40), transparent 58%),
    radial-gradient(900px 560px at 100% 8%, rgba(2, 137, 254, .22), transparent 60%),
    linear-gradient(165deg, #101B2A 0%, var(--ink-900) 62%);
  padding-block: clamp(3rem, 1.5rem + 7vw, 6rem) clamp(3.5rem, 2rem + 7vw, 6.5rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 520px at 70% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 520px at 70% 40%, #000, transparent 78%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__grid { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.08fr .92fr; gap: var(--sp-9); } }
.hero__text p { color: rgba(255, 255, 255, .82); font-size: var(--fs-md); }
.hero .btn-row { margin-top: var(--sp-6); }

.pill {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .4rem .95rem .4rem .5rem; margin-bottom: var(--sp-5);
  background: rgba(2, 137, 254, .14); border: 1px solid rgba(2, 137, 254, .34);
  border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: 600; color: #DCEEFF;
}
.pill__dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.pill__dot svg { width: 13px; height: 13px; color: #fff; }

.hero__points { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
@media (min-width: 560px) { .hero__points { grid-template-columns: repeat(2, 1fr); } }
.hero__points li {
  display: flex; align-items: flex-start; gap: .6em; margin: 0;
  font-size: var(--fs-sm); color: rgba(255, 255, 255, .88);
}
.hero__points svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 1px; }

/* Carte "devis express" du hero */
.hero-card {
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r-xl);
  box-shadow: var(--sh-4); padding: var(--sp-6); color: var(--text);
}
.hero-card h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.hero-card p { font-size: var(--fs-sm); color: var(--text-muted); }
.hero-card__hours {
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px dashed var(--border);
  font-size: var(--fs-sm); color: var(--text-muted);
}
.hero-card__hours dl { display: grid; grid-template-columns: 1fr auto; gap: .3rem var(--sp-4); margin: 0; }
.hero-card__hours dt { color: var(--text-muted); }
.hero-card__hours dd { margin: 0; font-weight: 600; color: var(--ink-800); font-variant-numeric: tabular-nums; }

.status {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .3rem .8rem; border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 650;
}
.status--open { background: var(--success-bg); color: var(--success); }
.status--closed { background: var(--gray-100); color: var(--gray-700); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Bandeau de réassurance */
.trustbar { background: var(--ink-800); color: rgba(255, 255, 255, .8); }
.trustbar__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4);
  padding-block: var(--sp-5);
}
@media (min-width: 900px) { .trustbar__grid { grid-template-columns: repeat(4, 1fr); } }
.trustbar__item { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); }
.trustbar__item svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.trustbar__item b { display: block; color: #fff; font-family: var(--font-title); font-size: var(--fs-base); }

/* --------------------------------------------------------------------------
   7. Cartes & composants de contenu
   -------------------------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-6);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.card:hover { border-color: var(--brand-200); box-shadow: var(--sh-3); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.card p:last-child { margin-bottom: 0; }
.card__link { margin-top: auto; font-weight: 650; font-size: var(--fs-sm); text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.card__link svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { color: inherit; }

.icon-box {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--brand-050), var(--brand-100));
  color: var(--brand-strong); margin-bottom: var(--sp-4); flex: none;
}
.icon-box svg { width: 26px; height: 26px; }
.section--dark .icon-box { background: rgba(2, 137, 254, .16); color: #7CC2FF; }

.card--dark {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .82);
}
.card--dark:hover { border-color: rgba(2, 137, 254, .5); }
.card--dark p { color: rgba(255, 255, 255, .74); }

.card--feature { border-top: 3px solid var(--brand); }

/* Liste à coches */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: var(--sp-3); }
.checklist li { display: flex; align-items: flex-start; gap: .65em; margin: 0; font-size: var(--fs-sm); }
.checklist svg { width: 21px; height: 21px; color: var(--brand); flex: none; margin-top: 2px; }
.checklist--danger svg { color: var(--danger); }

/* Étapes numérotées */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; margin: 0; padding-top: var(--sp-5); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-title); font-size: var(--fs-2xl); font-weight: 800;
  color: var(--brand); opacity: .32; line-height: 1; display: block; margin-bottom: var(--sp-2);
}
.steps li::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px;
  background: var(--brand); border-radius: 3px;
}
.steps h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.steps p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

/* Statistiques / chiffres clés */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat b {
  display: block; font-family: var(--font-title); font-weight: 800;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1;
  color: var(--brand); letter-spacing: -.03em;
}
.stat span { font-size: var(--fs-sm); color: var(--text-muted); }
.section--dark .stat span { color: rgba(255, 255, 255, .75); }

/* Encarts d'information */
.note {
  display: flex; gap: var(--sp-4); padding: var(--sp-5);
  border-radius: var(--r-lg); border: 1px solid var(--brand-200);
  background: var(--brand-050); font-size: var(--fs-sm);
}
.note svg { width: 22px; height: 22px; color: var(--brand-strong); flex: none; margin-top: 2px; }
.note p:last-child { margin-bottom: 0; }
.note--warn { background: var(--warn-bg); border-color: #F4D9A8; }
.note--warn svg { color: var(--warn); }
.note--danger { background: var(--danger-bg); border-color: #F5C6C2; }
.note--danger svg { color: var(--danger); }
.note--success { background: var(--success-bg); border-color: #B8E3C9; }
.note--success svg { color: var(--success); }

/* Bandeau CTA */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 54ch; margin-inline: auto; }

/* Tableaux */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 520px; }
caption { text-align: left; padding: var(--sp-4); font-weight: 650; color: var(--text-muted); }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
thead th { background: var(--gray-050); font-family: var(--font-title); font-weight: 700; color: var(--ink-900); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--gray-050); }

/* Accordéon (FAQ) */
.accordion { display: grid; gap: var(--sp-3); }
.accordion details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.accordion details[open] { border-color: var(--brand-200); box-shadow: var(--sh-2); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); cursor: pointer; list-style: none;
  font-family: var(--font-title); font-weight: 650; font-size: var(--fs-md); color: var(--ink-900);
  min-height: 56px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand); transform: rotate(45deg) translateY(-3px);
  transition: transform var(--t) var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion summary:hover { color: var(--brand-strong); }
.accordion__body { padding: 0 var(--sp-5) var(--sp-5); }
.accordion__body p:last-child, .accordion__body ul:last-child { margin-bottom: 0; }
.accordion__body { font-size: var(--fs-sm); color: var(--text-muted); }

/* Vignettes zones */
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }
.zones li {
  margin: 0; padding: var(--sp-3) var(--sp-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); font-size: var(--fs-sm);
  display: flex; align-items: center; gap: .5em;
}
.zones li svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.zones li b { font-weight: 650; }

.tag {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .25rem .7rem; border-radius: var(--r-full);
  background: var(--brand-050); color: var(--brand-deep);
  font-size: var(--fs-xs); font-weight: 650;
}
.tag--gray { background: var(--gray-100); color: var(--gray-700); }

/* Visuel décoratif (pare-brise stylisé) */
.glassfig { position: relative; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(160deg, #16263A, #0A0F17); border: 1px solid rgba(255,255,255,.1); }
.glassfig svg { width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------------------
   8. Formulaires
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.form-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .form-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.form-col-full { grid-column: 1 / -1; }

.field { display: grid; gap: .4rem; }
.field > label, .fieldset__legend {
  font-size: var(--fs-sm); font-weight: 650; color: var(--ink-800);
}
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: var(--fs-xs); color: var(--text-muted); }

.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  background: #fff; color: var(--text);
  border: 1.5px solid var(--gray-300); border-radius: var(--r-md);
  font-size: var(--fs-base); /* 16px : évite le zoom auto iOS */
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23797C85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 17px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(2, 137, 254, .16);
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input[readonly] { background: var(--gray-050); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--gray-100); opacity: .6; cursor: not-allowed; }

.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .input:focus, .field.has-error .select:focus, .field.has-error .textarea:focus { box-shadow: 0 0 0 4px rgba(200, 39, 28, .14); }
.error-msg { display: none; align-items: center; gap: .4em; font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }
.error-msg svg { width: 15px; height: 15px; flex: none; }
.field.has-error .error-msg { display: flex; }

.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.fieldset__legend { padding: 0; margin-bottom: .2rem; }

/* Cases à cocher / radios personnalisées */
.check { display: flex; align-items: flex-start; gap: .7rem; font-size: var(--fs-sm); cursor: pointer; padding: .2rem 0; min-height: 30px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand-strong); flex: none; cursor: pointer; }
.check span { color: var(--text-muted); }
.check strong { display: block; color: var(--ink-900); font-weight: 650; }

/* Cartes de choix (radio) */
.choice-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 620px) { .choice-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .choice-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__body {
  display: flex; gap: var(--sp-3); align-items: flex-start; height: 100%;
  padding: var(--sp-4); background: #fff;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.choice:hover .choice__body { border-color: var(--gray-400); }
.choice input:checked + .choice__body {
  border-color: var(--brand); background: var(--brand-050); box-shadow: 0 0 0 3px rgba(2, 137, 254, .12);
}
.choice input:focus-visible + .choice__body { outline: 3px solid var(--brand); outline-offset: 2px; }
.choice__icon {
  width: 40px; height: 40px; border-radius: var(--r-sm); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--gray-600);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.choice__icon svg { width: 21px; height: 21px; }
.choice input:checked + .choice__body .choice__icon { background: var(--brand); color: #fff; }
.choice__title { display: block; font-family: var(--font-title); font-weight: 650; font-size: var(--fs-sm); color: var(--ink-900); }
.choice__desc { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.choice__meta { display: inline-block; margin-top: .4rem; font-size: var(--fs-xs); font-weight: 650; color: var(--brand-strong); }

/* Segmented control */
.segmented { display: inline-flex; padding: 4px; background: var(--gray-100); border-radius: var(--r-md); gap: 4px; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 40px; padding: 0 1rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 650; color: var(--gray-700); cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.segmented input:checked + span { background: #fff; color: var(--brand-strong); box-shadow: var(--sh-1); }
.segmented input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Récapitulatif d'erreurs */
.error-summary {
  border: 1.5px solid var(--danger); background: var(--danger-bg);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); font-size: var(--fs-sm);
}
.error-summary h3 { color: var(--danger); font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--danger); font-weight: 600; }

/* Zone d'état de formulaire */
.form-status { display: none; }
.form-status.is-visible { display: block; }

/* Spinner */
.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading .btn__label { opacity: .7; }

/* --------------------------------------------------------------------------
   9. Module de prise de rendez-vous
   -------------------------------------------------------------------------- */
.booking { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 1024px) { .booking { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-7); } }

.booking__main {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--sh-2); padding: var(--sp-5);
}
@media (min-width: 768px) { .booking__main { padding: var(--sp-7); } }

/* Indicateur d'étapes */
.stepper { list-style: none; margin: 0 0 var(--sp-6); padding: 0 0 var(--sp-5); border-bottom: 1px solid var(--border-soft); display: grid; gap: var(--sp-2); }
@media (min-width: 640px) { .stepper { grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); } }
.stepper li { margin: 0; display: flex; align-items: center; gap: .6rem; font-size: var(--fs-xs); color: var(--text-muted); }
.stepper__num {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--gray-600);
  font-family: var(--font-title); font-weight: 700; font-size: var(--fs-xs);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.stepper__num svg { width: 15px; height: 15px; }
.stepper li.is-current { color: var(--ink-900); font-weight: 650; }
.stepper li.is-current .stepper__num { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(2, 137, 254, .16); }
.stepper li.is-done .stepper__num { background: var(--success); color: #fff; }
.stepper li.is-done { color: var(--ink-800); }
@media (max-width: 639px) { .stepper li:not(.is-current) span:last-child { display: none; } .stepper { grid-auto-flow: column; justify-content: start; } }

.progress { height: 5px; background: var(--gray-100); border-radius: var(--r-full); overflow: hidden; margin-bottom: var(--sp-5); }
.progress__bar { height: 100%; width: 25%; background: linear-gradient(90deg, var(--brand), var(--brand-deep)); border-radius: var(--r-full); transition: width var(--t-slow) var(--ease); }

.step { display: none; }
.step.is-active { display: block; animation: stepIn var(--t-slow) var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step__title { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.step__intro { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }

.step-actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--border-soft);
}
.step-actions .btn { flex: 1 1 auto; min-width: 150px; }
@media (min-width: 560px) { .step-actions .btn { flex: 0 0 auto; } }

/* Calendrier — bandeau de jours */
.calendar { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.calendar__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); background: var(--gray-050); border-bottom: 1px solid var(--border);
}
.calendar__month { font-family: var(--font-title); font-weight: 700; font-size: var(--fs-md); color: var(--ink-900); text-transform: capitalize; }
.calendar__nav { display: flex; gap: var(--sp-2); }
.calendar__nav button {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); background: #fff; border-radius: var(--r-sm); color: var(--ink-800);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.calendar__nav button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-050); }
.calendar__nav button:disabled { opacity: .4; cursor: not-allowed; }
.calendar__nav svg { width: 18px; height: 18px; }

.daystrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--border-soft); }
.day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 88px; padding: var(--sp-3) 2px; background: #fff; border: 0;
  font-family: var(--font-body); text-align: center;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.day__dow { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.day__num { font-family: var(--font-title); font-size: var(--fs-lg); font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; line-height: 1.1; }
.day__free { font-size: 11px; font-weight: 650; color: var(--success); }
.day__free--none { color: var(--gray-400); font-weight: 500; }
.day:not(:disabled):hover { background: var(--brand-050); }
.day:disabled { background: var(--gray-050); cursor: not-allowed; }
.day:disabled .day__num { color: var(--gray-400); }
.day.is-selected { background: var(--brand-strong); }
.day.is-selected .day__num, .day.is-selected .day__dow, .day.is-selected .day__free { color: #fff; }
.day.is-today::after {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.day.is-selected.is-today::after { background: #fff; }

.calendar__legend {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border-soft);
  font-size: var(--fs-xs); color: var(--text-muted); background: var(--gray-050);
}
.calendar__legend span { display: inline-flex; align-items: center; gap: .45em; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-dot--free { background: var(--success); }
.legend-dot--sel { background: var(--brand-strong); }
.legend-dot--off { background: var(--gray-300); }

/* Créneaux horaires */
.slots { margin-top: var(--sp-5); }
.slots__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.slots__day { font-family: var(--font-title); font-weight: 700; font-size: var(--fs-md); color: var(--ink-900); text-transform: capitalize; }
.slots__count { font-size: var(--fs-sm); color: var(--text-muted); }

.slots__group { margin-bottom: var(--sp-5); }
.slots__group-title {
  display: flex; align-items: center; gap: .5em; margin-bottom: var(--sp-3);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.slots__group-title svg { width: 15px; height: 15px; color: var(--brand); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--sp-2); }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: .4rem; cursor: pointer;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-weight: 650; font-size: var(--fs-sm); color: var(--ink-800);
  font-variant-numeric: tabular-nums;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.slot small { font-weight: 500; font-size: 11px; color: var(--text-muted); }
.slot:hover span { border-color: var(--brand); color: var(--brand-strong); }
.slot input:checked + span { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; box-shadow: var(--sh-brand); }
.slot input:checked + span small { color: rgba(255, 255, 255, .8); }
.slot input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.slot input:disabled + span { background: var(--gray-050); border-color: var(--border-soft); color: var(--gray-400); cursor: not-allowed; text-decoration: line-through; }
.slot input:disabled + span small { color: var(--gray-400); text-decoration: none; }

.slots__empty {
  padding: var(--sp-6); text-align: center; border: 1.5px dashed var(--border);
  border-radius: var(--r-lg); background: var(--gray-050); color: var(--text-muted); font-size: var(--fs-sm);
}
.slots__empty svg { width: 34px; height: 34px; color: var(--gray-400); margin: 0 auto var(--sp-3); }

/* Panneau récapitulatif latéral */
.booking__aside { display: grid; gap: var(--sp-4); position: sticky; top: calc(var(--header-h) + 16px); }
.summary-card { background: var(--ink-900); color: rgba(255, 255, 255, .8); border-radius: var(--r-xl); padding: var(--sp-5); }
.summary-card h3 { color: #fff; font-size: var(--fs-md); margin-bottom: var(--sp-4); display: flex; align-items: center; gap: .5em; }
.summary-card h3 svg { width: 19px; height: 19px; color: var(--brand); }
.summary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); font-size: var(--fs-sm); }
.summary-list li { margin: 0; display: grid; grid-template-columns: 92px 1fr; gap: var(--sp-3); align-items: baseline; }
.summary-list dt, .summary-list .k { color: rgba(255, 255, 255, .55); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.summary-list .v { color: #fff; font-weight: 600; }
.summary-list .v.is-empty { color: rgba(255, 255, 255, .35); font-weight: 400; font-style: italic; }
.summary-card__foot { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-xs); color: rgba(255, 255, 255, .6); }

.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); font-size: var(--fs-sm); }
.aside-card h3 { display: flex; align-items: center; gap: .5em; font-size: var(--fs-base); margin-bottom: var(--sp-3); }
.aside-card h3 .ico { width: 19px; height: 19px; color: var(--brand); }
.aside-card p:last-child { margin-bottom: 0; }

/* Récapitulatif final */
.recap { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.recap__section + .recap__section { border-top: 1px solid var(--border-soft); }
.recap__section { padding: var(--sp-4) var(--sp-5); }
.recap__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.recap__head h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0; }
.recap__edit { background: none; border: 0; padding: .25rem .5rem; font-size: var(--fs-xs); font-weight: 650; color: var(--brand-strong); text-decoration: underline; border-radius: var(--r-sm); }
.recap dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: .5rem var(--sp-4); margin: 0; font-size: var(--fs-sm); }
.recap dt { color: var(--text-muted); }
.recap dd { margin: 0; font-weight: 600; color: var(--ink-900); }

/* Écran de confirmation */
.confirm { text-align: center; padding: var(--sp-6) 0; }
.confirm__icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto var(--sp-5);
  display: flex; align-items: center; justify-content: center;
  background: var(--success-bg); color: var(--success);
  animation: pop var(--t-slow) var(--ease);
}
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.confirm__icon svg { width: 42px; height: 42px; }
.confirm__ref {
  display: inline-block; margin: var(--sp-2) 0 var(--sp-5); padding: .5rem 1.2rem;
  background: var(--gray-100); border-radius: var(--r-md);
  font-family: var(--font-title); font-weight: 700; font-size: var(--fs-lg);
  letter-spacing: .04em; color: var(--ink-900);
}
.confirm .recap { text-align: left; max-width: 620px; margin: 0 auto var(--sp-6); }

/* --------------------------------------------------------------------------
   10. Pied de page
   -------------------------------------------------------------------------- */
.footer { background: var(--ink-900); color: rgba(255, 255, 255, .68); font-size: var(--fs-sm); }
.footer__top { padding-block: var(--sp-9) var(--sp-7); display: grid; gap: var(--sp-7); }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.7fr 1fr 1fr 1.1fr; } }
.footer img.footer__logo { height: 46px; margin-bottom: var(--sp-4); }
.footer h3 {
  color: #fff; font-size: var(--fs-sm); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: var(--sp-4);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer li { margin: 0; }
.footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__contact li { display: flex; align-items: flex-start; gap: .65em; }
.footer__contact svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 3px; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between; font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .5);
}
.footer__legal nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.footer__desc { max-width: 34ch; }

/* --------------------------------------------------------------------------
   11. Fil d'Ariane & bannière de page
   -------------------------------------------------------------------------- */
.pagehead {
  background:
    radial-gradient(760px 380px at 15% 0%, rgba(2, 137, 254, .30), transparent 60%),
    linear-gradient(160deg, #101B2A, var(--ink-900));
  color: rgba(255, 255, 255, .82);
  padding-block: var(--sp-8) var(--sp-9);
}
.pagehead h1 { color: #fff; margin-bottom: var(--sp-3); }
.pagehead p { color: rgba(255, 255, 255, .8); font-size: var(--fs-md); max-width: 62ch; margin-bottom: 0; }

.breadcrumb { margin-bottom: var(--sp-5); font-size: var(--fs-xs); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: .5em; color: rgba(255, 255, 255, .55); }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .3); }
.breadcrumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   12. Pages légales
   -------------------------------------------------------------------------- */
.legal { display: grid; gap: var(--sp-7); }
@media (min-width: 1000px) { .legal { grid-template-columns: 270px minmax(0, 1fr); gap: var(--sp-9); align-items: start; } }

.legal__toc {
  background: var(--gray-050); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
@media (min-width: 1000px) { .legal__toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; } }
.legal__toc h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); margin-bottom: var(--sp-3); }
.legal__toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: .15rem; }
.legal__toc li { margin: 0; }
.legal__toc a {
  display: block; padding: .45rem .6rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--text-muted); text-decoration: none;
  border-left: 2px solid transparent;
}
.legal__toc a:hover { background: #fff; color: var(--brand-strong); border-left-color: var(--brand); }

.legal__body { max-width: 74ch; }
.legal__body h2 {
  font-size: var(--fs-xl); margin-top: var(--sp-8); padding-top: var(--sp-2);
  padding-bottom: var(--sp-3); border-bottom: 2px solid var(--brand-100);
}
.legal__body > h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: var(--fs-md); margin-top: var(--sp-6); }
.legal__body p, .legal__body li { font-size: var(--fs-sm); color: var(--gray-700); }
.legal__body dl { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: .55rem var(--sp-5); font-size: var(--fs-sm); margin: 0 0 var(--sp-5); }
.legal__body dt { font-weight: 650; color: var(--ink-800); }
.legal__body dd { margin: 0; color: var(--gray-700); }
@media (max-width: 520px) { .legal__body dl { grid-template-columns: 1fr; gap: .1rem; } .legal__body dd { margin-bottom: .6rem; } }
.legal__updated { font-size: var(--fs-xs); color: var(--text-muted); padding: var(--sp-3) var(--sp-4); background: var(--gray-050); border-left: 3px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: var(--sp-6); }

/* Formulaire de rétractation imprimable */
.retract-form {
  border: 1.5px dashed var(--gray-400); border-radius: var(--r-md);
  padding: var(--sp-5); background: #fff; font-size: var(--fs-sm); margin-bottom: var(--sp-5);
}
.retract-form p { color: var(--gray-700); }

/* --------------------------------------------------------------------------
   13. Animations d'apparition
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Retour en haut */
.to-top {
  position: fixed; right: var(--sp-4); bottom: calc(58px + var(--sp-4)); z-index: var(--z-sticky);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--ink-900); box-shadow: var(--sh-3);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--brand); color: var(--brand-strong); }
.to-top svg { width: 20px; height: 20px; }
@media (min-width: 1080px) { .to-top { bottom: var(--sp-6); right: var(--sp-6); } }

/* --------------------------------------------------------------------------
   14. Utilitaires
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.nowrap { white-space: nowrap; }
.tabnum { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   15. Accessibilité & impression
   -------------------------------------------------------------------------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --border: var(--gray-400); --text-muted: var(--gray-700); }
}

@media print {
  .topbar, .header, .actionbar, .to-top, .footer__top, .drawer, .btn, .step-actions, .legal__toc { display: none !important; }
  body { padding-bottom: 0; color: #000; background: #fff; }
  .section, .pagehead { padding-block: 1rem; background: none !important; color: #000 !important; }
  .pagehead h1, .pagehead p { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  .card, .recap, .booking__main { border: 1px solid #999; box-shadow: none; }
}

/* --------------------------------------------------------------------------
   16. Compléments pages légales
   -------------------------------------------------------------------------- */
.todo {
  display: inline-block;
  padding: .1rem .5rem;
  border: 1px dashed var(--warn);
  border-radius: var(--r-sm);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: var(--fs-xs);
  font-weight: 600;
}

code {
  padding: .12em .4em;
  background: var(--gray-100);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  color: var(--ink-800);
  word-break: break-word;
}

.legal__body sup { font-size: .7em; }
