.carousell-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

.carousell {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.carousell-item {
    position: relative;
    min-width: calc(100% / 3);
    height: 75vh;
    flex-shrink: 0;
    overflow: hidden;
}

.carousell-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rectanglee {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    transition: width 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
}

.text-smalll {
    font-size: 40px;
    font-weight:normal;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    position: absolute; /* Fixe la position */
    top: 40%; /* Centre verticalement */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* Pour éviter tout recalcul de taille */
    text-align: center;
}

.text-largee {
    font-size: 30px;
    font-weight: normal;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;  /* Assure une bonne largeur */
    max-width: 600px; /* Évite un étirement excessif */
    text-align: center;
    white-space: nowrap; /* Permet le retour à la ligne */
    line-height: 1.4; /* Espacement des lignes */
}

.carousell-item:hover .rectanglee {
    width: 100%;
}

.carousell-item:hover .text-largee {
    opacity: 1;
}
.mid {
    font-size: 3em;
}
.carousel-control-prev-icon, .carousel-control-next-icon, .carousel-control-prev, .carousel-control-next {
    color:white !important;
    opacity: 1 !important;
    -webkit-tap-highlight-color : white !important;
}
body {
    -webkit-tap-highlight-color : white !important;
}
.mb-5 {
    margin-bottom: 0 !important;
    padding-top: 0vh;
    padding-bottom: 1vh;
}
@media (max-width: 800px) and (orientation: portrait) {
    .carousell-item {
        min-width: 100%;
        height: 60vh;
    }

    .rectanglee {
        width: 50%;
        background: rgba(0, 0, 0, 0.7);
        transition: none;
    }

    .text-smalll1 {
        font-size: 2rem;
        top: 42%;
    }

    .text-smalll2 {
        font-size: 2rem;
        top: 35%;
    }
    .text-smalll {
        font-size: 2rem;
    }
    .text-largee {
        font-size: 1.5rem;
        opacity: 1;
        white-space: normal;
        top: 52%;
        padding: 0 15px;
    }

    /* Désactiver les effets de hover sur mobile */
    .carousell-item:hover .rectanglee {
        width: 50%;
    }

    .carousell-item:hover .text-largee {
        opacity: 1;
    }

    .carousell {
        gap: 0; /* Supprime l'espace entre les éléments sur mobile */
        animation: scroll 30s linear infinite; /* Animation légèrement plus lente */
    }

    .mid {
        font-size: 2em; /* Taille réduite pour le texte en taille moyenne */
    }
    .mb-5 {
        margin-bottom: 0 !important; /* Supprime la marge en bas sur mobile */
        padding-top: 2.5vh;
        padding-bottom: 5vh;
    }
    .mtt1 {
        margin-top: 0 !important; /* Supprime la marge en haut sur mobile */
    }
    .inspiration-section {
        display: none !important; /* Masque la section inspiration en portrait*/
    }
}

@media (max-width: 956px) and (orientation: landscape) {
    .carrousell-container,
    .carrousell,
    .carousell-item {
        width: 100%;
        height: 70vh !important;
    }
    .luxurious-script-regular,.mid,.mb-5 {
        font-size: 2rem !important; /* Ajuste la taille de la police pour les petits écrans */
    }
    .inspiration-section {
        display: none !important; /* Masque la section inspiration en paysage */
    }
    .inspiration-section {
    padding: 1rem 0;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #eee;
    height: 9vh;
    }
    .rectanglee {
        line-height: 2.5;
    }
    .text-largee {
        font-size: 1.5em;
        bottom: 85%;
    }
    .collapse-toggle,.under{
        font-size: 1em;
    }
    .collapse-content a{
        font-size: 0.75em;
    }
}
