/* Cœur de Renard : l'identité visuelle.
   Base : crème, brun chocolat, rouge coquelicot. Accents : bleu clair, jaune clair, orange clair.
   Style « sticker » : contours bruns, ombres décalées, lettres rondes et grasses (Fredoka). */
:root {
  --creme: #FFF5E8; --creme-2: #FCE8D2; --papier: #FFFCF7;
  --brun: #4B2E20; --brun-2: #7C5743; --brun-3: #A9876F;
  --rouge: #E8423F; --rouge-2: #C22F2D; --rose: #FFD9D3;
  --roux: #E07A3F;
  --bleu: #C4E5F6; --bleu-2: #7FC4E8;
  --jaune: #FFE8A0; --jaune-2: #FFCF4D;
  --orange: #FFD0A6; --orange-2: #FFB070;
  --accent: var(--orange-2); --accent-soft: var(--orange);
  --line: 2.5px solid var(--brun);
  --shadow: 4px 4px 0 var(--brun);
  --shadow-s: 3px 3px 0 var(--brun);
  --round: "Fredoka", "Nunito", system-ui, sans-serif;
}
[data-theme="hiver"] { --accent: var(--bleu-2); --accent-soft: var(--bleu); }
[data-theme="coeur"] { --accent: var(--rouge); --accent-soft: var(--rose); }
[data-theme="ete"] { --accent: var(--jaune-2); --accent-soft: var(--jaune); }
[data-theme="fete"] { --accent: var(--orange-2); --accent-soft: var(--orange); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; font-weight: 600;
  color: var(--brun); background-color: var(--creme);
  background-image: radial-gradient(circle at 1px 1px, rgba(75,46,32,.07) 1.2px, transparent 1.6px);
  background-size: 22px 22px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
h1, h2, h3, .case-title { font-family: var(--round); font-weight: 700; line-height: 1.04; letter-spacing: -.015em; margin: 0 0 .4em; }
.mark { background: linear-gradient(transparent 58%, var(--accent-soft) 58% 92%, transparent 92%); padding: 0 .08em; border-radius: 4px; }
a { color: inherit; }
p { margin: 0 0 .8em; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--brun-2); }
.soft { color: var(--brun-3); }
.small { font-size: .88rem; }
.center { text-align: center; }
.fine { font-size: .82rem; color: var(--brun-3); margin: .6em 0; font-weight: 600; }
.warn { color: #c2410c; }
.danger { color: var(--rouge-2) !important; }
.wide { width: 100%; }
.svgi { display: inline-grid; place-items: center; }
.svgi svg { width: 100%; height: 100%; display: block; }
.fx-canvas, .confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
.fx-canvas { z-index: 0; }
.confetti { z-index: 100; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; cursor: pointer; text-decoration: none;
  padding: .85em 1.35em; border-radius: 999px; border: var(--line); font-family: var(--round); font-weight: 600; font-size: 1.05rem; line-height: 1.1;
  box-shadow: var(--shadow-s); transition: transform .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--brun); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--brun); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-main { background: var(--rouge); color: var(--papier); }
.btn-soft { background: var(--papier); color: var(--brun); }
.btn-big { font-size: 1.2rem; padding: 1em 1.8em; }
.btn-sm { font-size: .9rem; padding: .55em 1em; box-shadow: 2px 2px 0 var(--brun); }
.btn small { font-family: "Nunito", sans-serif; font-weight: 800; font-size: .78rem; opacity: .9; }
.link { background: none; border: 0; padding: .4em 0; color: var(--brun-2); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; font-weight: 800; font-size: .92rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: var(--line); background: var(--papier); cursor: pointer; font-size: 1.1rem; display: inline-grid; place-items: center; flex: none; box-shadow: 2px 2px 0 var(--brun); }
.sticker-chip { display: inline-block; padding: .4em 1em; border-radius: 999px; border: 2px solid var(--brun); background: var(--jaune); font-weight: 800; font-size: .86rem; box-shadow: 2px 2px 0 var(--brun); transform: rotate(-1.5deg); }
.shake { animation: shake .45s; }
@keyframes shake { 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }

/* Logo */
.topbar { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; max-width: 1140px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; }
.logo-mark { width: 44px; height: 44px; flex: none; transition: transform .3s; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-txt { display: grid; }
.logo-name { font-family: var(--round); font-weight: 700; font-size: 1.32rem; line-height: 1; letter-spacing: -.01em; }
.logo-name b { color: var(--rouge); font-weight: 700; }
.wave { width: 100%; height: 9px; display: block; margin-top: 2px; }

/* Accueil */
.hero { position: relative; z-index: 1; padding: 6px 18px 60px; }
.hero-in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; }
.hero-in > *, .split > * { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 10.5vw, 4.6rem); margin: .4em 0 .3em; }
.lead { font-size: 1.1rem; color: var(--brun-2); max-width: 33em; font-weight: 600; }
.occs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 10px; margin: 18px -18px 4px; padding-left: 18px; scrollbar-width: none; }
.occs::-webkit-scrollbar { display: none; }
.occ { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--brun); background: var(--papier); cursor: pointer; font-weight: 800; font-size: .92rem; box-shadow: 2px 2px 0 var(--brun); transition: transform .12s; }
.occ.on { background: var(--accent-soft); transform: translateY(-2px); box-shadow: 3px 3px 0 var(--brun); }
.namebox { display: flex; align-items: center; gap: 8px; background: var(--papier); border: var(--line); border-radius: 26px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow); margin: 14px 0 8px; max-width: 560px; flex-wrap: wrap; }
.namebox label { font-family: var(--round); font-weight: 600; color: var(--brun-2); font-size: 1.1rem; }
.namebox input { flex: 1 1 140px; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 1.4rem var(--round); color: var(--brun); padding: 10px 4px; }
.namebox input::placeholder { color: var(--brun-3); opacity: .7; }
.namebox .btn { flex: 1 1 auto; }
.count { color: var(--brun-2); font-size: .92rem; min-height: 1.2em; }
.resume { display: grid; gap: 4px; margin: 10px 0; padding: 12px 16px; border-radius: 18px; background: var(--papier); border: 2px dashed var(--brun-3); max-width: 560px; }
.resume a { font-weight: 800; color: var(--rouge-2); text-decoration: none; }
.hero-art { position: relative; height: 360px; max-width: 420px; width: 100%; margin: 0 auto; }
.hero-art .sky { position: absolute; inset: 0 0 18% 0; border-radius: 40px; border: var(--line); background: linear-gradient(180deg, var(--bleu) 0%, #E3F3FB 60%, var(--creme-2) 100%); box-shadow: var(--shadow); overflow: hidden; }
.sky .moon { position: absolute; right: 22px; top: 18px; width: 54px; height: 54px; transform: rotate(-12deg); }
.sky .dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--papier); box-shadow: 0 0 0 2px var(--brun); }
.sky .d1 { left: 18%; top: 20%; } .sky .d2 { left: 42%; top: 12%; } .sky .d3 { left: 64%; top: 30%; }
.fox-hero { position: absolute; left: 50%; bottom: 0; width: 250px; transform: translateX(-50%); }
.float { position: absolute; width: 54px; height: 54px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(2px 2px 0 rgba(75,46,32,.25)); }
.float svg { width: 100%; height: 100%; }
.f1 { left: 2%; top: 46%; animation-delay: .2s; } .f2 { right: 4%; top: 52%; animation-delay: .9s; } .f3 { left: 14%; top: 10%; animation-delay: 1.4s; width: 40px; height: 40px; } .f4 { right: 22%; top: 26%; animation-delay: .5s; width: 46px; height: 46px; }
@keyframes bob { 50% { transform: translateY(-9px) rotate(-4deg); } }

.sec { position: relative; z-index: 1; padding: 56px 18px; }
.sec-in { max-width: 1060px; margin: 0 auto; }
.sec-in.narrow { max-width: 720px; }
.sec h2 { font-size: clamp(2rem, 7.5vw, 3rem); text-align: center; }
.sec-lead { text-align: center; color: var(--brun-2); max-width: 34em; margin: 0 auto 26px; }
.sec-lead.left { text-align: left; margin-left: 0; }
.sec-blue, .sec-yellow, .sec-orange { margin: 0 10px; border-radius: 40px; border: var(--line); box-shadow: var(--shadow); }
.sec-blue { background: var(--bleu); } .sec-yellow { background: var(--jaune); } .sec-orange { background: var(--orange); }
.ocards, .kcards { display: grid; gap: 12px; }
.ocard, .kcard { position: relative; text-align: left; display: grid; align-content: start; gap: 4px; padding: 18px; border-radius: 24px; border: var(--line); background: var(--papier); box-shadow: var(--shadow-s); cursor: pointer; transition: transform .15s; }
.ocard:hover, .kcard:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: var(--shadow); }
.ocard b, .kcard b { font-family: var(--round); font-weight: 600; font-size: 1.22rem; line-height: 1.15; }
.ocard span:last-child, .kcard span:last-child { color: var(--brun-2); font-size: .93rem; }
.oc-ico, .kc-ico { font-size: 1.9rem; }
.kc-new { position: absolute; right: 12px; top: -11px; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--brun); background: var(--rouge); color: var(--papier); font-family: var(--round); font-size: .8rem; transform: rotate(4deg); }
.ocard.c0 { background: var(--papier); } .ocard.c1 { background: var(--creme-2); } .ocard.c2 { background: #FFF5D6; } .ocard.c3 { background: #FFEBDC; }
.steps { display: grid; gap: 14px; margin-top: 26px; }
.step { display: grid; gap: 4px; padding: 20px; border-radius: 26px; border: var(--line); background: var(--papier); box-shadow: var(--shadow-s); }
.step b { font-family: var(--round); font-weight: 600; font-size: 1.25rem; }
.step span:last-child { color: var(--brun-2); }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1.3rem var(--round); background: var(--rouge); color: var(--papier); border: var(--line); margin-bottom: 6px; }
.split { display: grid; gap: 26px; align-items: center; }
.split h2 { text-align: left; }
.collab-art { position: relative; height: 230px; }
.mini-case { position: absolute; width: 150px; padding: 16px; border-radius: 24px; border: var(--line); box-shadow: var(--shadow); display: grid; gap: 2px; }
.mini-case b { font: 700 2.6rem var(--round); line-height: 1; }
.mini-case span { font-weight: 800; font-size: .86rem; }
.mini-case.c0 { left: 4%; top: 10px; background: var(--bleu); transform: rotate(-5deg); }
.mini-case.c1 { left: 34%; top: 70px; background: var(--jaune); transform: rotate(3deg); z-index: 2; }
.mini-case.c2 { right: 4%; top: 6px; background: var(--orange); transform: rotate(-2deg); }
.price-card { max-width: 440px; margin: 0 auto; text-align: center; background: var(--papier); border: var(--line); border-radius: 32px; padding: 30px 24px; box-shadow: var(--shadow); }
.price-kicker { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--brun-2); }
.price { font: 700 4rem var(--round); margin: 0 0 6px; color: var(--rouge); line-height: 1; }
.price-card ul { text-align: left; padding: 0; list-style: none; margin: 0 0 22px; display: grid; gap: 8px; }
.price-card li::before { content: "♥"; color: var(--rouge); margin-right: 10px; }
details { background: var(--papier); border: var(--line); border-radius: 20px; padding: 2px 18px; margin: 10px 0; box-shadow: var(--shadow-s); }
summary { cursor: pointer; font-family: var(--round); font-weight: 600; font-size: 1.1rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .2s; color: var(--rouge); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--brun-2); }
.sec-final .fox-final { width: 190px; margin: 0 auto 10px; display: block; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--creme) 35%); transform: translateY(110%); transition: transform .3s; display: flex; justify-content: center; }
.dock.on { transform: none; }
.dock .btn { width: 100%; max-width: 460px; }
.foot { position: relative; z-index: 1; padding: 34px 18px 120px; color: var(--brun-2); font-size: .92rem; border-top: var(--line); background: var(--creme-2); margin-top: 30px; }
.foot-in { max-width: 1060px; margin: 0 auto; display: grid; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav a { color: var(--brun-2); font-weight: 800; }
.foot-sign .island-art { width: 140px; height: auto; opacity: .9; }
.lost .island-art { width: min(320px, 90%); margin: 10px auto 18px; display: block; }

/* Le renard */
.fox { overflow: visible; }
.fox .fx-tail { transform-box: fill-box; transform-origin: 4% 96%; animation: wag 1.1s ease-in-out infinite alternate; }
@keyframes wag { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }
.fox .fx-head { transform-box: fill-box; transform-origin: 50% 100%; animation: tilt 4.5s ease-in-out infinite; }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-5deg); } 60% { transform: rotate(3deg); } }
.fox .fx-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.8s infinite; }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.12); } }
.fox .fx-letter { transform-box: fill-box; transform-origin: center; animation: hold 2.2s ease-in-out infinite alternate; }
@keyframes hold { to { transform: translateY(-5px) rotate(-2deg); } }
.fox .fx-seal { transform-box: fill-box; transform-origin: center; animation: beat 1.1s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.fox .fx-happy { transition: opacity .3s; }
.fox .fx-eyes { transition: opacity .3s; }

/* Cases-stickers */
.grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 12px; max-width: 560px; margin: 0 auto; }
.tile {
  position: relative; aspect-ratio: 1; border: var(--line); border-radius: 22px; padding: 0; cursor: pointer; box-shadow: var(--shadow-s); overflow: visible;
  transform: rotate(var(--tilt, 0deg)); animation: pop .5s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--i, 0) * 25ms); transition: transform .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.8) rotate(var(--tilt, 0deg)); } }
.tile:hover { transform: translate(-2px, -2px) rotate(calc(var(--tilt, 0deg) * -1)); box-shadow: var(--shadow); }
.tile:active { transform: translate(2px, 2px) scale(.96); box-shadow: 0 0 0 var(--brun); }
.bg-bleu { background: var(--bleu); } .bg-jaune { background: var(--jaune); } .bg-orange { background: var(--orange); } .bg-rose { background: var(--rose); } .bg-creme { background: var(--papier); } .bg-rouge { background: var(--rouge); }
.tile-ico { position: absolute; right: 7%; top: 7%; width: 40%; height: 40%; transform: rotate(8deg); }
.tile-num { position: absolute; left: 10%; bottom: 14%; font: 700 clamp(1.5rem, 7.5vw, 2.1rem) var(--round); line-height: 1; }
.tile-date { position: absolute; left: 0; right: 0; bottom: -1.8em; font-size: .68rem; font-weight: 900; color: var(--brun-2); text-align: center; white-space: nowrap; }
.tile.is-final { background: var(--rouge); }
.tile.is-final .tile-num { color: var(--papier); }
.tile.is-final .tile-ico { width: 46%; height: 46%; }
.tile.is-locked { background: repeating-linear-gradient(-45deg, var(--papier) 0 8px, var(--creme-2) 8px 16px); box-shadow: 2px 2px 0 var(--brun-3); border-color: var(--brun-3); }
.tile.is-locked .tile-num { color: var(--brun-3); }
.tile.is-locked .tile-ico { width: 36%; height: 36%; opacity: .85; }
.tile.is-today { border-color: var(--rouge); box-shadow: 0 0 0 4px var(--jaune-2), var(--shadow); animation: pop .5s both, wiggle 2.6s 1s ease-in-out infinite; }
@keyframes wiggle { 0%, 82%, 100% { transform: rotate(var(--tilt, 0deg)); } 86% { transform: rotate(-6deg); } 90% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }
.tile-flag { position: absolute; left: 50%; top: -14px; transform: translateX(-50%) rotate(-4deg); z-index: 3; white-space: nowrap; font: 600 .74rem var(--round); background: var(--rouge); color: var(--papier); padding: 2px 9px; border-radius: 999px; border: 2px solid var(--brun); }
.tile.is-opened { filter: saturate(.75); }
.tile-stamp { position: absolute; left: -8px; top: -9px; z-index: 3; min-width: 30px; height: 30px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--papier); border: 2px solid var(--brun); font-weight: 900; font-size: .85rem; color: var(--rouge-2); transform: rotate(-8deg); }

/* Fenêtres */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(75,46,32,.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s; }
.modal-box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: var(--papier); border: var(--line); border-radius: 30px; padding: 24px 20px 20px; box-shadow: 6px 6px 0 var(--brun); transform: translateY(26px) scale(.94); opacity: 0; transition: transform .32s cubic-bezier(.2,1.3,.4,1), opacity .2s; }
.modal.in .modal-bg { opacity: 1; }
.modal.in .modal-box { transform: none; opacity: 1; }
.modal.out .modal-box { transform: translateY(20px) scale(.96); opacity: 0; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--brun); background: var(--jaune); cursor: pointer; font-weight: 900; z-index: 3; box-shadow: 2px 2px 0 var(--brun); }
.modal.sheet { align-items: end; padding: 0; }
.modal.sheet .modal-box { max-width: 580px; border-radius: 30px 30px 0 0; max-height: 92vh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 0 var(--brun); transform: translateY(100%); border-bottom: 0; }
.modal.sheet.in .modal-box { transform: none; }
.case-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 40px 8px 0; }
.case-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; border: 2px solid var(--brun); background: var(--accent-soft); font-weight: 900; font-size: .8rem; margin: 0 0 8px; }
.case-head .case-badge { margin: 0; }
.case-by { font-weight: 800; font-size: .84rem; color: var(--brun-2); }
.case-title { font-size: 1.8rem; margin-right: 34px; }
.plain { font-size: 1.08rem; }
.plain.big { font: 600 1.35rem/1.35 var(--round); }
.letter { background: repeating-linear-gradient(transparent 0 31px, #F2DCC4 31px 33px), var(--papier); border: var(--line); border-radius: 18px; padding: 16px 18px 12px; animation: unfold .5s ease both; }
@keyframes unfold { from { transform: perspective(600px) rotateX(-40deg); opacity: 0; } }
.letter-text { font: 500 1.28rem/33px var(--round); margin: 0; white-space: pre-line; }
.scratch { position: relative; border-radius: 18px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.ticket { padding: 26px 18px; text-align: center; background: var(--jaune); border: 2.5px dashed var(--brun); border-radius: 18px; min-height: 150px; display: grid; place-content: center; }
.ticket-k { font-weight: 900; letter-spacing: .2em; font-size: .82rem; margin: 0 0 6px; color: var(--rouge-2); }
.ticket-t { font: 600 1.5rem/1.2 var(--round); margin: 0; }
.scratch-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .6s; border-radius: 18px; }
.scratch-cv.gone { opacity: 0; pointer-events: none; }
.scratch-hint { text-align: center; font-size: .88rem; font-weight: 800; color: var(--brun-2); margin: 10px 0 0; }
.polaroid { margin: 4px auto 0; background: #fff; padding: 12px 12px 6px; border-radius: 8px; border: var(--line); box-shadow: var(--shadow); transform: rotate(-2deg); max-width: 340px; animation: drop .6s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes drop { from { transform: rotate(-12deg) translateY(-30px); opacity: 0; } }
.pol-img { aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--creme-2); border-radius: 4px; display: grid; place-items: center; }
.pol-img img, .pol-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pol-img img.develop { filter: blur(10px) brightness(1.6) sepia(.6) saturate(.4); transition: filter 2.6s ease; }
.pol-img img.develop.on { filter: none; }
.pol-empty { background: repeating-linear-gradient(-45deg, var(--papier) 0 10px, var(--creme-2) 10px 20px); color: var(--brun-2); display: grid; gap: 4px; place-content: center; text-align: center; font-weight: 900; font-size: 1.5rem; }
.pol-empty span:last-child { font-size: .9rem; }
.polaroid figcaption { font: 500 1.15rem var(--round); text-align: center; padding: 12px 6px 8px; }
.voice { background: var(--bleu); border: var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-s); }
.voice-row { display: flex; align-items: center; gap: 14px; }
.voice-play { width: 66px; height: 66px; flex: none; border-radius: 50%; border: var(--line); cursor: pointer; background: var(--rouge); color: var(--papier); font-size: 1.3rem; box-shadow: var(--shadow-s); }
.voice-play:disabled { opacity: .45; cursor: default; }
.bars { flex: 1; height: 48px; display: flex; align-items: center; gap: 3px; }
.bars i { flex: 1; border-radius: 3px; background: var(--brun); opacity: .35; transform-origin: center; }
.voice.playing .bars i { animation: eq .7s ease-in-out infinite alternate; opacity: 1; background: var(--rouge); }
@keyframes eq { from { transform: scaleY(.3); } to { transform: scaleY(1.15); } }
.voice-cap { font: 500 1.15rem var(--round); margin: 14px 0 0; }
.q-text, .ch-q, .sec-q { font: 600 1.4rem/1.25 var(--round); background: var(--orange); border: var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-s); }
.q-answer { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease; }
.q.revealed .q-answer { max-height: 400px; opacity: 1; }
.q-label { font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge-2); margin: 6px 0 2px; }
.q-ans { font: 500 1.2rem var(--round); }
.mission { background: var(--jaune); border: var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-s); display: grid; gap: 10px; }
.mission-k, .tr-k, .rdv-k { font-weight: 900; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.mission-t, .tr-t { font: 600 1.4rem/1.25 var(--round); margin: 0; }
.stamp-ok { justify-self: center; margin: 6px 0 0; padding: 8px 18px; border: 3px solid var(--rouge-2); color: var(--rouge-2); border-radius: 12px; font: 700 1.3rem var(--round); text-transform: uppercase; transform: rotate(-6deg); animation: stampin .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes stampin { from { transform: rotate(-6deg) scale(2.2); opacity: 0; } }
.rdv { display: grid; gap: 10px; }
.rdv-ticket { position: relative; background: var(--bleu); border: var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-s); }
.rdv-ticket::before, .rdv-ticket::after { content: ""; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--papier); border: var(--line); }
.rdv-ticket::before { left: -12px; } .rdv-ticket::after { right: -12px; }
.rdv-d { font: 700 1.5rem var(--round); margin: 4px 0 0; text-transform: capitalize; }
.rdv-h { font: 600 1.2rem var(--round); margin: 0; color: var(--rouge-2); }
.rdv-l { margin: 4px 0 0; font-weight: 800; }
.treasure { display: grid; gap: 10px; background: repeating-linear-gradient(0deg, transparent 0 24px, rgba(75,46,32,.05) 24px 25px), repeating-linear-gradient(90deg, transparent 0 24px, rgba(75,46,32,.05) 24px 25px), #FFF1D9; border: var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-s); }
.tr-found { font: 600 1.3rem var(--round); text-align: center; margin: 0; padding: 12px; border: 2px dashed var(--rouge-2); border-radius: 16px; color: var(--rouge-2); }
.memory { display: grid; gap: 10px; text-align: center; }
.mem-since { font: 700 1.55rem/1.2 var(--round); margin: 8px 0 0; color: var(--rouge-2); }
.mem-date { font-weight: 800; color: var(--brun-2); margin: 0; text-transform: capitalize; }
.choice { display: grid; gap: 12px; }
.ch-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.ch-or { font: 600 1rem var(--round); color: var(--brun-3); }
.ch-opt { min-height: 96px; padding: 12px; border-radius: 20px; border: var(--line); background: var(--papier); font: 600 1.12rem/1.2 var(--round); cursor: pointer; box-shadow: var(--shadow-s); transition: transform .15s, background .15s; }
.ch-opt.on { background: var(--rouge); color: var(--papier); transform: rotate(-2deg) scale(1.03); }
.song { display: grid; gap: 12px; justify-items: center; }
.vinyl { width: 140px; height: 140px; border-radius: 50%; border: var(--line); background: radial-gradient(circle, var(--rouge) 0 18%, var(--brun) 19% 21%, #3a2218 22% 100%); display: grid; place-items: center; box-shadow: var(--shadow); animation: spin 4s linear infinite; }
.vinyl span { font-size: 1.5rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.secret { display: grid; gap: 10px; text-align: center; }
.sec-lock { width: 64px; height: 64px; margin: 0 auto; }
.sec-open { font: 700 1.4rem var(--round); color: var(--rouge-2); margin: 0; }
.reacts { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--brun-3); }
.reacts-k { font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--brun-2); margin: 0 0 8px; text-align: center; }
.reacts-b { display: flex; justify-content: center; gap: 8px; }
.react { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--brun); background: var(--papier); font-size: 1.45rem; cursor: pointer; box-shadow: 2px 2px 0 var(--brun); transition: transform .15s; }
.react:active { transform: scale(.88); }
.react.on { background: var(--jaune); transform: scale(1.12) rotate(-6deg); }

/* Ce que vit la personne qui reçoit */
.rcp-app { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; padding: 16px 16px 60px; min-height: 100vh; }
.scene { opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.scene.in { opacity: 1; transform: none; }
.intro { text-align: center; padding-top: 3vh; display: grid; justify-items: center; }
.intro-k { font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--brun-2); }
.intro-t { font-size: clamp(2.1rem, 9.5vw, 3.2rem); margin: .1em 0 .5em; }
.fox-stage { position: relative; width: min(340px, 92vw); height: 330px; margin: 0 auto 6px; }
.fox-stage .sky { position: absolute; inset: 0 0 16% 0; border-radius: 40px; border: var(--line); background: linear-gradient(180deg, var(--bleu) 0%, #E3F3FB 60%, var(--creme-2) 100%); box-shadow: var(--shadow); overflow: hidden; }
.fox-stage .hill { position: absolute; left: -6%; right: -6%; bottom: 8%; height: 22%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--orange); border: var(--line); border-bottom: 0; }
.fox-wrap { position: absolute; left: 50%; bottom: 0; width: 230px; transform: translateX(-50%); animation: arrive 1s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes arrive { from { transform: translate(60%, 20px) scale(.85); opacity: 0; } }
.fox-wrap .fox { width: 100%; display: block; }
.seal-btn { position: absolute; left: 39%; top: 70%; width: 22%; height: 18%; border-radius: 50%; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fox-stage.opened .fx-seal { animation: sealpop .6s ease forwards; }
@keyframes sealpop { 40% { transform: scale(1.6); } 100% { transform: scale(0) rotate(40deg); opacity: 0; } }
.fox-stage.opened .fx-letter { animation: lift 1s .25s cubic-bezier(.3,1.2,.5,1) forwards; }
@keyframes lift { to { transform: translateY(-120px) scale(1.5) rotate(-8deg); opacity: 0; } }
.fox-stage.opened .fx-eyes { opacity: 0; }
.fox-stage.opened .fx-happy { opacity: 1 !important; }
.intro-hint { color: var(--brun-2); font-weight: 800; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.letter-scene { text-align: center; padding-top: 4vh; display: grid; justify-items: center; gap: 26px; }
.big-letter { position: relative; width: min(400px, 100%); text-align: left; background: var(--papier); border: var(--line); border-radius: 26px; padding: 34px 22px 22px; box-shadow: 6px 6px 0 var(--brun); animation: unroll .7s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes unroll { from { transform: translateY(50px) scale(.8) rotate(4deg); opacity: 0; } }
.bl-seal { position: absolute; left: 50%; top: -28px; width: 56px; height: 56px; transform: translateX(-50%) rotate(-8deg); }
.bl-k { font-weight: 900; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge-2); margin: 0 0 8px; }
.bl-text { font: 500 1.25rem/1.45 var(--round); white-space: pre-line; margin: 0 0 12px; }
.bl-sign { text-align: right; font: 600 1.2rem var(--round); color: var(--rouge-2); margin: 0; }
.bl-fox { position: absolute; left: 16px; bottom: 12px; width: 34px; height: 34px; opacity: .9; }
.bl-fox svg { width: 100%; height: 100%; }
.board { padding-bottom: 20px; }
.rcp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 14px; }
.rcp-who { display: flex; align-items: center; gap: 10px; }
.rcp-logo { width: 46px; height: 46px; }
.rcp-t { font: 600 1.4rem var(--round); margin: 0; }
.rcp-t b { color: var(--rouge); font-weight: 700; }
.rcp-s { color: var(--brun-2); margin: 0; font-weight: 800; font-size: .9rem; }
.count-card { position: relative; z-index: 1; text-align: center; background: var(--accent-soft); border: var(--line); border-radius: 28px; padding: 18px 16px 14px; box-shadow: var(--shadow); margin-bottom: 26px; }
.cc-big { font: 700 clamp(2.4rem, 12vw, 3.4rem) var(--round); line-height: 1; margin: 0; }
.cc-small { font: 600 1.2rem var(--round); margin: 2px 0 10px; }
.cc-next { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .92rem; margin: 0 0 10px; padding: 5px 12px; background: var(--papier); border: 2px solid var(--brun); border-radius: 999px; }
.cc-moon { width: 20px; height: 20px; }
.cd { font-variant-numeric: tabular-nums; color: var(--rouge-2); }
.progress { height: 14px; border-radius: 999px; border: 2px solid var(--brun); background: var(--papier); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--rouge); border-right: 2px solid var(--brun); transition: width .6s; }
.cc-prog { font-weight: 800; font-size: .84rem; margin: 6px 0 0; color: var(--brun-2); }
.rcp-foot { text-align: center; color: var(--brun-2); font-size: .92rem; margin-top: 40px; }
.rcp-foot a { color: var(--rouge-2); font-weight: 900; }
.overlay { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background-color: var(--creme); background-image: radial-gradient(circle at 1px 1px, rgba(75,46,32,.07) 1.2px, transparent 1.6px); background-size: 22px 22px; }
.ov-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--brun); color: var(--papier); }
.ov-title { font: 600 .95rem var(--round); }
.ov-act { display: flex; gap: 8px; align-items: center; }
.ov-bar .icon-btn { width: 36px; height: 36px; box-shadow: none; }

/* Éditeur */
.app { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; padding: 4px 16px 130px; }
.loading { display: grid; gap: 14px; place-items: center; padding: 90px 0; color: var(--brun-2); font-weight: 800; }
.loading svg { width: 64px; height: 64px; animation: bob 1.4s ease-in-out infinite; }
.ed-head { text-align: center; padding: 8px 0 14px; }
.ed-head h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); margin: .45em 0 .25em; }
.ed-sub { color: var(--brun-2); font-weight: 700; }
.paid-fox { width: 150px; margin: 0 auto -6px; }
.progress-card, .card, .pack { background: var(--papier); border: var(--line); border-radius: 26px; padding: 16px; margin: 0 0 16px; box-shadow: var(--shadow-s); }
.pc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pc-top b { font: 600 1.25rem var(--round); }
.pc-todo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.todo-chip { padding: 7px 12px; border-radius: 999px; border: 2px solid var(--brun); background: var(--rose); font-weight: 800; font-size: .86rem; cursor: pointer; box-shadow: 2px 2px 0 var(--brun); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; position: sticky; top: 0; z-index: 4; background: linear-gradient(var(--creme) 80%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; padding: 9px 12px; white-space: nowrap; border-radius: 999px; border: 2px solid var(--brun); background: var(--papier); font-family: var(--round); font-weight: 600; font-size: .98rem; cursor: pointer; }
.tab.on { background: var(--brun); color: var(--papier); }
.card-t { font-size: 1.45rem; margin-bottom: .3em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field-l { font-size: .8rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--brun-2); margin: 0; }
.field-h { font-size: .82rem; color: var(--brun-3); font-weight: 700; }
.inp { width: 100%; font: inherit; font-size: 1rem; font-weight: 700; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--brun); background: #fff; color: var(--brun); outline: none; transition: box-shadow .15s; resize: vertical; }
.inp:focus { box-shadow: 3px 3px 0 var(--rouge); }
select.inp { appearance: auto; }
.egrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.etile { position: relative; min-height: 118px; padding: 10px; border-radius: 20px; border: var(--line); text-align: left; cursor: pointer; display: grid; align-content: start; gap: 3px; overflow: hidden; box-shadow: var(--shadow-s); transition: transform .12s; }
.etile:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--brun); }
.et-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.et-top { display: flex; justify-content: space-between; align-items: baseline; position: relative; }
.et-day { font: 700 1.5rem var(--round); line-height: 1; }
.etile.bg-rouge .et-day, .etile.bg-rouge .et-title, .etile.bg-rouge .et-kind, .etile.bg-rouge .et-date { color: var(--papier); }
.et-date { font-size: .7rem; font-weight: 900; color: var(--brun-2); }
.et-kind { font-size: .72rem; font-weight: 900; position: relative; }
.et-title { font-size: .8rem; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; position: relative; color: var(--brun-2); }
.et-ask { position: relative; font-size: .7rem; font-weight: 900; background: var(--papier); border: 1.5px solid var(--brun); border-radius: 999px; padding: 1px 7px; justify-self: start; }
.et-dot { position: absolute; right: 8px; bottom: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--rouge); border: 2px solid var(--brun); animation: pulse 1.6s infinite; }
.packs { display: grid; gap: 4px; }
.pack-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.pack-head b { font: 600 1.25rem var(--round); display: block; }
.pack-ico { width: 48px; height: 48px; border-radius: 16px; border: 2px solid var(--brun); background: var(--accent-soft); display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 16px; border: 2px solid var(--brun); overflow: hidden; background: var(--creme-2); cursor: pointer; padding: 0; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.empty span { font: 700 2rem var(--round); color: var(--brun-3); }
.thumb small { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,252,247,.92); font-size: .66rem; font-weight: 900; padding: 3px 5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow { border-top: 2px dashed var(--brun-3); padding-top: 12px; margin-top: 12px; }
.qrow.missing .qrow-k::after { content: " · à compléter"; color: var(--rouge-2); }
.qrow-k { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: .85rem; margin: 0 0 8px; }
.qrow-k .link { padding: 0; font-size: .82rem; }
.qline { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 0; border: 0; border-top: 2px dashed var(--brun-3); background: none; cursor: pointer; font-weight: 800; }
.qline span:nth-child(2) { flex: 1; }
.qline small { color: var(--brun-3); font-weight: 900; }
.seq .recorder { margin: 12px 0; }
.seq-nav { display: flex; justify-content: space-between; gap: 10px; }
.ask-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 2px dashed var(--brun-3); cursor: pointer; }
.ask-row input, .toggle input, .consent input { width: 22px; height: 22px; flex: none; accent-color: var(--rouge); }
.ask-row span { flex: 1; font-size: .92rem; }
.ask-row small { font-weight: 900; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.themes { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-sw { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; border: 2px solid var(--brun); background: var(--papier); cursor: pointer; font-weight: 800; font-size: .88rem; }
.theme-sw.on { background: var(--accent-soft); box-shadow: 2px 2px 0 var(--brun); }
.sw-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--brun); }
.sw-hiver .sw-dot { background: conic-gradient(var(--bleu) 0 50%, var(--papier) 0); }
.sw-coeur .sw-dot { background: conic-gradient(var(--rouge) 0 50%, var(--rose) 0); }
.sw-ete .sw-dot { background: conic-gradient(var(--jaune-2) 0 50%, var(--bleu) 0); }
.sw-fete .sw-dot { background: conic-gradient(var(--orange-2) 0 50%, var(--jaune) 0); }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--creme) 30%); }
.bar .btn { flex: 1; max-width: 300px; }
.bar .btn-main { flex-direction: column; gap: 2px; }
.kgroup { margin-bottom: 10px; }
.kchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kchip { display: inline-flex; gap: 5px; align-items: center; padding: 7px 11px; border-radius: 999px; border: 2px solid var(--brun); background: #fff; cursor: pointer; font-weight: 800; font-size: .84rem; }
.kchip.on { background: var(--rouge); color: var(--papier); box-shadow: 2px 2px 0 var(--brun); }
.media-box:not(:empty) { margin: 4px 0 14px; }
.extras:not(:empty) { margin-bottom: 12px; }
.toggle { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: .92rem; padding: 10px 12px; border: 2px dashed var(--brun-3); border-radius: 16px; margin-bottom: 8px; cursor: pointer; }
.picker { display: grid; gap: 10px; }
.pick-prev { width: 100%; max-height: 260px; object-fit: cover; border-radius: 18px; border: var(--line); }
.pick-empty { display: grid; place-items: center; gap: 2px; height: 140px; width: 100%; border-radius: 20px; border: 2.5px dashed var(--brun-2); background: var(--creme-2); color: var(--brun-2); font-weight: 900; cursor: pointer; }
.pe-ico { font-size: 2rem; }
.pick-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.recorder { border-radius: 22px; padding: 16px; background: var(--bleu); border: var(--line); }
.rec-row { display: flex; gap: 14px; align-items: center; }
.rec-btn { width: 72px; height: 72px; flex: none; border-radius: 50%; border: var(--line); background: var(--rouge); cursor: pointer; box-shadow: var(--shadow-s); display: grid; place-items: center; }
.rec-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--papier); transition: border-radius .2s, transform .2s; }
.recorder.recording .rec-btn { animation: recpulse 1.2s infinite; }
.recorder.recording .rec-dot { border-radius: 5px; transform: scale(.85); }
@keyframes recpulse { 50% { box-shadow: 0 0 0 12px rgba(232,66,63,.25); } }
.rec-time { font: 600 1.1rem var(--round); font-variant-numeric: tabular-nums; }
.rec-label { margin: 2px 0 0; font-size: .88rem; font-weight: 700; color: var(--brun-2); }
.rec-player { width: 100%; margin-top: 12px; }
.rec-more { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ideas { margin-top: 4px; display: grid; gap: 8px; }
.idea { text-align: left; display: grid; gap: 2px; padding: 11px 14px; border-radius: 18px; border: 2px solid var(--brun); background: var(--creme); cursor: pointer; }
.idea b { font-size: .92rem; }
.idea span { font-size: .87rem; color: var(--brun-2); }
.idea:active { background: var(--jaune); }
.sheet-actions { position: sticky; bottom: -20px; margin: 16px -20px -20px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--papier) 30%); display: grid; }
.checkout .recap { padding: 0; list-style: none; display: grid; gap: 6px; margin: 4px 0 16px; font-weight: 700; }
.checkout .recap li::before { content: "🦊 "; }
.okbox { padding: 12px 14px; border-radius: 16px; background: var(--bleu); border: 2px solid var(--brun); font-size: .9rem; font-weight: 700; margin: 0 0 12px; }
.price-tiers { font-weight: 700; color: var(--brun-2); font-size: .92rem; line-height: 1.55; margin: -4px 0 12px; }
.inp-num { width: 150px; flex: none; padding: 9px 12px; }
.warnbox { padding: 12px 14px; border-radius: 16px; background: var(--jaune); border: 2px solid var(--brun); font-size: .9rem; font-weight: 700; margin: 0 0 12px; }
.warnbox .link { padding: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; font-weight: 700; color: var(--brun-2); margin: 14px 0 16px; cursor: pointer; }
.follow { display: grid; gap: 6px; margin: 10px 0; }
.frow { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--brun); background: var(--creme); }
.frow b { font: 700 1.1rem var(--round); grid-row: span 2; align-self: center; }
.frow span { font-weight: 800; font-size: .9rem; }
.frow em { font-style: normal; font-weight: 800; font-size: .85rem; color: var(--rouge-2); }
.errbox { margin-top: 40px; }
.err-logo { width: 70px; height: 70px; margin: 0 auto 6px; }

/* Assistant */
.wizard h2 { font-size: 1.9rem; margin-right: 34px; }
.wiz-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.wiz-dots i { width: 30px; height: 8px; border-radius: 999px; border: 2px solid var(--brun); background: var(--papier); }
.wiz-dots i.on { background: var(--rouge); }
.wiz-k { font-weight: 900; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brun-2); margin: 0 0 4px; }
.wiz-occ { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wo { display: grid; justify-items: start; gap: 2px; padding: 14px; border-radius: 20px; border: var(--line); background: var(--papier); cursor: pointer; box-shadow: var(--shadow-s); text-align: left; }
.wo.on { background: var(--accent-soft); }
.wo-i { font-size: 1.7rem; }
.wo b { font-family: var(--round); font-weight: 600; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip-opt { padding: 9px 14px; border-radius: 999px; border: 2px solid var(--brun); background: #fff; cursor: pointer; font-weight: 800; font-size: .92rem; }
.chip-opt.on { background: var(--rouge); color: var(--papier); box-shadow: 2px 2px 0 var(--brun); }
.wiz-preview { font-weight: 800; color: var(--brun-2); min-height: 1.4em; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.wiz-recap { padding: 14px 16px; border-radius: 20px; border: 2px dashed var(--brun-2); background: var(--creme); margin: 6px 0 16px; }
.wiz-recap p { margin: 0; font-weight: 800; }
.wiz-recap p:first-child { font: 600 1.2rem var(--round); }
.wizard .btn-soft.wide { margin-top: 10px; }
.making { display: grid; justify-items: center; gap: 10px; padding: 20px 0; font: 600 1.2rem var(--round); }
.making-fox { width: 170px; animation: bob 1.2s ease-in-out infinite; }

/* Pages légales */
.legal h1 { font-size: 2.4rem; }
.legal h2 { font-size: 1.3rem; text-align: left; margin-top: 1.6em; }
.legal p, .legal li { color: var(--brun-2); font-weight: 600; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); width: max-content; padding: 12px 18px; border-radius: 18px; background: var(--brun); color: var(--papier); font-weight: 800; font-size: .94rem; border: 2px solid var(--brun); box-shadow: 3px 3px 0 rgba(75,46,32,.35); transition: opacity .25s, transform .25s; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Écrans plus larges */
@media (min-width: 560px) {
  .grid { gap: 32px 16px; }
  .egrid { grid-template-columns: repeat(4, 1fr); }
  .ocards, .kcards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .namebox { flex-wrap: nowrap; }
  .namebox .btn { flex: none; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding: 20px 28px 90px; }
  .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .hero-art { height: 440px; }
  .fox-hero { width: 300px; }
  .ocards { grid-template-columns: repeat(3, 1fr); }
  .kcards { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .sec-blue, .sec-yellow, .sec-orange { margin: 0 28px; }
  .dock { display: none; }
  .foot { padding-bottom: 40px; }
  .occs { flex-wrap: wrap; overflow: visible; margin-left: 0; padding-left: 4px; }
}
@media (max-width: 380px) {
  .two { grid-template-columns: 1fr; }
  .egrid { grid-template-columns: repeat(2, 1fr); }
  .wiz-occ { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 440px) { .tab { font-size: .9rem; padding: 8px 10px; } .tab .tab-l { display: none; } .tab.on .tab-l { display: inline; } }
@media (max-width: 559px) { .kcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } .kcard { padding: 14px 12px; border-radius: 20px; } .kcard b { font-size: 1.04rem; } .kcard span:last-child { font-size: .8rem; line-height: 1.35; } }
