/* =========================================
   1. VARIABLES ET RESET GLOBAUX
   ========================================= */
:root {
    --anthracite: #0D1B2A; 
    --bordeaux: #FF6B00;   /* Rouge-Orangé Électrique */
    --light-gray: #1B263B; 
    --text-color: #E0E1DD; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--anthracite);
    color: var(--text-color);
    overflow: hidden; /* Empêche le défilement */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* =========================================
   2. CONTENEUR PRINCIPAL
   ========================================= */
.maintenance-container {
    max-width: 800px;
    padding: 40px;
    text-align: center;
    background-color: var(--light-gray);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-title-maintenance {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    color: var(--bordeaux);
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.subtitle-maintenance {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 40px;
    opacity: 0.8;
}

/* =========================================
   3. ANIMATION DE CHARGEMENT (TERMINAL LINUX)
   ========================================= */
.loading-terminal {
    background-color: var(--anthracite);
    border: 1px solid var(--bordeaux);
    border-radius: 8px;
    padding: 20px;
    margin: 40px auto;
    max-width: 500px;
    text-align: left;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    color: #00FF00; /* Vert terminal */
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

#loading-text {
    min-height: 1.2rem; /* Pour éviter le "saut" */
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 15px;
    color: #E0E1DD; /* Couleur du texte dans le terminal */
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex-grow: 1;
    height: 18px;
    background-color: var(--light-gray);
    border: 1px solid var(--bordeaux);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--bordeaux);
    /* Animation gérée par JS */
    transition: width 0.5s ease-out; 
    border-radius: 3px;
    box-shadow: inset 0 0 5px rgba(255, 107, 0, 0.5);
}

#percentage {
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--bordeaux);
    font-weight: bold;
    width: 40px;
    text-align: right;
}

/* =========================================
   4. INFOS DE CONTACT
   ========================================= */
.contact-info {
    margin-top: 40px;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 15px;
}

.social-links-maintenance a {
    color: var(--text-color);
    font-size: 2rem;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-maintenance a:hover {
    color: var(--bordeaux);
    transform: translateY(-5px) scale(1.1);
}

/* =========================================
   5. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .maintenance-container {
        padding: 30px;
        margin: 20px;
    }
    .page-title-maintenance {
        font-size: 3rem;
    }
    .subtitle-maintenance {
        font-size: 1.2rem;
    }
    .loading-terminal {
        padding: 15px;
        font-size: 0.9rem;
    }
    .progress-bar {
        height: 15px;
    }
    .social-links-maintenance a {
        font-size: 1.6rem;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .maintenance-container {
        padding: 20px;
    }
    .page-title-maintenance {
        font-size: 2.5rem;
    }
    .subtitle-maintenance {
        font-size: 1rem;
    }
    .loading-terminal {
        max-width: 100%;
        margin: 20px auto;
    }
    .social-links-maintenance a {
        font-size: 1.4rem;
        margin: 0 8px;
    }
}