/* ===== BLOC PERSONNALISÉ EN 2 COLONNES ===== */
.custom-block-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: inherit;
    color: #fff; /* texte blanc par défaut */
}

/* TITRE H1 AU-DESSUS */
.custom-block-wrapper h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
    color: #000; /* H1 noir */
}
.custom-block-infodu {
    background-color: #5abcaa;
    border-radius: 16px;
    padding: 24px;
    color: #fff; /* texte blanc */
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 2em;
}
.custom-block-infodu .infodu-text {
    flex: 1;
}
.custom-block-infodu .infodu-image {
    width: 38%;
}
.custom-block-infodu .infodu-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}
.custom-block-infodu h2 {
    font-size: 1.8em;
    margin-bottom: 0.6em;
    font-weight: 600;
    color: #fff; /* titre blanc */
}
.custom-block-infodu p {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: #fff; /* texte blanc */
}
.custom-block-infodu a.custom-btn {
    display: inline-block;
    padding: 0.75em 1.8em;
    background-color: #fff;
    color: #5abcaa;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}
.custom-block-infodu a.custom-btn:hover {
    background-color: #e8fafa;
    color: #5abcaa;
}

/* RESPONSIVE */
@media(max-width: 700px) {
    .custom-block-infodu {
        flex-direction: column;
        text-align: center;
    }
    .custom-block-infodu .infodu-image {
        width: 100%;
    }
}

@media(max-width: 600px) {
    .custom-block-wrapper {
        padding: 0 12px;
    }
    .custom-block-infodu {
        padding: 20px;
    }
}

/* ======== WRAPPER GLOBAL ======== */
.carousel-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: inherit;
    color: #000;
}

/* ======== TITRE H1 AU-DESSUS ======== */
.carousel-wrapper h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
}

/* ======== CARROUSEL ======== */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid #000;
    background-color: #fff;
}

/* Track contenant les slides */
.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

/* ======== SLIDE ======== */
.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 24px;
    background-color: #fff;
    color: #000;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Zone texte */
.carousel-slide .slide-text {
    flex: 1;
}

/* Image */
.carousel-slide .slide-img {
    width: 35%;
}
.carousel-slide .slide-img img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Styles titres et paragraphes */
.carousel-slide h2 {
    font-size: 1.7em;
    font-weight: 700;
    margin-bottom: 0.5em;
}
.carousel-slide p {
    font-size: 1.1em;
    margin-bottom: 1em;
}

/* Bouton */
.carousel-slide .slide-btn {
    display: inline-block;
    padding: 0.75em 1.6em;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s ease;
}
.carousel-slide .slide-btn:hover {
    background-color: #444;
}

/* ======== NAVIGATION ======== */
.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    gap: 10px;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: #eee;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #000;
}
.carousel-dot.active {
    background-color: #000;
}

/* ======== RESPONSIVE ======== */
@media(max-width: 900px) {
    .carousel-slide {
        flex-direction: column;
        text-align: center;
    }
    .carousel-slide .slide-img {
        width: 80%;
    }
}

@media(max-width: 600px) {
    .carousel-wrapper {
        padding: 0 12px;
    }
    .carousel-slide {
        padding: 20px;
    }
    .carousel-slide .slide-img {
        width: 100%;
    }
}
