/* MonClubBad — feuille de style commune (v3 : clair + bandeau dégradé) */
:root {
  --encre: #0e1726;
  --encre-2: #1b2a41;
  --vert: #12b76a;
  --vert-fonce: #0b8a4f;
  --sarcelle: #0e7c86;
  --jaune: #ffc93c;
  --texte: #1d2433;
  --gris: #5f6b7d;
  --gris-clair: #eef2f6;
  --fond: #f7f9fb;
  --blanc: #ffffff;
  --rayon: 18px;
  --largeur: 1160px;
  --ombre: 0 24px 60px rgba(14, 23, 38, .14);
  --titre: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texte); background: var(--blanc); line-height: 1.6; overflow-x: hidden;
}
h1, h2, h3, .logo, .prix { font-family: var(--titre); }
a { color: var(--vert-fonce); }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête ---------- */
.entete { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.entete.defile { background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(14, 23, 38, .08); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.45rem; text-decoration: none; color: var(--blanc); transition: color .3s; }
.entete.defile .logo { color: var(--encre); }
.logo .nom span { color: var(--jaune); transition: color .3s; }
.entete.defile .logo .nom span { color: var(--vert); }
.logo svg { width: 30px; height: 30px; transition: transform .5s; }
.logo:hover svg { transform: rotate(-25deg) scale(1.1); }
.menu { display: flex; gap: 8px; list-style: none; align-items: center; }
.menu a:not(.bouton) {
  color: rgba(255, 255, 255, .88); text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 10px;
  transition: background .25s, color .25s;
}
.menu a:not(.bouton):hover { background: rgba(255, 255, 255, .14); color: var(--blanc); }
.entete.defile .menu a:not(.bouton) { color: var(--texte); }
.entete.defile .menu a:not(.bouton):hover { background: var(--gris-clair); }
.menu .bouton { margin-left: 10px; }
.menu-bouton { display: none; background: none; border: 0; color: var(--blanc); font-size: 1.7rem; cursor: pointer; }
.entete.defile .menu-bouton { color: var(--encre); }

/* ---------- Boutons ---------- */
.bouton {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
  padding: 13px 26px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--jaune); color: var(--encre); text-decoration: none; font-weight: 700;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 201, 60, .45); }
.bouton::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-110%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55), transparent 70%); transition: transform .6s;
}
.bouton:hover::before { transform: translateX(110%); }
.bouton .fleche { transition: transform .25s; }
.bouton:hover .fleche { transform: translateX(4px); }
.bouton.contour { background: transparent; color: var(--blanc); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.bouton.contour:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px var(--blanc); }
.bouton.vert { background: var(--vert); color: var(--blanc); }
.bouton.vert:hover { background: var(--vert-fonce); box-shadow: 0 12px 30px rgba(18, 183, 106, .35); }
.bouton.plein { width: 100%; }

/* ---------- Typo de section ---------- */
section { padding: 110px 0; position: relative; }
.surtitre { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--vert-fonce); margin-bottom: 14px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 22px; color: var(--blanc); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px; color: var(--encre); }
.intro { color: var(--gris); max-width: 620px; font-size: 1.1rem; margin-bottom: 56px; }
.fond { background: var(--fond); }

/* ---------- Bandeau principal ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding: 150px 0 110px; overflow: hidden; color: var(--blanc);
  background: linear-gradient(120deg, #0b3b4a 0%, #0e6b5c 45%, #1f8a5b 70%, #c79a1e 115%);
  background-size: 160% 160%; animation: degrade 18s ease-in-out infinite alternate;
}
@keyframes degrade { to { background-position: 100% 50%; } }
.hero::after { /* quadrillage léger */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero .conteneur { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero .slogan { font-size: .85rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--jaune); margin-bottom: 22px; }
.hero p.accroche { font-size: 1.2rem; color: rgba(255, 255, 255, .85); margin-bottom: 36px; max-width: 540px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Terrain de badminton dessiné en animation */
.terrain { width: 100%; max-width: 460px; justify-self: end; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .25)); }
.terrain .ligne { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 2.5; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: trace 2.6s ease forwards; }
.terrain .ligne:nth-of-type(2) { animation-delay: .3s; }
.terrain .ligne:nth-of-type(3) { animation-delay: .6s; }
.terrain .ligne:nth-of-type(4) { animation-delay: .9s; }
.terrain .filet { stroke: var(--jaune); stroke-width: 4; stroke-dasharray: 8 6; opacity: 0; animation: apparait .6s 1.6s forwards; }
.terrain .sol { fill: rgba(255, 255, 255, .06); }
.terrain .trajet { fill: none; stroke: rgba(255, 201, 60, .6); stroke-width: 2; stroke-dasharray: 4 8; opacity: 0; animation: apparait .6s 2s forwards; }
.terrain .balle { opacity: 0; animation: apparait .3s 2s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes apparait { to { opacity: 1; } }

/* Titre animé mot par mot */
.mot { display: inline-block; opacity: 0; transform: translateY(40px); animation: monte .8s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes monte { to { opacity: 1; transform: none; } }

/* ---------- Bande défilante ---------- */
.bande { padding: 22px 0; overflow: hidden; background: var(--encre); }
.bande .piste { display: flex; gap: 48px; width: max-content; animation: defile 32s linear infinite; }
.bande span { color: rgba(255, 255, 255, .75); font-weight: 600; white-space: nowrap; }
.bande span::before { content: "●"; color: var(--jaune); font-size: .6rem; vertical-align: middle; margin-right: 48px; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Offre en deux colonnes ---------- */
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.colonne { border-top: 1px solid #dde3ea; padding-top: 34px; }
.colonne .surtitre { color: var(--sarcelle); }
.colonne h3 { font-size: 1.9rem; margin-bottom: 12px; color: var(--encre); }
.colonne > p { color: var(--gris); margin-bottom: 24px; }
.liste { list-style: none; display: grid; gap: 12px; }
.liste li { display: flex; gap: 12px; align-items: flex-start; }
.liste li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 183, 106, .12); color: var(--vert-fonce); font-size: .75rem; font-weight: 800; margin-top: 2px;
}

/* Maquette du site club */
.maquette-zone { perspective: 1200px; }
.maquette { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; border: 1px solid #e4e9ef; transition: transform .2s ease-out; }
.maquette .barre { display: flex; gap: 7px; padding: 12px 16px; background: var(--gris-clair); align-items: center; }
.maquette .barre i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.maquette .barre i:nth-child(2) { background: #febc2e; }
.maquette .barre i:nth-child(3) { background: #28c840; }
.maquette .barre span { margin-left: 12px; font-size: .75rem; color: var(--gris); }
.club-entete { background: linear-gradient(120deg, #1f3a8a, #3656c9); color: #fff; padding: 24px 22px; }
.club-entete b { font-size: 1.05rem; display: block; font-family: var(--titre); }
.club-entete small { opacity: .8; }
.club-corps { padding: 18px 22px 22px; display: grid; gap: 10px; background: #f6f8fc; }
.creneau { display: flex; justify-content: space-between; background: #fff; padding: 10px 14px; border-radius: 10px; font-size: .85rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.creneau em { font-style: normal; color: #1f3a8a; font-weight: 600; }

/* ---------- Tarifs ---------- */
.bascule { display: inline-flex; background: var(--gris-clair); border-radius: 999px; padding: 5px; margin-bottom: 44px; position: relative; }
.bascule button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 22px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--gris); transition: color .3s; font: inherit; font-weight: 600; }
.bascule button.actif { color: var(--encre); }
.bascule .curseur { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--blanc); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); transition: transform .35s cubic-bezier(.2, .8, .2, 1), width .35s; }
.bascule small { color: var(--vert-fonce); font-weight: 700; margin-left: 4px; }
.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.offre {
  display: flex; flex-direction: column; padding: 36px 30px; border-radius: var(--rayon);
  background: var(--blanc); border: 1px solid #e4e9ef; transition: transform .35s, box-shadow .35s;
}
.offre:hover { transform: translateY(-8px); box-shadow: var(--ombre); }
.offre h3 { font-size: 1.6rem; color: var(--encre); }
.offre .pour { color: var(--gris); font-size: .95rem; margin: 6px 0 22px; min-height: 48px; }
.prix { font-size: 2.8rem; font-weight: 800; color: var(--encre); line-height: 1; }
.prix small { font-family: "Inter", sans-serif; font-size: 1rem; font-weight: 500; color: var(--gris); }
.prix .montant { display: inline-block; transition: opacity .2s, transform .2s; }
.prix .montant.change { opacity: 0; transform: translateY(-8px); }
.offre .note { font-size: .85rem; color: var(--gris); margin: 8px 0 24px; min-height: 22px; }
.offre .liste { margin-bottom: 30px; flex: 1; font-size: .95rem; }
.offre.vedette { background: linear-gradient(160deg, #0b3b4a, #0e6b5c 60%, #1f8a5b); color: var(--blanc); border: 0; transform: scale(1.04); box-shadow: var(--ombre); position: relative; }
.offre.vedette:hover { transform: scale(1.04) translateY(-8px); }
.offre.vedette h3, .offre.vedette .prix { color: var(--blanc); }
.offre.vedette .pour, .offre.vedette .prix small, .offre.vedette .note { color: rgba(255, 255, 255, .78); }
.offre.vedette .liste li::before { background: rgba(255, 201, 60, .2); color: var(--jaune); }
.offre .badge { position: absolute; top: -14px; right: 24px; background: var(--jaune); color: var(--encre); font-size: .78rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; }

/* ---------- Questions fréquentes ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--blanc); border: 1px solid #e4e9ef; border-radius: 14px; padding: 0 24px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: 0 10px 30px rgba(14, 23, 38, .08); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--vert-fonce); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--gris); padding-bottom: 20px; }

/* ---------- Appel à l'action ---------- */
.cta-boite {
  position: relative; overflow: hidden; border-radius: 28px; padding: 80px 40px; text-align: center; color: var(--blanc);
  background: linear-gradient(120deg, #0b3b4a, #0e6b5c 55%, #1f8a5b);
}
.cta-boite h2 { color: var(--blanc); }
.cta-boite::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -90px; top: -90px; background: rgba(255, 201, 60, .18); animation: flotte 10s ease-in-out infinite alternate; }
@keyframes flotte { to { transform: translate(-60px, 50px) scale(1.15); } }
.cta-boite p { max-width: 560px; margin: 0 auto 34px; color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.cta-boite .bouton { position: relative; z-index: 1; }

/* ---------- Pied de page ---------- */
.pied { padding: 50px 0; color: rgba(255, 255, 255, .7); font-size: .95rem; background: var(--encre); }
.pied .conteneur { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.pied a { color: rgba(255, 255, 255, .7); margin-right: 18px; text-decoration: none; }
.pied a:hover { color: var(--jaune); }

/* ---------- Apparition au défilement ---------- */
.revele { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.revele.visible { opacity: 1; transform: none; }
.offre.vedette.revele.visible { transform: scale(1.04); }
.revele[data-delai="1"] { transition-delay: .12s; }
.revele[data-delai="2"] { transition-delay: .24s; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero .conteneur, .deux, .offres { grid-template-columns: 1fr; }
  .terrain { justify-self: center; max-width: 320px; }
  .offre.vedette, .offre.vedette.revele.visible, .offre.vedette:hover { transform: none; }
  .menu-bouton { display: block; }
  .menu {
    position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 6px; padding: 20px;
    background: var(--blanc); box-shadow: 0 20px 30px rgba(0, 0, 0, .1); clip-path: inset(0 0 100% 0); transition: clip-path .4s;
  }
  .menu.ouvert { clip-path: inset(0 0 0 0); }
  .menu a:not(.bouton) { color: var(--texte); }
  .menu .bouton { margin: 8px 0 0; }
  section { padding: 80px 0; }
}

/* Respect des personnes sensibles aux animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revele, .mot { opacity: 1; transform: none; }
  .terrain .ligne { stroke-dashoffset: 0; }
  .terrain .filet, .terrain .trajet, .terrain .balle { opacity: 1; }
}
