/* Sous les flocons — fête de fin d’année, Noël, Nouvel An · vert sapin, rouge, or, crème */
:root {
  --pine: var(--pc-12352c, #12352c); --pine-2: var(--pc-1a4538, #1a4538); --berry: var(--pc-b8322f, #b8322f); --gold: var(--pc-d9b56a, #d9b56a); --cream: var(--pc-fbf5ea, #fbf5ea);
  --bg: var(--pine); --ink: var(--cream); --muted: color-mix(in srgb, var(--cream) 66%, transparent);
  --accent: var(--gold); --accent-ink: var(--pine); --accent-soft: color-mix(in srgb, var(--gold) 14%, transparent);
  --card: var(--pine-2); --line: color-mix(in srgb, var(--gold) 24%, transparent);
  --font-display: "Playfair Display", Georgia, serif; --font-body: "Inter", sans-serif; --radius: 16px;
}
body { background: var(--pine); background-image: radial-gradient(circle at 20% 10%, rgba(255,255,255,.07) 0 1.5px, transparent 2px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.06) 0 1.2px, transparent 1.8px); background-size: 90px 90px, 130px 130px; }
.title em { color: var(--gold); }
.eyebrow { color: color-mix(in srgb, var(--gold) 90%, #fff); }
.hero { display: grid; place-items: center; min-height: 92vh; padding: 60px 20px; }
.ff-hero { position: relative; width: min(100%, 460px); padding: 44px 26px 42px; border-radius: 28px; text-align: center; background: radial-gradient(120% 80% at 50% 0%, var(--pc-22594a, #22594a), var(--pine-2) 60%); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.35), inset 0 0 0 6px color-mix(in srgb, var(--berry) 30%, transparent); }
.ff-hero__star { display: block; margin-bottom: 10px; color: var(--gold); font-size: 26px; text-shadow: 0 0 16px color-mix(in srgb, var(--pc-d9b56a, #d9b56a) 80%, transparent); }
.hero__title { margin: 0; font: 600 clamp(32px, 9vw, 50px)/1.05 var(--font-display); color: var(--cream); }
.hero__name { margin: 12px 0 0; color: var(--gold); font: italic 400 clamp(18px, 5vw, 23px)/1.2 var(--font-display); }
.hero__quote { margin: 0 auto 18px; max-width: 360px; color: var(--muted); font-size: 14px; }
.hero__date { margin: 0; color: var(--gold); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.k-count > div { background: var(--berry); border-color: transparent; }
.k-count strong { color: #fff; } .k-count small { color: rgba(255,255,255,.75); }
.k-card { border-top: 3px solid var(--berry); }
.k-field select { background: var(--pine); }
.k-btn--solid { background: var(--berry); color: #fff; }
html { scrollbar-width: thin; scrollbar-color: var(--pc-d9b56a, #d9b56a) transparent; }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-thumb { background: var(--pc-d9b56a, #d9b56a); border-radius: 6px; }

/* ───────── Ouverture : neige, guirlande lumineuse, cadeau dont le couvercle s’envole, pluie d’étoiles dorées ───────── */
.ff-intro { background: radial-gradient(100% 75% at 50% 35%, var(--pc-1f5545, #1f5545) 0%, var(--pine) 55%, var(--pc-08201a, #08201a) 100%); color: var(--cream); text-align: center; isolation: isolate; }
.ff-glow { position: absolute; left: 50%; top: 64%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--pc-ffd68c, #ffd68c) 32%, transparent) 0, transparent 50%); animation: ffGlow 4s ease-in-out infinite; }
.ff-lights { position: absolute; left: -4%; right: -4%; top: 0; z-index: 1; height: 70px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.ff-lights::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46px; border-bottom: 1.5px solid color-mix(in srgb, var(--pc-141e19, #141e19) 90%, transparent); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.ff-lights i { position: relative; width: 10px; height: 14px; margin-top: calc(20px + var(--o, 0) * 1px); border-radius: 50% 50% 45% 45%; background: var(--pc-ffd27a, #ffd27a); box-shadow: 0 0 12px 4px color-mix(in srgb, var(--pc-ffd27a, #ffd27a) 70%, transparent); animation: ffTwinkle 1.6s ease-in-out infinite; }
.ff-lights i:nth-child(3n) { background: var(--pc-ff6b5e, #ff6b5e); box-shadow: 0 0 12px 4px color-mix(in srgb, var(--pc-ff6b5e, #ff6b5e) 60%, transparent); animation-delay: -.5s; } .ff-lights i:nth-child(3n+1) { background: var(--pc-9fe0c3, #9fe0c3); box-shadow: 0 0 12px 4px color-mix(in srgb, var(--pc-9fe0c3, #9fe0c3) 60%, transparent); animation-delay: -1s; }
.ff-lights i:nth-child(1){--o:0}.ff-lights i:nth-child(2){--o:9}.ff-lights i:nth-child(3){--o:16}.ff-lights i:nth-child(4){--o:21}.ff-lights i:nth-child(5){--o:24}.ff-lights i:nth-child(6){--o:26}.ff-lights i:nth-child(7){--o:27}.ff-lights i:nth-child(8){--o:26}.ff-lights i:nth-child(9){--o:24}.ff-lights i:nth-child(10){--o:21}.ff-lights i:nth-child(11){--o:16}.ff-lights i:nth-child(12){--o:9}.ff-lights i:nth-child(13){--o:0}
.ff-snow { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.ff-snow i { position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .85; filter: blur(.4px); animation: ffSnow 9s linear infinite; }
.ff-snow i:nth-child(odd) { width: 4px; height: 4px; opacity: .6; animation-duration: 12s; }
.ff-snow i:nth-child(1){left:3%;animation-delay:-1s}.ff-snow i:nth-child(2){left:8%;animation-delay:-5s}.ff-snow i:nth-child(3){left:13%;animation-delay:-2s}.ff-snow i:nth-child(4){left:18%;animation-delay:-7s}.ff-snow i:nth-child(5){left:23%;animation-delay:-3s}.ff-snow i:nth-child(6){left:28%;animation-delay:-8s}.ff-snow i:nth-child(7){left:33%;animation-delay:-4s}.ff-snow i:nth-child(8){left:38%;animation-delay:-6s}.ff-snow i:nth-child(9){left:43%;animation-delay:-.5s}.ff-snow i:nth-child(10){left:48%;animation-delay:-9s}.ff-snow i:nth-child(11){left:53%;animation-delay:-2.5s}.ff-snow i:nth-child(12){left:58%;animation-delay:-6.5s}.ff-snow i:nth-child(13){left:63%;animation-delay:-1.5s}.ff-snow i:nth-child(14){left:68%;animation-delay:-7.5s}.ff-snow i:nth-child(15){left:73%;animation-delay:-3.5s}.ff-snow i:nth-child(16){left:78%;animation-delay:-8.5s}.ff-snow i:nth-child(17){left:83%;animation-delay:-4.5s}.ff-snow i:nth-child(18){left:88%;animation-delay:-5.5s}.ff-snow i:nth-child(19){left:93%;animation-delay:-.2s}.ff-snow i:nth-child(20){left:97%;animation-delay:-10s}.ff-snow i:nth-child(21){left:6%;animation-delay:-11s}.ff-snow i:nth-child(22){left:31%;animation-delay:-10.5s}.ff-snow i:nth-child(23){left:56%;animation-delay:-9.5s}.ff-snow i:nth-child(24){left:76%;animation-delay:-11.5s}.ff-snow i:nth-child(25){left:46%;animation-delay:-4.2s}.ff-snow i:nth-child(26){left:91%;animation-delay:-2.2s}
.ff-gift { position: absolute; left: 50%; top: 64%; z-index: 3; width: min(46vw, 190px); aspect-ratio: 1; transform: translate(-50%, -50%); animation: ffBob 3.2s ease-in-out infinite; }
.ff-box { position: absolute; left: 4%; right: 4%; bottom: 0; height: 74%; border-radius: 6px; background: linear-gradient(160deg, var(--pc-d0423c, #d0423c), var(--berry) 55%, var(--pc-7f1f1d, #7f1f1d)); box-shadow: 0 24px 40px rgba(0,0,0,.45), inset 0 -10px 20px rgba(0,0,0,.2); }
.ff-box__band, .ff-lid__band { position: absolute; left: 50%; top: 0; bottom: 0; width: 16%; transform: translateX(-50%); background: linear-gradient(90deg, var(--pc-b8913f, #b8913f), var(--pc-f1d590, #f1d590) 50%, var(--pc-b8913f, #b8913f)); }
.ff-tag { position: absolute; right: -12%; top: 26%; padding: 6px 10px; border-radius: 4px; background: var(--cream); color: var(--pine); font: italic 400 12px/1.2 var(--font-display); transform: rotate(8deg); box-shadow: 0 6px 12px rgba(0,0,0,.3); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-lid { position: absolute; left: 0; right: 0; top: 18%; z-index: 2; height: 16%; border-radius: 5px; background: linear-gradient(160deg, var(--pc-e2504a, #e2504a), var(--pc-a92b29, #a92b29)); box-shadow: 0 6px 12px rgba(0,0,0,.35); transition: transform 1s cubic-bezier(.3,1.4,.5,1) .55s, opacity .6s ease 1.2s; }
.ff-bow { position: absolute; left: 50%; bottom: 80%; width: 80px; height: 46px; transform: translateX(-50%); transition: transform .6s ease .1s, opacity .5s ease .3s; }
.ff-bow i { position: absolute; bottom: 0; width: 40px; height: 34px; border-radius: 60% 40% 50% 50%; background: radial-gradient(circle at 30% 40%, var(--pc-f6dc98, #f6dc98), var(--gold) 60%, var(--pc-9f7a33, #9f7a33)); box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.ff-bow i:first-child { left: -2px; transform: rotate(-22deg); } .ff-bow i:nth-child(2) { right: -2px; transform: rotate(22deg) scaleX(-1); }
.ff-bow b { position: absolute; left: 50%; bottom: 2px; width: 16px; height: 16px; border-radius: 5px; transform: translateX(-50%); background: var(--pc-c79c48, #c79c48); }
.ff-burst { position: absolute; left: 50%; top: 35%; width: 0; height: 0; z-index: 1; }
.ff-burst i { position: absolute; width: 10px; height: 10px; opacity: 0; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.ff-burst i:nth-child(odd) { background: var(--pc-fff6dc, #fff6dc); width: 7px; height: 7px; }
.ff-shine { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 55%, var(--pc-fff8e6, #fff8e6) 0%, color-mix(in srgb, var(--pc-ffe2a0, #ffe2a0) 85%, transparent) 25%, color-mix(in srgb, var(--pc-d9b56a, #d9b56a) 30%, transparent) 55%, transparent 80%); }
.ff-intro .intro__inner { position: absolute; left: 0; right: 0; top: max(15%, 90px); z-index: 4; display: grid; justify-items: center; padding: 0 24px; transition: opacity .35s ease; }
.ff-kicker { margin: 0 0 10px; color: var(--gold); font: 600 10.5px/1 var(--font-body); letter-spacing: .38em; text-transform: uppercase; animation: ffIn 1s .1s both; }
.ff-title { margin: 0; font: 600 clamp(32px, 10vw, 52px)/1.02 var(--font-display); color: var(--cream); text-shadow: 0 4px 24px rgba(0,0,0,.45); animation: ffIn 1s .3s both; }
.ff-date { margin: 10px 0 0; color: color-mix(in srgb, var(--cream) 78%, transparent); font: 600 10.5px/1.4 var(--font-body); letter-spacing: .28em; text-transform: uppercase; animation: ffIn 1s .5s both; }
.ff-btn { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: max(7%, 46px); z-index: 4; min-height: 50px; padding: 0 28px; border: 1px solid var(--gold); border-radius: 999px; background: var(--berry); color: #fff; font: 700 11px/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; cursor: pointer; box-shadow: 0 12px 28px rgba(0,0,0,.4), 0 0 24px color-mix(in srgb, var(--pc-d9b56a, #d9b56a) 35%, transparent); white-space: nowrap; animation: ffIn 1s .7s both; }
/* Ouverture : le nœud se défait, le couvercle s’envole, pluie d’étoiles et lumière dorée. */
html.is-opening .ff-intro .intro__inner, html.is-opening .ff-btn { opacity: 0; transition: opacity .3s; }
html.is-opening .ff-gift { animation: none; }
html.is-opening .ff-bow { transform: translateX(-50%) scale(1.4) rotate(20deg); opacity: 0; }
html.is-opening .ff-lid { transform: translate(40px, -60vh) rotate(38deg); opacity: 0; }
html.is-opening .ff-burst i { animation: ffStar 1.6s cubic-bezier(.15,.7,.3,1) .7s both; }
html.is-opening .ff-shine { animation: ffShine 1.4s ease 1.1s both; }
html.is-open .ff-intro .intro__inner { opacity: 0; }
.ff-burst i:nth-child(1){--x:-150px;--y:-260px}.ff-burst i:nth-child(2){--x:140px;--y:-280px}.ff-burst i:nth-child(3){--x:-210px;--y:-140px}.ff-burst i:nth-child(4){--x:200px;--y:-160px}.ff-burst i:nth-child(5){--x:-70px;--y:-330px}.ff-burst i:nth-child(6){--x:80px;--y:-320px}.ff-burst i:nth-child(7){--x:-240px;--y:-40px}.ff-burst i:nth-child(8){--x:235px;--y:-60px}.ff-burst i:nth-child(9){--x:-20px;--y:-230px}.ff-burst i:nth-child(10){--x:30px;--y:-200px}.ff-burst i:nth-child(11){--x:-120px;--y:-210px}.ff-burst i:nth-child(12){--x:120px;--y:-220px}.ff-burst i:nth-child(13){--x:-180px;--y:-300px}.ff-burst i:nth-child(14){--x:175px;--y:-310px}.ff-burst i:nth-child(15){--x:-95px;--y:-120px}.ff-burst i:nth-child(16){--x:100px;--y:-110px}.ff-burst i:nth-child(17){--x:0px;--y:-380px}.ff-burst i:nth-child(18){--x:-260px;--y:-220px}.ff-burst i:nth-child(19){--x:255px;--y:-230px}.ff-burst i:nth-child(20){--x:10px;--y:-150px}
@keyframes ffGlow { 50% { opacity: .7; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes ffTwinkle { 50% { opacity: .45; } }
@keyframes ffSnow { to { transform: translate(-30px, 110vh); } }
@keyframes ffBob { 50% { transform: translate(-50%, calc(-50% - 6px)) rotate(-1.5deg); } }
@keyframes ffIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; } }
@keyframes ffStar { 0% { opacity: 0; transform: translate(0,0) scale(.4) rotate(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.3) rotate(220deg); } }
@keyframes ffShine { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .ff-snow, .ff-lights i, .ff-gift, .ff-glow { animation: none !important; } }
