/* ==========================================================================
   ÉTAL. — feuille de style
   Couleurs de marque : gris pierre, bleu profond, rouge brique.
   Les autres teintes sont uniquement dérivées de ces trois couleurs.
   ========================================================================== */

/* ---------- Polices hébergées localement (licence SIL Open Font License) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Couleurs de marque */
  --stone: #E9E7E2;
  --blue: #12355B;
  --brick: #B5402A;

  /* Teintes dérivées */
  --stone-light: #F3F2EF;                                    /* pierre éclaircie */
  --stone-2: #DEDBD4;                                        /* pierre un ton plus foncé */
  --stone-3: #C7C2B8;                                        /* pierre pour les filets */
  --blue-deep: #0B2440;                                      /* bleu assombri */
  --blue-2: #1A4674;                                         /* bleu éclairci */
  --blue-ink: color-mix(in srgb, var(--blue) 82%, var(--stone));   /* texte secondaire sur pierre */
  --stone-ink: color-mix(in srgb, var(--stone) 74%, var(--blue));  /* texte secondaire sur bleu */
  --brick-dark: #93321F;                                     /* brique assombrie */
  --brick-tint: color-mix(in srgb, var(--brick) 50%, var(--stone)); /* brique pâle, lisible sur bleu (contraste ≥ 4,5:1) */
  --line-blue: color-mix(in srgb, var(--stone) 18%, transparent);

  /* Typographie */
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* Mouvement */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
  --dur-fast: 350ms;

  /* Mise en page */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1280px;
  --nav-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.accent { color: var(--brick); }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

:focus-visible { outline: 2px solid var(--brick); outline-offset: 4px; }
.why :focus-visible, .cta :focus-visible, .footer :focus-visible, .hero :focus-visible, .plan--featured :focus-visible { outline-color: var(--stone); }

.skip-link {
  position: fixed; top: 0; left: 0; z-index: 200;
  background: var(--brick); color: var(--stone); padding: .7rem 1rem; font-weight: 600;
  transform: translateY(-120%); transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; background: var(--brick);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Soulignement animé ---------- */
.link-u { position: relative; display: inline-flex; align-items: center; gap: .45rem; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform var(--dur-fast) var(--ease);
}
.link-u:hover::after, .link-u:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; color: var(--stone);
  transition: transform var(--dur) var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: var(--blue); box-shadow: 0 1px 0 var(--line-blue);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.nav__inner {
  position: relative; max-width: var(--max); margin-inline: auto;
  padding: 1.35rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-family: var(--font-display); font-weight: 900; font-stretch: 115%;
  font-size: 1.7rem; letter-spacing: .02em; line-height: 1;
  transform-origin: 0 50%; transition: transform var(--dur) var(--ease);
}
.logo span { color: var(--brick); }
.nav__links { display: flex; gap: clamp(1.1rem, 3vw, 2.4rem); font-weight: 500; font-size: .98rem; }
.nav__links a { padding-block: .7rem; min-height: 44px; }

/* Nav compacte : on remonte la barre et on réduit le logo (transform seulement) */
.nav.is-scrolled { transform: translateY(-10px); }
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled .nav__inner { transform: translateY(5px); }
.nav.is-scrolled .logo { transform: scale(.84); }
.nav__inner { transition: transform var(--dur) var(--ease); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--brick); --fg: var(--stone); --fill: var(--blue-deep); --fill-fg: var(--stone); --bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .95rem 1.6rem;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd); border-radius: 2px;
  font: 600 .9rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: var(--fill);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--fill-fg); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn > span { position: relative; }

.btn--brick { --bg: var(--brick); --fg: var(--stone); --fill: var(--blue-deep); }
.hero .btn--brick, .plan--featured .btn--brick { --fill: var(--stone); --fill-fg: var(--blue); }
.btn--ghost { --bg: transparent; --fg: var(--stone); --bd: color-mix(in srgb, var(--stone) 55%, transparent); --fill: var(--stone); --fill-fg: var(--blue); }
.btn--blue { --bg: var(--blue); --fg: var(--stone); --fill: var(--brick); }
.btn--line { --bg: transparent; --fg: var(--blue); --bd: var(--blue); --fill: var(--blue); --fill-fg: var(--stone); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--blue); color: var(--stone);
  display: grid; overflow: hidden;
  padding-block: var(--nav-h) 0;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; gap: 1.5rem; align-content: center;
  padding-block: 2.2rem 3rem;
}
.hero__title {
  font-family: var(--font-display); font-weight: 900; font-stretch: 104%;
  font-size: clamp(2.35rem, 10.6vw, 7.4rem);
  line-height: .92; letter-spacing: -.015em;
}
.hero__title .line { display: block; overflow: hidden; padding-block: .1em .06em; margin-block: -.1em -.06em; }
.hero__title .w { display: inline-block; }
.hero__title .nowrap { white-space: nowrap; }
.hero__title .w--accent { color: var(--brick-tint); }
.hero__lede { max-width: 34rem; font-size: 1.08rem; color: var(--stone-ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

.hero__media { position: relative; z-index: 1; padding-inline: var(--gutter); order: 2; padding-bottom: 3.5rem; }
.hero__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 2px; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; }

.badge {
  position: absolute; z-index: 3;
  right: calc(var(--gutter) - .5rem); bottom: 1.2rem;
  width: 136px; aspect-ratio: 1; max-width: 100%;
  display: grid; place-items: center;
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge__bg { fill: var(--brick); }
.badge text { fill: var(--stone); font: 700 10.5px var(--font-body); letter-spacing: .02em; }
.badge__ring { transform-origin: 100px 100px; }
/* Un seul tour à l'arrivée, puis rotation seulement au survol (WCAG 2.2.2 : pas de mouvement continu imposé) */
.is-loaded .badge__ring { animation: spin 1600ms var(--ease) 1100ms 1 both; }
.badge:hover .badge__ring { animation: spin 8s linear infinite; }
.badge__num {
  position: relative; display: grid; justify-items: center;
  font-family: var(--font-display); font-weight: 900; font-stretch: 112%;
  font-size: 1.85rem; line-height: .9; color: var(--stone);
}
.badge__num small { font: 600 .58rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-top: .2rem; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 640px) and (max-width: 959px) {
  .hero__frame { aspect-ratio: 16 / 9; }
  .hero__title { font-size: clamp(3rem, 9vw, 5rem); }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); min-height: min(100svh, 920px); }
  .hero__inner {
    grid-column: 1; grid-row: 1; max-width: none; margin-inline: 0;
    padding-block: 4rem 5rem;
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    padding-right: 7rem;
  }
  .hero__title { font-size: clamp(3.5rem, 5.5vw, 6.2rem); }
  .hero__media {
    grid-column: 2; grid-row: 1; order: 0; padding: 0;
    align-self: stretch; margin-top: calc(var(--nav-h) * -1);
  }
  .hero__frame { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
  .badge { width: 168px; left: -84px; right: auto; bottom: 14%; }
  .badge__num { font-size: 2.7rem; }
  .badge__num small { font-size: .72rem; }
}

/* Révélation du hero (seulement si JS actif) */
.js .hero__title .w { transform: translateY(105%); opacity: 0; }
.js .hero__fade { transform: translateY(24px); opacity: 0; }
.js .badge { transform: scale(.6) rotate(-25deg); opacity: 0; }
.js .hero__img { opacity: 0; }
.hero .w, .hero__fade, .badge, .hero__img {
  transition:
    transform 700ms var(--ease) calc(var(--i, 0) * 70ms + 40ms),
    opacity 700ms var(--ease) calc(var(--i, 0) * 70ms + 40ms);
}
/* Le paragraphe d'accueil (plus grand bloc de texte, donc élément LCP) apparaît presque tout de suite */
.hero__fade { transition-delay: calc((var(--i, 5) - 5) * 80ms + 60ms); }
.is-loaded .hero__title .w, .is-loaded .hero__fade { transform: none; opacity: 1; }
.is-loaded .hero__img { opacity: 1; transition: opacity 800ms var(--ease) 100ms; }
.is-loaded .badge { transform: none; opacity: 1; transition-delay: 1050ms; }

/* ---------- Apparition au scroll ---------- */
.js [data-reveal] {
  opacity: 0; translate: 0 32px;
  transition: opacity var(--dur) var(--ease) var(--d, 0ms), translate var(--dur) var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- Sections ---------- */
section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

/* ---------- Services (bento) ---------- */
.services__head { display: grid; gap: 1.6rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.services__intro { display: grid; gap: 1.2rem; align-content: end; font-size: 1.12rem; color: var(--blue-ink); }
.link-arrow { font-weight: 600; color: var(--brick); letter-spacing: .02em; justify-self: start; }
.link-arrow svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.bento { display: grid; gap: 2.6rem 1.5rem; }
.tile { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.tile__media { overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--blue-deep); border-radius: 2px; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__body { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1.1rem; padding-bottom: 1.2rem; }
.tile__num {
  grid-row: span 2;
  font-family: var(--font-display); font-weight: 800; font-stretch: 110%;
  font-size: 2.6rem; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.25px var(--brick);
}
.tile h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: 1.45rem; line-height: 1.1; text-transform: uppercase; }
.tile p { color: var(--blue-ink); max-width: 34rem; }
.rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--stone-3);
}
.rule::after {
  content: ""; position: absolute; inset: 0; background: var(--brick);
  transform: scaleX(.12); transform-origin: 0 50%;
  transition: transform 700ms var(--ease);
}
.tile:hover .rule::after { transform: scaleX(1); }

.services__foot { margin-top: clamp(2.5rem, 6vw, 4rem); display: flex; justify-content: center; }

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--a { grid-column: 1 / -1; }
  .tile--a .tile__media { aspect-ratio: 16 / 9; }
}
@media (min-width: 960px) {
  .services__head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3.5rem 2rem; }
  .tile--a { grid-column: 1 / 8; }
  .tile--b { grid-column: 8 / 13; margin-top: 4rem; }
  .tile--c { grid-column: 1 / 5; }
  .tile--d { grid-column: 5 / 9; margin-top: 3rem; }
  .tile--e { grid-column: 9 / 13; margin-top: 6rem; }
  .tile--a .tile__media { aspect-ratio: 16 / 10; }
  .tile--b .tile__media { aspect-ratio: 4 / 3.3; }
  .tile--a .tile__num, .tile--b .tile__num { font-size: 4rem; }
  .tile--a h3, .tile--b h3 { font-size: 1.9rem; }
  .services__foot { justify-content: flex-start; margin-top: -2rem; }
}

/* ---------- Processus (ligne du temps) ---------- */
.process { background: var(--stone-2); }
.timeline { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.timeline__steps { display: grid; gap: 3rem; }
.timeline__track {
  position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px;
  background: var(--stone-3);
}
.timeline__fill {
  position: absolute; inset: 0; background: var(--brick);
  transform: scaleY(0); transform-origin: 50% 0;
}
.step { position: relative; padding-left: 2.8rem; display: grid; gap: .5rem; min-width: 0; }
.step__num {
  font-family: var(--font-display); font-weight: 800; font-stretch: 112%;
  font-size: 4.2rem; line-height: .85;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue);
}
.step__dot {
  position: absolute; left: 0; top: 1.3rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--stone-2); border: 2px solid var(--blue);
}
.step__dot::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--brick);
  transform: scale(0); transition: transform 500ms var(--ease);
}
.step.is-active .step__dot::after { transform: scale(1); }
.step h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; }
.step p { color: var(--blue-ink); max-width: 30rem; }

@media (min-width: 960px) {
  .timeline__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
  .timeline__track { left: 0; right: 0; top: calc(6rem + 1.4rem + 7px); bottom: auto; width: auto; height: 2px; }
  .timeline__fill { transform: scaleX(0); transform-origin: 0 50%; }
  .step { padding-left: 0; padding-top: 0; gap: 0; }
  .step__num { font-size: 6rem; height: 6rem; display: flex; align-items: flex-end; }
  .step__dot { position: relative; top: auto; margin-block: 1.4rem 1.6rem; }
  .step h3 { margin-bottom: .6rem; }
}

/* ---------- Pourquoi ÉTAL. ---------- */
.why { background: var(--blue); color: var(--stone); }
.why .accent { color: var(--brick-tint); }
.why__grid { display: grid; gap: 3rem; }
.why__head { display: grid; gap: 1.3rem; align-content: start; }
.why .eyebrow { color: var(--brick-tint); }
.why__sub { font-size: 1.15rem; color: var(--stone-ink); max-width: 28rem; }
.why__list { border-top: 1px solid var(--line-blue); }
.why__list li {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .35rem 1rem;
  padding-block: 1.8rem; border-bottom: 1px solid var(--line-blue);
}
.why__num { grid-row: span 2; font-size: .85rem; font-weight: 600; letter-spacing: .12em; color: var(--brick-tint); padding-top: .55rem; }
.why__list h3 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 106%;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.02; text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease);
}
.why__list p { color: var(--stone-ink); max-width: 34rem; }
.why__list li:hover h3 { transform: translateX(8px); }

@media (min-width: 960px) {
  .why__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; }
  .why__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .why .display { font-size: clamp(2.4rem, 4.3vw, 3.9rem); }
  .why__list li { grid-template-columns: 4.5rem minmax(0, 1fr); padding-block: 2.2rem; }
}

/* ---------- Forfaits ---------- */
.plans__grid { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: 2.2rem clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--stone-3); border-radius: 2px;
  background: transparent; min-width: 0;
}
.plan::after {
  content: ""; position: absolute; inset: -1px; border: 1.5px solid var(--brick); border-radius: 2px;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease);
}
.plan:not(.plan--featured):hover::after, .plan:not(.plan--featured):focus-within::after { opacity: 1; }
.plan__name {
  font-family: var(--font-display); font-weight: 900; font-stretch: 104%;
  font-size: clamp(1.6rem, 2.3vw, 2.05rem); line-height: 1; letter-spacing: .01em;
}
.plan__tag { font-weight: 600; font-size: 1.1rem; }
.plan__desc { color: var(--blue-ink); }
.plan__list { display: grid; gap: .7rem; padding-top: 1.2rem; border-top: 1px solid var(--stone-3); margin-top: .3rem; }
.plan__list li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .7rem; align-items: start; }
.plan__list li::before {
  content: ""; width: 1.1rem; height: 1.1rem; margin-top: .22rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7.5 12.3l3 3 6-6.3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7.5 12.3l3 3 6-6.3'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--brick);
}
.plan__price { display: grid; gap: .2rem; padding-top: 1rem; }
.plan__price strong { font-family: var(--font-display); font-weight: 800; font-stretch: 106%; font-size: 1.7rem; line-height: 1.1; color: var(--brick); }
.plan__price span { color: var(--blue-ink); font-size: .95rem; }
.plan__price span:only-child { font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: 1.2rem; line-height: 1.2; color: var(--blue); }
.plan--featured .plan__price span:only-child { color: var(--stone); }
.plan .btn { margin-top: auto; width: 100%; padding-inline: 1rem; font-size: .84rem; letter-spacing: .06em; white-space: nowrap; }
.plan__list { margin-bottom: 1.2rem; }

.plan--featured { background: var(--blue); color: var(--stone); border-color: var(--blue); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--blue-deep) 70%, transparent); }
.plan--featured .plan__desc { color: var(--stone-ink); }
.plan--featured .plan__list { border-top-color: var(--line-blue); }
.plan--featured .plan__list li::before { color: var(--brick-tint); }
.plan__label {
  align-self: flex-start;
  background: var(--brick); color: var(--stone);
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .45rem .75rem; border-radius: 2px; margin-bottom: .2rem;
}

@media (min-width: 960px) {
  .plans__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; padding-top: 1.5rem; }
  .plan--featured { transform: translateY(-1.5rem); }
  .plan--featured .plan__label { position: absolute; top: 0; left: clamp(1.4rem, 3vw, 2.2rem); transform: translateY(-50%); margin: 0; }
}

/* ---------- Contact : CTA final + formulaire ---------- */
.contact { background: var(--blue-deep); color: var(--stone); overflow: hidden; }
.contact__wrap { display: grid; gap: 3rem; }
.contact__head { display: grid; gap: 1.6rem; align-content: start; }
.cta__title {
  font-family: var(--font-display); font-weight: 900; font-stretch: 106%;
  font-size: clamp(2.3rem, 10vw, 5.4rem); line-height: .92; letter-spacing: -.015em;
}
.contact .accent { color: var(--brick-tint); }
.cta__text { font-size: 1.15rem; color: var(--stone-ink); max-width: 30rem; }

.form { display: grid; gap: 2rem 2.2rem; align-content: start; }
.field { position: relative; min-width: 0; }
.field input, .field textarea {
  width: 100%; display: block;
  padding: 1.6rem 0 .7rem; border: 0; border-bottom: 1.5px solid color-mix(in srgb, var(--stone) 32%, transparent); border-radius: 0;
  background: transparent; color: var(--stone);
  font: 400 1.08rem/1.4 var(--font-body);
  outline: none; resize: vertical;
}
.field textarea { min-height: 8.5rem; }
.field label {
  position: absolute; left: 0; top: 1.6rem;
  color: var(--stone-ink); font-size: 1.08rem; pointer-events: none;
  transform-origin: 0 0;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.45rem) scale(.78); color: var(--brick-tint);
}
.field__line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brick);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 500ms var(--ease);
}
.field input:focus ~ .field__line, .field textarea:focus ~ .field__line { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--brick-tint); }
.field.is-invalid label { color: var(--brick-tint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact :focus-visible { outline-color: var(--stone); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta__delay {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--stone-ink); font-weight: 500; font-size: .95rem;
}
.cta__delay svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--brick-tint); stroke-width: 1.8; stroke-linecap: round; }
.form__status { flex-basis: 100%; font-weight: 500; min-height: 1.6em; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--brick-tint); }
.form__status.is-success { color: var(--stone); }

.btn__spinner {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 2px solid color-mix(in srgb, var(--stone) 35%, transparent); border-top-color: var(--stone);
  border-radius: 50%; opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.btn__label { transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0; transform: translateY(-6px); }
.btn.is-loading .btn__spinner { opacity: 1; animation: spin 700ms linear infinite; }
.contact .btn--brick { --fill: var(--stone); --fill-fg: var(--blue); }
.contact .btn--brick.is-loading .btn__spinner { border-color: color-mix(in srgb, var(--stone) 35%, transparent); border-top-color: var(--stone); }

@media (min-width: 720px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full, .form__foot { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .contact__wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: start; }
  .contact__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .cta__title { font-size: clamp(3rem, 5.4vw, 5.2rem); }
}

/* ---------- Pied de page ---------- */
.footer { background: var(--blue-deep); color: var(--stone); border-top: 1px solid var(--line-blue); padding-top: 3.5rem; }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
.logo--lg { font-size: 2.6rem; display: inline-block; }
.footer__slogan { margin-top: 1rem; color: var(--stone-ink); }
.footer__title { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brick-tint); margin-bottom: 1rem; }
.footer__links { display: grid; gap: .75rem; align-content: start; font-weight: 500; }
.footer__links address { font-style: normal; color: var(--stone-ink); font-weight: 400; display: grid; gap: .2rem; }
.footer__links button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.footer__top svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-fast) var(--ease); }
.footer__top:hover svg { transform: translateY(-3px); }
.footer__legal { border-top: 1px solid var(--line-blue); padding-block: 1.4rem; font-size: .88rem; color: var(--stone-ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
.footer__legal a { color: var(--stone); }
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Espaces réservés à remplir ---------- */
.ph { background: color-mix(in srgb, var(--brick) 16%, transparent); color: inherit; padding: 0 .2em; border-radius: 2px; font-weight: 600; }
.footer .ph, .page-head .ph, .consent .ph { background: color-mix(in srgb, var(--brick-tint) 20%, transparent); color: var(--stone); }

/* ---------- Avis sous le formulaire et mention de prix ---------- */
.form__notice { grid-column: 1 / -1; font-size: .92rem; color: var(--stone-ink); max-width: 46rem; }
.form__notice a, .plans__note a { text-decoration: underline; text-underline-offset: 3px; }
.form__notice a { color: var(--stone); }
.plans__note { margin-top: 2.6rem; font-size: .95rem; color: var(--blue-ink); display: flex; gap: .6rem; align-items: flex-start; max-width: 52rem; }
.plans__note svg { width: 1.15rem; height: 1.15rem; margin-top: .2rem; fill: none; stroke: var(--brick); stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Pages légales ---------- */
.page-head { background: var(--blue); color: var(--stone); padding-block: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem)) clamp(2.8rem, 6vw, 4.5rem); }
.page-head .eyebrow { color: var(--brick-tint); margin-bottom: 1rem; }
.page-head h1 { font-family: var(--font-display); font-weight: 900; font-stretch: 106%; font-size: clamp(1.7rem, 7vw, 4.8rem); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; max-width: 16ch; overflow-wrap: break-word; hyphens: auto; }
.page-head__meta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .4rem 2rem; color: var(--stone-ink); font-size: .95rem; }

.legal { padding-block: clamp(3rem, 7vw, 6rem); }
.legal__grid { display: grid; gap: 2.5rem; }
.toc { font-size: .95rem; }
.toc p { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: .9rem; }
.toc ol { display: grid; gap: .55rem; counter-reset: toc; border-left: 1px solid var(--stone-3); padding-left: 1rem; }
.toc a { color: var(--blue-ink); }
.toc a:hover { color: var(--blue); }

.prose { max-width: 46rem; min-width: 0; }
.prose > section { padding-block: 0; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.prose > section + section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--stone-3); }
.prose h2 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 104%;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.1; text-transform: uppercase; margin-bottom: 1.1rem;
  display: flex; gap: .8rem; align-items: baseline;
}
.prose h2 .n { font-size: .8em; color: transparent; -webkit-text-stroke: 1.1px var(--brick); flex: none; }
.prose h3 { font-weight: 600; font-size: 1.08rem; margin: 1.6rem 0 .5rem; }
.prose p, .prose ul, .prose ol, .prose .table-wrap { margin-bottom: 1rem; }
.prose p, .prose li { color: var(--blue-ink); }
.prose strong { color: var(--blue); }
.prose ul { display: grid; gap: .5rem; }
.prose ul li { position: relative; padding-left: 1.3rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .5rem; height: 1.5px; background: var(--brick); }
.prose a { color: var(--brick); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brick-dark); }
.prose .callout { border-left: 2px solid var(--brick); padding: .2rem 0 .2rem 1.1rem; }
.prose .contact-card { display: grid; gap: .25rem; padding: 1.2rem 1.3rem; border: 1px solid var(--stone-3); border-radius: 2px; font-style: normal; color: var(--blue-ink); margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--stone-3); border-radius: 2px; }
.prose table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--stone-3); color: var(--blue-ink); }
.prose th { background: var(--stone-2); color: var(--blue); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose .btn { margin-top: .4rem; }
@media (min-width: 960px) {
  .legal__grid { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 5rem; }
  .toc__inner { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

/* ---------- Bannière de consentement aux témoins ---------- */
.consent {
  position: fixed; z-index: 150;
  left: 0; right: 0; bottom: 0;
  padding: 0 max(.75rem, env(safe-area-inset-right, 0px)) max(.75rem, env(safe-area-inset-bottom, 0px)) max(.75rem, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.consent__box {
  pointer-events: auto;
  max-width: 980px; margin-inline: auto;
  max-height: min(86vh, 640px); overflow-y: auto;
  background: var(--blue-deep); color: var(--stone);
  border: 1px solid var(--line-blue); border-top: 3px solid var(--brick);
  box-shadow: 0 24px 60px -20px rgba(11, 36, 64, .55);
  padding: 1.4rem clamp(1.1rem, 3vw, 2rem);
  display: grid; gap: 1.1rem;
  transform: translateY(24px); opacity: 0;
  transition: transform 600ms var(--ease), opacity 600ms var(--ease);
}
.consent.is-open .consent__box { transform: none; opacity: 1; }
.consent h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 104%; font-size: 1.25rem; text-transform: uppercase; line-height: 1.1; }
.consent p { color: var(--stone-ink); font-size: .95rem; max-width: 60rem; }
.consent a { color: var(--stone); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: grid; gap: .6rem; }
.consent .btn { --bg: transparent; --fg: var(--stone); --bd: color-mix(in srgb, var(--stone) 60%, transparent); --fill: var(--stone); --fill-fg: var(--blue); min-height: 48px; width: 100%; }
.consent__prefs { display: grid; gap: .2rem; border: 0; padding: 0; margin: 0; }
.consent__prefs legend { font-weight: 600; margin-bottom: .4rem; }
.pref { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: center; padding-block: .85rem; border-top: 1px solid var(--line-blue); }
.pref label { font-weight: 600; cursor: pointer; }
.pref p { grid-column: 1; font-size: .88rem; }
.pref input { grid-row: 1 / span 2; grid-column: 2; }
/* Interrupteur accessible basé sur une vraie case à cocher */
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 13px; margin: 0; position: relative; cursor: pointer;
  background: color-mix(in srgb, var(--stone) 22%, transparent); border: 1px solid color-mix(in srgb, var(--stone) 55%, transparent); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--stone); transition: transform var(--dur-fast) var(--ease); }
.switch:checked { background: var(--brick); border-color: var(--brick); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .6; cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }
@media (min-width: 720px) {
  .consent__actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .js .hero__title .w, .js .hero__fade, .js .badge, .js .hero__img,
  .js [data-reveal] { opacity: 1 !important; transform: none !important; translate: none !important; }
  .hero__img { transform: none !important; }
  .timeline__fill { transform: none !important; }
  .step__dot::after { transform: scale(1) !important; }
  .consent__box { transform: none !important; }
}

/* ---------- Questionnaire de soumission ---------- */
.quiz { background: var(--blue); color: var(--stone); padding-block: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)) clamp(4rem, 8vw, 6.5rem); min-height: min(100svh, 980px); }
.quiz .accent { color: var(--brick-tint); }
.quiz__wrap { display: grid; gap: 2.5rem; align-items: start; }
.quiz__head { display: grid; gap: 1.2rem; align-content: start; }
.quiz__head .eyebrow { color: var(--brick-tint); }
.quiz__head h1 { font-family: var(--font-display); font-weight: 900; font-stretch: 106%; font-size: clamp(2.2rem, 7vw, 4.6rem); line-height: .94; letter-spacing: -.01em; text-wrap: balance; }
.quiz__lede { color: var(--stone-ink); font-size: 1.1rem; max-width: 30rem; }
.quiz__forfait { justify-self: start; display: inline-flex; gap: .4rem; align-items: center; padding: .5rem .85rem; border: 1px solid var(--line-blue); border-radius: 2px; font-size: .95rem; color: var(--stone-ink); }
.quiz__forfait strong { color: var(--stone); font-weight: 600; }

.quiz__panel { min-width: 0; display: grid; gap: 1.6rem; }
html:not(.js) .quiz__progress { display: none; }
.quiz__count { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brick-tint); margin-bottom: .7rem; font-variant-numeric: tabular-nums; }
.quiz__bar { height: 3px; background: var(--line-blue); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; background: var(--brick); transform-origin: 0 50%; transform: scaleX(.2); transition: transform 600ms var(--ease); }

.quiz__form { display: grid; gap: 1.4rem; }
.qstep { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.1rem; }
.quiz__form:not(.is-stepped) .qstep + .qstep { margin-top: 2.5rem; }
.qstep__q { font-family: var(--font-display); font-weight: 800; font-stretch: 104%; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05; text-transform: uppercase; padding: 0; margin-bottom: 1.4rem; outline: none; }
.qstep__hint { color: var(--stone-ink); margin-top: -1.2rem; margin-bottom: .4rem; }
.qstep.is-forward { animation: quiz-in-fwd 550ms var(--ease) both; }
.qstep.is-back { animation: quiz-in-back 550ms var(--ease) both; }
@keyframes quiz-in-fwd { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes quiz-in-back { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }

.opts { display: flex; flex-direction: column; gap: 1rem; }
.opt {
  position: relative; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 1rem; align-items: center;
  width: 100%; padding: 1.15rem 1.25rem; border: 1px solid var(--line-blue); border-radius: 2px; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}
.opt::after { content: ""; position: absolute; inset: -1px; border: 1.5px solid var(--brick-tint); border-radius: 2px; opacity: 0; transition: opacity var(--dur-fast) var(--ease); pointer-events: none; }
.opt::before { content: ""; position: absolute; inset: 0; background: var(--brick); opacity: 0; transition: opacity var(--dur-fast) var(--ease); pointer-events: none; }
.opt:hover { transform: translateX(4px); }
.opt:hover::after { opacity: .55; }
.opt:has(input:checked)::after { opacity: 1; }
.opt:has(input:checked)::before { opacity: .16; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__ui { position: relative; width: 1.4rem; height: 1.4rem; border: 1.5px solid color-mix(in srgb, var(--stone) 65%, transparent); border-radius: 3px; display: grid; place-items: center; }
.opt input[type="radio"] + .opt__ui { border-radius: 50%; }
.opt__ui::after { content: ""; width: .7rem; height: .7rem; background: var(--brick-tint); border-radius: 1px; transform: scale(0); transition: transform var(--dur-fast) var(--ease); }
.opt input[type="radio"] + .opt__ui::after { border-radius: 50%; }
.opt input:checked + .opt__ui { border-color: var(--brick-tint); }
.opt input:checked + .opt__ui::after { transform: scale(1); }
.opt input:focus-visible + .opt__ui { outline: 2px solid var(--stone); outline-offset: 3px; }
.opt__text { position: relative; font-size: 1.05rem; font-weight: 500; }

.fields { display: flex; flex-direction: column; gap: 1.2rem; }
/* Champs du questionnaire : vraies zones de saisie bien visibles */
.field--quiz { width: 100%; }
.field--quiz input {
  font-size: 1.1rem; padding: 1.7rem 1rem .75rem; min-height: 3.6rem;
  background: color-mix(in srgb, var(--stone) 7%, transparent);
  border: 1px solid var(--line-blue); border-bottom: 1.5px solid color-mix(in srgb, var(--stone) 45%, transparent); border-radius: 2px;
  cursor: text;
}
.field--quiz input:focus { background: color-mix(in srgb, var(--stone) 11%, transparent); }
.field--quiz label { left: 1rem; top: 1.2rem; }
.field--quiz input:focus + label, .field--quiz input:not(:placeholder-shown) + label { transform: translateY(-.7rem) scale(.78); }
.qstep > .field--quiz { margin-top: .4rem; }

.recap { display: grid; border-top: 1px solid var(--line-blue); }
.recap > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line-blue); }
.recap dt { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brick-tint); }
.recap dd { margin: 0; grid-column: 1; color: var(--stone); overflow-wrap: anywhere; }
.recap__edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: none; border: 0; padding: 0; color: var(--stone-ink); font: 500 .92rem var(--font-body); cursor: pointer; }
.recap__edit:hover { color: var(--stone); }
.quiz__notice { font-size: .92rem; color: var(--stone-ink); }
.quiz__notice a { color: var(--stone); text-decoration: underline; text-underline-offset: 3px; }
.quiz__error { color: var(--brick-tint); font-weight: 600; min-height: 1.5em; }

.quiz__nav { display: flex; flex-wrap: wrap; gap: .8rem; }
.quiz__nav .btn { flex: 1 1 10rem; }
.quiz__form:not(.is-stepped) #q-prev, .quiz__form:not(.is-stepped) #q-next, .quiz__form:not(.is-stepped) [data-step="5"] .qstep__q { display: none; }
.quiz .btn--brick { --fill: var(--stone); --fill-fg: var(--blue); }

.quiz__done { display: grid; gap: 1.1rem; justify-items: start; padding-top: .5rem; outline: none; }
.quiz__done .eyebrow { color: var(--brick-tint); }
.quiz__done h2 { font-family: var(--font-display); font-weight: 900; font-stretch: 106%; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: .95; }
.quiz__done p { color: var(--stone-ink); max-width: 32rem; }

@media (min-width: 960px) {
  .quiz__wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; }
  .quiz__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .quiz__nav .btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .qstep.is-forward, .qstep.is-back { animation: none !important; }
}

.opts--consent { margin-top: 1.6rem; }
.opts--consent .opt__text { font-size: .98rem; font-weight: 500; }
.quiz__nav .btn { white-space: nowrap; }
