/* Définir l'arrière-plan sombre pour toute la page */

body {
    color: white;
    /* width: 100vh; */
    height: 100vh;
    background-color: #000000;
    overflow: hidden;
    margin: 0;
    font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    padding: 0;
}

.logo {
    width: 70%;
    /* height: 100px; */
    padding-right: 11px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Style pour les boutons d'icônes circulaires */

.btn-icon {
    width: 50px;
    height: 50px;
    /* border: 1px solid rgba(255, 255, 255, 0.4); */
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* background: rgba(255, 255, 255, 0.3); */
    font-size: 1rem;
    text-decoration: none;
    margin: 0 4px;
    transition: background-color 0.2s ease-in-out;
}

.btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* .btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.7);
} */

.btn-iconx {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 0.9;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 0 !important;
    text-decoration: none;
    margin: 10px 4px;
    transition: background-color 0.2s ease-in-out;
}

.btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* .btn-iconx:hover {
    background-color: rgba(255, 255, 255, 0.7);
} */

#plus {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    margin: 0 5px;
    border-radius: 50px;
    -webkit-backdrop-filter: blur(5px);
    /* opacity: 0; */
    display: none;
    padding: 10px;
    /* padding-bottom: 0; */
}

.btn-iconplus {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    opacity: 0.9;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 15px;
    text-decoration: none;
    margin: 0 4px;
    transition: background-color 0.2s ease-in-out;
    /* padding: 10px; */
}

.btn-iconplus img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* .btn-iconplus:hover {
    background-color: rgba(255, 255, 255, 0.7);
} */


/* Ajustements typographiques pour le texte central */

.hero-text {
    z-index: 1030;
    max-width: 700px;
}

.hero-text h1 {
    text-transform: uppercase;
    font-size: 2rem;
}

.modal-header {
    align-items: start;
}

/* .hero-text h1 {
    letter-spacing: -1px;
    text-shadow: black 1px 1px 1px;
} */

.hero-text h2 {
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* opacity: 0.8; */
    color: #fff;
    text-shadow: rgb(129, 127, 127) 1px 1px 2px;
}

.hero-text p {
    /* opacity: 0.9; */
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    /* text-shadow: rgb(161, 160, 160) 1px 1px 1px; */
}

.fixed-top,
.fixed-bottom {
    margin: 10px 5px;
}

.fixed-bottom .container-fluid {
    justify-content: start;
    flex-direction: column;
    align-items: start;
}


/* Styles du menu Offcanvas */

.offcanvas {
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-backdrop .show {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.offcanvas-nav-links .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 24px !important;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.8rem 0;
    transition: all 0.2s ease-in-out;
}

.offcanvas-nav-links .nav-link:hover {
    color: #fff !important;
    padding-left: 0.5rem !important;
}

.offcanvas-header {
    margin-top: 10px;
    justify-content: start;
}


/* .offcanvas-header .btn-close {
    margin: initial;
} */


/* Styles du Modal "Nos Services" */

.modal-content-dark {
    color: #cfcfcf;
    font-weight: 500;
    font-size: 15px;
    background-color: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* height: 250px; */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}


/* Styles du sous-menu Offcanvas */

.submenu-nav {
    padding-left: 1.5rem;
}

.submenu-nav .nav-link {
    font-size: 1.1rem !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.6) !important;
}

.submenu-nav .nav-link:hover {
    color: #fff !important;
}

.submenu-nav .submenu-nav .nav-link {
    font-size: 1rem !important;
    padding-top: 0.5rem;
    padding-left: 0.5rem !important;
    padding-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8) !important;
}

.submenu-nav .submenu-nav .nav-link:hover {
    color: #fff !important;
    padding-left: 0.7rem !important;
}

.offcanvas-nav-links .nav-link .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease-in-out;
}

.offcanvas-nav-links .nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}


/* 
 * NOUVEAU : Styles pour le carrousel de vignettes SLICK (Horizontal)
 * (Remplace tous les anciens styles de carrousel)
 */

.carousel-container {
    max-width: 600px;
    /* Largeur pour 4 vignettes + flèches */
    margin: 2rem auto 0;
    position: relative;
    top: 140px;
}

.slick-current.slick-active {
    background-size: cover;
}

#thumbnail-nav-slider {
    max-width: 400px;
}

#thumbnail-nav-slider .slick-slide {
    padding: 0 5px;
    /* Espacement entre les vignettes */
}

.thumbnail-button {
    width: 100%;
    /* S'adapte à la diapositive slick */
    height: 80px;
    /* Hauteur de la vignette (carré arrondi) */
    /* Style "verre dépoli" INACTIF */
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 1rem;
    /* Bords arrondis (16px) */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.thumbnail-button img {
    border-radius: 1rem;
}


/* Style pour la vignette SÉLECTIONNÉE (Slick ajoute.slick-current) */

#thumbnail-nav-slider .slick-current .thumbnail-button {
    background-color: rgba(255, 255, 255, 0.9);
    /* Opaque, comme sur l'image */
    color: #333;
    /* Icône sombre */
    border-color: rgba(255, 255, 255, 0.7);
}


/* 
 * Style pour les flèches du carrousel Slick
 */

#thumbnail-nav-slider.slick-prev,
#thumbnail-nav-slider.slick-next {
    font-size: 2rem;
    color: white;
    z-index: 10;
    opacity: 0.5;
    transition: opacity 0.2s;
    width: 40px;
    height: 40px;
}

#thumbnail-nav-slider.slick-prev:hover,
#thumbnail-nav-slider.slick-next:hover {
    opacity: 1;
}

#thumbnail-nav-slider.slick-prev {
    left: -45px;
}

#thumbnail-nav-slider.slick-next {
    right: -45px;
}


/* Remplace les flèches par défaut de Slick par des icônes Font Awesome */

#thumbnail-nav-slider.slick-prev:before,
#thumbnail-nav-slider.slick-next:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
}

#thumbnail-nav-slider.slick-prev:before {
    content: '\f104';
    /* fa-chevron-left */
}

#thumbnail-nav-slider.slick-next:before {
    content: '\f105';
    /* fa-chevron-right */
}

.slick-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: fit-content;
    /* Assure que la largeur remplit la fenêtre */
    height: 100%;
    /* Ratio 16:9 (100 * 9 / 16 = 56.25) */
    min-height: 100vh;
    min-width: 177.77vh;
    /* Ratio 16:9 (100 * 16 / 9 = 177.77) */
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    /* Empêche le clic sur la vidéo */
}

@media (max-width: 576px) {
    .carousel-container {
        top: 100px;
        max-width: 250px;
        /* Réduit la largeur sur mobile */
    }

    #mainOffcanvas.offcanvas.offcanvas-start {
        max-width: 85%;
        width: max-content;
    }

    #mainOffcanvas .fas.fa-chevron-down {
        margin-left: 15px;
    }

    .fixed-bottom .container-fluid #plus {
        margin-top: 10px;
        max-width: 59%;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text {
        width: 87%;
    }

    .modal-header h5 {
        padding-top: 23px;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h5 {
        padding-right: 25px;
        padding-left: 25px;
    }
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 700px;
        margin-right: auto;
        margin-left: auto;
    }

    .slick-track {
        transform: none !important;
    }
}

.fixed-bottom .container-fluid .d-flex {
    /* background: rgba(0, 0, 0, 0.3); */
    padding: 10px 5px;
    border-radius: 50px;
    /* backdrop-filter: blur(5px); */
    /* -webkit-backdrop-filter: blur(5px); */
}

.fixed-top .container-fluid {
    /* background: rgba(0, 0, 0, 0.3); */
    padding: 10px 5px;
    border-radius: 50px;
    /* backdrop-filter: blur(5px); */
    /* -webkit-backdrop-filter: blur(5px); */
}

#main-image-slider {
    position: fixed;
    /* Fixé à la fenêtre */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* 100% de la hauteur de la fenêtre */
    z-index: 1;
    /* Placé derrière tout le contenu */
    overflow: hidden;
    /* Cache tout débordement */
}


/* Style pour chaque diapositive (slide) */

.slide-bg {
    width: 100%;
    height: 100vh;
    background-size: cover;
    /* L'image couvre tout l'espace */
    background-position: center;
    /* L'image est centrée */
    background-repeat: no-repeat;
}


/* Ajout d'une superposition sombre pour la lisibilité du texte (comme sur votre image) */

/* #main-image-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    
    z-index: 2;

} */


/* S'assurer que le contenu du slider est au-dessus de la superposition */

#main-image-slider .slick-list,
#main-image-slider .slick-track {
    z-index: 1;
}


/* add for 3 slides or less */
/* .slick-track {
    transform: none !important;
} */


/* Empêche Slick JS d'ajouter une bordure de focus */

#main-image-slider:focus,
.slide-bg:focus {
    outline: none !important;
}

.animate__animated .animate__fadeOut {
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-name: fadeOut;
}

.tourbutton {
    position: fixed;
    bottom: 44%;
    left: 0;
    width: 30px;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0 20px 20px 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
    z-index: 1031;
    cursor: pointer;
}


/* .tourbutton:hover {
    background-color: rgba(255, 255, 255, 0.7);
} */

.tourbutton .fa-chevron-down {
    font-size: larger;
    transform: rotate(270deg);
}

.nav-link img {
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
}

.nav-link img:hover {
    transform: scale(1.1);
}

#tourOffcanvas {
    width: auto;
}

#tourOffcanvas .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#tourOffcanvas .nav-link {
    font-size: 20px !important;
}

#tourOffcanvas .nav-link {
    font-size: 15px !important;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

#preloader .entreprise {
    /*in bottom  */
    position: absolute;
    bottom: 20px;
}

.spinner {
    /* border: 8px solid rgba(255, 255, 255, 0.2); */
    /* border-top: 8px solid #ffffff; */
    border-radius: 50%;
    width: 150px;
    height: 150px;
    /* animation: spin 1s linear infinite; */
}


/* Make the iframe fill its parent's width and height */

.modal-body iframe {
    width: 100%;
    height: 90vh;
    /* Sets height to 75% of the viewport height, or use a fixed size like 600px */
    display: block;
    /* Removes any default inline space */
}


#tourview .modal-dialog-centered {
    max-width: 95vw;
}

#tourview .modal-dialog {
    margin: 0 auto;
    max-height: 90vh;
    width: 95%;
}

#tourview .modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1051;
    margin: 0;
}

#tourview .btn-close {
    color: #252525;
    font-weight: bolder;
    font-size: large;
    /* filter: none; */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.modal-header .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.modal-header h5 {
    margin: 0 auto;
    text-align: center;
    padding-top: 23px;
    padding-bottom: 10px;
    border-bottom: 2px solid #b5b2b2;
}

#plus .row>* {
    padding-left: 0;
    padding-right: 0;
}

/* Custom slide background for the first slide */
.slide-1 {
    background-image: url('https://cl273.vr.infogeant.com/photo 1.jpg');
}

.slide-1-thumb {
    background-image: url('https://cl273.vr.infogeant.com/photo 1.jpg');
}

@media (max-width: 768px) {
    .slide-1 {
        background-image: url('https://cl273.vr.infogeant.com/photo 2.jpg');
    }
}


/* Modal Navigation Buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 1060;
    transition: all 0.3s ease;
}

.modal-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.modal-nav-prev {
    left: -20px;
}

.modal-nav-next {
    right: -20px;
}

@media (max-width: 768px) {
    .modal-nav-prev {
        left: -10px;
    }

    .modal-nav-next {
        right: -10px;
    }
}