/* =====================================================================
   PASSION POS - formulaire d'inscription (ordinateur, tablette, téléphone)
   ===================================================================== */

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: var(--texte-police);
    font-size: 16px;
    line-height: 1.4;
}

.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 16px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.logo { width: 200px; height: auto; animation: pp-monte 0.6s var(--ease) both; }

.carte {
    width: 100%;
    background: linear-gradient(180deg, rgba(22, 24, 31, 0.85), rgba(14, 16, 21, 0.9));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--bordure);
    border-radius: 22px;
    padding: 36px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: pp-scene 0.6s var(--ease) both;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
h1 { margin: 0; font-family: var(--titre); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; }
h2 { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: var(--texte-2); }
.intro { margin: -8px 0 0; color: var(--gris); }

.alerte {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--rouge-fond);
    border: 1px solid var(--rouge);
    color: #FFD0D0;
    font-weight: 600;
}

fieldset {
    margin: 0;
    padding: 22px 0 0;
    border: none;
    border-top: 1px solid var(--bordure);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
legend {
    padding: 0;
    margin-bottom: 4px;
    font-family: var(--titre);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
legend span {
    padding: 4px 8px; border-radius: 8px;
    border: 1px solid rgba(255, 90, 107, 0.35); background: rgba(200, 24, 43, 0.1); color: var(--rouge-vif);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
}

.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-ville { display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
#bloc-pv, #bloc-autre { display: flex; flex-direction: column; gap: 16px; }
[hidden] { display: none !important; }

/* ---------- Champs ---------- */

.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ label { font-size: 14px; font-weight: 700; color: var(--texte-2); }
.champ label em { font-style: normal; font-weight: 500; color: var(--gris-2); }

input[type="text"], input[type="email"], input[type="password"], select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--bordure-2);
    background: rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--texte);
    font: inherit;
    outline: none;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gris) 50%), linear-gradient(135deg, var(--gris) 50%, transparent 50%); background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus { border-color: rgba(255, 90, 107, 0.65); box-shadow: 0 0 0 4px rgba(200, 24, 43, 0.16); }
input::placeholder { color: #5A5A64; }

.aide { margin: 0; font-size: 13px; color: var(--gris-2); }
.erreur { margin: 0; font-size: 13px; font-weight: 600; color: var(--rouge-clair); }
.erreur:empty { display: none; }
.champ.invalide input, .champ.invalide select { border-color: rgba(255, 90, 107, 0.8); background: rgba(200, 24, 43, 0.08); }
.champ.invalide .aide { display: none; }

.avec-bouton { position: relative; }
.avec-bouton input { padding-right: 56px; }
.voir {
    position: absolute; right: 4px; top: 4px;
    width: 44px; height: 44px;
    border: none; border-radius: 10px;
    background: transparent;
    font-size: 18px; opacity: 0.5; cursor: pointer;
}
.voir.actif { opacity: 1; }

.case {
    display: flex; align-items: center; gap: 12px;
    min-height: 48px; cursor: pointer; font-weight: 600;
}
.case input { width: 24px; height: 24px; accent-color: var(--rouge); margin: 0; flex-shrink: 0; }
#conditions .case { align-items: flex-start; font-weight: 500; }
#conditions .case span { padding-top: 2px; }
#conditions a { color: var(--rouge-vif); }

/* ---------- Boutons ---------- */

.bouton-principal {
    min-height: 60px;
    border: none;
    border-radius: 14px;
    background: var(--degrade-rouge);
    box-shadow: 0 10px 26px -12px rgba(200, 24, 43, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-family: var(--titre);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 24px;
}
.bouton-principal:active { transform: scale(0.98); }

/* ---------- Page « Tout est correct » ---------- */

.merci { align-items: center; text-align: center; }
.coche {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--vert-fond); color: var(--vert);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 800;
}
.mode-test { margin: 0; padding: 10px 14px; border-radius: 10px; background: #3A2A0A; color: #FFC857; font-weight: 600; font-size: 14px; }
.recap { margin: 0; width: 100%; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; text-align: left; }
.recap dt { color: var(--gris); }
.recap dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.suite { margin: 0; color: var(--gris); }

/* ---------- Téléphone ---------- */

@media (max-width: 600px) {
    .page { padding-top: 20px; }
    .logo { width: 180px; }
    .carte { padding: 22px 16px; border-radius: 16px; }
    h1 { font-size: 24px; }
    .deux { grid-template-columns: 1fr; }
    .cp-ville { grid-template-columns: 110px 1fr; }
}

/* Piège à robots : hors de l'écran (les humains ne le voient pas) */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.deja { margin: -6px 0 0; text-align: center; color: var(--gris); }
.deja a { color: var(--texte); font-weight: 700; }

.en-tete { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mode-test { background: var(--jaune-fond) !important; color: var(--jaune) !important; }
