* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
.navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    height: 70px;
    background: transparent;
    align-items: center;
}

.navbar-brand img {
    height:55;
    width: 149;

    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.navbar .nav-link {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #ffffff !important;
    transition: color 0.3s ease;
    padding-left: 12px !important;
    padding-right: 12px !important;
    letter-spacing: 0;
    text-transform: none;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.7);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* État scrollé */
.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.navbar.scrolled .navbar-brand img {
    filter: none;
}
.navbar.scrolled .nav-link {
    color: #333 !important;
}
.navbar.scrolled .navbar-toggler {
    border-color: rgba(0,0,0,0.3);
}
.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.7)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar .nav-link:hover { opacity: 0.75; }

/* ═══════════════════════════════════
   SLIDER — plein écran, dès le haut
═══════════════════════════════════ */
#hero-slider {
    margin: 0;
    padding: 0 !important;
    height: 649px;
}

.carousel-item,
.slider-bg {
    height: 649px;
}

.slider-bg {
    background-size: cover;
    background-position: center;
    animation: kenburns 8s ease-in-out infinite alternate;
}

/* PAS d'overlay sombre sur les photos */
.slider-overlay { display: none; }

.carousel-caption {
    bottom: 28%;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}
.carousel-caption h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}
.carousel-caption p {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 400;
}

@keyframes kenburns {
    from { transform: scale(1);   }
    to   { transform: scale(1.1); }
}

/* ═══════════════════════════════════
   SECTIONS — padding standard
   (le slider override avec !important)
═══════════════════════════════════ */
section {
    padding: 60px 0;
}

/* ═══════════════════════════════════
   TITRES COMMUNS
═══════════════════════════════════ */
.section-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
}

/* ═══════════════════════════════════
   SECTION DESCRIPTION
═══════════════════════════════════ */
#description {
    background: #fff;
    padding: 50px 0;
}

/* Titres des 3 colonnes — comme l'original : h4 simple, sans soulignement */
.desc-col-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
    /* pas de border, pas de soulignement */
}

.desc-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.feature-list li {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    padding: 0;
}








/* ═══════════════════════════════════
   GALERIE — pleine largeur, gap 1px
═══════════════════════════════════ */

.gallery-section {
    background-color: #3873AA;
    padding: 0;        /* plein écran bord à bord */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    width: 100%;

   
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #3874ab;
    /* ratio 479:380 — à 1920px ça donne exactement 479×380px par cellule */
    aspect-ratio: 479 / 380;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}






.gallery-caption {
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    text-align: center;
    padding: 5px 8px;
    position: absolute;
    bottom: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ─── Modal galerie ─── */
#galleryModal .modal-dialog {
    max-width: 90vw;
}
#galleryModal .modal-body {
    padding: 0;
    background: #000;
    text-align: center;
}
#galleryModal .modal-body img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}
#galleryModal .modal-header {
    background: #111;
    border: none;
    padding: 8px 16px;
}
#galleryModal .modal-title {
    color: #fff;
    font-size: 13px;
}
#galleryModal .btn-close {
    filter: invert(1);
}

/* ═══════════════════════════════════
   CALENDRIER — même fond bleu que la galerie
═══════════════════════════════════ */
#calendrier {
    background: #3874ab;
    color: #fff;
    padding-bottom: 40px;
    position: relative;
}

/* Chevron #3874ab sur le fond blanc de la section suivante */
#calendrier::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 21px solid transparent;
    border-right: 22px solid transparent;
    border-top: 21px solid #3874ab;
    z-index: 10;
}

/* Masquer le div chevron interne, on utilise ::after */
.calendrier-chevron { display: none; }
.chevron-down { display: none; }

#calendrier .section-title {
    color: #fff;
}

#calendrier .desc-text,
#calendrier p,
#calendrier li,
#calendrier a {
    color: #fff;
}

#calendrier a {
    color: #ffe082;
    font-weight: 600;
}

#calendrier a:hover {
    color: #fff;
}

/* Vidéo dans le calendrier — largeur du container Bootstrap, comme l'original */
.calendrier-video {
    width: 100%;
    display: block;
    margin: 0 0 28px 0;
    background: #000;
}

.dot-available  { background: #4caf50; }
.dot-booked     { background: #e53935; }
.dot-transition { background: #fb8c00; }

/* ═══════════════════════════════════
   TARIFS
═══════════════════════════════════ */
#tarifs { background: #fff; padding-top: 70px; }

.tarifs-card {
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    overflow: hidden;
}
.tarifs-card .tarifs-header {
    background: #3874ab;
    color: #fff;
    padding: 14px 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
}
.tarifs-card .tarifs-body { padding: 20px; }
.tarifs-card ul li {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.6;
}
.tarifs-card ul li:last-child { border-bottom: none; }

.forfait-box {
    background: #f1f6fa;
    border-radius: 6px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #e0e6ed;
   
}


/* ═══════════════════════════════════
   AVIS
═══════════════════════════════════ */
#avis { background: #f7f9fb; }

.review-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
    padding: 20px;
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}
.reviewer-name   { font-weight: 700; font-size: 14px; color: #333; }
.review-platform { font-size: 11px; color: #999; }
.review-stars    { color: #f5a623; font-size: 16px; }
.review-text     { font-size: 13px; line-height: 1.65; color: #555; flex: 1; margin-top: 10px; }

/* ═══════════════════════════════════
   CONTACT
═══════════════════════════════════ */

.btn-submit {
    background: #f5a623;
    color: #fff;
    border: none;
    padding: 11px 32px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.25s;
    cursor: pointer;
}
.btn-submit:hover { background: #e0951a; }

.platform-links a {
    display: inline-block;
    margin: 5px 3px;
    padding: 9px 18px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}
.platform-links a:hover { opacity: 0.85; }
.btn-airbnb  { background: #ff5a5f; color: #fff !important; }
.btn-abritel { background: #1da462; color: #fff !important; }
.btn-booking { background: #003580; color: #fff !important; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
    background: #285175;
    color: #fff;
    padding: 36px 0;
    font-size: 13px;
}
.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.footer a:hover { color: #fff; }

/* ═══════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════ */
#scrollTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a2e4a;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: background 0.2s;
}
#scrollTop:hover { background: #f5a623; }
#scrollTop.visible { display: flex; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 991px) {
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background: rgba(10, 28, 55, 0.97);
        border-radius: 0 0 6px 6px;
        padding: 10px 14px;
    }
    .navbar-collapse.show .nav-link { color: #fff !important; }
    .navbar.scrolled .navbar-collapse.show { background: rgba(255,255,255,0.98); }
    .navbar.scrolled .navbar-collapse.show .nav-link { color: #333 !important; }

    /* Galerie : 2 colonnes sur tablette — ratio conservé automatiquement */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    #hero-slider, .carousel-item, .slider-bg { height: 450px; }
}

@media (max-width: 576px) {
    .carousel-caption h1 { font-size: 26px; }
    .carousel-caption p  { font-size: 16px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    #hero-slider, .carousel-item, .slider-bg { height: 300px; }
}

.navbar .nav-link:hover, 
.menu-item a:hover, 
.navbar .nav-link.active, 
.current-menu-item a {
    color: #c0a16b !important;
}


/* La règle pour l'icône globe */
.bi-globe {
    font-size: 1.2rem;
    vertical-align: middle;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Effet au survol pour matcher ton menu doré */
.bi-globe:hover {
    color: #c0a16b !important;
}

.upsale
{
    width: 85%;
    margin-left: auto;
    margin-right: auto;

}




:root {
    --blue-header: #3a668e; /* Bleu foncé du bandeau haut */
    --blue-bg: #4a7fb0;     /* Bleu de fond de la grille */
    --green-avail: #008000; /* Vert "Disponible" */
    --red-res: #ff0000;      /* Rouge "Réservé" */
    --orange-pass: #ffa500;  /* Orange "Passage" */
    --text-white: #ffffff;
}

.calendar-container {
    width: 100%;
    max-width: 450px;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--blue-bg);
    border-radius: 4px;
    overflow: hidden;
}

/* Header */
.calendar-header {
    background-color: var(--blue-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.month-display {
    background: white;
    padding: 5px 15px;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 70%;
    font-size: 16px;
    color: #333;
}

.nav-btn {
    background: #bdc3c7;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

/* Grille */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 10px;
}

.day-label {
    text-align: center;
    color: white;
    font-weight: bold;
    padding-bottom: 10px;
    font-size: 14px;
}

.day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    cursor: default;
}

.day.available { background-color: var(--green-avail); }
.day.reserved { background-color: var(--red-res); }
.day.passage { background-color: var(--orange-pass); }
.day.empty { background: transparent; }

/* Légende */
.calendar-legend {
    background: white;
    display: flex;
    gap: 20px;
    padding: 15px;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #eee;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.box {
    width: 20px;
    height: 20px;
    display: inline-block;
}


/* Style des carrés colorés dans la légende */
.calendar-legend .box {
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 2px; /* Optionnel, pour un rendu propre */
}

/* Couleurs spécifiques pour chaque état dans la légende */
.calendar-legend .box.available {
    background-color: #008000; /* Le vert identique aux jours dispos */
}

.calendar-legend .box.reserved {
    background-color: #ff0000; /* Le rouge */
}

.calendar-legend .box.passage {
    background-color: #ffa500; /* L'orange */
}


/* ==========================================================================
   AJOUTS : NOUVEAUX MODULES (À COLLER APRÈS LA LIGNE 645)
   ========================================================================== */

/* 1. NOUVEAU DESIGN DES AVIS MODERNISÉS */
#avis {
    background: #f7f9fb;
    padding: 70px 0;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 25px;
    height: 100%;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin-bottom: 0;
}

.review-platform {
    font-size: 12px;
    color: #888;
}

.review-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #555;
    margin-top: 10px;
    font-style: italic;
    flex: 1;
}

.review-stars {
    color: #f5a623;
    font-size: 14px;
    margin-top: 5px;
}

/* 2. MODAL ÉPURÉE AVEC CADRE BLANC (Pour la Galerie) */
.modal-cadre-blanc {
    border: 3px solid #fff !important;
    border-radius: 5px;
    background-color: #000 !important;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
    z-index: 1060;
    transition: opacity 0.2s;
}

.btn-close-white:hover {
    opacity: 1;
}


/* Design personnalisé pour les infobulles Bootstrap */
.tooltip {
    opacity: 1 !important; /* Évite les problèmes de transparence */
}

.tooltip-inner {
    background-color: #ffffff !important;
    color: #2c3e50 !important; /* Un gris très foncé, plus doux que le noir */
    border: 2px solid #3874ab !important; /* Rappel du bleu de la villa */
    border-radius: 12px !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    max-width: 250px !important;
    text-align: center !important;
}

/* Personnalisation du texte spécifique à l'intérieur */
.tooltip-inner strong {
    color: #3874ab !important;
    font-size: 15px !important;
    display: block !important;
    margin-bottom: 5px !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* La flèche (l'ergot) de l'infobulle */
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #3874ab !important; /* La flèche prend la couleur de la bordure */
}


/* Style des boutons de réservation (Airbnb, Abritel, Booking) */
.btn-reservation {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-reservation:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-reservation img {
    height: 22px;
    width: auto;
    margin-right: 12px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Espacement du groupe de boutons */
.reservation-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
    justify-content: center;
   
}



#scrollTop:hover {
    background: #c0a16b;
}


/* Conteneur de la modal */
.custom-modal-content {
    background-color: #000 !important; /* Fond noir derrière l'image au cas où */
    border: 2px solid #000 !important; /* Bordure noire de 2px demandée */
    border-radius: 0 !important;
    position: relative;
    padding: 0 !important;
    overflow: hidden;
}

/* Bandeau noir transparent (40px) */
.modal-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px; /* Passage à 40px */
    background-color: rgba(0, 0, 0, 0.7); /* Noir un peu plus opaque pour le contraste */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 10;
}

/* Texte du titre (à gauche) */
#galleryModalCaption {
    color: #ffffff;
    font-size: 16px; /* Un peu plus grand pour 40px de haut */
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Bouton fermer (à droite) */
.modal-top-bar .btn-close {
    width: 1.2em;
    height: 1.2em;
    filter: invert(1); /* Assure que la croix est bien blanche */
    opacity: 0.8;
    box-shadow: none !important;
}

.modal-top-bar .btn-close:hover {
    opacity: 1;
}

/* Image */
#galleryModalImg {
    display: block;
    max-height: 85vh; /* Évite de manger tout l'écran en hauteur */
    width: auto;
    margin-top: 0; /* L'image commence sous le bandeau qui est en absolute */
}

/* 1. Section de fond (Conteneur principal) */
.section-contact-parallax {
    background-image: url('../images/contact-300x196.jpg') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: scroll !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
}

/* 2. L'overlay bleu semi-transparent */
.contact-overlay {
    background-color: rgba(56, 115, 171, 0.85) !important; 
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 40px 0 !important; /* Ajout de padding pour que l'image respire */
}

/* 3. Limitation de la largeur de la boîte de contact */
.contact-form-container {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding-bottom: 0 !important;
}

.contact-form-container form {
    margin-bottom: 0 !important;
}

/* 4. Style des champs de saisie (Ghost Design) */
.custom-input {
    background-color: transparent !important;
    border: 1.5px solid #ffffff !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    text-align: center;
}

/* 5. Style du bouton Valider */
.custom-submit-btn {
    background-color: transparent !important;
    border: 1.5px solid #ffffff !important;
    color: #ffffff !important;
    padding: 10px 60px !important;
    transition: all 0.3s ease;
    border-radius: 4px !important;
}

.custom-submit-btn:hover {
    background-color: #ffffff !important;
    color: #3873ab !important;
    transform: scale(1.02);
}



/* 6. Ajustement pour l'icône du calendrier */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}



/* Style pour l'affichage des langues sur mobile */
.d-lg-none.d-flex.gap-4 a {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Correction : Langues visibles au scroll sur mobile */
@media (max-width: 991px) {
    /* Quand on a scrollé (navbar blanche), on passe les drapeaux en bleu */
    .scrolled .d-lg-none.d-flex.justify-content-center a {
        color:  #333 !important;
    }
}

/* On s'assure que le conteneur mobile ne crée pas de scroll horizontal */
@media (max-width: 991px) {
    .navbar-collapse {
        overflow: hidden;
    }
}