/* ÉLEVO — site de vente (version simple et claire) */
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  --forest: #1E4D2B; --forest-d: #14301F; --forest-2: #2C6B3C;
  --leaf-soft: #E7F3E1;
  --gold: #E3A72F; --gold-d: #B8841C; --gold-soft: #FBF0D6;
  --red: #C2552F; --red-soft: #FBE7DF;
  --cream: #F6F0E4; --card: #FFFFFF; --line: #EAE2D2;
  --ink: #1C2321; --text: #4A524E;
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: "Source Sans 3", system-ui, sans-serif; font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; color: var(--forest-d); line-height: 1.1; letter-spacing: -.01em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 720px; }
section { padding: 64px 0; }
.center { text-align: center; }
.sec-title { text-align: center; margin-bottom: 34px; }
.sec-title .pill { margin-bottom: 14px; }
.sec-title h2 { font-size: 40px; font-weight: 800; }
.sec-title p { color: var(--text); margin-top: 10px; font-size: 19px; }
.pill { display: inline-block; background: var(--card); border: 1px solid var(--line); color: var(--forest); font-weight: 800; font-size: 14px; letter-spacing: .04em; padding: 7px 16px; border-radius: 40px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; font-weight: 800; font-size: 19px; text-decoration: none; border: 0; border-radius: 16px; padding: 18px 28px; cursor: pointer; line-height: 1.2; text-align: center; transition: transform .12s, filter .12s; }
.btn:active { transform: translateY(2px); }
.btn:hover { filter: brightness(1.05); }
.btn-gold { background: var(--gold); color: var(--forest-d); box-shadow: 0 5px 0 var(--gold-d); }
.btn-green { background: var(--forest); color: #fff; box-shadow: 0 5px 0 #0C2214; }
.btn-block { width: 100%; }
.btn small { display: block; font-weight: 600; font-size: 14px; opacity: .85; margin-top: 3px; }
.btn-col { flex-direction: column; gap: 0; }

/* Bandeau et en-tête */
.topbar { background: var(--gold); color: var(--forest-d); font-weight: 700; font-size: 15px; text-align: center; padding: 10px 14px; }
.topbar a { font-weight: 800; text-decoration: underline; cursor: pointer; }
header.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: "Fraunces"; font-weight: 800; font-size: 24px; letter-spacing: .06em; color: var(--forest-d); }
header.nav .btn { padding: 11px 18px; font-size: 16px; border-radius: 12px; box-shadow: 0 3px 0 var(--gold-d); }

/* Accueil */
.hero { background: linear-gradient(180deg, var(--forest-d), var(--forest)); color: #fff; text-align: center; padding: 46px 0 56px; }
.hero .pill { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: var(--gold); }
.hero h1 { color: #fff; font-size: 50px; font-weight: 800; margin: 18px auto 14px; max-width: 760px; }
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 600; }
.hero .sub { font-size: 21px; opacity: .92; max-width: 620px; margin: 0 auto; }
.hero .pack { width: 100%; max-width: 560px; margin: 26px auto 10px; filter: drop-shadow(0 18px 26px rgba(0,0,0,.3)); }
.pricebox { background: var(--card); color: var(--ink); border-radius: var(--radius); max-width: 460px; margin: 0 auto; padding: 22px 20px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.pricebox .was { color: var(--text); font-size: 17px; }
.pricebox .was s { font-weight: 700; }
.pricebox .now { font-family: "Fraunces"; font-weight: 800; font-size: 54px; color: var(--forest-d); line-height: 1.05; margin: 2px 0 4px; }
.pricebox .now span { font-size: 16px; color: var(--red); font-family: "Source Sans 3"; font-weight: 800; letter-spacing: .06em; display: block; text-transform: uppercase; }
.pricebox .btn { margin-top: 14px; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--text); }
.hero .pricebox .trust { color: var(--text); }

/* Cartes « icône + titre + texte » */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: 0 4px 18px rgba(30,40,30,.04); }
.ico { width: 66px; height: 66px; border-radius: 18px; background: var(--forest-d); display: grid; place-items: center; font-size: 32px; margin: 0 auto 16px; }
.ico.red { background: #4A1E10; }
.card h3 { font-size: 23px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--text); font-size: 17px; }

/* Guide gratuit */
.free { padding-top: 40px; }
.freecard { background: var(--card); border: 3px solid var(--gold); border-radius: 28px; padding: 30px 24px; text-align: center; max-width: 760px; margin: 0 auto; box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.freecard .tag { display: inline-block; background: var(--red); color: #fff; font-weight: 800; letter-spacing: .12em; font-size: 15px; padding: 7px 16px; border-radius: 30px; }
.freecard img { width: 190px; margin: 22px auto; border-radius: 8px; box-shadow: 0 14px 28px rgba(0,0,0,.22); transform: rotate(-2deg); }
.freecard h2 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.freecard p { color: var(--text); font-size: 19px; max-width: 540px; margin: 0 auto 20px; }
.freecard .mini { font-size: 15px; color: var(--text); margin: 12px 0 0; }

/* Les 5 guides */
.books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.book { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px 22px; text-align: center; display: flex; flex-direction: column; }
.book .cover { position: relative; width: 210px; margin: 0 auto 22px; cursor: pointer; }
.book .cover img { width: 210px; border-radius: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.book .cover::after { content: "📖 Feuilleter"; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); background: var(--forest-d); color: #fff; font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 30px; white-space: nowrap; }
.book .n { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); margin-top: 8px; }
.book h3 { font-size: 27px; font-weight: 800; margin: 4px 0 8px; }
.book .what { color: var(--text); font-size: 17px; margin-bottom: 14px; }
.book ul { list-style: none; text-align: left; display: grid; gap: 8px; margin: 0 auto 16px; max-width: 360px; }
.book li { padding-left: 32px; position: relative; font-size: 17px; }
.book li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf-soft); color: var(--forest-2); font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.book .val { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.book .val b { color: var(--forest); }
.book .btn { margin-top: auto; }

/* Étapes */
.steps .card { position: relative; }
.steps .num { position: absolute; top: 14px; left: 18px; font-family: "Fraunces"; font-weight: 800; font-size: 22px; color: var(--gold-d); }

/* Offre */
.offer { background: var(--forest-d); }
.offer .sec-title h2 { color: #fff; }
.offer .sec-title p { color: rgba(255,255,255,.85); }
.offer .pill { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: var(--gold); }
.offerbox { background: var(--card); border-radius: 28px; max-width: 560px; margin: 0 auto; padding: 26px 22px; text-align: center; }
.offerbox ul { list-style: none; text-align: left; margin-bottom: 6px; }
.offerbox li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
.offerbox li b { white-space: nowrap; color: var(--text); }
.offerbox .total { display: flex; justify-content: space-between; padding: 12px 4px 4px; font-weight: 800; font-size: 19px; }
.offerbox .total s { color: var(--text); }
.offerbox .today { margin: 16px 0 6px; font-weight: 800; color: var(--red); letter-spacing: .08em; text-transform: uppercase; font-size: 15px; }
.offerbox .big { font-family: "Fraunces"; font-weight: 800; font-size: 62px; color: var(--forest-d); line-height: 1; margin-bottom: 16px; }

/* Questions */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 19px; color: var(--forest-d); padding: 18px 34px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 28px; color: var(--gold-d); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--text); }

/* Final */
.final .card { max-width: 720px; margin: 0 auto; padding: 36px 24px; }
.final img { width: 100%; max-width: 420px; margin: 0 auto 18px; }
.final h2 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.final p { color: var(--text); margin-bottom: 20px; }
.final .free-link { margin: 18px 0 0; font-size: 16px; }
.final .free-link a { font-weight: 800; color: var(--forest); cursor: pointer; }

footer { background: var(--forest-d); color: rgba(255,255,255,.8); padding: 34px 0 110px; font-size: 15px; text-align: center; }
footer a { color: #fff; }
footer .brand { justify-content: center; margin-bottom: 10px; }
footer .brand b { color: #fff; }

/* Barre d'achat mobile */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding: 10px 14px; display: none; align-items: center; justify-content: space-between; gap: 12px; }
.buybar .p { line-height: 1.1; }
.buybar .p s { color: var(--text); font-size: 14px; }
.buybar .p b { display: block; font-family: "Fraunces"; font-size: 26px; color: var(--forest-d); }
.buybar .btn { padding: 14px 18px; font-size: 17px; border-radius: 14px; }
body.lock .buybar { display: none !important; }

/* Fenêtres */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
body.lock { overflow: hidden; }

/* Lecteur façon livre */
.reader { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #24452F 0%, #0C1A11 75%); display: flex; flex-direction: column; color: #fff; }
.reader .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.reader .top b { font-family: "Fraunces"; font-size: 19px; display: block; }
.reader .top small { opacity: .75; font-size: 14px; }
.x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.reader .stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 4px 8px; min-height: 0; }
.reader .bookwrap { position: relative; }
.flip-page { background: #fff; overflow: hidden; }
.flip-page img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.flip-page .ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10%; background: rgba(20,48,31,.5); color: #fff; }
.flip-page .ov div { font-size: 52px; }
.flip-page .ov b { font-family: "Fraunces"; font-size: clamp(17px, 4vw, 24px); margin-top: 8px; }
.flip-page.ctapg { background: linear-gradient(180deg, var(--forest-d), var(--forest)); color: #fff; }
.flip-page.ctapg .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8%; }
.flip-page.ctapg img.c { width: 40%; height: auto; border-radius: 4px; box-shadow: 0 10px 22px rgba(0,0,0,.4); margin-bottom: 6%; }
.flip-page.ctapg h3 { color: #fff; font-size: clamp(17px, 4.2vw, 26px); margin-bottom: 4%; }
.flip-page.ctapg p { font-size: clamp(13px, 3vw, 16px); opacity: .9; margin-bottom: 4%; }
.flip-page.ctapg .pr { font-family: "Fraunces"; font-weight: 800; font-size: clamp(28px, 7vw, 44px); color: var(--gold); margin-bottom: 6%; line-height: 1; }
.flip-page.ctapg .pr s { display: block; font-size: .42em; color: rgba(255,255,255,.7); font-family: "Source Sans 3"; margin-bottom: 4px; }
.reader .bottom { padding: 8px 14px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.reader .ctrl { display: flex; align-items: center; gap: 14px; }
.reader .ctrl button { width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; cursor: pointer; }
.reader .ctrl button:disabled { opacity: .3; cursor: default; }
.reader .ctrl span { min-width: 100px; text-align: center; font-weight: 700; }
.reader .hint { font-size: 14px; opacity: .8; }
.reader .bottom .btn { padding: 14px 22px; font-size: 17px; }

/* Formulaire */
.dialog-bg { position: absolute; inset: 0; background: rgba(10,25,15,.72); }
.dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(500px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto; background: #fff; border-radius: 24px; padding: 30px 22px 22px; text-align: center; }
.dialog .x { position: absolute; right: 12px; top: 12px; background: var(--cream); color: var(--forest); }
.dialog .head img { width: 110px; margin: 0 auto 14px; border-radius: 6px; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.dialog .tag { display: inline-block; background: var(--red); color: #fff; font-weight: 800; letter-spacing: .1em; font-size: 13px; padding: 5px 12px; border-radius: 20px; margin-bottom: 8px; }
.dialog h3 { font-size: 26px; margin-bottom: 18px; }
.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font-weight: 800; font-size: 16px; color: var(--forest-d); margin-bottom: 6px; }
.field input, .field select { width: 100%; font: inherit; font-size: 18px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--forest-2); }
.phone { display: grid; grid-template-columns: 128px 1fr; gap: 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); text-align: left; margin: 4px 0 14px; }
.consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--forest); }
.err { color: var(--red); font-weight: 700; font-size: 15px; min-height: 22px; margin-bottom: 6px; }
.note { font-size: 14px; color: var(--text); margin-top: 12px; }
.ok-view .big { font-size: 54px; }
.ok-view h3 { margin: 6px 0 8px; }
.ok-view p { color: var(--text); margin-bottom: 18px; }
.ok-view .up { margin-top: 18px; background: var(--cream); border-radius: 16px; padding: 16px; font-size: 16px; }
.ok-view .up a { font-weight: 800; color: var(--forest); }

/* Pages simples */
.page { max-width: 760px; margin: 0 auto; padding: 46px 18px 80px; }
.page h1 { font-size: 38px; margin-bottom: 18px; }
.page h2 { font-size: 24px; margin: 26px 0 8px; }
.page p { margin-bottom: 10px; color: var(--text); }

/* Téléphones et tablettes */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .books { grid-template-columns: 1fr; }
  .buybar { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  section { padding: 48px 0; }
  .sec-title h2 { font-size: 30px; }
  .sec-title p { font-size: 17px; }
  .hero { padding: 34px 0 44px; }
  .hero h1 { font-size: 35px; }
  .hero .sub { font-size: 18px; }
  .pricebox .now { font-size: 48px; }
  .card { padding: 22px 12px; border-radius: 20px; }
  .ico { width: 56px; height: 56px; font-size: 27px; border-radius: 15px; margin-bottom: 12px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 15px; }
  .freecard h2 { font-size: 27px; }
  .freecard p { font-size: 17px; }
  .freecard img { width: 160px; }
  .book .cover, .book .cover img { width: 190px; }
  .book h3 { font-size: 24px; }
  header.nav .btn { padding: 9px 14px; font-size: 15px; }
  .brand b { font-size: 21px; }
  .offerbox .big { font-size: 52px; }
  .offerbox li { font-size: 16px; }
  .reader .top b { font-size: 16px; }
  .reader .hint { display: none; }
}

/* Zoom d'une page */
.zoom { position: absolute; inset: 0; z-index: 5; background: #0C1A11; overflow: auto; -webkit-overflow-scrolling: touch; }
.zoom .x { position: fixed; right: 14px; top: 14px; z-index: 6; background: var(--gold); color: var(--forest-d); }
.zoom .zin { padding: 70px 10px 30px; }
.zoom .zin img { width: 100%; max-width: 900px; margin: 0 auto 14px; display: block; background: #fff; }
@media (max-width: 600px) { .zoom .zin img { width: 190%; max-width: none; } }
