/* =============================================
   TWWC — COMPTE
   Stylesheet for compte.twig
   ============================================= */

/* ── Base page ───────────────────────────────── */

.ensemblemain {
    background: linear-gradient(to bottom, #000 0%, #111 40%, #1a1a1a 100%);
    min-height: 100vh;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    overflow: hidden;
    margin: 60px;
}

/* Grain */
.ensemblemain::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/bruit.png") repeat;
    opacity: 0.06;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 0;
    animation: grain 0.25s steps(4) infinite;
}

@keyframes grain {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── Entête de page ──────────────────────────── */

.page-entete {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px 40px;
    border-bottom: 2px solid red;
}

.page-entete h1 {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin: 0 0 14px;
}

.page-entete p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em;
    margin: 0;
}

/* ── Onglets connexion / inscription ─────────── */

.compte-onglets {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 2px solid red;
}

.compte-onglet {
    padding: 18px 48px;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: rgba(255,255,255,0.4);
    border-right: 1px solid rgba(255,0,0,0.2);
    transition: color 0.2s ease, background 0.2s ease;
}

.compte-onglet:last-child {
    border-right: none;
}

.compte-onglet:hover {
    color: #fff;
    background: rgba(255,0,0,0.08);
}

.compte-onglet--actif {
    color: #fff;
    border-bottom: 3px solid red;
    margin-bottom: -2px;
}

/* ── Panneaux connexion / inscription ────────── */

.compte-panneau {
    display: none;
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 50px 20px 60px;
}

.compte-panneau--actif {
    display: block;
}

/* ── Formulaires ─────────────────────────────── */

.formulaire-compte {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Ligne côte à côte */
.form-ligne {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Groupe label + input */
.form-groupe {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-groupe--pleine-largeur {
    grid-column: 1 / -1;
}

.form-groupe label {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
}

.form-groupe input {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.15);
    border-bottom: 2px solid red;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-groupe input::placeholder {
    color: rgba(255,255,255,0.25);
}

.form-groupe input:focus {
    border-color: red;
    background: #222;
}

.form-aide {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
}

/* ── Alertes ─────────────────────────────────── */

.alerte {
    padding: 16px 20px;
    font-size: 0.85rem;
    line-height: 1.7;
}

.alerte--erreur {
    background: rgba(255,0,0,0.1);
    border-left: 3px solid red;
    color: rgba(255,100,100,0.95);
}

.alerte ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alerte ul li::before {
    content: "— ";
    color: red;
}

/* ── Boutons ─────────────────────────────────── */

.form-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid red;
    background: transparent;
    color: #fff;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn:hover {
    background: red;
    color: #000;
    transform: scale(1.03);
}

.btn--secondaire {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.55);
}

.btn--secondaire:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

/* ── Mentions / aides ────────────────────────── */

.form-mention {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
    margin: 0;
}

.form-mention a {
    color: red;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}

.form-mention a:hover { opacity: 0.7; }

.obligatoire { color: red; }
.facultatif  { color: rgba(255,255,255,0.3); font-size: 0.85em; }

/* ── Responsive ──────────────────────────────── */

@media (max-width: 700px) {

    .compte-onglet {
        padding: 14px 24px;
        font-size: 0.72rem;
    }

    .form-ligne {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
        padding: 14px 20px;
    }

    .page-entete {
        padding: 40px 16px 28px;
    }
}
