/* ==========================================================================
   Sections du one page — mise en page calée sur la maquette du graphiste
   ========================================================================== */

/* --- Titre de section ----------------------------------------------------
   Le lettrage Hello Headline remplace les SVG de la charte : le titre est du
   vrai texte, recolorable et sélectionnable. Le complément descriptif reste
   dans le H2, masqué, pour le référencement. */

.section-title { margin: 0 0 var(--space-xs); }
.section-title__word {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  font-size: clamp(1.75rem, 1.35rem + 1.9vw, 3.25rem);
  line-height: 1;
  color: var(--fp-blue);
}
.section--blue .section-title__word,
.section--photo .section-title__word { color: var(--fp-yellow); }
.section--yellow .section-title__word { color: var(--fp-blue); }

/* --- Mascotte -------------------------------------------------------------- */

.mascot { display: block; width: 100%; height: auto; }

/* ==========================================================================
   HERO
   ========================================================================== */

.lfp-hero {
  padding-block: 0 clamp(1.5rem, 0.8rem + 3vw, 3.5rem);
  overflow: hidden;
}
.lfp-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: clamp(1rem, 0.5rem + 1.6vw, 2.25rem);
  align-items: center;
}
.lfp-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--text-hero);
  line-height: 1.04;
  letter-spacing: var(--display-tracking);
  margin: 0 0 var(--space-md);
  color: var(--fp-ink);
  text-wrap: balance;
}
/* Les retours forcés reproduisent la composition de la maquette ; sous 860 px
   le titre reprend son flux naturel. */
@media (max-width: 860px) {
  .lfp-hero__title br { display: none; }
}
.lfp-hero__title .is-blue { color: var(--fp-blue); }
.lfp-hero__title .is-yellow { color: var(--fp-yellow); }

.lfp-hero__club {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 1rem + 0.65vw, 1.875rem);
  line-height: 1.1;
  color: var(--fp-blue);
  margin: 0;
}
.lfp-hero__club small {
  display: block;
  font-size: 0.68em;
  color: var(--fp-ink);
}
.lfp-hero__lead {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 0.88rem + 0.32vw, 1.1875rem);
  line-height: 1.3;
  color: var(--fp-ink);
  margin: var(--space-md) 0 var(--space-lg);
  max-width: 38ch;
}
.lfp-hero__lead span { color: var(--fp-blue); }

.lfp-hero__visual { position: relative; display: grid; place-items: end center; }
.lfp-hero__visual .mascot {
  position: relative;
  z-index: 1;
  width: min(106%, 672px);
  margin-inline: auto;
  margin-right: clamp(-2rem, -2vw, 0rem);
}

@media (max-width: 860px) {
  .lfp-hero__inner { grid-template-columns: 1fr; text-align: left; }
  .lfp-hero__visual { order: -1; max-width: 320px; margin-inline: auto; }
}

/* Sur téléphone, le bouton d'appel à l'action tombait sous la ligne de
   flottaison et se retrouvait coupé en deux : mesuré à 678 px du haut alors
   qu'un iPhone 14 sous Safari n'affiche que 659 px une fois ses barres
   comptées. La mascotte occupait 296 px à elle seule, presque la moitié du
   hero. On la ramène à 220 px et on resserre le rythme, ce qui remonte le
   bouton à 577 px.

   La borne `35svh` traite les écrans courts, un iPhone SE n'affichant que
   553 px : la mascotte y descend à 196 px. `svh` et non `vh` ni `dvh`, parce
   que `svh` est la hauteur barres du navigateur affichées et qu'elle ne bouge
   pas quand la barre d'adresse se rétracte : la mascotte ne change donc pas
   de taille en cours de défilement. La déclaration simple qui précède sert de
   repli aux navigateurs qui ignorent l'unité. */
@media (max-width: 600px) {
  .lfp-hero__visual {
    max-width: 220px;
    max-width: min(220px, 35svh);
  }
  .lfp-hero__title { margin-bottom: var(--space-sm); }
  .lfp-hero__lead { margin-block: var(--space-sm) var(--space-md); }
}

/* ==========================================================================
   WHY US — six colonnes illustrées, pastille bleue et jaune en alternance
   ========================================================================== */

.lfp-why { background: var(--color-bg-alt); }

.lfp-why__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.lfp-why__item { text-align: center; }

/* Les mascottes livrées intègrent déjà leur pastille de couleur. */
.lfp-why__art {
  display: block;
  width: min(100%, 190px);
  margin: 0 auto var(--space-sm);
}

.lfp-why__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 0.82rem + 0.4vw, 1.185rem);
  line-height: 1.02;
  letter-spacing: var(--display-tracking);
  color: var(--fp-blue);
  margin: 0 0 var(--space-xs);
  text-wrap: balance;
}
.lfp-why__text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
  text-wrap: pretty;
}

@media (max-width: 1000px) {
  .lfp-why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-xl); }
}
@media (max-width: 560px) {
  .lfp-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   LET'S PLAY — bandeau bleu, créneaux en colonnes par jour
   ========================================================================== */

.lfp-play { position: relative; overflow: hidden; }
.lfp-play__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-sm) var(--space-xl);
  margin-bottom: var(--space-md);
}
/* Aligné en haut, le bouton dépassait le sommet de « Let's Play » de huit
   pixels. On le descend d'autant : les deux se centrent alors sur la même
   ligne, comme le demande le client. */
.lfp-play__head > .btn { margin-top: 0.5rem; }
.lfp-play__head .section-title { margin: 0; }
.lfp-play__head .section-lead {
  margin: 0;
  max-width: none;
  font-size: var(--text-xl);
  color: var(--fp-white);
}
.lfp-play__titles { display: grid; gap: 0.1rem; }

/* WordPress enveloppe les enfants d'un bloc groupe : c'est ce conteneur
   interne qu'il faut mettre en colonnes, pas le groupe lui-même. */
.lfp-play__cols,
.lfp-play__cols > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  position: relative;
  z-index: 1;
}
/* La référence du graphiste étale les quatre jours de la saison sur toute la
   largeur. Les deux tableaux se superposent donc au lieu de se partager la
   ligne : la saison prend le plein cadre, l'été suit en dessous. */
.lfp-play__cols > .wp-block-group__inner-container {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}
.lfp-play__cols > .wp-block-group__inner-container { grid-column: 1 / -1; }

/* Empilés, les deux tableaux se séparent par un filet horizontal. */
.lfp-play__cols > .wp-block-group__inner-container > * + * {
  border-top: 2px solid rgb(255 255 255 / 0.35);
  padding-top: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
}
/* L'été laisse la place à la mascotte, posée en bas à droite. */
.lfp-play__cols > .wp-block-group__inner-container > :last-child {
  padding-right: clamp(0px, 16vw, 300px);
}

.lfp-badge {
  display: inline-block;
  border: 2px solid var(--fp-white);
  border-radius: var(--radius-pill);
  padding: 0.3rem 1.1rem;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--fp-white);
  margin-bottom: var(--space-md);
}

.lfp-play__note {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9375rem;
  line-height: 1.25;
  color: var(--fp-white);
  margin: 0 0 var(--space-md);
  max-width: 34ch;
}

.lfp-play__mascot {
  position: absolute;
  right: 0;
  bottom: -2%;
  width: clamp(180px, 21vw, 350px);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .lfp-play__cols,
  .lfp-play__cols > .wp-block-group__inner-container { grid-template-columns: 1fr; }
  .lfp-play__cols > * + *,
  .lfp-play__cols > .wp-block-group__inner-container > * + * {
    border-left: 0;
    border-top: 2px solid rgb(255 255 255 / 0.35);
    padding-left: 0;
    padding-top: var(--space-lg);
  }
  .lfp-play__mascot { display: none; }
  /* La réserve tenait la place de la mascotte, qui n'est plus affichée : sans
     cette remise à zéro, tout le bloc de l'été reste poussé vers la gauche et
     paraît décentré, alors que la saison est bien centrée. */
  .lfp-play__cols > .wp-block-group__inner-container > :last-child { padding-right: 0; }
}

/* ==========================================================================
   ON TOUR — mascotte à vélo et parcours de la saison
   ========================================================================== */

.lfp-tour {
  overflow: hidden;
  background: var(--color-bg-alt);
  padding-block: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
}
/* Le repère de la section est le .wrap : le bouton s'accroche à son coin haut
   droit, le vélo au départ du tracé, tout en bas. Un repère intermédiaire sur
   l'en-tête retiendrait le vélo au niveau du texte. */
.lfp-tour__head > .btn {
  position: absolute;
  top: 0;
  right: 0;
}
.lfp-tour__head .section-head { margin-bottom: var(--space-sm); }
.lfp-tour__head .section-lead { max-width: 26ch; }
.lfp-tour__head .section-intro { max-width: min(53rem, 100%); }
.lfp-tour__head .section-intro + .section-intro { margin-top: var(--space-sm); }

/* Le débordement du parcours sert de repère au vélo : les deux se posent sur
   la même colonne élargie, la courbe démarre à la roue avant. */
.lfp-tour .wrap { position: relative; }
.lfp-tour {
  /* Largeur du vélo, partagée : il occupe la gauche, le tracé prend la suite. */
  --lfp-velo: clamp(150px, 18vw, 310px);
  /* Le fichier du tracé s'ouvre sur un blanc de 3,4 % avant le premier tiret :
     on le reprend, sinon la courbe démarre loin de la roue au lieu de la
     toucher comme sur la maquette. */
  --lfp-tour-depart: calc(var(--lfp-velo) - 3.4%);
}
.lfp-tour__route {
  position: relative;
  margin-top: clamp(0.25rem, 0.1rem + 0.5vw, 0.75rem);
  padding-bottom: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
  /* Le parcours déborde la colonne de texte et court d'un bord à l'autre,
     comme sur l'exemple du client : enfermé dans la grille, il n'occupait que
     la moitié des grands écrans. Des marges plutôt qu'un décalage : l'animation
     d'apparition pose déjà un transform sur cet élément. */
  margin-inline: calc((100% - min(1640px, 100vw - 2 * var(--gutter))) / 2);
}
/* Le vélo est écrit au milieu du texte, là où le téléphone le montre. Sur
   grand écran il reprend sa place au départ du tracé : hors du flux, son rang
   dans le document ne change donc rien à la mise en page. */
.lfp-tour__rider {
  position: absolute;
  left: calc((100% - min(1640px, 100vw - 2 * var(--gutter))) / 2);
  bottom: clamp(3rem, 2rem + 3vw, 5rem);
  width: var(--lfp-velo);
  height: auto;
  aspect-ratio: 93.5 / 130.8;
  z-index: 1;
}
/* Le tracé démarre à la roue avant, comme sur la maquette : sans cette réserve,
   le vélo recouvre la première étape, que le graphiste place tout au début de
   sa courbe. Les étapes se calent sur la même boîte que le dessin, faute de
   quoi leurs pourcentages ne tomberaient plus sur les points. */
.lfp-tour__line {
  display: block;
  width: calc(100% - var(--lfp-velo));
  margin-left: var(--lfp-tour-depart);
  height: auto;
}

.lfp-tour__stops { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0 0 0 var(--lfp-tour-depart); }
.lfp-tour__stop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  /* Décalage constant sous le point, quelle que soit la hauteur du tracé. */
  transform: translate(-50%, 0.9rem);
  text-align: center;
  width: max-content;
}
.lfp-tour__stop:last-child { transform: translate(-82%, 0.9rem); }
/* La première étape se décale vers la droite : centrée sous son point, son nom
   passait derrière le vélo. La dernière fait l'inverse pour rester dans le cadre.
   Depuis que les étapes portent le déroulé d'une tournée (« On s'inscrit »…) et
   non plus des noms de villes, les libellés sont plus larges : le décalage a été
   ramené de -14 % à -45 %, mesuré sans chevauchement de 780 à 1920 px. */
.lfp-tour__stop:first-child { transform: translate(-45%, 0.9rem); }

/* Sous 1000 px, « On s'inscrit » se retrouve pris entre le vélo et l'étape
   suivante. On l'écarte du dessin et on descend « On joue » d'une ligne. */
@media (max-width: 1000px) {
  .lfp-tour__stop:first-child { transform: translate(-38%, 0.6rem); }
  .lfp-tour__stop:nth-child(2) { transform: translate(-42%, 2.1rem); }
}
.lfp-tour__city {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  color: var(--fp-blue);
  font-size: clamp(1rem, 0.8rem + 1vw, 1.9rem);
  line-height: 1.05;
  white-space: nowrap;
}
@media (max-width: 780px) {
  /* Sur téléphone, le client ne veut plus du parcours dessiné : il ne reste que
     le vélo, remonté sous le sous-titre. Le tracé et ses cinq étapes tombent
     ensemble, y compris pour un lecteur d'écran. L'information ne se perd pas :
     l'affiche de la tournée les redonne en entier, à un bouton de là. */
  .lfp-tour__head > .btn {
    position: static;
    display: inline-flex;
    margin-top: var(--space-sm);
  }
  .lfp-tour__head { text-align: center; }
  .lfp-tour__route { display: none; }

  .lfp-tour__rider {
    position: static;
    width: clamp(150px, 44vw, 210px);
    margin: var(--space-sm) auto;
  }
}

/* ==========================================================================
   TRIO — First Game / Join Us / Find Us côte à côte
   ========================================================================== */

.lfp-trio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: stretch;
}
.lfp-trio__col { display: flex; flex-direction: column; gap: var(--space-sm); }
/* La mascotte de Join Us descend au bas de sa colonne : sans cela, un blanc
   se creusait entre son bouton et la carte de la colonne voisine. */
.lfp-trio__col .section-title { margin-bottom: 0; }
.lfp-trio__col .section-title__word { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); }
.lfp-trio__col .section-lead {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.25rem, 1.05rem + 1.05vw, 2rem);
  line-height: 1;
}
/* Le sous-titre colle sous le lettrage, comme dans la maquette. */
.lfp-trio__col .section-title + .section-lead { margin-top: calc(var(--space-sm) * -0.6); }
/* 1,25 plutôt que le 1,20 de la maquette : l'écart est de moins d'un pixel par
   ligne, et le texte reste confortable à l'écran. */
.lfp-trio__col p { font-size: 1rem; line-height: 1.25; color: var(--color-text); margin: 0; }
.lfp-trio__col p + p { margin-top: 0.75em; }
.lfp-trio__col p:has(> .btn),
.lfp-trio__col .lfp-venues { margin-top: var(--space-xs); }
/* La maquette compose First Game et Find Us en jaune, Join Us en bleu. */
.lfp-trio__col--first .section-title__word,
.lfp-trio__col--find .section-title__word { color: var(--fp-yellow); }

/* La mascotte suit son bouton plutôt que de coller au bas de la colonne : le vide
   qui restait dessous se lit comme une fin de colonne, pas comme un trou. */
.lfp-trio__mascot {
  width: min(100%, 360px);
  margin: var(--space-lg) auto 0;
  align-self: center;
}

/* Bascule entre les deux salles, sans JavaScript obligatoire. */
.lfp-venues__switch { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
/* La maquette n'encadre pas la carte d'un rectangle mais d'une forme dessinée à
   main levée. Le tracé est relevé dans le PDF et posé en `clip-path` (voir le
   `<clipPath id="lfp-blob">` du pied de page) : le fond bleu du conteneur devient
   le trait, l'iframe reprend la même découpe à l'intérieur. Trait de 2 pt dans la
   maquette, soit 4 px ici. */
.lfp-venues__map {
  padding: 4px;
  background: var(--fp-blue);
  clip-path: url(#lfp-blob);
  aspect-ratio: 172.37 / 117.69;
}
.lfp-venues__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  clip-path: url(#lfp-blob);
}
/* Le plan servi par le site, visible par tout le monde sans consentement, et qui
   ouvre la carte Google interactive au clic. Il occupe le cadre exactement comme
   l'iframe qu'il remplace, ratio et découpe compris : rien ne bouge à l'échange. */
.lfp-map__facade {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  clip-path: url(#lfp-blob);
  -webkit-appearance: none;
  appearance: none;
}
.lfp-map__facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Pastille et attribution sont groupées au **centre bas** : la découpe en
   squircle n'atteint le bord inférieur qu'en x = 0,5 (tracé #lfp-blob), et un
   coin rogne l'un comme l'autre. Constaté en capture, pas déduit. */
.lfp-map__legend {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 90%;
}
.lfp-map__credit {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5a5a5a;
  font-size: 0.625rem;
  line-height: 1.5;
  white-space: nowrap;
}
.lfp-map__go {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--fp-blue);
  color: #fff;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(16, 12, 8, 0.28);
  transition: background var(--duration-fast, 150ms) ease, color var(--duration-fast, 150ms) ease;
}
.lfp-map__facade:hover .lfp-map__go,
.lfp-map__facade:focus-visible .lfp-map__go {
  background: var(--fp-yellow);
  color: var(--fp-ink, #100c08);
}
/* La découpe en squircle rogne le contour du navigateur : le repère de focus est
   donc porté par la pastille, seul élément qui déborde visuellement. */
.lfp-map__facade:focus-visible { outline: none; }
.lfp-map__facade:focus-visible .lfp-map__go {
  outline: 3px solid var(--fp-ink, #100c08);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .lfp-map__go { transition: none; }
}

/* Tant que le visiteur n'a pas accepté les cookies, le conteneur ne porte que le
   texte d'attente et son bouton : il perd donc son cadre bleu et son ratio, mais
   il reste visible. Le masquer entièrement escamotait aussi le bouton. */
.lfp-venues__map:has(iframe[data-lfp-src]) {
  padding: 0;
  background: none;
  clip-path: none;
  aspect-ratio: auto;
}
/* L'itinéraire suit l'adresse, sur sa propre ligne. */
.lfp-venues__route {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8125rem;
  color: var(--fp-blue);
  text-decoration-color: var(--fp-yellow);
  text-underline-offset: 3px;
}
.lfp-venues__route::before { content: "→ "; text-decoration: none; }

.lfp-venues__addr {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--color-text-muted);
  margin: var(--space-xs) 0 0;
}

@media (max-width: 900px) {
  .lfp-trio__grid { grid-template-columns: 1fr; }
  .lfp-trio__col .section-lead { max-width: none; }
}

/* ==========================================================================
   GOOD VIBES — bandeau de photos pleine largeur
   ========================================================================== */

.lfp-vibes {
  position: relative;
  padding: 0;
  background: var(--fp-ink);
  isolation: isolate;
}
.lfp-vibes__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: clamp(240px, 30vw, 420px);
}
.lfp-vibes__strip img { width: 100%; height: 100%; object-fit: cover; }
.lfp-vibes__strip img:nth-child(n + 4) { display: none; }
@media (min-width: 700px) { .lfp-vibes__strip img:nth-child(n + 4) { display: block; } }

.lfp-vibes__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: var(--space-xs);
  padding: var(--gutter);
  /* Le voile est renforcé au centre : le titre reste lisible même devant les
     photos les plus claires. */
  background:
    radial-gradient(60% 70% at 50% 45%, rgb(16 12 8 / 0.52), rgb(16 12 8 / 0.28) 70%),
    linear-gradient(rgb(16 12 8 / 0.22), rgb(16 12 8 / 0.22));
}
.lfp-vibes__overlay .section-title__word { color: var(--fp-yellow); }
.lfp-vibes__claim {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1rem, 0.85rem + 0.9vw, 1.75rem);
  color: var(--fp-white);
  margin: 0;
  text-shadow: 0 2px 12px rgb(16 12 8 / 0.5);
}

/* La vague jaune fait la jonction avec la section Say Hi. */
.lfp-wave { display: block; width: 100%; height: auto; margin-bottom: -1px; }
.lfp-wave--top {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  height: clamp(56px, 8vw, 130px);
}

/* ==========================================================================
   SAY HI — aplat jaune, contact et formulaire dépliable
   ========================================================================== */

.lfp-sayhi { position: relative; padding-block: clamp(1.25rem, 0.8rem + 1.8vw, 2.25rem); }
/* Le texte et le formulaire tombent sur le même axe : la mascotte quitte le
   flux pour se poser à droite, comme sur la maquette. En colonne de grille elle
   rétrécissait le bloc de texte, qui se centrait alors sur un axe à lui, décalé
   à gauche du formulaire ; et sa hauteur creusait la section de vide. */
.lfp-sayhi__inner { position: relative; }
.lfp-sayhi__body { text-align: center; }

.lfp-sayhi__mascot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(150px, 19vw, 285px);
}
.lfp-sayhi__mail {
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: none;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem);
  color: var(--fp-blue-on-yellow);
  display: inline-block;
  margin-bottom: var(--space-md);
}

@media (max-width: 780px) {
  /* Trop étroit pour un ornement de côté : la mascotte revient dans le flux. */
  .lfp-sayhi__mascot { position: static; display: block; margin: var(--space-sm) auto 0; }
}

/* ==========================================================================
   COTISATIONS, AGENDA, FAQ — dépliables natifs, sans JavaScript
   ========================================================================== */

.lfp-fold {
  border: 2px solid var(--fp-blue);
  border-radius: var(--radius-lg);
  background: var(--fp-white);
  overflow: hidden;
}
.lfp-fold + .lfp-fold { margin-top: var(--space-sm); }
.lfp-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(0.9375rem, 0.9rem + 0.3vw, 1.125rem);
  color: var(--fp-blue);
}
.lfp-fold > summary::-webkit-details-marker { display: none; }
.lfp-fold > summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--duration-fast) var(--ease-out-expo);
}
.lfp-fold[open] > summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.lfp-fold__body { padding: 0 var(--space-lg) var(--space-lg); }

.lfp-faq { background: var(--color-bg-alt); }
.lfp-faq__list { max-width: 820px; margin-inline: auto; }

.lfp-agenda__placeholder {
  border: 2px dashed var(--fp-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.lfp-agenda__placeholder .mascot { width: 90px; margin: 0 auto var(--space-md); }

/* Liste des prochains rendez-vous, alimentée par le flux iCal de Twizzit.
   La pastille de date reprend le squircle de la charte ; la largeur fixe
   garde les titres alignés quel que soit le quantième. */
.lfp-agenda__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: var(--space-sm);
}
.lfp-agenda__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}
.lfp-agenda__quand {
  display: grid;
  place-items: center;
  width: 64px;
  padding: 0.35rem 0;
  background: var(--fp-blue);
  color: var(--fp-white);
  border-radius: var(--radius-md);
  font-family: var(--font-cond);
  text-transform: uppercase;
  line-height: 1;
}
.lfp-agenda__jour { font-size: 1.5rem; font-weight: 700; }
.lfp-agenda__mois { font-size: 0.8rem; font-weight: 600; }
.lfp-agenda__titre {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.0625rem;
  line-height: 1.2;
  margin: 0;
}
.lfp-agenda__meta {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0.2rem 0 0;
}
.lfp-agenda__tout { text-align: center; margin: var(--space-lg) 0 0; }

@media (max-width: 480px) {
  .lfp-agenda__item { grid-template-columns: 52px minmax(0, 1fr); gap: var(--space-sm); }
  .lfp-agenda__quand { width: 52px; }
  .lfp-agenda__jour { font-size: 1.25rem; }
}

/* ==========================================================================
   SPONSORS — logos en niveaux de gris sur une seule ligne
   ========================================================================== */

.lfp-sponsors__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  line-height: 1;
  color: var(--fp-blue);
  margin: 0 0 var(--space-sm);
  max-width: none;
}
.lfp-sponsors__subtitle { max-width: 56ch; }

.lfp-sponsors__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
}
.lfp-sponsors__list img {
  max-height: 64px;
  width: auto;
  filter: grayscale(1) contrast(1.15);
  opacity: 0.85;
  transition: filter var(--duration-normal) linear, opacity var(--duration-normal) linear;
}
.lfp-sponsors__list a:hover img { filter: none; opacity: 1; }
.lfp-sponsors__mail { color: var(--fp-blue); font-weight: 600; }

/* ==========================================================================
   PIED DE PAGE — aplat bleu
   ========================================================================== */

.site-footer {
  background: var(--fp-blue);
  color: var(--fp-white);
  padding-block: var(--space-xl) var(--space-md);
}
.site-footer a { color: var(--fp-white); text-decoration: none; }
.site-footer a:hover { color: var(--fp-yellow); text-decoration: underline; }

.site-footer__grid {
  display: grid;
  grid-template-columns:
    minmax(160px, 1fr) minmax(0, 1fr) repeat(3, minmax(0, 0.75fr)) auto;
  gap: clamp(1.25rem, 1rem + 2vw, 3rem);
  align-items: center;
}
/* Filets de séparation entre les colonnes, comme sur la maquette. */
.site-footer__grid > .site-footer__col + .site-footer__col,
.site-footer__grid > nav.site-footer__col {
  border-left: 1px solid rgb(255 255 255 / 0.32);
  padding-left: clamp(1rem, 0.5rem + 1.5vw, 2.5rem);
}
.site-footer__logo img { width: clamp(150px, 15vw, 210px); }
.site-footer__col {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col--accent a { color: var(--fp-yellow); }
.site-footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.site-footer__icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
.site-footer__social { display: flex; gap: 0.55rem; margin-top: var(--space-xs); }
.site-footer__social { gap: 0.75rem; }
.site-footer__social a { display: grid; place-items: center; }
.site-footer__social a:hover { color: var(--fp-yellow); }
.site-footer__social svg { width: 26px; height: 26px; fill: currentColor; }

.site-footer a.site-footer__top,
.site-footer__top {
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  background: var(--fp-white);
  border-radius: var(--radius-circle);
  color: var(--fp-blue);
}
.site-footer a.site-footer__top:hover { background: var(--fp-yellow); color: var(--fp-ink); }
.site-footer__top svg { width: 42px; height: 42px; fill: currentColor; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgb(255 255 255 / 0.28);
  font-family: var(--font-cond);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: rgb(255 255 255 / 0.85);
}
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.site-footer__cookies {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__cookies:hover { color: var(--fp-yellow); }

@media (max-width: 980px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { justify-self: start; }
}
@media (max-width: 980px) {
  /* Les filets séparent des colonnes : empilés, ils n'ont plus de sens. */
  .site-footer__grid > .site-footer__col + .site-footer__col,
  .site-footer__grid > nav.site-footer__col {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* --- Bascule entre les deux salles, en CSS pur ----------------------------- */

.lfp-venues { position: relative; display: grid; gap: var(--space-sm); }
.lfp-venues__radio { position: absolute; opacity: 0; pointer-events: none; }
/* Les deux pastilles de salle sont plus serrées : 4 pt de part et d'autre dans la
   maquette. Sans cela, elles ne tiennent pas côte à côte dans la colonne. */
.lfp-venues__switch label { cursor: pointer; padding-inline: 0.6rem; }
.lfp-venues__switch label[for="lfp-salle-1"] {
  --btn-bg: var(--fp-blue);
  --btn-fg: var(--fp-white);
  --btn-border: var(--fp-blue);
}
.lfp-venues__switch label[for="lfp-salle-2"] {
  --btn-bg: var(--fp-yellow);
  --btn-fg: var(--fp-ink);
  --btn-border: var(--fp-yellow);
}
.lfp-venues__panel { display: none; }
#lfp-salle-1:checked ~ .lfp-venues__switch label[for="lfp-salle-1"],
#lfp-salle-2:checked ~ .lfp-venues__switch label[for="lfp-salle-2"] {
  box-shadow: inset 0 0 0 2px var(--fp-ink);
}
#lfp-salle-1:checked ~ .lfp-venues__panel--1,
#lfp-salle-2:checked ~ .lfp-venues__panel--2 { display: grid; gap: var(--space-sm); }
.lfp-venues__radio:focus-visible ~ .lfp-venues__switch label[for] { outline: 3px solid var(--fp-yellow); outline-offset: 3px; }

/* ==========================================================================
   PAGES ANNEXES — comité du club, charte
   ========================================================================== */

.lfp-page { max-width: 820px; margin-inline: auto; }
.lfp-page .section-intro { margin-bottom: var(--space-lg); text-align: left; }
/* Le chapô de la galerie s'aligne sur la grille, pas sur le centre.
   ⚠️ La marge basse et l'alignement viennent d'ici et non plus de
   `.lfp-page .section-intro` : depuis le 07/09/2026 la page galerie est faite
   de blocs et n'a plus le conteneur `.lfp-page` qui portait cette règle. */
.lfp-galerie__intro {
  margin-inline: 0;
  margin-bottom: var(--space-lg);
  max-width: 62ch;
  text-align: left;
}

/* Le mot de la fin et la mascotte du comité. */
.lfp-comite__mot {
  margin: var(--space-xl) auto 0;
  max-width: 46ch;
  text-align: center;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.25rem);
  line-height: 1.3;
  color: var(--fp-blue);
}
.lfp-comite__mascotte {
  display: block;
  width: clamp(90px, 11vw, 140px);
  margin: var(--space-md) auto 0;
}

.lfp-badge--ink {
  color: var(--fp-ink);
  background: var(--fp-yellow);
  border-color: var(--fp-yellow);
  font-size: 1rem;
  margin-top: var(--space-xl);
}

.lfp-comite {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.lfp-comite__member {
  border: 2px solid var(--fp-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
}
/* Le portrait arrive déjà détouré sur sa pastille jaune, découpée en squircle
   par le graphiste : aucune forme à redonner ici, sinon on rognerait la sienne. */
.lfp-comite__photo {
  display: block;
  width: 132px;
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto var(--space-sm);
}
.lfp-comite__name {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--fp-blue);
  margin: 0 0 0.15rem;
}
.lfp-comite__role {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--color-text-muted);
  margin: 0;
}

.lfp-charte { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.lfp-charte li { padding-left: 1.6rem; position: relative; line-height: 1.6; }
.lfp-charte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px; height: 9px;
  border-radius: var(--radius-circle);
  background: var(--fp-yellow);
}
.lfp-charte strong {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fp-blue);
}
.lfp-charte--steps { counter-reset: step; }
.lfp-charte--steps li::before { background: var(--fp-blue); }

/* ==========================================================================
   COTISATIONS — grand panneau clair, cartes en deux colonnes, bloc volants
   ========================================================================== */

.lfp-infos { background: var(--color-bg-alt); }
/* Sur sa page dédiée, le titre du gabarit suffit : le titre interne ferait
   doublon. Il reste utile si la section revient un jour dans la page. */
.entry-content .lfp-infos { border-radius: 34px; }
.lfp-infos__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-lg);
}
.lfp-infos__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  font-size: clamp(1.75rem, 1.3rem + 2.1vw, 3.25rem);
  line-height: 1;
  color: var(--fp-blue);
  margin: 0 0 var(--space-sm);
}
.lfp-infos__head p { max-width: 52ch; margin: 0; }
.lfp-infos__mascot {
  width: clamp(130px, 16vw, 240px);
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: calc(var(--space-lg) * -1);
}

.lfp-infos__grid,
.lfp-infos__grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  align-items: start;
  margin-top: var(--space-lg);
}
.lfp-infos__grid > .wp-block-group__inner-container { grid-column: 1 / -1; margin-top: 0; }

/* --- Volants -------------------------------------------------------------- */

.lfp-volants {
  margin-top: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  background: var(--fp-white);
  border-radius: 34px;
  padding: clamp(1.25rem, 1rem + 1.4vw, 2.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
}
.lfp-volants__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}
.lfp-volants__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  font-size: clamp(1.25rem, 1.05rem + 0.85vw, 1.875rem);
  color: var(--fp-blue);
  margin: 0;
}
.lfp-volants__badge {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--radius-circle);
  background: var(--fp-blue);
  flex: none;
}
.lfp-volants__badge svg { width: 38px; height: 38px; color: var(--fp-white); fill: var(--fp-white); }
.lfp-volants__intro p { margin: 0; }

.lfp-volants__stock { border-left: 3px solid var(--fp-blue); padding-left: clamp(1rem, 0.7rem + 1.2vw, 2rem); }
.lfp-volants__subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
  color: var(--fp-blue);
  margin: 0 0 var(--space-sm);
}
.lfp-volants__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.lfp-volants__list li { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.lfp-volants__name {
  background: var(--fp-blue);
  color: var(--fp-white);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
  line-height: 1.1;
  min-width: 9.5rem;
  text-align: center;
}
.lfp-volants__price {
  background: var(--fp-yellow);
  color: var(--fp-blue);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.1875rem);
  line-height: 1.05;
  text-align: center;
  display: grid;
}
.lfp-volants__price small {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.625rem;
  letter-spacing: 0.03em;
}
.lfp-volants__note {
  grid-column: 1 / -1;
  margin: var(--space-sm) 0 0;
  font-weight: 700;
  font-size: 0.9375rem;
}

@media (max-width: 780px) {
  .lfp-infos__panel { grid-template-columns: 1fr; }
  .lfp-infos__mascot { justify-self: center; }
  .lfp-volants { grid-template-columns: 1fr; }
  .lfp-volants__stock { border-left: 0; border-top: 3px solid var(--fp-blue); padding: var(--space-md) 0 0; }
}

/* ==========================================================================
   BANDEAU COOKIES
   ========================================================================== */

.lfp-cookies {
  position: fixed;
  left: 50%;
  bottom: clamp(0.75rem, 2vw, 1.75rem);
  transform: translateX(-50%);
  z-index: var(--z-modal);
  width: min(680px, calc(100% - 2 * var(--gutter)));
  background: var(--fp-ink);
  color: var(--fp-white);
  border-radius: 22px;
  padding: clamp(0.9rem, 0.75rem + 0.6vw, 1.25rem);
  box-shadow: 0 18px 48px rgb(16 12 8 / 0.35);
}
.lfp-cookies[hidden] { display: none; }

.lfp-cookies__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  align-items: start;
}
.lfp-cookies__icon { display: grid; place-items: center; padding-top: 0.35rem; }
.lfp-cookies__icon svg { width: 40px; height: 40px; fill: var(--fp-yellow); }

.lfp-cookies__body { border-left: 1px solid rgb(255 255 255 / 0.3); padding-left: clamp(1rem, 0.8rem + 1vw, 1.75rem); }
.lfp-cookies__title {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 1.1;
  margin: 0 0 var(--space-xs);
  color: var(--fp-white);
}
.lfp-cookies__title span { color: var(--fp-yellow); }
.lfp-cookies__body p:not(.lfp-cookies__title) { font-size: 0.875rem; line-height: 1.5; margin: 0 0 var(--space-xs); }
.lfp-cookies__body p:last-child { margin-bottom: 0; }
.lfp-cookies__accent { color: var(--fp-yellow); }

.lfp-cookies__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgb(255 255 255 / 0.3);
}
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--fp-white); --btn-border: var(--fp-white); }
.btn--ghost-light:hover { --btn-bg: var(--fp-white); --btn-fg: var(--fp-ink); }

.lfp-cookies__link {
  margin-left: auto;
  color: var(--fp-white);
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  text-decoration-color: var(--fp-yellow);
  text-underline-offset: 4px;
}
.lfp-cookies__link:hover { color: var(--fp-yellow); }

/* Message affiché à la place d'une carte tant que le consentement manque. */
.lfp-map-hold {
  display: grid;
  gap: var(--space-sm);
  justify-items: start;
  padding: var(--space-md);
  border: 2px dashed var(--fp-blue);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: var(--color-text);
  margin: 0;
}
.lfp-map-hold[hidden] { display: none; }
iframe[data-lfp-src] { display: none; }

@media (max-width: 640px) {
  .lfp-cookies__inner { grid-template-columns: 1fr; }
  .lfp-cookies__icon { justify-self: start; }
  .lfp-cookies__body { border-left: 0; padding-left: 0; }
  .lfp-cookies__link { margin-left: 0; }
}

/* ==========================================================================
   MODALES
   ========================================================================== */

.lfp-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(760px, calc(100% - 2 * var(--gutter)));
  width: 100%;
  max-height: calc(100vh - 2 * var(--gutter));
  color: var(--color-text);
}
.lfp-modal--wide { max-width: min(720px, calc(100% - 2 * var(--gutter))); }
.lfp-modal::backdrop { background: rgb(16 12 8 / 0.62); }

.lfp-modal__box {
  background: var(--fp-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2 * var(--gutter));
}
.lfp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--fp-blue);
}
.lfp-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.625rem);
  line-height: 1.05;
  color: var(--fp-white);
}
.lfp-modal__close {
  border: 2px solid var(--fp-white);
  background: transparent;
  color: var(--fp-white);
  width: 40px; height: 40px;
  border-radius: var(--radius-circle);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
  display: grid;
  place-items: center;
}
.lfp-modal__close:hover { background: var(--fp-white); color: var(--fp-blue); }

.lfp-modal__body { padding: var(--space-lg); overflow: auto; }
/* L'affiche v4 (28/08, Walhain ajouté) est passée du carré au format 4/5 :
   le rapport est repris du PDF du graphiste, 1080,72 x 1350,93. Plus haute que
   large, elle débordait de l'écran sur un portable et le bouton « Rejoignez la
   tournée » tombait sous la ligne de flottaison. La largeur est donc bornée par
   la hauteur disponible plutôt que par celle de la fenêtre. On garde une largeur
   calculée et non `auto` : la combinaison `width:auto` + `aspect-ratio` dans un
   conteneur centré est justement celle que Safari peut résoudre à zéro. */
.lfp-modal__affiche {
  display: block;
  width: min(100%, calc((100vh - 11rem) * 1080.72 / 1350.93));
  height: auto;
  aspect-ratio: 1080.72 / 1350.93;
  margin-inline: auto;
}

/* L'affiche de la tournée mérite l'écran entier sur téléphone : le graphiste en
   a dessiné une version verticale exprès, que le carré imposé plus haut écrasait.
   La fenêtre occupe donc toute la surface, et l'image y tient en entier. */
@media (max-width: 700px) {
  .lfp-modal--plein {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
  }
  .lfp-modal--plein .lfp-modal__box {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .lfp-modal--plein .lfp-modal__body {
    display: grid;
    place-content: center;
    padding: 0;
    /* Le corps prend toute la hauteur restante sous l'en-tête, pour que
       l'affiche se pose au milieu de l'écran plutôt que collée en haut. */
    flex: 1;
    min-height: 0;
  }
  .lfp-modal--plein .lfp-modal__affiche {
    aspect-ratio: 386.869 / 687.726;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
}

/* ==========================================================================
   L'EASTER EGG — « Le Volant Perdu »
   ========================================================================== */

/* La mascotte du hero est le déclencheur : une tape ouvre l'invitation. Rien ne
   l'annonce au repos, sinon ce n'est plus un easter egg ; seul le curseur
   trahit qu'elle est cliquable, et uniquement à la souris. */
.lfp-hero__visual .mascot.is-tapotable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* L'invitation : courte, elle n'a pas besoin de la largeur d'une vraie fenêtre. */
.lfp-modal--invite { max-width: min(460px, calc(100% - 2 * var(--gutter))); }
.lfp-jeu__accroche { margin: 0 0 var(--space-lg); }
.lfp-modal--invite .btn-row { justify-content: flex-start; }

/* Le jeu se pilote au doigt et au clavier : il lui faut l'écran entier, à
   toutes les tailles. Il gère lui-même sa mise en page dans l'iframe, on ne
   lui impose donc qu'un cadre et aucune marge. */
.lfp-modal--jeu {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}
.lfp-modal--jeu .lfp-modal__box {
  height: 100%;
  max-height: 100%;
  border-radius: 0;
  background: var(--fp-blue);
}
.lfp-modal--jeu .lfp-modal__head {
  background: var(--fp-blue);
  color: var(--fp-white);
}
.lfp-modal--jeu .lfp-modal__title { color: var(--fp-white); }
.lfp-modal--jeu .lfp-modal__body {
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.lfp-jeu__cadre {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sans JavaScript, la modale reste un bloc lisible en fin de page. */
.no-js .lfp-modal { display: block; position: static; max-width: var(--wrap); margin: var(--space-lg) auto; }
/* Sauf celle du jeu : son corps est une iframe vide tant que l'easter egg n'a
   pas été déclenché, elle n'afficherait qu'un cadre creux en fin d'accueil.
   La classe `no-js` n'est aujourd'hui posée nulle part, la règle est donc une
   garde pour le jour où elle le sera. */
.no-js .lfp-modal--jeu,
.no-js .lfp-modal--invite { display: none; }

/* ==========================================================================
   GALERIE — page « Good Vibes »
   ========================================================================== */

.lfp-page--wide { max-width: none; }
.lfp-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-md);
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
}
.lfp-galerie__item { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.lfp-galerie__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Le bandeau Good Vibes conduit à la galerie. */
a.lfp-vibes__overlay { text-decoration: none; }
.lfp-vibes__more {
  display: inline-block;
  margin-top: var(--space-sm);
  border: 2px solid var(--fp-white);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.4rem;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9375rem;
  color: var(--fp-white);
  transition: background-color var(--duration-fast) linear, color var(--duration-fast) linear;
}
a.lfp-vibes__overlay:hover .lfp-vibes__more { background: var(--fp-white); color: var(--fp-ink); }

/* ==========================================================================
   TACTILE — surfaces de contact confortables au doigt
   ========================================================================== */

@media (pointer: coarse) {
  /* Les liens du pied de page tenaient sur 15 px de haut. */
  .site-footer__col a,
  .site-footer__contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .site-footer__col ul { line-height: 1.2; }

  .site-footer__legal a,
  .site-footer__cookies {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .site-footer__social a { width: 44px; height: 44px; }

  .lfp-modal__close { width: 46px; height: 46px; }
  .lfp-cookies__link { display: inline-flex; align-items: center; min-height: 44px; }

  .lfp-sayhi__mail,
  .lfp-sponsors__mail,
  .lfp-fold > summary { min-height: 44px; }
  .lfp-sayhi__mail { display: inline-flex; align-items: center; }

  /* Les intitulés de champ deviennent des surfaces cliquables franches. */
  .lfp-form label { padding-block: 0.35rem; }
}

/* ==========================================================================
   MOBILE — centrage  des blocs qui restaient calés à gauche
   ========================================================================== */

@media (max-width: 780px) {
  /* Sur un écran étroit, un bloc aligné à gauche paraît décentré : la maquette
     centre tout ce qui n'est pas une liste de données. */
  .lfp-play__head,
  .lfp-play__titles { text-align: center; }
  .lfp-play__head { justify-content: center; }
  .lfp-play__head .btn { margin-inline: auto; }
  /* Le badge est un inline-block : `margin: auto` ne le centre pas, il faut
     agir depuis le parent. Les créneaux, eux, restent alignés à gauche. */
  .lfp-schedule { text-align: center; }
  .lfp-schedule__days { text-align: left; }
  .lfp-play__note { margin-inline: auto; text-align: center; }

  .lfp-hero__body { text-align: center; }
  .lfp-hero__lead { margin-inline: auto; }
  .lfp-hero .btn-row { justify-content: center; }

  .lfp-trio__col { text-align: center; align-items: center; }
  .lfp-trio__col .section-title,
  .lfp-trio__col .section-lead { margin-inline: auto; }
  .lfp-trio__col .btn { align-self: center; }
  .lfp-venues__switch { justify-content: center; }
  .lfp-venues__addr { text-align: center; }
  .lfp-venue__route { justify-self: center; }

  .lfp-infos__head { text-align: center; }
  .lfp-infos__head p { margin-inline: auto; }

  /* Le vélo se centre au-dessus de ses étapes. */
  .lfp-tour__rider { margin-inline: auto; }

  .lfp-map-hold { justify-items: center; text-align: center; }
}

@media (max-width: 620px) {
  /* Les créneaux gardent un alignement à gauche : c'est un tableau de données,
     le centrer nuirait à la lecture. */
  .lfp-schedule__days { text-align: left; }
}

/* ==========================================================================
   FORMULAIRE SUR PETIT ÉCRAN
   ========================================================================== */

@media (max-width: 620px) {
  /* Marges resserrées : chaque pixel compte pour loger le widget anti-robot. */
  .lfp-fold__body { padding: 0 var(--space-md) var(--space-md); }
  .lfp-form { padding: var(--space-md); }
}

/* Le widget Cloudflare est livré à 300 px fixes, sans version fluide. Sous les
   largeurs où il ne tient plus, on le réduit plutôt que de laisser la page
   déborder. La hauteur suit l'échelle pour ne pas laisser de blanc dessous. */
@media (max-width: 400px) {
  .lfp-form .cf-turnstile {
    transform: scale(0.9);
    transform-origin: left top;
    height: 59px;
  }
}
@media (max-width: 350px) {
  .lfp-form .cf-turnstile {
    transform: scale(0.78);
    height: 51px;
  }
}

/* ==========================================================================
   GOOD VIBES — la vague ne doit pas mordre sur le bouton
   ========================================================================== */

@media (max-width: 780px) {
  /* Le bandeau est plus court sur mobile : sans réserve, le contenu centré
     venait buter dans la vague posée en bas. C'est le bloc galerie qui porte
     la hauteur, `.lfp-vibes__strip` n'existe pas dans le rendu. */
  .lfp-vibes .lfp-gallery__grid { height: clamp(300px, 62vw, 380px); }
  .lfp-vibes__overlay { padding-bottom: clamp(4rem, 16vw, 6rem); }
  .lfp-wave--top { height: clamp(40px, 9vw, 60px); }
}

/* En dessous de 700 px la galerie passe en mosaïque 2 x 2 (voir blocks.css) :
   il lui faut deux rangées de hauteur, sinon les photos restent des lamelles.
   Le voile central est allégé pour qu'on distingue les visages derrière. */
@media (max-width: 700px) {
  .lfp-vibes .lfp-gallery__grid { height: clamp(380px, 104vw, 520px); }
  .lfp-vibes__overlay {
    background:
      radial-gradient(66% 42% at 50% 48%, rgb(16 12 8 / 0.66), rgb(16 12 8 / 0.12) 82%),
      linear-gradient(rgb(16 12 8 / 0.18), rgb(16 12 8 / 0.18));
  }
}

/* --- Visionneuse de photos ------------------------------------------------- */

.lfp-galerie__img { cursor: zoom-in; transition: transform var(--duration-normal) var(--ease-out-expo); }
.lfp-galerie__item:hover .lfp-galerie__img { transform: scale(1.04); }
.lfp-galerie__img:focus-visible { outline: 3px solid var(--fp-yellow); outline-offset: 3px; }

.lfp-modal--photo { max-width: min(1100px, calc(100% - 2 * var(--gutter))); }
.lfp-modal--photo .lfp-modal__body { padding: 0; background: var(--fp-ink); }
.lfp-modal__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 12rem);
  object-fit: contain;
  margin-inline: auto;
}
.lfp-modal--photo .lfp-modal__title {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: none;
  font-size: 1rem;
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  .lfp-galerie__item:hover .lfp-galerie__img { transform: none; }
}
