/* I HAVE A DRINK — Black Week */
:root {
  --night: #1b0708;      /* rouge presque noir, fond */
  --night-2: #2a0b0d;
  --red: #86191C;        /* rouge du bandeau du site */
  --red-hi: #b3262b;
  --kraft: #C8B299;      /* beige kraft du site */
  --kraft-l: #e9dccb;
  --gold: #f2cf6b;
  --gold-d: #b8872c;
  --ink: #141010;
  --muted: #b9a594;
  --display: "Anton", "TeX Gyre Heros Cn", "Arial Narrow", Impact, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.5 var(--sans);
  color: var(--kraft-l);
  background:
    radial-gradient(90% 60% at 50% 0%, #4a0e11 0%, rgba(74,14,17,0) 70%),
    repeating-conic-gradient(from 0deg at 50% -10%, rgba(255,255,255,.025) 0deg 6deg, transparent 6deg 12deg),
    var(--night);
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- En-tête ---------- */
.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1080px; margin: 0 auto;
  padding: 16px; padding-top: max(16px, env(safe-area-inset-top));
}
.brand { font: 400 20px/1 var(--display); letter-spacing: .06em; text-decoration: none; color: var(--kraft); }
.dates { font-size: 14px; color: var(--muted); }

/* ---------- Titre ---------- */
.hero { text-align: center; padding: 12px 0 26px; }
.title {
  margin: 0;
  font: 400 clamp(64px, 17vw, 150px)/.86 var(--display);
  letter-spacing: .01em;
  background: linear-gradient(180deg, #fff6d0 0%, #f6d77a 38%, #c9952e 56%, #f3d27a 80%, #fff1c2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #4a0709) drop-shadow(0 7px 0 #2a0405) drop-shadow(0 14px 18px rgba(0,0,0,.6));
}
.title span { display: inline-block; margin-left: .18em; }
.tagline { margin: 18px 0 0; font: 400 clamp(26px, 5.5vw, 40px)/1.1 var(--display); color: #fff3dc; letter-spacing: .01em; }
.pitch { margin: 10px auto 0; max-width: 34ch; font-size: 17px; color: var(--kraft); }

/* ---------- Cadre d'ampoules ---------- */
.marquee {
  position: relative;
  border-radius: 22px;
  padding: 30px 22px 26px;
  background: radial-gradient(120% 90% at 30% 20%, #a3222a 0%, var(--red) 45%, #5b0f13 100%);
  box-shadow: 0 0 0 3px var(--gold-d), 0 0 0 6px #3a0a0c, 0 30px 60px rgba(0,0,0,.55);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; inset: 7px; border-radius: 16px; pointer-events: none;
  --b: radial-gradient(circle, #fff6d6 0 2.6px, rgba(255,233,168,.35) 3.2px, transparent 6px);
}
.marquee::before {
  background: var(--b) 0 0 / 24px 12px repeat-x, var(--b) 0 100% / 24px 12px repeat-x,
              var(--b) 0 0 / 12px 24px repeat-y, var(--b) 100% 0 / 12px 24px repeat-y;
  animation: blink 1.2s steps(1) infinite;
}
.marquee::after {
  background: var(--b) 12px 0 / 24px 12px repeat-x, var(--b) 12px 100% / 24px 12px repeat-x,
              var(--b) 0 12px / 12px 24px repeat-y, var(--b) 100% 12px / 12px 24px repeat-y;
  animation: blink 1.2s steps(1) infinite .6s;
}
@keyframes blink { 0% { opacity: 1; } 50% { opacity: .15; } }
@media (min-width: 760px) { .marquee { padding: 40px 44px 36px; } }

/* ---------- Le vin du jour ---------- */
.deal { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .deal { grid-template-columns: 260px 1fr; gap: 40px; } }
.bottle {
  position: relative; display: grid; place-items: center;
  height: 300px; border-radius: 14px;
  background: radial-gradient(60% 55% at 50% 45%, #fff 0%, #f1e8dc 60%, #d9cbb7 100%);
}
.bottle img { max-height: 280px; max-width: 90%; object-fit: contain; }
@media (max-width: 759px) { .bottle { height: 210px; } .bottle img { max-height: 190px; } .bottle .stamp { font-size: 34px; bottom: 14px; } }
.bottle .stamp {
  position: absolute; inset: auto 10px 22px; transform: rotate(-8deg);
  font: 400 44px/1 var(--display); text-align: center; letter-spacing: .04em;
  color: var(--red); border: 4px solid var(--red); border-radius: 8px; padding: 6px 0 2px;
  background: rgba(255,255,255,.8);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.28); color: var(--kraft-l); }
.tag.gold { background: var(--gold); color: #3a0608; }
.deal h2 { margin: 0; font: 400 clamp(30px, 6.5vw, 46px)/1.02 var(--display); letter-spacing: .01em; color: #fff3dc; }
.deal .detail { margin: 6px 0 0; color: var(--kraft); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 4px; }
.price-now { font: 400 clamp(56px, 14vw, 84px)/.9 var(--display); color: var(--gold); text-shadow: 0 3px 0 #3a0608; }
.price-now small { font-size: .42em; margin-left: .15em; }
.price-old { font-size: 20px; color: var(--kraft); text-decoration: line-through; text-decoration-thickness: 2px; }
.price-off { font: 800 16px/1 var(--sans); background: var(--kraft); color: var(--red); padding: 6px 9px; border-radius: 6px; transform: rotate(-3deg); }
.countdown { margin: 10px 0 0; font-size: 17px; color: #fff3dc; }
.countdown strong { color: #fff3dc; }
.countdown b { font-variant-numeric: tabular-nums; color: var(--gold); font-size: 20px; }

.stock { margin-top: 16px; }
.stock-text { font-size: 15px; margin-bottom: 6px; }
.stock-text strong { color: #fff3dc; font-size: 17px; }
.gauge { height: 10px; border-radius: 999px; background: rgba(0,0,0,.35); overflow: hidden; }
.gauge i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-d), var(--gold)); transition: width .6s ease; }

.cta {
  display: inline-block; margin-top: 22px;
  padding: 16px 30px; border-radius: 999px;
  font: 800 18px/1.2 var(--sans); text-decoration: none; color: #3a0608;
  background: linear-gradient(180deg, #ffe69a, #e9b545 55%, #c98f22);
  box-shadow: 0 4px 0 #8a5a12, 0 12px 24px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.6);
  transition: transform .1s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta:active { transform: translateY(2px); box-shadow: 0 2px 0 #8a5a12, 0 6px 14px rgba(0,0,0,.4); }
.cta.ghost { background: transparent; color: var(--kraft-l); box-shadow: inset 0 0 0 2px var(--kraft); }

/* Échelle des prix */
.ladder { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ladder li { text-align: center; padding: 8px 2px 7px; border-radius: 8px; background: rgba(0,0,0,.22); }
.ladder .t { display: block; font-size: 12px; color: var(--muted); }
.ladder .p { display: block; font: 400 19px/1.15 var(--display); color: var(--kraft-l); }
.ladder .o { display: block; font-size: 11px; color: var(--muted); }
.ladder li.now .o { color: #6e1216; font-weight: 700; }
.ladder li.past { opacity: .4; }
.ladder li.past .p { text-decoration: line-through; }
.ladder li.now { background: var(--gold); }
.ladder li.now .t, .ladder li.now .p { color: #3a0608; }
@media (max-width: 420px) { .ladder .p { font-size: 16px; } .ladder .t { font-size: 11px; } }

/* Attente entre deux jours */
.waiting { display: grid; gap: 22px; align-items: center; text-align: center; }
@media (min-width: 760px) { .waiting { grid-template-columns: 220px 1fr; text-align: left; } }
.ghost-bottle { height: 260px; display: grid; place-items: center; }
.ghost-bottle svg { height: 240px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }
.waiting h2 { margin: 0 0 8px; font: 400 clamp(28px, 6vw, 40px)/1.05 var(--display); color: #fff3dc; }
.waiting p { margin: 0; color: var(--kraft); }
.big-clock { margin-top: 14px; font: 400 clamp(44px, 12vw, 72px)/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.deal-empty { text-align: center; }

/* ---------- Programme ---------- */
.week, .how { margin-top: 56px; }
.week h2, .how h2 { font: 400 32px/1 var(--display); letter-spacing: .02em; color: var(--kraft); margin: 0 0 16px; }
.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.day {
  position: relative; border-radius: 12px; padding: 12px 12px 14px;
  background: var(--night-2); border: 1px solid rgba(200,178,153,.15); min-height: 168px;
  display: flex; flex-direction: column;
}
.day .d { font-size: 13px; color: var(--muted); }
.day .d::first-letter { text-transform: uppercase; }
.day .thumb { height: 74px; display: grid; place-items: center; margin: 8px 0; }
.day .thumb img { max-height: 74px; max-width: 70%; border-radius: 4px; background: #f1e8dc; padding: 3px; }
.day .thumb svg { height: 66px; }
.day .n { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--kraft-l); }
.day .s { margin-top: auto; padding-top: 8px; font-size: 13px; }
.day.live { border: 2px solid var(--gold); background: #3a0d10; }
.day.live .s { color: var(--gold); font-weight: 600; }
.day.done { opacity: .6; }
.day .flag { position: absolute; top: -9px; right: 10px; font-size: 11px; font-weight: 800; background: var(--gold); color: #3a0608; padding: 3px 8px; border-radius: 999px; }

.how-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .how-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.how p { margin: 0; color: var(--kraft); max-width: 40ch; }
.how strong { color: #fff3dc; }

.foot { max-width: 1080px; margin: 56px auto 0; padding: 20px 16px 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--muted); text-align: center; }
.foot p { margin: 4px auto; max-width: 80ch; }

@media (prefers-reduced-motion: reduce) {
  .marquee::before, .marquee::after { animation: none; }
  .gauge i, .cta { transition: none; }
}

/* Bandeau du mode aperçu (admin uniquement) */
.preview-bar { position: sticky; top: 0; z-index: 50; background: #f2cf6b; color: #3a0608; font: 600 14px/1.4 var(--sans); text-align: center; padding: 8px 16px; }
.preview-bar a { color: #3a0608; }
