/* ==========================================================================
   Base — reset, typographie, primitives
   Calé sur la maquette du graphiste : lettrage display, sous-titres condensés
   bold en capitales, boutons pastille, aplats de couleur pleine.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* `clip` plutôt que `hidden` : le tiroir de menu, posé hors écran à droite,
   n'étend plus la zone de défilement, et l'en-tête reste collant. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 var(--space-sm); line-height: var(--leading-tight); font-weight: 800; }
p { margin: 0 0 var(--space-md); }
p:last-child { margin-bottom: 0; }

a { color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--fp-blue-dark); }

:focus-visible {
  outline: 3px solid var(--fp-yellow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Familles typographiques ---------------------------------------------- */

/* Lettrage de la charte : titres, intitulés, noms de lieux. */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--display-tracking);
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

/* Condensée bold en capitales : sous-titres, boutons, navigation, horaires. */
.cond {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.15;
}

/* --- Utilitaires ---------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-xs); left: var(--space-xs);
  z-index: calc(var(--z-header) + 10);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  background: var(--fp-blue);
  color: var(--fp-white);
  border-radius: var(--radius-pill);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease-out-expo);
}
.skip-link:focus { transform: translateY(0); color: var(--fp-white); }

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.wrap--narrow { width: min(var(--wrap-narrow), 100% - var(--gutter) * 2); }
.wrap--wide { width: min(var(--wrap-wide), 100% - var(--gutter) * 2); }

/* --- Sections ------------------------------------------------------------- */

.section { padding-block: var(--space-section); position: relative; }
.section, .lfp-hero { scroll-margin-top: calc(var(--header-h) + 12px); }
.section--alt { background: var(--color-bg-alt); }
.section--blue { background: var(--fp-blue); color: var(--fp-white); }
.section--blue a:not(.btn) { color: var(--fp-yellow); }
.section--yellow { background: var(--fp-yellow); color: var(--fp-ink); }
.section--yellow a:not(.btn) { color: var(--fp-blue-on-yellow); }

/* --- Titre de section ------------------------------------------------------ */
/* Le graphiste livre les 8 titres en SVG vectoriel : on les garde comme visuel
   et le vrai <h2> reste dans le DOM, masqué, pour le SEO et les lecteurs
   d'écran. Le sous-titre juste dessous est en condensée bold, comme la maquette. */

.section-head { text-align: center; margin-bottom: var(--space-xl); }
.section-head--left { text-align: left; }

.section-title { margin: 0 0 var(--space-xs); }

.section-head--left .section-title__art { margin-inline: 0; }

.section-lead {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.875rem);
  line-height: 1.05;
  letter-spacing: 0.002em;
  color: var(--color-text);
  margin: 0 auto var(--space-md);
  max-width: 42ch;
  text-wrap: balance;
}
.section-head--left .section-lead { margin-inline: 0; }
.section--blue .section-lead { color: var(--fp-white); }

.section-intro {
  max-width: 68ch;
  margin: 0 auto;
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.section--blue .section-intro { color: rgb(255 255 255 / 0.92); }
.section-head--left .section-intro { margin-inline: 0; }

/* --- Boutons -------------------------------------------------------------- */
/* Pastille condensée bold en capitales, comme sur la maquette. */

.btn {
  --btn-bg: var(--fp-blue);
  --btn-fg: var(--fp-white);
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 34px;
  /* Ventura Edding assied ses capitales haut dans la boîte de ligne : centrée
     géométriquement, l'étiquette laisse deux fois plus d'air en dessous qu'au
     dessus. Mesuré sur les captures du client : 5,5 px d'écart pour un corps de
     18 px, la même proportion sur tous les boutons de la page. On en rattrape la
     moitié en décalant le contenu vers le bas, à somme de marges constante pour
     ne pas changer la hauteur des pastilles.
     Le pictogramme suit le texte, avec lequel il est déjà aligné au pixel. */
  --btn-pad-y: 0.2rem;
  --btn-optique: 0.1em;
  padding-block: calc(var(--btn-pad-y) + var(--btn-optique)) calc(var(--btn-pad-y) - var(--btn-optique));
  padding-inline: 0.95rem;
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-cond);
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  text-wrap: balance;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out-back),
    background-color var(--duration-fast) linear,
    color var(--duration-fast) linear,
    border-color var(--duration-fast) linear;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__icon { width: 1.15em; height: 1.15em; flex: none; }
/* Le volant est l'emblème du club : le client le veut un peu plus présent. */
.btn__icon--plume { width: 1.4em; height: 1.4em; }

.btn--yellow { --btn-bg: var(--fp-yellow); --btn-fg: var(--fp-ink); }
.btn--yellow:hover { --btn-bg: var(--fp-yellow-dark); }
.btn--blue:hover { --btn-bg: var(--fp-blue-dark); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fp-ink);
  --btn-border: var(--fp-ink);
}
.btn--ghost:hover { --btn-bg: var(--fp-ink); --btn-fg: var(--fp-white); }

.section--blue .btn--ghost { --btn-fg: var(--fp-white); --btn-border: var(--fp-white); }
.section--blue .btn--ghost:hover { --btn-bg: var(--fp-white); --btn-fg: var(--fp-blue); }

.btn--sm { padding-inline: 1.05rem; font-size: clamp(0.875rem, 0.82rem + 0.3vw, 1.0625rem); }

/* Au doigt, toute cible doit offrir au moins 44 px de haut. La maquette montre un
   écran de bureau : sa hauteur de 34 px y est confortable, pas sous le pouce. */
@media (pointer: coarse) {
  .btn { min-height: 44px; --btn-pad-y: 0.6rem; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }

/* --- Cartes --------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--fp-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.card__title { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.card__text { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }

/* --- Animations au scroll ------------------------------------------------- */

/* Masquage initial UNIQUEMENT si le JS est actif (classe .js posée dans <head>).
   Sans JS, le contenu reste visible : robustesse SEO + accessibilité. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
