@font-face { font-family: "Lemon Milk"; font-weight: 700; font-display: swap; src: url("../fonts/2559Lemon-Milk-Bold.woff2") format("woff2"); }
@font-face { font-family: "Lemon Milk"; font-weight: 400; font-display: swap; src: url("../fonts/5106Lemon-Milk-Regular.woff2") format("woff2"); }

:root {
  --gold: #E8BC28;
  --gold-hi: #f6c000;
  --gold-soft: #fbf3d6;
  --black: #0b0b0b;
  --night: #121417;
  --night-2: #1b1e22;
  --fir: #11392c;
  --red: #c0443a;
  --ink: #1a1a1a;
  --line: #e7e4e0;
  --cream: #f6f4f0;
  --radius: 18px;
  --display: "Lemon Milk", "Montserrat", Arial, sans-serif;
  --body: "Montserrat", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: #fff; background: var(--black); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.14; margin: 0 0 .5em; }
h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.9rem, 4.4vw, 3.3rem); }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.3vw, 2.3rem); text-transform: uppercase; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.eyebrow { font-weight: 700; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .9em; }
.hl { color: var(--gold); }
.muted { color: rgba(255,255,255,.6); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.test-banner { background: repeating-linear-gradient(45deg, #c0443a 0 14px, #a4382f 14px 28px); color: #fff; font-size: .8rem; font-weight: 700; padding: 7px 14px; letter-spacing: .02em; position: relative; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; }
.test-banner a, .test-banner button { color: #fff; }
.test-banner form { display: inline-flex; gap: 6px; align-items: center; }
.test-banner input { font: inherit; color: #1a1a1a; padding: 2px 6px; border-radius: 6px; border: 0; }
.test-banner__warn { background: #fff; color: #a4382f; border-radius: 99px; padding: 2px 12px; }
.test-banner__ok { background: #0f5132; color: #fff; border-radius: 99px; padding: 2px 12px; }

/* ---------- Boutons ---------- */
.btn { --bg: var(--gold); --bg-hi: var(--gold-hi); --fg: var(--black); display: inline-flex; align-items: center; justify-content: center; gap: .6em; border: 0; border-radius: 999px; background: var(--bg); color: var(--fg); font: 700 .86rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 1.05em 1.8em; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s; }
/* Le survol ne touche qu'à la variable de fond : chaque variante garde un texte lisible */
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0,0,0,.6); background: var(--bg-hi); color: var(--fg); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn--ghost { --bg: transparent; --bg-hi: rgba(255,255,255,.14); --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn--dark { --bg: var(--black); --bg-hi: #242424; --fg: #fff; }
.btn--xl { font-size: .95rem; padding: 1.15em 2.1em; }
.btn--sm { font-size: .72rem; padding: .8em 1.25em; letter-spacing: .07em; }
.btn--full { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Neige ---------- */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.snow i { position: absolute; top: -10vh; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .55; filter: blur(.4px); animation: fall linear infinite; }
@keyframes fall { to { transform: translate3d(var(--dx, 20px), 110vh, 0); } }

/* ---------- Topbar ---------- */
.topbar { position: relative; z-index: 10; }
.topbar__in { display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.topbar__logo img { width: 108px; height: auto; }
.badge-noel { display: inline-flex; align-items: center; gap: 6px; background: rgba(232,188,40,.16); border: 1px solid rgba(232,188,40,.5); color: var(--gold); border-radius: 999px; padding: 5px 13px; font: 700 .72rem var(--body); letter-spacing: .1em; text-transform: uppercase; }
.topbar__nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.topbar__nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; font-size: .85rem; opacity: .82; }
.topbar__nav a:not(.btn):hover { opacity: 1; color: var(--gold); }
@media (max-width: 820px) { .topbar__nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 26px 0 40px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -140px 0 auto; height: 620px; z-index: -1; background:
  radial-gradient(900px 420px at 50% 0%, rgba(232,188,40,.22), transparent 70%),
  radial-gradient(600px 340px at 85% 20%, rgba(17,57,44,.55), transparent 70%); }
.hero__in { text-align: center; max-width: 820px; margin-inline: auto; }
.hero h1 span { color: var(--gold); display: block; }
.hero__lead { font-size: 1.06rem; color: rgba(255,255,255,.78); max-width: 38em; margin-inline: auto; }
.hero__lead strong { color: #fff; }

.status { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 12px 22px; margin: 6px 0 18px; font-size: .9rem; }
.status b { color: var(--gold); font-variant-numeric: tabular-nums; }
.status__sep { width: 1px; height: 18px; background: rgba(255,255,255,.18); }
@media (max-width: 560px) { .status { border-radius: 16px; flex-direction: column; gap: 6px; } .status__sep { display: none; } }

.progress { max-width: 460px; margin: 0 auto 10px; }
.progress__bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #fff0b8); transition: width .6s ease; }
.progress__label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin: 8px 0 0; font-weight: 600; }

/* ---------- Calendrier ---------- */
.calendar-section { padding: 10px 0 60px; position: relative; z-index: 2; }
.calendar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
@media (max-width: 1000px) { .calendar { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px) { .calendar { grid-template-columns: repeat(3, 1fr); gap: 10px; } }

.door { display: block; width: 100%; position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; perspective: 900px; border-radius: 16px; }
.calendar > li { display: block; min-width: 0; }
.door:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.door__panel, .door__inside { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; overflow: hidden; }

/* Face fermée */
.door__panel { background: linear-gradient(160deg, var(--night-2), #0d0f11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 14px 30px -18px rgba(0,0,0,.9); transform-origin: left center; transition: transform .75s cubic-bezier(.3,.8,.2,1), box-shadow .3s; backface-visibility: hidden; }
.door__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(255,255,255,.1), transparent 55%); }
.door__no { font: 700 clamp(1.4rem, 3vw, 2.1rem)/1 var(--display); color: rgba(255,255,255,.85); }
.door__badge { position: absolute; bottom: 10px; font-size: .95rem; color: rgba(255,255,255,.35); }
.door__ribbon { position: absolute; inset: 0; }
.door__ribbon::before, .door__ribbon::after { content: ""; position: absolute; background: rgba(232,188,40,.18); }
.door__ribbon::before { inset: 0 calc(50% - 5px); }
.door__ribbon::after { inset: calc(50% - 5px) 0; }

/* Intérieur (lot) */
.door__inside { background: linear-gradient(170deg, #fffdf6, #f3e7c3); color: var(--ink); padding: 10px 8px; text-align: center; gap: 4px; align-content: center; }
.door__inside svg { font-size: 1.5rem; color: #b08a0d; }
.door__prize { font-size: .74rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.door__day { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: #8a7230; font-weight: 700; }

/* États */
.door--future .door__panel { background: linear-gradient(160deg, #15171a, #0b0c0e); }
.door--future .door__no { color: rgba(255,255,255,.3); }
.door--future { cursor: not-allowed; }
.door--past .door__no { color: rgba(255,255,255,.5); }
.door--past .door__panel { opacity: .9; }
.door--missable .door__badge { color: rgba(232,188,40,.6); }

.door--today .door__panel { background: linear-gradient(160deg, #2a2208, #0f0d06); box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 4px rgba(232,188,40,.18), 0 18px 40px -20px rgba(232,188,40,.6); animation: pulse 2.2s ease-in-out infinite; }
.door--today .door__no { color: var(--gold); }
.door--today .door__badge { color: var(--gold); }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 9px rgba(232,188,40,.12), 0 18px 46px -18px rgba(232,188,40,.75); } }

.door.is-open .door__panel { transform: rotateY(-108deg); box-shadow: none; }
.door--won .door__inside { background: linear-gradient(170deg, #ffd95c, var(--gold)); }
.door--won::after { content: "🏆"; position: absolute; top: -8px; right: -6px; font-size: 1.3rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }

.calendar__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.calendar__legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }
.dot--today { background: var(--gold); }
.dot--open { background: #f3e7c3; }
.dot--future { background: #2a2d31; }

.cta-band { text-align: center; background: linear-gradient(140deg, rgba(232,188,40,.14), rgba(17,57,44,.35)); border: 1px solid rgba(232,188,40,.3); border-radius: var(--radius); padding: 26px 22px; margin-bottom: 30px; }
.cta-band h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.2rem; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 48em; margin-inline: auto; }

/* ---------- Espace participant ---------- */
.space { background: var(--cream); color: var(--ink); padding: 56px 0; position: relative; z-index: 2; }
.space .muted, .modal__box .muted { color: #5f5f5f; }
.space h2, .space h3 { color: var(--ink); }
.space .eyebrow { color: #a8840f; }
.space__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .space__grid { grid-template-columns: 1fr; } }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.counter { display: flex; align-items: baseline; gap: 12px; }
.counter b { font: 700 3rem/1 var(--display); color: var(--gold); }
.counter span { font-weight: 600; color: #555; }
.wins { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.wins li { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-soft); border: 1px solid rgba(232,188,40,.5); border-radius: 12px; padding: 12px 14px; }
.wins svg { color: #b08a0d; font-size: 1.3rem; margin-top: 2px; }
.wins b { display: block; }
.mini-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-list li { font-size: .78rem; font-weight: 700; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; color: #555; }

/* ---------- Comment ça marche ---------- */
.how { padding: 60px 0; background: var(--night); position: relative; z-index: 2; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px 22px; }
.steps__n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--black); font: 700 1.1rem var(--display); margin-bottom: 14px; }
.steps p { color: rgba(255,255,255,.72); margin: 0; }

/* ---------- Lots / preuve ---------- */
.prizes { padding: 60px 0; position: relative; z-index: 2; }
.prizes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.prize-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 20px; }
.prize-card svg { color: var(--gold); font-size: 1.6rem; margin-bottom: 10px; }
.prize-card b { display: block; margin-bottom: 4px; }
.prize-card span { color: rgba(255,255,255,.65); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { padding: 60px 0 70px; background: var(--night); position: relative; z-index: 2; }
.faq details { border-bottom: 1px solid rgba(255,255,255,.12); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: rgba(255,255,255,.72); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--black); padding: 40px 0; border-top: 1px solid rgba(255,255,255,.1); position: relative; z-index: 2; }
.footer__in { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: .86rem; color: rgba(255,255,255,.6); }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* ---------- Formulaires & modales ---------- */
.modal { border: 0; padding: 0; background: none; max-width: 520px; width: calc(100% - 28px); }
.modal::backdrop { background: rgba(5,5,5,.76); backdrop-filter: blur(3px); }
.modal__box { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px 26px 26px; position: relative; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.modal__box h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; }
.modal__box p { color: #4a4a4a; }
.modal__close { position: absolute; top: 10px; right: 10px; }
.modal__close button { background: var(--cream); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: #555; display: grid; place-items: center; }
.modal__close button:hover { background: #ece8e1; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-size: .82rem; font-weight: 700; color: #333; }
.form input[type=text], .form input[type=email], .form input[type=tel] { padding: 12px 14px; border: 1px solid #cfcac2; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .form__row { grid-template-columns: 1fr; } }
.seg { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.seg legend { font-size: .82rem; font-weight: 700; color: #333; padding: 0; margin-bottom: 2px; }
.seg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg__opts label { position: relative; display: block; font-weight: 600; font-size: .88rem; color: var(--ink); }
.seg__opts input { position: absolute; opacity: 0; inset: 0; }
.seg__opts span { display: block; text-align: center; padding: 12px 8px; border: 1px solid #cfcac2; border-radius: 10px; cursor: pointer; }
.seg__opts input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.seg__opts input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: .82rem !important; color: #4a4a4a !important; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--gold); flex: none; }
.check a { color: #a8840f; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__error { background: #fde4e1; color: #a1382d; border-radius: 10px; padding: 10px 13px; font-size: .86rem; font-weight: 600; margin: 0; }
.form__ok { background: #dff3e6; color: #1d6b3d; border-radius: 10px; padding: 10px 13px; font-size: .86rem; font-weight: 600; margin: 0; }
.form__legal { font-size: .74rem; color: #6f6f6f; margin: 0; }

/* Révélation du lot */
.reveal { text-align: center; }
.reveal__tag { display: inline-block; background: var(--gold); color: var(--black); font: 700 .7rem var(--body); letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; }
.reveal__day { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #6f6f6f; font-weight: 700; }
.reveal h3 { font-size: 1.5rem; margin: 6px 0 10px; }
.reveal__img { border-radius: 14px; margin: 0 auto 14px; max-height: 190px; width: auto; }
.reveal__icon { font-size: 3rem; color: var(--gold); margin-bottom: 8px; }
.reveal__value { display: inline-block; background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 10px; padding: 6px 14px; font-weight: 700; font-size: .85rem; color: #8a6a00; }
.reveal__note { background: var(--cream); border-radius: 10px; padding: 12px 14px; font-size: .88rem; color: #555; text-align: left; }
.reveal__state { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: .9rem; color: #1d6b3d; background: #dff3e6; border-radius: 10px; padding: 11px 14px; }
.reveal__state--off { color: #8a6a00; background: var(--gold-soft); }
.reveal__state--won { color: #8a6a00; background: linear-gradient(120deg, var(--gold-soft), #fff); border: 1px solid var(--gold); }

/* ---------- Toast & confettis ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%); background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; padding: 13px 20px; border-radius: 999px; box-shadow: 0 20px 44px -16px rgba(0,0,0,.6); z-index: 60; transition: transform .35s cubic-bezier(.2,.9,.2,1); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 55; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snow, .confetti { display: none; }
  .door__panel { transition: none; }
  .door--today .door__panel { animation: none; }
}

/* Case passée consultable (lot visible) mais dont le tirage est clos */
.door--missable .door__inside { filter: grayscale(.45); opacity: .72; }
.door--missable .door__inside::after { content: "tirage clos"; position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 3px 2px; }
