/* ============================================================
   MAINTENANCE.CSS - Feuille de style unique (Mobile First)
   ============================================================ */

/* --- 1. VARIABLES --- */
:root {
    --accent-purple: #9b82f3;
    --accent-cyan: #00d4ff; 
    --bg-dark: #05050a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-muted: #a0a0b5;
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    /* Utilisation de dVHz pour les navigateurs mobiles modernes, fallback en vh */
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: #fff;
    /* On empêche uniquement le scroll horizontal sur mobile pour éviter la coupure de la carte verticale */
    overflow-x: hidden; 
}

/* --- 3. BACKGROUNDS --- */
.vapor-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    background: 
        radial-gradient(circle at 80% 20%, rgba(155, 130, 243, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(155, 130, 243, 0.05) 0%, transparent 50%);
    filter: blur(80px);
}

#techBackgroundCanvas {
    position: fixed;
    inset: 0;
    width: 100%; 
    height: 100%;
    z-index: 2;
    opacity: 0.5;
    pointer-events: none;
}

/* --- 4. LAYOUT --- */
.maintenance-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    padding: 20px; /* Marge de sécurité pour mobile */
}

/* --- 5. COMPOSANTS (CARTES) --- */
.maintenance-card-box {
    width: 100%;
    max-width: 500px;
}

/* Fusion intelligente des doublons .login-card et .maintenance-card */
.maintenance-card, 
.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 30px 20px; /* Padding réduit pour le mobile */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    text-align: center;
}

/* Halo derrière la carte */
.login-card::before {
    content: '';
    position: absolute;
    inset: -10px; /* Réduit pour éviter les décalages sur mobile */
    border-radius: 40px;
    background: radial-gradient(circle at center, rgba(155, 130, 243, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- 6. TYPOGRAPHIE --- */
h1 { 
    font-size: 2.2rem; /* Adapté au mobile */
    margin: 0 0 10px 0; 
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p { 
    color: var(--text-muted); 
    line-height: 1.6; 
    font-size: 0.95rem; /* Adapté au mobile */
    margin-bottom: 0;
}

.status-text, 
.maintenance-header p {
    color: var(--accent-cyan); 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: block;
}

/* --- 7. ICONES & BOUTONS SOCIAUX --- */
.maintenance-icon {
    font-size: 3.5rem; /* Adapté au mobile */
    color: var(--accent-purple);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(155, 130, 243, 0.6));
    animation: rotate-gear 8s infinite linear;
}

.maintenance-footer-socials {
    position: relative; /* Évite la superposition sur petit écran */
    margin-top: 40px;
    display: flex;
    gap: 20px;
    z-index: 200;
}

.social-btn {
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-btn:hover {
    color: var(--accent-purple);
    transform: translateY(-8px) scale(1.2);
    filter: drop-shadow(0 0 10px rgba(155, 130, 243, 0.8));
}

/* --- 8. ANIMATIONS KEYFRAMES --- */
@keyframes rotate-gear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes brume-mouvement {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(3%, 4%) scale(1.06); }
    100% { transform: translate(-2%, -2%) scale(0.97); }
}

/* ============================================================
   9. MEDIA QUERIES (DESKTOP) - Restauration du design PC
   ============================================================ */
@media (min-width: 768px) {
    body, html {
        overflow: hidden; /* Réactivation du masquage de scroll sur PC */
    }

    .maintenance-wrapper {
        padding: 0;
    }

    .maintenance-card, 
    .login-card {
        padding: 40px 36px;
        max-width: 500px;
    }

    .login-card::before {
        inset: -20px; /* Retour au halo original */
    }

    h1 { 
        font-size: 2.8rem; 
    }

    p {
        font-size: 1.05rem;
    }

    .status-text, 
    .maintenance-header p {
        font-size: 0.85rem;
    }

    .maintenance-icon {
        font-size: 4.5rem;
        margin-bottom: 25px;
    }

    .maintenance-footer-socials {
        position: absolute; /* Repasse en bas de la page */
        bottom: 50px;
        margin-top: 0;
        gap: 25px;
    }
    
    .social-btn {
        font-size: 1.6rem;
    }
}