/*
 * Pages publiques du concours (formulaire, déblocage) aux couleurs de
 * lagrossesoiree.fr : nuit violette, néons rose / cyan, clin d'œil Halloween.
 * L'admin garde assets/style.css.
 */
:root {
    --bg: #1c0038;
    --bg2: #12001f;
    --pink: #ff2d78;
    --cyan: #00eeff;
    --orange: #ff6b1a;
    --purple: #c026d3;
    --yellow: #ffe600;
    --text: #f4eeff;
    --muted: #b9a8d8;
    --card: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 45, 120, 0.28);
    --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg2); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: 'Rajdhani', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.5;
    background:
        radial-gradient(ellipse 70% 45% at 15% 0%, rgba(255, 45, 120, 0.22), transparent 70%),
        radial-gradient(ellipse 60% 40% at 100% 35%, rgba(192, 38, 211, 0.22), transparent 70%),
        radial-gradient(ellipse 70% 40% at 50% 105%, rgba(0, 238, 255, 0.12), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    background-attachment: fixed;
    padding: 0 16px calc(32px + env(safe-area-inset-bottom));
    overflow-x: hidden;
}
/* lignes de balayage façon écran cathodique */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px);
    z-index: 0;
}

a { color: var(--cyan); }

.wrap { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }

/* ── Décor Halloween (discret) ── */
.spooky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.spooky span { position: absolute; opacity: 0.35; filter: drop-shadow(0 0 10px rgba(192, 38, 211, 0.7)); animation: drift 9s ease-in-out infinite; }
.spooky .s1 { top: 12%; left: 4%; font-size: 30px; }
.spooky .s2 { top: 38%; right: 5%; font-size: 26px; animation-delay: -3s; }
.spooky .s3 { bottom: 14%; left: 7%; font-size: 34px; animation-delay: -6s; }
.spooky .s4 { top: 70%; right: 10%; font-size: 22px; animation-delay: -1.5s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(8px, -14px) rotate(6deg); } }
@media (max-width: 640px) { .spooky .s2, .spooky .s4 { display: none; } }

/* ── En-tête ── */
.hero { text-align: center; padding: calc(22px + env(safe-area-inset-top)) 0 10px; }
.kicker {
    margin: 4px 0 0;
    font-family: 'VT323', monospace;
    font-size: 17px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
}
.hero-title {
    margin: 6px 0 0;
    font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
    font-weight: 400;
    font-size: clamp(44px, 13vw, 64px);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--text);
}
.hero-title em { font-style: normal; color: var(--pink); text-shadow: 0 0 20px rgba(255, 45, 120, 0.9); }
.hero-sub { margin: 10px auto 0; max-width: 30em; color: var(--muted); font-size: 17px; }
.hero-sub strong { color: var(--yellow); text-shadow: 0 0 12px rgba(255, 230, 0, 0.5); }

/* Les 3 lots en cartes néon */
.lots { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lots li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px 12px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 45, 120, 0.16), rgba(0, 238, 255, 0.08));
    border: 1px solid var(--border);
    box-shadow: 0 0 28px -12px rgba(255, 45, 120, 0.7);
}
.lots li:nth-child(2) { border-color: rgba(0, 238, 255, 0.4); box-shadow: 0 0 28px -12px rgba(0, 238, 255, 0.7); }
.lots li:nth-child(3) { border-color: rgba(255, 230, 0, 0.4); box-shadow: 0 0 28px -12px rgba(255, 230, 0, 0.6); }
.lot-icon { font-size: 40px; line-height: 1; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25)); animation: bob 5s ease-in-out infinite; }
.lots li:nth-child(2) .lot-icon { animation-delay: -1.6s; }
.lots li:nth-child(3) .lot-icon { animation-delay: -3.2s; }
.lot-name { font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 21px; line-height: 1.05; letter-spacing: 0.03em; text-align: center; }
@media (max-width: 380px) { .lots { gap: 8px; } .lots li { padding: 12px 4px 10px; } .lot-icon { font-size: 34px; } .lot-name { font-size: 18px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ── Carte du formulaire ── */
.card {
    margin-top: 16px;
    padding: 22px 18px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.card h2 {
    margin: 0 0 4px;
    font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: var(--cyan);
    text-shadow: 0 0 14px rgba(0, 238, 255, 0.45);
}
.hint { margin: 0 0 12px; color: var(--muted); font-size: 15px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; margin-bottom: 5px; }
.field small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"] {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 0, 22, 0.55);
    color: var(--text);
    font: inherit;
    font-size: 17px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: rgba(244, 238, 255, 0.35); }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 238, 255, 0.18), 0 0 18px rgba(0, 238, 255, 0.25); }

/* Choix « comment nous as-tu connus » en pastilles néon */
.source-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .source-options { grid-template-columns: 1fr; } }
.source-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 0, 22, 0.45);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.source-options label:hover { border-color: rgba(255, 45, 120, 0.5); }
.source-options input { accent-color: var(--pink); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.source-options label:has(input:checked) { border-color: var(--pink); background: rgba(255, 45, 120, 0.14); box-shadow: 0 0 16px -4px rgba(255, 45, 120, 0.7); }
.source-options label:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ── Bouton ── */
.btn {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 15px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(95deg, var(--pink), var(--orange));
    color: #1a0033;
    font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
    font-size: 26px;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 0 26px -6px rgba(255, 45, 120, 0.85);
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 0 34px -4px rgba(255, 45, 120, 1); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ── Messages ── */
.alert { padding: 12px 14px; border-radius: 12px; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.alert-success { background: rgba(58, 255, 110, 0.12); border: 1px solid rgba(58, 255, 110, 0.45); color: #b8ffcb; }
.alert-warn { background: rgba(255, 184, 0, 0.12); border: 1px solid rgba(255, 184, 0, 0.45); color: #ffe08a; }
.alert-error { background: rgba(255, 45, 85, 0.14); border: 1px solid rgba(255, 45, 85, 0.5); color: #ffb3c6; }
.note { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* Numéro d'inscription : gros chiffres néon */
.numero-inscription-box {
    margin: 16px 0 4px;
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    background: rgba(10, 0, 22, 0.6);
    border: 2px dashed var(--yellow);
}
.numero-inscription-label { display: block; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.numero-inscription-value { display: block; font-family: 'VT323', monospace; font-size: 72px; line-height: 1; color: var(--yellow); text-shadow: 0 0 22px rgba(255, 230, 0, 0.7); }

/* ── Pied de page ── */
.site-footer { margin-top: 26px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer strong { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 20px; letter-spacing: 0.06em; color: var(--pink); }
.site-footer a { color: var(--cyan); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    .spooky span, .lot-icon { animation: none; }
    .btn { transition: none; }
}
