/* ColorBook Factory — charte « Cahier de coloriage »
   Papier #FFF9EE · encre #1D1D1F · jaune crayon #FFC93C · bleu #4DA8DA · corail #FF6B5B · vert #5BBF7A
   Titres : Baloo 2 · texte : Nunito (auto-hébergées, voir fonts.css) */
@import url("fonts.css");

:root {
  --paper: #FFF9EE;
  --paper-2: #FFF3C4;
  --line: #E7DFCF;
  --ink: #1D1D1F;
  --ink-2: #3A3A3C;
  --ink-3: #5A5A5E;
  --yellow: #FFC93C;
  --sky: #4DA8DA;
  --sky-soft: #DCEFFA;
  --coral: #FF6B5B;
  --coral-ink: #D2453A;
  --green: #5BBF7A;
  --green-soft: #E3F4E8;
  --link: #1F6FA3;
  --danger: #B3261E;
  --radius: 14px;
  --border: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --font-title: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: #174F75; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -0.3px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.highlight { background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%); padding: 0 4px; }
.name { color: var(--coral-ink); }

/* ---- En-tête ---- */
.site-header { padding: 16px 0 8px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-title); font-weight: 800; font-size: 21px; }
.brand svg { flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 20px; font-weight: 700; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; }
.nav .hide-mobile { display: none; }
@media (min-width: 860px) { .nav .hide-mobile { display: inline; } }
.lang-select { font: inherit; font-weight: 700; font-size: 14px; background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; padding: 6px 8px; color: var(--ink); }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  font-family: var(--font-title); font-weight: 800; font-size: 19px; line-height: 1;
  color: var(--ink); background: var(--yellow);
  border: var(--border); border-radius: 14px 12px 16px 12px;
  box-shadow: var(--shadow); text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { color: var(--paper); }
.btn-ghost { background: #fff; box-shadow: none; }
.btn-ghost:hover { box-shadow: none; }
.btn-small { min-height: 44px; font-size: 16px; padding: 0 16px; box-shadow: 3px 3px 0 var(--ink); }
.link-btn { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: inherit; font-weight: 800; color: var(--link); cursor: pointer; text-decoration: underline; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; cursor: pointer; color: var(--ink); }

/* ---- Champs ---- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-weight: 800; font-size: 15px; }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink);
  background: #fff; border: var(--border); border-radius: 12px 16px 12px 14px;
  padding: 12px 14px; min-height: 52px;
}
.textarea { font-size: 16px; font-weight: 600; min-height: 84px; resize: vertical; }
.select { font-size: 16px; }
.input:focus, .textarea:focus, .select:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); }
.hint { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.error { color: var(--danger); font-weight: 800; font-size: 14.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }

/* ---- Pastilles (choix) ---- */
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chip {
  min-height: 46px; font: inherit; font-weight: 800; font-size: 15px; color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; cursor: pointer; padding: 6px 10px;
}
.chip[aria-pressed="true"] { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-wrap .chip { min-height: 40px; font-size: 14px; }

/* ---- Cartes d'univers ---- */
.universes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.universe {
  min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font: inherit; font-weight: 800; font-size: 14px; color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; cursor: pointer; padding: 8px 4px;
}
.universe[aria-pressed="true"] { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.universe.is-custom { border-style: dashed; }
@media (min-width: 700px) { .universes { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---- Cartes ---- */
.card { background: #fff; border: var(--border); border-radius: 16px 12px 18px 12px; padding: 22px; }
.card-yellow { background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); }
.badge { display: inline-block; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 800; padding: 3px 11px; border-radius: 999px; }
.dashed { border: 2.5px dashed var(--ink); border-radius: 14px; padding: 14px 16px; background: #fff; }

/* ---- Pages de livre (visuels) ---- */
.page {
  position: relative; background: #fff; border: var(--border); border-radius: 8px;
  box-shadow: 8px 8px 0 var(--ink); overflow: hidden; aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
}
.page img { width: 100%; height: 100%; object-fit: cover; }
.page .placeholder { padding: 16px; text-align: center; color: var(--ink-3); font-weight: 800; }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(4deg); }

/* ---- Sections landing ---- */
section { scroll-margin-top: 20px; }
.hero { padding: 18px 0 56px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(38px, 7vw, 68px); line-height: .98; letter-spacing: -1px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 520px; }
.hero-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; max-width: 560px; }
.hero-form .field { flex: 1 1 240px; }
.hero-form .btn { flex: 0 0 auto; min-height: 56px; }
.hero-visual { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.book-stack { position: relative; width: min(420px, 100%); aspect-ratio: 1 / 1; }
.book-stack .cover { position: absolute; left: 4%; top: 12%; width: 58%; }
.book-stack .inner { position: absolute; right: 2%; top: 2%; width: 58%; }
.cover-card {
  background: #fff; border: var(--border); border-radius: 6px 14px 10px 6px; box-shadow: 8px 8px 0 var(--ink);
  padding: 16px 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; aspect-ratio: 3 / 4;
}
.cover-card .cover-title { font-family: var(--font-title); font-weight: 800; font-size: clamp(18px, 3vw, 26px); line-height: 1.05; text-align: center; }

.band { border-top: var(--border); border-bottom: var(--border); }
.band-white { background: #fff; }
.band-yellow { background: var(--paper-2); }
.section { padding: 64px 0; }
.wrap.section { padding: 64px 20px; }
.section h2 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 26px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.grid-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.step-num { width: 48px; height: 48px; border-radius: 50%; border: var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 800; font-size: 24px; }
.grid-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; max-width: 860px; margin: 0 auto; }
.price { font-family: var(--font-title); font-weight: 800; font-size: 44px; line-height: 1; }
.occasions { display: flex; flex-wrap: wrap; gap: 10px; }
.occasion { background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 800; }
.lead-2 { font-size: 19px; margin: -10px 0 26px; max-width: 720px; }
.choose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.choose h3 { font-size: 22px; margin: 0; }
.choose p { margin: 0; }
.choose-ico { width: 52px; height: 52px; border-radius: 50%; border: var(--border); display: flex; align-items: center; justify-content: center; }
.ai-note { margin-top: 26px; background: #fff; border: 2.5px solid var(--ink); border-left: 10px solid var(--yellow); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; max-width: 860px; }
.ai-note span { color: var(--ink-2); }
.bil-wrap { display: grid; gap: 34px; align-items: center; }
@media (min-width: 860px) { .bil-wrap { grid-template-columns: 1fr 1.05fr; } }
.bil-text .lead-2 { margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 700; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; border: 2px solid var(--ink); }
.bil-text .btn { align-self: flex-start; }
.bil-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bil-figure img { width: 100%; height: auto; background: #fff; border: var(--border); border-radius: 14px; box-shadow: 8px 8px 0 var(--ink); }
a.occasion { color: var(--ink); text-decoration: none; background: var(--paper-2); }
/* Extrait bilingue dans l'aperçu */
.bil-teaser { background: #fff; border: var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bil-teaser h2 { font-size: 22px; margin: 0; }
.bil-teaser .row { gap: 10px; flex-wrap: wrap; align-items: center; }
.bil-teaser .select { width: auto; flex: 1 1 140px; }
.bil-out { border-left: 5px solid var(--yellow); padding: 4px 0 4px 14px; display: flex; flex-direction: column; gap: 10px; }
.bil-out p { margin: 0; color: var(--link); font-weight: 700; line-height: 1.55; }
.vocab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vocab-chip { background: #FFF3CC; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); padding: 4px 10px; font-weight: 800; font-size: 15px; }
.vocab-chip b { color: var(--link); }
.offer-bil { outline: 4px solid var(--yellow); outline-offset: 3px; border-radius: 12px; }

details.faq { background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; padding: 14px 18px; }
details.faq summary { font-weight: 800; font-size: 17px; cursor: pointer; min-height: 28px; }
details.faq p { margin-top: 10px; color: var(--ink-2); }

.site-footer { background: var(--ink); color: var(--paper); padding: 30px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--paper); }
.site-footer .lang-links { flex-basis: 100%; gap: 6px 14px; font-size: 13px; }
.site-footer .lang-links a { text-decoration: none; opacity: .8; }
.site-footer .lang-links a[aria-current="page"] { opacity: 1; font-weight: 800; text-decoration: underline; }

/* Bandeau « Cette page existe aussi en … » (pages d'accueil, langue préférée du visiteur) */
.lang-banner { background: var(--paper-2); border-bottom: 2.5px solid var(--ink); font-size: 14px; font-weight: 700; }
.lang-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 8px; padding-bottom: 8px; padding-right: 44px; position: relative; }
.lang-banner a { color: var(--ink); font-weight: 800; }
.lang-banner-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; }

/* ---- Parcours /creer ---- */
.flow { max-width: 560px; margin: 0 auto; padding: 8px 20px 40px; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.progress-dots { display: flex; gap: 6px; }
.progress-dots span { width: 34px; height: 8px; border-radius: 4px; background: var(--line); }
.progress-dots span.on { background: var(--ink); }
.screen { display: none; flex-direction: column; gap: 18px; padding-top: 10px; animation: fadein .2s ease; }
.screen.is-active { display: flex; }
.screen h1 { font-size: clamp(28px, 6vw, 36px); }
/* Premier écran : déjà visible dans le HTML, sans fondu (sinon 200 ms de page quasi blanche). */
.flow-creer { padding-bottom: 12px; }
.screen[data-screen="name"] { gap: 10px; padding-top: 0; animation: none; }
.screen[data-screen="name"] h1 { font-size: 23px; line-height: 1.12; letter-spacing: -0.2px; }
.screen[data-screen="name"] .field { gap: 4px; }
.screen[data-screen="name"] .input { min-height: 48px; }
.screen[data-screen="name"] .btn { font-size: 17px; min-height: 48px; padding-left: 12px; padding-right: 12px; }
.name-copy { display: flex; flex-direction: column; gap: 6px; }
.name-lead { font-size: 14.5px; line-height: 1.35; font-weight: 700; color: var(--ink-2); }
.sample-pair { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 2px 0 0; min-height: 176px; }
.sample-pair img {
  width: auto; max-width: 46%; background: #fff; border: 2.5px solid var(--ink);
  object-fit: cover; box-shadow: 3px 3px 0 var(--ink);
}
.sample-pair img.sample-cover { height: 176px; border-radius: 5px 10px 8px 5px; transform: rotate(-2.5deg); }
.sample-pair img.sample-page { height: 160px; border-radius: 6px; transform: rotate(2deg); }
/* Écran 2 : univers, âge, accord, puis le bouton — héros et valeur repliés pour tenir au-dessus du bandeau. */
.screen[data-screen="world"] { gap: 12px; padding-top: 2px; }
.screen[data-screen="world"] h1 { font-size: 26px; }
.screen[data-screen="world"] .field { gap: 4px; }
.screen[data-screen="world"] .universe { min-height: 72px; gap: 2px; padding: 5px 3px; }
.screen[data-screen="world"] .universe svg { width: 28px; height: 28px; }
.screen[data-screen="world"] .chip { min-height: 40px; font-size: 14px; padding: 4px 8px; }
details.more { background: #fff; border: 2.5px dashed var(--ink); border-radius: 12px; padding: 8px 12px; }
details.more summary { font-weight: 800; font-size: 15px; cursor: pointer; }
details.more .more-body { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
@media (max-height: 800px) {
  .sample-pair img.sample-cover { height: 128px; }
  .sample-pair img.sample-page { height: 116px; }
  .sample-pair { min-height: 128px; }
  .screen[data-screen="name"] h1 { font-size: 21px; }
  .screen[data-screen="world"] .universe { min-height: 64px; }
}
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.preview-page { width: min(330px, 86%); align-self: center; }
.wm-note { text-align: center; font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.incipit { font-style: italic; color: #2C2C2E; line-height: 1.55; }
/* Écran Formule : la page tient dans l'écran, bandeau de langue compris.
   Continuer reste visible, au-dessus du bandeau cookies, sans le recouvrir.
   Le corps défile seulement si le texte (autre langue, long prénom) dépasse. */
body:has(main.flow-creer .screen[data-screen="offer"].is-active) {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body:has(main.flow-creer .screen[data-screen="offer"].is-active) > .lang-banner { flex: 0 0 auto; }
main.flow-creer:has(.screen[data-screen="offer"].is-active) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 6px;
  padding-bottom: 8px;
  box-sizing: border-box;
}
main.flow-creer:has(.screen[data-screen="offer"].is-active) > .flow-top { flex: 0 0 auto; }
main.flow-creer:has(.screen[data-screen="offer"].is-active) > .screen[data-screen="offer"] {
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
  padding-top: 0;
  animation: none;
}
main.flow-creer:has(.screen[data-screen="offer"].is-active) > #cbf-consent {
  flex: 0 0 auto;
  margin: 8px 0 0 !important;
}
.screen[data-screen="offer"] h1 { font-size: 22px; line-height: 1.12; }
.offer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 4px 2px 0;
}
.screen[data-screen="offer"] .offers { gap: 10px; }
.screen[data-screen="offer"] .field { gap: 3px; }
.screen[data-screen="offer"] .field > label { font-size: 13.5px; }
.screen[data-screen="offer"] .input,
.screen[data-screen="offer"] .select { min-height: 42px; padding: 6px 10px; font-size: 16px; }
.screen[data-screen="offer"] .check { font-size: 12.5px; line-height: 1.3; gap: 8px; }
.screen[data-screen="offer"] .check input { width: 20px; height: 20px; }
.offer-cta { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; background: var(--paper); }
.screen[data-screen="offer"] .offer-cta .btn { min-height: 48px; font-size: 18px; }
.offer { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: var(--border); border-radius: 16px 12px 16px 14px; cursor: pointer; position: relative; }
.offer input { width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.offer.is-selected { background: var(--yellow); box-shadow: var(--shadow); }
.offer .offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.offer .offer-name { font-family: var(--font-title); font-weight: 800; font-size: 22px; }
.offer .offer-price { font-family: var(--font-title); font-weight: 800; font-size: 24px; }
.offer .badge { position: absolute; top: -12px; right: 14px; }
.screen[data-screen="offer"] .offer { gap: 8px; padding: 8px 10px; }
.screen[data-screen="offer"] .offer input { width: 18px; height: 18px; margin-top: 2px; }
.screen[data-screen="offer"] .offer .offer-name { font-size: 18px; }
.screen[data-screen="offer"] .offer .offer-price { font-size: 20px; }
.screen[data-screen="offer"] .offer-desc { font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.screen[data-screen="offer"] .offer .small { font-size: 12.5px; line-height: 1.25; }
.screen[data-screen="offer"] .offer .badge { top: -9px; font-size: 11px; padding: 1px 8px; }
.screen[data-screen="offer"] .options > * { padding: 7px 10px; }
.options { background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; }
.options > * { padding: 12px 14px; }
.options > * + * { border-top: 2px solid var(--line); }
.summary { display: flex; gap: 14px; align-items: center; padding: 12px; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; }
.summary .mini { width: 56px; height: 72px; flex-shrink: 0; border: 2.5px solid var(--ink); border-radius: 4px 8px 6px 4px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 800; font-size: 12px; text-align: center; line-height: 1.05; padding: 3px; overflow: hidden; }
#payment-element { min-height: 180px; }
.notice { padding: 14px 16px; border-radius: 12px; border: 2.5px solid var(--ink); background: #fff; font-weight: 700; }
.notice-error { border-color: var(--danger); color: var(--danger); }

/* Crayon qui dessine (attente) */
.drawing { align-self: center; width: 180px; height: 180px; }
.drawing .stroke { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s ease-in-out infinite; }
.drawing .pencil { animation: wiggle 1.2s ease-in-out infinite; transform-origin: 70% 30%; }
@keyframes draw { 0% { stroke-dashoffset: 600; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .drawing .stroke, .drawing .pencil, .screen { animation: none; stroke-dashoffset: 0; } }

/* Suivi */
.pages-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mini-page { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 2.5px dashed #C9BFAE; }
.mini-page.done { background: #fff; border: 2.5px solid var(--ink); }
.mini-page.current { background: var(--paper-2); border: 2.5px solid var(--ink); }
.mini-page .n { position: absolute; bottom: 4px; right: 6px; font-size: 11px; font-weight: 800; color: var(--ink-3); }
.bar { height: 14px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--yellow); border-right: 2.5px solid var(--ink); transition: width .6s ease; }

/* Pages légales */
.legal { max-width: 820px; margin: 0 auto; padding: 24px 20px 64px; }
.legal h1 { font-size: clamp(32px, 6vw, 46px); margin-bottom: 18px; }
.legal h2 { font-size: 26px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal section { background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 18px 22px; margin-top: 18px; }

/* Bandeau cookies (styles inline dans consent.js pour fonctionner partout) */
