/* ============================================================================
   COMPOSANT — Écran « MAINTENANCE »
   Affiché à la place du site quand maintenanceMode est à true (data/settings.js).
   ============================================================================ */

/* Écran « MAINTENANCE » */

.maintenance-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 60px);
    animation: maintenanceFadeIn 0.5s ease both;
}

.maintenance-screen[hidden] {
    display: none;
}

.maintenance-card {
    text-align: center;
    max-width: 560px;
    width: 100%;
    animation: maintenanceRise 0.6s 0.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.maintenance-logo {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.2rem, 4vw, 1.65rem);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    padding-left: 0.32em;
    color: var(--text-color);
    margin-bottom: 28px;
}

/* Écran « MAINTENANCE » */

.maintenance-rule {
    width: clamp(40px, 10vw, 64px);
    height: 1px;
    background: var(--text-color);
    margin: 0 auto clamp(32px, 8vh, 56px);
}

.maintenance-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
    letter-spacing: 0.18em;
    padding-left: 0.18em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: clamp(28px, 7vh, 48px);
}

.maintenance-text {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(0.95rem, 2.4vw, 1.05rem);
    line-height: 1.8;
    letter-spacing: 0.04em;
    color: var(--text-muted-strong);
    margin: 0 auto;
    max-width: 420px;
}

.maintenance-bar {
    width: clamp(48px, 12vw, 80px);
    height: 1px;
    background: var(--border-color);
    margin: clamp(40px, 10vh, 72px) auto 0;
    overflow: hidden;
    position: relative;
}

.maintenance-bar span {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--text-color);
    animation: maintenanceProgress 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Écran « MAINTENANCE » */

@media (prefers-reduced-motion: reduce) {
    .maintenance-screen,
    .maintenance-card {
        animation: none;
    }
    .maintenance-bar span {
        animation: none; opacity: 0.4;
    }
}

@keyframes maintenanceFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes maintenanceRise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes maintenanceProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}
