/* =========================================================================
   POWERCLUB TARARE — Feuille de style unique
   -------------------------------------------------------------------------
   Organisation :
     1.  Polices auto-hébergées (@font-face)
     2.  Variables de design (:root)  ← tout se règle ici
     3.  Reset & bases
     4.  Utilitaires de mise en page (container, sections, grilles)
     5.  Signature : décalage chromatique + doubles filets
     6.  Logotype (header/footer)
     7.  En-tête + navigation + burger mobile
     8.  Boutons
     9.  Cartes, encarts, tableaux
     10. Barre CTA fixe mobile
     11. Blocs spécifiques (hero, repères, actus, tarifs, partenaires…)
     12. Formulaires (contact + parcours d'adhésion)
     13. Pied de page
     14. Animations d'apparition au scroll
     15. Accessibilité & prefers-reduced-motion
     16. Points de rupture (768px, 1024px)
   Aucune valeur « en dur » : tout passe par les variables du bloc :root.
   ========================================================================= */


/* =========================================================================
   1. POLICES AUTO-HÉBERGÉES — aucun CDN (RGPD)
   ========================================================================= */

/* Horizon — réservée aux très grands titres. Fournie par le club. */
@font-face {
  font-family: "Horizon";
  src: url("../assets/fonts/Horizon.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* Archivo — fonte VARIABLE (axe wght 100→900) : un seul fichier couvre
   Regular (400), Medium (500) et Black (900). */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/Archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* =========================================================================
   2. VARIABLES DE DESIGN — LE POSTE DE PILOTAGE
   Pour changer une couleur, un espacement, un rayon : c'est ici et nulle
   part ailleurs.
   ========================================================================= */

:root {

  /* --- Couleurs de marque (charte) : aplats & grands formats uniquement --- */
  --red:          #EB090A;   /* rouge de marque — boutons, aplats, gros titres */
  --blue:         #3243E1;   /* bleu de marque — aplats, gros titres */

  /* --- Variantes accessibles pour le TEXTE (contraste vérifié) --- */
  --red-text:     #C40708;   /* rouge sur fond clair (ratio 6.21) */
  --blue-onDark:  #6B7AFF;   /* bleu sur fond sombre (ratio 5.85) */

  /* --- Base noir & blanc + nuances de surface (le site respire la densité) --- */
  --black:        #000000;
  --ink:          #0A0A0B;   /* fond principal, un noir très légèrement chaud */
  --surface-1:    #131316;   /* cartes, encarts posés sur le noir */
  --surface-2:    #1C1C21;   /* survols, champs de formulaire */
  --line:         #2A2A31;   /* filets, bordures discrètes */
  --white:        #FFFFFF;
  --smoke:        #EDEDF0;   /* texte principal sur fond noir (pas blanc pur) */
  --muted:        #9A9AA7;   /* texte secondaire, légendes */

  /* --- Rôles sémantiques (on ne référence que ceux-ci dans le code) --- */
  --bg:           var(--ink);
  --fg:           var(--smoke);
  --accent:       var(--red);
  --accent-text:  var(--red-text);

  /* --- Typographies (stacks) --- */
  --font-display: "Horizon", "Anton", "Arial Black", sans-serif; /* très grands titres */
  --font-strong:  "Archivo", "Arial Black", sans-serif;          /* intertitres, boutons, accroches */
  --font-body:    "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* --- Échelle typographique fluide (clamp) --- */
  --fs-hero:  clamp(2.5rem, 7.5vw, 6.25rem);  /* h1 massif (réduit) */
  --fs-h1:    clamp(2.25rem, 6.5vw, 5rem);
  --fs-h2:    clamp(1.9rem, 5vw, 3.6rem);
  --fs-h3:    clamp(1.3rem, 3vw, 2rem);
  --fs-lead:  clamp(1.1rem, 1.6vw, 1.4rem);   /* chapô */
  --fs-body:  clamp(1rem, 1.1vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;                        /* sur-titre en capitales */

  /* --- Échelle d'espacement, base 4px --- */
  --sp-1:  0.25rem;   /*  4px */
  --sp-2:  0.5rem;    /*  8px */
  --sp-3:  0.75rem;   /* 12px */
  --sp-4:  1rem;      /* 16px */
  --sp-5:  1.5rem;    /* 24px */
  --sp-6:  2rem;      /* 32px */
  --sp-7:  3rem;      /* 48px */
  --sp-8:  4rem;      /* 64px */
  --sp-9:  6rem;      /* 96px */
  --sp-10: 8rem;      /* 128px */

  /* --- Rayons d'angle (une image dans une carte a toujours un rayon < carte) --- */
  --r-sm:   12px;   /* petits éléments */
  --r-md:   20px;   /* boutons, encarts */
  --r-lg:   32px;   /* cartes, images */
  --r-xl:   48px;   /* grands blocs, carte Maps */
  --r-pill: 999px;  /* pilules */

  /* --- Décalage chromatique (signature du logo) --- */
  --offset-x: 5px;
  --offset-y: 5px;
  --offset-color: var(--blue);   /* redéfini par section pour alterner rouge/bleu */

  /* --- Largeurs & rythme --- */
  --container:   1200px;
  --measure:     65ch;    /* longueur de lecture confortable */
  --header-h:    76px;

  /* --- Mouvement --- */
  --ease-in:   cubic-bezier(0.34, 1.56, 0.64, 1);  /* apparition (léger dépassement) */
  --ease-hover:cubic-bezier(0.22, 1, 0.36, 1);     /* survols nets */
  --t-hover:   320ms;
  --t-reveal:  600ms;

  /* --- Ombres (rares, franches) --- */
  --shadow-card: 0 24px 60px -30px rgba(0,0,0,0.9);

  color-scheme: dark;
}


/* =========================================================================
   3. RESET & BASES
   ========================================================================= */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;             /* jamais de débordement horizontal */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

p { max-width: var(--measure); }

ul, ol { padding-left: 1.2em; }

h1, h2, h3, h4 { line-height: 1.05; text-wrap: balance; }

strong, b { font-weight: 700; }

::selection { background: var(--red); color: var(--white); }


/* =========================================================================
   4. UTILITAIRES DE MISE EN PAGE
   ========================================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

/* Section standard : rythme vertical généreux */
.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }

/* Bandes pleine largeur : angles droits (règle de la charte) */
.band { width: 100%; }
.band--dark  { background: var(--ink); }
.band--panel { background: var(--surface-1); }

/* Sur-titre (eyebrow) en capitales, précédé d'un court filet */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-strong);
  font-weight: 900;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 6px;
  background: var(--accent);
  border-radius: var(--r-pill);
}

/* En-tête de section réutilisable */
.section-head { margin-bottom: var(--sp-6); max-width: 26ch; }
/* Titre d'intro accueil : forcé sur exactement 2 lignes (le <br>).
   On retire la limite de largeur et on empêche tout retour à la ligne
   automatique ; sur mobile la taille suit la largeur d'écran (vw) pour
   rester sur 2 lignes sans jamais déborder. */
@media (min-width: 768px) {
  .section-head:has(.intro-title-2l) { max-width: none; }
  .intro-title-2l { white-space: nowrap; }
}
@media (max-width: 767.98px) {
  .section-head:has(.intro-title-2l) { max-width: none; }
  .display.intro-title-2l { font-size: 4.8vw; white-space: nowrap; }
}
.section-head .eyebrow { margin-bottom: var(--sp-3); }

/* Grilles utilitaires */
.grid { display: grid; gap: var(--sp-5); }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }

.center { text-align: center; }
.stack > * + * { margin-top: var(--sp-4); }


/* =========================================================================
   5. SIGNATURE — DÉCALAGE CHROMATIQUE + DOUBLES FILETS
   Les deux seuls motifs décoratifs du site. Utilisés partout, sans variante.
   ========================================================================= */

/* Titres display : Horizon, très serrés, capitales */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.03em;
}
.display--hero { font-size: var(--fs-hero); }
.display--h1   { font-size: var(--fs-h1); }
.display--h2   { font-size: var(--fs-h2); }

/* Décalage chromatique : doublon net, sans flou, dans la couleur
   complémentaire. À RÉSERVER aux très gros titres (illisible en petit).
   La couleur du doublon est portée par --offset-color, alternée par section. */
.offset {
  text-shadow: var(--offset-x) var(--offset-y) 0 var(--offset-color);
}
/* Alternance : on pose la classe sur la section ou le titre */
.offset--blue { --offset-color: var(--blue); }
.offset--red  { --offset-color: var(--red); }

/* Doubles filets — séparateur de sections et décor d'intertitres.
   Deux traits fins parallèles, exactement comme autour de « POWERCLUB ». */
.filets {
  --filet-color: var(--line);
  height: 12px;
  border: 0;
  border-top: 3px solid var(--filet-color);
  border-bottom: 3px solid var(--filet-color);
  width: 100%;
}
.filets--accent { --filet-color: var(--red); }
.filets--short  { width: 64px; }

/* Filets accolés à un intertitre (petit trait double avant le texte) */
.filets-inline {
  display: inline-block;
  width: 44px; height: 10px;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  vertical-align: middle;
  margin-right: var(--sp-3);
}


/* =========================================================================
   6. LOGOTYPE (rendu typographique fidèle, indépendant de la résolution)
   Reproduit le lockup : « POWERCLUB » encadré de doubles filets, « TARARE »
   dessous, le tout au décalage chromatique. Remplaçable par un SVG fourni.
   ========================================================================= */

.brand { display: inline-flex; flex-direction: column; gap: 2px; line-height: 0.8; }
.brand__row {
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.brand__flank { flex: 0 0 auto; width: 18px; height: 8px; border-top: 2px solid var(--blue); border-bottom: 2px solid var(--red); }
.brand__word  { font-size: 0.95rem; color: var(--white); text-shadow: 2px 2px 0 var(--blue); }
.brand__town  { font-size: 1.5rem; color: var(--white); text-shadow: 2px 2px 0 var(--red); letter-spacing: 0.02em; }
.brand:hover .brand__word { text-shadow: 2px 2px 0 var(--red); }
.brand:hover .brand__town { text-shadow: 2px 2px 0 var(--blue); }
.brand__word, .brand__town { transition: text-shadow var(--t-hover) var(--ease-hover); }
/* Logo image dans l'en-tête (remplace le rendu typographique) */
.brand__logo { display: block; height: 44px; width: auto; }
.brand:hover .brand__logo { opacity: 0.9; transition: opacity var(--t-hover) var(--ease-hover); }


/* =========================================================================
   7. EN-TÊTE + NAVIGATION + BURGER MOBILE
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-hover) var(--ease-hover),
              border-color var(--t-hover) var(--ease-hover);
}
/* État « défilé » (classe posée par le JS) : fond plein + filet */
.site-header.is-scrolled {
  background: var(--ink);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
}

.nav__links { display: none; }   /* masqués en mobile, dans le burger */

.nav__link {
  position: relative;
  font-family: var(--font-strong);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
  padding: var(--sp-2) 0;
  transition: color var(--t-hover) var(--ease-hover);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-hover) var(--ease-hover);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--white); }
.nav__link:hover::after, .nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: var(--sp-3); }

/* Bouton burger */
.burger {
  --bar: 2px;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 46px; height: 46px;
  padding: 0 10px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger span { display: block; height: var(--bar); width: 100%; background: var(--white); border-radius: 2px;
  transition: transform var(--t-hover) var(--ease-hover), opacity var(--t-hover) var(--ease-hover); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menu plein écran mobile — liste lisible, motif de filets en accent */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  gap: 0;
  padding: calc(var(--header-h) + var(--sp-5)) var(--sp-5) var(--sp-6);
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 420ms var(--ease-hover), visibility 420ms;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }

/* Liens de navigation : tous sauf le bouton final (dernier <a>) */
.mobile-menu a:not(:last-child) {
  position: relative;
  display: flex; align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--white);
  white-space: nowrap;                 /* jamais de coupure : le texte reste entier */
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  transition: color var(--t-hover) var(--ease-hover),
              padding-left var(--t-hover) var(--ease-hover);
}
/* Petit double-filet (signature du logo) à gauche de chaque lien, révélé à l'état actif */
.mobile-menu a:not(:last-child)::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 18px; height: 9px; margin-top: -4px;
  border-top: 2px solid var(--blue);
  border-bottom: 2px solid var(--red);
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--t-hover) var(--ease-hover), transform var(--t-hover) var(--ease-hover);
}
.mobile-menu a:not(:last-child):hover,
.mobile-menu a:not(:last-child):focus-visible,
.mobile-menu a:not(:last-child)[aria-current="page"] { color: var(--blue-onDark); padding-left: var(--sp-5); }
.mobile-menu a:not(:last-child):hover::before,
.mobile-menu a:not(:last-child):focus-visible::before,
.mobile-menu a:not(:last-child)[aria-current="page"]::before { opacity: 1; transform: none; }

/* Séparateur avant le bouton */
.mobile-menu .filets { margin: var(--sp-5) 0 var(--sp-4); border-color: var(--line); }
.mobile-menu .filets--accent { border-color: var(--red); }

/* Dernier lien = bouton M'inscrire, pleine largeur */
.mobile-menu a:last-child {
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: var(--white);
  font-family: var(--font-strong); font-weight: 900;
  font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--sp-4); min-height: 56px;
  border-radius: var(--r-md);
  transition: background var(--t-hover) var(--ease-hover), transform var(--t-hover) var(--ease-hover);
}
.mobile-menu a:last-child:hover, .mobile-menu a:last-child:focus-visible { background: #ff1d1e; transform: translateY(-2px); }


/* =========================================================================
   8. BOUTONS
   ========================================================================= */

.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-strong);
  font-weight: 900;
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: var(--sp-3) var(--sp-5);
  min-height: 48px;                 /* cible tactile confortable */
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform var(--t-hover) var(--ease-hover),
              background var(--t-hover) var(--ease-hover),
              color var(--t-hover) var(--ease-hover);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Bouton inerte (ex. « Finaliser » tant qu'aucune formule n'est choisie) */
.btn:disabled, .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
}
.btn:disabled:hover, .btn[disabled]:hover { transform: none; }

.btn--primary { --btn-bg: var(--red); --btn-fg: var(--white); }
.btn--primary:hover { --btn-bg: #ff1d1e; }

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

.btn--blue { --btn-bg: var(--blue); --btn-fg: var(--white); }
.btn--blue:hover { --btn-bg: #4657ff; }

.btn--lg { font-size: var(--fs-body); padding: var(--sp-4) var(--sp-6); min-height: 56px; }
.btn--block { display: flex; width: 100%; }

/* Lien fléché discret */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-strong); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--white);
}
.link-arrow svg { transition: transform var(--t-hover) var(--ease-hover); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--blue-onDark); }


/* =========================================================================
   9. CARTES, ENCARTS, TABLEAUX
   ========================================================================= */

.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform var(--t-hover) var(--ease-hover),
              border-color var(--t-hover) var(--ease-hover);
}
.card:hover { transform: translateY(-4px); border-color: var(--red); }
.card__title { font-family: var(--font-strong); font-weight: 900; font-size: var(--fs-h3);
  text-transform: uppercase; color: var(--white); margin-bottom: var(--sp-3); }
.card__index { font-family: var(--font-display); font-size: 1.2rem; color: var(--muted); }

/* Zone image dans une carte : rayon TOUJOURS inférieur à la carte */
.card__media {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

/* Emplacement photo réservé (tant que la photo n'est pas fournie) */
.photo-slot {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(-45deg, var(--surface-1) 0 14px, var(--surface-2) 14px 28px);
  color: var(--muted);
  font-family: var(--font-strong); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
  border-radius: inherit;
}
.photo-slot::after {
  content: "PHOTO À VENIR";
  position: absolute;
  padding: var(--sp-2) var(--sp-3);
  border: 2px dashed var(--line);
  border-radius: var(--r-pill);
}
/* Vraie photo qui remplace un .photo-slot : remplit l'emplacement, sans déformation.
   Utiliser la même classe de ratio que le slot d'origine (ratio-16x9, 1x1, 3x4…). */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Ratios figés pour éviter tout saut de mise en page */
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-1x1  { aspect-ratio: 1 / 1; }
.ratio-3x4  { aspect-ratio: 3 / 4; }

/* Accordéon (documents à fournir, FAQ) */
.accordion__item { overflow: hidden; }
.accordion__head {
  box-sizing: border-box;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  width: 100%; padding: var(--sp-4) var(--sp-5);
  background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-strong); font-weight: 700; font-size: var(--fs-body); color: var(--white);
}
.accordion__plus { flex: 0 0 auto; font-size: 1.4rem; line-height: 1; transition: transform var(--t-hover) var(--ease-hover); }
.accordion__item.is-open .accordion__plus { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height 360ms var(--ease-hover); }
.accordion__body { padding: 0 var(--sp-5) var(--sp-5); color: var(--muted); }
.accordion__body p { max-width: none; }

/* Onglets (ex. défi / classement) */
.tabs__nav { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.tab {
  font-family: var(--font-strong); font-weight: 900; font-size: var(--fs-small);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--sp-3) var(--sp-5); min-height: 46px;
  border-radius: var(--r-pill);
  background: var(--surface-1); color: var(--smoke); border: 2px solid var(--line);
  cursor: pointer;
  transition: background var(--t-hover) var(--ease-hover), color var(--t-hover) var(--ease-hover), border-color var(--t-hover) var(--ease-hover);
}
.tab:hover { border-color: var(--muted); }
.tab[aria-selected="true"] { background: var(--red); color: var(--white); border-color: var(--red); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: stepIn 360ms var(--ease-in); }

/* Classement (leaderboard) */
table.leaderboard td.rank { font-family: var(--font-display); color: var(--muted); width: 3ch; }
table.leaderboard td.score { font-family: var(--font-strong); font-weight: 900; color: var(--white); white-space: nowrap; }
table.leaderboard tr.is-record td { background: #1a0f10; color: var(--white); }
table.leaderboard tr.is-record td.rank { color: var(--red); }
.tag-record {
  display: inline-block; margin-left: var(--sp-2);
  font-family: var(--font-strong); font-weight: 900; font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--white);
  background: var(--red); border-radius: var(--r-pill); padding: 2px var(--sp-2); vertical-align: middle;
}

/* Tableau secondaire (tarifs annexes) */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
table.pricing { width: 100%; border-collapse: collapse; min-width: 520px; }
table.pricing th, table.pricing td { padding: var(--sp-4); text-align: left; border-bottom: 1px solid var(--line); }
table.pricing thead th {
  font-family: var(--font-strong); font-weight: 900; font-size: var(--fs-small);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  background: var(--surface-1);
}
table.pricing tbody tr:last-child td { border-bottom: 0; }
table.pricing td.price { font-family: var(--font-strong); font-weight: 900; color: var(--white); white-space: nowrap; }
table.pricing tbody tr:hover { background: var(--surface-1); }


/* =========================================================================
   10. BARRE CTA FIXE MOBILE (< 768px, après 400px de défilement)
   ========================================================================= */

.mobile-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 80;
  display: none;                      /* activée uniquement en mobile via media query */
  transform: translateY(140%);
  transition: transform 380ms var(--ease-hover);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn {
  box-shadow: 0 12px 30px -8px rgba(235, 9, 10, 0.6);
  border-radius: var(--r-md);
}


/* =========================================================================
   11. BLOCS SPÉCIFIQUES
   ========================================================================= */

/* --- HERO ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media .photo-slot { width: 100%; height: 100%; border-radius: 0; }
/* Voile sombre dégradé pour lisibilité du texte en surimpression */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.25) 35%, rgba(10,10,11,0.92) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: var(--sp-8); }
.hero__title { color: var(--white); margin-bottom: var(--sp-5); }
.hero__lead { color: var(--smoke); font-size: var(--fs-lead); max-width: 46ch; margin-bottom: var(--sp-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Bandeau infos rapides sous le hero */
.quickbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6);
  padding-block: var(--sp-4);
  font-family: var(--font-strong); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.quickbar span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.quickbar svg { color: var(--red); flex: 0 0 auto; }

/* --- BANDEAU DE REPÈRES (compteurs) ------------------------------------- */
.stats { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); text-align: center; }
.stats > * { min-width: 0; }              /* empêche un très gros nombre d'élargir la colonne */
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.9; color: var(--white);
  text-shadow: var(--offset-x) var(--offset-y) 0 var(--offset-color);
  overflow-wrap: anywhere;
}
.stat__label { font-family: var(--font-strong); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: var(--sp-2); }

/* --- ACTUALITÉS (cartes carrées 1080×1080) ------------------------------ */
.news-card { display: flex; flex-direction: column; }
.news-card .card__media { aspect-ratio: 1/1; }
.news-card__date { font-family: var(--font-strong); font-weight: 700; font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-onDark); margin-bottom: var(--sp-2); }
.news-card__title { font-family: var(--font-strong); font-weight: 900; font-size: var(--fs-h3);
  text-transform: uppercase; color: var(--white); line-height: 1.05; }

/* --- HORAIRES + CARTE ---------------------------------------------------- */
.map-embed {
  border: 0; width: 100%; aspect-ratio: 16/10;
  border-radius: var(--r-xl); overflow: hidden; background: var(--surface-1);
}
.hours-list { list-style: none; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { font-family: var(--font-strong); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--smoke); }
.hours-list .time { color: var(--muted); }

/* --- CARTES TARIFS (formules mises en avant) ---------------------------- */
.plan {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6);
  transition: transform var(--t-hover) var(--ease-hover), border-color var(--t-hover) var(--ease-hover);
}
.plan:hover { transform: translateY(-4px); }
.plan--featured { border-color: var(--red); background: linear-gradient(180deg, #1a0f10 0%, var(--surface-1) 60%); }
.plan__badge {
  position: absolute; top: calc(-1 * var(--sp-3)); left: var(--sp-6);
  background: var(--red); color: var(--white);
  font-family: var(--font-strong); font-weight: 900; font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill);
}
.plan__name { font-family: var(--font-strong); font-weight: 900; font-size: var(--fs-h3);
  text-transform: uppercase; color: var(--white); }
.plan__price { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 0.9; color: var(--white); margin: var(--sp-3) 0; }
.plan__price small { font-family: var(--font-strong); font-weight: 900; font-size: 1.1rem; color: var(--smoke); }
.plan__cond { color: var(--muted); font-size: var(--fs-small); margin-bottom: var(--sp-5); }
.plan__list { list-style: none; padding: 0; margin-bottom: var(--sp-6); flex: 1; }
.plan__list li { display: flex; gap: var(--sp-2); padding: var(--sp-2) 0; color: var(--smoke); font-size: var(--fs-small); }
.plan__list svg { color: var(--red); flex: 0 0 auto; margin-top: 3px; }

/* --- PARTENAIRES (N&B → couleur au survol) ------------------------------ */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); }
.partner {
  filter: grayscale(1) opacity(0.6);
  transition: filter var(--t-hover) var(--ease-hover), transform var(--t-hover) var(--ease-hover);
}
.partner:hover { filter: grayscale(0) opacity(1); transform: translateY(-2px); }

/* Logo partenaire posé sur une pastille claire (les logos ont du texte sombre,
   illisible sur le fond noir du site). N&B par défaut, couleur au survol. */
.partner-logo {
  display: grid; place-items: center;
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-6);
  min-height: 104px; min-width: 180px;
  filter: grayscale(1);
  opacity: 0.82;
  transition: filter var(--t-hover) var(--ease-hover),
              opacity var(--t-hover) var(--ease-hover),
              transform var(--t-hover) var(--ease-hover);
}
.partner-logo img { max-height: 64px; width: auto; }
.partner-logo:hover, .partner-logo:focus-visible { filter: grayscale(0); opacity: 1; transform: translateY(-3px); }

/* --- BLOC PORTRAIT (bureau) --------------------------------------------- */
.person { text-align: center; }
.person .card__media { aspect-ratio: 1/1; border-radius: var(--r-lg); }
.person__name { font-family: var(--font-strong); font-weight: 900; text-transform: uppercase;
  color: var(--white); margin-top: var(--sp-3); }
.person__role { color: var(--muted); font-size: var(--fs-small); }

/* --- CTA de fin de section ---------------------------------------------- */
.cta-band {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  text-align: center;
}
.cta-band .display { color: var(--white); margin-bottom: var(--sp-5); }


/* =========================================================================
   12. FORMULAIRES (contact + parcours d'adhésion)
   ========================================================================= */

.field { margin-bottom: var(--sp-5); }
.field > label {
  display: block;
  font-family: var(--font-strong); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--smoke);
  margin-bottom: var(--sp-2);
}
.field .hint { display: block; color: var(--muted); font-size: var(--fs-small); font-weight: 400;
  text-transform: none; letter-spacing: normal; margin-top: 2px; }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-body); font-size: var(--fs-body); color: var(--white);
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  min-height: 52px;
  transition: border-color var(--t-hover) var(--ease-hover), background var(--t-hover) var(--ease-hover);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #6c6c78; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-onDark); background: #16161b; }
.input:user-invalid, .textarea:user-invalid { border-color: var(--red); }

/* Choix (radio/checkbox) présentés en pilules/cartes */
.choice-grid { display: grid; gap: var(--sp-3); }
.choice {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  background: var(--surface-2); border: 2px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4); cursor: pointer;
  transition: border-color var(--t-hover) var(--ease-hover), background var(--t-hover) var(--ease-hover);
}
.choice:hover { border-color: var(--muted); }
.choice input { margin-top: 3px; accent-color: var(--red); width: 20px; height: 20px; flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--red); background: #171013; }
.choice__title { font-family: var(--font-strong); font-weight: 700; color: var(--white); }
.choice__desc { color: var(--muted); font-size: var(--fs-small); }

/* Message d'erreur / succès annoncé (aria-live) */
.field-error {
  display: none;
  color: #ff6b6b; font-size: var(--fs-small); margin-top: var(--sp-2);
}
.field.has-error .field-error { display: block; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--red); }

.form-note { color: var(--muted); font-size: var(--fs-small); }

/* Réglette anti-spam (question simple, sans service tiers) */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Parcours d'adhésion : étapes + progression ------------------------- */
.wizard { max-width: 720px; margin-inline: auto; }
.progress { margin-bottom: var(--sp-6); }
.progress__bar { height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.progress__fill { height: 100%; width: 0%; background: var(--red); border-radius: inherit;
  transition: width 420ms var(--ease-hover); }
.progress__label { display: flex; justify-content: space-between; margin-top: var(--sp-2);
  font-family: var(--font-strong); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.step { display: none; }
.step.is-active { display: block; animation: stepIn 420ms var(--ease-in); }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.step__title { font-family: var(--font-strong); font-weight: 900; font-size: var(--fs-h3);
  text-transform: uppercase; color: var(--white); margin-bottom: var(--sp-2); }
.step__intro { color: var(--muted); margin-bottom: var(--sp-6); }

.wizard__nav { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6); }

/* Bloc conditionnel (représentant légal, justificatifs…) */
.conditional { display: none; }
.conditional.is-shown { display: block; }

/* Récapitulatif final */
.recap { display: grid; gap: var(--sp-3); }
.recap__row { display: flex; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.recap__row dt { color: var(--muted); }
.recap__row dd { color: var(--white); font-weight: 500; text-align: right; }
.recap__total { font-family: var(--font-display); font-size: var(--fs-h2); color: var(--white); white-space: nowrap; }
/* Le « € » n'existe pas dans la police d'affichage (Horizon) : on le rend
   dans la police de texte, un peu plus petit et surélevé. */
.recap__total .cur { font-family: var(--font-body); font-size: 0.5em; font-weight: 700; margin-left: 0.12em; vertical-align: 0.35em; }


/* =========================================================================
   13. PIED DE PAGE — tout centré, une seule colonne
   ========================================================================= */

.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding-block: var(--sp-8); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }
.footer-inner p, .footer-inner address { max-width: 60ch; margin-inline: auto; }
.footer__big {
  font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 4.5rem);
  text-transform: uppercase; color: var(--white); line-height: 0.9;
  text-shadow: var(--offset-x) var(--offset-y) 0 var(--red);
  max-width: 100%;
}
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-5); }
.footer__nav a { color: var(--smoke); font-size: var(--fs-small); font-family: var(--font-strong); font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; transition: color var(--t-hover) var(--ease-hover); }
.footer__nav a:hover { color: var(--red); }
.footer address { font-style: normal; color: var(--muted); }
.footer__legal { color: var(--muted); font-size: var(--fs-small); }
.social { display: inline-flex; gap: var(--sp-3); }
.social a { display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--white);
  transition: background var(--t-hover) var(--ease-hover), color var(--t-hover) var(--ease-hover), border-color var(--t-hover) var(--ease-hover); }
.social a:hover { background: var(--red); border-color: var(--red); }


/* =========================================================================
   14. ANIMATIONS D'APPARITION AU SCROLL
   Un seul IntersectionObserver côté JS ajoute .is-visible.
   ========================================================================= */

/* Amélioration progressive : l'état masqué n'existe QUE si le JS est actif
   (classe .js posée sur <html>). Sans JavaScript, tout le contenu reste
   visible — meilleure robustesse et meilleur référencement. */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity var(--t-reveal) var(--ease-in), transform var(--t-reveal) var(--ease-in);
  transition-delay: var(--reveal-delay, 0ms);   /* cascade posée en inline par le JS */
  will-change: opacity, transform;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }


/* =========================================================================
   15. ACCESSIBILITÉ
   ========================================================================= */

/* Focus visible et stylé partout */
:focus-visible {
  outline: 3px solid var(--blue-onDark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'évitement */
.skip-link {
  position: absolute; left: var(--sp-3); top: -100px;
  z-index: 200;
  background: var(--white); color: var(--ink);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  font-family: var(--font-strong); font-weight: 700;
  transition: top var(--t-hover) var(--ease-hover);
}
.skip-link:focus { top: var(--sp-3); }

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

/* Neutralisation complète du mouvement */
@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}


/* =========================================================================
   16. POINTS DE RUPTURE
   Mobile-first : les règles ci-dessus valent pour le mobile.
   ========================================================================= */

/* Barre CTA fixe : uniquement sous 768px */
@media (max-width: 767.98px) {
  .mobile-cta { display: block; }

  /* Titres display (Horizon, très larges) : uniquement sur mobile, on réduit
     un peu les tailles mini et on autorise la césure des mots trop longs
     (ex. « Confidentialité ») pour qu'ils ne soient jamais rognés.
     L'affichage sur PC (≥ 768px) reste identique. */
  :root {
    --fs-hero: clamp(2.1rem, 7.5vw, 6.25rem);
    --fs-h1:   clamp(1.85rem, 6.5vw, 5rem);
    --fs-h2:   clamp(1.6rem, 5vw, 3.6rem);
  }
  .display { overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
}

/* En-tête compact tant que le menu desktop n'est pas affiché (< 1024px) :
   la marque, le bouton M'inscrire et le burger doivent tenir sur une ligne. */
@media (max-width: 1023.98px) {
  .nav { gap: var(--sp-2); }
  .site-header .nav__right { gap: var(--sp-2); }
  .site-header .nav__right .btn {
    padding: var(--sp-2) var(--sp-3);
    min-height: 42px;
    font-size: var(--fs-eyebrow);
  }
  .site-header .brand__word { font-size: 0.78rem; }
  .site-header .brand__town { font-size: 1.15rem; }
  .site-header .brand__logo { height: 38px; }
}
@media (max-width: 479.98px) {
  .site-header .brand__flank { display: none; }   /* on retire les filets décoratifs de la marque */
  .site-header .brand__word { font-size: 0.72rem; }
  .site-header .brand__town { font-size: 1.05rem; }
  .site-header .brand__logo { height: 32px; }
  .site-header .nav__right .btn { padding: var(--sp-2) var(--sp-3); }
}
@media (max-width: 359.98px) {
  .site-header .brand__town { font-size: 0.95rem; }
  .site-header .brand__logo { height: 28px; }
  .site-header .nav__right .btn { padding: var(--sp-2); font-size: 0.7rem; }
}

/* --- ≥ 768px : tablette ------------------------------------------------- */
@media (min-width: 768px) {
  :root { --header-h: 84px; }

  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats  { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .hero__cta .btn { min-width: 200px; }
  .section { padding-block: var(--sp-9); }
}

/* --- ≥ 1024px : ordinateur --------------------------------------------- */
@media (min-width: 1024px) {
  .burger { display: none; }
  .nav__links { display: flex; align-items: center; gap: var(--sp-6); }

  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Grilles asymétriques réutilisables (contenu + média) */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }

  :root { --offset-x: 6px; --offset-y: 6px; }
}

/* --- Grand écran : on ne laisse pas le hero s'étirer sans fin ---------- */
@media (min-width: 1440px) {
  .display--hero { font-size: 6.25rem; }
}
