:root {
  --bg:          #F2F5F0;
  --surface:     #FFFFFF;
  --surface-2:   #E8EEE6;
  --ink:         #0F2118;
  --ink-2:       #4A5C51;
  /* #7A8B80 tombait à 3,05:1 sur les fonds clairs : sous le seuil AA de 4,5
     pour du petit texte (étiquettes mono, fil d'Ariane, aides de formulaire). */
  --ink-3:       #5A6B60;
  --line:        #D5E0D4;
  /* Couleurs reprises du logo officiel (logo-siny.svg) */
  --green:       #008753;
  --green-deep:  #00603A;   /* variante lisible pour le texte sur fond clair */
  --green-soft:  #E2F1E9;
  --pin:         #CF2027;
  --pin-deep:    #A81820;
  --on-green:    #FFFFFF;

  --rail: 1200px;
  --gut:  clamp(1.25rem, 4vw, 2.5rem);
  --step: clamp(3.5rem, 7vw, 6rem);

  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* Le site est volontairement clair en toutes circonstances : il ne suit pas
   le thème sombre du système. Toutes les couleurs sont définies explicitement. */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* l'en-tête collant ne doit plus recouvrir la cible d'une ancre */
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: .75rem 1.1rem;
  z-index: 200;
}
.skip:focus { left: .5rem; top: .5rem; }

.rail { max-width: var(--rail); margin-inline: auto; padding-inline: var(--gut); }

.mono {
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--ink-3); margin: 0 0 1.3rem; }
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin);
  flex: none;
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -.018em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
p { text-wrap: pretty; }

/* ---------- en-tête ---------- */
/* Barre utilitaire : donne de la profondeur et sort le contact du menu principal */
.topbar {
  background: var(--ink);
  color: rgba(233,242,234,.82);
  font-size: .82rem;
}
.topbar__in {
  max-width: var(--rail);
  margin-inline: auto;
  padding: .5rem var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar__left { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #FFFFFF; }
.topbar svg { width: 14px; height: 14px; opacity: .75; }
.topbar__tag { color: rgba(233,242,234,.55); }
@media (max-width: 700px) { .topbar__tag { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}


.nav__in {
  max-width: var(--rail);
  margin-inline: auto;
  padding: .85rem var(--gut);
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.5vw, 2rem);
}
.logo { display: block; flex: none; }
.logo img { height: 38px; width: auto; }
@media (max-width: 560px) { .logo img { height: 32px; } }

.nav__links { display: flex; gap: clamp(1rem, 2vw, 1.7rem); margin-left: auto; align-items: center; }
.nav__links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);           /* contraste plein, plus le gris pâle d'avant */
  text-decoration: none;
  padding: .35rem 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--green-deep); }

/* menu repliable en dessous de 900px, sans JavaScript */
.nav__toggle { display: none; }
.nav__burger { display: none; }
@media (max-width: 900px) {
  .nav__burger {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--surface);
    color: var(--ink);
    font: 600 .9rem var(--f-body);
    cursor: pointer;
  }
  .nav__burger svg { width: 18px; height: 18px; }
  .nav__links {
    order: 5;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
    border-top: 1px solid var(--line);
    margin-top: .85rem;
    padding-top: .35rem;
  }
  .nav__links a { padding: .8rem .2rem; border-bottom: 1px solid var(--line-soft, var(--line)); }
  .nav__links a::after { display: none; }
  .nav__toggle:checked ~ .nav__links { display: flex; }
  .nav__in { flex-wrap: wrap; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-body);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  padding: .72rem 1.25rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn--pin { background: var(--pin); color: #FFFFFF; border-color: var(--pin); }
.btn--pin:hover { background: var(--pin-deep); border-color: var(--pin-deep); }
.btn--green { background: var(--green); color: var(--on-green); border-color: var(--green); }
.btn--green:hover { background: var(--green-deep); }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--green); color: var(--green-deep); }
.btn--onphoto { background: var(--surface); color: var(--ink); border-color: rgba(15,33,24,.18); }
.btn--onphoto:hover { border-color: var(--green); color: var(--green-deep); }
.nav .btn--nav { flex: none; }
@media (max-width: 900px) { .nav .btn--nav { display: none; } }

/* ---------- bannière d'accueil ---------- */
.hero { position: relative; background: var(--surface-2); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 64% 45%; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(96deg,
    rgba(255,255,255,.97) 0%,
    rgba(255,255,255,.94) 32%,
    rgba(255,255,255,.70) 50%,
    rgba(255,255,255,.08) 74%,
    rgba(255,255,255,0) 100%);
}
@media (max-width: 820px) {
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(255,255,255,.28) 0%,
      rgba(255,255,255,.88) 36%,
      var(--bg) 60%);
  }
}

.hero__in {
  position: relative;
  max-width: var(--rail);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gut) clamp(3rem, 6vw, 5rem);
  min-height: clamp(420px, 56vw, 590px);
  display: flex;
  align-items: center;
}
.hero__col { max-width: 40rem; }
.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 4.05rem);
  font-weight: 900;
  font-stretch: 122%;
  letter-spacing: -.035em;
  line-height: .99;
}
.hero h1 em { font-style: normal; color: var(--green-deep); }
.hero__sub {
  margin: 1.4rem 0 0;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  max-width: 32rem;
}
.hero__stat b {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.hero__stat span { color: var(--ink-3); font-size: .76rem; }
@media (max-width: 820px) { .hero__in { min-height: 0; padding-top: clamp(13rem, 44vw, 19rem); } }

/* ---------- sections ---------- */
.sec {
  /* padding-block et non le raccourci : `padding: var(--step) 0` remettait à
     zéro le padding-inline de .rail (même spécificité, règle plus tardive),
     donc le texte touchait les bords sous 1200 px de large. */
  padding-block: var(--step);
}
.sec__head { max-width: 58ch; margin-bottom: clamp(2.1rem, 4.5vw, 3rem); }
.sec__head h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
.sec__head p { margin: 1rem 0 0; color: var(--ink-2); font-size: 1.04rem; }

/* services */
.services {
  display: grid;
  /* six cases, donc trois colonnes : un damier 3x2 complet.
     auto-fit donnait 4+2 sur grand écran, avec deux cases vides. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 940px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.svc {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background-color .2s;
}
.svc:hover { background: var(--green-soft); }
.svc__img { aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface-2); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.svc:hover .svc__img img { transform: scale(1.035); }
.svc__body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.svc h3 { font-size: 1.1rem; font-weight: 800; font-stretch: 108%; }
.svc p { margin: 0; font-size: .91rem; line-height: 1.5; color: var(--ink-2); }
.svc__tag { margin-top: auto; padding-top: .85rem; color: var(--ink-3); display: flex; align-items: center; gap: .4rem; }
.svc__tag b { color: var(--green-deep); font-weight: 600; }
.svc__arrow { transition: transform .2s; }
.svc:hover .svc__arrow { transform: translateX(3px); }

.svc--cta {
  background: var(--green);
  color: #FFFFFF;
  justify-content: center;
  padding: clamp(1.6rem, 3vw, 2.1rem) 1.4rem;
  gap: .7rem;
}
.svc--cta:hover { background: var(--green-deep); }
.svc--cta h3 { color: #FFFFFF; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.svc--cta p { color: rgba(255,255,255,.85); margin: 0; font-size: .93rem; line-height: 1.5; }
.svc--cta .svc__tag { color: rgba(255,255,255,.9); margin-top: 1.1rem; padding-top: 0; }

/* bandeau photo */
.band { position: relative; overflow: hidden; }
.band picture, .band img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band img { object-fit: cover; }
.band__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(88deg, rgba(9,52,30,.94) 0%, rgba(9,52,30,.84) 42%, rgba(9,52,30,.38) 100%);
}
.band__in {
  position: relative;
  max-width: var(--rail);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gut);
  min-height: clamp(260px, 30vw, 360px);
  display: flex;
  align-items: center;
}
.band__txt { max-width: 34rem; color: #FFFFFF; }
.band__txt .eyebrow { color: rgba(255,255,255,.72); }
.band__txt h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: #FFFFFF; }
.band__txt p { margin: 1rem 0 0; color: rgba(255,255,255,.87); font-size: 1.04rem; max-width: 42ch; }
.band__cta { margin-top: 1.75rem; }
.btn--onband { background: #FFFFFF; color: #0F2118; border-color: #FFFFFF; }
.btn--onband:hover { background: #E4F0E8; border-color: #E4F0E8; }

/* étapes */
.steps {
  display: grid;
  /* Colonnes figées sur le nombre réel d'étapes : auto-fit produisait 4 colonnes
     pour 3 étapes, laissant une case vide en bout de rangée. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  counter-reset: step;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; }
.step__n {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .78rem;
  color: var(--pin);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .85rem;
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.step__n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h3 { font-size: 1.08rem; font-weight: 800; font-stretch: 108%; margin-bottom: .5rem; }
.step p { margin: 0; font-size: .93rem; color: var(--ink-2); line-height: 1.55; }

/* atouts */
.feats-wrap { background: var(--surface); border-block: 1px solid var(--line); }
.feats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
}
@media (max-width: 1080px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .feats { grid-template-columns: 1fr; } }
.feat__ico { color: var(--green-deep); margin-bottom: .8rem; }
.feat__ico svg { width: 26px; height: 26px; }
.feat h3 { font-size: 1.04rem; font-weight: 800; font-stretch: 108%; margin-bottom: .45rem; }
.feat p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink-2); }

/* rejoindre */
.join {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }
.join__media { background: var(--surface-2); overflow: hidden; }
.join__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; min-height: 280px; }
.join__offers { display: grid; grid-template-rows: 1fr 1fr; gap: 1px; background: var(--line); }
.join__card { background: var(--surface); padding: clamp(1.6rem, 3.2vw, 2.2rem); display: flex; flex-direction: column; gap: .7rem; }
.join__card h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.join__card > p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.join__list { margin: .25rem 0 1.2rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.join__list li { font-size: .91rem; color: var(--ink-2); padding-left: 1.4rem; position: relative; }
.join__list li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.join__card .btn { align-self: flex-start; margin-top: auto; }

/* téléchargement */
.dl { background: var(--green); color: #FFFFFF; overflow: hidden; }
.dl__in {
  max-width: var(--rail);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gut) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .55fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}
.dl__txt { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.dl h2 { font-size: clamp(1.8rem, 3.9vw, 2.55rem); color: #FFFFFF; }
.dl p { margin: .9rem 0 1.9rem; color: rgba(255,255,255,.86); max-width: 44ch; }
.dl__photo { align-self: end; text-align: center; }
.dl__photo img { max-height: 400px; width: auto; margin-inline: auto; }
@media (max-width: 780px) {
  .dl__in { grid-template-columns: 1fr; }
  .dl__photo { display: none; }
}
.stores { display: flex; gap: .7rem; flex-wrap: wrap; }
.store {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #0B2A19;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px;
  padding: .58rem 1rem;
  text-decoration: none;
  transition: border-color .18s;
}
.store:hover { border-color: rgba(255,255,255,.6); }
.store svg { width: 20px; height: 20px; flex: none; }
.store em { display: block; font-style: normal; font-size: .61rem; opacity: .72; letter-spacing: .04em; text-transform: uppercase; }
.store b { display: block; font-size: .9rem; font-weight: 600; }

/* pied de page */
.foot { background: #0F2118; color: rgba(233,242,234,.68); }
.foot .logo img { height: 34px; }
.foot__in {
  max-width: var(--rail);
  margin-inline: auto;
  padding: clamp(2.75rem, 6vw, 4rem) var(--gut) 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 860px) { .foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__in { grid-template-columns: 1fr; } }
.foot h2 {
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 .95rem;
  letter-spacing: .06em;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .58rem; }
.foot a { color: rgba(233,242,234,.68); text-decoration: none; font-size: .92rem; transition: color .18s; }
.foot a:hover { color: #6FE0A6; }
.foot__contact { font-size: .92rem; display: flex; flex-direction: column; gap: .5rem; margin-top: 1.05rem; }
.foot__bar {
  max-width: var(--rail);
  margin-inline: auto;
  padding: 1.2rem var(--gut) 2.2rem;
  border-top: 1px solid rgba(233,242,234,.14);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(233,242,234,.55);
}

/* ============================================================
   APPARITIONS AU DÉFILEMENT

   Deux implémentations. La première, liée au défilement, fait avancer
   l'animation au rythme exact du scroll : l'élément se révèle en continu
   pendant qu'il entre dans la fenêtre, au lieu de basculer d'un coup au
   franchissement d'un seuil — c'est ce qui donnait l'impression de saccade.
   La seconde, à base de transitions, sert de repli aux navigateurs qui ne
   gèrent pas encore animation-timeline (Firefox notamment).
   ============================================================ */

/* --- Repli : transitions déclenchées par IntersectionObserver --- */
.reveal > *,
.reveal--solo {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity .62s cubic-bezier(.16, 1, .3, 1),
    transform .72s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in > *,
.reveal--solo.is-in { opacity: 1; transform: none; }

/* Couche de composition posée le temps de l'animation seulement */
.reveal.is-animating > *,
.reveal--solo.is-animating { will-change: opacity, transform; }

/* --- Animations liées au défilement, là où c'est supporté --- */
@supports (animation-timeline: view()) {
  .reveal > *,
  .reveal--solo {
    /* on neutralise le repli : plus de transition ni d'état initial figé */
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;

    animation: entree-douce linear both;
    animation-timeline: view();
    /* départ dès que l'élément pointe dans la fenêtre, fin au tiers de sa traversée */
    animation-range: entry 0% cover 34%;
  }

  /* Le décalage entre cartes d'une même grille se traduit en décalage de
     plage : chaque enfant termine son entrée un peu après le précédent. */
  .reveal > *:nth-child(2) { animation-range: entry 4%  cover 38%; }
  .reveal > *:nth-child(3) { animation-range: entry 8%  cover 42%; }
  .reveal > *:nth-child(4) { animation-range: entry 12% cover 46%; }
  .reveal > *:nth-child(5) { animation-range: entry 16% cover 50%; }
  .reveal > *:nth-child(6) { animation-range: entry 20% cover 54%; }
}

@keyframes entree-douce {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.985); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}

/* --- Parallaxe discrète sur les bannières photo --- */
@supports (animation-timeline: view()) {
  .hero__media img,
  .band img {
    animation: derive linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
    will-change: transform;
  }
}
@keyframes derive {
  /* l'image dérive de 6 % sur toute la traversée : assez pour donner de la
     profondeur, assez peu pour ne jamais découvrir un bord du cadre */
  from { transform: scale(1.06) translate3d(0, -3%, 0); }
  to   { transform: scale(1.06) translate3d(0,  3%, 0); }
}

/* --- En-tête : ombre portée au décollage ---
   On n'anime que l'ombre. Réduire le padding ou la hauteur du logo forcerait
   un recalcul de mise en page à chaque image de défilement — c'est une source
   de saccade classique, pour un gain visuel négligeable. */
.site-header { transition: box-shadow .3s ease; }
/* repli sans animation liée au défilement : classe posée par le script */
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 28px -18px rgba(15, 33, 24, .45); }

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: decoller linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 90px;
  }
}
@keyframes decoller {
  from { box-shadow: 0 1px 0 var(--line), 0 10px 28px -18px rgba(15, 33, 24, 0); }
  to   { box-shadow: 0 1px 0 var(--line), 0 10px 28px -18px rgba(15, 33, 24, .45); }
}

/* --- Barre de progression de lecture --- */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--green);
}
@supports (animation-timeline: scroll()) {
  .site-header::after {
    animation: progression linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes progression { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .reveal > *, .reveal--solo {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hero__media img, .band img { animation: none !important; transform: none !important; }
  .site-header::after { animation: none !important; transform: scaleX(0) !important; }
  .svc:hover .svc__img img { transform: none; }
  .site-header { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto !important; }
}
}

/* ============================================================
   COMPOSANTS DES PAGES INTERNES
   ============================================================ */

/* En-tête de page : compact, sans photo, il annonce le sujet */
.pagehead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.pagehead__in { max-width: var(--rail); margin-inline: auto; padding-inline: var(--gut); }
.pagehead h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 20ch; }
.pagehead p { margin: 1.1rem 0 0; color: var(--ink-2); font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 60ch; }

/* Fil d'Ariane */
.crumb { display: flex; gap: .5rem; align-items: center; color: var(--ink-3); margin-bottom: 1.1rem; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--green-deep); }
.crumb span { opacity: .5; }

/* Texte long : politique, mentions, contenus rédactionnels */
.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin: 2.5rem 0 .9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 1.8rem 0 .6rem; font-weight: 700; font-stretch: 105%; }
.prose p { margin: 0 0 1rem; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.2rem; color: var(--ink-2); }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--green-deep); text-underline-offset: 3px; }

/* Sommaire latéral pour les pages longues */
.withtoc { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .withtoc { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: 108px; border-left: 1px solid var(--line); padding-left: 1.1rem; }
.toc p { margin: 0 0 .8rem; color: var(--ink-3); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.toc a { font-size: .89rem; color: var(--ink-2); text-decoration: none; line-height: 1.4; display: block; }
.toc a:hover { color: var(--green-deep); }

/* Questions fréquentes */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(1rem, 2vw, 1.15rem);
  letter-spacing: -.01em;
  color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  position: absolute;
  right: .35rem; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.qa details[open] summary::after { transform: rotate(-135deg); }
.qa summary:hover { color: var(--green-deep); }
.qa__body { padding: 0 2.5rem 1.4rem 0; color: var(--ink-2); }
.qa__body p { margin: 0 0 .8rem; }
.qa__body ul { margin: 0; padding-left: 1.2rem; }
.qa__body li { margin-bottom: .4rem; }

/* Formulaires */
.form { max-width: 42rem; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .68rem .8rem;
  width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--pin); }
.form__actions { margin-top: 1.6rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form__note { font-size: .85rem; color: var(--ink-3); max-width: 40ch; }
.req { color: var(--pin); }

/* Cartes de contenu réutilisables */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.card__ico { color: var(--green-deep); }
.card__ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.08rem; font-weight: 800; font-stretch: 108%; }
.card p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink-2); }

/* Bloc de contact latéral */
.contactgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 880px) { .contactgrid { grid-template-columns: 1fr; } }
.contactbox { background: var(--surface); border: 1px solid var(--line); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 1.3rem; }
.contactbox h2 { font-size: 1.1rem; font-weight: 800; font-stretch: 108%; }
.contactitem { display: flex; gap: .85rem; align-items: flex-start; }
.contactitem svg { width: 20px; height: 20px; color: var(--green-deep); flex: none; margin-top: .15rem; }
.contactitem b { display: block; font-size: .8rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .15rem; }
.contactitem a, .contactitem span { font-size: .97rem; color: var(--ink); text-decoration: none; }
.contactitem a:hover { color: var(--green-deep); }

/* Bandeau de rappel en bas de page interne */
.cta-strip { background: var(--green); color: #FFFFFF; }
.cta-strip__in {
  max-width: var(--rail); margin-inline: auto; padding: clamp(2.5rem, 5vw, 3.5rem) var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-strip h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: #FFFFFF; max-width: 24ch; }
.cta-strip p { margin: .6rem 0 0; color: rgba(255,255,255,.85); max-width: 46ch; }
