/* Style « Affiche pop » : contours noirs, aplats vifs, gros titres */
:root {
  --yellow: #FFE14D;
  --pink: #FF3B6B;
  --blue: #2D5BFF;
  --teal: #00C2A8;
  --ink: #111111;
  --paper: #FFFFFF;
  --cream: #FFF8DC;
  --accent: var(--pink);
  --line: 4px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
  --display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --body: "Lexend", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 17px/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(rgba(17,17,17,.08) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; margin: 0 0 .4em; text-wrap: balance; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[data-suzette] svg { width: 100%; height: auto; }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px 56px; outline: none; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.badge, .meta span, .num { font: 700 .75rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- barre du haut ---------- */
.topbar {
  background: var(--paper); border-bottom: var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px max(16px, calc((100% - 1068px) / 2)); margin-bottom: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-avatar { width: 50px; height: 50px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; overflow: hidden; }
.brand-avatar svg { width: 170%; max-width: none; margin: -6% 0 0 -35%; }
.brand-name { font: 1.35rem var(--display); text-transform: uppercase; }
.brand-name b { font-weight: 400; color: var(--pink); }
.brand-logo { width: 50px; height: 50px; flex: none; background: var(--teal); border: 3px solid var(--ink); border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.brand-logo svg { width: 86%; height: 86%; margin-top: 10%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-tag { font: 700 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; font: 700 .8rem var(--mono); text-transform: uppercase; padding: 8px 12px; border: 3px solid transparent; border-radius: 999px; }
.nav a:hover { border-color: var(--ink); }
.nav a.active { background: var(--ink); color: var(--yellow); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  font: 700 1rem var(--body); padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--yellow); border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--accent); transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--accent); }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- accueil ---------- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; border: var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--pop); margin-bottom: 44px; background: var(--yellow); }
.hero > div:first-child { padding: clamp(24px, 4vw, 44px); min-width: 0; }
.badge { display: inline-block; background: var(--pink); color: #fff; padding: 5px 12px; border: 3px solid var(--ink); transform: rotate(-3deg); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); text-transform: uppercase; line-height: .95; }
.hero h1 span { display: inline-block; background: var(--blue); color: #fff; padding: 2px 10px 0; transform: rotate(1.5deg); margin-top: 6px; }
.hero p { font-size: 1.12rem; max-width: 34ch; margin: 18px 0 0; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-side { background: var(--pink); border-left: var(--line); display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.hero-side::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 0 0, transparent 0 14px, rgba(255,255,255,.18) 14px 16px); }
.hero-art { position: relative; width: 100%; max-width: 300px; animation: bob 3.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }

.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); text-transform: uppercase; margin: 0; }
.section-title p { margin: 0; font: 700 .8rem var(--mono); text-transform: uppercase; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--paper); border: var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--pop); text-decoration: none; display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 9px 9px 0 var(--ink); }
.card-cover { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 4.6rem; position: relative; border-bottom: var(--line); overflow: hidden; }
.card-cover::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 100% 100%, transparent 0 12px, rgba(255,255,255,.22) 12px 14px); }
.card-cover > * { position: relative; }
.card-cover .num { position: absolute; top: 12px; left: 12px; background: var(--paper); border: 3px solid var(--ink); padding: 3px 10px; border-radius: 999px; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.3rem; margin: 0; line-height: 1.05; }
.card-body p { margin: 0; font-size: .95rem; flex: 1; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.meta span { border: 2px solid var(--ink); padding: 3px 8px; border-radius: 999px; }
.meta .on { background: var(--teal); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border: var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--pop); }
.value { padding: 22px; border-right: var(--line); }
.value:last-child { border-right: 0; }
.value:nth-child(1) { background: var(--yellow); }
.value:nth-child(2) { background: var(--pink); color: #fff; }
.value:nth-child(3) { background: var(--teal); }
.value .ico { font-size: 2rem; }
.value h3 { font-size: 1.4rem; text-transform: uppercase; margin: 8px 0 6px; }
.value p { margin: 0; }

/* ---------- lecteur d'histoire ---------- */
.reader { max-width: 780px; margin: 0 auto; }
.crumbs { margin: 0 0 14px; }
.crumbs a { font: 700 .8rem var(--mono); text-transform: uppercase; }
.reader-head { border: var(--line); border-radius: 20px; padding: 24px 24px 20px; color: var(--ink); box-shadow: var(--pop); position: relative; overflow: hidden; }
.reader-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(circle at 100% 0, transparent 0 14px, rgba(255,255,255,.22) 14px 16px); }
.reader-head > * { position: relative; }
.reader-head .emoji { font-size: 2.4rem; position: absolute; right: 18px; top: 18px; width: 64px; height: 64px; display: grid; place-items: center; background: var(--paper); border: var(--line); border-radius: 50%; transform: rotate(8deg); }
.reader-head h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); padding-right: 76px; text-transform: uppercase; line-height: .98; }
.reader-head .sub { font: 700 .78rem var(--mono); text-transform: uppercase; margin-bottom: 8px; padding-right: 76px; }
.steps { display: flex; gap: 8px; margin: 18px 0 0; flex-wrap: wrap; }
.steps a { flex: 1; min-width: 56px; text-decoration: none; text-align: center; font: 700 .78rem var(--mono); text-transform: uppercase; background: var(--paper); border: 3px solid var(--ink); padding: 7px 6px; border-radius: 999px; }
.steps a.active { background: var(--ink); color: var(--yellow); }

.page { background: var(--paper); border: var(--line); border-radius: 20px; box-shadow: var(--pop); padding: 28px clamp(20px, 5vw, 44px); margin-top: 22px; }
.page h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.page h2 small { display: table; font: 700 .75rem var(--mono); text-transform: uppercase; letter-spacing: .04em; background: var(--accent); color: var(--ink); border: 3px solid var(--ink); padding: 3px 10px; transform: rotate(-2deg); margin-bottom: 12px; }
.story-text p { font-size: clamp(1.1rem, 2.6vw, 1.28rem); line-height: 1.75; margin: 0 0 1em; }
.story-text p:first-child::first-letter { font-family: var(--display); font-size: 3.1em; float: left; line-height: .85; margin: 6px 10px 0 0; color: var(--ink); background: var(--accent); padding: 6px 8px 2px; border: 3px solid var(--ink); }
.story-text p.speaking { background: var(--yellow); box-shadow: 0 0 0 6px var(--yellow); }
.text-tools { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; flex-wrap: wrap; }
.chip { border: 3px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 6px 12px; font: 700 .75rem var(--mono); text-transform: uppercase; cursor: pointer; color: var(--ink); }
.chip:hover { background: var(--yellow); }
.chip.on { background: var(--ink); color: var(--yellow); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- lecteur audio ---------- */
.player { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; border: var(--line); border-radius: 20px; padding: 14px 18px; margin-top: 18px; box-shadow: 6px 6px 0 var(--accent); }
.player .play { width: 54px; height: 54px; flex: none; border-radius: 50%; border: 3px solid #fff; cursor: pointer; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; }
.player .info { flex: 1; min-width: 0; }
.player .title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .bar { display: flex; align-items: center; gap: 10px; font: 700 .75rem var(--mono); margin-top: 6px; }
.player input[type=range] { flex: 1; accent-color: var(--yellow); min-width: 0; }
.player .speed { background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; padding: 3px 9px; font: 700 .75rem var(--mono); cursor: pointer; }
.player.soon { background: var(--paper); color: var(--ink); border-style: dashed; box-shadow: none; }
.player.soon .play { background: var(--yellow); border-color: var(--ink); cursor: default; }

/* ---------- fin d'histoire ---------- */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { background: var(--cream); border: 3px solid var(--ink); padding: 12px 16px 12px 50px; border-radius: 14px; position: relative; font-size: 1.05rem; }
.facts li::before { content: "💡"; position: absolute; left: 14px; top: 11px; }
.question { background: var(--pink); color: #fff; border: var(--line); border-radius: 16px; padding: 16px 20px; margin-top: 20px; font-size: 1.05rem; }
.question b { font-family: var(--display); font-weight: 400; text-transform: uppercase; }
.spotify-box { margin-top: 22px; }
.spotify-box iframe { width: 100%; border: 0; border-radius: 14px; }
.spotify-soon { display: flex; gap: 12px; align-items: center; background: #1ED760; color: var(--ink); border: var(--line); border-radius: 16px; padding: 14px 18px; font-weight: 700; }
.spotify-soon .logo { width: 34px; height: 34px; flex: none; }
.spotify-soon .logo circle { fill: var(--ink); }

/* ---------- podcast ---------- */
.episode { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; background: var(--paper); border: var(--line); border-radius: 20px; box-shadow: var(--pop); padding: 18px; margin-bottom: 22px; }
.episode > div { min-width: 0; }
.episode .cover { width: 88px; height: 88px; border: var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; }
.episode h3 { font-size: 1.3rem; margin: 0 0 4px; line-height: 1.05; }
.episode p { margin: 0 0 4px; font-size: .95rem; }
.episode p a { font: 700 .78rem var(--mono); text-transform: uppercase; }
.episode .player, .episode .spotify-box { grid-column: 1 / -1; margin-top: 0; }

/* ---------- qui est suzette ---------- */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.about > * { min-width: 0; }
.about .portrait { background: var(--pink); border: var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--pop); }
.about .page { margin-top: 0; }
.about ul { padding-left: 1.2em; }
.about li { margin-bottom: .5em; }

.footer { background: var(--ink); color: var(--yellow); text-align: center; font: 700 .78rem var(--mono); text-transform: uppercase; padding: 22px 16px; }
.footer p { margin: 0; }

/* ---------- téléphone ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; border-bottom: var(--line); grid-row: 1; padding: 18px; }
  .hero-art { max-width: 170px; }
  .values { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: var(--line); }
  .value:last-child { border-bottom: 0; }
  .about { grid-template-columns: 1fr; }
  .about .portrait { max-width: 240px; margin: 0 auto; }
  .brand-name { font-size: 1.15rem; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 7px 8px; font-size: .7rem; }
  .player { padding: 12px; gap: 10px; }
  .player .play { width: 46px; height: 46px; }
  .player .title { white-space: normal; }
  .steps .lbl { display: none; }
  .reader-head .emoji { width: 52px; height: 52px; font-size: 1.9rem; }
  .reader-head h1, .reader-head .sub { padding-right: 60px; }
}
body.big .story-text p { font-size: clamp(1.3rem, 3.2vw, 1.55rem); }
@media (prefers-reduced-motion: reduce) {
  .hero-art { animation: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- illustrations et choix de durée ---------- */
.card-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-cover::before { display: none; }
.illu-big, .illu-inline { border: var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--pop); margin-top: 22px; background: var(--paper); }
.illu-big svg, .illu-inline svg { width: 100%; height: auto; }
.illu-inline { margin: 0 0 22px; box-shadow: none; border-width: 3px; }
.lead { font-size: 1.15rem; margin: 0 0 20px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice {
  display: grid; gap: 4px; text-decoration: none; padding: 20px; border: var(--line); border-radius: 18px;
  background: var(--yellow); box-shadow: var(--pop); transition: transform .12s, box-shadow .12s;
}
.choice:nth-child(2) { background: var(--teal); }
.choice:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.choice .ico { font-size: 2rem; }
.choice b { font: 400 1.4rem var(--display); text-transform: uppercase; line-height: 1; }
.choice .time { font: 700 1.6rem var(--display); }
.choice small { font-size: .9rem; }
.version-bar {
  display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; align-items: center; margin-top: 14px;
  font: 700 .78rem var(--mono); text-transform: uppercase;
}
.version-bar span { background: var(--ink); color: var(--yellow); padding: 4px 12px; border-radius: 999px; }
.episode .player + .player { margin-top: -6px; }
@media (max-width: 760px) { .choices { grid-template-columns: 1fr; } }

.grid + .section-title { margin-top: 48px; }
.card-cover { overflow: hidden; }
.chip.voix { max-width: 220px; text-transform: none; appearance: auto; }
.mots { margin: 22px 0 6px; background: var(--yellow); border: 4px solid var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: var(--pop); }
.mots h3 { margin: 0 0 12px; font: 400 1.3rem "Bowlby One", sans-serif; }
.mots dl { margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mots dl > div { background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.mots dt { font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; }
.mots dd { margin: 2px 0; font-size: .98rem; }
.mots dd span { display: inline-block; font: 700 .68rem var(--mono); text-transform: uppercase; background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 1px 8px; margin-right: 4px; vertical-align: 2px; }
.mots dd.sens { color: #333; font-style: italic; }

/* ---------- Pages statiques (référencement) ---------- */
.meta-histoire { font: 700 .78rem var(--mono); text-transform: uppercase; margin: 0; }
.toutes-histoires { max-width: 1100px; margin: 0 auto 22px; padding: 0 0 20px; border-bottom: 2px solid rgba(255,225,77,.3); text-align: left; text-transform: none; }
.toutes-histoires h2 { font: 400 1.1rem var(--display, "Bowlby One"), sans-serif; color: var(--yellow); text-transform: uppercase; margin: 0 0 6px; }
.toutes-histoires h3 { font: 700 .75rem var(--mono); color: var(--yellow); text-transform: uppercase; margin: 14px 0 6px; opacity: .8; }
.toutes-histoires ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.toutes-histoires a { font: 400 .9rem var(--body); color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.toutes-histoires a:hover { color: var(--yellow); }
