/* =============================================
   TWWC — SESSION
   Stylesheet for session.twig
   ============================================= */

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

.nego{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    color: rgb(255, 0, 0);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.75rem;
}

.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;
}

.page-entete strong {
    color: red;
}

/* ── Lien "déjà un compte" (non connecté) ─────── */

.compte-deja-compte {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px 20px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
}

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

.compte-deja-compte a:hover { opacity: 0.7; }

/* ── Formulaire inscription / session ────────── */

.formulaire-inscription {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 50px 20px 60px;
    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 / textarea */
.form-groupe {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Style identique pour les selects (ex: heure souhaitée) */
.form-groupe select {
    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;
    appearance: none; /* enlève le style natif du navigateur */
    cursor: pointer;
}

/* Flèche custom pour le select */
.form-groupe select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='12' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M2 4l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

/* Focus identique aux inputs */
.form-groupe select:focus {
    border-color: red;
    background: #222;
}

/* Option interne */
.form-groupe select option {
    background: #1a1a1a;
    color: #fff;
}


.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,
.form-groupe textarea {
    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;
    resize: vertical;
}

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

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

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

/* Fieldset bloc */
.form-bloc {
    border: 1px solid rgba(255,0,0,0.25);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-bloc__titre {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: red;
    padding: 0 8px;
}

/* ── Cartes session ──────────────────────────── */

.sessions-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-carte {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.session-carte input[type="radio"] {
    accent-color: red;
    margin-top: 4px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.session-carte:hover {
    border-color: rgba(255,0,0,0.5);
    background: rgba(255,0,0,0.05);
}

.session-carte--active {
    border-color: red;
    background: rgba(255,0,0,0.08);
}

.session-carte__contenu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.session-carte__entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.session-carte__titre {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.session-carte__places {
    font-size: 0.72rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}

.session-carte__places--alerte {
    color: red;
}

.session-carte__desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin: 0;
}

.session-carte__meta {
    display: flex;
    gap: 20px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.04em;
}

.sessions-vide {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.06em;
    text-align: center;
    padding: 20px 0;
}

/* ── 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;
    margin-top: 12px;
}

.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;
}

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

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

@media (max-width: 700px) {

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

    .form-bloc {
        padding: 20px 16px;
    }

    .session-carte__entete {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .session-carte__meta {
        flex-direction: column;
        gap: 4px;
    }

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

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

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