/* Variables pour le style Filaire Royal */
:root {
    --primary-bg-start: #F0F0F0;
    --primary-bg-end: #D0D0D0; /* Gris clair dégradé */
    --primary-text: #111; 
    --secondary-text: #555;
    --accent-color: #A9A9A9; /* Gris métallique */
    --error-color: #D35400; 
    --font-heading: 'Cormorant', serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background: radial-gradient(circle at center, var(--primary-bg-start) 0%, var(--primary-bg-end) 100%);
    color: var(--primary-text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Styles pour le Logotype (texte) dans la porte d'âge */
.logo-text {
    font-family: var(--font-heading);
    font-size: 3em;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: -15px;
}

.logo-subtext {
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 300;
    letter-spacing: 0.4em;
    color: var(--secondary-text);
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Styles du Logotype FINAL (Page après validation) */
.logotype-style-final {
    margin-bottom: 60px;
    animation: fadeIn 1s ease-out forwards;
}

.logo-text-final {
    font-family: var(--font-heading);
    font-size: 5em;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: -25px;
}
.logo-subtext-final {
    font-family: var(--font-body);
    font-size: 1.5em;
    font-weight: 300;
    letter-spacing: 0.8em;
    color: var(--secondary-text);
    text-transform: uppercase;
}


h1 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 2em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
p {
    font-size: 1em;
    font-weight: 300;
    line-height: 1.8;
    color: var(--secondary-text);
}

/* ------------------ A. Styles de la Porte d'Âge ------------------ */

.overlay-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    background: none; 
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
}

.age-check-box {
    max-width: 500px;
    padding: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 0; 
    margin-top: 40px; 
    box-sizing: border-box;
}

/* Boutons */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}

button {
    padding: 15px 40px;
    border: 1px solid var(--primary-text);
    background-color: transparent;
    color: var(--primary-text); 
    border-radius: 0;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    flex-grow: 1;
    max-width: 180px; 
}
button:hover {
    background-color: var(--primary-text);
    color: white; 
}
#noButton { border-color: var(--error-color); color: var(--error-color); }
#noButton:hover { background-color: var(--error-color); }
.error-message {
    color: var(--error-color);
    margin-top: 25px;
    font-weight: 400;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}

/* ------------------ C. Styles du Contenu Final ------------------ */

.main-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.footer-links {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 600px;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
    opacity: 0;
}
.footer-links p {
    margin: 10px 0;
    font-size: 0.9em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
}
.footer-links a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease-in-out;
}
.footer-links a:hover {
    color: var(--accent-color);
}

/* LA CLASSE UTILITAIRE ESSENTIELLE POUR LA TRANSITION */
.hidden {
    display: none !important;
}

/* ========================================================= */
/* 📱 OPTIMISATION POUR TÉLÉPHONE MOBILE (max-width: 600px) */
/* ========================================================= */

@media (max-width: 600px) {
    /* Styles inchangés pour le centrage */
    .logo-text { font-size: 2.2em; letter-spacing: 0.15em; margin-bottom: -10px; text-align: center; }
    .logo-subtext { font-size: 0.8em; letter-spacing: 0.3em; margin-bottom: 20px; text-align: center; }
    h1 { font-size: 1.6em; letter-spacing: 0.08em; text-align: center; }
    p { font-size: 0.95em; line-height: 1.5; text-align: center; }
    .age-check-box {
        padding: 25px 20px;
        margin-top: 20px;
        max-width: 90%;
        box-sizing: border-box;
    }
    .button-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }
    button { max-width: 100%; font-size: 1em; padding: 10px 30px; }
    
    /* Contenu Final */
    .logotype-style-final { margin-bottom: 30px; }
    .logo-text-final { font-size: 3em; letter-spacing: 0.2em; margin-bottom: -10px; }
    .logo-subtext-final { font-size: 1em; letter-spacing: 0.4em; }

    /* FOOTER CORRECTION CLÉ */
    .footer-links {
        bottom: 40px; /* Remonté pour éviter les barres d'interface mobile */
        width: 100%;
        max-width: 300px;
    }
    .footer-links p {
        font-size: 0.8em;
        letter-spacing: 0.1em;
    }
}