/* Hero (Accueil) */
.hero { background-position: center; background-size: cover; height: 450px; display: flex; justify-content: center; align-items: center; color: white; text-align: center; }
.hero-content { background: rgba(0,0,0,0.6); padding: 30px; border-radius: 20px;
 background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Optionnel: pour un effet parallaxe */
 }
 .hero {
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}


/* Offres (Accueil) */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.offer-card-link { text-decoration: none; }
.offer-card { border-radius: 12px; overflow: hidden; position: relative; height: 250px; background: #eee; }
/* Superposition pour le titre et le bouton */
.offer-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    
    /* On utilise Flexbox pour l'alignement */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-card-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.offer-card-overlay p {
    font-size: 0.9rem;
    margin: 0;
}

.offer-card .offer-button {
    background-color: #e60023;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0; /* Empêche le bouton de rétrécir */
}
/* --- Styles pour le Carrousel d'Offres --- */

.offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.offers-header h2 {
    margin-top: 30px;
    margin-bottom: 0;
}
.offer-details {
  background: rgba(0, 0, 0, 0.3); /* fond noir semi-transparent */
  color: #fff;                    /* texte blanc */
  padding: 1rem;
  border-radius: 0.5rem;
}

.offers-header .carousel-nav {
    display: flex; /* Aligne les boutons sur la même ligne */
    gap: 10px;     /* Ajoute un petit espace entre les deux boutons */
}


.carousel-nav button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-left: 8px;
    transition: background-color 0.2s, box-shadow 0.2s;
    
    /* On ajoute flexbox pour un centrage parfait */
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-nav button:hover {
    background-color: #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.carousel-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Le "viewport" qui cache le contenu qui dépasse */
.offers-carousel-viewport {
    overflow: hidden;
}

/* Le "slider" qui contient toutes les pages et qui bouge */
.offers-carousel-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Chaque "page" du carrousel */
.offer-page {
    width: 100%;
    flex-shrink: 0;
}

/* La grille à l'intérieur d'une page */
.offer-page .offers-grid {
    /* La grille 3x2 est déjà gérée par grid-template-columns */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
/* --- CSS DE BASE (Similaire à avant) --- */
.offer-price-container { position: relative; display: inline-block; margin-bottom: 0; }
.price-info-icon { cursor: help; margin-left: 5px; font-size: 0.9em; position: relative; }

/* Le tooltip caché par défaut */
.price-tooltip {
    visibility: hidden;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10; /* Z-index plus élevé pour passer au-dessus du reste */
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%); /* Centrage plus précis */
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.8rem;
    font-weight: normal;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    pointer-events: none; /* Évite que le tooltip ne gêne le clic */
}

/* Petite flèche sous le tooltip (optionnel mais joli) */
.price-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Afficher le tooltip au survol OU au focus (pour accessibilité clavier) */
.price-info-icon:hover .price-tooltip,
.price-info-icon:focus .price-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Style du texte mobile */
.mobile-price-details {
    font-size: 0.8rem;
    color: #e9e9f6;
    margin-top: 2px;
    margin-bottom: 10px;
}


/* --- MEDIA QUERIES : C'est ici que la magie opère --- */

/* PAR DÉFAUT (Approche Mobile-First) : On considère qu'on est sur mobile */
.desktop-only {
    display: none; /* On cache la version desktop */
}
.mobile-only {
    display: block; /* On affiche la version mobile */
}

/* SUR TABLETTE ET BUREAU (Écrans plus larges que 768px) */
@media (min-width: 768px) {
    .desktop-only {
        display: inline-block; /* On affiche l'icône */
    }
    .mobile-only {
        display: none; /* On cache le texte mobile */
    }
}

/* Mention discrète à côté du prix sur Desktop */
.price-disclaimer-inline {
    font-size: 0.8rem;
    color: #e9e9f6;
    font-weight: normal;
    margin-left: 5px;
}

/* S'assure que la mention sur mobile prend le même style que les détails de prix */
.price-disclaimer-block {
    font-size: 0.8rem;
    color: #e9e9f6;
    font-style: italic; /* Un petit style italique pour différencier */
}

/* Utilitaire pour cacher sur mobile si nécessaire */
@media (max-width: 767px) {
    .mobile-hidden {
        display: none;
    }
}
/* --- Style pour la carte d'offre placeholder --- */

/*.offer-card.is-placeholder {
    border: 2px dashed #ddd;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}*/

/* On s'assure qu'elle ne réagit pas au survol */
/*.offer-card.is-placeholder:hover {
    transform: none;
}

.placeholder-content h3 {
    color: #2f2f30;
    margin-bottom: 10px;
}

.placeholder-content p {
    color: #2f2f30;
    font-size: 0.9rem;
}*/
.offer-card.is-placeholder {
  border: 1px dashed #ddd;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.offer-card.is-placeholder:hover {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.placeholder-content h3 {
  color: #2f2f30;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.placeholder-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* 🌿 Bouton d’action */
.offer-cta {
  display: inline-block;
  background-color: #4CAF50;
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.offer-cta:hover {
  background-color: #43a047;
  transform: translateY(-2px);
}

/* Section "Qui sommes-nous" & Contact (Accueil) */
.split-section { display: flex; gap: 40px; align-items: stretch; margin-top: 40px; }
.split-section > div { flex: 1; }
.split-section img { max-width: 100%; border-radius: 8px; object-fit: cover; }
.split-section, .contact-promo-block { display: flex; align-items: center; gap: 40px;  padding: 40px; border-radius: 12px; margin-bottom: 40px;}
.contact-promo-block {  background-color: #e9ecef; }
.split-section {  background-color: #ddd; }


.contact-promo-text { flex: 1; }
.contact-promo-image { flex: 1; }
.contact-promo-image img { width: 100%;height: 100%; border-radius: 8px; object-fit: cover; }

/* AJOUT : Modificateur pour les boutons primaires (Vert) */
.button-primary {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}
.button-primary:hover {
    background-color: #218838;
    border-color: #218838;
}

/* Style pour les liens "fléchés" (type Airbnb) */
.link-arrow {
    display: inline-block;
    font-weight: 600;
    color: #222;
    text-decoration: underline;
    margin-top: 15px;
}

/* On ajoute la petite flèche après le texte */
.link-arrow::after {
    content: ' →';
    transition: transform 0.2s ease;
    display: inline-block;
}

/* Au survol, la flèche bouge un peu */
.link-arrow:hover::after {
    transform: translateX(5px);
}


.photo-layout-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 de la largeur pour la photo principale, 1/3 pour les deux autres */
    grid-template-rows: 1fr 1fr; /* Deux lignes de même hauteur */
    gap: 4px;
}

.photo-layout-grid > div {
    overflow: hidden;
}

.photo-layout-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.apartment-card-link:hover .photo-layout-grid img {
    transform: scale(1.05);
}

.grid-photo-main {
    grid-column: 1; /* Prend la première colonne */
    grid-row: 1 / span 2; /* S'étend sur les deux lignes */
}

.grid-photo-side-1 {
    grid-column: 2; /* Prend la deuxième colonne */
    grid-row: 1; /* Prend la première ligne */
}

.grid-photo-side-2 {
    grid-column: 2; /* Prend la deuxième colonne */
    grid-row: 2; /* Prend la deuxième ligne */
}




/* Bouton "Effacer les dates" */
.clear-dates-btn {
    background: none;
    border: none;
    color: #222;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
    float: right; 
}




/* ==========================================================================
   7. Responsive Design (Media Queries) - SECTION CORRIGÉE
   ========================================================================== */

/* --- Pour les écrans de type tablette (<= 1300px) --- */
@media (max-width: 1300px) {
    header {
        height: auto; /* La hauteur s'adapte */
        flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
        justify-content: space-between;
        padding: 15px;
    }

    /* Ligne du haut : Logo et Nav */
    header a.logo, header nav {
        width: auto;
    }
    header a.logo img { height: 60px; } /* On réduit un peu le logo */

    /* Ligne du bas : Barre de recherche */
    #header-search-target {
        width: 100%;
        order: 3; /* On la place en dernier */
        margin-top: 15px;
        padding: 0;
    }
}

/* --- Pour les écrans de type mobile (<= 800px) --- */
@media (max-width: 800px) {
    
    header {
        flex-direction: column; /* On empile tout verticalement */
        gap: 20px;
    }

    /* On centre chaque bloc */
    header a.logo, #header-search-target, header nav {
        width: 100%;
        justify-content: center;
    }
    
    #header-search-target {
        order: 2; /* La recherche passe au milieu */
        margin-top: 0;
    }
    header nav {
        order: 3; /* La nav reste en bas */
        justify-content: space-around;
    }
    header nav a { margin: 0; }
    
    /* On simplifie les autres mises en page */
    .reservation-content-layout, .about-page-grid-layout, .contact-page, .split-section {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
 
    .modern-apartments-grid.cols-2, .modern-apartments-grid.cols-3, .modern-apartments-grid.cols-4 {
        grid-template-columns: 1fr;
    }


    /* --- Style responsive pour la barre de recherche DANS LE HERO --- */
    .search-bar-container.in-hero form {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        padding: 15px;
        gap: 15px; /* Espace entre les lignes */
        border-radius: 20px;
    }

    /* 1. Conteneur pour les dates */
    #search-modal .search-bar-container  .date-inputs-wrapper,
    .search-bar-container.in-hero .date-inputs-wrapper {
        display: flex;
        width: 100%;
        gap: 10px;
    }
    #search-modal .search-bar-container  .date-inputs-wrapper input,
    .search-bar-container.in-hero_ .date-inputs-wrapper input {
        flex: 1; /* Les champs de date se partagent l'espace */
    }

    /* 2. Conteneur pour les voyageurs */
    #search-modal .search-bar-container  .guest-picker-container ,
    .search-bar-container.in-hero .guest-picker-container {
        width: 100%;
    }
    
    #search-modal .search-bar-container  .guest-picker-btn ,
    .search-bar-container.in-hero .guest-picker-btn {
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 12px;
        width: 100%;
        background: #fff;
    }
    
    /* On unifie le style de tous les inputs dans ce mode */
    #search-modal .search-bar-container  input,
    .search-bar-container.in-hero input {
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 12px 10px;
        font-size: 1rem;
        color: #000;
        width: 100%;
    }

    /* 3. Bouton de recherche */
    #search-modal .search-bar-container  .search-btn ,
    .search-bar-container.in-hero .search-btn {
        width: 100%;
        height: auto;
        padding: 12px;
        margin-top: 5px;
        border-radius: 25px;
    }

    /****guest picker****/
    #search-bar-guest-display{
        width:100%;
          text-align: center;           /* Centre le texte horizontalement */
    }
/***********************************************/

.contact-promo-block { display: block; align-items: center; gap: 40px; background-color: #e9ecef; padding: 40px; border-radius: 12px; }
   /* AJOUT : On s'assure que les sections à 2 colonnes de la page d'accueil s'empilent verticalement */
   .split-section,
   .contact-promo-block {
       flex-direction: column;
       gap: 25px;
   }
   
   .contact-promo-block {
       padding: 25px; /* On ajuste le padding pour les petits écrans */
   }
   
   /* On peut aussi centrer le texte pour un meilleur rendu sur mobile */
   .split-section-text,
   .contact-promo-text {
       text-align: center;
   }

   /* Section "Qui sommes-nous" (Accueil) */
.split-section { 
    display: flex; 
    gap: 40px; 
    align-items: stretch; /* On force les colonnes à avoir la même hauteur */
    margin-top: 40px;
    background-color: #fff; /* On peut ajouter un fond blanc */
    border-radius: 12px;
    overflow: hidden; /* Important pour les coins arrondis de l'image */
}

.split-section > div { 
    flex: 1; /* Chaque colonne prend 50% de l'espace */
}

/* On s'assure que l'image remplit sa colonne */
.split-section-image {
    line-height: 0; /* Retire un petit espace sous l'image */
}
.split-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit l'espace sans se déformer */
}

/* On ajoute du padding au texte pour l'aérer */
.split-section-text {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/*.offer-page .offers-grid {
grid-template-columns:none !important; 
}*/

/* --- Dans la media query @media (max-width: 768px) --- */

/* On cache les flèches de navigation sur mobile */
.offers-header .carousel-nav {
    display: none;
}

/* Chaque "slide" prend toute la largeur */
.offer-page .offers-grid {
    grid-template-columns: 1fr;
}
.offer-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0 10px; /* Ajoute un peu d'espace sur les côtés */
}

/* Style pour les points de pagination */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.carousel-dots .dot {
    width: 24px;
    height: 24px;
    font-size: 24px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s;
}
.carousel-dots .dot.active {
    background-color: #333;
}
/*modale photo*/

.lightbox-nav {
    font-size: 2rem;
    height: 50px;
    padding: 0 10px;
}
.lightbox-nav.prev { left: 5px; }
.lightbox-nav.next { right: 5px; }
.lightbox-close { top: 10px; right: 15px; }
}



.search-modal-overlay

/* --- Styles pour le menu Hamburger --- */
.hamburger-btn {
    display: none; /* Caché par défaut */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}
.hamburger-btn svg {
    height: 24px;
    width: 24px;
    fill: #333;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 9000;
}
.mobile-menu.is-open {
    display: flex; /* Affiché par JavaScript */
}
.mobile-menu a {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
}


/* --- Dans la media query @media (max-width: 800px) --- */

@media (max-width: 800px) {
    header {
        flex-direction: row;
        gap: 15px;
    }
    
    header a.logo {
        padding-left: 0px;
        width: auto;
    }
    
    header nav.desktop-nav{
        display: none;
    }
    
    .hamburger-btn {
        display: block;
        margin-left: auto; 
    }

    .hamburger-btn svg {
        height: 30px;
        width: 30px;
    }
}

/* --- Styles pour la recherche mobile --- */
.mobile-search-btn {
    display: none; 
    background: none; border: none; cursor: pointer;
    font-size: 24px;  
}
.mobile-search-btn svg {height: 34px;width: 34px; padding-bottom:10px; border:brown    ;  color: #e60023;}

.search-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: white; z-index: 1100;
    display: none; 
    padding: 20px;
}
.search-modal-overlay.is-visible { display: block; }
.search-modal-content .search-bar-container.in-header form,
.search-modal-content .search-bar-container.in-hero form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: none;
    gap: 15px;
}

.search-modal-content .date-inputs-wrapper {
    display: flex;
    width: 100%;
    gap: 10px;
}

.search-modal-content input {
    width: 100%;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
}

.search-modal-content .guest-picker-container {
    width: 100%;
}
.search-modal-content .guest-picker-btn {
    
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    background: #fff;
}

.search-modal-content .search-btn {
    width: 100%;
    height: auto;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.mobile-header-buttons{
    display: none;
}
.mobile-search-btn, .hamburger-btn {
    display: none; 
}


 .mobile-menu.is-open a.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    flex-shrink: 0; /* Empêche le logo de rétrécir */
    width: fit-content;
}
 .mobile-menu.is-open a.logo img {
    height: 140px; /* Taille de base du logo */
}
 .mobile-menu.is-open a.logo span.calligraphic-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    font-weight: normal;
    margin-top: 20px;
    display: inline-block;
    vertical-align: middle;
    line-height:normal;
}
.mobile-menu a {
    display: block;              
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    width: 100%!important;;
      text-align: center;  
    /*  height: 0%;
  line-height: 0%; */
}
.mobile-menu > a {
  padding: 20px;
  background-color: none;
  border-bottom: 2px solid #0000000f; /* le trait */
}

/* Retirer le trait sous le dernier bloc */
.mobile-menu > a:last-child {
  border-bottom: none;
}
.mobile-menu > a:first-child {
  border-bottom: none;
  height: 40%;
  line-height: 190%; 
}
/* --- Responsive --- */
@media (max-width: 768px) {
    #header-search-target, .desktop-nav {
        display: none; /* On cache les versions bureau */
    }
    .mobile-search-btn, .hamburger-btn {
        display: block; /* On affiche les boutons mobiles */
        font-size: 24px;  
    }

    .mobile-header-buttons{
        display: block;
    }
}

/* Images dans les sections avec texte et image */
.split-section-image,
.contact-promo-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* optionnel, pour un rendu harmonieux */
}

/* Images à taille fixe et responsive */
/* Images à taille fixe et responsive */
.split-section-image img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* coupe proprement au lieu d’étirer */
  display: block;
  transition: transform 0.4s ease;
}

.contact-promo-image img {
  width: 100%;
  height: 164%;
  object-fit: cover; /* coupe proprement au lieu d’étirer */
  display: block;
  transition: transform 0.4s ease;
}

/* Optionnel : léger zoom au survol */
.split-section-image:hover img,
.contact-promo-image:hover img {
  transform: scale(1.05);
}

/* Hauteur par défaut sur bureau */
.split-section-image,
.contact-promo-image {
  height: 400px;
}

/* Tablette */
@media (max-width: 992px) {
  .split-section-image,
  .contact-promo-image {
    height: 300px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .split-section-image,
  .contact-promo-image {
    height: 220px;
  }
}
/*.split-section-image,
.contact-promo-image {
  aspect-ratio: 16 / 9;
}*/

.footer-column .tinymce-content li {color:white;line-height: 1.0;}

/* Listes */
.footer-column .tinymce-content ul,
.footer-column .tinymce-content ol {
  margin: -1em -10px 0.1em 1.1em;
  padding: 0;
}