* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    background-color: #f5f5f5; /* Fond gris pour la page */
}
.carousel-container {
    display: flex !important;
    margin-top: 5em !important;
    width: 80% !important;
    margin: 1em auto 1.5em !important; /* Marges externes : haut et bas plus petites que la largeur */
    max-width: 1000px !important;
    border-radius: 15px !important; /* Arrondir les coins du carrousel globalement */
    overflow: hidden !important; /* Empêcher les éléments de déborder */
    box-shadow: 0 10px 5px rgba(255, 255, 255, 0.1) !important; /* Ombre portée */
    transition: box-shadow 0.3s ease !important; /* Transition douce pour l'ombre */
    background-color: rgb(0, 0, 0) !important; /* Fond blanc pour le carrousel */
    margin-bottom: 2em !important; /* Ajoute un espace en bas du carrousel de la même taille que la marge de gauche */
}


/* Réduire la taille de l'image avec la classe 'sonoreintect-img' */
.sonoreintect-imgonglets {
    max-height: 40vh; /* Limite la hauteur de l'image */
    object-fit: contain; /* Ajuste l'image sans la déformer */
    width: auto; /* Maintient la largeur proportionnelle */
}
/* Réduire la taille de l'image avec la classe 'sonoreintect-img' */
.sonoreintect-img {
    max-height: 20vh; /* Limite la hauteur de l'image */
    object-fit: contain; /* Ajuste l'image sans la déformer */
    width: auto; /* Maintient la largeur proportionnelle */
}
.centrale-img{
    max-height: 30vh; /* Limite la hauteur de l'image */
    object-fit: contain; /* Ajuste l'image sans la déformer */
    width: auto; /* Maintient la largeur proportionnelle */
}

.carousel-container strong{
    color: red;
}
.tabs {
    width: 25%;
    background-color: #f9f9f9;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    color:#000000
}
.tab {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, border-left 0.3s ease; /* Transition pour l'effet hover */
}

/* Dégradé de couleur pour chaque onglet, allant du noir vers le rouge */
.tab:nth-child(1):hover, .tab.active:nth-child(1) {
    border-left: 5px solid #edebeb; /* Noir pour le premier onglet */
    background-color: #edebeb; /* Onglet noir */
    color: rgb(0, 0, 0);
}
.tab:nth-child(2):hover, .tab.active:nth-child(2) {
    border-left: 5px solid #cccccc; /* Gris clair pour le quatrième onglet */
    background-color: #cccccc; /* Onglet gris clair */
    color: rgb(0, 0, 0);
}
.tab:nth-child(3):hover, .tab.active:nth-child(3) {
    border-left: 5px solid #b3b3b3; /* Gris moyen pour le troisième onglet */
    background-color: #b3b3b3; /* Onglet gris moyen */
    color: rgb(0, 0, 0);
}
.tab:nth-child(4):hover, .tab.active:nth-child(4) {
    border-left: 5px solid #7a7a7a; /* Gris clair pour le deuxième onglet */
    background-color: #7a7a7a; /* Onglet gris clair */
    color: rgb(0, 0, 0);
}
.tab:nth-child(5):hover, .tab.active:nth-child(5) {
    border-left: 5px solid #807753; /* Jaune pour le cinquième onglet */
    background-color: #807753; /* Onglet jaune */
    color: rgb(0, 0, 0);
}
.tab:nth-child(6):hover, .tab.active:nth-child(6) {
    border-left: 5px solid #ffcc00; /* Jaune pour le cinquième onglet */
    background-color: #ffcc00; /* Onglet jaune */
    color: rgb(0, 0, 0);
}
.tab:nth-child(7):hover, .tab.active:nth-child(7) {
    border-left: 5px solid #ff7f00; /* Orange pour le sixième onglet */
    background-color: #ff7f00; /* Onglet orange */
    color: rgb(0, 0, 0);
}
.tab:nth-child(8):hover, .tab.active:nth-child(8) {
    border-left: 5px solid #ff0000; /* Rouge pour le septième onglet */
    background-color: #ff0000; /* Onglet rouge */
    color: rgb(0, 0, 0);
}
.tab:nth-child(9):hover, .tab.active:nth-child(9) {
    border-left: 5px solid #820202; /* Rouge pour le septième onglet */
    background-color: #820202; /* Onglet rouge */
    color: rgb(0, 0, 0);
}

.tab img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    vertical-align: middle;
}
.tab-title {
    display: inline-block;
    vertical-align: middle;
}

.content {
    padding: 20px;
    width: 75%;
    display: flex;
    align-items: center; /* Centrer le contenu verticalement */
    justify-content: flex-start; /* Espacer image et texte */
    border: 5px solid transparent; /* Bordures sur tous les côtés */
    transition: border-color 0.3s ease, background-color 0.3s ease; /* Transition pour les bordures et fond */
}

/* Changer la couleur de la bordure en fonction de l'onglet actif */
.content:nth-child(2) {
    border-color: #edebeb; /* Noir pour le premier onglet */
}
.content:nth-child(3) {
    border-color: #cccccc; /* Gris clair pour le quatrième onglet */
}
.content:nth-child(4) {
    border-color: #b3b3b3; /* Gris moyen pour le troisième onglet */
}
.content:nth-child(5) {
    border-color: #7a7a7a; /* Gris clair pour le deuxième onglet */
}
.content:nth-child(6) {
    border-color: #807753; /* ? pour le cinquième onglet */
}
.content:nth-child(7) {
    border-color: #ffcc00; /* Jaune pour le sixième onglet */
}
.content:nth-child(8) {
    border-color: #ff7f00; /* Orange pour le septième onglet */
}
.content:nth-child(9) {
    border-color: #ff0000; /* Rouge pour le huitieme onglet */
}
.content:nth-child(10) {
    border-color: #820202; /* Rouge pour le neuvieme onglet */
}


.content img {
    height: 40vh; /* L'image prendra 40% de la hauteur de l'écran */
    object-fit: cover; /* L'image couvrira l'espace sans être déformée */
    width: auto; /* Maintient la largeur de l'image proportionnelle */
}
.content h2 {
    margin-bottom: 10px;
}
.content p {
    max-width: 400px; /* Limiter la largeur du texte */
}

/* Application des bords arrondis uniquement sur la partie droite */
.carousel-container > .tabs {
    border-right: 5px solid #ddd; /* Bordure entre les onglets et la partie contenu */
}

.content {
    border-top-right-radius: 15px; /* Arrondi du coin supérieur droit */
    border-bottom-right-radius: 15px; /* Arrondi du coin inférieur droit */
    display: flex;
    justify-content: space-between; /* Espacement entre image et texte */
    align-items: center; /* Centrer verticalement le contenu */
}

.content .text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrer le texte verticalement */
    align-items: flex-start; /* Alignement du texte à gauche */
    margin-left: 20px;
}

@media (max-width: 768px) {
    .carousel-container {
        width: 95% !important;
        flex-direction: column; /* Empile les éléments du carrousel pour garder l'image en haut */
    }

    .tabs {
        display: flex;
        flex-direction: row; /* Alignement horizontal des onglets */
        overflow-x: auto;
        gap: 8px;
        padding: 10px;
        background-color: #000000;
        width: 95%; /* Largeur des onglets à 95% de la largeur du carrousel */
        margin: 0 auto; /* Centrer la barre des onglets */
    }

    .tab {
        padding: 12px;
        text-align: center;
        font-size: 0.9em;
        display: flex;
        flex-direction: column;
        align-items: center;
        border: none;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease;
    }

    .tab:hover {
        transform: scale(1.05);
    }

    .tab img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin-bottom: 5px;
    }

    .content {
        width: 100%;
        padding: 10px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content img {
        width: 100%;
        max-height: 300px;
        height: auto;
        object-fit: contain;
    }

    .text {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .carousel-container {
        flex-direction: column;
        width: 100% !important;
    }

    .tabs {
        display: flex;
        flex-direction: row; /* Onglets alignés horizontalement */
        overflow-x: auto;
        gap: 5px;
        width: 95%; /* Largeur des onglets à 95% de la largeur du carrousel */
        margin: 0 auto; /* Centrer les onglets */
    }

    .tab {
        width: auto;
        padding: 10px;
    }

    .tab img {
        width: 50px;
        height: 50px;
    }

    .content {
        flex-direction: column;
        text-align: center;
    }

    .content img {
        max-width: 90%;
        height: auto;
    }

    .text {
        max-width: 90%;
    }
}
