/* ==========================================================================
   Positif-Coach — layout « vente » (boutique d'e-books, page de vente, page d'accès)
   Contenu centré en col-10 responsive, hero vert profond + boutons jaunes.
   ========================================================================== */
:root {
    --g: #179731; --g-dark: #0a3318; --g-mid: #0f5a24; --g-soft: rgba(23, 151, 49, .10);
    --y: #FDB121; --y-dark: #e9a00f;
    --ink: #1b2a20; --txt: #4f5d54; --bg: #f6faf4; --line: #e2eadd;
    --radius: 16px; --font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body.v { margin: 0; background: var(--bg); color: var(--txt); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-text-size-adjust: 100%; }
body.v img { max-width: 100%; height: auto; }
body.v a { color: var(--g); }
.v-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.v-col10 { width: 100%; margin: 0 auto; }
@media (min-width: 768px) { .v-col10 { width: 91.6667%; } }
@media (min-width: 992px) { .v-col10 { width: 83.3333%; } }

/* ---------- Barre d'annonce et en-tête ---------- */
.v-top { background: var(--y); color: #2b2b2b; text-align: center; font-weight: 700; font-size: 13px; padding: 8px 12px; }
.v-head { background: #fff; border-bottom: 1px solid var(--line); }
.v-head-in { position: relative; display: flex; align-items: center; justify-content: center; padding-top: 14px; padding-bottom: 14px; }
.v-logo { font-weight: 800; letter-spacing: .08em; color: var(--g) !important; font-size: clamp(18px, 5.4vw, 28px); white-space: nowrap; text-decoration: none; }
.v-logo span { color: var(--y); }
.v-back { position: absolute; left: 16px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--txt) !important; }
@media (max-width: 640px) { .v-back { display: none; } }

/* ---------- Hero ---------- */
.v-hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(135deg, #0a3318 0%, #0f5a24 55%, #147a2b 100%); }
.v-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 38px, transparent 38px 76px); }
.v-hero::after { content: ''; position: absolute; right: -140px; bottom: -180px; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 177, 33, .30), transparent 65%); }
.v-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 54px 0 62px; }
@media (max-width: 900px) { .v-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 32px 0 44px; text-align: center; } .v-cover { order: -1; } }
.v-pill { display: inline-block; background: rgba(253, 177, 33, .18); color: var(--y); border: 1px solid rgba(253, 177, 33, .55); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.v-hero h1 { color: #fff; font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.15; font-weight: 800; margin: 0 0 14px; }
.v-sub { font-size: clamp(1rem, 2.4vw, 1.2rem); color: rgba(255, 255, 255, .9); margin: 0 0 22px; }
.v-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; text-align: left; }
.v-points li { position: relative; padding-left: 34px; color: #fff; font-weight: 500; }
.v-points li::before { content: '\2713'; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%; background: var(--y); color: #2b2b2b; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.v-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.v-price .now { font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1; }
.v-price .old { text-decoration: line-through; color: rgba(255, 255, 255, .65); font-size: 1.25rem; }
.v-price .off { background: var(--y); color: #222; font-weight: 800; font-size: .8rem; border-radius: 8px; padding: 3px 9px; }
.v-taxe { font-size: .85rem; color: rgba(255, 255, 255, .78); margin: 0 0 20px; }
@media (max-width: 900px) { .v-price { justify-content: center; } .v-points { max-width: 520px; margin-left: auto; margin-right: auto; } }
.v-cta { display: inline-block; background: var(--y); color: #222 !important; font-weight: 800; font-size: 1.1rem; padding: 16px 36px; border-radius: 999px; box-shadow: 0 10px 28px rgba(253, 177, 33, .45); text-decoration: none !important; text-align: center; border: 0; cursor: pointer; font-family: var(--font); transition: transform .15s, box-shadow .15s, background .15s; }
.v-cta:hover { background: #ffc247; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(253, 177, 33, .55); }
.v-cta.pulse { animation: vpulse 2.6s infinite; }
@keyframes vpulse { 0%, 100% { box-shadow: 0 10px 28px rgba(253, 177, 33, .45); } 50% { box-shadow: 0 10px 28px rgba(253, 177, 33, .45), 0 0 0 13px rgba(253, 177, 33, .18); } }
@media (prefers-reduced-motion: reduce) { .v-cta.pulse { animation: none; } .v-cta, .v-cover img { transition: none; } }
.v-cta[aria-disabled="true"] { background: #cfd8cc; color: #5c665f !important; box-shadow: none; pointer-events: none; animation: none; }
.v-cta-line { background: transparent; border: 2px solid var(--g); color: var(--g) !important; box-shadow: none; padding: 12px 26px; font-size: 1rem; }
.v-cta-line:hover { background: var(--g); color: #fff !important; box-shadow: none; }
.v-trust { margin-top: 16px; font-size: .86rem; color: rgba(255, 255, 255, .82); }
.v-cover { position: relative; display: flex; justify-content: center; }
.v-cover img { width: min(340px, 74%); border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 255, 255, .08); transform: rotate(-3deg); transition: transform .3s; }
.v-cover img:hover { transform: rotate(0) scale(1.02); }
.v-badge { position: absolute; right: 8%; bottom: -14px; background: var(--y); color: #222; font-weight: 800; border-radius: 12px; padding: 9px 15px; font-size: .82rem; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); transform: rotate(4deg); }
.v-nocover { width: min(300px, 70%); aspect-ratio: 3 / 4; border-radius: 14px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-weight: 800; font-size: 1.3rem; }

/* ---------- Sections ---------- */
.v-section { padding: 54px 0; }
.v-section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v-h2 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); color: var(--ink); text-align: center; font-weight: 800; margin: 0 0 6px; line-height: 1.25; }
.v-bar { display: block; width: 64px; height: 5px; border-radius: 4px; background: var(--y); margin: 12px auto 20px; }
.v-lead { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.v-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.v-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(20, 60, 30, .07); }
.v-card h3 { font-size: 1.1rem; color: var(--ink); margin: 0 0 8px; font-weight: 800; }
.v-card p { margin: 0; }
.v-num { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; background: var(--g); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.v-ico { display: inline-flex; width: 46px; height: 46px; border-radius: 14px; background: var(--g-soft); color: var(--g); align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.v-prose { overflow-wrap: anywhere; line-height: 1.85; }
.v-prose * { max-width: 100%; }
.v-prose h2, .v-prose h3 { color: var(--ink); }
.v-toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; counter-reset: toc; }
@media (max-width: 720px) { .v-toc { grid-template-columns: minmax(0, 1fr); } }
.v-toc li { counter-increment: toc; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px 13px 58px; font-weight: 600; color: var(--ink); }
.v-toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 9px; background: var(--g-soft); color: var(--g); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.v-fiche { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.v-fiche dt, .v-fiche dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.v-fiche dt { font-weight: 700; color: var(--ink); background: #f3f8f0; }
.v-fiche dt:last-of-type, .v-fiche dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) { .v-fiche { grid-template-columns: minmax(0, 1fr); } .v-fiche dt { border-bottom: 0; padding-bottom: 2px; background: #fff; color: var(--g); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; } .v-fiche dd { padding-top: 0; } }
.v-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 18px; }
.v-faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--g); }
.v-faq details[open] summary::after { content: '\2013'; }
.v-faq .a { padding: 0 0 16px; }
.v-note { font-size: .85rem; color: #6a776f; text-align: center; max-width: 760px; margin: 18px auto 0; }

/* ---------- Bandeau final ---------- */
.v-final { text-align: center; color: #fff; background: linear-gradient(135deg, #0a3318, #147a2b); padding: 56px 0; position: relative; overflow: hidden; }
.v-final::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 38px, transparent 38px 76px); }
.v-final > * { position: relative; }
.v-final h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin: 0 0 10px; }
.v-final p { color: rgba(255, 255, 255, .88); margin: 0 auto 22px; max-width: 620px; }

/* ---------- Boutique : cartes de livres ---------- */
.v-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 22px; }
.v-book { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(20, 60, 30, .07); transition: transform .15s, box-shadow .15s; text-decoration: none !important; color: inherit !important; }
.v-book:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 60, 30, .14); }
.v-book .img { background: linear-gradient(135deg, #0f5a24, #147a2b); padding: 22px 22px 0; text-align: center; }
.v-book .img img { width: 70%; border-radius: 8px 8px 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .3); display: block; margin: 0 auto; }
.v-book .corps { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.v-book .cat { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--g); }
.v-book h3 { font-size: 1.05rem; color: var(--ink); margin: 0; line-height: 1.3; font-weight: 800; }
.v-book .px { margin-top: auto; padding-top: 8px; font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.v-book .px s { font-size: .9rem; color: #94a09a; font-weight: 600; margin-left: 6px; }
.v-book .btn { margin-top: 6px; display: block; text-align: center; background: var(--y); color: #222; font-weight: 800; border-radius: 999px; padding: 11px 16px; }
.v-hero.petit .v-hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 40px 0 46px; }
.v-hero.petit h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }

/* ---------- Page d'accès ---------- */
.v-thanks { max-width: 780px; margin: 0 auto; text-align: center; }
.v-check { width: 78px; height: 78px; border-radius: 50%; background: var(--g); color: #fff; font-size: 40px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 0 0 10px var(--g-soft); }
.v-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 30px rgba(20, 60, 30, .07); margin-bottom: 20px; text-align: left; }
.v-box.centre { text-align: center; }
.v-mini { display: flex; align-items: center; gap: 18px; text-align: left; }
.v-mini img { width: 96px; border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); flex: none; }
@media (max-width: 520px) { .v-mini { flex-direction: column; text-align: center; } }
.v-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .v-form .row { grid-template-columns: minmax(0, 1fr); } }
.v-form input[type=text], .v-form input[type=email] { width: 100%; padding: 12px 14px; font: 400 16px var(--font); border: 1px solid #ccd7c8; border-radius: 10px; background: #fff; color: var(--ink); }
.v-form input:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 3px var(--g-soft); }
.v-form label.c { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin: 12px 0 14px; }
.v-alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: .95rem; }
.v-alert.ok { background: #e7f6ea; color: #14602a; border: 1px solid #b9e2c3; }
.v-alert.err { background: #fdecec; color: #a11d1d; border: 1px solid #f6c7c7; }
.v-alert.test { background: #fff6dc; color: #7a5200; border: 1px solid #f7dfa0; }
.v-support { font-size: .92rem; text-align: center; color: var(--txt); }

/* ---------- Barre d'achat collée en bas (mobile) ---------- */
.v-sticky { display: none; }
@media (max-width: 767px) {
    .v-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
    body.v.has-sticky { padding-bottom: 82px; }
    .v-sticky .p { font-weight: 800; color: var(--ink); font-size: 1.3rem; line-height: 1.1; }
    .v-sticky .p small { display: block; font-size: .7rem; font-weight: 600; color: var(--txt); }
    .v-sticky .v-cta { padding: 13px 22px; font-size: .95rem; box-shadow: none; white-space: nowrap; }
}

/* ---------- Pied de page ---------- */
.v-foot { background: var(--g-dark); color: rgba(255, 255, 255, .8); text-align: center; padding: 30px 16px; font-size: .86rem; }
.v-foot a { color: #fff !important; }
.v-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
