@font-face {
  font-family: "Alfa Slab One";
  src: url("fonts/AlfaSlabOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #ef4640;
  --red-dark: #d33a34;
  --navy: #425c70;
  --navy-deep: #1d3344;
  --sky: #badce6;
  --ink: #243240;
  --muted: #5c6b78;
  --cream: #f6f1e8;
  --paper: #fffdf9;
  --line: #e6d9c8;
  --gold: #e4b15a;
  --title: "Alfa Slab One", Rockwell, Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/*
 * Grands écrans : le texte grandit avec la fenêtre au lieu de rester
 * une colonne étroite illisible. 16 px à 1 440 px, environ 23 px à 2 560 px.
 */
@media (min-width: 1440px) {
  html { font-size: min(calc(100% + (100vw - 1440px) / 160), 162.5%); }
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0, rgba(186, 220, 230, .45), transparent 28%),
    var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--title); font-weight: 400; color: var(--navy); line-height: 1.12; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0 0 .8rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  padding: .5rem .8rem;
  z-index: 20;
}
.skip:focus { top: .6rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.topbar { background: #fff; border-bottom: 5px solid var(--red); }
.topbar-inner, .shell {
  width: min(80rem, calc(100% - 2rem));
  margin-inline: auto;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  padding: .75rem 0;
}
.brand img { width: 168px; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; margin-left: auto; }
.nav a { color: var(--navy); font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--red); }
.who { display: flex; align-items: center; gap: .55rem; color: var(--navy); font-weight: 800; }
.text-btn { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-weight: 800; cursor: pointer; }

main.shell { padding: 1.2rem 0 3rem; }
.status-line:empty, .form-error:empty, .form-ok:empty { display: none; }
.status-line, .form-error {
  background: #3d1820;
  color: #fff;
  border-radius: 12px;
  padding: .7rem .9rem;
  margin: 0 0 1rem;
}
.form-ok { background: var(--navy); color: #fff; border-radius: 12px; padding: .7rem .9rem; }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #173044 0%, #2a4a60 72%, #3e6274 100%);
  color: #fff;
  border-radius: 28px;
  padding: 1.7rem 1.2rem 1.35rem;
  margin-bottom: 1.2rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, #ef4640 0 16px, #e4b15a 16px 28px, #fff 28px 36px, #425c70 36px 52px);
}
.hero::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -28px;
  width: 190px;
  height: 170px;
  background: url("brand/dinde.png") right bottom / contain no-repeat;
  pointer-events: none;
}
.hero h1, .hero .lede, .hero .kicker, .hero .hero-lots { color: #fff; position: relative; z-index: 1; }
.hero .lede { max-width: 46rem; font-size: 1.25rem; }
.kicker {
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .92rem;
  margin-bottom: .35rem;
}
.hero-lots {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: .9rem 0 .15rem;
  max-width: 40rem;
}
.hero-lots p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: .28rem .85rem .28rem .28rem;
  font-weight: 700;
}
.hero-lots span {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: .32rem .65rem;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 800;
}
.pill {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: .3rem 0 0;
  background: var(--sky);
  color: var(--navy);
  border-radius: 999px;
  padding: .4rem .85rem;
  font-weight: 800;
}
.hero-compact { padding-bottom: 1.2rem; }
.hero-compact::after { width: 120px; opacity: .85; }

.flakes { position: absolute; inset: 0; pointer-events: none; }
.flakes i {
  position: absolute;
  top: -8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  animation: fall linear infinite;
}
.flakes i:nth-child(1) { left: 8%; animation-duration: 8s; }
.flakes i:nth-child(2) { left: 22%; animation-duration: 11s; animation-delay: -3s; width: 5px; height: 5px; }
.flakes i:nth-child(3) { left: 38%; animation-duration: 9s; animation-delay: -6s; }
.flakes i:nth-child(4) { left: 54%; animation-duration: 12s; animation-delay: -2s; width: 4px; height: 4px; }
.flakes i:nth-child(5) { left: 68%; animation-duration: 10s; animation-delay: -7s; }
.flakes i:nth-child(6) { left: 80%; animation-duration: 13s; animation-delay: -4s; }
.flakes i:nth-child(7) { left: 90%; animation-duration: 9.5s; animation-delay: -1s; width: 5px; height: 5px; }
.flakes i:nth-child(8) { left: 48%; animation-duration: 14s; animation-delay: -8s; }
@keyframes fall { to { transform: translateY(240px); opacity: .2; } }

.card, .prize {
  background: var(--paper);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(29, 51, 68, .07);
}
.card { padding: 1.2rem 1.15rem 1.3rem; margin-bottom: 1rem; }
.play-card { text-align: center; }

.band {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  margin: .4rem 0 1.4rem;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  counter-increment: step;
  padding: 1rem 0 1rem 3.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .75rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--title);
  display: grid;
  place-items: center;
}
.quiet { color: var(--muted); font-size: 1.02rem; }
.hint { color: var(--muted); font-weight: 600; }

.prize-list { display: grid; gap: .75rem; }
.prize {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-left: 6px solid var(--red);
}
.prize h3 { font-size: 1.25rem; margin: 0; }
.prize p { margin: 0; }
.prize-rang { color: var(--red); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.prize-value { font-family: var(--title); font-size: 1.7rem; color: var(--navy); margin: 0; white-space: nowrap; }

.split { display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: .7rem; }

label { display: block; margin: .85rem 0 .3rem; font-weight: 800; color: var(--navy); }
.card input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: .55rem .75rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.check input { margin-top: .25rem; flex: 0 0 auto; }
.check span { min-width: 0; }
.hp { position: absolute; left: -10000px; height: 0; overflow: hidden; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: .9rem;
  padding: .8rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn.navy { background: var(--navy); }
.btn.facebook { background: #1877f2; }
.btn.facebook:hover { background: #0c63d4; }
.after-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin: 1.1rem 0 0;
}
.after-actions .btn { width: auto; }
.btn:disabled { opacity: .55; cursor: progress; }
.card .btn, .play-card .btn { width: 100%; }

.wheel-wrap {
  position: relative;
  width: min(100%, 340px);
  margin: .4rem auto 1rem;
  aspect-ratio: 1;
}
.pointer {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 24px solid var(--gold);
  filter: drop-shadow(0 2px 0 var(--red));
}
.wheel {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 8px #fff, 0 0 0 12px var(--red), 0 0 0 16px var(--gold), 0 16px 30px rgba(29, 51, 68, .25);
  overflow: hidden;
}
.wheel-face {
  position: absolute;
  inset: 0;
  background: conic-gradient(from -45deg, #ef4640 0 90deg, #425c70 90deg 180deg, #f7f1e6 180deg 270deg, #8d2438 270deg 360deg);
}
.tick { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--local)); }
.tick span {
  position: absolute;
  top: -104px;
  left: 0;
  width: 74px;
  transform: translateX(-50%) rotate(calc(var(--up, 0deg) - var(--local)));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.18);
}
.tick b { font-family: var(--title); font-size: 2.4rem; font-weight: 400; line-height: 1; }
.tick[style*="180deg"] span { color: var(--navy); text-shadow: none; }
.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--navy);
  display: grid;
  place-items: center;
}
.hub img { width: 48px; }
#wheel-demo { animation: slowturn 48s linear infinite; }
@keyframes slowturn { to { transform: rotate(360deg); } }
@keyframes wheel-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(var(--spin-to, 2520deg)); }
}
#wheel.is-spinning {
  animation: wheel-spin 5s cubic-bezier(.15, .72, .08, 1) forwards;
}
#wheel.is-spinning .tick span {
  transition: transform 5s cubic-bezier(.15, .72, .08, 1);
}

.chance-line { font-weight: 800; color: var(--navy); text-align: center; }
.spin-note { text-align: center; }
.big-chance { font-family: var(--title); font-size: 4.2rem; color: var(--red); line-height: .9; margin: .2rem 0 .4rem; }
.play-board { text-align: center; }
.question { text-align: left; margin-top: 1rem; }
.choices { display: grid; gap: .65rem; }
.choice {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0;
  text-align: left;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: .85rem 1rem;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.choice span { flex: 1; line-height: 1.35; }
.choice input {
  width: 1.35rem;
  height: 1.35rem;
  min-height: 0;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--red);
}
.choice:has(input:checked) { border-color: var(--red); background: #fff4f3; }
.result { margin-top: 1rem; text-align: center; }
.result h2 { color: var(--red); }

.legal h3 { font-family: var(--body); font-size: 1.05rem; margin-top: 1.3rem; }
.note { background: #f3e7d4; border-radius: 16px; padding: 1rem 1.05rem; margin-top: 1.4rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: .65rem .45rem; border-bottom: 1px solid var(--line); }
.is-hidden { display: none !important; }

.site-foot { background: var(--navy-deep); color: #fff; padding: 1.6rem 0 2rem; }
.site-foot a { color: var(--sky); }
.site-foot p { color: rgba(255,255,255,.9); }
.foot-logo { width: 140px; background: #fff; border-radius: 16px; padding: .45rem .6rem; }

@media (min-width: 760px) {
  .hero { padding: 2.1rem 210px 1.8rem 2rem; }
  .hero-compact { padding-right: 2rem; }
  .grid-2, .split, .band { grid-template-columns: 1fr 1fr; }
  .prize-list { grid-template-columns: repeat(6, 1fr); }
  .prize:nth-child(1),
  .prize:nth-child(2) { grid-column: span 3; }
  .prize:nth-child(n+3) { grid-column: span 2; }
  .band { grid-template-columns: 1.15fr .85fr; }
  .card .btn, .play-card .btn { width: auto; }
  .tick span { top: -128px; }
  .wheel-wrap { width: min(100%, 440px); }
  .brand img { width: 190px; }
  .site-foot { font-size: 1.05rem; }
}

@media (min-width: 1200px) {
  .hero { padding: 2.6rem 240px 2.2rem 2.6rem; }
  .band { gap: 2.4rem; }
  .wheel-wrap { width: min(100%, 500px); }
  .tick span { top: -158px; }
  .play-card { padding: 1.6rem 1.8rem 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .flakes, #wheel-demo { animation: none !important; }
  .wheel { transition: none !important; }
}
