/* ============================================================
   CHARTE GRAPHIQUE SEXYTOUT.COM - VERSION STABLE 2026
   ============================================================ */

:root {
    --blue: #2de2ff;
    --black: #000000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--black);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    /* Performance: Optimisation du rendu */
    font-display: swap;
    /* Réduit le reflow */
    will-change: auto;

}

/* --- STRUCTURE --- */
main { max-width: 850px; margin: 0 auto; padding: 20px; }
.logo-st { 
    max-width: 150px; 
    width: 100%; 
    height: auto;
    margin: 15px auto; 
    display: block;
    /* Performance: Optimisation du chargement de l'image LCP */
    object-fit: contain;
    /* Réduit le layout shift */
    aspect-ratio: auto;
}

/* --- TITRES & TEXTES --- */
h1, .titre-sanctuaire {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--blue);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
    /* Performance: Optimisation du rendu */
    font-display: swap;
}

p { text-align: justify; line-height: 1.7; margin-bottom: 20px; color: #ddd; }

/* --- OVERLAY DE PROTECTION (FIXE) --- */
body.strict-lock { 
    overflow: hidden !important; 
    height: 100vh !important;
}

#st-protection-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: #000; z-index: 9999999; 
    display: flex; align-items: center; justify-content: center;
    overflow-y: auto;
}

.st-legal-container { 
    background: #0a0a0a; padding: 30px; border: 1px solid #1a1a1a; 
    width: 90%; max-width: 500px; color: #fff; margin: auto;
}

.st-btn-enter,
.st-btn-exit { 
    width: 100%; 
    background: #333; 
    color: #fff; 
    border: 1px solid #555; 
    padding: 18px; 
    font-weight: 800; 
    cursor: pointer; 
    text-transform: uppercase;
    margin-top: 15px; 
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.st-btn-enter:hover,
.st-btn-exit:hover {
    background: #444;
    border-color: #666;
}

.st-legal-footer {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.6;
    margin-top: 25px;
    text-align: justify;
}

/* --- STYLES OVERLAY LÉGAL --- */
.st-legal-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: 5px;
    margin-bottom: 10px;
    font-size: 2rem;
    text-align: center;
}

.st-legal-subtitle {
    color: #2de2ff;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-align: center;
}

.st-legal-text {
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1rem;
}

.st-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    cursor: pointer;
}

.st-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.st-checkbox-label {
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

/* --- FORMULAIRE D'INSCRIPTION --- */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 0;
    padding-top: 0;
    border: 1px solid #1a1a1a;
    background: #050505;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input {
    padding: 12px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    font-size: 16px; /* Évite le zoom automatique sur mobile */
    font-family: 'Montserrat', sans-serif;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--blue);
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-input-half {
    flex: 1;
}

.form-submit {
    background: #2de2ff;
    color: #000;
    padding: 15px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 2px;
    margin-top: 10px;
    font-size: 16px; /* Évite le zoom automatique sur mobile */
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.form-submit:hover {
    background: #25cce5;
}

/* --- CORRECTIF MOBILE SANS ÉCHEC --- */
@media (max-width: 768px) {
    /* Sur mobile, on ne fixe JAMAIS le body */
    body.strict-lock { 
        position: relative !important; 
        overflow: hidden !important; 
    }

    #st-protection-overlay {
        display: block !important; /* Pour que le scroll interne fonctionne */
        padding: 40px 0;
    }

    .st-legal-container {
        margin: 0 auto;
        padding: 20px;
        width: 92%;
    }

    .st-legal-title {
        font-size: 1.5rem;
    }

    .st-legal-subtitle {
        font-size: 0.9rem;
    }

    .st-legal-footer {
        font-size: 0.7rem;
    }

    h1 { font-size: 1.3rem !important; }
    p { font-size: 0.85rem !important; }
    
    /* Évite le bug du clic "fantôme" et le zoom iOS */
    input, button, select, textarea { font-size: 16px !important; }

    /* Formulaire responsive - champs côte à côte passent sous l'autre */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-input-half {
        flex: none;
        width: 100%;
    }

    .form-container {
        margin: 0 10px;
        padding: 15px;
    }

    .register-form {
        gap: 15px;
    }

    .logo-st {
        max-width: 120px;
    }
}

/* --- AUTRES --- */
.st-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.st-link:hover {
    color: #25cce5;
    text-decoration: underline;
}

.cta-inscription { 
    color: var(--blue); 
    text-decoration: none; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    display: block;
    text-align: center;
    margin: 20px 0;
}

/* --- SOUS-TITRE --- */
.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- MESSAGE DE SUCCÈS --- */
.success-message {
    text-align: center;
    color: var(--blue);
    font-weight: 600;
    padding: 15px;
    background: rgba(45, 226, 255, 0.1);
    border: 1px solid var(--blue);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* --- FORMULAIRE DE CONTACT --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px; /* Évite le zoom automatique sur mobile */
}

/* --- FOOTER --- */
footer {
    background-color: var(--black);
    border-top: 1px solid #1a1a1a;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-copyright {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.8;
    font-family: 'Montserrat', sans-serif;
}

.footer-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #25cce5;
    text-decoration: underline;
}

.separator {
    color: #555;
    margin: 0 8px;
    font-weight: 300;
}

/* --- FOOTER RESPONSIVE --- */
@media (max-width: 768px) {
    footer {
        padding: 30px 15px;
        margin-top: 40px;
    }

    .footer-copyright {
        font-size: 0.8rem;
        line-height: 2;
    }

    .separator {
        display: block;
        margin: 10px 0;
        color: #444;
    }

    .footer-copyright {
        text-align: center;
    }
}