/* ===============================
    Styles principaux
=============================== */
.banner {
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    transition: all 0.3s ease-in-out;
}

.banner-slider {
    width: 100%;
    height: 60px;
}

.banner-item {
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.3s ease-in-out;
}

.banner-item.active {
    position: relative;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: #000;
    padding: 0 1rem;
    box-sizing: border-box;
}

.banner-content p {
    padding: 0 0.5rem;
    margin: 0;
}

.banner-item .countdown {
    display: flex;
    background-color: inherit;
    margin: 0 1rem;
}

.countdown {
    height: 100%;
    gap: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===============================
    Contenu de la bannière
=============================== */

.countdown > div {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.time-text {
    font-size: 0.75rem;
    font-weight: 400;
    margin: 0;
}

.countdown-number {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.countdown p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* ===============================
    Styles mobiles
=============================== */

@media (max-width: 480px) {
    .banner {
        min-height: 80px; /* Plus de hauteur pour mobile */
        height: 80px;
        max-height: 80px;
    }

    .banner-content {
        flex-direction: column;
        padding: 0.5rem 1rem;
    }

    .banner-item {
        min-height: 80px;
        height: 80px;
        max-height: 80px;
    }

    .banner-slider {
        height: 80px;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown > div {
        flex: 1 1 30%;
    }

    .countdown-number {
        font-size: 1.25rem;
    }
}
