/* --- RESET DE BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #ffffff;
    background-color: #111;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Empêche le débordement horizontal */
    overflow-x: hidden; 
}

/* --- CONTENEUR PRINCIPAL --- */
.maintenance-container {
    text-align: left;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    margin-left: 10vw; 
    
    /* --- CORRECTION POUR MOBILE --- */
    /* On s'assure que le texte ne colle pas aux bords */
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

/* --- TITRE --- */
.main-title {
    /* On réduit un peu la taille maximale pour mobile */
    font-size: clamp(1.8rem, 5vw, 4rem); 
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.1;
}

/* --- BADGE OFFLINE JAUNE --- */
.offline-badge {
    display: inline-block;
    background-color: #ffea00;
    color: #1a1a1a;
    /* Taille adaptée pour ne pas déborder sur les petits écrans */
    font-size: clamp(1.8rem, 6vw, 4.5rem);
    font-weight: 800;
    padding: 0.2rem 1rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    /* Empêche le badge de dépasser la largeur de l'écran */
    max-width: 100%;
}

/* --- TEXTES --- */
.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.description {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    color: #cccccc;
    text-transform: uppercase;
    line-height: 1.3;
}

/* --- RESEAUX SOCIAUX --- */
.social-section {
    margin-top: 2rem;
}

.social-text {
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    margin-bottom: 0.8rem;
    color: #aaaaaa;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons a {
    color: #ffffff;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.social-icons svg {
    width: 24px; 
    height: 24px;
}

.social-icons a:hover {
    color: #ffea00;
    transform: scale(1.15);
}

/* --- RESPONSIVE MOBILE ET TABLETTE --- */
@media (max-width: 768px) {
    .maintenance-container {
        /* On enlève la marge de gauche sur mobile */
        margin-left: 0; 
        /* On ajoute un peu de padding sur les côtés pour aérer */
        padding: 1.5rem 1.5rem; 
        text-align: center; 
    }
    
    .social-icons {
        justify-content: center;
    }

    /* Ajustement spécifique pour les très petits écrans (ex: iPhone SE) */
    @media (max-width: 380px) {
        .main-title {
            font-size: 1.6rem;
        }
        .offline-badge {
            font-size: 2rem;
            padding: 0.2rem 0.8rem;
        }
        .subtitle {
            font-size: 0.9rem;
        }
    }
}