@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900&display=swap');

/* Styles globaux */
body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #ffffff;
    font-family: 'Lato', sans-serif;
    overflow: hidden;
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
    display: none; /* Assure la disparition complète */
}

lottie-player {
    width: 150px;
    height: 150px;
}

.countdown-container {
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo {
    width: 250px;
    margin-bottom: 30px;
    animation: fadeInDown 2s ease-out;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.5rem;
    flex-wrap: wrap;
    max-width: 100vw;
    box-sizing: border-box;
}

.time-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 2s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
    margin-bottom: 10px;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.time-box span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000000;
}

.time-box span:last-child {
    color: #000000;
    font-size: 1rem;
}

/* Responsive styles */
@media (max-width: 600px) {
    .logo {
        width: 120px;
    }
    #countdown {
        gap: 10px;
    }
    .time-box {
        padding: 15px;
        min-width: 70px;
    }
    .time-box span:first-child {
        font-size: 2rem;
    }
    .time-box span:last-child {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    #countdown {
        flex-wrap: wrap;
        justify-content: center;
    }
    .time-box {
        padding: 10px;
        min-width: 60px;
    }
    .time-box span:first-child {
        font-size: 1.5rem;
    }
    .time-box span:last-child {
        font-size: 0.7rem;
    }
}

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

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