/* Page d'attente du grand jeu de Noël ALPHALINE (KEROS).
   Charte KEROS du 06/10/2026 : fond gris clair, texte noir, Cormorant (chiffres en Lora), rouge #ed0f0f.
   Polices hébergées sur ce serveur (licence SIL OFL 1.1, voir /polices/). Aucune ressource tierce. */

@font-face { font-family: "Cormorant"; src: url("/polices/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/polices/cormorant-italique.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/polices/lora.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --gris: #ebebeb;
  --satin: #f6f6f6;
  --encre: #111111;
  --encre-douce: #474747;
  --rouge: #ed0f0f;
  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --chiffres: "Lora", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--gris);
  color: var(--encre);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Jeu mobile : une colonne de téléphone, centrée sur les grands écrans. */
.ecran {
  position: relative;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 24px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 85% 8%, var(--satin) 0%, rgba(246, 246, 246, 0) 62%),
    radial-gradient(90% 60% at 0% 100%, #e4e4e4 0%, rgba(228, 228, 228, 0) 70%),
    var(--gris);
}
/* Grain très léger, comme un papier satiné. */
.ecran::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* La roue : gravée en filets, elle déborde en haut à droite et fait un seul tour au chargement. */
.roue {
  position: absolute;
  z-index: -1;
  width: 132%;
  max-width: 580px;
  top: max(-36vw, -158px);
  right: -48%;
  overflow: visible;
}
.roue-disque {
  transform-origin: 0 0;
  transform: rotate(22.5deg);
  animation: tour 3.8s cubic-bezier(.11, .72, .16, 1) .25s both;
}
@keyframes tour {
  from { transform: rotate(-697.5deg); }
  to { transform: rotate(22.5deg); }
}

.texte { margin-top: auto; padding-top: min(60vw, 264px); }

.surtitre {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.surtitre::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  vertical-align: 2px;
  border-radius: 50%;
  background: var(--rouge);
}

h1 { margin-top: 18px; font-weight: 300; line-height: .9; }
.h1-petit {
  display: block;
  font-style: italic;
  font-size: 38px;
  letter-spacing: -.005em;
}
.h1-grand {
  display: block;
  font-style: italic;
  font-size: clamp(88px, 29vw, 124px);
  letter-spacing: -.03em;
  margin-left: -6px;
}
.h1-marque {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .5em;
}

.n { font-family: var(--chiffres); font-style: normal; font-feature-settings: "lnum" 1; }
sup { font-size: .62em; line-height: 0; vertical-align: .55em; }

.dates {
  margin-top: 26px;
  font-size: 21px;
  font-style: italic;
}
.dates .n { font-size: .86em; }

.ouverture {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--encre);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ouverture-titre {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ouverture-titre .n { font-size: 1.05em; letter-spacing: 0; }
.ouverture-titre sup { text-transform: none; letter-spacing: 0; font-size: .75em; }
.decompte { font-style: italic; font-size: 19px; }
.decompte .n { font-size: 30px; color: var(--rouge); margin: 0 2px; }

.invitation {
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.32;
  max-width: 21em;
}
.public {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--encre-douce);
}

.pied {
  margin-top: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.alpha { width: 104px; height: auto; opacity: .26; }
.legal { text-align: right; font-size: 15px; color: var(--encre-douce); }
.legal summary {
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px 0;
}
.legal summary::-webkit-details-marker { display: none; }
.legal[open] { text-align: left; flex-basis: 100%; }
.legal p { margin-top: 8px; line-height: 1.45; }
.legal a { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.pied:has(.legal[open]) { flex-wrap: wrap; }

/* Focus clavier bien visible (WCAG 2.4.7). */
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  .roue-disque { animation: none; }
}
