/* Page d'attente « Black Friday cadeau surprise » (Passage du Havre) : noir laqué et or, repris des maquettes V2. */
@font-face {
  font-family: "Montserrat";
  src: url("/polices/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/polices/bodoni-moda-italique.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --noir: #0A0908;
  --or: #D4A437;
  --or-clair: #F2CF6E;
  --ivoire: #F4EDE0;
  --texte: #E9E1D2;
  --gris: #A39B8E;
  --gris-fonce: #8F877A;
  color-scheme: dark;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--noir) url("/img/fond-scene.jpg") 100% 0 / cover no-repeat;
  color: var(--ivoire);
  font: 400 15px/1.5 "Montserrat", system-ui, sans-serif;
  overflow-x: hidden;
  position: relative;
}
/* lueur chaude au pied de la page */
body::after {
  content: "";
  position: fixed;
  left: 50%;
  bottom: -30vh;
  width: 120vw;
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(233, 180, 76, .16), rgba(233, 180, 76, 0));
  pointer-events: none;
  z-index: 0;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.ecran {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 22px max(34px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo { width: 118px; height: auto; display: block; margin: 4px auto 0; }

.surtitre {
  margin: 16px 0 0;
  font: 700 11.5px/1.3 "Montserrat", sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--or);
}

.titre { margin: 2px 0 0; width: 100%; font-size: 1rem; line-height: 0; }
.titre-cs { display: block; width: min(100%, 380px); height: auto; margin: 0 auto; overflow: visible; }

.table { width: calc(100% + 44px); margin: -30px -22px 0; line-height: 0; }
.scene-table { display: block; width: 100%; height: auto; overflow: visible; }
.scene-large { display: none; }

.annonce {
  margin: 0 0 14px;
  font: italic 500 30px/1.1 "Bodoni Moda", Georgia, serif;
  letter-spacing: -.01em;
  color: var(--ivoire);
}

.decompte { width: 100%; }
.decompte-titre {
  margin: 0 0 10px;
  font: 700 10.5px/1 "Montserrat", sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gris);
}
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.case {
  padding: 13px 2px 11px;
  border: 1px solid rgba(212, 164, 55, .55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(40, 32, 22, .88), rgba(14, 12, 9, .88));
}
.case b {
  display: block;
  font: 800 31px/1 "Montserrat", sans-serif;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFF3CC 0%, #F2CF6E 34%, #C9952A 68%, #8C6412 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case span {
  display: block;
  margin-top: 7px;
  font: 600 9.5px/1 "Montserrat", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
}

.date-fixe {
  margin: 14px 0 0;
  font: 700 12px/1.4 "Montserrat", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or-clair);
}

.texte { margin: 18px 0 0; max-width: 34ch; font-size: 15px; line-height: 1.55; color: var(--texte); }

.lots {
  list-style: none;
  margin: 20px 0 0;
  padding: 14px 0 0;
  width: 100%;
  border-top: 1px solid rgba(212, 164, 55, .3);
  font: 500 14px/1.65 "Montserrat", sans-serif;
  color: var(--texte);
}
.lots i { font-style: italic; }
.lots b { font-weight: 900; font-size: 16px; color: var(--or-clair); margin-right: 3px; }

.petit { margin: 20px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--gris-fonce); }

/* poussière d'or qui scintille */
.poussiere { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.poussiere i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #FFE7A3;
  opacity: 0;
  animation: scintille 4.8s ease-in-out infinite;
}
.poussiere i:nth-child(1) { left: 12%; top: 18%; animation-delay: .2s; }
.poussiere i:nth-child(2) { left: 84%; top: 30%; animation-delay: 1.4s; width: 2px; height: 2px; }
.poussiere i:nth-child(3) { left: 70%; top: 9%; animation-delay: 2.6s; }
.poussiere i:nth-child(4) { left: 26%; top: 58%; animation-delay: 3.3s; width: 2px; height: 2px; }
.poussiere i:nth-child(5) { left: 91%; top: 68%; animation-delay: .9s; }
.poussiere i:nth-child(6) { left: 7%; top: 84%; animation-delay: 2.1s; width: 2px; height: 2px; }
.poussiere i:nth-child(7) { left: 55%; top: 41%; animation-delay: 4s; width: 2px; height: 2px; }
.poussiere i:nth-child(8) { left: 40%; top: 5%; animation-delay: 1.8s; }
@keyframes scintille {
  0%, 100% { opacity: 0; transform: scale(.6); }
  50% { opacity: .9; transform: scale(1); box-shadow: 0 0 6px 1px rgba(255, 231, 163, .6); }
}

@media (min-width: 760px) {
  .ecran { max-width: 560px; padding-top: 34px; }
  .logo { width: 148px; }
  .surtitre { font-size: 13px; margin-top: 22px; }
  .titre-cs { width: min(100%, 470px); }
  /* table plus large que la colonne, fondue sur les côtés */
  .table { width: min(100vw, 900px); margin: -62px 0 0; position: relative; left: 50%; transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
  .scene-mobile { display: none; }
  .scene-large { display: block; }
  .annonce { font-size: 38px; }
  .case b { font-size: 42px; }
  .case span { font-size: 10.5px; }
  .texte { font-size: 16px; }
}

@media (max-width: 359px) {
  .surtitre { font-size: 10.5px; letter-spacing: .16em; }
  .date-fixe { font-size: 11px; letter-spacing: .08em; }
  .case b { font-size: 27px; }
  .case span { font-size: 8.5px; letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  .poussiere i { animation: none; }
  .reflet { display: none; }
}
