/* iScapeKit : plateforme de précommande.
   Concept : la chaleur d'un terrarium vu à travers la vitre, posé dans une bibliothèque d'archives.
   La recette de la page « QR Vivarium » (vitre, dessins de bestioles, coins ronds, polices rondes)
   habillée de la palette imposée : vert profond, ivoire, beige naturel, ocre, brun. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/fraunces-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/fraunces-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/figtree-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/figtree-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/figtree-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/figtree-latin-700-normal.woff2') format('woff2'); }

:root {
  /* Palette du cahier des charges */
  --forest: #192D2E;        /* vert profond : couleur de référence */
  --forest-2: #2D4C46;      /* reflet dans la vitre */
  --forest-ink: #F4F0E6;
  --forest-muted: #BFCDB9;
  --bg: #F4F0E6;            /* ivoire */
  --surface: #FCF9F2;
  --sand: #EFE5D1;          /* beige naturel clair */
  --beige: #D8C9AE;         /* beige naturel */
  --line: #E1D4BC;
  --ochre: #B28A52;         /* ocre */
  --ochre-ink: #85602A;     /* ocre lisible en petit */
  --ochre-soft: #F6E9D0;
  --amber: #D2A35D;         /* bouton chaud sur fond vert */
  --amber-hover: #DDB16D;
  --ink: #493D32;           /* brun foncé */
  --muted: #72624F;
  --moss: #4E8B3A;
  --moss-soft: #E5EDD7;
  --danger: #A43C2E;

  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --bar-h: 78px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.29 0 0 0 0 0.24 0 0 0 0 0.2 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
img { max-width: 100%; display: block; }
svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

.wrap {
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 700px; }

/* ---------------- En-tête ---------------- */
.masthead {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(244, 240, 230, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; color: var(--forest); }
.brand-mark { width: 40px; height: 34px; flex: none; transition: transform .25s; }
.brand:hover .brand-mark { transform: rotate(-6deg) translateY(-2px); }
.brand img { height: 34px; width: auto; }
.brand-word { font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.brand-word em { font-style: italic; font-weight: 500; color: var(--ochre); }
.cart-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px 5px 6px; border: 0; border-radius: 999px;
  background: var(--forest); color: var(--forest-ink); font-size: 0.9rem; cursor: pointer; white-space: nowrap;
}
.cart-chip svg { width: 28px; height: 28px; background: var(--forest-ink); border-radius: 50%; padding: 2px; }
.cart-chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-chip[data-empty="true"] { background: var(--sand); color: var(--muted); }
.cart-chip[data-empty="true"] svg { background: var(--surface); }

/* ---------------- Étapes ---------------- */
.steps { padding-block: 12px 4px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps ol::before { content: ""; position: absolute; left: 10%; right: 10%; top: 15px; height: 2px; background: var(--line); }
.steps li { min-width: 0; position: relative; }
.steps a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.steps .num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 2px solid var(--beige);
  font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; color: var(--muted);
}
.steps .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.steps .done .num { background: var(--moss); border-color: var(--moss); color: #fff; }
.steps [aria-current="step"] { color: var(--forest); }
.steps [aria-current="step"] .num { background: var(--forest); border-color: var(--forest); color: var(--forest-ink); box-shadow: 0 0 0 4px rgba(25, 45, 46, 0.12); }

/* ---------------- Écrans ---------------- */
main { padding-bottom: calc(var(--bar-h) + 36px + env(safe-area-inset-bottom, 0px)); }
.screen { animation: enter .35s ease both; }
@keyframes enter { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-ink); font-weight: 700;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50% 50% 50% 0; background: var(--ochre); transform: rotate(-45deg); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; color: var(--forest); line-height: 1.08; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.35rem); }
h3 { font-size: 1.45rem; }
.lede { font-size: 1.0625rem; color: var(--muted); max-width: 62ch; margin: 10px 0 0; }
.section { padding-block: 30px; }
.page-head { padding-block: 22px 8px; }
.note { font-size: 0.9rem; color: var(--muted); margin: 14px 0 0; }

/* ---------------- Accueil : la vitre ---------------- */
.screen[data-screen="accueil"] > .wrap:first-child { padding-top: 16px; }
.tank {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; overflow: hidden;
  border-radius: var(--r-lg); color: var(--forest-ink);
  background: radial-gradient(120% 100% at 78% 0%, var(--forest-2), var(--forest) 72%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.06), 0 14px 30px -18px rgba(25, 45, 46, 0.6);
}
.tank::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 54%, rgba(255,255,255,.06) 55%, rgba(255,255,255,.06) 59%, transparent 60%); }
.tank-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding: 28px 22px 4px; }
.kicker { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #E3C08A; }
.tank h1 { color: var(--forest-ink); font-size: clamp(2.2rem, 8.4vw, 3.5rem); line-height: 1.02; }
.tank .lead { margin: 0; font-size: 1.05rem; color: var(--forest-ink); opacity: 0.9; max-width: 46ch; }
.tag { align-self: flex-start; display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 5px 11px; border: 1px solid var(--forest-muted); border-radius: 8px; font-size: 0.84rem; color: var(--forest-muted); }
.tag i { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1rem; color: var(--forest-ink); }
.tank-art { display: block; width: 100%; height: auto; }
.hop { transform-box: fill-box; transform-origin: 50% 100%; animation: hop 4.5s ease-in-out infinite; }
@keyframes hop { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-5px) scaleY(1.02); } 84% { transform: translateY(0) scaleY(.97); } 90% { transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 780px) {
  .tank { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .tank-copy { align-self: center; padding: 40px 8px 40px 38px; }
}
.motto { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--ochre-ink); margin: 22px 0 0; }

.method { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; counter-reset: m; }
@media (min-width: 640px) { .method { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .method { grid-template-columns: repeat(4, 1fr); } }
.method li { counter-increment: m; position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; padding: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); }
.method li::after { content: counter(m); position: absolute; top: 10px; right: 12px; font-family: var(--f-display); font-weight: 700; color: var(--beige); font-size: 1.3rem; }
.method .mi { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--ochre-soft); color: var(--ochre-ink); display: grid; place-items: center; }
.method .mi svg { width: 22px; height: 22px; }
.method b { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--forest); align-self: end; }
.method span:not(.mi) { font-size: 0.92rem; color: var(--muted); }

.audience { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 18px; background: var(--sand); border-radius: var(--r-lg); }
.audience svg { width: 64px; height: 64px; transform: rotate(-6deg); }
.audience h3 { font-size: 1.3rem; }
.audience p { margin: 4px 0 0; color: var(--ink); }

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px;
  border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  font-size: 1rem; font-weight: 700; transition: background .15s, transform .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: var(--forest-ink); }
.btn-primary:hover { background: #22403F; }
.btn-amber { background: var(--amber); color: var(--forest); }
.btn-amber:hover { background: var(--amber-hover); }
.btn-ghost { background: var(--surface); color: var(--forest); border-color: var(--beige); }
.btn-ghost:hover { border-color: var(--forest); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .arrow { font-size: 1.15em; line-height: 0; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.link-btn { background: none; border: 0; padding: 0; color: var(--ochre-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; font-size: 0.9rem; }

/* ---------------- Couvertures ---------------- */
.cover { position: relative; aspect-ratio: 3 / 4; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--sand); box-shadow: 0 10px 18px -12px rgba(73, 61, 50, 0.55), 0 0 0 1px rgba(73, 61, 50, 0.08); }
.cover img, .cover > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-label { position: absolute; left: 7px; right: 7px; bottom: 7px; display: grid; gap: 1px; padding: 7px 9px; border-radius: 9px; background: rgba(252, 249, 242, 0.93); }
.cover-label .vol { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-ink); }
.cover-label .ttl { font-family: var(--f-display); font-weight: 700; color: var(--forest); font-size: 1rem; line-height: 1.1; }
.cover-label .soon { font-size: 0.6875rem; color: var(--muted); }
.cover-chip { position: absolute; left: 6px; right: 6px; bottom: 6px; text-align: center; font-size: 0.625rem; font-weight: 600; color: var(--muted); background: rgba(252, 249, 242, 0.92); padding: 2px 6px; border-radius: 999px; }

/* ---------------- Volumes ---------------- */
.volumes { display: grid; gap: 18px; margin-top: 20px; }
@media (min-width: 700px) { .volumes { grid-template-columns: 1fr 1fr; } }
.vol-card { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: start; padding: 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); }
.vol-card .cover { transform: rotate(-2.5deg); transition: transform .25s; }
.vol-card:nth-child(even) .cover { transform: rotate(2deg); }
.vol-card:hover .cover { transform: rotate(0) translateY(-3px); }
.vol-card .meta { min-width: 0; display: grid; gap: 6px; }
.label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-ink); font-weight: 700; }
.vol-card h3 { font-size: 1.5rem; }
.vol-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.price { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: var(--forest); font-variant-numeric: tabular-nums lining-nums; }
.vol-card .btn { justify-self: start; margin-top: 4px; min-height: 44px; padding: 9px 14px; font-size: 0.9rem; white-space: nowrap; gap: 8px; }
@media (min-width: 960px) { .vol-card { grid-template-columns: 160px 1fr; padding: 20px; } }

.objects { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 700px) { .objects { grid-template-columns: repeat(3, 1fr); } }
.obj { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); }
.obj-art { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.obj-art.plate { border: 5px solid var(--beige); }
.obj-art > svg { width: 100%; height: 100%; display: block; }
.obj-art.icon > svg { width: 64%; height: auto; }
.obj-art img { width: 100%; height: 100%; object-fit: cover; }
.obj h4 { font-size: 1.1rem; line-height: 1.15; }
.obj p { margin: 2px 0 2px; font-size: 0.875rem; color: var(--muted); }
.obj .price { font-size: 1.15rem; }
@media (min-width: 700px) { .obj { grid-template-columns: 1fr; align-items: start; } }

/* ---------------- Fiche volume ---------------- */
.back { display: inline-flex; gap: 6px; align-items: center; font-size: 0.92rem; font-weight: 600; color: var(--muted); text-decoration: none; padding-top: 18px; }
.back:hover { color: var(--forest); }
.dossier-head { display: grid; gap: 22px; padding-block: 20px; }
@media (min-width: 640px) { .dossier-head { grid-template-columns: 220px 1fr; align-items: start; gap: 30px; } }
.dossier-head .cover { width: min(210px, 62%); transform: rotate(-2deg); }
@media (min-width: 640px) { .dossier-head .cover { width: 100%; } }
.dossier-head .meta { display: grid; gap: 10px; min-width: 0; }
.ref { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.contents { margin: 0; padding: 12px 14px; list-style: none; display: grid; gap: 6px; background: var(--sand); border-radius: var(--r); font-size: 0.95rem; }
.contents li { display: flex; gap: 8px; }
.contents li::before { content: "✦"; color: var(--ochre); }

.chapters { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.chapter { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); }
.chapter .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: var(--forest-ink); font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; }
.chapter h4 { font-size: 1.2rem; }
.chapter p { margin: 4px 0 10px; color: var(--muted); font-size: 0.95rem; }
.seal { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: var(--ochre-ink); background: var(--ochre-soft); padding: 4px 10px 4px 4px; border-radius: 999px; }
.seal svg { width: 22px; height: 22px; }
.decor-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; padding: 14px; background: var(--sand); border-radius: var(--r-lg); margin-top: 14px; }
.decor-card p { margin: 4px 0; font-size: 0.92rem; color: var(--ink); }

/* ---------------- Sélection ---------------- */
.vol-block { padding: 16px; margin-top: 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); }
.vol-block-head { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.vol-block-head .cover { width: 46px; border-radius: 7px; transform: rotate(-3deg); }
.vol-block-head h3 { font-size: 1.3rem; }
.options { display: grid; gap: 10px; }
@media (min-width: 760px) { .options { grid-template-columns: repeat(3, 1fr); } }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .card {
  position: relative; display: grid; gap: 4px; height: 100%; padding: 14px 44px 14px 14px; border: 2px solid var(--line); border-radius: var(--r);
  background: var(--bg); transition: border-color .15s, background .15s, transform .15s;
}
.option:hover .card { border-color: var(--beige); }
.option .card::after { content: ""; position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--beige); background: var(--surface); }
.option input:checked + .card { border-color: var(--forest); background: var(--ochre-soft); }
.option input:checked + .card::after { border-color: var(--forest); background: var(--forest) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='%23F4F0E6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 15px no-repeat; }
.option input:focus-visible + .card { outline: 2px solid var(--ochre); outline-offset: 2px; }
.option .icons { display: flex; gap: 2px; margin-bottom: 2px; }
.option .icons svg { width: 34px; height: 34px; }
.option .name { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--forest); line-height: 1.15; }
.option .tag-line { font-size: 0.88rem; color: var(--muted); }
.option .inc { font-size: 0.78rem; color: var(--muted); }
.option .opt-price { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; color: var(--forest); font-variant-numeric: tabular-nums lining-nums; margin-top: 2px; }
.none-choice { margin: 12px 0 0; }

.extras-box { margin-top: 18px; padding: 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); }
.extras { list-style: none; margin: 10px 0 0; padding: 0; }
.extra { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.extra > svg { width: 40px; height: 40px; }
.extra .info { min-width: 0; }
.extra .name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--forest); line-height: 1.15; }
.extra .sub { font-size: 0.82rem; color: var(--muted); }
.extra .incl { display: inline-block; margin-top: 3px; font-size: 0.75rem; font-weight: 600; color: var(--moss); background: var(--moss-soft); padding: 1px 8px; border-radius: 999px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--beige); background: var(--surface); cursor: pointer; font-size: 1.2rem; font-weight: 700; color: var(--forest); line-height: 1; }
.stepper button:hover:not(:disabled) { border-color: var(--forest); }
.stepper button[data-step="1"] { background: var(--forest); border-color: var(--forest); color: var(--forest-ink); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 1.6ch; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.hint { margin: 14px 0 0; padding: 12px 14px; border: 1.5px solid #E6C68E; border-radius: 12px; background: var(--ochre-soft); font-size: 0.92rem; color: var(--ink); }
.hint[data-tone="warn"] { border-color: #E2A398; background: #FBE7E2; }

/* ---------------- Formulaire ---------------- */
.card-box { padding: 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); }
.form { display: grid; gap: 16px; }
#address-block { margin: 0; }
.row2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } .row-cp { grid-template-columns: 9rem 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field .opt { font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--beige); border-radius: var(--r-sm); background: #FFFDF8; font-size: 1.04rem;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(25, 45, 46, 0.14); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF8F6; }
.err { font-size: 0.84rem; font-weight: 500; color: var(--danger); }
.err:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: grid; gap: 8px; }
.radio { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); }
.radio:has(input:checked) { border-color: var(--forest); background: var(--ochre-soft); }
.radio input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--forest); }
.radio b { display: block; font-weight: 700; }
.radio small { display: block; color: var(--muted); font-size: 0.86rem; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--forest); }
.privacy { font-size: 0.86rem; color: var(--muted); background: var(--sand); border-radius: 12px; padding: 0 14px; }
.privacy summary { cursor: pointer; color: var(--ink); font-weight: 600; padding: 11px 0; }
.privacy p { margin: 0 0 12px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- Récapitulatif ---------------- */
.slip { margin-top: 16px; padding: 18px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); position: relative; }
.slip-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; }
.slip-head span:first-child { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--forest); }
.slip-head span:last-child { font-size: 0.75rem; font-weight: 700; color: var(--ochre-ink); background: var(--ochre-soft); padding: 3px 10px; border-radius: 999px; }
.formulas-list { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.formulas-list li { font-size: 0.84rem; background: var(--sand); border-radius: 999px; padding: 3px 10px; }
.formulas-list b { color: var(--forest); }
.table-scroll { overflow-x: auto; }
table.lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
table.lines th { text-align: left; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 6px 4px; border-bottom: 1.5px solid var(--beige); }
table.lines td { padding: 10px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lines .num { text-align: right; white-space: nowrap; }
table.lines td.item b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; color: var(--forest); line-height: 1.2; }
table.lines td.item small { color: var(--muted); font-size: 0.78rem; }
.totals { display: grid; gap: 6px; padding-top: 12px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .ship { font-size: 0.92rem; color: var(--muted); }
.totals .grand { margin-top: 4px; padding-top: 10px; border-top: 1.5px dashed var(--beige); font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; color: var(--forest); }
.who { margin-top: 16px; padding: 16px; display: grid; gap: 3px; font-size: 0.97rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); }
.who-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.who-head h3 { font-size: 1.2rem; }
.notice { margin-top: 16px; padding: 14px 16px; border: 1.5px solid #E6C68E; border-radius: 14px; font-size: 0.93rem; background: var(--ochre-soft); }
.notice b { color: var(--forest); }
.demo-flag { display: inline-block; margin-top: 14px; font-size: 0.78rem; font-weight: 700; color: var(--danger); background: #FBE7E2; padding: 4px 10px; border-radius: 999px; }
.send-error { margin-top: 14px; color: var(--danger); font-weight: 500; }
.send-error:empty { display: none; }

/* ---------------- Confirmation ---------------- */
.receipt { padding-block: 26px; display: grid; gap: 16px; }
.receipt-art { display: flex; align-items: flex-end; gap: 16px; }
.receipt-art > svg { width: 120px; height: 100px; flex: none; }
.stamp { display: grid; gap: 0; padding: 10px 16px; border: 2.5px dashed var(--ochre); border-radius: 14px; transform: rotate(-3deg); background: var(--ochre-soft); font-variant-numeric: tabular-nums; }
.stamp small { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-ink); font-weight: 700; }
.stamp b { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--forest); }
.next { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.next li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); font-size: 0.97rem; }
.next .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--moss); color: #fff; font-family: var(--f-display); font-weight: 700; }

/* ---------------- Barre d'action ---------------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--forest); color: var(--forest-ink);
  border-radius: 20px 20px 0 0; box-shadow: 0 -10px 24px -14px rgba(25, 45, 46, 0.7); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.actionbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; min-height: var(--bar-h); }
.actionbar .sum { flex: 0 0 auto; display: grid; }
.actionbar .sum small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--forest-muted); white-space: nowrap; }
.actionbar .sum b { font-family: var(--f-display); font-weight: 700; font-size: 1.55rem; font-variant-numeric: tabular-nums lining-nums; line-height: 1.1; white-space: nowrap; }
.actionbar .btn { flex: 0 1 auto; min-width: 0; max-width: 62%; padding-inline: 18px; }
.actionbar .btn span.t { white-space: normal; text-align: center; line-height: 1.2; }

footer.foot { margin-top: 34px; }
.maker { display: grid; gap: 16px; align-items: center; padding: 18px; background: var(--forest); color: var(--forest-ink); border-radius: var(--r-lg); }
.maker img { width: 100%; max-width: 340px; height: auto; border-radius: 10px; }
.maker-copy p { margin: 0 0 6px; font-size: 0.95rem; }
.maker-copy b { color: #fff; }
.maker-copy a { color: #E3C08A; font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (min-width: 700px) { .maker { grid-template-columns: 340px 1fr; gap: 26px; padding: 22px; } }
footer.foot .fine { margin: 14px 2px 4px; font-size: 0.8rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .screen, .hop { animation: none; }
  .vol-card .cover, .brand-mark, .btn .arrow { transition: none; }
}
