﻿.carousel-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.carousel-inner {
    width: 100%;
    max-width: 1100px;
    margin: auto;
}

/* Ratio et apparence */
.dimPub {
    aspect-ratio: 10 / 2;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    position: relative;
    background-color: #757575;
}

    .dimPub img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 4s ease;
    }

.carousel-item.active img {
    transform: scale(1.05);
}

/* Dégradé de fond pour meilleure lisibilité du texte */
.overlay-banner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0) 100%);
    color: #e8f0f5; /* Blanc légèrement bleuté = plus doux et lisible */
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    backdrop-filter: blur(1px);
}



    /* Titre principal */
    .overlay-banner h2 {
        font-size: 2.1rem;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: 0.5px;
        font-family: "Poppins", "Segoe UI", sans-serif;
        animation: slideIn 1s ease forwards;
    }

        .overlay-banner h2 span {
            color: #00c194; /* ton vert original */
            text-shadow: 0 0 6px rgba(0,193,148,0.6);
        }

    .overlay-banner .animate-sub {
        color: #f1f1f1;
        opacity: 0.95;
        text-shadow: 0 2px 5px rgba(0,0,0,0.6);
    }


    /* Sous-texte */
    .overlay-banner .animate-sub {
        font-size: 1.05rem;
        margin-top: 0.7rem;
        font-weight: 400;
        opacity: 0.9;
        animation: fadeIn 1.5s ease forwards;
    }

/* Bouton */
.btn-iglo {
    display: inline-block;
    background: linear-gradient(90deg, #00c194, #00a27f);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    margin-top: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,193,148,0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 2s ease forwards;
}

    .btn-iglo:hover {
        background: linear-gradient(90deg, #00a27f, #00926f);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,193,148,0.5);
    }

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Version mobile */
@media (max-width: 768px) {
    .dimPub {
        aspect-ratio: 2 / 1;
        background-color: #757575;
    }

    .overlay-banner {
        padding: 1.5rem;
        align-items: center;
        text-align: center;
        background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
    }

        .overlay-banner h2 {
            font-size: 1.4rem;
        }

        .overlay-banner .animate-sub {
            font-size: 0.9rem;
        }

    .btn-iglo {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
}
