/* Conteneur pour le premier carrousel */
.container, .container2 {
    overflow: hidden;
    width: 100%;
}

/* Définition des carrousels */
.carousel, .carousel2 {
    position: relative;
    width: 100%;
}

/* Élément contenant les diapositives */
.carousel-inner, .carousel-inner2 {
    display: flex;
    overflow: hidden;
    height: 300px; /* Hauteur fixe ou ajustée pour une bande horizontale */
    flex-wrap: nowrap;
}

/* Diapositives */
.slide, .slide2 {
    flex: 0 0 100%;
    height: 100%;
    position: relative; /* Position relative pour le parent */
    transition: .5s ease-in-out;
}

/* Image des diapositives */
.slide img, .slide2 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintient l’image proportionnée */
}

/* Liens dans le carrousel */
.carousel .slide a, .carousel2 .slide2 a {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 60px;
    border-radius: 5px;
    z-index: 10;
}

/* Boutons de contrôle du premier carrousel */
.carousel-controls, .carousel-controls2 {
    position: absolute;
    z-index: 20;
    left: 10px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: auto;
}

/* Style des boutons de contrôle */
.carousel-controls button, .carousel-controls2 button {
    padding: 10px 15px;
    background-color: orangered;
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.carousel-controls button:hover, .carousel-controls2 button:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
}

/* Points de navigation */
.carousel-dots, .carousel-dots2 {
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.carousel-dots .dot, .carousel-dots2 .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 5px;
    background-color: #ddd;
    cursor: pointer;
}

.carousel-dots .active, .carousel-dots2 .active {
    background-color: orangered;
}

.carousel-dots .inactive, .carousel-dots2 .inactive {
    background-color: white;
}

/* Bande au-dessus de chaque carrousel */
.header-banner, .header-banner2 {
    padding: 15px 0;
    padding-left: 20px;
    margin-top: calc(80px + 2rem);
    background-color: rgba(0, 0, 0, 0.95);
    color: #fff;
    font-size: 1.5em;
    font-weight: 600;
    width: 100%;
}
.header-banner2 {
    background-color: #cacaca;
    margin-top: 0;
    color: black;
}
span {
    color: orangered;
}

/* Ajustements pour les sections */
.sn1, .sn2 {
    width: 100%;
    min-height: 100vh;
    background: rgb(241, 241, 241);
    display: flex;
    align-items: center;
    gap: 7em;
    padding: 30px 12% 0;
}

/* Media query pour les petits écrans */
@media (max-width: 768px) {
    .carousel-inner, .carousel-inner2 {
        height: 200px; /* Ajuste la hauteur sur les petits écrans */
    }
}

h2 {
    margin-top: .5em;
    margin-bottom: .5em;
    font-size: 50px;
}

/* Style actif des liens lors du défilement */
.carousel .slide.active .carousel-controls, .carousel2 .slide2.active .carousel-controls2 {
    z-index: 1;
}

.carousel-controls, .carousel-controls2 {
    pointer-events: none;
}

.carousel-controls button, .carousel-controls2 button {
    pointer-events: auto;
}
