@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }

:root {
  --orange: #EB7923; --orange-d: #c9620f; --navy: #1a1a2e; --blue: #0f3460;
  --ink: #1a1a2e; --muted: #5d6275; --line: #d9dce5; --bg: #ffffff; --soft: #f4f5f8;
  --err: #b3261e; --ok: #1e7a46;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }

/* en-tête */
.top { background: var(--navy); border-bottom: 3px solid var(--orange); }
.top-in { display: flex; align-items: center; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.brand img { width: 52px; height: auto; }
.brand em { color: var(--orange); font-style: normal; }

/* bandeau */
.hero { background: var(--navy); color: #fff; padding: 34px 0 38px; }
.hero h1 { font-size: clamp(1.8rem, 6.2vw, 2.9rem); font-weight: 800; margin: 0 0 12px; max-width: 22ch; }
.hero h1 strong { color: var(--orange); font-weight: 800; }
.hero .sub { margin: 0; color: #c9cede; font-size: 1.02rem; }
.kicker { margin: 0 0 10px; font-size: .85rem; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }

/* arguments */
.args { padding-top: 26px; padding-bottom: 6px; }
.args ul { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.args li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.args li b { color: var(--blue); font-size: 1.02rem; }
.args li span { color: var(--muted); }
.args .plus { margin: 14px 0 0; padding-left: 12px; border-left: 3px solid var(--orange); }
@media (min-width: 760px) {
  .args ul { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .args li { border-bottom: 0; border-left: 1px solid var(--line); padding: 4px 18px; }
  .args li:first-child { border-left: 0; padding-left: 0; }
}

/* formulaire */
.form-wrap { padding-top: 22px; padding-bottom: 48px; }
.form-wrap > h2 { font-size: 1.5rem; margin: 10px 0 6px; }
.lots-line { margin: 0 0 18px; color: var(--muted); }
.jeu-form fieldset { border: 1px solid var(--line); margin: 0 0 18px; padding: 16px 16px 6px; min-width: 0; }
.jeu-form legend { font-weight: 700; padding: 0 6px; color: var(--navy); }
.jeu-form legend small { font-weight: 400; color: var(--muted); }
.jeu-form .optional { background: var(--soft); }
.row { display: grid; gap: 0 14px; }
@media (min-width: 620px) { .row { grid-template-columns: 1fr 1fr; } .row-cp { grid-template-columns: 9rem 1fr; } }
.f { margin-bottom: 12px; min-width: 0; }
.f label, .lbl { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.req { color: var(--orange-d); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=month], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background-color: #fff;
  border: 1px solid #b9bdca; border-radius: 0; padding: 11px 12px; min-height: 46px; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.f-err input, .f-err select { border-color: var(--err); background-color: #fff6f5; }
.ferr { color: var(--err); font-size: .85rem; margin: 4px 0 0; }
.hint { font-size: .88rem; margin: -4px 0 12px; min-height: 1.2em; color: var(--muted); }
.hint.ok { color: var(--ok); } .hint.ko { color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.seg { display: inline-flex; border: 1px solid #b9bdca; }
.seg label { margin: 0; cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 10px 22px; font-weight: 600; min-width: 80px; text-align: center; }
.seg label + label span { border-left: 1px solid #b9bdca; }
.seg input:checked + span { background: var(--blue); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--orange); }
.checks { margin: 6px 0 18px; }
.chk { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; cursor: pointer; font-size: .95rem; }
.chk input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--orange); }
.chk.f-err span { color: var(--err); }
.rgpd { font-size: .78rem; color: var(--muted); margin-top: 18px; }

.btn { display: inline-block; font: inherit; font-weight: 700; background: var(--orange); color: #fff; border: 1px solid var(--orange);
  border-radius: 0; padding: 12px 22px; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn:disabled { background: #c6c8d0; border-color: #c6c8d0; cursor: not-allowed; }
.btn-big { width: 100%; font-size: 1.15rem; padding: 16px 22px; }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-s { padding: 8px 14px; font-size: .9rem; }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn-danger:hover { background: #8f1d17; border-color: #8f1d17; }
.lnk { background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

.alert { border: 1px solid var(--err); border-left-width: 4px; background: #fff6f5; padding: 12px 14px; margin: 0 0 16px; color: #6d1510; }
.alert-info { border-color: var(--blue); background: #eef3fa; color: var(--blue); font-weight: 600; }
.alert-ok { border-color: var(--ok); background: #effaf3; color: #14532d; }
.closed { border: 1px solid var(--line); border-top: 3px solid var(--orange); padding: 24px; text-align: center; margin: 12px 0 30px; }
.closed h2 { margin-top: 0; }

/* contenu */
.prose { padding-top: 28px; padding-bottom: 48px; }
.prose h1 { font-size: 1.8rem; }
.prose h2 { font-size: 1.2rem; margin-top: 1.8em; color: var(--blue); }
.prose table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.prose th { background: var(--soft); }

/* roue */
.roue-wrap { max-width: 640px; margin: 0 auto; padding: 22px 16px 48px; text-align: center; position: relative; z-index: 1; }
.roue-title { font-size: clamp(1.6rem, 6vw, 2.3rem); margin: 4px 0 6px; }
.roue-sub { margin: 0 0 18px; color: var(--muted); }
.wheel { position: relative; width: min(92vw, 470px); margin: 0 auto 22px; }
.wheel-svg { display: block; width: 100%; height: auto; transform: rotate(0deg); will-change: transform; }
.pointer { position: absolute; left: 50%; top: -6px; width: 0; height: 0; margin-left: -18px; z-index: 2;
  border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--orange);
  filter: drop-shadow(0 2px 0 var(--navy)); }
.btn-spin { max-width: 420px; }
.result { border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 22px 18px; margin-top: 4px; background: #fff; }
.result-win { border-top-color: var(--orange); }
.result-k { margin: 0; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; }
.result-lot { margin: 6px 0 8px; font-size: clamp(1.7rem, 7vw, 2.5rem); font-weight: 800; color: var(--navy); line-height: 1.15; }
.result-win .result-lot { color: var(--orange); }
.result-txt { margin: 0 0 12px; }
.result-code { margin: 0 0 12px; font-size: 1.05rem; }
.result-code b { font-size: 1.3rem; letter-spacing: .06em; color: var(--blue); border: 1px dashed var(--blue); padding: 2px 10px; }
.result-more { font-size: .9rem; color: var(--muted); margin: 8px 0; }

/* confettis */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; background: var(--orange); animation: fall 3.4s linear infinite; }
.confetti i:nth-child(3n) { background: var(--blue); width: 7px; }
.confetti i:nth-child(4n) { background: var(--navy); height: 8px; }
.confetti i:nth-child(5n) { background: #f5b67f; }
.confetti i:nth-child(1) { left: 32.4%; animation-delay: 0.48s; animation-duration: 3.77s; }
.confetti i:nth-child(2) { left: 7.2%; animation-delay: 1.71s; animation-duration: 3.26s; }
.confetti i:nth-child(3) { left: 5.8%; animation-delay: 1.62s; animation-duration: 2.67s; }
.confetti i:nth-child(4) { left: 43.4%; animation-delay: 0.22s; animation-duration: 2.76s; }
.confetti i:nth-child(5) { left: 42.5%; animation-delay: 2.65s; animation-duration: 2.82s; }
.confetti i:nth-child(6) { left: 22.3%; animation-delay: 2.01s; animation-duration: 4.31s; }
.confetti i:nth-child(7) { left: 57.7%; animation-delay: 1.27s; animation-duration: 4.36s; }
.confetti i:nth-child(8) { left: 4.7%; animation-delay: 2.75s; animation-duration: 3.12s; }
.confetti i:nth-child(9) { left: 14.4%; animation-delay: 0.38s; animation-duration: 3.16s; }
.confetti i:nth-child(10) { left: 81.6%; animation-delay: 0.58s; animation-duration: 3.65s; }
.confetti i:nth-child(11) { left: 63.9%; animation-delay: 1.19s; animation-duration: 3.59s; }
.confetti i:nth-child(12) { left: 6.3%; animation-delay: 0.19s; animation-duration: 2.97s; }
.confetti i:nth-child(13) { left: 68.0%; animation-delay: 1.37s; animation-duration: 3.17s; }
.confetti i:nth-child(14) { left: 58.6%; animation-delay: 1.45s; animation-duration: 3.14s; }
.confetti i:nth-child(15) { left: 79.4%; animation-delay: 2.24s; animation-duration: 3.04s; }
.confetti i:nth-child(16) { left: 57.4%; animation-delay: 1.68s; animation-duration: 4.18s; }
.confetti i:nth-child(17) { left: 72.9%; animation-delay: 0.92s; animation-duration: 4.36s; }
.confetti i:nth-child(18) { left: 11.8%; animation-delay: 1.34s; animation-duration: 3.96s; }
.confetti i:nth-child(19) { left: 15.2%; animation-delay: 1.56s; animation-duration: 2.67s; }
.confetti i:nth-child(20) { left: 66.8%; animation-delay: 2.45s; animation-duration: 3.63s; }
.confetti i:nth-child(21) { left: 87.5%; animation-delay: 1.00s; animation-duration: 3.85s; }
.confetti i:nth-child(22) { left: 59.4%; animation-delay: 1.86s; animation-duration: 3.42s; }
.confetti i:nth-child(23) { left: 84.0%; animation-delay: 3.02s; animation-duration: 3.45s; }
.confetti i:nth-child(24) { left: 66.4%; animation-delay: 0.19s; animation-duration: 3.86s; }
.confetti i:nth-child(25) { left: 64.7%; animation-delay: 3.18s; animation-duration: 4.08s; }
.confetti i:nth-child(26) { left: 28.5%; animation-delay: 1.23s; animation-duration: 3.80s; }
.confetti i:nth-child(27) { left: 2.3%; animation-delay: 1.48s; animation-duration: 2.90s; }
.confetti i:nth-child(28) { left: 11.7%; animation-delay: 0.19s; animation-duration: 3.98s; }
.confetti i:nth-child(29) { left: 12.9%; animation-delay: 0.79s; animation-duration: 3.30s; }
.confetti i:nth-child(30) { left: 87.1%; animation-delay: 0.26s; animation-duration: 3.41s; }
.confetti i:nth-child(31) { left: 54.9%; animation-delay: 2.83s; animation-duration: 4.07s; }
.confetti i:nth-child(32) { left: 86.4%; animation-delay: 0.89s; animation-duration: 3.35s; }
.confetti i:nth-child(33) { left: 35.9%; animation-delay: 2.83s; animation-duration: 4.32s; }
.confetti i:nth-child(34) { left: 15.1%; animation-delay: 0.56s; animation-duration: 3.02s; }
.confetti i:nth-child(35) { left: 23.3%; animation-delay: 1.55s; animation-duration: 3.66s; }
.confetti i:nth-child(36) { left: 26.3%; animation-delay: 0.01s; animation-duration: 3.35s; }
.confetti i:nth-child(37) { left: 36.9%; animation-delay: 1.81s; animation-duration: 4.32s; }
.confetti i:nth-child(38) { left: 69.0%; animation-delay: 1.65s; animation-duration: 3.71s; }
.confetti i:nth-child(39) { left: 67.6%; animation-delay: 0.17s; animation-duration: 4.22s; }
.confetti i:nth-child(40) { left: 78.0%; animation-delay: 2.80s; animation-duration: 4.04s; }
.confetti i:nth-child(41) { left: 39.2%; animation-delay: 1.28s; animation-duration: 2.79s; }
.confetti i:nth-child(42) { left: 63.4%; animation-delay: 0.20s; animation-duration: 2.72s; }
.confetti i:nth-child(43) { left: 20.9%; animation-delay: 0.52s; animation-duration: 3.21s; }
.confetti i:nth-child(44) { left: 5.3%; animation-delay: 0.00s; animation-duration: 2.87s; }
.confetti i:nth-child(45) { left: 10.1%; animation-delay: 1.16s; animation-duration: 2.65s; }
.confetti i:nth-child(46) { left: 87.4%; animation-delay: 1.97s; animation-duration: 2.87s; }
.confetti i:nth-child(47) { left: 25.2%; animation-delay: 1.11s; animation-duration: 3.26s; }
.confetti i:nth-child(48) { left: 12.3%; animation-delay: 2.72s; animation-duration: 4.39s; }
.confetti i:nth-child(49) { left: 46.6%; animation-delay: 1.55s; animation-duration: 2.75s; }
.confetti i:nth-child(50) { left: 10.2%; animation-delay: 1.10s; animation-duration: 3.08s; }
.confetti i:nth-child(51) { left: 82.9%; animation-delay: 0.52s; animation-duration: 2.64s; }
.confetti i:nth-child(52) { left: 95.1%; animation-delay: 1.69s; animation-duration: 2.86s; }
.confetti i:nth-child(53) { left: 54.3%; animation-delay: 0.09s; animation-duration: 3.55s; }
.confetti i:nth-child(54) { left: 97.9%; animation-delay: 2.76s; animation-duration: 3.85s; }
.confetti i:nth-child(55) { left: 26.1%; animation-delay: 1.17s; animation-duration: 2.90s; }
.confetti i:nth-child(56) { left: 77.2%; animation-delay: 1.70s; animation-duration: 4.00s; }
.confetti i:nth-child(57) { left: 33.0%; animation-delay: 0.71s; animation-duration: 4.06s; }
.confetti i:nth-child(58) { left: 98.5%; animation-delay: 2.73s; animation-duration: 4.05s; }
.confetti i:nth-child(59) { left: 81.8%; animation-delay: 2.37s; animation-duration: 3.01s; }
.confetti i:nth-child(60) { left: 51.8%; animation-delay: 1.14s; animation-duration: 2.65s; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .wheel-svg { transition: none !important; } }

.foot { border-top: 1px solid var(--line); padding: 20px 0 28px; font-size: .85rem; color: var(--muted); }
.foot p { margin: 4px 0; }

/* ===== borne iPad ===== */
body.kiosk { font-size: 19px; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
body.kiosk input, body.kiosk select, body.kiosk textarea { -webkit-user-select: text; user-select: text; font-size: 20px; min-height: 58px; padding: 14px; }
body.kiosk .wrap { max-width: 1000px; padding: 0 28px; }
body.kiosk .top { padding-top: env(safe-area-inset-top); }
body.kiosk .hero { padding: 24px 0 26px; }
body.kiosk .hero h1 { max-width: none; font-size: 2.3rem; }
body.kiosk .f label, body.kiosk .lbl { font-size: 1rem; }
body.kiosk .chk { font-size: 1.05rem; } body.kiosk .chk input { width: 30px; height: 30px; }
body.kiosk .seg span { padding: 14px 34px; }
body.kiosk .btn-big { font-size: 1.4rem; padding: 22px; }
body.kiosk .wheel { width: min(80vw, 600px); }
body.kiosk .roue-wrap { max-width: 760px; }
.count { color: var(--muted); margin: 14px 0 10px; }

.result-code b { display: inline-block; white-space: nowrap; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2;
  background: var(--navy); border: 4px solid var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--orange); font-weight: 800; font-size: clamp(1rem, 4.5vw, 1.6rem); }
body.kiosk .form-wrap { padding-top: 34px; }
