/* Avent-ure, édition test : même identité que le prototype (kraft, sapin, tampon rouge) */
:root {
  --bg: #fbf9f5;
  --kraft: #c8ab7f;
  --kraft-deep: #b39467;
  --paper: #f7f1e5;
  --ink: #2b221a;
  --muted: #6d5c47;
  --fir: #1f4a3b;
  --stamp: #ad2f27;
  --gold: #b8862b;
  --line: #e2d8c6;
  --soft: #f2ebdf;
  --field: #ffffff;
  --f-display: "Caprasimo", "Cooper Black", Georgia, serif;
  --f-body: "Literata", Georgia, "Times New Roman", serif;
  --f-hand: "Kalam", "Comic Sans MS", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141c18; --paper: #22312a; --ink: #ece4d4; --muted: #a79e8b; --fir: #8cc3aa; --stamp: #e8776b;
    --gold: #d9ad55; --line: #2f3d36; --soft: #1c2621; --field: #1a2420; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
.in { max-width: 1000px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--fir); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

/* Bandeau kraft : couleur fixe dans les deux thèmes, textes fixes */
.band { background: var(--kraft); color: #2b221a; padding-block: 22px 46px; }
.band .eyebrow { color: #4f4030; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 26px; }
.logo { font-family: var(--f-display); font-size: 26px; color: #ad2f27; text-decoration: none; white-space: nowrap; }
.nav .links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.nav .links a { color: #2b221a; text-decoration: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); color: #2b221a; }
.hero h1 em { font-style: normal; color: #ad2f27; }
.hero .lead { font-size: 19px; margin-top: 16px; max-width: 30em; }
.badge { display: inline-block; font-family: var(--f-display); color: #ad2f27; border: 2.5px solid #ad2f27; padding: 2px 12px; border-radius: 4px; transform: rotate(-2deg); margin-bottom: 16px; font-size: 17px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font: 600 16px var(--f-body); text-decoration: none; border: 1.5px solid #2b221a; color: #2b221a; background: transparent; cursor: pointer; }
.btn.main { background: #1f4a3b; border-color: #1f4a3b; color: #f7f1e5; }
.btn.main:hover { background: #173a2e; }
.btn:disabled { opacity: .5; cursor: wait; }
.section .btn { border-color: var(--ink); color: var(--ink); }
.section .btn.main { background: var(--fir); border-color: var(--fir); color: var(--bg); }

/* Mini calendrier décoratif */
.mini { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; background: var(--kraft-deep); padding: 10px; border-radius: 8px; transform: rotate(1.2deg); box-shadow: 0 10px 24px rgba(43,34,26,.25); }
.mini span { aspect-ratio: 1; background: #f7f1e5; border-radius: 3px; display: flex; align-items: flex-start; padding: 5px 7px; font-family: var(--f-display); color: #ad2f27; font-size: clamp(14px, 2vw, 21px); position: relative; overflow: hidden; }
.mini span.open { background: #dde5d9; color: #1f4a3b; }
.mini span.open::after { content: attr(data-s); position: absolute; right: 5px; bottom: 2px; font-family: var(--f-hand); font-size: clamp(10px, 1.3vw, 13px); color: #1f4a3b; transform: rotate(-6deg); }
.mini span.big { grid-column: span 2; grid-row: span 2; font-size: clamp(30px, 5vw, 52px); }
.mini span.w { grid-column: span 2; aspect-ratio: auto; }
.mini { grid-auto-flow: dense; }

/* Sections */
.section { padding-block: 56px 0; }
.section > .in > h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 6px; }
.section .intro { max-width: 40em; margin-top: 12px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 26px; counter-reset: s; }
.steps div { border-top: 2px solid var(--ink); padding-top: 14px; position: relative; }
.steps div::before { counter-increment: s; content: counter(s); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--stamp); color: #fff; font-family: var(--f-display); font-size: 15px; display: grid; place-items: center; }
.steps b { display: block; margin-top: 8px; }
.steps span { display: block; color: var(--muted); font-size: 15.5px; margin-top: 4px; line-height: 1.5; }

/* Extrait : une double page de livre */
.spread { display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; box-shadow: 0 8px 22px rgba(43,34,26,.22); border-radius: 3px; overflow: hidden; max-width: 820px; }
.pg { background: #fbf8f2; color: #2b221a; padding: 34px 32px 40px; min-width: 0; position: relative; }
.pg + .pg { border-left: 1px solid #e4dccd; display: grid; place-items: center; text-align: center; gap: 10px; }
.pg .ch { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #ad2f27; font-weight: 600; }
.pg h3 { font-size: 26px; margin-top: 6px; }
.pg p { margin-top: 12px; font-size: 16px; line-height: 1.55; }
.pg .after { font-style: italic; }
.pg .hand { font-family: var(--f-hand); color: #1f4a3b; }
.pg .cap { font-size: 13px; color: #7a6a55; font-style: italic; }
.pg svg { width: 72%; max-width: 260px; height: auto; background: #fff; border: 10px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.15); transform: rotate(-1.5deg); }
.below { font-size: 15px; color: var(--muted); margin-top: 12px; max-width: 46em; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; }
.card { background: var(--soft); border-radius: 6px; padding: 22px; min-width: 0; }
.card h3 { font-size: 24px; }
.card ul { margin: 10px 0 0; padding-left: 1.1em; }
.card li + li { margin-top: 5px; }

/* Formules */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.offer { border: 1.5px solid var(--line); border-radius: 8px; padding: 22px; display: grid; gap: 8px; align-content: start; background: var(--bg); }
.offer.star { border-color: var(--fir); box-shadow: 0 0 0 1.5px var(--fir); }
.offer h3 { font-size: 23px; }
.offer .price { font-family: var(--f-display); font-size: 40px; color: var(--stamp); line-height: 1; font-variant-numeric: tabular-nums; }
.offer .price small { font-family: var(--f-body); font-size: 15px; color: var(--muted); }
.offer ul { margin: 4px 0 0; padding-left: 1.1em; font-size: 15.5px; }
.offer .tag { justify-self: start; font-size: 12px; font-weight: 600; color: var(--fir); border: 1px solid var(--fir); border-radius: 999px; padding: 1px 9px; }

.dates { margin-top: 22px; display: grid; gap: 0; max-width: 760px; }
.dates div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.dates b { font-family: var(--f-display); font-weight: 400; color: var(--stamp); }

/* Formulaires */
.formwrap { background: var(--paper); border-radius: 8px; padding: clamp(20px, 4vw, 36px); margin-top: 26px; box-shadow: 0 2px 10px rgba(43,34,26,.08); }
form { display: grid; gap: 18px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
label, legend { font-weight: 600; font-size: 15.5px; }
label > span.opt, legend > span.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.hintline { font-size: 14px; color: var(--muted); font-weight: 400; display: block; margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; margin-top: 6px; font: 16px var(--f-body); color: var(--ink); background: var(--field);
  border: 1.5px solid var(--line); border-radius: 6px; padding: 10px 12px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.radios { display: grid; gap: 8px; margin-top: 8px; }
.radios.row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.radios label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; background: var(--field); }
.radios label:has(input:checked) { border-color: var(--fir); box-shadow: 0 0 0 1px var(--fir); }
.radios input { margin-top: 5px; accent-color: var(--fir); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { margin-top: 5px; accent-color: var(--fir); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }
.status { font-size: 16px; min-height: 1.5em; }
.status.ok { color: var(--fir); font-weight: 600; }
.status.no { color: var(--stamp); }
.success { text-align: center; display: grid; gap: 12px; justify-items: center; padding-block: 20px; }
.success h3 { font-size: 30px; color: var(--fir); }
.success p { max-width: 32em; }
.part { border-top: 1px dashed var(--line); padding-top: 18px; display: grid; gap: 16px; }
.part h3 { font-size: 22px; }

/* FAQ */
.faq { margin-top: 22px; display: grid; gap: 10px; max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 8px 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin-top: 8px; color: var(--ink); }

footer { margin-top: 64px; padding-block: 26px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 820px) {
  .hero, .two, .grid2 { grid-template-columns: 1fr; }
  .steps, .offers { grid-template-columns: 1fr 1fr; }
  .spread { grid-template-columns: 1fr; }
  .pg + .pg { border-left: 0; border-top: 1px solid #e4dccd; }
}
@media (max-width: 520px) {
  .steps, .offers { grid-template-columns: 1fr; }
  .dates div { grid-template-columns: 1fr; gap: 2px; }
  .nav .links { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
