/* ============================================
   BOULOGNE BOXE — refonte site vitrine (maquette)
   S'ajoute à style.css (variables, nav, boutons)
   ============================================ */

html { scroll-behavior: auto; } /* GSAP gère le scroll des ancres */
body { overflow-x: hidden; }

/* ---------- Hero plein écran ---------- */
.v-hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.v-hero-fond {
  position: absolute; inset: -12% 0; z-index: 0;
}
.v-hero-fond img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  filter: grayscale(1) contrast(1.08) brightness(.62);
}
.v-hero-fond::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.15) 40%, rgba(10,10,11,.96) 88%);
}
.v-hero-in { position: relative; z-index: 2; padding-bottom: 60px; }
.v-hero .sur-titre { margin-bottom: 18px; }
.v-hero h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(70px, 12.5vw, 190px);
  line-height: .88; letter-spacing: .01em;
}
.v-hero h1 .ligne { display: block; overflow: hidden; }
.v-hero h1 .ligne > span { display: inline-block; }
.v-hero h1 .rouge { color: var(--rouge); }
.v-hero-bas {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; margin-top: 34px; flex-wrap: wrap;
}
.v-hero-bas p { color: #c9c9cc; max-width: 430px; font-size: 16.5px; }
.v-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.v-hero-badges {
  position: absolute; top: 96px; right: 24px; z-index: 2;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.v-badge {
  background: rgba(10,10,11,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 100px;
  padding: 8px 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
}
.v-badge b { color: var(--rouge); font-weight: 700; }

/* ---------- Bandeau défilant ---------- */
.marquee {
  border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord);
  overflow: hidden; padding: 18px 0; background: var(--noir);
  white-space: nowrap;
}
.marquee-piste { display: inline-block; will-change: transform; animation: defile 28s linear infinite; }
.marquee span {
  font-family: var(--display); font-size: 30px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gris-2); margin-right: 46px;
}
.marquee span i { font-style: normal; color: var(--rouge); margin-left: 46px; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Palmarès chiffres ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* stoppe le gonflement de texte Chrome Android */
.v-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.v-chiffre { border-left: 3px solid var(--rouge); padding: 8px 0 8px 24px; }
.v-chiffre b {
  font-family: var(--display); font-weight: 400; display: block;
  font-size: clamp(84px, 11vw, 150px); line-height: .9; letter-spacing: .01em;
  white-space: nowrap;
}
.v-chiffre b .suf { font-style: normal; color: var(--rouge); font-size: .55em; vertical-align: .12em; }
.v-chiffre span.lib {
  display: block; color: var(--gris); font-size: 14.5px; margin-top: 10px;
  font-weight: 500;
}

/* ---------- Coach ---------- */
.v-coach { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
.v-coach-photo { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/4.8; }
.v-coach-photo img {
  width: 100%; height: 114%; object-fit: cover; object-position: 50% 15%;
  filter: grayscale(1) contrast(1.07);
}
.v-coach-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(210deg, transparent 60%, rgba(10,10,11,.75));
}
.v-coach-photo .etiquette {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font-family: var(--display); font-size: 22px; letter-spacing: .05em;
}
.v-coach-photo .etiquette small { display: block; font-family: var(--texte); font-size: 12px; color: var(--gris); }
.v-coach h2 { margin-bottom: 20px; }
.v-coach p.bio { color: var(--gris); font-size: 16.5px; margin-bottom: 26px; }
.v-palmares { list-style: none; display: grid; gap: 0; }
.v-palmares li {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 4px; border-bottom: 1px solid var(--bord);
  font-weight: 500; font-size: 15px;
}
.v-palmares li::before {
  content: ""; width: 7px; height: 7px; background: var(--rouge);
  transform: rotate(45deg); flex: none;
}

/* ---------- Méthode ---------- */
.v-methode { display: grid; gap: 14px; counter-reset: etape; }
.v-etape {
  display: grid; grid-template-columns: 110px 1fr; gap: 26px; align-items: start;
  background: var(--noir-2); border: 1px solid var(--bord); border-radius: 6px;
  padding: 30px 34px;
}
.v-etape .num {
  font-family: var(--display); font-weight: 400; font-size: 58px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--rouge);
}
.v-etape h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.v-etape p { color: var(--gris); font-size: 14.5px; }

/* ---------- Activités ---------- */
.v-activites { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.v-activite {
  background: var(--noir-2); border: 1px solid var(--bord); border-radius: 6px;
  padding: 30px 32px; transition: border-color .25s;
}
.v-activite:hover { border-color: rgba(226,49,45,.55); }
.v-activite .idx {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--rouge); text-transform: uppercase;
  display: block; margin-bottom: 10px;
}
.v-activite h3 { font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.v-activite ul { list-style: none; display: grid; gap: 6px; }
.v-activite li { color: var(--gris); font-size: 14.5px; padding-left: 18px; position: relative; }
.v-activite li::before { content: "—"; position: absolute; left: 0; color: var(--rouge); }
.v-activite p { color: var(--gris); font-size: 14.5px; }
.v-activite.large { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.v-activite.large figure { border-radius: 4px; overflow: hidden; aspect-ratio: 16/9.5; margin: 0; }
.v-activite.large figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* ---------- Horaires ---------- */
.v-horaires { display: grid; gap: 0; border-top: 1px solid var(--bord); }
.v-jour-ligne {
  display: grid; grid-template-columns: 190px 1fr; gap: 26px;
  padding: 22px 6px; border-bottom: 1px solid var(--bord); align-items: baseline;
}
.v-jour-ligne .j { font-family: var(--display); font-weight: 400; font-size: 27px; letter-spacing: .06em; text-transform: uppercase; }
.v-creneaux-h { display: flex; gap: 12px; flex-wrap: wrap; }
.v-slot {
  background: var(--noir-2); border: 1px solid var(--bord); border-radius: 100px;
  padding: 9px 20px; font-size: 14px; font-weight: 500;
}
.v-slot b { font-weight: 700; }
.v-slot span { color: var(--gris); }

/* ---------- Tarifs ---------- */
.v-tarifs-groupe { margin-bottom: 34px; }
.v-tarifs-groupe > h3 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 16px; display: flex; align-items: center; gap: 14px;
}
.v-tarifs-groupe > h3::after { content: ""; flex: 1; height: 1px; background: var(--bord); }
.v-tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v-tarif {
  background: var(--noir-2); border: 1px solid var(--bord); border-radius: 6px;
  padding: 28px; position: relative; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.v-tarif:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.25); }
.v-tarif.star { border-color: var(--rouge); }
.v-tarif .pop {
  position: absolute; top: -11px; left: 24px; background: var(--rouge); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
}
.v-tarif h4 { font-size: 15.5px; font-weight: 700; }
.v-tarif .age { color: var(--gris); font-size: 13px; margin-bottom: 14px; }
.v-tarif .montant { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1; }
.v-tarif .par { color: var(--gris-2); font-size: 12.5px; margin-bottom: 18px; }
.v-tarif ul { list-style: none; display: grid; gap: 7px; margin-bottom: 22px; flex: 1; }
.v-tarif li { font-size: 13.5px; color: var(--gris); padding-left: 20px; position: relative; }
.v-tarif li::before { content: "✓"; position: absolute; left: 0; color: var(--rouge); font-weight: 700; }
.v-tarif .btn { width: 100%; }

/* aides */
.v-aides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.v-aide { border: 1px dashed rgba(255,255,255,.2); border-radius: 6px; padding: 22px 24px; }
.v-aide b { display: block; font-size: 15.5px; margin-bottom: 6px; color: var(--blanc); }
.v-aide b i { font-style: normal; color: var(--rouge); }
.v-aide p { font-size: 13px; color: var(--gris); }
.v-aides-note { margin-top: 16px; font-size: 14px; color: var(--gris); }
.v-aides-note strong { color: var(--blanc); }

/* ---------- Inscription ---------- */
.v-inscrire { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v-voie {
  background: var(--noir-2); border: 1px solid var(--bord); border-radius: 6px;
  padding: 30px; display: flex; flex-direction: column; gap: 10px;
}
.v-voie .idx { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--rouge); text-transform: uppercase; }
.v-voie h3 { font-family: var(--display); font-weight: 400; font-size: 28px; text-transform: uppercase; letter-spacing: .03em; }
.v-voie p { color: var(--gris); font-size: 14px; flex: 1; }

/* ---------- CTA final ---------- */
.v-final {
  position: relative; overflow: hidden; border-radius: 8px;
  padding: 90px 40px; text-align: center;
}
.v-final img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.35);
}
.v-final::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 100%, rgba(226,49,45,.35), transparent 65%); }
.v-final > div { position: relative; z-index: 2; }
.v-final h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 7vw, 92px); line-height: .92; margin-bottom: 16px;
}
.v-final p { color: #c9c9cc; margin-bottom: 30px; font-size: 16px; }
.v-final .hero-cta { justify-content: center; }

/* ---------- Footer vitrine ---------- */
.v-footer { border-top: 1px solid var(--bord); padding: 54px 0 34px; margin-top: 90px; }
.v-footer-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.v-footer h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-2); margin-bottom: 14px; }
.v-footer p, .v-footer a { font-size: 14px; color: var(--gris); display: block; margin-bottom: 8px; }
.v-footer a:hover { color: var(--blanc); }
.v-footer .marque-pied { font-family: var(--display); font-size: 26px; letter-spacing: .05em; color: var(--blanc); margin-bottom: 10px; }
.v-footer-bas {
  border-top: 1px solid var(--bord); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--gris-2);
}

/* ---------- Reveals : état initial posé par GSAP (fromTo), jamais par le CSS
   → si le JS ne charge pas, tout le contenu reste visible ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .v-hero-badges { display: none; }
  .v-chiffres { grid-template-columns: 1fr 1fr; gap: 28px; }
  .v-coach { grid-template-columns: 1fr; gap: 36px; }
  .v-activites, .v-tarifs, .v-aides, .v-inscrire { grid-template-columns: 1fr 1fr; }
  .v-activite.large { grid-template-columns: 1fr; }
  .v-footer-grille { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Nav mobile : logo seul (sans texte), liens resserrés, bouton compact sur une ligne */
  .nav-in { gap: 14px; height: 58px; }
  .nav-logo { gap: 0; }
  .nav-logo span { display: none; }
  .nav-logo img { height: 38px; }
  .nav a.lien { font-size: 13.5px; }
  .nav .btn { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  .v-chiffres { grid-template-columns: 1fr; gap: 30px; } /* un chiffre par ligne, plein format : le palmarès s'impose */
  .v-activites, .v-tarifs, .v-aides, .v-inscrire { grid-template-columns: 1fr; }
  .v-etape { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .v-jour-ligne { grid-template-columns: 1fr; gap: 10px; }
}

/* ============ CONTACT ============ */
.v-contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.v-form label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gris); margin-bottom: 18px; }
.v-form label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.v-form input, .v-form select, .v-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--bord); border-radius: 6px;
  color: var(--blanc); font: 500 15px/1.45 var(--texte); letter-spacing: 0; text-transform: none;
  transition: border-color .2s, background .2s;
}
.v-form input::placeholder, .v-form textarea::placeholder { color: var(--gris-2); }
.v-form input:focus, .v-form select:focus, .v-form textarea:focus {
  outline: none; border-color: var(--rouge); background: rgba(255,255,255,.05);
}
.v-form select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.v-form textarea { resize: vertical; min-height: 120px; }
.v-form-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.v-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; pointer-events: none; }
.v-form-pied { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: 4px; }
.v-form-rgpd { color: var(--gris-2); font-size: 12px; line-height: 1.6; max-width: 46ch; }
.v-form-rgpd a { color: var(--gris); text-decoration: underline; text-underline-offset: 2px; }
.v-form-etat { margin-top: 16px; font-size: 14px; font-weight: 600; min-height: 20px; }
.v-form-etat.ok { color: #63dfae; }
.v-form-etat.ko { color: var(--rouge); }
.v-coord { border: 1px solid var(--bord); border-radius: 10px; padding: 30px 30px 22px;
  background: rgba(255,255,255,.02); }
.v-coord h3 { font-family: var(--display); font-size: 20px; letter-spacing: .02em;
  color: var(--rouge); margin: 18px 0 8px; }
.v-coord h3:first-child { margin-top: 0; }
.v-coord p { color: var(--gris); font-size: 14.5px; line-height: 1.85; }
.v-coord a { color: var(--blanc); text-decoration: none; border-bottom: 1px solid var(--bord); }
.v-coord a:hover { border-color: var(--rouge); }
@media (max-width: 860px) {
  .v-contact { grid-template-columns: 1fr; gap: 34px; }
  .v-form-ligne { grid-template-columns: 1fr; gap: 0; }
  .v-form-pied { flex-direction: column; align-items: flex-start; }
}

/* ============ HISTOIRE ============ */
.v-histoire { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.v-hist-photo { position: relative; border-radius: 10px; overflow: hidden; }
.v-hist-photo img { width: 100%; height: 520px; object-fit: cover; display: block; }
.v-hist-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.82)); color: var(--gris);
  font-size: 13px; letter-spacing: .04em; }
.v-hist-fil { position: relative; padding-left: 34px; }
.v-hist-fil::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 1px; background: var(--bord); }
.v-hist-etape { position: relative; padding-bottom: 30px; }
.v-hist-etape:last-child { padding-bottom: 0; }
.v-hist-etape::before { content: ""; position: absolute; left: -30px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--rouge);
  box-shadow: 0 0 0 4px rgba(226,49,45,.15); }
.v-hist-etape .an { font-family: var(--display); font-size: 24px; letter-spacing: .04em;
  color: var(--blanc); display: block; margin-bottom: 6px; }
.v-hist-etape p { color: var(--gris); font-size: 15px; line-height: 1.7; max-width: 60ch; }
.v-hist-etape p strong { color: var(--blanc); font-weight: 600; }
.v-hist-citation { margin-top: 54px; padding: 30px 36px; border-left: 3px solid var(--rouge);
  background: rgba(255,255,255,.02); border-radius: 0 10px 10px 0;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.6; color: var(--blanc);
  font-style: italic; max-width: 72ch; }
@media (max-width: 900px) {
  .v-histoire { grid-template-columns: 1fr; gap: 34px; }
  .v-hist-photo img { height: 300px; }
}

/* ============ ÉTAPES ESSAI (planning) ============ */
.v-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin: 26px 0 34px; }
.v-etape { border: 1px solid var(--bord); border-radius: 10px; padding: 16px 18px;
  background: rgba(255,255,255,.02); }
.v-etape .idx { font-family: var(--display); font-size: 20px; color: var(--rouge);
  display: block; margin-bottom: 4px; }
.v-etape p { color: var(--gris); font-size: 13.5px; line-height: 1.55; margin: 0; }
.v-etape p b { color: var(--blanc); }

/* ---------- Le club en images (bandeau défilant) ---------- */
.v-galerie { overflow: hidden; padding: 10px 0 70px; }
.v-galerie-piste { display: flex; gap: 14px; width: max-content; will-change: transform; animation: defile 46s linear infinite; }
.v-galerie figure { margin: 0; flex: 0 0 auto; width: 340px; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; }
.v-galerie img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .35s; }
.v-galerie figure:hover img { filter: grayscale(0) contrast(1); }
@media (max-width: 700px) { .v-galerie figure { width: 230px; } }
@media (prefers-reduced-motion: reduce) {
  .v-galerie { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .v-galerie-piste { animation: none; }
  .v-galerie figure[aria-hidden] { display: none; } /* pas de doublons en mode manuel */
}

/* ---------- L'équipe (histoire) ---------- */
.v-equipe { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 22px; }
.v-membre { display: flex; align-items: center; gap: 16px; background: var(--noir-2); border: 1px solid var(--bord); border-radius: 6px; padding: 14px 18px; }
.v-membre img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; filter: grayscale(1); }
.v-membre strong { display: block; font-size: 15px; }
.v-membre span { color: var(--gris); font-size: 13px; }
@media (max-width: 700px) { .v-equipe { grid-template-columns: 1fr; } }
