/* ==========================================================================
   Blocs sur mesure lfp/* — habillage calé sur la maquette
   ========================================================================== */

/* --- Horaires -------------------------------------------------------------
   Sur fond bleu : le jour en lettrage de la charte, l'heure en jaune,
   la salle en blanc, une colonne par jour. */

.lfp-schedule__days {
  display: grid;
  /* `auto-fit` répartissait l'espace restant au prorata : les jours chargés
     paraissaient serrés, les autres larges. Des colonnes égales règlent le
     rythme, la mise en page ne dépend plus du contenu. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* L'été n'a que deux jours : des colonnes pleine largeur les délaveraient. */
.lfp-schedule--summer .lfp-schedule__days { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }

/* Un filet vertical sépare les jours, comme sur la maquette. */
.lfp-schedule__day { padding-inline: clamp(0.75rem, 0.5rem + 1vw, 1.75rem); }
.lfp-schedule__day:first-child { padding-left: 0; }
.lfp-schedule__day + .lfp-schedule__day { border-left: 1px solid rgb(255 255 255 / 0.32); }
.section:not(.section--blue) .lfp-schedule__day + .lfp-schedule__day { border-left-color: var(--color-border); }

.lfp-schedule__dayname {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2.5rem);
  line-height: 1;
  color: var(--fp-white);
  margin: 0 0 var(--space-sm);
}

.lfp-slot { margin: 0 0 var(--space-sm); }
.lfp-slot:last-child { margin-bottom: 0; }
.lfp-slot__time,
.lfp-slot__venue {
  display: block;
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.25;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.4375rem);
}
.lfp-slot__time {
  color: var(--fp-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
}
.lfp-slot__clock { width: 1em; height: 1em; flex: none; fill: currentColor; }
.lfp-slot__venue { color: var(--fp-white); }

/* Hors aplat bleu, on repasse en encre. */
.section:not(.section--blue) .lfp-schedule__dayname {
  white-space: nowrap; color: var(--fp-blue); }
.section:not(.section--blue) .lfp-slot__time { color: var(--fp-blue); }
.section:not(.section--blue) .lfp-slot__venue { color: var(--color-text-muted); }

.lfp-badge {
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: var(--radius-pill);
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3125rem);
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-md);
  /* Les capitales de la display ne sont pas centrées dans leur boîte de ligne :
     mesurées à 21 px, elles laissent 6 px au-dessus et 11 px en dessous. Le
     décalage suit la taille du texte, la correction est donc en `em` et non en
     pixels. Le `0.02em` à droite compense l'interlettrage du dernier signe. */
  padding: calc(0.35rem + 0.12em) calc(1.3rem - 0.02em) calc(0.35rem - 0.12em) 1.3rem;
}

/* --- Tarifs ---------------------------------------------------------------
   Carte blanche coiffée d'un bandeau bleu au bord inférieur arrondi, prix en
   pastille : c'est la composition de la maquette (page « Cotisations »). */

.lfp-pricing {
  background: var(--fp-white);
  border-radius: 34px;
  overflow: hidden;
  /* Chaque carte s'ajuste à son contenu, comme sur la maquette : les forcer à
     la même hauteur laisserait de grands vides sous les cartes courtes. */
  align-self: start;
}

.lfp-pricing__heading {
  margin: 0;
  padding: 1rem 1.5rem 1.35rem;
  background: var(--fp-blue);
  /* Le bandeau s'achève sur une courbe, pas sur une ligne droite. */
  border-radius: 0 0 50% 50% / 0 0 26px 26px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
}
.lfp-pricing__crest { width: 42px; height: 42px; fill: var(--fp-white); }
.lfp-pricing__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.5rem);
  line-height: 1.05;
  color: var(--fp-white);
}
.lfp-pricing__subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
  line-height: 1.1;
  color: var(--fp-yellow);
}

.lfp-pricing__body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; }
.lfp-pricing__list { margin: 0; padding: 0; display: grid; gap: 0.15rem; }

.lfp-pricing__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.6rem 0;
}
.lfp-pricing__row + .lfp-pricing__row { border-top: 2px solid var(--fp-blue-tint, #d8ecf7); }
.lfp-pricing__row--icon { grid-template-columns: auto 1fr; }

.lfp-pricing__icon {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: var(--radius-circle);
  background: var(--fp-yellow);
  flex: none;
}
.lfp-pricing__glyph { width: 34px; height: 34px; fill: var(--fp-blue); }

.lfp-pricing__label {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.0625rem;
  line-height: 1.15;
  color: var(--fp-blue);
  margin: 0;
}
.lfp-pricing__detail,
.lfp-pricing__note {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-text);
  margin-top: 0.15rem;
}
.lfp-pricing__note { color: var(--color-text); }

.lfp-pricing__price {
  margin: 0;
  justify-self: end;
  background: var(--fp-blue);
  color: var(--fp-white);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
}
.lfp-pricing__row.is-highlight .lfp-pricing__price {
  background: var(--fp-yellow);
  color: var(--fp-blue);
}

.lfp-pricing__footnote {
  margin: var(--space-md) 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* Variante « notes » : pictogramme à gauche, texte long à droite, sans prix. */
.lfp-pricing--notes .lfp-pricing__row { align-items: start; }
.lfp-pricing--notes .lfp-pricing__label { font-size: 1.25rem; }

.lfp-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  align-items: stretch;
}
/* WordPress enveloppe les enfants d'un bloc groupe : on cible ce conteneur. */
.lfp-cols > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  align-items: stretch;
  grid-column: 1 / -1;
}

/* --- Salles ---------------------------------------------------------------- */

.lfp-venue {
  border: 0;
  padding: 0;
  background: none;
  display: grid;
  gap: var(--space-xs);
}
.lfp-venue__name {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.0625rem;
  color: var(--fp-blue);
  margin: 0;
}
.lfp-venue__address {
  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: 0;
}
.lfp-venue__route { justify-self: start; }

/* --- Galerie ---------------------------------------------------------------
   Dans Good Vibes, la galerie est un bandeau pleine largeur. */

.lfp-gallery__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  height: clamp(240px, 30vw, 420px);
}
.lfp-gallery__item { overflow: hidden; }
.lfp-gallery__img { width: 100%; height: 100%; object-fit: cover; }

/* Sur mobile, le bandeau garde sa forme mais ne montre que trois photos :
   une grille de vignettes casserait la lecture du titre posé par-dessus. */
@media (max-width: 620px) {
  .lfp-schedule__days,
  .lfp-schedule--summer .lfp-schedule__days { grid-template-columns: 1fr; }
  /* En une seule colonne, le client veut les horaires centrés plutôt que
     rangés à gauche : jour, heure et salle prennent le même axe. */
  .lfp-schedule__day { padding-inline: 0; padding-block: var(--space-sm); text-align: center; }
  .lfp-slot__time { justify-content: center; }
  .lfp-schedule__day + .lfp-schedule__day {
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 0.32);
  }
  .section:not(.section--blue) .lfp-schedule__day + .lfp-schedule__day {
    border-top-color: var(--color-border);
  }
}

/* Sur téléphone, trois photos côte à côte se réduisaient à des lamelles de
   130 px de large : le client ne voyait plus qu'il s'agissait de photos du
   club. Une mosaïque 2 x 2 donne à chacune une vraie surface, et la hauteur
   du bandeau est reprise dans sections.css (sélecteur plus spécifique). */
@media (max-width: 700px) {
  .lfp-gallery__grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
  }
  .lfp-gallery__item:nth-child(n + 5) { display: none; }
}

/* --- Partenaires ----------------------------------------------------------- */

/* Le bloc ne produit plus de titre par défaut : le masquer revenait à n'en
   écrire un que pour le moteur de recherche. S'il est saisi, il s'affiche. */

/* Des cellules de largeur égale donnent le rythme régulier de la maquette :
   les logos ont des proportions très différentes, seule la boîte les aligne. */
.lfp-sponsors__grid {
  display: grid;
  /* Les sept partenaires tiennent sur une seule ligne, comme sur la maquette. */
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(0.75rem, 0.4rem + 1.4vw, 2rem);
  list-style: none;
  margin: clamp(2rem, 1.4rem + 2.4vw, 3.5rem) 0 0;
  padding: 0;
}
.lfp-sponsors__item { display: grid; place-items: center; width: 100%; }
.lfp-sponsors__item a { display: grid; place-items: center; width: 100%; }
.lfp-sponsors__item img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  /* La maquette pose les logos en noir franc, pas en gris pâle. */
  filter: grayscale(1) contrast(1.35) brightness(0.82);
  transition: filter var(--duration-normal) linear, opacity var(--duration-normal) linear;
}
.lfp-sponsors__item a:hover img { filter: none; opacity: 1; }
/* Sept logos en grille laissent un orphelin seul sur la dernière ligne. En
   flex centré, cette dernière ligne se centre d'elle-même. */
@media (max-width: 620px) {
  .lfp-sponsors__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 6vw, 2.5rem);
  }
  .lfp-sponsors__item { width: min(38%, 140px); }
  .lfp-sponsors__item img { max-height: 46px; }
}

.lfp-sponsors__item span {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- Formulaire de contact -------------------------------------------------- */

.lfp-form {
  display: grid;
  /* `minmax(0, 1fr)` empêche un enfant large (le widget Turnstile fait 300 px
     fixes) d'élargir la colonne au-delà du conteneur. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  background: var(--fp-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: left;
  max-width: 640px;
  margin-inline: auto;
}
.lfp-form label {
  display: block;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: var(--fp-blue);
  margin-bottom: 0.3rem;
}
.lfp-form input,
.lfp-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--fp-white);
  color: var(--color-text);
}
.lfp-form input:focus, .lfp-form textarea:focus { border-color: var(--fp-blue); outline: none; }
.lfp-form textarea { min-height: 140px; resize: vertical; }
.lfp-form__row { margin: 0; }
.lfp-form__hp { position: absolute; left: -9999px; }

.lfp-form__notice {
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: 0.9375rem;
  margin: 0 auto var(--space-md);
  max-width: 640px;
}
.lfp-form__notice.is-ok { background: #e6f5ec; color: #14532d; }
.lfp-form__notice.is-error { background: #fdecec; color: #7f1d1d; }

/* --- Agenda ---------------------------------------------------------------- */

.lfp-agenda__frame {
  border: 2px solid var(--fp-blue);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.lfp-agenda__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lfp-agenda__mascot { width: 90px; margin: 0 auto var(--space-md); }
.lfp-agenda__text { color: var(--color-text-muted); max-width: 56ch; margin-inline: auto; }

/* --- Questions fréquentes --------------------------------------------------- */

.lfp-faq__item { margin-bottom: var(--space-sm); }
.lfp-faq__q {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--fp-blue);
}
.lfp-faq__a { font-size: 0.9375rem; color: var(--color-text); margin: 0; }
