/* ---------------------------------------------------------
   FFBaD – Page de maintenance
   Design moderne, responsive et accessible
   --------------------------------------------------------- */

:root {
    --color-bg-1: #0a1228;
    --color-bg-2: #142244;
    --color-bg-3: #1c2d5a;
    --color-primary: #d35209;
    --color-primary-light: #f47c38;
    --color-text: #ffffff;
    --color-text-muted: #b8c0d4;
    --color-text-subtle: #8590a8;
    --color-card-bg: rgba(255, 255, 255, 0.04);
    --color-card-border: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 30px 80px -20px rgba(0, 0, 0, 0.5),
                   0 10px 30px -10px rgba(0, 0, 0, 0.4);
    --radius-lg: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

::selection {
    background: var(--color-primary);
    color: #fff;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg-1) 0%, var(--color-bg-2) 50%, var(--color-bg-3) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

/* -----------------------------
   Décorations d'arrière-plan
   ----------------------------- */
.bg-decoration {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: floatBlob 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #d35209 0%, transparent 70%);
    top: -150px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6c2ec7 0%, transparent 70%);
    bottom: -200px;
    right: -150px;
    animation-delay: -7s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00a8e8 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
    animation: floatBlobCenter 22s ease-in-out infinite;
    animation-delay: -14s;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes floatBlobCenter {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.08); }
}

/* -----------------------------
   Carte principale
   ----------------------------- */
.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
}

.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------
   En-tête (logo + marque)
   ----------------------------- */
.card-header {
    margin-bottom: 32px;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #0f2068;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: pulseLogo 3s ease-in-out infinite;
    overflow: hidden;
}

@keyframes pulseLogo {
    0%, 100% {
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1),
                    0 0 0 0 rgba(211, 82, 9, 0);
    }
    50% {
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1),
                    0 0 0 10px rgba(211, 82, 9, 0.08);
    }
}

.logo {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.brand {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text);
}

/* -----------------------------
   Statut "Maintenance en cours"
   ----------------------------- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 26px;
    background: rgba(211, 82, 9, 0.18);
    border: 1px solid rgba(244, 124, 56, 0.5);
    border-radius: 100px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-primary-light);
    margin-bottom: 28px;
    box-shadow: 0 8px 20px -8px rgba(211, 82, 9, 0.35);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary-light);
    box-shadow: 0 0 0 0 rgba(244, 124, 56, 0.7);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(244, 124, 56, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(244, 124, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 124, 56, 0); }
}

/* -----------------------------
   Titre et texte
   ----------------------------- */
.title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-text);
    margin: 0 0 20px;
    letter-spacing: -0.3px;
}

.description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0 0 16px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.apology {
    font-size: 14px;
    color: var(--color-text-subtle);
    margin: 0 0 40px;
    font-style: italic;
}

/* -----------------------------
   Pied de page
   ----------------------------- */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--color-card-border);
    font-size: 13px;
    color: var(--color-text-subtle);
}

.link {
    color: #5ab11a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link:hover,
.link:focus {
    color: #7dd03a;
    text-decoration: underline;
}

.separator {
    opacity: 0.5;
}

.copyright {
    color: var(--color-text-subtle);
}

/* -----------------------------
   Responsive
   ----------------------------- */
@media (max-width: 600px) {
    body {
        padding: 16px;
    }

    .card {
        padding: 40px 24px;
        border-radius: 20px;
    }

    .logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .logo {
        width: 64px;
    }

    .brand {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .description {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .card {
        padding: 32px 20px;
    }
}

/* -----------------------------
   Accessibilité — réduction des animations
   ----------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
