/* ============================================
   CrossFit Lesdiguières — Redesign
   Dark · Athletic · Brutalist meets premium
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --ink: #f4f1ea;
  --ink-dim: #a3a097;
  --ink-mute: #6b6862;
  --line: #2a2a2a;

  /* Charte officielle CrossFit Lesdiguières */
  --brand: #1E3A6F;          /* bleu marine du blason */
  --brand-2: #2a4d8a;         /* bleu marine hover/clair */
  --brand-deep: #142a52;      /* bleu marine deep pour gradients */
  --fire: #D32626;            /* rouge officiel (cœur, underline, EST. 2019) */
  --fire-2: #e63c3c;          /* rouge hover */
  --fire-deep: #a91d1d;       /* rouge deep */

  --maxw: 1320px;
  --pad-x: clamp(20px, 5vw, 80px);
  --pad-y: clamp(80px, 12vw, 160px);

  --font-display: 'Anton', 'Archivo Black', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* l'attribut hidden doit gagner : sans ça un .btn en display:inline-flex
   reste affiché alors qu'on vient de le masquer en JS */
[hidden] { display: none !important; }

html, body {
  overflow-x: clip;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
em { font-style: italic; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px var(--pad-x);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}

.nav__logo {
  display: flex; align-items: center;
  height: 52px;
  flex-shrink: 0;
}
.nav__logo img {
  height: 100%;
  width: auto;
  display: block;
  transition: transform .3s var(--ease);
}
.nav__logo:hover img { transform: scale(1.05); }

.nav__links {
  display: none;
  /* écart qui se resserre entre 1024 et 1450px : à 32px fixes, « À propos »
     et « Nos cours » passaient sur deux lignes en 1024 */
  gap: clamp(18px, 2.2vw, 32px);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
}
.nav__links a {
  position: relative;
  white-space: nowrap;
  color: var(--ink-dim);
  transition: color .2s var(--ease);
  padding: 4px 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--fire);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
@media (min-width: 1024px) { .nav__links { display: flex; } }

.nav__cta { display: none; }
@media (min-width: 1024px) { .nav__cta { display: block; } }

.nav__burger {
  display: flex; flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
}
.nav__burger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .nav__burger { display: none; } }

/* mobile menu */
.nav.is-open {
  background: rgba(10,10,10,.98);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
.nav.is-open .nav__links {
  display: flex;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  padding: 32px var(--pad-x);
  gap: 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  font-family: var(--font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
}
/* CTA du menu mobile : lien dans le panneau .nav__links (plus de position
   absolue décalée qui laissait un trou et recouvrait le lien Contact).
   Sélecteur à 2 classes pour battre le display de .btn déclaré plus bas. */
.nav__links .nav__mobile-cta { display: none; }
.nav.is-open .nav__links .nav__mobile-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 10px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--fire);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(255,74,28,.6);
}
.btn--primary:hover {
  background: var(--fire-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(255,74,28,.8);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(255,255,255,.18);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255,255,255,.04);
}

.btn--xl {
  padding: 19px 30px;
  font-size: 14.5px;
  letter-spacing: .06em;
}
.btn--block { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding: 105px var(--pad-x) 40px;
  overflow: hidden;
  color: #fff;
  /* Fond charte : bleu marine du blason → deep → nuit, avec un halo plus clair
     derrière la colonne photo pour que la diagonale ne tombe pas dans le noir. */
  background:
    radial-gradient(105% 80% at 78% 12%, rgba(42, 77, 138, .75) 0%, rgba(30, 58, 111, 0) 62%),
    linear-gradient(158deg, #1E3A6F 0%, #142a52 52%, #0b1730 100%);
}

/* ---- Colonne photo, bord droit, coupe diagonale ---- */
.hero__col {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 42%;
  z-index: 0;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__col img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s var(--ease);
}
.hero__col img.is-on { opacity: 1; }
/* fondu vers le bleu sur le bord gauche : la photo se pose sur le dégradé
   au lieu de s'y coller, et le texte reste lisible s'il déborde */
.hero__col::after {
  content: '';
  position: absolute; inset: 0;
  background:
    /* voile haut : les liens de nav passent devant la photo, ils doivent rester lisibles */
    linear-gradient(180deg, rgba(11,23,48,.75) 0%, rgba(11,23,48,0) 130px),
    linear-gradient(90deg,
      rgba(11,23,48,.96) 0%, rgba(11,23,48,.40) 26%,
      rgba(11,23,48,.06) 58%, rgba(11,23,48,.46) 100%);
  pointer-events: none;
}

/* ---- Flèches + puces ---- */
.hero__slider {
  position: absolute;
  right: var(--pad-x);
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  animation: fadeUp 1s var(--ease-out) 1.2s both;
}
.hero__dots { display: flex; gap: 7px; }
.hero__dot {
  width: 24px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.3);
  padding: 0;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.hero__dot[aria-current="true"] { background: var(--fire); }
.hero__dot:hover { background: rgba(255,255,255,.6); }
.hero__dot[aria-current="true"]:hover { background: var(--fire); }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.32);
  background: rgba(10,20,40,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.hero__arrow:hover { background: var(--fire); border-color: var(--fire); }
.hero__arrow:active { transform: scale(.94); }
.hero__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero__arrow svg { width: 18px; height: 18px; }

/* ---- Sous 960px : plus de diagonale, la photo passe SOUS le texte ---- */
@media (max-width: 960px) {
  /* le padding horizontal descend de .hero vers .hero__inner : la colonne photo
     peut aller bord à bord sans marge négative (qui débordait la fenêtre) */
  .hero {
    min-height: 0;
    flex-direction: column;
    padding: 105px 0 0;
  }
  .hero__inner {
    order: 1;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }
  .hero__col {
    order: 2;
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    margin-top: 36px;
    aspect-ratio: 4/3;
    clip-path: none;
  }
  .hero__col::after {
    background: linear-gradient(180deg, rgba(11,23,48,.55) 0%, rgba(11,23,48,0) 38%, rgba(11,23,48,.4) 100%);
  }
  .hero__slider { bottom: 18px; }
}
@media (max-width: 600px) {
  .hero__col { aspect-ratio: 1/1; }
  .hero__arrow { width: 40px; height: 40px; }
  .hero__slider { gap: 12px; }
}

.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
  animation: fadeUp 1s var(--ease-out) .3s both;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fire);
  box-shadow: 0 0 12px var(--fire);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 100px);
  /* 1.04 et pas moins : en dessous, les accents de « SPÉCIALISÉE » et du « À »
     touchent les lettres de la ligne du dessus (mesuré le 25/10) */
  line-height: 1.04;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
  max-width: 14ch;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  /* Air pour les accents des capitales (À, É) : sans ce padding,
     le couple overflow hidden + interligne serré rogne les accents.
     Le margin négatif compense pour garder le même rythme vertical.
     .3em mesuré le 25/10 : à .12em, « SPÉCIALISÉE » et « À » étaient coupés. */
  padding-top: .3em;
  margin-top: -.3em;
}
.hero__title .word {
  display: inline-block;
  transform: translateY(120%);
  animation: heroSlide 1.1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) .word { animation-delay: .15s; }
.hero__title .line:nth-child(2) .word { animation-delay: .28s; }
.hero__title .line:nth-child(3) .word { animation-delay: .41s; }
.hero__title .line:nth-child(4) .word { animation-delay: .54s; }
.hero__title em {
  color: var(--fire);
  font-style: normal;
}

.hero__lede {
  max-width: 560px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(255,255,255,.88);
  margin-bottom: 30px;
  animation: fadeUp 1s var(--ease-out) .7s both;
  line-height: 1.5;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
  animation: fadeUp 1s var(--ease-out) .85s both;
}

/* ---- Desktop : le texte s'arrête avant la diagonale de la colonne photo ----
   Déclaré APRÈS .hero__title / .hero__lede, sinon leurs valeurs de base
   (100px, 14ch) l'emportent : même spécificité, c'est le dernier qui gagne. */
@media (min-width: 961px) {
  /* le bloc de texte se centre face à la photo au lieu de coller en haut,
     sinon il reste un grand vide bleu sous les chiffres */
  .hero { align-items: center; }
  .hero__inner { padding-right: 46%; }
  /* calibré pour que « AU-DELÀ DU FITNESS » tienne sur UNE ligne dans la
     colonne de gauche : au-dessus, Anton casse la ligne en deux */
  /* 9vh : sur un portable en 1536x730 ou 1366x657, le titre de 4 lignes
     poussait le bouton de réservation sous la ligne de flottaison */
  .hero__title { font-size: clamp(38px, min(5.6vw, 9vh), 88px); max-width: none; }
  .hero__lede { max-width: none; }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  animation: fadeUp 1s var(--ease-out) 1s both;
  max-width: 780px;
}
@media (min-width: 720px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.stat__lbl {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

@keyframes heroSlide {
  to { transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .6; }
}

/* ============================================
   TICKER
   ============================================ */
.ticker {
  background: var(--brand);
  color: #fff;
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  position: relative;
}
.ticker::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/pattern-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: .08;
  mix-blend-mode: screen;
  pointer-events: none;
}
.ticker__track .diamond { color: var(--fire); opacity: 1; }
.ticker__track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: tickerScroll 22s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: .04em;
  text-transform: uppercase;
  will-change: transform;
}
.ticker__track .diamond {
  font-size: .55em;
  opacity: .85;
}
@media (max-width: 720px) {
  /* Piste mesurée : 2431px (demi-boucle 1215px). 35s = environ 35px/s,
     la cible confort mobile. Avant : 16s = 76px/s, trop rapide. */
  .ticker__track { animation-duration: 35s; gap: 28px; }
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   SECTION HEAD
   ============================================ */
.section-head {
  margin-bottom: clamp(48px, 7vw, 96px);
  max-width: 880px;
}
.section-head--center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section-head__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 24px;
  font-weight: 600;
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.section-head__title em {
  color: var(--fire);
  font-style: normal;
}
.section-head__lede {
  margin-top: 24px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-dim);
  max-width: 640px;
}
.section-head--center .section-head__lede { margin-left: auto; margin-right: auto; }

/* ============================================
   MISSION
   ============================================ */
.mission {
  padding: var(--pad-y) 0;
  position: relative;
}

.mission__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: clamp(80px, 10vw, 140px);
}
@media (min-width: 960px) {
  .mission__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    /* le texte est plus haut que la photo : centres, ils debordaient en haut
       et en bas. La photo reste maintenant en vue et le texte defile le long. */
    align-items: start;
  }
  /* .mission en prefixe : la regle de base .mission__photo est declaree PLUS BAS
     dans ce fichier et gagnerait a specificite egale, ce qui annulait le collant
     en laissant le top actif, donc un trou de 104px sous la citation.
     top = hauteur reelle de la nav (89px) + une vraie respiration. */
  .mission .mission__photo {
    position: sticky;
    top: 113px;
  }
}

.big-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -.005em;
}
.mission__text {
  color: var(--ink-dim);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 540px;
}

.mission__photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  /* photo du sac de sable : paysage, et posée à GAUCHE parce que les visages
     regardent vers la droite, donc vers le texte */
  aspect-ratio: 3/2;
}
.mission__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.mission__photo:hover img { transform: scale(1.04); }
.mission__photo-tag {
  position: absolute;
  bottom: 20px; left: 20px;
  padding: 8px 14px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

.pillar {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease);
}
/* Padding horizontal identique sur les 4 piliers : le pattern qui apparaît
   au survol occupe toute la cellule, sans padding le texte se retrouvait
   collé à son bord gauche (constaté sur le pilier 01). */
@media (min-width: 720px) {
  .pillar { padding: 48px 32px; border-right: 1px solid var(--line); }
  .pillar:nth-child(2n) { border-right: none; }
}
@media (min-width: 1100px) {
  .pillar:nth-child(2n) { border-right: 1px solid var(--line); }
  .pillar:last-child { border-right: none; }
}
.pillar::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 3px;
  background: var(--fire);
  transition: width .5s var(--ease);
  z-index: 3;
}
.pillar:hover::before { width: 100%; }
/* Overlay PATTERN bleu pâle qui apparaît au hover */
.pillar::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #e8eff8;
  background-image: url('images/pattern-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Le motif est visible d'emblee sur les quatre blocs : les visiteurs au doigt,
     qui ne survolent jamais rien, voient le bloc habille comme les autres. */
  opacity: 1;
  transition: opacity .5s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.pillar > * { position: relative; z-index: 1; }
.pillar:hover::after { opacity: 0; }
/* chaque bloc montre une zone differente du motif, sinon les quatre se repetent */
.pillar:nth-child(1)::after { background-position: 12% 30%; }
.pillar:nth-child(2)::after { background-position: 38% 62%; }
.pillar:nth-child(3)::after { background-position: 66% 28%; }
.pillar:nth-child(4)::after { background-position: 90% 66%; }
.pillar__num {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--fire);
  margin-bottom: 16px;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -.005em;
}
.pillar p {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.55;
}

/* ============================================
   COURS
   ============================================ */
.cours {
  padding: var(--pad-y) 0;
  background: var(--bg-2);
  position: relative;
}

.cours__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) { .cours__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cours__grid { grid-template-columns: repeat(4, 1fr); } }

.course {
  position: relative;
  padding: 32px 28px 80px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform .35s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  cursor: pointer;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.course::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: 0;
}
.course::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--fire);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
  z-index: 2;
}
.course:hover::after { transform: scaleX(1); }
.course > * { position: relative; z-index: 1; }
.course:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
}
.course:hover::before { opacity: 1; }
.course:hover p { color: rgba(255,255,255,.92); }
.course:hover .course__arrow { color: #fff; transform: translateX(6px); }
.course:hover .course__tag { background: rgba(255,255,255,.18); color: #fff; }
.course:hover h3 { color: #fff; }

.course__tag {
  display: inline-block;
  padding: 5px 11px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  color: var(--ink-dim);
  margin-bottom: 18px;
  transition: background .3s var(--ease), color .3s var(--ease);
  align-self: flex-start;
}
.course__tag--hot {
  background: var(--fire);
  color: #fff;
}
.course h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.3vw, 32px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -.005em;
}
.course h3 sub {
  font-size: .6em;
  vertical-align: baseline;
}
.course p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
  transition: color .3s var(--ease);
}
.course__arrow {
  position: absolute;
  bottom: 28px; left: 28px;
  font-size: 24px;
  color: var(--fire);
  transition: transform .35s var(--ease), color .3s var(--ease);
  z-index: 1;
}

.course--feature {
  background: linear-gradient(180deg, #1f1f1f, #0a0a0a);
  border-color: var(--fire);
}
.course--soft { opacity: .98; }

/* ============================================
   GALLERY — les portes (accordéon) + bande contact
   ============================================ */
.gallery {
  padding: var(--pad-y) 0;
  background: var(--bg);
  overflow: hidden;
}

/* ---- accordéon : 7 portes (la 7e = le partenaire Cali Cookies) ---- */
.doors {
  display: flex;
  gap: 10px;
  height: clamp(420px, 64vh, 620px);
}
.door {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--bg-3);
  transition: flex-grow .85s var(--ease-out);
}
.door:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; }
.door.is-active { flex-grow: 4.6; }
.door img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.85) brightness(.55) contrast(1.05);
  transform: scale(1.02);
  transition: filter .7s var(--ease), transform 1.2s var(--ease);
}
.door.is-active img { filter: none; transform: scale(1); }

/* scrim bas pour la lisibilité de la légende */
.door::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.25) 0%, transparent 40%, transparent 52%, rgba(10,10,10,.82) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.door.is-active::before { opacity: 1; }

/* barre de progression du cycle automatique (durée = CYCLE dans app.js) */
.door::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--fire);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 2;
}
.door.is-active::after { animation: doorProgress 4.2s linear forwards; }
.doors:hover .door.is-active::after { animation-play-state: paused; }
@keyframes doorProgress { to { transform: scaleX(1); } }

.door__num {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 8px rgba(0,0,0,.8), 0 0 2px rgba(0,0,0,.6); /* lisible sur photos claires */
  transition: color .4s var(--ease);
}
.door.is-active .door__num { color: var(--fire); }

.door__side {
  position: absolute;
  bottom: 20px; left: 50%;
  z-index: 2;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,.8), 0 0 2px rgba(0,0,0,.6); /* lisible sur photos claires */
  transition: opacity .35s var(--ease);
}
.door.is-active .door__side { opacity: 0; }

.door__caption {
  position: absolute;
  left: 22px; right: 22px; bottom: 18px;
  z-index: 2;
  min-width: 240px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease) .3s, transform .6s var(--ease-out) .3s;
}
.door.is-active .door__caption { opacity: 1; transform: translateY(0); }
.door__caption h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 38px);
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
}
/* deux lignes au plus, à largeur bornée : une légende longue (Halloween, Cali Cookies)
   ne se coupe plus au bord de la porte, et ne se recompose presque pas pendant l'ouverture */
.door__caption p {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  max-width: 38ch;
  text-wrap: balance;
}

/* mobile : l'accordéon devient vertical, tap pour ouvrir */
@media (max-width: 720px) {
  .doors {
    flex-direction: column;
    height: min(155vw, 680px);
    gap: 8px;
  }
  .door.is-active { flex-grow: 6.5; }
  .door__num {
    top: 50%; transform: translateY(-50%);
    transition: top .5s var(--ease), transform .5s var(--ease), color .4s var(--ease);
  }
  .door.is-active .door__num { top: 14px; transform: none; }
  .door__side {
    writing-mode: horizontal-tb;
    left: 52px; right: auto; bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
  .door__caption { min-width: 0; left: 16px; right: 16px; bottom: 14px; }
  .door__caption p { white-space: normal; }
}

/* ---- bande contact défilante ---- */
.gallery__strip {
  margin-top: clamp(28px, 4vw, 48px);
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.gallery__track {
  display: flex;
  width: max-content;
  animation: galleryScroll 90s linear infinite;
  will-change: transform;
}
.gallery__track figure {
  width: 250px;
  height: 165px;
  margin: 0 12px 0 0; /* margin et non gap : garde le -50% exact, loop sans saut */
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-3);
}
.gallery__track img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.85);
  transition: filter .5s var(--ease), transform .8s var(--ease);
}
.gallery__track figure:hover img { filter: none; transform: scale(1.05); }
.gallery__strip:hover .gallery__track { animation-play-state: paused; }
@media (max-width: 720px) {
  .gallery__track { animation-duration: 70s; }
  .gallery__track figure { width: 180px; height: 120px; margin-right: 10px; }
}
@keyframes galleryScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   HYROX
   ============================================ */
.hyrox {
  padding: var(--pad-y) 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, #0d1a30 100%);
  position: relative;
  overflow: hidden;
}
.hyrox::before {
  content: 'HYROX';
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(180px, 32vw, 480px);
  color: var(--brand);
  top: 50%;
  right: -.1em;
  transform: translateY(-50%);
  line-height: .8;
  letter-spacing: -.04em;
  z-index: 0;
  user-select: none;
  pointer-events: none;
  opacity: .18;
}

.hyrox__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 960px) {
  .hyrox__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
  }
}

.hyrox__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 80px);
  line-height: .95;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  letter-spacing: -.01em;
}
.hyrox-stamp {
  display: inline-block;
  width: fit-content;
  padding: 6px 16px;
  border: 3px solid var(--fire);
  color: var(--fire);
  font-size: clamp(14px, 1.6vw, 22px);
  letter-spacing: .2em;
  transform: rotate(-2deg);
  /* le tampon est sorti du <h2> (le H2 porte désormais le titre SEO seul) :
     il reprend à sa charge l'espacement que donnait le gap du flex du titre */
  margin-bottom: 16px;
}
.hyrox__copy > p {
  color: var(--ink-dim);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 540px;
  margin-bottom: 32px;
}

.hyrox__bullets {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hyrox__bullets li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 16px;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.hyrox__bullets li b {
  color: var(--fire);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.hyrox__photo {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: visible;
}
.hyrox__photo > img:first-child {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.hyrox__photo--inset {
  position: absolute;
  /* En haut a gauche : la seule zone de la photo qui ne montre que le mur.
     En bas a gauche elle masquait la fente et la poussee de jambe de l'athlete,
     en bas a droite elle mangeait les disques du traineau. */
  top: -40px;
  left: -32px;
  width: 34%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  border: 6px solid #e8eff8;
  box-shadow: 0 20px 40px -10px rgba(20,42,82,.35);
  z-index: 2;
}
@media (max-width: 720px) {
  .hyrox__photo--inset { display: none; }
}
.hyrox__badge {
  position: absolute;
  top: 24px; right: 24px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--fire);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  animation: spin 24s linear infinite;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.6);
}
.hyrox__badge span:first-child { font-size: 28px; letter-spacing: -.02em; }
.hyrox__badge span:last-child { font-size: 11px; letter-spacing: .2em; margin-top: 4px; }
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   EQUIPE
   ============================================ */
.equipe {
  padding: var(--pad-y) 0;
  background: var(--bg);
}

.equipe__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (min-width: 720px) { .equipe__grid { grid-template-columns: repeat(4, 1fr); } }

.coach {
  text-align: center;
  padding: 32px 16px;
  border-radius: 4px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.coach:hover { background: var(--bg-2); transform: translateY(-4px); }

.coach__avatar {
  width: 120px; height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-3), #2a2a2a);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -.02em;
  color: var(--fire);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.coach:hover .coach__avatar {
  border-color: var(--fire);
  background: linear-gradient(135deg, #2a2a2a, var(--bg-3));
}

.coach__photo {
  width: min(140px, 100%);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--bg-3);
  position: relative;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
/* coach dont la photo n'est pas encore fournie : le rond reste, avec une
   silhouette en filigrane, pour ne pas casser l'alignement de la grille */
.coach__photo--empty {
  background:
    radial-gradient(circle at 50% 37%, rgba(255,255,255,.15) 0 19%, transparent 20%),
    radial-gradient(ellipse 42% 34% at 50% 98%, rgba(255,255,255,.15) 0 60%, transparent 61%),
    var(--bg-3);
  border-style: dashed;
}
.coach__photo::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,74,28,0);
  transition: box-shadow .4s var(--ease);
}
.coach__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.55) brightness(.95) contrast(1.05);
  transition: filter .45s var(--ease), transform .8s var(--ease);
}
.coach:hover .coach__photo {
  border-color: var(--fire);
  transform: translateY(-2px);
}
.coach:hover .coach__photo::after {
  box-shadow: 0 12px 30px -10px rgba(255,74,28,.55);
}
.coach:hover .coach__photo img {
  filter: grayscale(0) brightness(1) contrast(1);
  transform: scale(1.06);
}
.coach h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.005em;
}
.coach__role {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ============================================
   FORMULES
   ============================================ */
.formules {
  padding: var(--pad-y) 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.formules::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/pattern-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: .04;
  filter: invert(1);
  pointer-events: none;
  z-index: 0;
}
.formules > .container { position: relative; z-index: 1; }

.formules__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .formules__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .formules__grid { grid-template-columns: repeat(5, 1fr); } }

.formule {
  position: relative;
  padding: 40px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.formule:hover {
  transform: translateY(-6px);
  border-color: var(--fire);
}
.formule__rank {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--bg-3);
  margin-bottom: 20px;
  letter-spacing: -.04em;
  transition: color .3s var(--ease);
}
.formule:hover .formule__rank { color: var(--fire); }

.formule h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -.005em;
  min-height: 44px;
}
.formule p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
}

.formule--feat {
  background: linear-gradient(180deg, #1a1a1a 0%, var(--bg) 100%);
  border-color: var(--fire);
}
.formule--feat .formule__rank { color: var(--fire); }
.formule__badge {
  position: absolute;
  top: -12px; left: 28px;
  padding: 6px 14px;
  background: var(--fire);
  color: #fff;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 999px;
  font-weight: 600;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: var(--pad-y) 0;
  background: var(--bg);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 960px) {
  .contact__inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}
/* La photo est dans la MÊME cellule que la carte de réservation : sa hauteur
   se cale sur le formulaire et non sur la colonne de gauche (bien plus haute),
   sinon le cadrage devient une meurtrière et coupe les athlètes.
   Sous 1240px il n'y a plus la largeur : elle repasse sous le formulaire. */
.contact__booking {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  /* photo et formulaire dans un seul cadre : c'est le conteneur qui arrondit et
     découpe, les deux enfants viennent bord à bord */
  border-radius: 10px;
  overflow: hidden;
  align-self: start;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05);
}
@media (min-width: 1240px) {
  .contact__inner { grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: start; }
  /* align-content: start sinon la rangée hérite de la hauteur de la colonne de
     gauche (bien plus haute) et la photo repart en meurtrière */
  .contact__booking { grid-template-columns: 1fr .72fr; align-items: stretch; }
}
.contact__photo {
  overflow: hidden;
  align-self: stretch;
  min-height: 100%;
  position: relative;
}
.contact__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 1.1s var(--ease), filter .5s var(--ease);
  filter: grayscale(.35) brightness(.92);
}
.contact__photo:hover img {
  transform: scale(1.05);
  filter: none;
}
@media (max-width: 1239px) {
  /* une seule colonne : la photo ferme la carte sous le formulaire, sans le
     repousser hors de l'écran */
  .contact__photo { aspect-ratio: 16/9; min-height: 0; max-height: 260px; }
  /* bande horizontale : recentrer vers le bas de l'image, là où sont les appuis
     et les visages, sinon on ne voit qu'une tranche de torses */
  .contact__photo img { object-position: 50% 82%; }
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 72px);
  /* 1.05 au lieu de .95 : à .95 l'accent du È de PREMIÈRE chevauchait
     le O de OFFRE (qui se lisait Q), constaté mobile ET desktop */
  line-height: 1.05;
  text-transform: uppercase;
  /* plus d'oeil-de-boeuf au-dessus : le titre attaque directement */
  margin: 0 0 40px;
  letter-spacing: -.01em;
}
.contact__title em { color: var(--fire); font-style: normal; }

.contact__info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 28px;
  margin-bottom: 40px;
}
.info-block--wide { grid-column: span 2; }
.info-block__lbl {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 10px;
  font-weight: 600;
}
.info-block p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
}
.info-block a {
  border-bottom: 1px solid var(--line);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.info-block a:hover { border-color: var(--fire); color: var(--fire); }
.info-block b { font-weight: 600; color: var(--ink); margin-right: 4px; }

.contact__social {
  display: flex;
  gap: 14px;
}
/* logos Facebook et Instagram dans leurs vraies couleurs (le gris se perdait sur le fond sombre) */
.contact__social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.contact__social a svg { width: 22px; height: 22px; }
.contact__social--facebook { background: #1877f2; }
.contact__social--facebook svg { width: 24px; height: 24px; }
.contact__social--instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.contact__social a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .7);
}
.contact__social a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* =================================================
   BOOKING WIDGET (look "natif" système de réservation)
   ================================================= */
.booking-widget {
  background: #fafaf7;
  color: #1a1a1a;
  overflow: hidden;
  position: relative;
}

.booking-widget__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  background: #fff;
  border-bottom: 1px solid #ececec;
  position: relative;
}
.booking-widget__head::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 60%, var(--fire) 60%, var(--fire) 100%);
}
.booking-widget__logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}
.booking-widget__head-text {
  flex: 1;
  min-width: 0;
}
.booking-widget__head h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.005em;
  color: var(--brand);
  text-transform: none;
  line-height: 1.2;
  margin-bottom: 3px;
}
.booking-widget__sub {
  font-size: 13px;
  color: #6b6b6b;
  margin: 0;
}

/* — formulaire de réservation (relayé vers LEAD) — */
.lead-form__hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  background: rgba(30,58,111,.05);
  border-bottom: 1px solid #e8e6e0;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
}
.lead-form__hours svg { width: 15px; height: 15px; flex-shrink: 0; }
/* sur deux lignes, la coupure doit tomber sur le point médian, pas dans la parenthèse */
.lead-form__hours .nowrap { white-space: nowrap; }

.lead-form-wrap { padding: 26px 28px 30px; }
@media (max-width: 540px) {
  .lead-form-wrap { padding: 22px 20px 24px; }
  .booking-widget__head { padding: 22px 24px; }
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
/* deux colonnes tenues jusqu'aux plus petits écrans : un formulaire plus court
   se remplit mieux qu'un formulaire qui déroule */
@media (max-width: 359px) {
  .lead-form__row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6b6862;
  margin-bottom: 7px;
}
.field__opt {
  letter-spacing: .04em;
  text-transform: none;
  font-weight: 400;
  color: #a3a09a;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  /* 16px : en dessous, iOS zoome à la prise de focus */
  font-size: 16px;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #dedcd6;
  border-radius: 6px;
  padding: 13px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #b4b1aa; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30,58,111,.13);
}
.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--fire);
  box-shadow: 0 0 0 3px rgba(211,38,38,.12);
}

/* le piège à robots ne doit être visible ni à l'œil ni au lecteur d'écran */
.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.lead-form__submit {
  width: 100%;
  margin-top: 6px;
  padding: 17px 26px;
}
.lead-form__submit:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

.lead-form__legal {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #706d67;
}

.lead-form__error {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 6px;
  background: rgba(211,38,38,.07);
  border: 1px solid rgba(211,38,38,.25);
  color: var(--fire-deep);
  font-size: 13.5px;
  line-height: 1.45;
}

/* — étape 2 : séance + créneau, sans ressaisie des coordonnées — */
.lead-book__intro {
  font-size: 14px;
  color: #565450;
  margin-bottom: 18px;
}
.lead-book__intro b { color: var(--brand); font-weight: 700; }

.lead-book__types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  background: #eeece6;
  border-radius: 999px;
  margin-bottom: 22px;
}
.lead-book__type {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #77746e;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 11px 10px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.lead-book__type.is-on {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,.18);
}

.lead-book__block { margin-bottom: 18px; }
.lead-book__lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7a7a74;
  margin-bottom: 9px;
}

/* les jours défilent horizontalement : la carte ne s'allonge pas avec l'horizon */
.lead-book__days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.lead-book__days::-webkit-scrollbar { height: 4px; }
.lead-book__days::-webkit-scrollbar-thumb { background: #dedcd6; border-radius: 4px; }

.lead-book__day {
  flex: 0 0 auto;
  scroll-snap-align: start;
  font-family: var(--font-body);
  font-size: 13px;
  color: #565450;
  background: #fff;
  border: 1px solid #dedcd6;
  border-radius: 8px;
  padding: 10px 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.lead-book__day b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a09d97; }
.lead-book__day.is-on {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.lead-book__day.is-on b { color: rgba(255,255,255,.7); }

.lead-book__hours {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}
.lead-book__hour {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #444;
  background: #fff;
  border: 1px solid #dedcd6;
  border-radius: 8px;
  padding: 11px 6px;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.lead-book__hour:hover { border-color: var(--brand); color: var(--brand); }
.lead-book__hour.is-on {
  border-color: var(--fire);
  background: var(--fire);
  color: #fff;
}

.lead-book__state {
  font-size: 13px;
  color: #8a8781;
  margin: 14px 0 0;
}
.lead-book__state.is-warn { color: var(--fire-deep); font-weight: 600; }

.lead-book__confirm {
  width: 100%;
  margin-top: 18px;
  padding: 17px 26px;
}
/* en attente : le bouton indique le geste à faire, il ne promet rien.
   Neutre et sans flèche, il ne se confond pas avec un bouton d'action. */
.lead-book__confirm.is-waiting {
  background: #eeece6;
  color: #8a8781;
  box-shadow: none;
  cursor: default;
  transform: none;
}
.lead-book__confirm.is-waiting svg { display: none; }

/* — écran de confirmation — */
.lead-form__done {
  text-align: center;
  padding: 26px 8px 14px;
}
.lead-form__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  margin-bottom: 18px;
  animation: leadPop .45s var(--ease-out) both;
}
.lead-form__check svg { width: 26px; height: 26px; }
@keyframes leadPop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.lead-form__done h4 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 27px);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.05;
  color: var(--brand);
  margin-bottom: 10px;
}
.lead-form__done p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #565450;
  max-width: 34ch;
  margin: 0 auto;
}
.lead-form__book {
  margin-top: 20px;
  padding: 16px 28px;
}

.lead-form__alt { margin-top: 16px; font-size: 13px; color: #706d67; }
.lead-form__alt a { color: var(--brand); font-weight: 600; }

/* ============================================
   PARTNERS
   ============================================ */
.partners {
  padding: 80px 0 100px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.partners__title {
  text-align: center;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 40px;
}
.partners__track-wrap {
  overflow: hidden;
  width: 100%;
}
/* margin-right et non gap : avec un gap, translateX(-50%) ne retombe pas
   exactement sur le début du doublon et laisse un trou à droite */
.partners__track {
  display: flex;
  align-items: center;
  animation: tickerScroll 48s linear infinite;
  width: max-content;
  will-change: transform;
}
@media (max-width: 720px) {
  /* Piste mesurée : 1900px (demi-boucle 950px). 36s = environ 26px/s,
     rythme calme pour des logos. Avant : 18s, trop rapide sur petit écran. */
  .partners__track { animation-duration: 72s; }
  .partners__track img { margin-right: 32px; }
}
/* Logos partenaires : en COULEUR dès le défilement (choix client du 12/08/2026,
   on ne les désature plus au repos). Le survol ne fait plus qu'agrandir. */
.partners__track img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform .3s var(--ease);
  flex-shrink: 0;
  margin-right: 48px;
}
.partners__track img:hover {
  transform: scale(1.08);
}
/* IPSO Campus = texte blanc → fond bleu marine pour le rendre lisible */
.partners__track img.partner--dark-bg {
  background: var(--brand-deep);
  padding: 10px 18px;
  border-radius: 4px;
}
/* la marquee NE S'ARRÊTE PAS au hover */

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #050505;
  padding: 80px 0 32px;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer__brand img {
  height: 110px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}
.footer__brand p {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.footer__col h4 {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer__col ul li,
.footer__col p { margin-bottom: 10px; font-size: 14px; }
.footer__col a:hover { color: var(--ink); }

/* petit rappel de réservation sous le téléphone */
.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 9px 16px;
  border: 1px solid var(--fire);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fire);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.footer__cta::after { content: '→'; transition: transform .25s var(--ease); }
.footer__cta:hover { background: var(--fire); color: #fff; }
.footer__cta:hover::after { transform: translateX(3px); }
.footer .footer__cta:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 32px;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-img {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.reveal-img.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-img { opacity: 1; transform: none; }
}

/* ============================================================
   ============================================================
   THEME — RYTHME DES SECTIONS (bleu marine / blanc / pattern)
   Alternance qui fait respirer le site et fait vivre la charte.
   ============================================================
   ============================================================ */

/* ============ INFOBAR — bande infos pratiques après le ticker ============ */
.infobar {
  background: #f6f4ee;
  padding: clamp(40px, 6vw, 64px) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e8e4d8;
}
.infobar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/pattern-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: .12;
  pointer-events: none;
}
.infobar > .container { position: relative; z-index: 1; }

.infobar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) { .infobar__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .infobar__grid { grid-template-columns: repeat(4, 1fr); } }

.infobar__item {
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid rgba(20,42,82,.12);
  transition: transform .3s var(--ease);
}
/* 2 x 2 : filet vertical entre les colonnes, horizontal entre les rangées */
@media (min-width: 640px) and (max-width: 1199px) {
  .infobar__item:nth-child(odd) { border-right: 1px solid rgba(20,42,82,.12); }
  .infobar__item:nth-child(n+3) { border-bottom: none; }
}
@media (min-width: 1200px) {
  .infobar__item { border-bottom: none; border-right: 1px solid rgba(20,42,82,.12); }
  .infobar__item:last-child { border-right: none; }
}
.infobar__item:last-child { border-bottom: none; }
.infobar__item:hover { transform: translateY(-4px); }

.infobar__icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 14px;
  transition: background .3s var(--ease), transform .35s var(--ease);
}
.infobar__icon svg { width: 28px; height: 28px; }
.infobar__item:hover .infobar__icon {
  background: var(--fire);
  transform: rotate(-6deg) scale(1.08);
}

.infobar__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 4px;
}

.infobar__value {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.3;
  color: #16203a;
  font-weight: 500;
  margin: 0;
}
.infobar__value strong {
  color: var(--brand);
  font-weight: 700;
}
.infobar__value a {
  color: inherit;
  border-bottom: 2px solid transparent;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.infobar__value a:hover {
  color: var(--fire);
  border-bottom-color: var(--fire);
}

/* le vendredi ferme plus tôt : une ligne discrète sous les horaires de la semaine */
.infobar__note {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  color: #3c4763;
}
.infobar__note strong { color: var(--brand); font-weight: 700; }
.infobar__link {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s var(--ease), transform .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.infobar__link span {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.infobar__link:hover { color: var(--fire); }
.infobar__link:hover span { transform: translateX(4px); }
.infobar__link--static { color: #6b7088; cursor: default; pointer-events: none; }

/* La clim : seule tuile pleine de la bande, l'œil doit tomber dessus en premier.
   Déclaré APRÈS les filets ci-dessus : à spécificité égale, c'est le dernier qui gagne. */
.infobar__item.infobar__item--clim {
  background: var(--brand-deep);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 48px -30px rgba(20,42,82,.7);
}
.infobar__item--clim .infobar__icon { background: var(--fire); }
.infobar__item--clim:hover .infobar__icon { background: var(--fire-2); }
/* le rouge charte sur ce bleu tombe à 2,7:1 : l'étiquette passe en blanc atténué */
.infobar__item--clim .infobar__label { color: rgba(255,255,255,.72); }
.infobar__item--clim .infobar__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance; /* jamais « DE » ou « GRENOBLE » seul en bout de ligne */
}
.infobar__item--clim .infobar__value strong {
  color: #fff;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--fire);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

/* ============ MISSION → fond BLEU MARINE plein ============ */
.mission {
  background: var(--brand-deep);
  color: #fff;
  position: relative;
  /* clip et non hidden : hidden ferait de la section un conteneur de
     defilement et la photo collante ci-dessous ne collerait plus */
  overflow: clip;
}
.mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/pattern-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: .06;
  mix-blend-mode: screen;
  pointer-events: none;
}
.mission > .container { position: relative; z-index: 1; }
.mission .section-head__title { color: #fff; }
.mission .big-quote { color: #fff; }
.mission .mission__text { color: rgba(255,255,255,.78); }
.mission .pillars { border-top-color: rgba(255,255,255,.15); }
.mission .pillar { border-color: rgba(255,255,255,.13) !important; }
/* Le motif clair est desormais visible au repos sur les quatre piliers : les
   textes y sont donc sombres, et ne repassent en clair qu'au survol, quand le
   bloc redevient bleu marine. Ces regles vivent ICI, a la fin du fichier :
   declarees plus haut, elles perdraient contre les overrides sombres. */
.mission .pillar h3 { color: var(--brand-deep); }
.mission .pillar p { color: #2a3754; }
.mission .pillar .pillar__num { color: var(--fire); }
.mission .pillar:hover h3 { color: #fff; }
.mission .pillar:hover p { color: rgba(255,255,255,.72); }
.mission .pillar:hover .pillar__num { color: #e8543f; }
.mission .mission__photo-tag { background: rgba(0,0,0,.55); }

/* ============ COURS → fond BLANC / cards bleu marine PAR DÉFAUT ============ */
.cours {
  background: #f6f4ee;
  color: #16203a;
}
.cours .section-head__title { color: #16203a; }
.cours .section-head__title em { color: var(--fire); }
.cours .section-head__lede { color: #5a6275; }

.cours .course {
  background: #fff;
  border: 1px solid #e6e2d8;
  box-shadow: 0 1px 0 rgba(20,42,82,.04);
}
.cours .course h3 {
  color: var(--brand);
  transition: color .35s var(--ease);
}
.cours .course p { color: #5c6377; }
.cours .course__tag {
  background: rgba(30,58,111,.08);
  color: var(--brand);
}
.cours .course__tag--hot {
  background: var(--fire);
  color: #fff;
}
.cours .course__arrow { color: var(--fire); }
/* Le ::before est l'overlay PATTERN qui apparaît au hover */
.cours .course::before {
  background-color: #e8eff8;
  background-image: url('images/pattern-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cours .course:hover {
  border-color: var(--brand);
  box-shadow: 0 22px 44px -20px rgba(20,42,82,.4);
  transform: translateY(-6px);
}
.cours .course:hover::before { opacity: 1; }
/* texte reste sombre puisque le pattern est bleu pâle */
.cours .course:hover h3 { color: var(--brand-deep); }
.cours .course:hover p { color: #2a3754; }
.cours .course:hover .course__tag {
  background: var(--brand);
  color: #fff;
}
.cours .course:hover .course__arrow { color: var(--fire); transform: translateX(8px); }

/* Card "feature" BIG WOD : déjà bleu marine plein dès le départ */
.cours .course--feature {
  background: var(--brand);
  border-color: var(--brand);
  position: relative;
}
.cours .course--feature::after { background: var(--fire); transform: scaleX(1); }
.cours .course--feature h3 { color: #fff; }
.cours .course--feature p { color: rgba(255,255,255,.82); }
.cours .course--feature .course__tag--hot { background: var(--fire); }
.cours .course--feature .course__arrow { color: #fff; }
.cours .course--feature:hover { background: var(--brand-deep); }

/* ============ HYROX → fond PATTERN BLEU PÂLE (FOND-CL) ============ */
.hyrox {
  background: #e8eff8;
  color: #16203a;
  position: relative;
  overflow: hidden;
}
.hyrox::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/pattern-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: .85;
  pointer-events: none;
  z-index: 0;
}
/* ghost text par-dessus le pattern, en bleu marine plus marqué */
.hyrox::before {
  color: var(--brand);
  opacity: .14;
  z-index: 1;
}
.hyrox > .container { position: relative; z-index: 2; }

.hyrox .section-head__eyebrow { color: var(--fire); }
.hyrox .hyrox__title { color: #16203a; }
.hyrox .hyrox__title em { color: var(--brand); }
.hyrox .hyrox-stamp {
  border-color: var(--fire);
  color: var(--fire);
  background: rgba(255,255,255,.85);
  box-shadow: 0 6px 18px -6px rgba(211,38,38,.3);
}
.hyrox .hyrox__copy > p { color: #3a4564; }
.hyrox .hyrox__bullets li {
  color: #1f2a45;
  border-color: rgba(30,58,111,.15);
}
.hyrox .hyrox__bullets li b { color: var(--fire); }

.hyrox .hyrox__photo {
  box-shadow: 0 30px 60px -20px rgba(20,42,82,.45);
}
.hyrox .hyrox__badge {
  background: var(--brand);
  border-color: var(--fire);
}

/* ============ ÉQUIPE → fond BLEU MARINE plein ============ */
.equipe {
  background: var(--brand-deep);
  position: relative;
  overflow: hidden;
}
.equipe::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/pattern-bg.jpg');
  background-size: cover;
  opacity: .05;
  mix-blend-mode: screen;
  pointer-events: none;
}
.equipe > .container { position: relative; z-index: 1; }
.equipe .section-head__title { color: #fff; }
.equipe .coach h3 { color: #fff; }
.equipe .coach__role { color: rgba(255,255,255,.6); }
.equipe .coach:hover { background: rgba(255,255,255,.05); }
.equipe .coach__photo { border-color: rgba(255,255,255,.2); }

/* ============ FORMULES → fond PATTERN BLEU PÂLE + cards bleues ============ */
.formules {
  background: #e8eff8;
  color: #16203a;
}
.formules::before {
  background-image: url('images/pattern-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: .55;
  filter: none;
  mix-blend-mode: normal;
}
.formules .section-head__title { color: #16203a; }
.formules .section-head__lede { color: #4a5570; }

.formules .formule {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 10px 30px -15px rgba(20,42,82,.4);
}
.formules .formule h3 { color: #fff; }
.formules .formule p { color: rgba(255,255,255,.78); }
.formules .formule__rank { color: rgba(255,255,255,.18); }
.formules .formule:hover {
  background: var(--brand-deep);
  border-color: var(--fire);
  box-shadow: 0 25px 50px -15px rgba(20,42,82,.55);
}
.formules .formule:hover .formule__rank { color: var(--fire); }
.formules .formule--feat {
  background: var(--fire);
  border-color: var(--fire);
}
.formules .formule--feat h3, .formules .formule--feat p { color: #fff; }
.formules .formule--feat .formule__rank { color: rgba(255,255,255,.28); }
.formules .formule--feat:hover {
  background: var(--fire-deep);
  border-color: #fff;
}
.formules .formule__badge {
  background: var(--brand);
  color: #fff;
}

/* ============ PROS — Location de salle (section claire crème) ============ */
.pros {
  background: #f6f4ee;
  padding: var(--pad-y) 0;
  color: #16203a;
}
.pros__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .pros__inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
  }
}
.pros__photo {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(20,42,82,.35);
}
.pros__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.pros__photo:hover img { transform: scale(1.05); }
.pros__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #16203a;
  margin: 20px 0 28px;
}
.pros__title em { color: var(--brand); font-style: normal; }
.pros__copy > p {
  color: #4a5570;
  font-size: clamp(15px, 1.4vw, 18px);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 540px;
}
.pros__copy strong { color: var(--brand); font-weight: 700; }

/* ============ FAQ → fond PATTERN BLEU PÂLE, cartes blanches ============ */
/* Placée entre PROS (crème) et CONTACT (bleu marine) : l'alternance tient. */
.faq {
  padding: var(--pad-y) 0;
  background: #e8eff8;
  color: #16203a;
  position: relative;
  overflow: hidden;
}
.faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/pattern-bg.jpg');
  /* PAS de `cover` ici : `cover` recalcule l'echelle sur la hauteur, donc
     chaque ouverture de question faisait glisser tout le motif sous les yeux.
     Largeur imposee + ancrage en haut + repetition verticale : la hauteur de la
     section peut changer, le motif ne bouge plus d'un pixel. */
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
  opacity: .55;
  pointer-events: none;
}
.faq > .container { position: relative; z-index: 1; }
/* titre un cran sous les autres sections : la 2e ligne tient sur une seule ligne */
.faq .section-head { max-width: 980px; }
.faq .section-head__title {
  color: #16203a;
  font-size: clamp(36px, 5.4vw, 72px);
}
.faq .section-head__title em { color: var(--fire); }

.faq__list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(30,58,111,.14);
  border-radius: 6px;
  overflow: hidden;
  /* opacity/transform repris de .reveal (déclaré plus haut, sinon écrasé) */
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item:hover { border-color: var(--brand); }
.faq-item[open] {
  border-color: var(--brand);
  box-shadow: 0 18px 40px -22px rgba(20,42,82,.5);
}

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--fire);
  outline-offset: -3px;
}

.faq-item__q {
  font-weight: 600;
  font-size: clamp(15.5px, 1.35vw, 18px);
  line-height: 1.4;
  color: var(--brand);
  transition: color .25s var(--ease);
}
.faq-item[open] .faq-item__q { color: var(--brand-deep); }

/* pastille + qui devient − à l'ouverture */
.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(30,58,111,.08);
  transition: background .3s var(--ease);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 2px;
  background: var(--fire);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .25s var(--ease), background .3s var(--ease);
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item:hover .faq-item__icon { background: rgba(30,58,111,.15); }
.faq-item[open] .faq-item__icon { background: var(--brand); }
.faq-item[open] .faq-item__icon::before,
.faq-item[open] .faq-item__icon::after { background: #fff; }
.faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-item__body { padding: 0 26px 26px; }
.faq-item__body p {
  font-size: clamp(14.5px, 1.2vw, 16px);
  line-height: 1.65;
  color: #4a5570;
}
.faq-item__body a {
  color: var(--brand);
  font-weight: 600;
  border-bottom: 2px solid rgba(30,58,111,.25);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.faq-item__body a:hover { color: var(--fire); border-bottom-color: var(--fire); }

.faq-item[open] .faq-item__body { animation: faqReveal .4s var(--ease) both; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .faq-item > summary { padding: 18px 18px; gap: 14px; }
  .faq-item__body { padding: 0 18px 20px; }
  .faq-item__icon { width: 30px; height: 30px; }
}

/* ============ CONTACT → reste sombre mais teinté bleu marine ============ */
.contact {
  background: linear-gradient(180deg, var(--brand-deep) 0%, #0a1226 100%);
}

/* ============ PARTNERS → fond BLANC ============ */
.partners {
  background: #fafaf7;
  border-top-color: #e5e2dc;
  border-bottom: 1px solid #e5e2dc;
}
.partners__title { color: #7a7a73; }

/* ============ FOOTER → fond BLEU MARINE deep ============ */
.footer {
  background: #0a1530;
  border-top: 4px solid var(--fire);
  color: rgba(255,255,255,.7);
}
.footer__inner { border-bottom-color: rgba(255,255,255,.1); }
.footer__brand p { color: rgba(255,255,255,.65); }
.footer__col h4 { color: var(--fire); }
.footer__col a { color: rgba(255,255,255,.7); }
.footer__col a:hover { color: #fff; }
.footer__col p, .footer__col li { color: rgba(255,255,255,.7); }
.footer__bottom { color: rgba(255,255,255,.4); }

/* ============ GALERIE → reste noir pour valoriser les photos ============ */
/* (la galerie est l'endroit où le noir est légitime : il fait ressortir les images) */
/* Pas de changement nécessaire */

/* ============ NAV scrolled → tinted bleu marine ============ */
.nav.is-scrolled {
  background: rgba(10, 21, 48, 0.92);
  border-bottom-color: rgba(255,255,255,.1);
}

/* ============================================
   CORRECTIFS MOBILE (audit du 06/07/2026)
   Aucun impact au-dessus de 720px.
   ============================================ */
@media (max-width: 720px) {
  /* Hero H1 : le plancher 40px + max-width 14ch cassaient
     « AU-DELÀ DU FITNESS » en deux lignes */
  .hero__title {
    font-size: clamp(32px, 11vw, 50px);
    max-width: none;
  }

  /* Titres de section : plancher réduit, retours forcés desktop retirés,
     interligne légèrement ouvert pour les accents des capitales */
  .section-head__title {
    font-size: clamp(34px, 8.8vw, 96px);
    line-height: 1.02;
  }
  .section-head__title br,
  .contact__title br,
  .pros__title br,
  .hyrox__title br { display: none; }

  .contact__title { font-size: clamp(32px, 8.2vw, 72px); }
  .pros__title { font-size: clamp(30px, 7.6vw, 64px); line-height: 1.02; }
  .hyrox__title { font-size: clamp(32px, 8.2vw, 80px); line-height: 1.02; }

  /* Texte rouge sur fond sombre : aux petites tailles mobiles, l'anti-crénelage
     éclaircit les traits fins de l'Anton et le rouge #D32626 vire au rose.
     On le redensifie d'un cran (même teinte, plus saturé) pour tenir la charte à l'œil.
     Uniquement les rouges posés sur fond sombre ; les fonds de boutons ne bougent pas. */
  .hero__title em,
  .gallery .section-head__eyebrow,
  .gallery .section-head__title em,
  .door.is-active .door__num,
  .mission .section-head__eyebrow,
  .mission .section-head__title em,
  .mission .pillar__num,
  .equipe .section-head__eyebrow,
  .equipe .section-head__title em,
  .contact .section-head__eyebrow,
  .contact__title em,
  .contact .info-block__lbl,
  .footer__col h4 {
    color: #C11B1B;
  }

}

/* Très petits écrans : les gros boutons nowrap débordaient à 320px */
@media (max-width: 380px) {
  .btn--xl {
    white-space: normal;
    text-align: center;
    padding: 17px 24px;
  }
}


/* =================================================
   AVIS GOOGLE (widget Elfsight encadré)
   ================================================= */
.reviews {
  padding: var(--pad-y) 0;
  background: #f6f4ee;
  color: #16203a;
}
.reviews .section-head__title { color: #16203a; }
.reviews .section-head__title em { color: var(--fire); }
.reviews .section-head__lede { color: #5a6275; }
/* même calibre que la FAQ : le titre tient en deux lignes, pas trois */
.reviews .section-head__title { font-size: clamp(34px, 5vw, 66px); }
.reviews .section-head { max-width: 900px; }

/* Le widget porte désormais son propre fond bleu (réglé dans Elfsight) : plus de panneau blanc
   ni de filet Google autour, il se pose directement sur le crème. Pas d'overflow hidden :
   ses flèches dépassent de son cadre. min-height réserve la place avant son chargement. */
.reviews__panel {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 240px;
}

/* =====================================================================
   PLANNING · fond BLEU MARINE, entre les cours (crème) et la galerie
   Ordinateur : le tableau de la semaine. Téléphone et tablette : un jour à la fois.
   Replié au départ sur les premiers créneaux, le bouton déplie le reste.
   La couleur d'un cours suit son texte (posée par app.js) : WOD, HYROX, BIG WOD, le reste
   (haltéro, gym, renfo, force) en « cours spécifiques ».
   ===================================================================== */
.planning {
  padding: var(--pad-y) 0;
  background: var(--brand-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.planning::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/pattern-bg.jpg');
  background-size: cover;
  opacity: .05;
  mix-blend-mode: screen;
  pointer-events: none;
}
.planning > .container { position: relative; z-index: 1; }
.planning .section-head { max-width: 1000px; margin-bottom: clamp(32px, 4.5vw, 52px); }
/* titre court à la taille des autres sections ; la promesse en sous-titre, en blanc (pas de gris sur bleu) */
.planning .section-head__title { color: #fff; }
.planning .section-head__lede {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  color: #fff;
  text-wrap: balance;
}
.planning__sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Les trois chiffres, tirés du planning ---------- */
.planning__chiffres {
  list-style: none;
  margin: 0 auto clamp(44px, 5.5vw, 72px);
  padding: 0;
  display: flex;
  justify-content: center;
}
.planning__chiffres li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 2px clamp(16px, 3.6vw, 48px);
  text-align: center;
}
.planning__chiffres li + li { border-left: 1px solid rgba(255,255,255,.16); }
.planning__chiffres strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}
.planning__chiffres span {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

/* ---------- Couleurs des cours ---------- */
.planning [data-type="wod"]   { background: #2c5296; color: #fff; }
.planning [data-type="hyrox"] { background: var(--fire); color: #fff; }
.planning [data-type="spec"]  { background: #f6f4ee; color: var(--brand-deep); }
.planning [data-type="big"]   { background: rgba(211,38,38,.18); color: #fff; box-shadow: inset 0 0 0 1.5px var(--fire); }
/* un cours décalé par rapport à sa ligne : ses horaires sous le nom */
.planning [data-heure]::after {
  content: attr(data-heure) " → " attr(data-fin);
  display: block;
  margin-top: 3px;
  font-size: .86em;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .85;
}

.planning__legende {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.planning__legende li { display: flex; align-items: center; gap: 9px; }
.planning__legende i { width: 14px; height: 14px; border-radius: 4px; }

/* ---------- La fenêtre : repliée sur les premiers créneaux, fondue vers le bas ----------
   Le fondu est un masque sur le contenu, pas un dégradé posé dessus : le motif du fond reste visible. */
.planning__fenetre {
  position: relative;
  transition: max-height .7s var(--ease-out);
}
.planning__fenetre.est-replie {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
}

.planning__bascule { display: flex; margin: 18px auto 0; border-color: rgba(255,255,255,.42); }
.planning__bascule[hidden] { display: none; }
.planning__bascule:hover { border-color: #fff; }
.planning__bascule svg,
.planning__bascule:hover svg { transform: none; transition: transform .35s var(--ease); }
.planning__bascule[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Ordinateur : le tableau de la semaine ---------- */
.planning__table {
  width: calc(100% + 12px);
  margin: 0 -6px;
  border-collapse: separate;
  border-spacing: 6px;
  table-layout: fixed;
}
.planning__table thead th:first-child,
.planning__table tbody th { width: 70px; }
.planning__table thead th {
  padding: 14px 4px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  text-align: center;
  vertical-align: top;
}
.planning__table thead th:first-child { background: none; }
.planning__j {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.planning__h {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.66);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.planning__table tbody th {
  padding: 0 4px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  text-align: left;
  white-space: nowrap;
}
.planning__table td {
  height: 50px;
  padding: 5px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  vertical-align: middle;
}
/* hors des horaires du week-end : la case reste vide, sans fond */
.planning__table td:empty { background: none; }
.planning__table td span {
  display: block;
  padding: 10px 4px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: center;
}
/* deux cours à la même heure : côte à côte, comme sur le planning de Sébastien, jamais l'un sous l'autre
   (on croirait que l'un commence avant l'autre) */
.planning__table td:has(span + span) { white-space: nowrap; }
.planning__table td:has(span + span) span {
  display: inline-block;
  width: calc(50% - 2.5px);
  padding: 10px 2px;
  font-size: 11.5px;
  letter-spacing: .03em;
  vertical-align: middle;
}
.planning__table td span + span { margin-left: 5px; }
/* petits écrans d'ordinateur : HALTÉRO doit tenir dans sa demi-case */
@media (max-width: 1279px) {
  .planning__table td:has(span + span) span { font-size: 10.5px; letter-spacing: .01em; }
}

/* ---------- Téléphone et tablette : un jour à la fois ---------- */
.planning__jour { display: none; }
.planning__onglets {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}
.planning__onglets button {
  padding: 13px 0 11px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.planning__onglets button[aria-selected="true"] { background: #fff; color: var(--brand-deep); }
.planning__onglets button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* aujourd'hui : un point rouge sous le jour */
.planning__onglets .est-aujourdhui::after {
  content: '';
  display: block;
  width: 5px; height: 5px;
  margin: 5px auto 0;
  border-radius: 50%;
  background: var(--fire);
}
.planning__horaires {
  margin: 0 0 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.72);
}
.planning__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.planning__liste li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}
.planning__heure { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.planning__crs { display: flex; gap: 6px; }
.planning__crs span {
  flex: 1 1 0;
  padding: 12px 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 1099px) {
  /* sans script, le tableau défile de côté ; avec, il laisse la place à la vue du jour */
  .planning__fenetre { overflow-x: auto; }
  .planning__table { min-width: 760px; }
  .planning.est-pret .planning__table { display: none; }
  .planning.est-pret .planning__jour { display: block; }
  .planning__legende { justify-content: center; gap: 10px 18px; }
}
@media (max-width: 520px) {
  .planning__chiffres li { padding: 2px 12px; }
  .planning__onglets { gap: 4px; }
  .planning__onglets button { font-size: 15px; }
  /* les deux boutons tiennent dans l'écran : le texte passe à la ligne plutôt que de déborder */
  .planning__bascule,
  .planning__cta .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .planning__bascule { padding: 14px 18px; font-size: 13px; letter-spacing: .03em; }
  .planning__cta .btn { padding: 18px 20px; }
}

/* ---------- Réserver ---------- */
.planning__cta {
  margin-top: clamp(44px, 5.5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.planning__note { font-size: 13.5px; color: rgba(255,255,255,.68); }

@media (prefers-reduced-motion: reduce) {
  .planning__fenetre { transition: none; }
}


/* =================================================
   PLANNING → RÉSERVATION : un cours cliqué propose de le réserver
   (bulle au-dessus du cours, feuille qui monte du bas au téléphone),
   puis emmène au formulaire avec le créneau déjà choisi
   ================================================= */
.planning__table td span[role="button"],
.planning__crs span[role="button"] {
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
@media (hover: hover) {
  .planning__table td span[role="button"]:hover,
  .planning__crs span[role="button"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .85);
  }
  .planning__table td span[data-type="big"]:hover,
  .planning__crs span[data-type="big"]:hover {
    box-shadow: inset 0 0 0 1.5px var(--fire), 0 10px 18px -10px rgba(0, 0, 0, .85);
  }
}
.planning__table td span[role="button"]:focus-visible,
.planning__crs span[role="button"]:focus-visible,
.planning span.est-choisi {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* l'invitation à cliquer, au bout de la légende */
.planning__legende .planning__astuce {
  margin-left: auto;
  gap: 8px;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
}
.planning__astuce svg { width: 20px; height: 20px; color: var(--fire); flex: 0 0 auto; }
@media (max-width: 1099px) {
  .planning__legende .planning__astuce { flex-basis: 100%; justify-content: center; margin: 4px 0 0; }
}

/* la bulle */
.creneau-pop {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 120;
  width: min(360px, calc(100vw - 24px));
  padding: 22px 22px 18px;
  background: #fff;
  color: var(--brand-deep);
  border-radius: 16px;
  box-shadow: 0 30px 60px -18px rgba(5, 12, 28, .7), 0 0 0 1px rgba(20, 42, 82, .06);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transform-origin: var(--pointe-x, 50%) 100%;
  transition: opacity .22s var(--ease), transform .28s var(--ease);
}
.creneau-pop.est-dessous { transform: translateY(-8px) scale(.96); transform-origin: var(--pointe-x, 50%) 0; }
.creneau-pop.est-ouvert { opacity: 1; transform: none; }
.creneau-pop[hidden] { display: none; }
.creneau-pop__pointe {
  position: absolute;
  left: var(--pointe-x, 50%);
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}
.creneau-pop.est-dessous .creneau-pop__pointe { bottom: auto; top: -7px; }
.creneau-pop__fermer {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8a8781;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.creneau-pop__fermer:hover { background: #f1efe9; color: var(--brand-deep); }
.creneau-pop__fermer svg { width: 16px; height: 16px; }
.creneau-pop__quand {
  margin: 0 40px 6px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fire);
}
.creneau-pop__cours {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.creneau-pop__cours i { flex: 0 0 12px; height: 12px; border-radius: 4px; }
.creneau-pop__cours i[data-type="wod"]   { background: #2c5296; }
.creneau-pop__cours i[data-type="hyrox"] { background: var(--fire); }
.creneau-pop__cours i[data-type="spec"]  { background: #f6f4ee; box-shadow: inset 0 0 0 1.5px var(--brand); }
.creneau-pop__cours i[data-type="big"]   { background: rgba(211, 38, 38, .18); box-shadow: inset 0 0 0 1.5px var(--fire); }
.creneau-pop__question {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2a44;
}
.creneau-pop__go {
  width: 100%;
  padding: 15px 16px;
  font-size: 12.5px;
  white-space: normal;
  text-align: center;
}
.creneau-pop__note { margin: 10px 0 0; font-size: 12.5px; color: #7a7a74; text-align: center; }

/* au téléphone : une feuille qui monte du bas, posée sur un voile */
.creneau-voile {
  position: fixed;
  inset: 0;
  z-index: 119;
  background: rgba(5, 12, 28, .55);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.creneau-voile.est-ouvert { opacity: 1; }
.creneau-voile[hidden] { display: none; }
@media (max-width: 699px) {
  .creneau-pop {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    opacity: 1;
    transform: translateY(105%);
    transition: transform .34s var(--ease);
  }
  .creneau-pop.est-dessous { transform: translateY(105%); }
  .creneau-pop.est-ouvert { transform: none; }
  .creneau-pop::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: #dedcd6;
  }
  .creneau-pop__pointe { display: none; }
  .creneau-pop__cours { font-size: 36px; }
}

/* le créneau suit le visiteur dans le formulaire */
.lead-form__creneau {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 9px 6px 9px 14px;
  background: rgba(30, 58, 111, .07);
  border: 1px solid rgba(30, 58, 111, .2);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
  color: #2b3550;
  animation: creneauArrive .5s var(--ease) both;
}
.lead-form__creneau[hidden] { display: none; }
.lead-form__creneau > svg { width: 18px; height: 18px; color: var(--fire); flex: 0 0 auto; }
.lead-form__creneau span { flex: 1; }
.lead-form__creneau b { color: var(--brand); font-weight: 700; }
.lead-form__creneau-x {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8a8781;
  cursor: pointer;
}
.lead-form__creneau-x:hover { background: rgba(30, 58, 111, .1); color: var(--brand); }
.lead-form__creneau-x svg { width: 14px; height: 14px; }
@keyframes creneauArrive {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.lead-book__state.is-ok { color: #159957; font-weight: 600; }

/* à l'arrivée, la carte de réservation s'éclaire une fois */
.contact__booking.est-vise { animation: carteVisee 1.6s var(--ease) .45s 1 both; }
@keyframes carteVisee {
  0%   { outline: 3px solid rgba(211, 38, 38, .75); outline-offset: 0; }
  100% { outline: 3px solid rgba(211, 38, 38, 0);   outline-offset: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .creneau-pop, .creneau-voile { transition: none; }
  .contact__booking.est-vise, .lead-form__creneau { animation: none; }
}


/* ============ ÉQUIPE · fiches athlètes (section intégrée le 18/11/2026) ============ */
/* =====================================================================
   ÉQUIPE · « Fiches athlètes » (maquette D · V2)
   Bloc à poser à la place des règles .equipe / .coach actuelles
   (base vers la ligne 1203 + surcharge vers la ligne 2341 de style.css).
   Le fond bleu marine et son motif à 5 % sont repris tels quels.
   V2 : la photo de groupe sur les box rejoint le paquet de cartes.
   ===================================================================== */

/* ---------- La section (inchangée : foncée entre deux sections claires) ---------- */
.equipe {
  padding: var(--pad-y) 0;
  background: var(--brand-deep);
  position: relative;
  overflow: hidden;
}
.equipe::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/pattern-bg.jpg');
  background-size: cover;
  opacity: .05;
  mix-blend-mode: screen;
  pointer-events: none;
}
.equipe > .container { position: relative; z-index: 1; }
.equipe .section-head__title { color: #fff; }

/* ---------- La composition : le titre et la photo de groupe, puis les cartes ----------
   Téléphone et tablette : tout s'empile, centré. Ordinateur : deux colonnes,
   le titre et la photo de groupe à gauche, les six cartes à droite. */
.equipe__trombi {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(44px, 7vw, 64px);
}
.equipe__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(36px, 6vw, 56px);
  justify-items: center;
}
.equipe .equipe__intro .section-head {
  margin: 0 auto;
  max-width: 620px;
  text-align: center;
}
/* titre un cran plus petit que les autres sections : ici, ce sont les photos qui dominent.
   Interligne 1,14 : en dessous, l'accent du É de « DÉPASSER » touche la ligne du dessus. */
.equipe .section-head__title {
  font-size: clamp(34px, 8.8vw, 72px);
  line-height: 1.14;
}

/* ---------- La photo de groupe : toute l'équipe sur les box, devant le logo ---------- */
.equipe__groupe {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0f2147;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 30px 60px -28px rgba(2, 8, 22, .85);
}
.equipe__groupe img {
  display: block;
  width: 100%;
  height: auto;
}
/* même filet intérieur que les cartes : la photo fait partie du jeu */
.equipe__groupe::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  pointer-events: none;
}

/* ---------- Le jeu de cartes ---------- */
.equipe__cartes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2.2vw, 32px);
  margin: 0;
  padding: 0;
}

@media (min-width: 1100px) {
  .equipe__trombi {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(56px, 5.5vw, 88px);
    align-items: stretch;
  }
  /* le titre s'aligne sur le haut des cartes, la photo sur leur bas */
  .equipe__intro {
    align-content: space-between;
    justify-items: stretch;
  }
  .equipe .equipe__intro .section-head {
    margin: 0;
    text-align: left;
  }
  /* trois lignes à toutes les largeurs : la photo garde la place, les deux colonnes finissent ensemble */
  .equipe .section-head__title { font-size: clamp(52px, 4.9vw, 64px); }
  .equipe__groupe { max-width: none; }
  /* la dernière rangée de cartes finit sur la même ligne que la photo */
  .equipe__paquet { align-self: end; }
}

/* ---------- Une carte ---------- */
.equipe .carte {
  position: relative;
  aspect-ratio: 5 / 7;
  perspective: 1600px;
  /* tout l'intérieur de la carte suit sa largeur (cqi = 1 % de la carte) */
  container-type: inline-size;
}
.equipe .carte__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.2, .75, .25, 1);
  transition-delay: var(--delai, 0ms);
}
.equipe .carte__face {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* fond travaillé : motif du club sur dégradé bleu marine, lumière derrière la tête */
  background:
    radial-gradient(85% 52% at 50% 25%, rgba(110, 160, 228, .34) 0%, rgba(110, 160, 228, 0) 72%),
    #1E3A6F url('images/fond-carte.webp') center / cover no-repeat;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 30px 60px -28px rgba(2, 8, 22, .85);
}
/* filet intérieur, comme le bord imprimé d'une carte */
.equipe .carte__face::after {
  content: '';
  position: absolute;
  inset: 10px;
  inset: max(8px, 2.9cqi);
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
  pointer-events: none;
  z-index: 4;
}

/* Recto : le visage d'abord */
.equipe .carte__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: drop-shadow(0 14px 18px rgba(4, 12, 32, .45));
}
/* le bas de la carte se fond dans le bleu, pour poser le nom */
.equipe .carte__recto::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top,
    rgba(13, 28, 58, .97) 0%,
    rgba(13, 28, 58, .9) 17%,
    rgba(13, 28, 58, .45) 33%,
    rgba(13, 28, 58, 0) 47%);
  pointer-events: none;
}
.equipe .carte__badge {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 38px;
  top: 6.5cqi;
  left: 6.5cqi;
  width: 11.2cqi;
  height: auto;
  z-index: 3;
  opacity: .92;
}
/* badge de certification CrossFit (L1 / L2) à la place du numéro : un écusson
   posé sur la carte, à la hauteur du logo d'en face */
.equipe .carte__certif {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 32px;
  top: 6.5cqi;
  right: 6.5cqi;
  width: 10.4cqi;
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 1px 1px rgba(5, 12, 28, .55)) drop-shadow(0 4px 8px rgba(5, 12, 28, .45));
}
.equipe .carte__legende {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 24px 30px;
  padding: 0 7cqi 8.8cqi;
  text-align: center;
}
.equipe .carte__nom {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  font-size: clamp(19px, 7.65cqi, 26px);
  line-height: 1.04;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
}
.equipe .carte__role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  gap: 3cqi;
  margin-top: 3cqi;
  font-size: 11px;
  font-size: clamp(10px, 3.25cqi, 11px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, .8);
}
/* filet rouge discret, repris des petits tirets rouges de l'écusson du club */
.equipe .carte__role::before,
.equipe .carte__role::after {
  content: '';
  width: 14px;
  width: 4.1cqi;
  height: 2px;
  border-radius: 1px;
  background: var(--fire);
  flex: none;
}
/* un rôle en trois mots (Gérant · Fondateur · Coach) se resserre pour tenir sur une ligne */
.equipe .carte__role--long {
  letter-spacing: .09em;
  gap: 2.2cqi;
}
.equipe .carte__role--long::before,
.equipe .carte__role--long::after { width: 2.8cqi; }

/* Verso : le dos du paquet, seulement l'écusson */
.equipe .carte__verso {
  transform: rotateY(180deg);
  display: grid;
  place-items: center;
}
.equipe .carte__verso img {
  width: 54%;
  height: auto;
  opacity: .95;
}

/* ---------- La donne : chaque carte se retourne en entrant à l'écran ----------
   Sans JavaScript, ou en mouvement réduit, les cartes sont simplement à l'endroit. */
.equipe.est-donne .carte:not(.est-retournee) .carte__inner { transform: rotateY(180deg); }
.equipe.est-donne .carte:not(.est-retournee) .carte__inner { transition-delay: 0ms; }

/* reflet de carte brillante, une seule fois après le retournement */
.equipe .carte__recto .carte__reflet {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, .16) 50%,
    rgba(255, 255, 255, 0) 62%);
  transform: translateX(-120%);
}
.equipe.est-donne .carte.est-retournee .carte__reflet {
  animation: carteReflet 1.1s ease-out both;
  animation-delay: calc(var(--delai, 0ms) + 650ms);
}
@keyframes carteReflet {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}

/* ---------- Le paquet : à la souris, les cartes se rassemblent derrière celle qu'on vise ----------
   Le script calcule pour chaque carte le chemin vers le paquet (--px, --py), son léger
   décalage (--pr), sa place dans la pile (--pz) et son départ (--pdelai). */
.equipe__cartes { position: relative; }
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  .equipe .carte {
    z-index: 1;
    /* au retour, chaque carte garde sa place dans la pile jusqu'à ce qu'elle soit posée */
    transition:
      transform .85s cubic-bezier(.2, .8, .2, 1) var(--pdelai, 0ms),
      z-index 0s linear 1.4s;
  }
  .equipe__cartes.est-en-paquet .carte {
    z-index: var(--pz, 1);
    transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--pr, 0deg)) scale(var(--pechelle, 1));
    transition:
      transform .75s cubic-bezier(.2, .8, .2, 1) var(--pdelai, 0ms),
      z-index 0s linear 0s;
  }
}

/* ---------- Puces (seulement quand les cartes défilent au doigt) ---------- */
.equipe__puces { display: none; }

/* ---------- Téléphone et tablette : on fait défiler le paquet au doigt ---------- */
@media (max-width: 1099px) {
  .equipe__cartes {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* le paquet va jusqu'aux bords de l'écran ; la 1re carte reste alignée sur le texte */
    margin: 0 calc(-1 * var(--pad-x));
    /* le défilement coupe tout ce qui dépasse : on laisse la place à l'ombre des cartes */
    padding: 12px var(--pad-x) 46px;
    scroll-padding-inline: var(--pad-x);
  }
  .equipe .carte__face {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .08),
      0 20px 36px -18px rgba(2, 8, 22, .85);
  }
  .equipe__cartes::-webkit-scrollbar { display: none; }
  .equipe .carte {
    flex: 0 0 min(78vw, 320px);
    scroll-snap-align: start;
  }
  .equipe__puces {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: -16px;
  }
  /* zone de toucher confortable, trait discret */
  .equipe__puces button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
  }
  .equipe__puces button::before {
    content: '';
    width: 12px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .3);
    transition: width .35s var(--ease), background .35s var(--ease);
  }
  .equipe__puces button[aria-current="true"]::before {
    width: 26px;
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .equipe .carte__inner { transition: none; }
  .equipe.est-donne .carte:not(.est-retournee) .carte__inner { transform: none; }
  .equipe .carte__reflet { display: none; }
}
