/* ─────────────────────────────────────────
   CFDS 2027 — refonte-2027.css
   Chargé après components.css. Évolution du système existant :
   mêmes couleurs, mêmes polices, même liseré. On retire les cadres,
   on corrige les incohérences typographiques, on ajoute un vrai temps d'entrée.
   ───────────────────────────────────────── */

:root {
  --ease-out: cubic-bezier(.2, .65, .25, 1);
  --ease-trace: cubic-bezier(.65, 0, .35, 1);
  --section-y: clamp(88px, 11vw, 144px);
}

/* ═══ Apparitions : visibles par défaut, animées seulement si le JS est là ═══ */
.reveal, .stagger > * { opacity: 1; transform: none; }
html.js .reveal:not(.on) { opacity: 0; transform: translateY(20px); }
html.js .stagger:not(.on) > * { opacity: 0; transform: translateY(14px); }
.reveal { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal:not(.on), html.js .stagger:not(.on) > * { opacity: 1; transform: none; }
  .reveal, .stagger > * { transition: none; }
}

/* ═══ Cohérence typographique de l'en-tête et du pied de page ═══ */
.nav-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav-logo-mark { width: 38px; height: 38px; }

.foot-lisere { display: flex; height: 2px; margin: .4rem 0; }
.foot-lisere span { flex: 1; }
.foot-lisere span:nth-child(1) { background: var(--bleu); }
.foot-lisere span:nth-child(2) { background: #fff; box-shadow: inset 0 0 0 1px var(--gris-3); }
.foot-lisere span:nth-child(3) { background: var(--rouge); }

/* ═══ HERO ═══ */
.accueil-2027 .hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  border-bottom: 0;
  padding-bottom: 96px;
}
.accueil-2027 .title-block { margin: 0; font-weight: 600; }
.accueil-2027 .title-line { overflow: hidden; padding-block: .04em; }
.accueil-2027 .title-mask { display: block; }
.accueil-2027 .lisere { height: 3px; margin: .5rem 0; }
.accueil-2027 .title-edition { margin: 1.1rem 0 2rem; font-weight: 400; color: var(--gris-2); }
.accueil-2027 .hero-mantra { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.5; margin-bottom: 1.8rem; }
.accueil-2027 .hero-btns { margin-bottom: 0; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 48px;
  background: var(--gris-3);
  overflow: hidden;
  transform: translateX(-50%);
}
.hero-scroll span {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 16px;
  background: var(--noir);
}

/* Entrée orchestrée : macaron, liseré tracé depuis le centre, titre, puis le reste */
@media (prefers-reduced-motion: no-preference) {
  html.js .accueil-2027 .hero .hero-logo { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
  html.js .accueil-2027 .hero .l-b { transform: scaleX(0); transform-origin: right center; transition: transform 1.2s var(--ease-trace) .35s; }
  html.js .accueil-2027 .hero .l-r { transform: scaleX(0); transform-origin: left center; transition: transform 1.2s var(--ease-trace) .35s; }
  html.js .accueil-2027 .hero .l-w { opacity: 0; transition: opacity .8s ease .35s; }
  html.js .accueil-2027 .hero .title-mask { transform: translateY(108%); transition: transform 1.1s var(--ease-out); }
  html.js .accueil-2027 .hero .title-line:first-child .title-mask { transition-delay: .7s; }
  html.js .accueil-2027 .hero .title-line:last-child .title-mask { transition-delay: .82s; }
  html.js .accueil-2027 .hero .title-edition,
  html.js .accueil-2027 .hero .hero-mantra,
  html.js .accueil-2027 .hero .hero-date,
  html.js .accueil-2027 .hero .hero-btns,
  html.js .accueil-2027 .hero .hero-scroll { opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
  html.js .accueil-2027 .hero .title-edition { transition-delay: 1.25s; }
  html.js .accueil-2027 .hero .hero-mantra { transition-delay: 1.4s; }
  html.js .accueil-2027 .hero .hero-date { transition-delay: 1.55s; }
  html.js .accueil-2027 .hero .hero-btns { transition-delay: 1.7s; }
  html.js .accueil-2027 .hero .hero-scroll { transition-delay: 2.1s; transform: translate(-50%, 10px); }

  html.js .accueil-2027 .hero.is-in .hero-logo { opacity: 1; transform: none; }
  html.js .accueil-2027 .hero.is-in .l-b,
  html.js .accueil-2027 .hero.is-in .l-r { transform: scaleX(1); }
  html.js .accueil-2027 .hero.is-in .l-w { opacity: 1; }
  html.js .accueil-2027 .hero.is-in .title-mask { transform: none; }
  html.js .accueil-2027 .hero.is-in .title-edition,
  html.js .accueil-2027 .hero.is-in .hero-mantra,
  html.js .accueil-2027 .hero.is-in .hero-date,
  html.js .accueil-2027 .hero.is-in .hero-btns { opacity: 1; transform: none; }
  html.js .accueil-2027 .hero.is-in .hero-scroll { opacity: 1; transform: translateX(-50%); }

  .hero-scroll span { animation: cfds-descente 2.4s var(--ease-trace) 2.6s infinite; transform: translateY(-16px); }
  @keyframes cfds-descente { 0% { transform: translateY(-16px); } 60%, 100% { transform: translateY(48px); } }
}

/* ═══ SECTIONS : base commune ═══ */
.a27 { padding: var(--section-y) 0; border-top: 1px solid var(--gris-3); }
.a27-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--noir);
  text-wrap: balance;
}
.a27-p {
  margin-top: 1.4rem;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gris);
  max-width: 54ch;
  text-wrap: pretty;
}
.a27-head { max-width: 640px; }
.a27-head--centre { margin: 0 auto; text-align: center; }
.a27-head--centre .a27-p { margin-inline: auto; }
.a27 .section-lbl { margin-bottom: 1rem; }
.a27-lien {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--ls-normal);
  text-transform: uppercase;
  color: var(--noir);
  border-bottom: 1px solid var(--noir);
  padding-bottom: 3px;
  transition: opacity .2s;
}
.a27-lien:hover { opacity: .6; }
.a27-centre { text-align: center; margin-top: 56px; }
.a27-photo { margin: 0; }
.a27-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.a27-photo figcaption { margin-top: 14px; font-size: .8125rem; font-weight: 300; color: var(--gris-2); }

/* ═══ QUALIFICATIONS 2027 ═══ */
.a27-qualif { border-top: 0; }
.a27-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}
.a27-fiche-titre {
  margin-top: 2.6rem;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--ls-normal);
  text-transform: uppercase;
  color: var(--gris-2);
}
.a27-fiche {
  list-style: none;
  margin-top: .6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}
.a27-fiche li {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  padding: 12px 0;
  border-bottom: 1px solid var(--gris-3);
}

/* Calendrier : une ligne qui se trace, quatre jalons */
.a27-cal {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(88px, 10vw, 128px);
  padding-top: 36px;
}
.a27-cal::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 1px;
  background: var(--noir);
  transform-origin: left center;
}
.a27-cal-pt {
  position: absolute;
  top: -36px; left: 0;
  width: 9px; height: 9px;
  border: 1px solid var(--noir);
  border-radius: 50%;
  background: var(--blanc);
}
.a27-cal-item { position: relative; display: flex; flex-direction: column; gap: 8px; }
.a27-cal-item.is-final .a27-cal-pt { background: var(--noir); }
.a27-cal-date { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--noir); }
.a27-cal-quoi { font-size: var(--text-sm); font-weight: 500; letter-spacing: var(--ls-normal); text-transform: uppercase; color: var(--gris-2); }
.a27-cal-detail { font-size: .9375rem; font-weight: 300; color: var(--gris); }
@media (prefers-reduced-motion: no-preference) {
  html.js .a27-cal:not(.on)::before { transform: scaleX(0); }
  html.js .a27-cal::before { transition: transform 1.6s var(--ease-trace); }
  html.js .a27-cal:not(.on) .a27-cal-item { opacity: 0; transform: translateY(12px); }
  html.js .a27-cal .a27-cal-item { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(.35s + var(--i) * .22s); }
}

/* Alerte d'ouverture : une ligne, pas un encadré */
.a27-alerte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px 64px;
  align-items: end;
  margin-top: clamp(88px, 10vw, 128px);
}
.a27-alerte-titre { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.15; color: var(--noir); }
.a27-alerte-sous { display: block; margin-top: 8px; font-size: .9375rem; font-weight: 300; color: var(--gris); }
.a27-alerte-form { display: flex; align-items: stretch; gap: 16px; }
.a27-alerte-form[hidden] { display: none; }
.a27-alerte-form input {
  flex: 1;
  min-width: 0;
  font: 300 1rem var(--sans);
  color: var(--noir);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--noir);
  border-radius: 0;
  padding: 12px 2px;
}
.a27-alerte-form input::placeholder { color: var(--gris-2); }
.a27-alerte-form input:focus { outline: none; border-bottom-width: 2px; padding-bottom: 11px; }
.a27-alerte-form .btn-dark { padding-inline: 32px; }
.a27-alerte-msg { grid-column: 2; font-size: .9375rem; color: var(--gris); }
.a27-alerte-msg:empty { display: none; }
.a27-alerte-msg.is-erreur { color: #B3121F; }
.a27-engagement {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gris-3);
  font-size: .875rem;
  font-weight: 300;
  color: var(--gris-2);
  max-width: none;
}
.a27-engagement a { color: var(--noir); border-bottom: 1px solid var(--gris-3); margin-left: .4em; white-space: nowrap; }
.a27-engagement a:hover { border-color: var(--noir); }

/* ═══ PHASE FINALE ═══ */
.a27-finale { padding-bottom: 0; }
.a27-epreuves {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px);
}
.a27-epreuves li { padding: 0 clamp(24px, 3vw, 40px); border-left: 1px solid var(--gris-3); }
.a27-epreuves li:first-child { padding-left: 0; border-left: 0; }
.a27-ep-num { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 2.6rem; line-height: 1; color: var(--gris-2); }
.a27-ep-nom { margin-top: 1.4rem; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; color: var(--noir); }
.a27-ep-desc { margin-top: .8rem; font-size: .9375rem; font-weight: 300; line-height: 1.75; color: var(--gris); }
.a27-ep-tag { margin-top: 1.2rem; font-size: var(--text-sm); letter-spacing: var(--ls-normal); text-transform: uppercase; color: var(--gris-2); }

.a27-gf {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: var(--section-y);
  background: var(--noir);
  color: var(--blanc);
  min-height: clamp(420px, 42vw, 620px);
}
.a27-gf-txt {
  align-self: center;
  padding: 64px clamp(24px, 5vw, 72px) 64px max(48px, calc((100vw - var(--max)) / 2 + 48px));
}
.a27-gf .section-lbl { color: rgba(250, 250, 248, .6); }
.a27-gf-titre { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.05; color: var(--blanc); }
.a27-gf-txt p:last-child { margin-top: 1.4rem; font-size: 1.0625rem; font-weight: 300; line-height: 1.8; color: rgba(250, 250, 248, .78); max-width: 40ch; }
.a27-gf-photo { margin: 0; overflow: hidden; }
.a27-gf-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }

/* ═══ ÉDITION 2026 ═══ */
.a27-edition { border-top: 0; }
.a27-bandeau { margin: 0; height: clamp(320px, 50vw, 640px); overflow: hidden; }
.a27-bandeau img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .a27-bandeau img { height: 116%; animation: cfds-parallaxe linear both; animation-timeline: view(); }
    @keyframes cfds-parallaxe { from { transform: translateY(-14%); } to { transform: translateY(0); } }
  }
}
.a27-palmares {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 104px);
  margin-top: clamp(64px, 8vw, 104px);
  align-items: start;
}
.a27-champion-nom { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 6.4vw, 5rem); line-height: .98; letter-spacing: -.01em; color: var(--noir); }
.a27-champion-fn { margin-top: .9rem; font-size: 1rem; font-weight: 300; color: var(--gris); }
.a27-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 2.2rem; }
.a27-classement-titre { font-size: var(--text-sm); font-weight: 500; letter-spacing: var(--ls-normal); text-transform: uppercase; color: var(--gris-2); padding-bottom: 14px; border-bottom: 1px solid var(--noir); }
.a27-classement ol { list-style: none; }
.a27-classement li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--gris-3); }
.a27-rang { font-family: var(--serif); font-size: 1.4rem; color: var(--gris-2); }
.a27-nom { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--noir); }
.a27-fn { display: block; margin-top: 2px; font-size: .875rem; font-weight: 300; color: var(--gris); }
.a27-chiffres {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(72px, 9vw, 112px);
  padding-top: 40px;
  border-top: 1px solid var(--gris-3);
  text-align: center;
}
.a27-chiffres div { display: flex; flex-direction: column-reverse; gap: 10px; }
.a27-chiffres dd { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; color: var(--noir); font-variant-numeric: lining-nums; }
.a27-chiffres dt { font-size: var(--text-sm); letter-spacing: var(--ls-normal); text-transform: uppercase; color: var(--gris-2); }

/* ═══ PARTENAIRES ═══ */
.a27-inst {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  text-align: center;
  margin-top: clamp(56px, 7vw, 80px);
}
.a27-inst-sep { width: 1px; height: 72px; background: var(--gris-3); }
.a27-inst-role { font-size: var(--text-sm); letter-spacing: var(--ls-normal); text-transform: uppercase; color: var(--gris-2); }
.a27-inst-nom { margin-top: .6rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--noir); text-wrap: balance; }
.a27-inst-desc { margin: .7rem auto 0; font-size: .9375rem; font-weight: 300; color: var(--gris); max-width: 40ch; }
.a27-maisons-intro { margin-top: clamp(72px, 9vw, 112px); text-align: center; font-size: 1rem; font-weight: 300; color: var(--gris); }
.a27-maisons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 40px;
  margin-top: 40px;
}
.a27-famille { border-top: 1px solid var(--gris-3); padding-top: 16px; }
.a27-famille-nom { font-size: var(--text-sm); letter-spacing: var(--ls-normal); text-transform: uppercase; color: var(--gris-2); }
.a27-famille-maisons { list-style: none; margin-top: .7rem; display: grid; gap: .3rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; color: var(--noir); }

/* ═══ ORGANISATEUR ═══ */
.a27-lds-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 104px); align-items: end; }
.a27-contacts div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gris-3); }
.a27-contacts div:first-child { border-top: 1px solid var(--noir); }
.a27-contacts dt { font-size: var(--text-sm); letter-spacing: var(--ls-normal); text-transform: uppercase; color: var(--gris-2); padding-top: 3px; }
.a27-contacts dd { margin: 0; font-size: 1rem; font-weight: 300; color: var(--noir); }
.a27-contacts a { border-bottom: 1px solid var(--gris-3); transition: border-color .2s; }
.a27-contacts a:hover { border-color: var(--noir); }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .a27-maisons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .a27-intro, .a27-palmares, .a27-lds-grid { grid-template-columns: 1fr; }
  .a27-cal { grid-template-columns: 1fr; gap: 28px; padding: 0 0 0 32px; }
  .a27-cal::before { left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; transform-origin: center top; }
  html.js .a27-cal:not(.on)::before { transform: scaleY(0); }
  .a27-cal-pt { top: 8px; left: -32px; }
  .a27-alerte { grid-template-columns: 1fr; }
  .a27-alerte-msg { grid-column: 1; }
  .a27-epreuves { grid-template-columns: 1fr; gap: 44px; }
  .a27-epreuves li, .a27-epreuves li:first-child { padding: 0; border-left: 0; }
  .a27-gf { grid-template-columns: 1fr; }
  .a27-gf-photo { order: -1; height: 64vw; max-height: 480px; }
  .a27-gf-txt { padding: 48px 24px 56px; }
  .a27-chiffres { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .a27-inst { grid-template-columns: 1fr; gap: 32px; }
  .a27-inst-sep { width: 48px; height: 1px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .accueil-2027 .hero { min-height: 0; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 112px; }
  .accueil-2027 .hero-date::before, .accueil-2027 .hero-date::after { display: none; }
  .a27-fiche { column-gap: 20px; }
  .a27-fiche li { font-size: 1.125rem; }
  .a27-maisons { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .a27-famille-maisons { font-size: 1.125rem; }
  .a27-alerte-form { flex-direction: column; }
  .a27-alerte-form .btn-dark { width: 100%; padding-block: 15px; }
  .a27-contacts div { grid-template-columns: 1fr; gap: 4px; }
  .accueil-2027 .hero-mantra br { display: none; }
  .a27-gf-txt { padding: 40px 16px 48px; }
}

/* ═══ EN IMAGES : rail horizontal ═══ */
.a27-galerie { padding-bottom: clamp(72px, 9vw, 112px); }
.a27-galerie-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.a27-galerie-nav { display: flex; align-items: center; gap: 28px; }
.a27-galerie-fleches { display: flex; gap: 8px; }
.a27-fleche {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--gris-3); border-radius: 50%;
  background: transparent; color: var(--noir); cursor: pointer;
  transition: border-color .2s, opacity .2s;
}
.a27-fleche:hover:not(:disabled) { border-color: var(--noir); }
.a27-fleche:disabled { opacity: .35; cursor: default; }
.a27-rail {
  --h: clamp(260px, 32vw, 440px);
  list-style: none;
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(40px, 5vw, 56px);
  padding: 0 max(48px, calc((100vw - var(--max)) / 2 + 48px)) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(48px, calc((100vw - var(--max)) / 2 + 48px));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.a27-rail::-webkit-scrollbar { display: none; }
.a27-rail:focus-visible { outline: 2px solid var(--bleu); outline-offset: 4px; }
.a27-rail-item { flex: 0 0 auto; width: min(calc(var(--h) * var(--r)), 84vw); scroll-snap-align: start; }
.a27-rail-item a { display: block; }
.a27-rail-img { position: relative; display: block; height: var(--h); overflow: hidden; background: var(--gris-3); }
.a27-rail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.a27-rail-item a:hover img { transform: scale(1.03); }
.a27-rail-leg { display: block; margin-top: 12px; font-size: .8125rem; font-weight: 300; color: var(--gris); }
.a27-rail-leg strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--noir); margin-bottom: 2px; }
.a27-play {
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(250, 250, 248, .92);
  transition: transform .4s var(--ease-out);
}
.a27-play::after { content: ''; position: absolute; left: 29px; top: 24px; border-left: 18px solid var(--noir); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.a27-rail-video a:hover .a27-play { transform: scale(1.08); }
@media (prefers-reduced-motion: no-preference) {
  html.js .a27-rail:not(.on) .a27-rail-item { opacity: 0; transform: translateX(40px); }
  html.js .a27-rail .a27-rail-item { transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
  html.js .a27-rail .a27-rail-item:nth-child(2) { transition-delay: .08s; }
  html.js .a27-rail .a27-rail-item:nth-child(3) { transition-delay: .16s; }
  html.js .a27-rail .a27-rail-item:nth-child(4) { transition-delay: .24s; }
  html.js .a27-rail .a27-rail-item:nth-child(n+5) { transition-delay: .32s; }
}

/* ═══ PIED DE PAGE ═══ */
.site-footer { display: block; padding: 0; }
.foot-v2 {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) 48px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.foot-v2-marque { display: flex; flex-direction: column; align-items: center; gap: 22px; color: var(--noir); }
.foot-v2-marque:hover { opacity: 1; }
.foot-v2-logo { width: 72px; height: 72px; }
.foot-v2-titre {
  display: inline-flex; flex-direction: column; align-items: stretch;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.25;
}
.foot-v2-titre > span:not(.foot-lisere) { white-space: nowrap; }
.foot-v2-devise { margin-top: 18px; }
.foot-v2-devise em { font-family: var(--serif); font-size: 1.125rem; color: var(--gris); }
.foot-v2-nav { margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--gris-3); border-bottom: 1px solid var(--gris-3); width: 100%; }
.foot-v2-nav .foot-links { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 36px; list-style: none; margin: 0; padding: 0; }
.foot-v2-nav .foot-links a { font-size: var(--text-sm); font-weight: 400; letter-spacing: var(--ls-normal); text-transform: uppercase; color: var(--gris); transition: color .2s; }
.foot-v2-nav .foot-links a:hover { color: var(--noir); opacity: 1; }
.foot-v2-contact { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.foot-v2-email { font-size: 1rem; font-weight: 300; color: var(--noir); border-bottom: 1px solid var(--gris-3); padding-bottom: 2px; transition: border-color .2s; }
.foot-v2-email:hover { border-color: var(--noir); opacity: 1; }
.foot-v2-reseaux { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.foot-v2-reseaux a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gris-3); border-radius: 50%; color: var(--noir); transition: border-color .2s, background .2s, color .2s; }
.foot-v2-reseaux a:hover { background: var(--noir); border-color: var(--noir); color: var(--blanc); opacity: 1; }
.foot-v2-legal {
  max-width: var(--max); margin: 0 auto; padding: 20px 48px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: .75rem; font-weight: 300; color: var(--gris-2);
  border-top: 1px solid var(--gris-3);
}
@media (max-width: 900px) {
  .a27-rail { padding-inline: 24px; scroll-padding-inline: 24px; }
  .foot-v2 { padding-inline: 24px; }
  .foot-v2-legal { padding-inline: 24px; justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .a27-rail { padding-inline: 16px; scroll-padding-inline: 16px; --h: 300px; }
  .a27-galerie-fleches { display: none; }
  .foot-v2 { padding-inline: 16px; }
  .foot-v2-titre { font-size: .95rem; }
  .foot-v2-nav .foot-links { gap: 12px 22px; }
}
