/* Styles de base */
body {
    font-family: 'Aleo', serif;
    line-height: 1.6;
    background-color: #121212; /* Fond sombre */
    color: #ffffff; /* Texte clair */
}

#index-header {
    background:url(../img/portail_1.jpg)  no-repeat center center;
    background-size: contain;
    background-position: right;
    color: white;
    padding: 60px 0;
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center; /* Centre verticalement */
    justify-content: flex-start; /* Aligne le logo et le titre à gauche */
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo-container {
    margin-right: 20px; /* Espace entre le logo et le texte */
}

.logo-container img {
    height: 200px; /* Taille du logo */
    width: auto;
    filter: none; /* Enlève le filtre inversé */
    opacity: 0.9; /* Ajuste l'opacité pour un meilleur contraste */
    z-index: 10; /* Assure que le logo reste au-dessus du background */
    transform: translateY(-20%);
    padding-left: 20px; /* Ajoute un peu d'espace entre le logo et le texte */
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    padding-left: 20px; /* Ajoute un peu d'espace entre le logo et le texte */
    z-index: 5; /* Garde le texte visible */
    transform: translateY(-50%);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Barre de navigation */
.nav-bar {
    background-color: rgba(0, 48, 84, 0.3);
    padding: 10px 0;
    width: 100%;
    position: absolute;
    bottom: 0;
    margin: 0;
}

.nav-container {
    display: flex;
    justify-content: flex-start; /* Aligne les éléments à gauche --*/
    align-items: center;
    padding: 0 15px;
}
.nav-title-responsive{
    display:none;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(0, 48, 84,0.9);

}

.nav-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    margin-right: 20px; /* Espace entre le logo et les liens */
}
/* A propos h3*/
.container h3{
    font-size: 25px;
}
/* Carousel */
.carousel-inner img {
    width: 100%;
    height: 650px; /* Hauteur ajustable */
    object-fit: contain; /* Maintenir le ratio de l'image */
}

/* Chevrons du carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.5); /* Fond semi-transparent */
    border-radius: 50%; /* Arrondi */
    width: 30px;
    height: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%; /* Largeur des contrôles */
    height: 100%; /* Hauteur des contrôles */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    width: 5%; /* Largeur des contrôles */
    height: 100%; /* Hauteur des contrôles */
    border-radius: 50%; /* Arrondi */
    background-color: rgba(255, 255, 255, 0.8); /* Plus clair au survol */
}

.carousel-inner .carousel-item {
    transition: transform 1s ease-in-out;
    opacity: 0;
}

.carousel-inner .carousel-item.active {
    opacity: 1;
    transform: scale(1.15); /* Zoom léger sur l'image active */
}

/* Indicateur de swipe pour mobile */
.swipe-indicator {
    display: none;
    position: absolute;
    bottom: 30%;
    left: 50%; /* Place l'élément au milieu de l'axe X */
    transform: translateX(-50%); /* Décale l'élément de la moitié de sa largeur pour le centrer */
    color: rgba(255, 255, 255, 0.8);
    font-size: 30px;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none; /* Masque les chevrons sur mobile */
    }

    h1 {
        font-size: 30px;
    }

    .swipe-indicator {
        display: block; /* Affiche l'indicateur de swipe sur mobile */
        animation: pulse 1.5s infinite; /* Animation de clignotement */
    }
}

/* Logos de réservation */
.reservation-logos {
    text-align: center;
}

.reservation-logos img {
    width: 150px; /* Taille des logos */
    margin: 20px;
    transition: transform 0.3s ease;
}

.reservation-logos img:hover {
    transform: scale(1.5); /* Agrandissement des logos au survol */
}

/* Section Avis clients */
#testimonial {
    background-color:#111111; /* Fond sombre */
    color: #ffffff; /* Texte clair */
}

.click-indicator {
    text-align: center;
    font-size: 22px;
    color: white;
    animation: bounce 1s infinite; /* Animation de rebond */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0); /* Position normale */
    }
    40% {
        transform: translateY(-10px); /* Se déplace vers le haut */
    }
    60% {
        transform: translateY(-5px); /* Retourne légèrement vers le bas */
    }
}
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Le bouton est caché au début */
    width: 60px; /* Largeur du cercle */
    height: 60px; /* Hauteur du cercle égale à la largeur */
    background-color: #ccc; /* Fond gris */
    color: white; /* Flèche blanche */
    border-radius: 50%; /* Cercle parfait */
    font-size: 26px; /* Taille de l'icône */
    z-index: 100; /* Assure que le bouton est au-dessus des autres éléments */
    transition: background-color 0.3s ease;
    
    /* Centrer l'icône à l'intérieur du cercle */
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: normal; /* Normal pour éviter un espacement supplémentaire */
}

#back-to-top i {
    margin: 0; /* S'assurer qu'il n'y a pas de marge ajoutée */
}

#back-to-top:hover {
    text-decoration: none;
    background-color: #888; /* Couleur de fond plus sombre au survol */
}

footer {
    background-color: rgba(0, 48, 84, 0.3);
}

footer .d-flex {
    width: 90%; /* S'assure que la flexbox prend toute la largeur */
}
footer div:first-child { /* Cible la div contenant le logo */
    margin-left: 10%; /* Ajuste la valeur selon le besoin */
}
footer div:last-child { /* Cible la div contenant le logo */
    margin-right: 10%; /* Ajuste la valeur selon le besoin */
}
footer a {
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
}




/* Responsive */
@media (max-width: 768px) {
    .nav-title{
        display:none;
    }
    .nav-title-responsive{
        display:flex;
        position: relative;
        transform: translateY(9%);

    }
    .nav-container{
        justify-content: space-between;
        align-items: center; /* Centre verticalement les éléments */
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 15px 0;
        margin-left: auto;
        margin-right: auto;
    }

    .nav-link {
        margin-bottom: 15px;
        font-size: 25px;
    }

    .nav-link:hover {
        color: #121212;
    }

    .nav-menu.open {
        display: flex;
        background-color: rgb(28, 49, 66);
    }

    .logo-container img {
        width: 125;
        transform: translateY(-2%);
        height: 125px; /* Réduit la taille du logo sur les petits écrans */
    }

    /* Show menu on toggle */
    .menu-toggle.active + nav {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 7px;
        position: relative;
        background-color: red;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: -7px;
        position: relative;
        background-color: red;
    }
    .container{
        font-size: 15px;
        background-color: rgba(0, 48, 84, 0.3);
        border-radius: 50px;
        padding: 20px;
    }
}
@media (max-width: 1024px) {
    .nav-title {
        display: none; /* Cache le titre en mode tablette */
    }
}

/* CSS pour rendre la map responsive */
.responsive-map {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* Ratio 16:9 */
}

.responsive-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* CSS Galerie.html*//* CSS Galerie.html*//* CSS Galerie.html*//* CSS Galerie.html*//* CSS Galerie.html*/

#header-galerie {
    height: 150px;
    align-content: center;
    color: white;
    margin-bottom: 60px;
}
.h1-galerie {
    text-align: center;
    margin-top: 50px;
    font-size: 2.5rem;
    color: white;
}

.gallery-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}
.image-title{
    color: white;
    font-size: 20px;
    text-align: center;
}
/* Logo */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 225px; /* Ajustez la taille du logo selon vos besoins */
    z-index: 10;
}

/* Personnalisation de FancyBox */
.fancybox-slide--image {
    border-radius: 15px; /* Coins arrondis */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Ombre */
}

.fancybox-caption {
    font-size: 1.2rem; /* Taille de la légende */
    color: #003054; /* Couleur de la légende */
    background-color: rgba(255, 255, 255, 0.8); /* Fond semi-transparent */
    padding: 10px;
    border-radius: 5px; /* Coins arrondis pour la légende */
}

/* Modifier le fond de la lightbox */
.fancybox-opened {
    background-color: rgba(0, 0, 0, 0.9); /* Fond sombre */
}

/* Personnaliser les boutons de navigation */
.fancybox-button {
    background-color: #fff; /* Fond des boutons */
    color: #003054; /* Couleur du texte des boutons */
    border-radius: 50%; /* Coins arrondis pour les boutons */
    padding: 10px;
    border: none; /* Retirer la bordure */
}

.fancybox-button:hover {
    background-color: #003054; /* Couleur au survol */
    color: #fff; /* Texte blanc au survol */
}

@media (max-width: 768px) {
  
    
    #header-galerie {
        color: #fff; /* Couleur du texte */
        display: flex; /* Utilisation de flexbox pour le positionnement */
        align-items: center; /* Centre verticalement les éléments */
        justify-content: space-between; /* Espace entre le logo et le titre */
        padding: 10px 20px; /* Espacement autour du header */
        background-color: rgba(0, 48, 84, 0.3);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre pour le header */
    }
    .logo {
        width: 100px;
        height: 100px; /* Ajustez la taille du logo */
        display: block; /* Empêche l'espace sous le logo */
        margin: 0; /* Enlève les marges */
    }
    .h1-galerie {
        font-size: 25px; /* Taille de la police */
        margin: 0; /* Enlève les marges par défaut */
        text-align: right; /* Aligne le texte à droite */
        white-space: nowrap; /* Empêche le retour à la ligne si le texte est long */
        flex-grow: 1; /* Permet au titre d'occuper tout l'espace restant */
    }
    

}