:root {
  --cream: #fbf4e8; --paper: #fffaf2; --ink: #2b1d16; --muted: #6e5a4c;
  --red: #a8322d; --red-dark: #7d1f1a; --pine: #2f5d50; --pine-dark: #1f4238; --gold: #d9a441;
  --line: #e8d9c4; --radius: 16px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.5 var(--sans); min-height: 100dvh; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 20px; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.spacer { height: 16px; }

/* Boutons lisibles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); touch-action: manipulation; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-pine { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; text-decoration: underline; }
.btn-big { min-height: 58px; font-size: 20px; width: 100%; }
.btn-small { min-height: 40px; padding: 6px 12px; font-size: 15px; border-radius: 10px; }
.btn-danger { color: var(--red); border-color: #e9b8b3; }
.btn[disabled] { opacity: .5; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.banner { border-radius: 14px; padding: 12px 14px; font-size: 15px; margin-bottom: 14px; }
.banner-sim { background: #fff1c9; border: 1px solid #ecd28a; }
.banner-ok { background: #e3f1ea; border: 1px solid #b6d8c7; }
.banner-info { background: #f4e9dc; border: 1px solid var(--line); }
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #f4e9dc; color: var(--muted); }
.badge-sim { background: #fff1c9; color: #7a5a00; }
.badge-ai { background: #e3f1ea; color: var(--pine-dark); }

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
input[type=text], textarea, select { width: 100%; border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 12px; font-size: 17px; }
textarea { min-height: 76px; resize: vertical; }
input:focus, textarea:focus, select:focus, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }

/* Accueil */
.hero { text-align: center; padding: 28px 8px 8px; }
.hero .logo { font-size: 56px; }
.hero h1 { font-size: 36px; color: var(--red-dark); }
.dropzone { display: block; border: 3px dashed var(--gold); border-radius: 20px; padding: 26px 16px; text-align: center; background: #fff8ea; cursor: pointer; }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone strong { display: block; font-size: 21px; margin: 6px 0; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 12px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }

.progress { height: 12px; background: #eadbc6; border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); width: 0; transition: width .4s; }

/* Éditeur */
.toolbar { position: sticky; top: 0; z-index: 5; background: var(--cream); padding: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.daylist { display: flex; flex-direction: column; gap: 10px; }
.dayrow { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px; cursor: pointer; }
.dayrow img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.dayrow .n { font-family: var(--serif); font-weight: 700; color: var(--red-dark); }
.dayrow .q { font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dayrow .moves { display: flex; flex-direction: column; gap: 4px; }
.dayrow .moves button { width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.flags { font-size: 14px; }
.pending { opacity: .6; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--pine); border-color: var(--pine); color: #fff; }
.alt { text-align: left; width: 100%; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; cursor: pointer; }
.alt b { display: block; }
.focus-picker { position: relative; border-radius: 14px; overflow: hidden; touch-action: manipulation; }
.focus-picker img { display: block; width: 100%; }
.focus-dot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--red), 0 2px 8px rgba(0,0,0,.4); pointer-events: none; }
.saved { font-size: 14px; color: var(--pine); min-height: 20px; }
details.section { border-top: 1px solid var(--line); padding: 12px 0; }
details.section > summary { font-weight: 700; cursor: pointer; font-size: 18px; list-style-position: outside; }

/* Feuille modale plein écran */
.sheet { position: fixed; inset: 0; z-index: 50; background: var(--cream); overflow-y: auto; -webkit-overflow-scrolling: touch; animation: up .25s ease; }
.sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--red-dark); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.sheet-head h2 { color: #fff; margin: 0; font-size: 22px; }
.sheet-head .btn { min-height: 44px; background: rgba(255,255,255,.15); border-color: transparent; color: #fff; }
.sheet-body { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* Calendrier destinataire */
.cal-head { text-align: center; padding: 18px 8px 6px; }
.cal-head h1 { color: var(--red-dark); font-size: 30px; }
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.door { position: relative; aspect-ratio: 1; border-radius: 14px; border: none; font-family: var(--serif); font-size: 28px; font-weight: 700; color: #fff; background: var(--pine); cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 3px rgba(255,255,255,.18); }
.door:nth-child(3n) { background: var(--red); }
.door:nth-child(4n+2) { background: #b9792b; }
.door.locked { background: #e4d6c3 !important; color: #a08d7a; }
.door.locked::after { content: '🔒'; position: absolute; right: 6px; bottom: 4px; font-size: 14px; }
.door.today { box-shadow: 0 0 0 4px var(--gold), 0 0 18px rgba(217,164,65,.8); animation: pulse 1.8s infinite; }
.door.opened img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.door.opened span { position: relative; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.door.empty { background: #efe5d6 !important; color: #c0ad98; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--gold), 0 0 26px rgba(217,164,65,.9); } }

/* Jeux */
.question { font-family: var(--serif); font-size: 24px; line-height: 1.3; margin: 4px 0 6px; }
.hint { font-size: 16px; color: var(--muted); }
.stage { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #1b1410; margin: 12px 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.stage.zoomed .stage-img { object-fit: cover; }
.game-actions { display: flex; flex-direction: column; gap: 10px; }
.tip { text-align: center; font-size: 17px; color: var(--muted); margin: 0; }
.sound-cover { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #355e52, #142b24); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .7s; }
.sound-cover.gone, .scratch.gone { opacity: 0; pointer-events: none; transition: opacity .6s; }
.sound-icon { font-size: 54px; position: relative; z-index: 1; }
.sound-cover p { margin: 10px 0 0; font-size: 17px; position: relative; z-index: 1; }
.rings { position: absolute; top: 45%; left: 50%; }
.rings span { position: absolute; width: 90px; height: 90px; margin: -45px; border: 3px solid rgba(255,255,255,.5); border-radius: 50%; opacity: 0; }
.playing .rings span { animation: ring 2.4s infinite; }
.playing .rings span:nth-child(2) { animation-delay: .8s; } .playing .rings span:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.scratch { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.curtain { position: absolute; background: repeating-linear-gradient(45deg, #a8322d 0 18px, #b8433d 18px 36px); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(0,0,0,.4); }
.curtain-label { font-family: var(--serif); font-size: 64px; color: #fff; font-weight: 700; }
.curtain-droite { top: 0; bottom: 0; right: 0; width: 50%; }
.curtain-gauche { top: 0; bottom: 0; left: 0; width: 50%; }
.curtain-bas { left: 0; right: 0; bottom: 0; height: 50%; }
.curtain-haut { left: 0; right: 0; top: 0; height: 50%; }
.curtain-photo { inset: 0; width: 100%; height: 100%; object-fit: contain; background: #1b1410; box-shadow: none; }
.curtain-handle { position: absolute; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: #fff; color: var(--red-dark); font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.4); pointer-events: none; }
.mask-droite .curtain-handle, .mask-gauche .curtain-handle, .two-photos .curtain-handle { top: 50%; left: 50%; }
.two-photos .curtain-handle { left: 100%; margin-left: -40px; }
.mask-bas .curtain-handle, .mask-haut .curtain-handle { left: 50%; top: 50%; }
.after { animation: up .4s ease; }
.reveal-text { font-family: var(--serif); font-size: 22px; text-align: center; margin: 8px 0 14px; }
.quote { background: #fff; border-left: 5px solid var(--gold); border-radius: 0 14px 14px 0; padding: 12px 14px; margin: 10px 0; }

/* Enregistreur */
.recorder { display: flex; flex-direction: column; gap: 8px; }
.rec-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #e53935; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* Film */
.film-frame { position: relative; border-radius: 18px; overflow: hidden; background: #000; }
.film-canvas { display: block; width: 100%; height: auto; max-height: 70dvh; object-fit: contain; margin: 0 auto; }
.film-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; font-size: 19px; text-align: center; text-shadow: 0 1px 6px #000; }
.film-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 17px; z-index: 100; transition: transform .3s; max-width: 92vw; text-align: center; }
#toast.show { transform: translateX(-50%) translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Devinette */
.riddle-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: repeating-linear-gradient(135deg, #2f5d50 0 22px, #36695b 22px 44px); transition: opacity .7s; }
.riddle-cover.gone { opacity: 0; pointer-events: none; }
.riddle-mark { width: 96px; height: 96px; border-radius: 50%; background: var(--gold); color: var(--red-dark); font: 700 64px/96px var(--serif); text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.riddle-cover p { margin: 14px 12px 0; font-size: 19px; text-align: center; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice.picked { background: var(--gold); border-color: var(--gold); color: var(--ink); opacity: 1; }

/* Accueil : deux usages, choix du ton */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.use { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.use .e { font-size: 30px; }
.use b { display: block; font-family: var(--serif); font-size: 18px; margin: 4px 0; }
.use span { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }
.use em { display: block; font-style: normal; font-size: 14px; font-weight: 700; color: var(--red); margin-top: 8px; }
.tones { display: flex; flex-direction: column; gap: 8px; }
.tone { display: flex; gap: 12px; align-items: center; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.tone .e { font-size: 26px; }
.tone b { display: block; }
.tone span { font-size: 14px; color: var(--muted); }
.tone[aria-pressed=true] { border-color: var(--pine); background: #e3f1ea; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); }
.film-intro { text-align: center; padding: 20px 0 8px; }
.film-intro .e { font-size: 54px; }

/* Commandes */
.order-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.order-ph { position: relative; aspect-ratio: 1; border: 3px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; background: #eee; cursor: pointer; }
.order-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-ph.on { border-color: var(--pine); }
.order-ph .d { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; border-radius: 6px; padding: 0 5px; }
.order-ph .q { position: absolute; right: 4px; bottom: 4px; background: var(--pine); color: #fff; font-weight: 700; font-size: 15px; border-radius: 8px; padding: 1px 7px; }
.order-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; }

/* ===== Ergonomie fun ===== */
.home .hero h1 { font-size: 40px; letter-spacing: -.5px; }
.logo.bounce { display: inline-block; animation: bounce 2.2s ease-in-out infinite; }
.logo.spin { display: inline-block; animation: wobble 1.2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(10deg) scale(1.08); } }
.bigdrop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin: 18px 0 10px; padding: 30px 18px; border-radius: 26px; background: linear-gradient(135deg, var(--red) 0%, #c4492f 100%); color: #fff; cursor: pointer; box-shadow: 0 10px 26px rgba(168,50,45,.35), inset 0 0 0 3px rgba(255,255,255,.18); transition: transform .15s; }
.bigdrop:active { transform: scale(.97); }
.bigdrop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bigdrop-ico { font-size: 54px; animation: bounce 2s ease-in-out infinite; }
.bigdrop strong { font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.bigdrop span:last-child { font-size: 16px; opacity: .92; }
.steps3 { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 13px; text-align: center; color: var(--muted); }
.steps3 b { display: block; width: 28px; height: 28px; line-height: 28px; margin: 0 auto 4px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.btn { transition: transform .12s; }
.btn:active { transform: scale(.95); }
.build-msg { text-align: center; font-size: 19px; font-weight: 600; min-height: 28px; animation: fadein .5s; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.bgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 16px; }
.bdoor { position: relative; aspect-ratio: 1; border-radius: 10px; background: #e4d6c3 center / cover no-repeat; display: flex; align-items: center; justify-content: center; font: 700 15px var(--serif); color: #fff; transition: transform .5s; overflow: hidden; }
.bdoor span { text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.bdoor.filled { animation: pop .4s ease; }
.bdoor.done::after { content: attr(data-icon); position: absolute; right: 2px; bottom: 0; font-size: 15px; }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.door { transition: transform .15s; perspective: 600px; }
.door:active { transform: scale(.94); }
.door.opening { animation: dooropen .42s ease-in forwards; }
@keyframes dooropen { to { transform: perspective(500px) rotateY(-75deg) scale(1.05); opacity: .4; } }
.door.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px) rotate(-2deg); } 40%, 80% { transform: translateX(5px) rotate(2deg); } }
.door.today { animation: pulse 1.8s infinite, wiggle 3s infinite; }
@keyframes wiggle { 0%, 90%, 100% { rotate: 0deg; } 93% { rotate: -4deg; } 96% { rotate: 4deg; } }
.confetti-fx { position: fixed; inset: 0; pointer-events: none; z-index: 200; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.uses .use.on { border: 3px solid var(--red); background: #fff3ef; box-shadow: 0 4px 14px rgba(168,50,45,.18); }
.uses .use:last-child:nth-child(odd) { grid-column: span 2; }
.uses .use { transition: transform .12s; }
.uses .use:active { transform: scale(.97); }
.demos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; }

/* ===== Version plus ludique ===== */
:root { --round: ui-rounded, 'SF Pro Rounded', 'Nunito', 'Trebuchet MS', system-ui, sans-serif; }
h1, h2, h3, .question, .reveal-text, .tagline, .bigdrop strong, .door, .bdoor, .sheet-head h2 { font-family: var(--round); font-weight: 800; }
.tagline { font-style: normal; font-weight: 600 !important; }
.home { position: relative; overflow: hidden; }
.snow { position: absolute; inset: 0 0 auto 0; height: 100%; pointer-events: none; z-index: 0; }
.snow i { position: absolute; top: -20px; color: #d9c7ad; font-style: normal; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) translateX(30px) rotate(200deg); } }
.home > *:not(.snow) { position: relative; z-index: 1; }
.pill-xmas, .pill-count { display: inline-block; background: var(--pine); color: #fff; font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 0 var(--pine-dark); }
.pill-count { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 #b8862e; }
.hero .pill-xmas { margin-bottom: 10px; transform: rotate(-2deg); }
.q-title { text-align: center; font-family: var(--round); font-weight: 800; font-size: 24px; margin: 18px 0 10px; }
.stickers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sticker { display: flex; align-items: center; gap: 8px; border: 3px solid #fff; background: #fff; border-radius: 18px; padding: 10px 14px; font: 700 16px var(--round); color: var(--ink); cursor: pointer; transform: rotate(var(--r)); box-shadow: 0 4px 0 #e6d6bf, 0 6px 14px rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s; }
.sticker .e { font-size: 26px; }
.sticker:active { transform: rotate(0) scale(.94); }
.sticker.on { background: var(--red); color: #fff; border-color: #fff; transform: rotate(0) scale(1.06); box-shadow: 0 5px 0 var(--red-dark), 0 8px 20px rgba(168,50,45,.35); }
.aud-pitch { text-align: center; color: var(--muted); font-size: 15px; min-height: 22px; margin: 10px 0 0; }
.bigdrop { margin-top: 14px; border-radius: 28px; box-shadow: 0 7px 0 var(--red-dark), 0 14px 30px rgba(168,50,45,.35); }
.bigdrop:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--red-dark); }
.bigdrop.drag { outline: 4px dashed var(--gold); outline-offset: 4px; transform: scale(1.02); }
.bigdrop-sub { font-size: 15px; opacity: .92; }
.how { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 4px; font-weight: 700; font-size: 14px; }
.how div { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border-radius: 16px; padding: 8px 10px; min-width: 84px; box-shadow: 0 3px 0 #e6d6bf; }
.how span { font-size: 26px; }
.how i { font-style: normal; color: var(--gold); font-size: 20px; font-weight: 900; }
.gather { position: fixed; inset: 0; z-index: 150; background: rgba(43,29,22,.55); display: flex; align-items: center; justify-content: center; animation: fadein .2s; }
.gather-box { background: var(--paper); border-radius: 24px; padding: 26px 30px; text-align: center; display: flex; flex-direction: column; gap: 6px; font-family: var(--round); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.gather-ico { font-size: 52px; animation: wobble 1s ease-in-out infinite; }
.gather-box b { font-size: 20px; }
.btn-primary, .btn-pine { box-shadow: 0 4px 0 rgba(0,0,0,.22); }
.btn-primary:active, .btn-pine:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.22); }
/* Cases façon paquets cadeaux */
.door { border-radius: 16px; box-shadow: 0 5px 0 rgba(0,0,0,.18); font-size: 26px; }
.door .ribbon { position: absolute; inset: 0; pointer-events: none; }
.door .ribbon::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 14%; margin-left: -7%; background: rgba(255,255,255,.28); }
.door .ribbon::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 14%; margin-top: -7%; background: rgba(255,255,255,.28); }
.door span { position: relative; z-index: 1; background: rgba(0,0,0,.18); border-radius: 50%; width: 1.7em; height: 1.7em; display: inline-flex; align-items: center; justify-content: center; }
.door.locked span { background: transparent; }
.door.locked .ribbon::before, .door.locked .ribbon::after { background: rgba(255,255,255,.45); }
.door.opened span { background: rgba(0,0,0,.45); font-size: 18px; }
.door.today { box-shadow: 0 0 0 4px var(--gold), 0 0 22px rgba(217,164,65,.9); }
.cal-stats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cta-today { margin-top: 14px; font-size: 22px; min-height: 64px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 85%, 100% { transform: scale(1); } 90% { transform: scale(1.04) rotate(-1deg); } 95% { transform: scale(1.04) rotate(1deg); } }
.cheer { text-align: center; font: 800 26px var(--round); color: var(--red); margin: 6px 0 0; animation: pop .5s ease; }
.sheet-head { border-radius: 0 0 22px 22px; }
.hero .logo { display: block; width: max-content; margin: 0 auto; }
.sticker .e { white-space: nowrap; letter-spacing: -4px; }
.sticker .l { text-align: left; line-height: 1.15; }
.sticker small { display: block; font-size: 12px; font-weight: 600; opacity: .75; }
.version-title { font: 800 21px var(--round); margin: 0 0 2px; }
.version-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.version-choice .btn-big { font-size: 18px; }
.film-caption.written { font-family: var(--serif); font-style: italic; font-size: 21px; background: rgba(0,0,0,.45); }

/* ===== Décor d'hiver ===== */
body { background: radial-gradient(120% 60% at 50% 0%, #fff8ec 0%, var(--cream) 60%) fixed, var(--cream); }
.snowfall { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.snowfall i { position: absolute; top: -24px; color: #fff; font-style: normal; text-shadow: 0 0 4px rgba(120,150,200,.55); animation-name: snowfall, sway; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; animation-direction: normal, alternate; }
@keyframes snowfall { to { top: 105vh; } }
@keyframes sway { from { transform: translateX(-14px) rotate(-20deg); } to { transform: translateX(14px) rotate(25deg); } }
.sheet { z-index: 50; }
.home .snow { display: none; }
.hero-card { position: relative; margin: 6px -4px 6px; border-radius: 28px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-start; justify-content: center; text-align: center; box-shadow: 0 12px 30px rgba(20,32,74,.35); }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scene .tw { animation: twinkle 2.6s ease-in-out infinite; }
.hero-scene .win { animation: glow 3.5s ease-in-out infinite; }
.hero-scene .smoke { animation: smoke 4s ease-out infinite; }
@keyframes twinkle { 50% { opacity: .15; } }
@keyframes glow { 50% { fill: #ffb347; } }
@keyframes smoke { from { transform: translateY(0) scale(.6); opacity: .6; } to { transform: translateY(-16px) scale(1.6); opacity: 0; } }
.hero-content { position: relative; z-index: 2; padding: 34px 18px 92px; color: #fff; }
.hero-content h1 { color: #fff; font-size: 38px; text-shadow: 0 3px 0 rgba(0,0,0,.25), 0 0 24px rgba(255,214,120,.45); margin: 4px 0 6px; }
.hero-content .tagline { color: #f4ecff; text-shadow: 0 1px 6px rgba(0,0,0,.4); margin: 0; }
.hero-content .brand { margin: 0; font: 800 13px var(--round); letter-spacing: .14em; text-transform: uppercase; color: #ffd166; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hero-content .logo { font-size: 54px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.hero-content .pill-xmas { background: rgba(255,255,255,.16); box-shadow: none; border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.garland { position: absolute; z-index: 3; top: -8px; left: -10px; right: -10px; height: 40px; display: flex; justify-content: space-between; padding: 0 10px; background: radial-gradient(ellipse 60% 26px at 50% -6px, transparent 96%, rgba(255,255,255,.55) 97%, transparent 100%); }
.garland i { width: 10px; height: 15px; border-radius: 50% 50% 46% 46%; background: var(--c); margin-top: calc(14px + var(--y, 0px)); box-shadow: 0 0 10px 2px var(--c); animation: bulb 1.5s ease-in-out infinite alternate; position: relative; }
.garland i::before { content: ''; position: absolute; top: -4px; left: 2px; width: 6px; height: 5px; background: #556; border-radius: 2px; }
.garland i:nth-child(odd) { --y: 6px; }
.garland i:nth-child(4n) { --y: 9px; }
@keyframes bulb { from { opacity: .45; box-shadow: 0 0 2px 0 var(--c); } to { opacity: 1; box-shadow: 0 0 14px 3px var(--c); } }
/* Neige posée sur les cases, le gros bouton et la case du jour */
.door, .bigdrop, .cta-today { overflow: visible; }
.door::before, .bigdrop::before, .cta-today::before { content: ''; position: absolute; z-index: 2; left: -3px; right: -3px; top: -7px; height: 15px; pointer-events: none;
  background: radial-gradient(circle at 10% 100%, #fff 6px, transparent 7px), radial-gradient(circle at 30% 100%, #fff 8px, transparent 9px), radial-gradient(circle at 52% 100%, #fff 6px, transparent 7px), radial-gradient(circle at 72% 100%, #fff 9px, transparent 10px), radial-gradient(circle at 92% 100%, #fff 6px, transparent 7px), linear-gradient(#fff, #fff) bottom / 100% 6px no-repeat;
  border-radius: 10px 10px 4px 4px; filter: drop-shadow(0 2px 1px rgba(80,100,140,.25)); }
.door.opened::before { opacity: .85; }
.cta-today { position: relative; }
.door { border-radius: 14px; }
.door img { border-radius: 14px; }
.bigdrop { background: linear-gradient(160deg, #c7402f 0%, #a8322d 55%, #8c2622 100%); }
.bigdrop::after { content: '✨'; position: absolute; right: 18px; top: 16px; font-size: 22px; animation: twinkle 1.8s infinite; }
.sticker { background: #fffdf8; }
.how div, .card, .use { backdrop-filter: blur(2px); }
.doors { gap: 12px 10px; margin-top: 18px; }
.pill-count { position: relative; }
.cal-stats { margin-top: 14px; }
.sheet-head { background: linear-gradient(135deg, #8c2622, #a8322d); box-shadow: 0 6px 16px rgba(140,38,34,.3); }
.hero-card { background:
  radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 46% 22%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 64% 12%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 82% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 6%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 44%, #fff 50%, transparent 51%),
  linear-gradient(180deg, #14204a 0%, #2a3170 45%, #5a4a86 75%, #7a5a8c 100%); min-height: 0; }
.hero-scene { top: auto; bottom: 0; height: auto; }
.hero-content { padding: 40px 18px min(29vw, 165px); }
.hero-card::after { content: ''; position: absolute; z-index: 1; top: 34px; right: 24px; width: 30px; height: 30px; border-radius: 50%; background: #fff6d8; box-shadow: inset -7px -3px 0 0 rgba(43,49,104,.18), 0 0 18px 6px rgba(255,246,216,.35), 0 0 60px 18px rgba(255,246,216,.15); }
.hero-content .logo { display: block; width: max-content; margin: 8px auto 0; }
/* Réponses des invités */
.guess { background: #fff; border: 2px dashed var(--gold); border-radius: 18px; padding: 12px 14px; margin: 0 0 12px; }
.guess-title { font: 800 18px var(--round); margin: 0 0 8px; }
.guess-row { display: flex; gap: 8px; }
.guess-row input { flex: 1; }
.guess-row .btn { min-width: 56px; font-size: 22px; }
.guess-name { margin-bottom: 8px; }
.guess-mine { margin: 0; font-size: 17px; }
.guesses { margin: 10px 0; }
.bubble { display: inline-block; background: #fff; border-radius: 18px 18px 18px 4px; padding: 8px 12px; margin: 0 6px 8px 0; box-shadow: 0 2px 0 #e6d6bf; font-size: 16px; animation: pop .4s ease both; }
.bubble:nth-child(odd) { background: #fff4d6; }
.bubble b { color: var(--red); margin-right: 4px; }
/* Photo animée */
.anim-card { background: linear-gradient(135deg, #fffaf0, #fff3e6); border: 2px solid #f1d39a; }
.anim-media { position: relative; margin-top: 10px; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #1b1410; }
.anim-media img, .anim-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.anim-date { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.55); color: #fff; font: 700 13px var(--round); padding: 2px 8px; border-radius: 8px; }
.breathing { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); filter: brightness(1.08); } }
.anim-in { animation: fadein 1s ease; object-fit: contain; }
.anim-tag { position: absolute; z-index: 3; right: 10px; bottom: 10px; background: rgba(255,209,102,.95); color: var(--ink); font: 800 14px var(--round); padding: 4px 10px; border-radius: 999px; animation: pop .5s ease; }

/* ===================== Ouvertures de cases ===================== */
.opener { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); overflow: hidden; animation: opIn .35s ease; color: #fff; -webkit-tap-highlight-color: transparent; }
.opener.out { animation: opOut .35s ease forwards; }
@keyframes opIn { from { opacity: 0; transform: scale(1.04); } }
@keyframes opOut { to { opacity: 0; transform: scale(1.08); } }
.op-date { margin: 0; text-align: center; font-family: var(--round); text-shadow: 0 2px 10px rgba(0,0,0,.35); position: relative; z-index: 2; }
.op-date small { display: block; font-size: 15px; font-weight: 700; opacity: .85; letter-spacing: .08em; text-transform: uppercase; }
.op-date b { font-size: 34px; font-weight: 900; }
.op-stage { position: relative; z-index: 2; width: min(84vw, 340px); height: min(84vw, 340px); display: flex; align-items: center; justify-content: center; perspective: 900px; cursor: pointer; }
.op-hint { position: relative; z-index: 2; margin: 0; min-height: 28px; font: 800 19px var(--round); text-shadow: 0 2px 8px rgba(0,0,0,.4); animation: hintPulse 1.6s ease-in-out infinite; }
@keyframes hintPulse { 50% { transform: scale(1.06); opacity: .8; } }
.op-skip { position: absolute; z-index: 3; right: 14px; top: calc(12px + env(safe-area-inset-top)); background: rgba(255,255,255,.18); color: #fff; border: 1.5px solid rgba(255,255,255,.4); border-radius: 999px; padding: 8px 14px; font: 700 15px var(--round); }
.op-parts { position: absolute; inset: 0; pointer-events: none; }
.op-parts i { position: absolute; top: -40px; font-style: normal; opacity: .75; animation: opFall linear infinite; }
@keyframes opFall { to { transform: translateY(115vh) rotate(160deg); } }

/* Décors */
.th-salon { background: radial-gradient(ellipse 90% 45% at 50% 105%, rgba(255,140,40,.55), transparent 70%), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 46px), radial-gradient(circle at 23px 23px, rgba(255,220,180,.18) 3px, transparent 4px) 0 0 / 46px 46px, linear-gradient(#6b2b26, #3d1714); }
.th-cuisine { background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,230,160,.45), transparent 70%), repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 18px, transparent 18px 36px), repeating-linear-gradient(90deg, rgba(168,50,45,.35) 0 18px, transparent 18px 36px), #c9554a; }
.th-soiree { background: radial-gradient(circle at 15% 10%, rgba(255,64,160,.45), transparent 35%), radial-gradient(circle at 85% 15%, rgba(64,200,255,.4), transparent 35%), radial-gradient(circle at 50% 100%, rgba(255,210,60,.35), transparent 45%), #1a0f33; }
.th-nuit { background: radial-gradient(1.5px 1.5px at 20% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 25%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 40% 35%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 85% 8%, #fff 50%, transparent 51%), radial-gradient(ellipse 120% 30% at 50% 100%, #e9f0fb 60%, transparent 61%), linear-gradient(#101a44, #3b3f7a); }
.th-coeurs { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 40%), radial-gradient(circle at 12px 12px, rgba(255,255,255,.18) 2px, transparent 3px) 0 0 / 30px 30px, linear-gradient(160deg, #ff8fb8, #c2367a); }
.th-arcade { background: linear-gradient(transparent 60%, rgba(0,255,220,.12)), repeating-linear-gradient(0deg, rgba(0,255,220,.18) 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, rgba(255,0,200,.16) 0 1px, transparent 1px 34px), radial-gradient(circle at 50% 30%, #2a1f5a, #0b0a1e 70%); }

/* --- Enveloppe --- */
.op-env { position: relative; width: 300px; height: 200px; animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-1deg); } }
.env-back, .env-front, .env-flap { position: absolute; inset: 0; border-radius: 10px; }
.env-back { background: #d9b98a; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.env-front { background: linear-gradient(160deg, #f4e1c1, #e8cfa6); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); z-index: 3; }
.env-flap { background: linear-gradient(#e2c597, #d4b07a); clip-path: polygon(0 0, 100% 0, 50% 58%); transform-origin: top; transition: transform .8s cubic-bezier(.5,0,.3,1); z-index: 4; }
.env-card { position: absolute; left: 18px; right: 18px; top: 14px; height: 170px; background: #fffaf2; border-radius: 8px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--red-dark); font-family: var(--round); transition: transform .9s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 4px 12px rgba(0,0,0,.15); background-image: repeating-linear-gradient(45deg, rgba(168,50,45,.06) 0 8px, transparent 8px 16px); }
.env-card b { font-size: 54px; line-height: 1; } .env-card span { font-weight: 800; } .env-card i { font-size: 13px; color: var(--muted); margin-top: 6px; }
.env-seal { position: absolute; z-index: 5; left: 50%; top: 58%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; border: none; background: radial-gradient(circle at 35% 30%, #d9443c, #8c1d18 70%); color: #ffd9a8; font: 900 22px var(--round); box-shadow: 0 4px 0 #6a1410, 0 8px 14px rgba(0,0,0,.35), inset 0 0 0 5px rgba(0,0,0,.12); animation: sealPulse 1.4s ease-in-out infinite; cursor: pointer; }
@keyframes sealPulse { 50% { transform: scale(1.08); } }
.op-env.s1 .env-seal { animation: sealCrack .4s forwards; }
@keyframes sealCrack { 40% { transform: scale(1.2) rotate(-10deg); } to { transform: scale(.2) rotate(40deg) translateY(60px); opacity: 0; } }
.op-env.s2 { animation: none; }
.op-env.s2 .env-flap { transform: rotateX(180deg); z-index: 1; }
.op-env.s2 .env-card { transform: translateY(-120px); z-index: 4; transition-delay: .35s; }
.op-env.s3 .env-card { transform: translateY(-40px) scale(1.25); z-index: 6; }

/* --- Volets de chalet --- */
.op-win { position: relative; width: 250px; height: 270px; border: 14px solid #6b4a32; border-radius: 120px 120px 10px 10px; background: #3a2a20; transition: transform .6s ease; box-shadow: 0 18px 40px rgba(0,0,0,.4); perspective: 700px; }
.win-light { position: absolute; inset: 0; border-radius: 106px 106px 0 0; background: radial-gradient(circle at 50% 55%, #fff4c9, #ffc65a 45%, #e88a2a); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--red-dark); font-family: var(--round); }
.win-light span { font-size: 64px; } .win-light b { font-size: 40px; }
.win-shutter { position: absolute; top: 0; bottom: 0; width: 50%; background: repeating-linear-gradient(0deg, #8a5a34 0 22px, #74492a 22px 25px); transition: transform 1.2s cubic-bezier(.5,0,.2,1); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 4px #5a3a22; }
.win-shutter i { font-style: normal; color: #3a2414; font-size: 30px; text-shadow: 0 1px 0 rgba(255,255,255,.2); }
.win-shutter.l { left: 0; transform-origin: left; border-radius: 106px 0 0 0; }
.win-shutter.r { right: 0; transform-origin: right; border-radius: 0 106px 0 0; }
.op-win.open .win-shutter.l { transform: rotateY(-150deg); }
.op-win.open .win-shutter.r { transform: rotateY(150deg); }
.op-win.zoom { transform: scale(1.25); }
.win-sill { position: absolute; left: -26px; right: -26px; bottom: -26px; height: 16px; background: #6b4a32; border-radius: 4px; }
.win-snow { position: absolute; left: -30px; right: -30px; bottom: -14px; height: 18px; z-index: 2; background: radial-gradient(circle at 15% 100%, #fff 10px, transparent 11px), radial-gradient(circle at 40% 100%, #fff 13px, transparent 14px), radial-gradient(circle at 70% 100%, #fff 11px, transparent 12px), radial-gradient(circle at 92% 100%, #fff 9px, transparent 10px); }
.op-win:not(.open) { animation: knock 2.4s ease-in-out infinite; }
@keyframes knock { 0%, 85%, 100% { transform: rotate(0); } 90% { transform: rotate(-1.5deg); } 95% { transform: rotate(1.5deg); } }

/* --- Boule à neige --- */
.op-globe { position: relative; width: 240px; height: 290px; display: flex; flex-direction: column; align-items: center; }
.globe { position: relative; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle at 50% 70%, #cfe6ff 0 30%, #7fb0e6 70%, #4a78b8); overflow: hidden; box-shadow: inset 0 -20px 40px rgba(0,0,40,.3), 0 0 0 4px rgba(255,255,255,.5), 0 20px 40px rgba(0,0,0,.35); transition: box-shadow .8s; }
.globe::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -8%; height: 34%; background: #fff; border-radius: 50% 50% 0 0; }
.globe-scene { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); font-size: 74px; z-index: 1; }
.globe-flakes i { position: absolute; left: var(--x); bottom: 14%; width: 6px; height: 6px; border-radius: 50%; background: #fff; z-index: 2; }
.op-globe.stir .globe-flakes i { animation: swirl 2.2s ease-out var(--d) both; }
@keyframes swirl { 30% { transform: translate(var(--tx), var(--ty)); } 100% { transform: translate(calc(var(--tx) * .3), 0); } }
.globe-shine { position: absolute; left: 18%; top: 12%; width: 30%; height: 18%; border-radius: 50%; background: rgba(255,255,255,.45); filter: blur(4px); transform: rotate(-30deg); z-index: 3; }
.globe-base { width: 190px; height: 58px; margin-top: -18px; background: linear-gradient(#8a5a34, #5a3a22); border-radius: 12px 12px 22px 22px; display: flex; align-items: center; justify-content: center; font: 800 18px var(--round); color: #ffd9a8; box-shadow: 0 10px 20px rgba(0,0,0,.35); position: relative; z-index: 2; }
.op-globe.shake { animation: globeShake .5s; }
@keyframes globeShake { 20% { transform: rotate(-12deg) translateX(-10px); } 40% { transform: rotate(10deg) translateX(10px); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
.op-globe.glow .globe { box-shadow: 0 0 0 4px #fff, 0 0 60px 20px rgba(255,236,170,.9); transform: scale(1.08); transition: transform .8s, box-shadow .8s; }

/* --- Paquet cadeau --- */
.op-gift { position: relative; width: 230px; height: 250px; animation: giftWiggle 2s ease-in-out infinite; }
@keyframes giftWiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-4deg) scale(1.02); } 86% { transform: rotate(4deg) scale(1.02); } }
.gift-box { position: absolute; left: 15px; right: 15px; bottom: 0; height: 170px; border-radius: 10px; background: linear-gradient(90deg, transparent 43%, #ffd166 43% 57%, transparent 57%), radial-gradient(circle at 20px 20px, rgba(255,255,255,.25) 4px, transparent 5px) 0 0 / 34px 34px, linear-gradient(#d4473c, #a8322d); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.gift-tag { position: absolute; right: -14px; bottom: 26px; background: #fffaf2; color: var(--red-dark); font: 900 22px var(--round); padding: 6px 12px; border-radius: 6px; transform: rotate(12deg); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.gift-lid { position: absolute; left: 0; right: 0; top: 40px; height: 48px; border-radius: 8px; background: linear-gradient(90deg, transparent 43%, #ffd166 43% 57%, transparent 57%), linear-gradient(#e0574b, #b93a33); box-shadow: 0 6px 10px rgba(0,0,0,.25); transition: transform .9s cubic-bezier(.3,1.5,.5,1); z-index: 2; }
.gift-bow { position: absolute; left: 50%; top: -40px; width: 0; height: 0; transition: transform .4s; }
.gift-bow i { position: absolute; top: 0; width: 56px; height: 40px; border: 10px solid #ffd166; border-radius: 50%; }
.gift-bow i:first-child { right: 0; transform: rotate(-25deg); } .gift-bow i:last-child { left: 0; transform: rotate(25deg); }
.gift-rays { position: absolute; left: 50%; top: 40%; width: 10px; height: 10px; opacity: 0; transition: opacity .6s; background: repeating-conic-gradient(rgba(255,230,140,.75) 0 10deg, transparent 10deg 20deg); border-radius: 50%; transform: translate(-50%, -50%) scale(40); z-index: 0; }
.op-gift.untie { animation: none; }
.op-gift.untie .gift-bow { transform: scale(1.3) rotate(20deg); opacity: .0; transition: transform .4s, opacity .4s; }
.op-gift.open .gift-lid { transform: translateY(-190px) rotate(-28deg); }
.op-gift.open .gift-rays { opacity: 1; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) scale(40) rotate(360deg); } }

/* --- Bouteille --- */
.op-bottle { position: relative; width: 200px; height: 320px; display: flex; justify-content: center; }
.bottle { position: absolute; bottom: 0; width: 110px; height: 250px; background: linear-gradient(90deg, #0f3d2c, #1f6b4f 40%, #0f3d2c); border-radius: 40px 40px 18px 18px; box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 10px 0 0 rgba(255,255,255,.08); transform: rotate(-12deg); transform-origin: bottom; }
.bottle::before { content: ''; position: absolute; left: 34px; right: 34px; top: -70px; height: 90px; background: linear-gradient(90deg, #0f3d2c, #1f6b4f 40%, #0f3d2c); border-radius: 12px 12px 0 0; }
.foil { position: absolute; left: 30px; right: 30px; top: -78px; height: 60px; background: linear-gradient(90deg, #b8862e, #ffd166, #b8862e); border-radius: 10px 10px 4px 4px; }
.cork { position: absolute; left: 38px; right: 38px; top: -104px; height: 32px; background: linear-gradient(90deg, #b07d4a, #d9a66a, #b07d4a); border-radius: 8px 8px 4px 4px; transition: transform .9s cubic-bezier(.2,.8,.3,1), opacity .9s; }
.label { position: absolute; left: 10px; right: 10px; top: 90px; height: 90px; background: #fffaf2; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--red-dark); font-family: var(--round); box-shadow: inset 0 0 0 3px #ffd166; }
.label b { font-size: 40px; line-height: 1; } .label span { font-size: 13px; font-weight: 800; letter-spacing: .2em; }
.op-bottle.shake .bottle { animation: bottleShake .7s; }
@keyframes bottleShake { 20%, 60% { transform: rotate(-20deg); } 40%, 80% { transform: rotate(-4deg); } }
.op-bottle.pop .cork { transform: translate(40px, -340px) rotate(540deg); opacity: 0; }
.foam { position: absolute; left: 50%; top: 0; }
.foam i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff8d6; opacity: 0; }
.op-bottle.pop .foam i { animation: foam 1.2s ease-out var(--d) forwards; }
@keyframes foam { 0% { opacity: 1; transform: translate(0, 10px) scale(.5); } 100% { opacity: 0; transform: translate(var(--x), -120px) scale(1.4); } }
.pop-word { position: absolute; top: 10px; left: 50%; transform: translateX(-50%) scale(0) rotate(-12deg); font: 900 54px var(--round); color: #ffd166; text-shadow: 0 4px 0 #b8862e, 0 0 20px rgba(255,209,102,.8); }
.op-bottle.pop .pop-word { animation: popWord .9s cubic-bezier(.3,1.8,.5,1) forwards; }
@keyframes popWord { to { transform: translateX(-50%) scale(1) rotate(-12deg); } }

/* --- Ticket à déchirer --- */
.op-ticket { position: relative; width: 320px; height: 150px; display: flex; filter: drop-shadow(0 16px 26px rgba(0,0,0,.45)); transform: rotate(-6deg); animation: floaty 3s ease-in-out infinite; }
.tk-main, .tk-stub { background: linear-gradient(135deg, #ffd166, #ff9f5a); color: #2b1d16; position: relative; transition: transform 1s cubic-bezier(.4,0,.2,1), opacity 1s; }
.tk-main { flex: 1; border-radius: 12px 0 0 12px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; font-family: var(--round); -webkit-mask: radial-gradient(circle at 100% 0, transparent 12px, #000 13px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 12px, #000 13px) bottom / 100% 51% no-repeat; }
.tk-main small { font-weight: 800; font-size: 11px; letter-spacing: .12em; } .tk-main b { font-size: 36px; font-weight: 900; } .tk-main span { font-size: 13px; }
.tk-bar { height: 16px; margin-top: 6px; background: repeating-linear-gradient(90deg, #2b1d16 0 2px, transparent 2px 4px, #2b1d16 4px 7px, transparent 7px 9px); opacity: .7; }
.tk-stub { width: 80px; border-radius: 0 12px 12px 0; border-left: 3px dashed rgba(43,29,22,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--round); transform-origin: 0 100%; -webkit-mask: radial-gradient(circle at 0 0, transparent 12px, #000 13px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 12px, #000 13px) bottom / 100% 51% no-repeat; }
.tk-stub b { font-size: 30px; font-weight: 900; }
.op-ticket.tear { animation: none; }
.op-ticket.tear .tk-stub { transform: translate(30px, 140px) rotate(55deg); opacity: 0; }
.op-ticket.go { transform: rotate(0) scale(1.15); transition: transform .5s; }

/* --- Polaroid --- */
.op-pola { transform: rotate(-5deg); }
.pola { width: 240px; padding: 14px 14px 0; background: #fdfdf8; border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.pola-img { --dev: 0; height: 220px; background: linear-gradient(135deg, #2b2d42, #1b1c2b); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pola-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #ffd8a8, #ff9fb2 50%, #a5d8ff); opacity: var(--dev, 0); transition: opacity .8s; }
.op-pola { --dev: 0; }
.op-pola .pola-img::after { opacity: calc(var(--dev) * .8); }
.pola-img span { position: relative; z-index: 1; font-size: 60px; opacity: 0; transition: opacity .8s, transform .8s; }
.pola p { margin: 0; padding: 14px 0 18px; text-align: center; font: 700 22px 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive; color: #2b2d42; }
.op-pola.shake { animation: polaShake .45s; }
@keyframes polaShake { 25% { transform: rotate(-14deg) translateX(-12px); } 50% { transform: rotate(6deg) translateX(12px); } 75% { transform: rotate(-9deg); } }
.op-pola.done .pola-img::after { opacity: 1; } .op-pola.done .pola-img span { opacity: 1; transform: scale(1.3); }
.op-pola.done { transform: rotate(0) scale(1.1); transition: transform .6s; }

/* --- Carnet secret --- */
.op-diary { position: relative; width: 230px; height: 290px; perspective: 1000px; }
.diary-page, .diary-cover { position: absolute; inset: 0; border-radius: 6px 16px 16px 6px; }
.diary-page { background: #fffaf2; background-image: repeating-linear-gradient(transparent 0 27px, #f3c6d6 27px 28px); padding: 30px 20px; color: #8a2a5a; font: 700 18px 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive; box-shadow: 0 16px 34px rgba(0,0,0,.35); }
.diary-page p { margin: 0 0 18px; } .diary-page span { font-size: 40px; }
.diary-cover { background: radial-gradient(circle at 20px 20px, rgba(255,255,255,.2) 3px, transparent 4px) 0 0 / 28px 28px, linear-gradient(135deg, #ff6fa3, #c2367a); transform-origin: left; transition: transform 1.2s cubic-bezier(.5,0,.2,1); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-family: var(--round); box-shadow: inset 10px 0 0 rgba(0,0,0,.12), 0 16px 34px rgba(0,0,0,.35); z-index: 2; backface-visibility: hidden; }
.diary-cover b { font-size: 34px; letter-spacing: .2em; } .diary-cover span { font-size: 16px; opacity: .9; }
.diary-strap { position: absolute; right: -14px; top: 50%; width: 70px; height: 34px; margin-top: -17px; background: #8a2a5a; border-radius: 8px; z-index: 3; transition: transform .5s, opacity .5s; display: flex; align-items: center; justify-content: flex-start; }
.diary-lock { margin-left: -16px; width: 54px; height: 54px; border-radius: 50%; border: 3px solid #ffd166; background: #ffe7a6; font-size: 26px; box-shadow: 0 4px 10px rgba(0,0,0,.3); animation: sealPulse 1.4s infinite; cursor: pointer; }
.op-diary.unlock .diary-strap { transform: translateX(60px) rotate(20deg); opacity: 0; }
.op-diary.open .diary-cover { transform: rotateY(-165deg); }
.op-diary.open { animation: none; transform: translateX(40px); transition: transform 1.2s; }

/* --- Coffre au trésor --- */
.op-chest { position: relative; width: 270px; height: 230px; }
.chest-body { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: repeating-linear-gradient(0deg, #8a5a34 0 30px, #74492a 30px 33px); border-radius: 6px 6px 14px 14px; box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 0 6px #b8862e; }
.chest-lid { position: absolute; left: 0; right: 0; bottom: 124px; height: 80px; background: repeating-linear-gradient(90deg, #8a5a34 0 30px, #74492a 30px 33px); border-radius: 120px 120px 6px 6px; box-shadow: inset 0 0 0 6px #b8862e; transform-origin: bottom; transition: transform 1s cubic-bezier(.3,1.4,.5,1); z-index: 2; }
.band { position: absolute; top: 0; bottom: 0; width: 18px; background: linear-gradient(90deg, #b8862e, #ffd166, #b8862e); }
.band.l { left: 40px; } .band.r { right: 40px; }
.chest-lock { position: absolute; z-index: 3; left: 50%; bottom: 96px; width: 60px; height: 52px; margin-left: -30px; border: none; border-radius: 10px; background: linear-gradient(#ffd166, #b8862e); box-shadow: 0 4px 0 #8a6a1e, 0 8px 14px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; font: 900 20px var(--round); color: #5a3a22; cursor: pointer; animation: sealPulse 1.4s infinite; }
.shackle { position: absolute; left: 12px; right: 12px; top: -26px; height: 34px; border: 8px solid #c9cfd8; border-bottom: none; border-radius: 30px 30px 0 0; transition: transform .5s; }
.op-chest.unlock .shackle { transform: translateY(-14px) rotate(-25deg); transform-origin: right bottom; }
.op-chest.unlock .chest-lock { animation: none; transition: transform .6s .2s, opacity .6s .2s; transform: translateY(60px) rotate(30deg); opacity: 0; }
.op-chest.open .chest-lid { transform: rotateX(70deg) translateY(-30px); }
.chest-glow { position: absolute; left: 50%; bottom: 110px; width: 10px; height: 10px; border-radius: 50%; opacity: 0; background: radial-gradient(circle, #fff6c9, rgba(255,209,102,.6) 40%, transparent 70%); transform: translateX(-50%) scale(1); transition: opacity .6s, transform 1s; }
.op-chest.open .chest-glow { opacity: 1; transform: translateX(-50%) scale(36); }
.diary-strap { right: -40px; width: 64px; }
.diary-cover b { margin-right: 18px; }
.legal a { color: var(--muted); }
.legal-page h2 { font-size: 20px; margin-top: 22px; }
.legal-page ul { padding-left: 20px; } .legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--red); }
.anim-warn { background: #fff4d6; border: 2px solid #f1d39a; border-radius: 12px; padding: 10px 12px; font-size: 15px; margin: 0 0 10px; line-height: 1.4; }
.choice.good { background: #d9f2e3 !important; border-color: var(--pine) !important; color: var(--pine-dark) !important; opacity: 1; }
.choice.bad { background: #fbe0dc !important; border-color: var(--red) !important; color: var(--red-dark) !important; opacity: 1; }
.verdict { position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); background: #fff; border-radius: 999px; padding: 8px 16px; font: 800 18px var(--round); box-shadow: 0 4px 14px rgba(0,0,0,.3); white-space: nowrap; animation: pop .5s ease; }
.verdict.ok { color: var(--pine); } .verdict.ko { color: var(--red); }

/* Appli installée */
.install-card { display: grid; grid-template-columns: 52px 1fr; gap: 10px 12px; align-items: center; background: #fff; border: 2px solid #f1d39a; border-radius: 18px; padding: 12px; margin: 16px 0 4px; box-shadow: 0 3px 0 #e6d6bf; }
.install-card[hidden] { display: none; }
.install-ico img { width: 52px; height: 52px; border-radius: 12px; display: block; }
.install-txt b { display: block; font-family: var(--round); font-size: 17px; }
.install-txt span { font-size: 14px; color: var(--muted); line-height: 1.35; display: block; }
.install-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.install-actions .btn-primary { flex: 1; }
.ios-help ol { padding-left: 20px; margin: 0; } .ios-help li { margin-bottom: 10px; font-size: 18px; }
.ios-share { display: inline-block; border: 2px solid var(--accent, #2f6fe0); color: #2f6fe0; border-radius: 6px; padding: 0 5px; font-weight: 700; }
@media (display-mode: standalone) { .wrap { padding-top: calc(16px + env(safe-area-inset-top)); } }

/* ===== Finition pro : plus net, plus aligné, toujours festif ===== */
:root {
  --display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(43,29,22,.06), 0 2px 8px rgba(43,29,22,.06);
  --shadow-md: 0 2px 4px rgba(43,29,22,.06), 0 10px 28px rgba(43,29,22,.10);
}
body { font-size: 17px; letter-spacing: .005em; }
/* La neige tombe derrière le contenu : jamais sur les textes ni les boutons */
.snowfall { z-index: 0; }
.wrap { position: relative; z-index: 1; }
.snowfall i { opacity: .55 !important; }
/* Titres : une vraie typo de titre, élégante */
.hero-content h1, .wrap > h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.hero-content h1 { font-size: clamp(34px, 9.5vw, 46px); line-height: 1.05; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-content .tagline { font-size: 17px; font-weight: 500 !important; opacity: .95; max-width: 30ch; margin: 6px auto 0; }
.hero-card { min-height: 0; border-radius: 26px; box-shadow: 0 18px 40px -12px rgba(20,32,74,.55); }
.hero-content { padding: 30px 20px min(26vw, 140px); }
.hero-content .logo { font-size: 46px; }
.hero .pill-xmas, .hero-content .pill-xmas { transform: none; font-size: 13px; letter-spacing: .02em; }
/* Question + catégories : grille régulière, cartes alignées */
.q-title { font-size: 21px; margin: 22px 0 12px; letter-spacing: -.01em; }
.stickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sticker { position: relative; transform: none !important; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; min-height: 64px; background: #fff; box-shadow: var(--shadow-sm); font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s; }
.sticker .e { font-size: 24px; letter-spacing: -5px; }
.sticker small { font-size: 11.5px; }
.sticker .tick { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font: 900 13px/22px var(--round); text-align: center; opacity: 0; transform: scale(.5); transition: .18s; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.sticker.on { background: #fff6f2; color: var(--red-dark); border-color: var(--red); box-shadow: 0 0 0 3px rgba(168,50,45,.14), var(--shadow-sm); }
.sticker.on .tick { opacity: 1; transform: scale(1); }
.sticker:active { transform: scale(.97) !important; }
.aud-pitch { font-size: 14.5px; margin-top: 12px; }
/* Le gros bouton photos */
.bigdrop { padding: 26px 18px; border-radius: 22px; box-shadow: 0 5px 0 var(--red-dark), 0 16px 32px -8px rgba(168,50,45,.5); }
.bigdrop strong { font-size: 21px; letter-spacing: -.01em; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
/* Étapes */
.how { gap: 6px; margin: 22px 0 6px; }
.how div { flex: 1; min-width: 0; padding: 10px 6px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 14px; font-size: 13px; }
.how span { font-size: 22px; }
.how i { font-size: 16px; }
/* Boutons : ombres sobres, coins réguliers */
.btn { border-radius: 14px; border-width: 1.5px; font-weight: 700; }
.btn-primary, .btn-pine { box-shadow: 0 3px 0 rgba(0,0,0,.2), 0 8px 18px -6px rgba(0,0,0,.25); }
.btn-small { border-radius: 999px; }
.card { border-radius: 18px; box-shadow: var(--shadow-sm); }
.demos .btn-small { background: #fff; }
/* Écran « C'est prêt » : récapitulatif en tuiles */
.mix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mix-tile { display: flex; flex-direction: column; align-items: center; gap: 1px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; box-shadow: var(--shadow-sm); text-align: center; }
.mix-tile .mi { font-size: 24px; }
.mix-tile b { font: 800 16px var(--round); color: var(--red-dark); }
.mix-tile small { font-size: 11.5px; line-height: 1.2; color: var(--muted); font-weight: 600; }
/* Calendrier reçu */
.cal-stats .pill-xmas, .cal-stats .pill-count { box-shadow: none; font-size: 14px; }
.door { box-shadow: 0 4px 0 rgba(0,0,0,.16), 0 8px 16px -6px rgba(0,0,0,.25); }
.cta-today { border-radius: 18px; }
.mix-tile { flex-direction: row; justify-content: flex-start; gap: 6px; padding: 8px; text-align: left; }
.mix-tile .mi { font-size: 18px; } .mix-tile b { font-size: 14px; } .mix-tile small { font-size: 11px; display: none; }
.mix-grid { grid-template-columns: repeat(3, 1fr); }
.cta-today { font-size: 19px; min-height: 60px; }
.wrap > .progress { height: 8px; }
