:root {
    --noir: #070707;
    --encre: #f7f4ef;
    --rouge: #e10600;
    --rose: #ff4fa3;
    --dore: #d4a017;
    --muted: rgba(247, 244, 239, 0.72);
    --ligne: rgba(247, 244, 239, 0.18);
    --serif: "Playfair Display", Georgia, serif;
    --script: "Great Vibes", cursive;
    --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.05), transparent 28%),
        radial-gradient(circle at 88% 92%, rgba(225, 6, 0, 0.16), transparent 32%),
        var(--noir);
    color: var(--encre);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

.carte {
    width: min(560px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.carrousel {
    position: relative;
    overflow: hidden;
    height: 320px;
    margin: 14px auto 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    background: #111;
}

.carrousel-piste img {
    display: none;
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 16%;
}

.carrousel-piste img.is-active { display: block; }

.carrousel-nav { display: none; }

.carrousel-points {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carrousel-points button {
    width: 9px;
    height: 9px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.carrousel-points button.is-active { background: #fff; }

.musique {
    position: fixed;
    left: 0;
    top: 0;
    width: 2px;
    height: 2px;
    opacity: 0.01;
    pointer-events: none;
    z-index: 0;
}

.affiche-cadre {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.affiche {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.affiche-voile {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.55) 100%),
        radial-gradient(circle at 50% 42%, rgba(225, 6, 0, 0.08), transparent 46%);
}

.carrousel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 30%, rgba(0, 0, 0, 0.28));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.select-cadre { position: relative; }

.select-cadre::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    pointer-events: none;
}

select {
    appearance: none;
    width: 100%;
    min-height: 54px;
    padding: 14px 42px 14px 16px;
    border: 1px solid rgba(212, 160, 23, 0.7);
    border-radius: 14px;
    color: #fff;
    letter-spacing: 0;
    font-size: 1.05rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        #140d0d;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(225, 6, 0, 0.35);
}

.confirmer,
.merci,
.login form,
.admin-main {
    position: relative;
}

.confirmer {
    margin-top: 28px;
    padding: 8px 8px 0;
    text-align: center;
}

.script {
    margin: 0 0 4px;
    font-family: var(--script);
    font-size: 2.6rem;
    line-height: 1;
    color: #fff;
}

h1 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 2.8rem);
    line-height: 1.15;
}

.quand,
.lieu,
.tenue,
.signature {
    margin: 0 auto 10px;
    max-width: 38rem;
}

.symboles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 8px 0 4px;
}

.coeur {
    color: #e10600;
    font-size: 1.35rem;
    line-height: 1;
    text-shadow: 0 0 12px rgba(225, 6, 0, 0.55);
}

.coeur-rose { color: #ff4fa3; text-shadow: 0 0 12px rgba(255, 79, 163, 0.55); }

.alliances {
    position: relative;
    width: 34px;
    height: 18px;
}

.alliances::before,
.alliances::after {
    content: "";
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #d4a017;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 160, 23, 0.45), inset 0 0 6px rgba(255, 255, 255, 0.25);
}

.alliances::before { left: 0; }
.alliances::after { right: 0; }

.quand { font-weight: 700; }

.lieu {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 14px;
    background: var(--rouge);
    color: #fff;
    font-weight: 700;
}

.tenue {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.couleurs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.couleurs li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.couleurs span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

form {
    margin: 26px auto 0;
    max-width: 420px;
    text-align: left;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

input,
textarea,
button,
.bouton {
    font: inherit;
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ligne);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.tel-ligne {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tel-ligne span {
    flex: 0 0 auto;
    padding: 12px 12px;
    border: 1px solid rgba(212, 160, 23, 0.7);
    border-radius: 10px;
    background: #140d0d;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tel-ligne input {
    flex: 1;
    letter-spacing: 0.12em;
}

#identite { scroll-margin-top: 16px; }
#identite.is-attente { display: none; }

.quotas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.quotas li {
    padding: 12px;
    border: 1px solid var(--ligne);
    border-radius: 12px;
}

.quotas strong,
.quotas span { display: block; }

.quotas span { color: var(--muted); font-size: 0.92rem; }

input:focus,
textarea:focus {
    outline: 2px solid var(--rouge);
    border-color: transparent;
}

button,
.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--rouge);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.bouton:hover { filter: brightness(1.08); }

.signature {
    margin-top: 22px;
    font-family: var(--script);
    font-size: 2rem;
    color: #fff;
}

.champ-erreur,
.alerte {
    margin: 6px 0 0;
    color: #ffb4b0;
    font-size: 0.92rem;
}

.alerte {
    padding: 10px 12px;
    border: 1px solid rgba(225, 6, 0, 0.45);
    border-radius: 10px;
    text-align: left;
}

.piege {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.merci { padding-top: 12vh; text-align: center; }
.merci .bouton { max-width: 280px; }

.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login form {
    width: min(420px, 100%);
    padding: 28px 24px 32px;
    border: 1px solid var(--ligne);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.login h1 { font-size: 2.2rem; }

.admin-body { background: #0c0c0c; }

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-side {
    padding: 28px 20px;
    border-right: 1px solid var(--ligne);
    background: #050505;
}

.admin-marque {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.5rem;
}

.admin-side-label {
    margin: 6px 0 22px;
    color: var(--rouge);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.admin-side nav {
    display: grid;
    gap: 6px;
}

.admin-side a,
.lien-discret {
    color: var(--encre);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 8px 0;
    margin: 0;
    width: auto;
    border-radius: 0;
    font-weight: 600;
    letter-spacing: 0;
    text-align: left;
    cursor: pointer;
}

.admin-side a.is-active { color: var(--rouge); }

.admin-main { padding: 32px 28px 64px; }

.admin-entete {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.admin-entete h1 { margin: 0; font-size: 2.2rem; }
.admin-entete p { margin: 6px 0 0; color: var(--muted); }

.bouton-fin {
    width: auto;
    margin: 0;
    padding-inline: 18px;
}

.note {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.recherche {
    display: flex;
    gap: 8px;
    max-width: none;
    margin: 0 0 18px;
}

.recherche button { width: auto; margin: 0; padding-inline: 16px; }

.vide { color: var(--muted); }

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

td form { margin: 0; }

td .lien-discret {
    margin: 0;
    padding: 0;
    color: #ffb4b0;
    font-size: 0.9rem;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--ligne);
    text-align: left;
    vertical-align: middle;
}

th {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

td a { color: #fff; }

.fiche { max-width: 720px; }
.fiche button { width: auto; padding-inline: 22px; }

.deux {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.deux p { margin: 0; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 800px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { border-right: 0; border-bottom: 1px solid var(--ligne); }
    .admin-side nav { grid-template-columns: 1fr 1fr; }
    .admin-main { padding: 22px 16px 48px; }
    .deux { grid-template-columns: 1fr; }
    .admin-entete { align-items: stretch; flex-direction: column; }
}
