/* Page d'accueil publique (vitrine.php) */
:root {
  --green: #0f5d3a; --green-2: #1c7a4f; --green-soft: #e3efe7;
  --amber: #e9a420; --ink: #142019; --ink-2: #44514a; --muted: #6f7a74;
  --bg: #f6f4ee; --card: #fff; --line: #e4e0d6;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--card); }
a { color: var(--green-2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.v-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.v-etroit { max-width: 820px; }

/* Boutons */
.v-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .8em 1.4em; border-radius: 10px; background: var(--amber); color: #2b1d00; font-weight: 700; text-decoration: none; border: 2px solid var(--amber); transition: transform .15s, box-shadow .15s; cursor: pointer; font: inherit; font-weight: 700; }
.v-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.v-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.v-btn-line { background: transparent; color: var(--green); border-color: var(--green); }
.v-btn-plein { width: 100%; background: var(--green); border-color: var(--green); color: #fff; padding: .95em; }

/* En-tête */
.v-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.v-nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.v-brand { display: flex; align-items: center; gap: .65em; text-decoration: none; color: var(--ink); }
.v-brand strong { display: block; font-size: 1.05rem; }
.v-brand small { display: block; font-size: .75rem; color: var(--muted); }
.brand-mark { background: var(--green); color: #fff; font-weight: 800; border-radius: 9px; padding: .45em .55em; font-size: .9em; letter-spacing: .03em; border-bottom: 3px solid var(--amber); }
.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 9px; background: #fff; }
.v-liens { display: flex; align-items: center; gap: 1.4em; }
.v-liens a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.v-liens a:hover { color: var(--green); }
.v-liens .v-btn { color: var(--green); padding: .5em 1.1em; }
.v-menu-cb, .v-burger { display: none; }

/* Hero */
.v-hero { background: radial-gradient(circle at 85% 20%, rgba(233,164,32,.22), transparent 40%), linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%); color: #fff; padding: 70px 0 80px; overflow: hidden; }
.v-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.v-pill { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: .35em .9em; border-radius: 99px; font-size: .85rem; font-weight: 600; margin-bottom: 1.2em; }
.v-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.02em; }
.v-hero h1 em { font-style: normal; color: #ffd27a; }
.v-lead { font-size: 1.15rem; opacity: .92; max-width: 56ch; }
.v-cta { display: flex; flex-wrap: wrap; gap: .8em; margin: 1.8em 0 1.4em; }
.v-coches { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6em 1.4em; font-size: .92rem; opacity: .95; }
.v-coches li { display: flex; align-items: center; gap: .4em; }
.v-coches svg { width: 18px; height: 18px; fill: #ffd27a; }

/* Téléphone (maquette de l'écran des essais) */
.v-phone { justify-self: center; width: 300px; padding: 12px; background: #0d1512; border-radius: 38px; box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.08); transform: rotate(2deg); }
.v-phone-ecran { background: #f3f4f1; border-radius: 28px; padding: 14px 12px; color: var(--ink); font-size: 12px; }
.m-titre { background: var(--green); color: #fff; text-align: center; font-weight: 800; border-radius: 12px; padding: 9px; border-bottom: 3px solid var(--amber); }
.m-titre small { display: block; font-weight: 500; opacity: .85; font-size: 10px; }
.m-eleves { display: flex; gap: 6px; margin: 10px 0; overflow: hidden; }
.m-eleves span { flex: none; background: #fff; border: 1.5px solid #e2e2dc; border-radius: 9px; padding: 5px 7px; font-weight: 700; font-size: 10.5px; }
.m-eleves span b { display: block; color: var(--muted); }
.m-eleves .on { border-color: var(--green); } .m-eleves .on b { color: var(--green); }
.m-sautoir { position: relative; height: 120px; border-radius: 12px; background: linear-gradient(#dcebfb, #eef5fc); margin-bottom: 8px; }
.m-pot { position: absolute; top: 10px; bottom: 14px; width: 5px; background: #5b6b7b; border-radius: 3px; } .m-pot.g { left: 14%; } .m-pot.d { right: 14%; }
.m-tapis { position: absolute; left: 18%; right: 18%; bottom: 0; height: 14px; background: #2563eb; border-radius: 6px 6px 0 0; }
.m-ligne { position: absolute; left: 14%; right: 14%; border-top: 2px dashed; } .m-ligne.ok { color: #16a34a; } .m-ligne.ko { color: #dc2626; } .m-ligne.best { color: #d97706; border: 0; }
.m-ligne em { position: absolute; left: 10%; transform: translateY(-60%); font-style: normal; font-size: 9px; font-weight: 800; color: #fff; background: currentColor; border-radius: 4px; padding: 0 4px; }
.m-ligne.ok em { background: #16a34a; } .m-ligne.ko em { background: #dc2626; } .m-ligne.best em { background: #f59e0b; color: #3b2a00; z-index: 2; }
.m-barre { position: absolute; left: 14%; right: 14%; height: 6px; transform: translateY(50%); background: repeating-linear-gradient(90deg, #dc2626 0 14px, #fff 14px 28px); border-radius: 3px; }
.m-badge { position: absolute; right: 4px; transform: translateY(50%); background: var(--green); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 10px; }
.m-essai { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e2e2dc; border-radius: 10px; padding: 6px 8px; margin-bottom: 5px; }
.m-essai span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 800; }
.m-essai b { flex: 1; text-align: center; border: 1px solid #ddd; border-radius: 6px; padding: 2px; }
.m-essai i { font-style: normal; width: 26px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.m-essai .v { background: #16a34a; } .m-essai .x { background: #dc2626; }
.m-essai.best { border-color: var(--green); } .m-essai.ko { border-color: #f1c4bf; }
.m-res { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.m-res div { background: #fff; border-radius: 9px; text-align: center; padding: 5px; }
.m-res small { display: block; font-size: 8.5px; text-transform: uppercase; color: var(--muted); }
.m-res b { font-size: 16px; color: #b7791f; } .m-res .n { color: var(--green); }
.m-valider { background: var(--green); color: #fff; text-align: center; font-weight: 800; border-radius: 10px; padding: 9px; border-bottom: 3px solid var(--amber); }

/* Chiffres clés */
.v-chiffres { background: var(--card); border-bottom: 1px solid var(--line); }
.v-chiffres-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-top: 30px; padding-bottom: 30px; }
.v-chiffres-grid div { padding: 0 10px; border-left: 1px solid var(--line); }
.v-chiffres-grid div:first-child { border-left: 0; }
.v-chiffres b { display: block; font-size: 1.9rem; color: var(--green); }
.v-chiffres span { color: var(--muted); font-size: .9rem; }

/* Sections */
.v-section { padding: 84px 0; }
.v-alt { background: var(--bg); }
.v-titre { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.v-titre span, .v-sur { display: inline-block; color: var(--green-2); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6em; }
.v-titre h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
.v-titre p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Modules */
.v-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.v-module { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 2px 4px rgba(20,30,25,.03); transition: transform .2s, box-shadow .2s; border-top: 4px solid var(--green-2); }
.v-module:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,30,25,.09); }
.v-mod-courses { border-top-color: #2a5d8f; } .v-mod-concours { border-top-color: #b4642b; } .v-mod-gym { border-top-color: #a2345e; }
.v-mod-examens { border-top-color: #7a3e8f; } .v-mod-prog { border-top-color: var(--amber); }
.v-module-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 16px; }
.v-mod-courses .v-module-ico { background: #e2ecf6; color: #2a5d8f; } .v-mod-concours .v-module-ico { background: #f8e8db; color: #9a521e; }
.v-mod-gym .v-module-ico { background: #fde7ef; color: #a2345e; } .v-mod-examens .v-module-ico { background: #f0e4f4; color: #6b337e; }
.v-mod-prog .v-module-ico { background: #fdf1d8; color: #8a5d05; }
.v-module-ico svg { width: 28px; height: 28px; }
.v-module h3 { font-size: 1.25rem; margin-bottom: .15em; }
.v-module-sous { color: var(--green-2); font-weight: 600; font-size: .88rem; margin: 0 0 .8em; }
.v-module > p { color: var(--ink-2); margin: 0 0 1em; }
.v-module ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45em; }
.v-module li { display: flex; gap: .5em; font-size: .92rem; color: var(--ink-2); }
.v-module li svg { width: 18px; height: 18px; fill: var(--green-2); margin-top: .2em; }

/* Sur le terrain */
.v-atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px; }
.v-atout { background: var(--card); border-radius: 16px; padding: 22px; border: 1px solid var(--line); }
.v-atout > svg { width: 30px; height: 30px; fill: var(--green); margin-bottom: 10px; }
.v-atout h3 { font-size: 1.08rem; }
.v-atout p { margin: 0; color: var(--muted); font-size: .95rem; }
.v-apercus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.v-apercu { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 10px 30px rgba(20,30,25,.06); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.v-apercu figcaption { font-size: .88rem; color: var(--muted); text-align: center; }
.a-tableau { font-size: .8rem; }
.a-tableau > div { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr .7fr; gap: 4px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.a-tableau .a-t-tete { background: #f3f1ea; font-weight: 700; color: var(--ink-2); border-radius: 6px; font-size: .72rem; text-transform: uppercase; }
.a-tableau .x { color: #dc2626; text-decoration: line-through; }
.a-tableau b { color: var(--green); text-align: right; }
.a-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a-kpis div { background: #f3f1ea; border-radius: 10px; text-align: center; padding: 8px 4px; }
.a-kpis b { display: block; font-size: 1.25rem; color: var(--green); } .a-kpis small { color: var(--muted); font-size: .72rem; }
.a-barres { display: flex; align-items: flex-end; gap: 10px; height: 90px; padding: 0 10px; border-bottom: 2px solid var(--line); }
.a-barres i { flex: 1; background: linear-gradient(var(--green-2), var(--green)); border-radius: 6px 6px 0 0; }
.a-barres i:first-child { background: #dc2626; } .a-barres i:nth-child(2) { background: #e98a20; } .a-barres i:nth-child(3) { background: var(--amber); }
.a-seances { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.a-seances span { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; background: #f3f1ea; font-weight: 800; color: var(--muted); }
.a-seances .on { background: var(--green-soft); color: var(--green); } .a-seances .cur { background: var(--green); color: #fff; }
.a-fiche { background: #f8f7f2; border-radius: 10px; padding: 12px; display: grid; gap: 7px; font-size: .85rem; }
.a-fiche i { height: 8px; border-radius: 4px; background: #e6e2d7; } .a-fiche i.c { width: 60%; }

/* Démarrage */
.v-etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: e; position: relative; }
.v-etapes li { text-align: center; padding: 0 8px; position: relative; }
.v-etapes li b { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--green); color: #fff; font-size: 1.3rem; box-shadow: 0 0 0 7px var(--green-soft); position: relative; z-index: 1; }
.v-etapes li:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: calc(50% + 34px); right: calc(-50% + 34px); border-top: 2px dashed #cfd9d2; }
.v-etapes h3 { font-size: 1.05rem; }
.v-etapes p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Tarifs */
.v-tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.v-tarif { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.v-tarif.vedette { border: 2px solid var(--green); box-shadow: 0 24px 50px rgba(15,93,58,.16); transform: translateY(-8px); }
.v-ruban { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--amber); color: #2b1d00; font-weight: 800; font-size: .78rem; padding: .3em .9em; border-radius: 99px; white-space: nowrap; }
.v-tarif h3 { font-size: 1.15rem; color: var(--ink-2); }
.v-prix { font-size: 2.2rem; font-weight: 800; color: var(--green); margin: 0; }
.v-prix small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.v-prix-sous { color: var(--muted); font-size: .9rem; margin: .2em 0 1.2em; min-height: 2.8em; }
.v-tarif ul { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: .55em; flex: 1; }
.v-tarif li { display: flex; gap: .5em; font-size: .95rem; }
.v-tarif li svg { width: 18px; height: 18px; fill: var(--green-2); margin-top: .2em; }
.v-note { text-align: center; color: var(--muted); margin: 34px 0 0; }

/* Conformité */
.v-officiel { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; background: linear-gradient(135deg, var(--green-soft), #fdf6e5); border-radius: 22px; padding: 38px 42px; }
.v-officiel > div:first-child svg { width: 72px; height: 72px; fill: var(--green); }
.v-officiel h2 { font-size: 1.6rem; }
.v-officiel p { margin: 0; color: var(--ink-2); }
#officiel { padding-top: 0; }

/* FAQ */
.v-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; }
.v-faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 1em; }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green); }
.v-faq details[open] summary::after { content: "−"; }
.v-faq p { margin: 0 0 18px; color: var(--ink-2); }

/* Contact */
.v-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.v-contact h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.v-contact-texte p { color: var(--muted); font-size: 1.05rem; }
.v-contact-infos { list-style: none; padding: 0; margin: 1.5em 0 0; display: grid; gap: .9em; }
.v-contact-infos li { display: flex; align-items: center; gap: .7em; font-weight: 600; }
.v-contact-infos svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--green-soft); fill: var(--green); }
.v-form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: 0 20px 50px rgba(20,30,25,.08); }
.v-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 18px; }
.v-champs label { display: flex; flex-direction: column; gap: .35em; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.v-champs .v-plein { grid-column: 1 / -1; }
.v-champs input, .v-champs select, .v-champs textarea { font: inherit; font-size: 16px; padding: .7em .8em; border: 1px solid #cfcbbf; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.v-champs input:focus, .v-champs select:focus, .v-champs textarea:focus { outline: 2px solid rgba(28,122,79,.3); border-color: var(--green-2); }
.v-piege { position: absolute !important; left: -9999px; }
.v-mention { font-size: .8rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.v-erreur { background: #fbe4e1; color: #7e211b; border-radius: 10px; padding: .7em 1em; margin: 0 0 16px; }
.v-merci { text-align: center; padding: 20px 0; }
.v-merci svg { width: 60px; height: 60px; padding: 12px; border-radius: 50%; background: var(--green-soft); fill: var(--green); }

/* Pied de page */
.v-pied { background: #0d1a14; color: #b8c6be; padding: 56px 0 24px; }
.v-pied-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.v-pied .v-brand { color: #fff; } .v-pied .v-brand small { color: #8fa197; }
.v-pied p { font-size: .92rem; max-width: 46ch; }
.v-pied h4 { color: #fff; font-size: .95rem; }
.v-pied a:not(.v-brand) { display: block; color: #b8c6be; text-decoration: none; margin: .4em 0; font-size: .92rem; }
.v-pied a:hover { color: #ffd27a; }
.v-copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #7f9187; }
.v-wa-flottant { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.v-wa-flottant svg { width: 32px; height: 32px; fill: #fff; }

/* Responsive */
@media (max-width: 1000px) {
  .v-modules, .v-atouts, .v-apercus { grid-template-columns: 1fr 1fr; }
  .v-hero-grid { grid-template-columns: 1fr; }
  .v-phone { transform: none; }
  .v-tarifs { grid-template-columns: 1fr; max-width: 440px; }
  .v-tarif.vedette { transform: none; }
}
@media (max-width: 860px) {
  .v-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; -webkit-tap-highlight-color: transparent; }
  .v-burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }
  .v-liens { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.08); display: none; }
  .v-liens a { padding: .8em 0; border-bottom: 1px solid var(--line); }
  .v-liens .v-btn { margin-top: 12px; border-bottom: 2px solid var(--green); }
  .v-menu-cb:checked ~ .v-liens { display: flex; }
  .v-etapes { grid-template-columns: 1fr 1fr; gap: 34px 18px; }
  .v-etapes li::after { display: none; }
  .v-contact { grid-template-columns: 1fr; gap: 30px; }
  .v-pied-grid { grid-template-columns: 1fr 1fr; }
  .v-pied-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .v-section { padding: 60px 0; }
  .v-hero { padding: 44px 0 56px; }
  .v-modules, .v-atouts, .v-apercus { grid-template-columns: 1fr; }
  .v-chiffres-grid { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .v-chiffres-grid div:nth-child(3) { border-left: 0; }
  .v-champs { grid-template-columns: 1fr; }
  .v-form { padding: 22px 18px; }
  .v-officiel { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; }
  .v-officiel > div:first-child { justify-self: center; }
  .v-cta .v-btn { width: 100%; }
  .v-brand small { display: none; }
  .v-phone { width: min(300px, 100%); }
}
