/* Variables CSS pour une gestion facile des tailles */
:root {
    --logo-size: min(30vw, 180px);
    --loader-size: min(15vw, 60px);
    --loader-border: min(0.5vw, 4px);
    --font-size-base: clamp(1rem, 2vw, 1.5rem);
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Conteneur principal */
.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Animation du logo */
.logo {
    width: var(--logo-size);
    height: auto;
    animation: splashAnim 2.5s ease-in-out forwards;
    display: block;
    margin: 0 auto 5vh;
    max-width: 100%;
}

@keyframes splashAnim {
    0% {
        transform: scale(0.3) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Style du minuteur */
#timer {
    font-size: var(--font-size-base);
    color: #333;
    margin: 2vh 0 0;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

/* Loader circulaire */
.loader {
    position: relative;
    margin: 3vh auto 0;
    border: var(--loader-border) solid #f3f3f3;
    border-top: var(--loader-border) solid #db7734;
    border-radius: 50%;
    width: var(--loader-size);
    height: var(--loader-size);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media Queries pour les très petits écrans */
@media (max-width: 480px) {
    :root {
        --logo-size: 50vw;
        --loader-size: 20vw;
        --font-size-base: 1.1rem;
    }
    
    .logo {
        margin-bottom: 3vh;
    }
    
    .loader {
        margin-top: 4vh;
    }
}

/* Media Queries pour les écrans moyens */
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --logo-size: 25vw;
    }
}

/* Media Queries pour les grands écrans */
@media (min-width: 1200px) {
    :root {
        --logo-size: 200px;
        --loader-size: 60px;
    }
}