* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: linear-gradient(
        135deg,
        #f97316 0%,
        #ffb300 45%,
        #fbff00 100%
    );

    overflow: hidden;
}

/* Petites lumières décoratives */

body::before,
body::after {
    content: "";
    position: fixed;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    filter: blur(5px);

    pointer-events: none;
}

body::before {
    top: -150px;
    left: -100px;
}

body::after {
    bottom: -180px;
    right: -100px;
}

/* Conteneur */

.container {
    width: 100%;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carte */

.card {
    width: min(430px, 100%);

    padding: 45px 30px;

    text-align: center;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(255, 255, 255, 0.7);

    border-radius: 28px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.18),
        0 5px 20px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(15px);

    animation: appear 0.6s ease-out;
}

/* Logo */

.logo {
    width: 80px;
    height: 80px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    overflow: hidden;

    background: linear-gradient(
        135deg,
        #f97316,
        #fbff00
    );

    box-shadow:
        0 10px 25px rgba(249, 115, 22, 0.35);

    animation: float 2.5s ease-in-out infinite;
}

.logo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

/* Titre */

h1 {
    margin-bottom: 28px;

    font-size: 32px;
    font-weight: 800;

    color: #171717;

    letter-spacing: -1px;
}

/* Loader */

.loader {
    width: 45px;
    height: 45px;

    margin: 0 auto 20px;

    border: 5px solid #eeeeee;
    border-top-color: #f97316;
    border-right-color: #fbff00;

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

/* Message */

#loading {
    font-size: 18px;
    font-weight: 700;

    color: #262626;

    margin-bottom: 8px;
}

/* Sous-texte */

.subtext {
    font-size: 14px;

    color: #737373;
}

/* Etat erreur */

.card.error .loader {
    display: none;
}

.card.error #loading {
    color: #dc2626;
}

.card.error .subtext {
    display: none;
}

/* Animations */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile */

@media (max-width: 480px) {

    .card {
        padding: 35px 22px;
        border-radius: 24px;
    }

    h1 {
        font-size: 28px;
    }

    .logo {
        width: 70px;
        height: 70px;
        font-size: 34px;
    }
}