:root {
  --green: #1f7a3d;
  --green-dark: #124a26;
  --green-deep: #0c3a1d;
  --green-light: #e8f5ec;
  --ink: #16241a;
  --muted: #5c6b60;
  --bg: #ffffff;
  --bg-alt: #f3f8f4;
  --line: #e2e8e4;
  --accent: #c6f24a;
  --accent-ink: #1a2b06;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -12px rgba(16, 60, 30, 0.25);
  --shadow-sm: 0 8px 24px -10px rgba(16, 60, 30, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Reveal au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Barre de progression de lecture */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--green), var(--accent)); transform: scaleX(0); transform-origin: left; z-index: 60; }

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1120px, 92%); margin: 0 auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; margin-bottom: 0.8rem; }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.76rem; font-weight: 700; color: var(--green); margin-bottom: 0.6rem;
}
.eyebrow.center, h2.center { text-align: center; }
.grad {
  background: linear-gradient(100deg, var(--green), #38b764 60%, #7bd67f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 1.08rem; }
.brand strong { color: var(--green); }
.brand-ball { font-size: 1.4rem; }
.nav { display: flex; gap: 1.8rem; }
.nav a { font-weight: 600; color: var(--muted); position: relative; transition: color 0.2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--green); transition: width 0.25s;
}
.nav a:hover { color: var(--green); }
.nav a:hover::after { width: 100%; }
.nav-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--ink); }

/* HERO */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 7rem) 0; text-align: center; background: linear-gradient(180deg, #fbfdfb, #fff); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.blob-1 { width: 460px; height: 460px; background: #b9f0c9; top: -140px; right: -120px; }
.blob-2 { width: 380px; height: 380px; background: #e4fba0; bottom: -160px; left: -120px; opacity: 0.5; }
.hero-ball { position: absolute; font-size: 2.4rem; opacity: 0.85; animation: float 6s ease-in-out infinite; }
.hero-ball-1 { top: 18%; left: 12%; }
.hero-ball-2 { top: 60%; right: 14%; animation-delay: 1.5s; font-size: 1.8rem; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(12deg); } }
.hero-inner { position: relative; z-index: 1; }
.badge {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  color: var(--green-dark); box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.hero h1 { margin-bottom: 0.2rem; }
.hero-sub { max-width: 640px; margin: 1.2rem auto 0; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.9rem 1.7rem; border-radius: 999px; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* STATS */
.stats { background: linear-gradient(120deg, var(--green-deep), var(--green)); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.6rem 0; text-align: center; }
.stat { display: flex; flex-direction: column; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 15%; bottom: 15%; width: 1px; background: rgba(255,255,255,0.18); }
.stat-num { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-label { font-size: 0.9rem; opacity: 0.85; }

/* SECTIONS */
.section { padding: clamp(3.5rem, 7.5vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: center; }

.checklist { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 1.3rem; height: 1.3rem; display: grid; place-items: center;
  background: var(--green-light); color: var(--green); border-radius: 50%; font-size: 0.75rem; font-weight: 800;
}

/* MEDIA CARD / COURT */
.media-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; text-align: center; }
.court {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px;
  background: linear-gradient(160deg, #2e8b57, #1f7a3d);
  border: 6px solid #eef5f0; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.court::before { content: ""; position: absolute; inset: 10% 8%; border: 2px solid rgba(255,255,255,0.75); }
.court-net { position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: rgba(255,255,255,0.9); transform: translateY(-50%); }
.court-line--mid { position: absolute; top: 20%; bottom: 20%; left: 50%; width: 2px; background: rgba(255,255,255,0.7); }
.court-ball { position: relative; font-size: 2rem; animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(-14px); } 50% { transform: translateY(14px); } }
.media-caption { margin-top: 0.9rem; color: var(--muted); font-weight: 600; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card-icon {
  font-size: 1.6rem; width: 3rem; height: 3rem; display: grid; place-items: center;
  background: var(--green-light); border-radius: 14px; margin-bottom: 0.9rem;
}
.card p { color: var(--muted); margin-top: 0.4rem; font-size: 0.95rem; }

/* HOURS & PRICES */
.hours { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.hours th, .hours td { text-align: left; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--green); font-weight: 700; }
.note { margin-top: 0.9rem; color: var(--muted); font-size: 0.86rem; font-style: italic; }

.price-list { display: grid; gap: 0.7rem; margin-top: 0.5rem; }
.price {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s, transform 0.15s;
}
.price:hover { border-color: var(--green); transform: translateX(3px); }
.price strong { color: var(--green); }

/* CONTACT */
.contact-list { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.8rem; }
.contact-list li { display: flex; gap: 0.6rem; align-items: center; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1rem; box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 10px; resize: vertical; transition: border-color 0.2s, box-shadow 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.form-feedback { font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-feedback.ok { color: var(--green); }
.form-feedback.err { color: #c0392b; }

.container.narrow { width: min(760px, 92%); }

/* EQUIPE */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.avatar {
  width: 68px; height: 68px; margin: 0 auto 0.9rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.3rem;
  background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: var(--shadow-sm);
}
.member .role { color: var(--green); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; }
.member p { color: var(--muted); font-size: 0.92rem; }

/* ACTUS */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.4rem; }
.news-item { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; align-items: flex-start; transition: transform 0.2s, box-shadow 0.2s; }
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-date {
  flex: 0 0 auto; width: 62px; height: 62px; border-radius: 14px;
  background: linear-gradient(145deg, var(--green), var(--green-dark)); color: #fff;
  display: grid; place-items: center; align-content: center; line-height: 1;
}
.news-date .d { font-size: 1.5rem; font-weight: 800; }
.news-date .m { font-size: 0.65rem; letter-spacing: 0.08em; opacity: 0.9; margin-top: 2px; }
.news-item h3 { margin-bottom: 0.3rem; }
.news-item p { color: var(--muted); font-size: 0.93rem; }

/* GALERIE */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
.shot {
  aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center;
  color: #fff; font-weight: 700; text-align: center; padding: 1rem; position: relative; overflow: hidden;
}
.shot::after { content: ""; position: absolute; inset: 0; background: rgba(12,40,22,0.28); transition: background 0.25s; }
.shot:hover::after { background: rgba(12,40,22,0.1); }
.shot span { position: relative; z-index: 1; }
.shot.s1 { background: linear-gradient(145deg, #2e8b57, #124a26); }
.shot.s2 { background: linear-gradient(145deg, #3a7bd5, #1d4e8f); }
.shot.s3 { background: linear-gradient(145deg, #e67e22, #b35e11); }
.shot.s4 { background: linear-gradient(145deg, #8e44ad, #5e2d74); }
.shot.s5 { background: linear-gradient(145deg, #c0392b, #7d2017); }
.shot.s6 { background: linear-gradient(145deg, #16a085, #0c6150); }

/* TEMOIGNAGES */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 0.2rem; left: 1rem; font-size: 3rem; color: var(--accent); font-family: Georgia, serif; }
.quote p { position: relative; z-index: 1; margin-top: 0.8rem; font-style: italic; color: var(--ink); }
.quote footer { margin-top: 0.9rem; color: var(--green); font-weight: 600; font-size: 0.88rem; }

/* FAQ */
.faq { margin-top: 2rem; display: grid; gap: 0.8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.2rem; transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.4rem; font-weight: 700; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; margin-top: -0.3rem; }

/* NAV CTA */
.nav-cta { background: var(--green); color: #fff !important; padding: 0.5rem 1.1rem; border-radius: 999px; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--green-dark); }

/* PAGE INSCRIPTION */
.page-head { position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 7vw, 5rem) 0 2.5rem; background: linear-gradient(180deg, #fbfdfb, #fff); }
.page-head-inner { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.narrow-form { width: min(740px, 92%); }

/* Etapes */
.steps { list-style: none; display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 2.2rem; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 18px; left: 10%; right: 10%; height: 2px; background: var(--line); z-index: 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; position: relative; z-index: 1; }
.step-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 700; transition: all 0.25s; }
.step-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-align: center; }
.step.is-active .step-dot { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 0 0 4px var(--green-light); }
.step.is-active .step-label { color: var(--green); }
.step.is-done .step-dot { background: var(--green-light); border-color: var(--green); color: var(--green); }
.step.is-done .step-dot::after { content: "✓"; }
.step.is-done .step-dot { font-size: 0; }
.step.is-done .step-dot::after { font-size: 1rem; }

/* Formulaire */
.signup { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.2rem); }
.panel { border: none; display: none; animation: fade 0.35s ease; }
.panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel legend { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.2rem; padding: 0; }
.signup label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; }
.signup input, .signup select { font: inherit; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 10px; transition: border-color 0.2s, box-shadow 0.2s; }
.signup input:focus, .signup select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.signup .invalid { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192,57,43,0.15) !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-note { color: var(--muted); font-size: 0.82rem; margin: 0.2rem 0 1.2rem; }
.field-select { margin-top: 0.4rem; }

/* Options (radio / checkbox en cartes) */
.options { display: grid; gap: 0.8rem; margin-bottom: 1.4rem; }
.option { display: flex; align-items: flex-start; gap: 0.9rem; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; cursor: pointer; transition: border-color 0.2s, background 0.2s; font-weight: 400; margin: 0; }
.option input { margin-top: 0.25rem; accent-color: var(--green); width: 18px; height: 18px; }
.option:hover { border-color: #bcd6c3; }
.option:has(input:checked) { border-color: var(--green); background: var(--green-light); }
.option-body { display: grid; gap: 0.2rem; flex: 1; }
.option-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.option-price { color: var(--green); font-weight: 700; white-space: nowrap; }
.option-desc { color: var(--muted); font-size: 0.86rem; }

.consent { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 0.6rem; font-weight: 400 !important; font-size: 0.88rem; background: var(--bg-alt); padding: 0.9rem 1rem; border-radius: 10px; margin-top: 0.4rem; }
.consent input { width: 18px; height: 18px; accent-color: var(--green); margin-top: 1px; }

.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.4rem; gap: 1rem; }

/* Récap */
.recap { display: grid; gap: 0.2rem; margin-bottom: 1rem; }
.recap-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 0.8rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.recap-label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.recap-value { font-weight: 600; }
.recap-price { color: var(--green); font-weight: 700; }
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.2rem; background: var(--green-light); border-radius: var(--radius-sm); margin-top: 0.6rem; }
.total-row strong { font-size: 1.5rem; color: var(--green-dark); }

/* Succès */
.success { text-align: center; padding: 2rem 1rem; }
.success-ball { font-size: 3rem; animation: bounce 1.6s ease-in-out infinite; }
.success h2 { margin: 0.6rem 0; }
.success p { color: var(--muted); max-width: 460px; margin: 0 auto 1.4rem; }

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .recap-row { grid-template-columns: 1fr auto; }
  .recap-label { display: none; }
}

/* FOOTER */
.site-footer { background: var(--green-deep); color: #cfe0d4; padding: 1.8rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 820px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 0.5rem 0; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 6%; }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .stat:not(:last-child)::after { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 2.2rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
