/**{
    border: 1px solid red !important;
}*/
/* ==========================================================================
   1. Styles Globaux et Reset
   ========================================================================== */
/* ... (cette section reste inchangée) ... */
body, h1, h2, h3, p, div, form, input, a, button, ul, li, aside, main, header, footer, section, nav, span, strong { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body {
    display: flex; flex-direction: column; min-height: 100vh;
    background-color: #f4f4f4; color: #111111; overflow-x: hidden;
}
main.container {
    flex: 1; max-width: 1200px; margin: 20px auto;
    width: 100%; padding: 0 15px;
}
input::placeholder {
  color: #1d1d1d;
  opacity: 1;
}

/* ==========================================================================
   2. Header & Navigation (NOUVELLE VERSION FLEXBOX RESPONSIVE)
   ========================================================================== */
header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    width: 100%;
    padding: 10px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease; /* Pour des transitions fluides */
}

header a.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    flex-shrink: 0; /* Empêche le logo de rétrécir */
}
header a.logo img {
    height: 70px; /* Taille de base du logo */
}
header a.logo span.calligraphic-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    font-weight: normal;
}

/* Conteneur cible pour la barre de recherche dans le header */
#header-search-target {
    flex-grow: 1; /* Prend l'espace disponible au milieu */
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

header nav {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Empêche la nav de rétrécir */
}
header nav a { 
    margin-left: 20px; 
    font-size: 1rem; 
    color: #555; 
}

/* Style des liens de la navigation */
header nav a {
    margin-left: 20px;
    font-size: 1rem;
    color: #555;
    text-decoration: none; /* On retire le soulignement par défaut */
    padding: 10px 0;
    position: relative;
    transition: color 0.2s;
}

header nav a:hover {
    color: #000; /* Le texte devient plus foncé au survol */
}

/* Style SPÉCIFIQUE pour le lien de la page active */
header nav a.active {
    font-weight: bold;
    color: #000;
}

/* On ajoute la barre de soulignement pour le lien actif */
header nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}


.calligraphic-text {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #3e2723;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    background: linear-gradient(90deg, #b07f5e, #5a3e36);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
/* ==========================================================================
   3. Barre de recherche (VERSION FINALE AVEC CLASSES)
   ========================================================================== */

   /* Positionnement de la popup pour le sélecteur de voyageurs de la barre de recherche */
#search-bar-guest-picker .guest-picker-dropdown {
    right: 0; /* S'aligne à droite de la barre de recherche */
    left: auto;
    width: 300px; /* On lui donne une largeur fixe */
}

#search-modal .search-bar-container  .guest-picker-dropdown {
    right: 0; /* S'aligne à droite de la barre de recherche */
    left: auto;
    width: 300px; /* On lui donne une largeur fixe */
}

/* ==========================================================================
   3. Barre de recherche (Version finale avec sélecteurs corrigés)
   ========================================================================== */
   .date-inputs-wrapper {
    position: relative;
}
.clear-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #e9ecef;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    color: #6c757d;
}
/* --- Style commun aux deux contextes --- */
.search-bar-container form {
    display: flex;
    align-items: center;
    gap: 5px; /* Ajoute un petit espace entre les éléments */
}

/* --- Style SPÉCIFIQUE quand la barre est DANS LE HEADER --- */
.search-bar-container.in-header form {
    border: 1px solid #ddd; border-radius: 40px; background: #f7f7f7; padding: 5px;
}
.search-bar-container.in-header input {
    border: none; background: transparent; padding: 8px 15px; width: 120px;
}
/* Style pour le bouton Voyageurs dans le header */
.search-bar-container.in-header .guest-picker-btn {
    border: none; background: transparent; padding: 8px 15px; cursor: pointer;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}
/* Style pour le bouton Loupe dans le header */
.search-bar-container.in-header .search-btn {
    background-color: #e60023; color: white; width: 32px; height: 32px; 
    border-radius: 50%; border: none; cursor: pointer; 
    display: flex; align-items: center; justify-content: center;
}
.search-bar-container.in-header .search-btn svg { stroke: currentColor; height: 12px; width: 12px; stroke-width: 5; }


/* --- Style SPÉCIFIQUE quand la barre est DANS LE HERO --- */
.search-bar-container.in-hero { margin-top: 20px; }
.search-bar-container.in-hero form {
    background: #fff; border-radius: 50px; padding: 8px; border: 1px solid #ddd; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 800px; margin: 0 auto;
}
.search-bar-container.in-hero .guest-picker-container {
    flex: 1; /* Permet aux sections de prendre l'espace */
    border-right: 1px solid #eee;
}
.search-bar-container.in-hero .date-inputs-wrapper{
 /*   flex: 1; *//* Permet aux sections de prendre l'espace */
    border-right: 1px solid #eee;
}
.search-bar-container.in-hero input,
.search-bar-container.in-hero .guest-picker-btn {
    border: none; background: transparent; padding: 15px; font-size: 1rem; width: 100%;
}
.search-bar-container.in-hero input {
    border: none; background: transparent; padding: 15px; font-size: 1rem; width: 48%;
}
.search-bar-container.in-hero .guest-picker-btn { text-align: left; }
/* Style pour le bouton Loupe dans le hero */
.search-bar-container.in-hero .search-btn {
    background-color: #e60023; color: white; width: 50px; height: 50px; 
    border-radius: 50%; border: none; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    margin: 0 5px;
}
.search-bar-container.in-hero .search-btn svg { stroke: currentColor; height: 16px; width: 16px; stroke-width: 4; }

/* --- Styles pour le sélecteur de voyageurs --- */
.guest-picker-container {
    position: relative;
}
.guest-picker-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.guest-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 10;
    display: none; /* Caché par défaut */
}
.hero .guest-picker-dropdown {
    color: #333; /* On force une couleur de texte foncée */
}
.guest-picker-dropdown.is-open {
    display: block;
}
.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}
.guest-counter {
    display: flex;
    align-items: center;
    gap: 15px;
}
.counter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.counter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Page de Connexion
   ========================================================================== */
   .login-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Règle générale pour TOUS les champs de texte du formulaire */
.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] { /* Important pour quand le type change */
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Garantit que la taille est calculée de la même manière */
}

/* Conteneur spécifique pour le mot de passe */
.password-wrapper {
    position: relative;
}

/* On ajuste SEULEMENT le padding droit du champ mot de passe pour faire de la place à l'icône */
.password-wrapper input {
    padding-right: 45px;
}

/* Le bouton "œil" */
.toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
}
/* Dans la section de la Page de Connexion */

.login-form .form-group {
    margin-bottom: 20px;
}
/* Style pour les messages d'erreur sur les formulaires (login, etc.) */
.error-text {
    color: #c4001e;
    background-color: #fde8eb;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
}
/* ==========================================================================
   4. Sections de Page & Composants
   ========================================================================== */
/* 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.6); /* 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;
}

/* --- 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: #6c757d;
    margin-bottom: 10px;
}

.placeholder-content p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 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);
}

/* ==========================================================================
   Page Contact
   ========================================================================== */
   .contact-page {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Le formulaire prend 2/3 de la place */
    gap: 30px;
    align-items: start;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-page h1 {
    margin-top: 0;
}

.contact-page form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-page form input,
.contact-page form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid whitesmoke;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit; /* Assure la même police */
    box-sizing: border-box; /* La correction la plus importante */
}

.contact-page form button {
    /* On réutilise nos classes de bouton pour la cohérence */
    padding: 12px;
    font-size: 1rem;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.contact-info h2 {
    margin-top: 0;
    border-bottom: 2px solid #e60023;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sweet-site {
    position: absolute;
    left: -5000px;
    visibility: hidden;
}

/* Page Appartements (Liste) */
/* Page Appartements (Liste) */
.filters { margin-bottom: 20px; display: flex; gap: 10px; }
.filter-btn { padding: 8px 16px; border: 1px solid #ccc; background-color: #eee; color: #333; text-decoration: none; border-radius: 20px; font-weight: bold; }
.filter-btn.active { background-color: #333; color: white; border-color: #333; }
.filters { margin-bottom: 20px; display: flex; gap: 10px; }
.modern-apartments-grid { display: grid; gap: 40px 30px; }
.modern-apartments-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.modern-apartments-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.modern-apartments-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.apartment-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; }
.apartment-photo-container { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #eee; }
/*.photo-layout-grid { width: 100%; height: 100%; display: grid; grid-template-columns: 2fr 1fr; 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 / 3; grid-row: 1 / 3; }
.grid-photo-side-1 { grid-column: 3 / 4; grid-row: 1 / 2; }
.grid-photo-side-2 { grid-column: 3 / 4; grid-row: 2 / 3; }*/
.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 */
}

.apartment-info h3 { font-size: 1.1rem; margin: 0; font-weight: 600; }
.apartment-info .availability { color: #666; margin: 4px 0; font-size: 0.9rem; }
.apartment-info .price { margin: 0; font-size: 1rem; }
.apartment-info .price strong { font-weight: 600; }
.apartment-card-link.is-unavailable { cursor: not-allowed; }
.apartment-card-link.is-unavailable .apartment-photo-container { opacity: 0.6; filter: grayscale(80%); }
.reserve-btn-overlay.unavailable-badge { background-color: #6c757d; cursor: not-allowed; }


/* Page Réservation */
/*.reservation-content-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; margin-top: 40px; }*/
/* Style pour la section description sur la page de réservation */
  
#booking-calendar .litepicker .container__tooltip {
    visibility: hidden !important;
}

#booking-calendar .litepicker .container__tooltip:after{
    visibility: hidden !important;
}
.litepicker .container__tooltip {
    display: none !important;
}

.litepicker .container__days .day-item.is-highlighted {
    color: #333;
    background-color: rgba(0, 0, 0, 0.1);
    background: repeating-linear-gradient(
        45deg,            /* angle des hachures */
        #ccc,             /* couleur des traits */
        #ccc 2px,         /* épaisseur du trait */
        transparent 2px,  /* espace après le trait */
        transparent 10px  /* largeur de l'espacement */
      );
}
.price-display .original-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
    font-size: 1rem; /* Un peu plus petit que le prix promo */
}
.price-display .special-price {
    font-weight: bold;
    color: #c4001e; /* Rouge promotionnel */
    font-size: 1.2rem;
}
.promo-badge {
    background-color: #c4001e;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
}


.container-cancel,.container-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* espace vertical */
}
.apartment-description p {
    line-height: 1.6;
    color: #555;
}
/* Style pour la capacité sur la page de réservation */
.apartment-capacity p {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 15px 0;
   /* border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;*/
    margin: 30px 0;
}
.reservation-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* 2/3 - 1/3 flexible */
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}
#sticky-booking-footer {
    display: none; /* Caché par défaut sur grand écran */
}
.photo-grid-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 220px); gap: 8px; border-radius: 12px; overflow: hidden; margin: 20px 0; }
.photo-grid-gallery img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid-gallery .main-photo { grid-column: 1 / 3; grid-row: 1 / 3; }
.booking-box { border: 1px solid #ccc; border-radius: 12px; padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); position: sticky; top: 90px; }
.booking-box form input { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 8px; }
.booking-box .date-inputs { display: flex; gap: 1px; }
.booking-box .reserve-btn { background: #e60023; color: white; width: 100%; padding: 14px; border-radius: 8px; border: none; font-size: 1.1rem; font-weight: bold; cursor: pointer; margin-top: 10px; }
#price-recap p { display: flex; justify-content: space-between; margin: 10px 0; }

.reserve-btn {
    background: #e60023;
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none; /* Ajout pour les balises <a> */
    display: inline-block; /* Ajout pour les balises <a> */
    text-align: center; /* Ajout pour les balises <a> */
}
/* Style pour le bouton quand il sert à "Changer les dates" */
.reserve-btn.button-change-dates {
    background: #6c757d; /* Un gris neutre */
}
.reserve-btn.button-change-dates:hover {
    background: #5a6268;
}
/* Style pour les champs de date invalides */
.date-inputs.is-invalid input {
    border-color: #e60023;
    background-color: #fff6f6;
}

/* Style pour le bouton désactivé */
.reserve-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Conteneur principal du calendrier inline */
#booking-calendar {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}
/*#booking-calendar .litepicker {
    width: 100%;
}*/

/* On retire fond et ombre du calendrier inline */
#booking-calendar .litepicker {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
}

/* Le reste des styles pour la coloration des dates reste le même */
#booking-calendar .litepicker .is-in-range:not(.is-start-date):not(.is-end-date) {
    background-color: #ffebeb !important;
    border-radius: 0;
}
#booking-calendar .litepicker .is-start-date,
#booking-calendar .litepicker .is-end-date {
    background-color: #222 !important; 
    color: white !important;
    border-radius: 50% !important;
}

#booking-calendar .litepicker .container__months {
    
   
    border-radius: 5px;
    background: none ;
    border: none ;
    box-shadow: none ;
    width: 100%;
    justify-content: space-around;

}




/* On donne une largeur flexible à chaque mois */
/* --- On utilise CSS Grid pour la grille interne de chaque mois --- */
/* Conteneur pour les noms de jours (L, M, M...) */
/* Conteneur pour les jours (les chiffres) */
/* Style de chaque cellule de jour */



#booking-calendar .litepicker .month-item {
    flex: 1; 
    padding: 0 10px; 
}


#booking-calendar .litepicker .month-item-weekdays-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #717171;
}

#booking-calendar .litepicker .container__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

#booking-calendar .litepicker .day-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}



/* --- FIN DE LA CORRECTION --- */

#booking-calendar .litepicker .container__months .month-item {
    width: 100%;
}
#booking-calendar .litepicker .container__months .month-item .month-item-weekdays-row
{
    width: 100%;
}
#booking-calendar .litepicker .container__months .month-item .container__days{
    width: 100%;
}


/* On retire les bordures et ombres de Litepicker en mode inline */
.litepicker.inline-mode {
    display: inline-block;
    border: none;
    box-shadow: none;
}

/* Style des titres de mois (ex: Août 2025) */
.litepicker .month-item-header .month-item-name,
.litepicker .month-item-header .month-item-year {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Style des jours de la semaine (L, M, M, ...) */
.litepicker .month-item .days-names .day-name {
    font-size: 0.9rem;
    color: #717171;
    font-weight: 600;
}

/* Style des jours (les chiffres) */
.litepicker .month-item .days .day-item {
    font-size: 0.9rem;
    color: #222;
    border: none !important; /* On retire la bordure par défaut */
}
/* Jour grisé (non disponible ou passé) */
.litepicker .month-item .days .day-item .is-locked {
    color: #ddd;
    text-decoration: line-through !important; /* On barre la date */
}
.litepicker .container__days .day-item.is-locked {
    color: #ddd;
    text-decoration: line-through !important;  
}
/* Jour sélectionné (début/fin de plage) */
.litepicker .month-item .days .day-item.is-start-date,
.litepicker .month-item .days .day-item.is-end-date {
    background-color: #222 !important; /* Fond noir */
    color: white !important;
    border-radius: 50% !important;
}
/* Jours dans l'intervalle de la sélection */
.litepicker .month-item .days .day-item.is-in-range {
    background-color: #f7f7f7 !important; /* Gris très clair */
    border-radius: 0 !important;
}

/* Bouton "Afficher plus d'équipements" (style Airbnb) */
.show-more-btn {
    background-color: #fff;
    color: #222;
    border: 1px solid #222;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}
.show-more-btn:hover {
    background-color: #f7f7f7;
}

/* 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; /* On le positionne à droite */
}
/* ==========================================================================
   Style pour la Galerie Lightbox (Version finale responsive)
   ========================================================================== */

   .gallery-trigger {
    cursor: pointer;
}

/* Fond de la modale */
#lightbox-modal.modal-overlay {
    background-color: rgba(0, 0, 0, 0.95); /* Fond plus sombre */
}

/* Conteneur de l'image (pour le centrage) */
#lightbox-modal .lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Ajoute des marges intérieures de sécurité */
}

/* L'image elle-même (LA CORRECTION PRINCIPALE EST ICI) */
#lightbox-modal .lightbox-content img {
    /* L'image ne dépassera jamais 90% de la largeur OU 85% de la hauteur de l'écran */
    max-width: 90vw;
    max-height: 85vh;
    
    object-fit: contain; /* S'assure que l'image est entière, sans être coupée */
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5); /* Ajoute une ombre pour la faire ressortir */
}

/* Boutons de navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 30, 30, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 2.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    transition: background-color 0.2s;
}
.lightbox-nav:hover { background-color: rgba(0, 0, 0, 0.7); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* Bouton de fermeture */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    z-index: 1010;
    background: none;
    border: none;
    cursor: pointer;
}



/* ==========================================================================
   Page À Propos
   ========================================================================== */
   .about-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.team-section h2, .history-section h2 {
    margin-bottom: 20px;
}

.partner-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.partner-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.partner-info h5 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.partner-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .about-top-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
}

/* ==========================================================================
   Page À Propos - Section Histoire
   ========================================================================== */

   .history-section h2 { text-align: left; }
   .history-grid-container {
       display: grid;
       grid-template-columns: repeat(3, 1fr);
       grid-template-rows: 1fr 1fr;
       gap: 20px;
       height: 100%;
   }
   .history-article {
       background-color: #fff;
       border-radius: 8px;
       overflow: hidden;
       display: flex;
       flex-direction: column;
       border: 1px solid #eee;
   }
   .history-article img {
       width: 100%;
       height: 150px;
       object-fit: cover;
   }
   .history-article p {
       padding: 15px;
       font-size: 0.9rem;
       line-height: 1.5;
       flex-grow: 1;
   }
   
   .article-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
   .article-1 .article-side{ height: 50%;}
   .article-1 img { width: 100%; height: 50%; }


   .article-2 { grid-column: 2 / 3; grid-row: 1 / 2; }

   .article-2 .article-side{ height: 60%;}
   .article-2 img { width: 100%; height: 50%; }
   
   
   .article-3 { grid-column: 1 / 3; grid-row: 2 / 3; flex-direction: row; }
   .article-3 .article-side{ height: 60%;}
   .article-3 img { width: 50%; height: 100%; }
   
   .article-4 { grid-column: 3 / 4; grid-row: 1 / 3;}
   .article-4 .article-side{ height: 50%;}
   .article-4 img { height: 50%; }
   .article-1 .title,.article-2 .title,.article-3 .title,.article-4 .title {text-align: center; margin-top: 10px;}

.settings-content .settings-pane#about-page {
    padding: 25px;
    border: 1px solid #ddd; /* On s'assure que la bordure est visible */
    border-radius: 8px;   /* On ajoute des coins arrondis */
    margin: 0;            /* On retire les marges par défaut du fieldset */
}



/* Équipements & Modale */
/*.equipment-preview { display: flex !important; flex-wrap: wrap; gap: 15px; }*/
.apartment-details-column .equipment-preview { display: flex !important; flex-wrap: wrap; gap: 15px; }
.equip-icon { width: 32px; height: 32px; }
.equip-icon svg { width: 100%; height: 100%; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-overlay.is-visible { display: flex; }
.modal-content { background-color: #fff; padding: 30px; border-radius: 12px; width: 100%; max-width: 600px; position: relative; }
.modal-close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2rem; cursor: pointer; color: #888; }
.equipment-full-list { list-style: none; padding: 0; margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.equipment-full-list li { display: flex; align-items: center; gap: 15px; }

/* Boutons */
.button { padding: 10px 20px; font-size: 0.9rem; font-weight: bold; border-radius: 8px; cursor: pointer; border: 1px solid transparent; height: 40px; vertical-align: middle; }
.button-confirm { background-color: #e60023; border-color: #e60023; color: white; }
.button-confirm:hover { background-color: #c4001e; border-color: #c4001e; }
.button-secondary { background-color: #f8f9fa; border-color: #ccc; color: #333; }
.button-secondary:hover { background-color: #e2e6ea; }

/* Thème DatePicker */
.datepicker { z-index: 1050 !important; }
.datepicker-header .datepicker-title, .datepicker-controls .button { background-color: #e60023 !important; color: white !important; }
.datepicker-cell.selected { background-color: #e60023; color: white; }
#booking-calendar .datepicker-cell.custom-in-range { background-color: #ffebeb !important; border-radius: 0; }
#booking-calendar .datepicker-cell.start-range, #booking-calendar .datepicker-cell.end-range { background-color: #e60023; color: white; }
#booking-calendar .datepicker-cell.start-range { border-radius: 50% 0 0 50%; }
#booking-calendar .datepicker-cell.end-range { border-radius: 0 50% 50% 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
 /*  .container {
    max-width: 1200px; 
    margin-left: auto;  
    margin-right: auto; 
    padding-left: 20px; 
    padding-right: 20px;
    width: 100%;
}
   .site-footer {
    background-color: #333;
    color: #ccc;
    padding: 40px 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-column p {
    line-height: 1.6;
}

.collaboration-item {
    margin-bottom: 15px;
}

.collaboration-item h5 {
    color: #fff;
    margin-bottom: 5px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}

.footer-links li a:hover {
    color: #fff;
}

.footer-column address {
    font-style: normal;
    line-height: 1.6;
}
.footer-column address a {
    color: #ccc;
}
.footer-column address a:hover {
    color: #fff;
}

.footer-bottom {
    background-color: #222;
    padding: 15px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

.footer-bottom p {
    text-align: center;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; 
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr; 
    }
}
.footer-map .leaflet-container {
    border-radius: 8px;
}
.footer-column .footer-links {
    list-style: none;
    padding: 0;
    margin-top: 15px; 
}

.footer-links li a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 8px 0; 
    transition: all 0.2s ease-in-out; 
    border-radius: 4px; 
}

.footer-links li a::before {
    content: '›';
    margin-right: 8px;
    font-weight: bold;
}

.footer-links li a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05); 
    padding-left: 5px; 
}


.collaboration-item {
    display: flex;
    align-items: center; 
    gap: 15px;
    margin-bottom: 20px;
}
.collab-icon {
    font-size: 1.5rem; 
    color: #fff;
    margin-top: 5px; 
}

.collab-text h5 {
    color: #fff;
    margin-bottom: 5px;
}

.collab-text p {
    margin: 0;
}
.collab-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

   .collaboration-item {
    display: flex;
    align-items: center; 
    gap: 15px;
    margin-bottom: 20px;
}

.collab-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0; 
    border-radius: 50%; 
    overflow: hidden; 
}

.collab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.collab-text h5 {
    color: #fff;
    margin: 0 0 5px;
}

.collab-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}
p {
    text-align: justify;
    hyphens: auto;       
    line-height: 1.6;    
  }
.settings-pane .sub-section p {
    margin-bottom: 15px;
}
.settings-pane .sub-section a{
    margin-bottom: 15px;
}
.settings-pane .sub-section {
    margin-bottom: 35px;
}*/
/* ==========================================================================
   Footer
   ========================================================================== */
.container {
    max-width: 1200px; /* Définit la largeur maximale du contenu */
    margin-left: auto;  /* Centre le conteneur horizontalement */
    margin-right: auto; /* Centre le conteneur horizontalement */
    padding-left: 20px; /* Ajoute des marges intérieures pour les petits écrans */
    padding-right: 20px;
    width: 100%; /* S'assure que le conteneur prend toute la largeur disponible jusqu'à max-width */
    box-sizing: border-box; /* S'assure que padding ne fait pas déborder le conteneur */
}

.site-footer {
    background-color: #333;
    color: #ccc;
    padding: 40px 0 0; /* Garde 0 pour le padding latéral, car le .container gère déjà cela */
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    /* Votre configuration actuelle est 'repeat(4, 1fr)', ce qui est bien pour desktop.
       Nous allons utiliser les media queries pour l'adapter. */
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur desktop */
    gap: 30px;
    padding-bottom: 40px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.footer-column h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* ==========================================================================
   Ajustements CRUCIAUX pour les paragraphes et la carte
   ========================================================================== */
.footer-column p {
    line-height: 1.6;
     color: whitesmoke;

    max-width: 100%; /* <<< AJOUT IMPORTANT : Empêche le contenu de déborder de la colonne */
    overflow-wrap: break-word; /* <<< AJOUT IMPORTANT : Permet la césure des mots longs */
    word-wrap: break-word; /* Pour la compatibilité */
    /* text-align: justify; - Ce style est défini plus bas globalement, c'est OK */
    /* hyphens: auto; - Ce style est défini plus bas globalement, c'est OK */
}

.footer-column address {
    font-style: normal;
    line-height: 1.6;
    max-width: 100%; /* <<< AJOUT IMPORTANT : Pour s'assurer que l'adresse ne déborde pas */
    overflow-wrap: break-word;
    word-wrap: break-word;
        color: whitesmoke;

}
.footer-column address a {
    word-break: break-all; /* <<< AJOUT IMPORTANT : Permet aux URLs/emails longs de se casser */
}
.footer-column address a:hover {
    color: #fff;
}

/* Ajustements pour la carte */
.footer-map {
    width: 100%; /* S'assure que le conteneur de la carte prend toute la largeur disponible */
    /* PAS DE max-width fixe ici, il doit être fluide */
}

#footer-map-container {
    height: 150px; /* Conserve la hauteur fixe */
    width: 100%; /* <<< TRÈS IMPORTANT : S'assure qu'il prend 100% de la largeur de .footer-map */
    border-radius: 8px;
    margin-top: 15px;
    /* Ajoutez un background pour déboguer si la carte ne s'affiche pas */
    background-color: #555;
    box-sizing: border-box; /* S'assure que padding ne fait pas déborder */
    min-width: 0; /* <<< AJOUT IMPORTANT pour Flex/Grid si problème persiste */
}

.footer-map .leaflet-container {
    border-radius: 8px;
    /* Assurez-vous qu'il n'y a pas de 'width' fixe ici non plus */
    width: 100%; /* S'assurer que le conteneur Leaflet s'adapte */
}

/* Fin des ajustements cruciaux */


.footer-bottom {
    background-color: #222;
    padding: 15px 0; /* Padding vertical, le container gère l'horizontal */
    text-align: center;
    font-size: 0.8rem;
    color: whitesmoke;
}

.footer-bottom p {
    text-align: center;
}

/* Responsive pour le footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2 colonnes sur tablette */
        gap: 20px; /* Ajuste le gap */
    }
    .footer-column {
        margin-bottom: 20px; /* Ajoute un peu d'espace si les colonnes sont empilées */
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 0 0; /* Réduit le padding sur les très petits écrans, le container gère l'horizontal */
    }
    .footer-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
        gap: 15px; /* Réduit l'espacement */
        padding-bottom: 20px; /* Ajuste le padding */
    }
    .footer-column {
        margin-bottom: 0; /* Pas de margin-bottom si une seule colonne */
    }
    .footer-bottom {
        padding: 10px 0;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   Styles existants que j'ai déplacés ou commentés si déjà traités ci-dessus
   ========================================================================== */

/* Ces styles sont déjà pris en compte par le .footer-column p ci-dessus, mais les garder ne nuit pas */
p {
    text-align: start;
    hyphens: auto;       /* active la césure automatique */
    line-height: 1.6;    /* espace entre lignes pour améliorer la lisibilité */
}

/* Styles spécifiques aux liens du footer */
.footer-column .footer-links {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.footer-links li a {
    color: whitesmoke;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
}

.footer-links li a::before {
    content: '›';
    margin-right: 8px;
    font-weight: bold;
}

.footer-links li a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 5px;
}


/* Section Collaborations (Partners) */
.collaboration-item {
    display: flex;
    align-items: center; /* Centre verticalement l'image et le texte */
    gap: 15px;
    margin-bottom: 20px;
}

.collab-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    /* display: flex; align-items: center; justify-content: center; */ /* Plus nécessaire si img object-fit: cover */
}

.collab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collaboration-item h5 { /* Remplacé .collab-text h5 par .collaboration-item h5 pour cibler */
    color: #fff;
    margin: 0 0 5px;
}

.collaboration-item p { /* Remplacé .collab-text p par .collaboration-item p pour cibler */
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 100%; /* <<< AJOUT IMPORTANT pour s'assurer que le pitch ne déborde pas */
    overflow-wrap: break-word;
    word-wrap: break-word;
}


/* Vous avez un .collab-icon qui n'est pas utilisé dans le HTML fourni, je le laisse tel quel */
.collab-icon {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 5px;
}

/* Styles de la section settings-pane (non liés au footer mais dans le code fourni) */
.settings-pane .sub-section p {
    margin-bottom: 15px;
}
.settings-pane .sub-section a{
    margin-bottom: 15px;
}
.settings-pane .sub-section {
    margin-bottom: 35px;
}

.booked-blocked  [data-guest-name*="Airbnb"], [data-guest-name*="Airbnb"] {
    background-size: 16px;
    padding-right: 28px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: 
url('../images/platform/airbnb-f.avif') no-repeat center ;    
 background-size: 100% 100%; /* adapte la hauteur au parent */
  width: 100%;   
  height: 100%;  
  }
  [data-guest-name*="Airbnb"] button.unblock-btn  {
    color: transparent; /* ou color: transparent si tu veux garder la place */
  }
  button.mobile-planner-status-btn[data-guest-name="Sync via Airbnb"] {
  font-size: 0 !important;
  line-height: 0 !important; /* Pour éviter que les <br> ne laissent un petit espace vertical */
}
/* ==========================================================================
   6. Admin
   ========================================================================== */
   .link-button-danger {
    background: none;
    border: none;
    color: #e60023;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    padding: 0;
}
.link-button-warning {
    background: none;
    border: none;
    color: #f0ad4e; /* orange */
    cursor: pointer;
}

.link-button-success {
    background: none;
    border: none;
    color: #5cb85c; /* vert */
    cursor: pointer;
}
.link-button-danger:hover {
    text-decoration: underline;
}
 
.photo-list { display: flex; flex-wrap: wrap; gap: 10px; min-height: 110px;     justify-content: center;}
.photo-item { position: relative; width: 150px; height: 140px; border: 2px solid #ddd; border-radius: 4px; cursor: move; overflow: hidden; display: flex; flex-direction: column; }
.photo-item img { height: 100px; object-fit: cover; }
.photo-alt-input { width: 100%; border: 1px solid #ddd; border-top: none; padding: 4px; font-size: 0.8rem; box-sizing: border-box; }
.delete-photo-btn { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center; line-height: 1; }
.delete-photo-btn:hover { background: #e60023; }

/* Styles pour les messages flash dans l'admin */
.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid;
}
.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Style pour le bouton de déblocage dans le planning */
.unblock-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font: inherit;
    width: 100%;
    height: 100%;
}
.day-cell.booked-blocked:hover {
    background-color: #c4e3f3; /* S'éclaircit au survol pour montrer l'interactivité */
}


   /* --- Styles pour le menu de l'administration --- */

   /* On ajoute de l'espace en bas de chaque champ de formulaire */
.admin-form .form-group {
    margin: 40px;
}
.settings-pane#about-page p {
    margin-bottom: 15px;
}


/* On cible l'icône (la balise <i>) */

.admin-sidebar ul.admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar ul.admin-menu li a {
    color: white;
    text-decoration: none;
    display: flex; 
    align-items: center; 
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.admin-sidebar ul.admin-menu li a i {
    width: 25px; 
    margin-right: 10px; 
    text-align: center;
}

.admin-sidebar ul.admin-menu li a:hover {
    background: #34495e;
}

/* Style pour les titres de section */
.admin-menu .menu-header {
    font-size: 0.8rem;
    color: #95a5a6;
    text-transform: uppercase;
    padding: 10px 15px;
    margin-top: 15px;
    font-weight: bold;
}

/* Indentation pour les sous-éléments */
.menu-header + li a {
    padding-left: 30px;
}
/* S'assure que tous les liens d'une même section sont indentés */
.menu-header + li + li a {
    padding-left: 30px;
}
.menu-header + li + li + li a {
    padding-left: 30px;
}



 /* --- Styles pour la mise en page de l'administration --- */
 /* Variables de base */
:root {
    --sidebar-width: 220px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
}

/* Layout principal */
.admin-layout {
    display: flex;
    width: 100vw; /* Utiliser la largeur complète de la fenêtre */
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    background: #2c3e50;
    color: white;
    transition: width 0.3s ease;
    z-index: 999;
    height: calc(100vh - var(--header-height));
}

/* Sidebar rétracté */
.admin-sidebar.sidebar-collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Conteneur principal du contenu */
.admin-main-wrapper {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    width: calc(100vw - var(--sidebar-width)); /* Largeur = viewport - sidebar */
    display: flex;
    flex-direction: column;
}

/* Quand sidebar est rétracté */
.admin-layout.sidebar-collapsed .admin-main-wrapper {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100vw - var(--sidebar-collapsed-width)); /* Largeur = viewport - sidebar rétracté */
}

/* Header */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background-color: #fff;
    padding: 0 20px;
}

/* Contenu principal */
.admin-main {
    margin-top: var(--header-height);
    padding: 20px;
    width: 100%; /* Prend toute la largeur disponible dans admin-main-wrapper */
    box-sizing: border-box;
    overflow-x: hidden; /* Empêche le débordement horizontal */
}

/* Correction spécifique pour les éléments qui dépassent */
.admin-main > * {
    max-width: 100%;
    box-sizing: border-box;
}

.admin-main h1 {
    margin-top:20px;

    margin-bottom:20px;
}

/* Grille du dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Cartes du dashboard */
.dashboard-card {
    width: 100%;
    box-sizing: border-box;
}

/* Correction pour les graphiques */
.chart-container {
    width: 100%;
    overflow: hidden;
}

.chart-container canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}
.admin-layout.sidebar-collapsed .admin-sidebar {
    width: 70px; 
}
.admin-layout.sidebar-collapsed .admin-sidebar .sidebar-title,
.admin-layout.sidebar-collapsed .admin-sidebar .admin-menu span {
    display: none; 
}
.admin-layout.sidebar-collapsed .admin-sidebar .admin-menu a {
    justify-content: center; 
}

/* Style pour le header du sidebar */
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 15px;
    justify-content: space-between;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Même largeur que les éléments du menu */
    height: 40px; /* Même hauteur que les éléments du menu */
    margin-right: 10px; /* Espace entre le bouton et le titre */
}

.admin-main table {
       width: 100%;
       border-collapse: collapse; 
       margin-top: 25px;
       background-color: #ffffff;
       box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
       border-radius: 8px;
       overflow: hidden; 
    }
   
   .admin-main th, 
   .admin-main td {
       padding: 16px 20px; 
       text-align: left;
       border-bottom: 1px solid #f0f0f0; 
   }
   
   .admin-main thead th {
       background-color: #f8f9fa;
       font-weight: 600;
       color: #495057;
       font-size: 0.85rem;
       text-transform: uppercase;
       letter-spacing: 0.5px;
   }
   
   .admin-main tbody tr {
       transition: background-color 0.2s ease;
   }
   
   .admin-main tbody tr:hover {
       background-color: #fcf8e3; 
   }
   
   .admin-main tbody tr:last-child td {
       border-bottom: none;
   }
   
   .admin-main td a {
       color: #007bff;
       font-weight: 500;
       text-decoration: none;
   }
   .admin-main td a:hover {
       text-decoration: underline;
   }
   

.admin-main .admin-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-main fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    background-color: #fff;
}

.admin-main legend {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0 10px;
    margin-left: 10px;
}

.admin-main .form-group {
    margin-bottom: 20px;
}
.admin-main .form-group:last-child {
    margin-bottom: 0;
}

.admin-main label {
    display: block;
    font-weight: 500;
    margin-bottom: 35px;
}

.admin-main input[type="text"],
.admin-main input[type="number"],
.admin-main input[type="file"],
.admin-main textarea,
.admin-main select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; 
}

/*.admin-layout { 
    display: flex; 
    align-items: flex-start; 
}

.admin-sidebar {
    width: 220px;
    background: #2c3e50;
    color: white;
    height: 100vh;
    padding: 20px;
    position: fixed;
    top: 60px;
    left: 0;
    overflow-y: auto;
    transition: width 0.3s ease;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.sidebar-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.admin-layout.sidebar-collapsed .admin-sidebar {
    width: 70px; 
}
.admin-layout.sidebar-collapsed .admin-sidebar .sidebar-title,
.admin-layout.sidebar-collapsed .admin-sidebar .admin-menu span {
    display: none; 
}
.admin-layout.sidebar-collapsed .admin-sidebar .admin-menu a {
    justify-content: center; 
}


.admin-main { 
    flex: 1; 
    padding: 40px; 
    height: 100vh;
    background-color: #f4f4f4;
    overflow-y: auto; 
    margin-left: 240px; 
    padding: 20px;
    transition: margin-left 0.3s ease;
}
.admin-main>* { 
    margin-bottom:20px
 }*/
  /* .admin-layout { display: flex; }
   
   
   .admin-main table {
       width: 100%;
       border-collapse: collapse; 
       margin-top: 25px;
       background-color: #ffffff;
       box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
       border-radius: 8px;
       overflow: hidden; 
    }
   
   .admin-main th, 
   .admin-main td {
       padding: 16px 20px; 
       text-align: left;
       border-bottom: 1px solid #f0f0f0; 
   }
   
   .admin-main thead th {
       background-color: #f8f9fa;
       font-weight: 600;
       color: #495057;
       font-size: 0.85rem;
       text-transform: uppercase;
       letter-spacing: 0.5px;
   }
   
   .admin-main tbody tr {
       transition: background-color 0.2s ease;
   }
   
   .admin-main tbody tr:hover {
       background-color: #fcf8e3; 
   }
   
   .admin-main tbody tr:last-child td {
       border-bottom: none;
   }
   
   .admin-main td a {
       color: #007bff;
       font-weight: 500;
       text-decoration: none;
   }
   .admin-main td a:hover {
       text-decoration: underline;
   }
   

.admin-main .admin-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-main fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    background-color: #fff;
}

.admin-main legend {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0 10px;
    margin-left: 10px;
}

.admin-main .form-group {
    margin-bottom: 20px;
}
.admin-main .form-group:last-child {
    margin-bottom: 0;
}

.admin-main label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.admin-main input[type="text"],
.admin-main input[type="number"],
.admin-main input[type="file"],
.admin-main textarea,
.admin-main select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; 
}
*/
.admin-menu .menu-logout {
    margin-top: 30px;
    border-top: 1px solid #34495e;
    padding-top: 10px;
}

.admin-menu .menu-language-switcher {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #34495e;
}

/* Style pour le sélecteur de langue sur les pages autonomes (login, 2FA) */
.language-switcher-standalone {
    position: absolute;
    top: 20px;
    right: 20px;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 8px;
    background: #fff;
}
.language-switcher-standalone a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.login-form input[type="email"],
.login-form input[type="password"]{ /* Important pour quand le type change */
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Garantit que la taille est calculée de la même manière */
}


.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc; /* Utilise la variable de bordure d'input */
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--background-color); /* Pour les inputs en mode sombre */
    color: var(--text-color);
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    border-color: var(--primary-color); /* Bordure primaire au focus */
    box-shadow: 0 0 0 3px var(--input-focus-shadow-color); /* Ombre au focus */
    outline: none;
}

/*.admin-main textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-main .image-preview {
    max-width: 250px;
    max-height: 100px;
    border: 1px solid #eee;
    padding: 5px;
    display: block;
    margin-bottom: 10px;
    background: #f8f9fa;
}*/
.admin-form .image-preview {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid #eee;
    padding: 5px;
    display: block;
    margin-bottom: 10px;
    background: #f8f9fa;
}
.admin-form .image-preview{
    max-height:150px;
    max-width:150px;
}


/* --- Styles pour le nouveau Tableau de Bord --- */
/* Style pour le message de bienvenue sur le dashboard */
.welcome-message {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}
.dashboard-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow-x: auto; 
}
.dashboard-card.large-card {
    grid-column: span 2; /* Fait en sorte que cette carte prenne 2 colonnes */
}
.kpi-card h3 {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}
.kpi-card .kpi-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #343a40;
    margin-top: 10px;
}

/* --- Dans la section des styles pour le Tableau de Bord --- */

.activity-list {
    list-style: none;
    padding: 0;
}
.activity-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: grid; /* On utilise grid */
    grid-template-columns: 1fr auto; /* 2 colonnes : une flexible, une auto */
    gap: 20px;
    align-items: center;
}
.activity-list li:last-child {
    border-bottom: none;
}
.activity-list .activity-action {
    color: #6c757d;
    margin: 0 5px;
}
.activity-list .activity-time {
    color: #6c757d;
    font-size: 0.9rem;
}

.chart-container {
    height: 250px; /* Hauteur pour le graphique */
}

/* --- Style moderne pour le Planning des disponibilités --- */
.planner-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.current-month-display h2 {
    margin: 0;
    font-size: 1.5rem;
}

.planner-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; 
    margin-top: 25px;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.planner-table th:first-child,
.planner-table td:first-child {
    width: 110px;
    min-width: 110px;
}

.planner-table th {
    font-weight: 600;
    padding: 12px 5px;
    font-size: 0.8rem;
    color: #495057;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.planner-table td {
    border: 1px solid #f0f0f0;
    text-align: center;
    font-size: 0.8rem;
    height: 50px;
    position: relative;
}

.planner-table tbody td:first-child {
    text-align: left;
    padding-left: 15px;
    font-weight: 500;
    background-color: #f8f9fa;
    width: 150px; 
}

.planner-table .weekend {
    background-color: #f9f9f9;
}



.planner-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

/*.current-week-display h2,
.current-month-display h2 {
    margin: 0;
    font-size: 1.2rem;
}

.button.week-nav {
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .planner-nav {
        justify-content: space-between;
    }

    .current-week-display h2 {
        font-size: 1rem;
        white-space: nowrap;
    }

    .button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    @media (max-width: 480px) {
        .planner-nav a[href="?page=admin-planner"] {
            display: none;
        }
    }
}*/
/* Style pour la barre de navigation du planner */
.planner-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.current-week-display {
    flex: 1;
    min-width: 0; /* Important pour éviter le débordement */
    text-align: center;
}

.current-week-display h2 {
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.week-nav {
    flex-shrink: 0; /* Empêche les boutons de rétrécir */
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
}

/* Sur mobile, on force tout sur une seule ligne */
@media (max-width: 768px) {
    .planner-nav {
        flex-wrap: nowrap;
    }

    .current-week-display h2 {
        font-size: 0.9rem;
        text-overflow: ellipsis;
    }

    .button {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 35px;
    }
}
/* Style pour le tableau du planning */
.planner-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Sur mobile, on passe à un affichage vertical */
@media (max-width: 768px) {
    .planner-table {
        border: 0;
    }

    .planner-table thead {
        display: none; /* On cache l'en-tête sur mobile */
    }

    .planner-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .planner-table td {
        display: block;
        text-align: right;
        padding: 8px 15px;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    .planner-table td:last-child {
        border-bottom: 0;
    }

    .planner-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
        text-align: left;
    }

    /* Première colonne (nom de l'appartement) */
    .planner-table td:first-child {
        background-color: #f8f9fa;
        font-weight: bold;
        padding: 10px 15px;
        border-bottom: 2px solid #dee2e6;
    }

    /* Cellules de date */
    .planner-table td:not(:first-child) {
        padding-left: 35%; /* Espace pour le label */
        min-height: 40px;
    }

    /* Ajout de labels pour les dates */
    .planner-table td:nth-child(2):before { content: "Lun 27"; }
    .planner-table td:nth-child(3):before { content: "Mar 28"; }
    .planner-table td:nth-child(4):before { content: "Mer 29"; }
    .planner-table td:nth-child(5):before { content: "Jeu 30"; }
    .planner-table td:nth-child(6):before { content: "Ven 31"; }
    .planner-table td:nth-child(7):before { content: "Sam 01"; }
    .planner-table td:nth-child(8):before { content: "Dim 02"; }

    /* Style pour les cellules avec réservation */
    .day-cell {
        padding: 10px;
        border-radius: 4px;
        margin: 5px 0;
    }

    /* Boutons dans les cellules */
    .day-cell button {
        width: 100%;
        padding: 5px;
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.large{
    max-width: 1600px;
}

.row-muted {
    opacity: 0.6;
}

.message-preview-box {
    background: #f9fafb;
    border-left: 4px solid #4f46e5;
    padding: 1rem;
    border-radius: 4px;
}


   .admin-main td a.button-primary {
    background-color: #198754; /* vert foncé */
    color: #ffffff !important;
    text-decoration: none;
}

.admin-main td a.button-primary:hover,
.admin-main td a.button-primary:focus {
    background-color: #146c43;
    color: #ffffff;
    outline: 3px solid #0d6efd; /* focus visible */
    outline-offset: 2px;
}
.switch {
    display: inline-flex;
    align-items: center;   /* 🔥 aligne texte + bouton */
    gap: 0.75rem;          /* 🔥 espace entre slider et label */
    cursor: pointer;
}

/* Le slider ne doit PAS influencer la hauteur */
.switch .slider {
    flex-shrink: 0;
}

/* Texte */
.switch-label {
    line-height: 2.2;
    white-space: nowrap;
}



/* Style des cellules de statut */
.day-cell {
    background-color: #f0fff0; /* Vert très clair pour libre */
    cursor: pointer;
    transition: background-color 0.2s;
}
.day-cell:hover {
    background-color: #e0fbe0;
}

.day-cell.booked-confirmed {
    background-color: #ffe4e4; /* Rouge clair pour réservé */
    color: #a02d2d;
    cursor: not-allowed;
}
.day-cell.booked-pending {
    background-color: #fff8e1; /* Jaune clair pour en attente */
    color: #c09853;
    cursor: not-allowed;
}
.day-cell.booked-blocked {
    background-color: #e7e7e7; /* Gris pour bloqué */
    color: #555;
}

/* Style du texte à l'intérieur des cellules bloquées/réservées */
.day-cell .unblock-btn {
    background: none; border: none; color: inherit; cursor: pointer;
    padding: 0; font: inherit; width: 100%; height: 100%; font-weight: 500;
}
.day-cell.booked-blocked:hover .unblock-btn {
    text-decoration: underline;
}
.day-cell.booked-confirmed, .day-cell.booked-pending {
    font-weight: 500;
}

/*admin contact*/
/* --- Style pour la liste de suggestions d'adresses --- */
/* --- Style pour la liste de suggestions d'adresses (version manuelle) --- */
.address-suggestions {
    position: absolute;
    border: 1px solid #ddd;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1050;
    border-radius: 4px;
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
}
.suggestion-item:hover {
    background-color: #f0f0f0;
}

/* admin appartement*/
/* --- Styles pour les onglets de langue dans l'admin --- */
.lang-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}
.lang-tab-btn {
    padding: 10px 20px;
    border: 1px solid transparent;
    border-bottom: none;
    background: #f1f1f1;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    font-weight: 500;
}
.lang-tab-btn.active {
    background: #fff;
    border-color: #ccc;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px; /* Pour que l'onglet se fonde avec le panneau */
}
.lang-pane {
    display: none; /* Caché par défaut */
}
.lang-pane.active {
    display: block; /* Affiché si actif */
}

/* --- Styles pour la nouvelle page de Configuration avec onglets horizontaux --- */

/* On retire l'ancienne grille verticale */
.settings-layout {
    display: block;
}

/*.settings-nav-horizontal {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: -1px; 
}

.settings-nav-horizontal a {
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
}

.settings-nav-horizontal a.active {
    background-color: #fff;
    border-color: #ddd;
    border-radius: 6px 6px 0 0;
    color: #000;
}*/

.settings-nav-horizontal {
  display: flex;
  flex-wrap: wrap;               /* permet les retours à la ligne */
  gap: 8px;                      /* espace entre les boutons */
  border-bottom: 1px solid #ddd;
  margin-bottom: -1px;
  overflow-x: visible;           /* pas besoin de scroll horizontal ici */
}

.settings-nav-horizontal a {
  flex: 1 1 auto;                /* permet aux liens de s’adapter à la largeur */
  text-decoration: none;
  color: #555;
  font-weight: 500;
  border: 1px solid #0000000d;
  border-radius: 6px;
  padding: 10px 14px;            /* assez d’espace pour éviter le chevauchement */
  background: #f8f8f8;
  text-align: center;
  white-space: normal;           /* autorise le retour à la ligne du texte */
  line-height: 1.4;              /* augmente la hauteur de ligne */
  transition: background 0.2s ease, color 0.2s ease;
}

.settings-nav-horizontal a:hover,
.settings-nav-horizontal a:focus {
  background: #eee;
  color: #000;
  outline: none;
}

.settings-nav-horizontal a.active {
  background: #fff;
  border: 1px solid #ddd;
  color: #000;
    font-weight:bold;
  border-bottom-color: #fff;
}

@media (max-width: 600px) {
  .settings-nav-horizontal {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .settings-nav-horizontal a {
    flex: 1 1 48%;   /* deux par ligne */
  }
}



.settings-content .settings-pane {
    display: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0 6px 6px 6px;
    padding: 25px;
}
.settings-content .settings-pane.active {
    display: block;
}

/* On retire la bordure du fieldset car le panneau a déjà la sienne */
.settings-content .settings-pane fieldset {
    border: none;
    padding: 0;
}


/* Dans la section du layout de l'administration */

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Cette ligne va pousser les éléments aux extrémités */
    padding: 10px 30px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
/* Menu déroulant de l'utilisateur */
.user-profile-dropdown {
    position: relative;
}

.user-profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
}

.user-profile-toggle:hover {
    background-color: #e9ecef;
}

.user-profile-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 220px;
    z-index: 1010;
}

.user-profile-dropdown .dropdown-menu.is-open {
    display: block;
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background-color: #eee;
}


/* --- Centre de Notifications (Admin) --- */
.notification-bell {
    position: relative;
}
.notification-bell > .fa-bell {
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
}
.notification-bell .notification-count {
    position: absolute; top: -5px; right: -8px;
    background-color: #e60023; color: white; border-radius: 50%;
    width: 18px; height: 18px; font-size: 0.7rem; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
}
.notification-dropdown {
    position: absolute; top: 100%; right: 0;
    margin-top: 15px; width: 350px;
    background-color: #fff; border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none; /* Caché par défaut */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
/* La classe .is-visible contrôle l'affichage */
.notification-dropdown.is-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.notification-header, .notification-footer { padding: 12px 15px; font-weight: bold; background-color: #f8f9fa; }
.notification-footer { text-align: center; }
.notification-body { max-height: 400px; overflow-y: auto; }
.notification-item { display: block; padding: 12px 15px; border-bottom: 1px solid #f0f0f0; color: #333; text-decoration: none; }
.notification-item:last-of-type { border-bottom: none; }
.notification-item:hover { background-color: #f0f0f0; }
.notification-item .time { display: block; font-size: 0.8rem; color: #888; margin-top: 5px; }

/* Style pour la page de l'historique des notifications */
.notifications-list {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.notifications-list .notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
}
.notifications-list .notification-item:hover {
    background-color: #f8f9fa;
}

/* Style pour les notifications déjà lues */
.notifications-list .notification-item.is-read {
    opacity: 0.7;
}
.notifications-list .notification-item.is-read .message {
    font-weight: normal;
}
/* --- Styles pour la nouvelle structure de l'administration --- */
.admin-main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 0 40px;
    height: 60px;
    flex-shrink: 0; /* Empêche le header de rétrécir */
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}



/* --- Style pour la table des notifications --- */
.admin-table .notification-type th:first-child {
    width: 70%; /* La colonne du nom prend le plus de place */
}
.admin-table .notification-type th:not(:first-child) {
    width: 15%; /* Les colonnes Email et SMS se partagent le reste */
}

/* Style pour que le bouton de déconnexion ressemble à un lien du menu */
.logout-button {
    background: none;
    border: none;
    color: white;
    font: inherit;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
}
.admin-menu li a:hover, .logout-button:hover {
    background: #34495e;
}
.menu-logout {
    padding: 10px 15px;
}


/* Style pour les pages d'erreur de l'admin */
.error-page-container {
    text-align: center;
    padding: 40px;
    margin: 50px auto;
    max-width: 600px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.error-page-container h1 {
    font-size: 2.5rem;
}
.error-page-container p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 15px;
    margin-bottom: 30px;
}

.breadcrumb { display: flex; list-style: none; padding: 0.5rem 0; }
.breadcrumb-item + .breadcrumb-item::before { content: '>'; padding: 0 0.5rem; color: #6c757d; }
.breadcrumb-item.active { color: #6c757d; }
.form-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }

/* ==========================================================================
   Admin - Vue détaillée d'un message
   ========================================================================== */
   .message-view {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 20px;
    overflow: hidden; /* Pour que les coins arrondis s'appliquent bien */
}

.message-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.message-header h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.message-header p {
    margin: 5px 0;
    color: #555;
}

.message-body {
    padding: 25px;
    line-height: 1.6;
    white-space: pre-wrap; /* Conserve les sauts de ligne du message original */
}

/* Placeholder Section Styling */
.placeholder-section {
    background-color: #f8f9fa; /* Couleur de fond légère */
    border: 1px solid #e9ecef; /* Bordure discrète */
    border-radius: 8px; /* Coins arrondis */
    padding: 1.5rem; /* Espacement intérieur */
    margin-top: 2rem; /* Marge au-dessus de la section */
    margin-bottom: 2rem; /* Marge en dessous de la section */
}

.placeholder-section h5 {
    color: #343a40; /* Couleur de titre foncée */
    font-size: 1.25rem; /* Taille du titre */
    margin-bottom: 0.75rem; /* Marge sous le titre */
}

.placeholder-section p.text-muted {
    font-size: 0.9rem; /* Taille de texte plus petite pour la description */
    color: #6c757d; /* Couleur de texte muted */
    margin-bottom: 1rem; /* Marge sous la description */
}

.placeholder-list {
    display: flex;
    flex-wrap: wrap; /* Permet aux tags de passer à la ligne */
    gap: 0.5rem; /* Espacement entre les tags */
}

.placeholder-tag {
    /* Styles pour chaque tag de placeholder */
    display: inline-flex; /* Permet un bon alignement et padding */
    align-items: center;
    background-color: #6c757d; /* Couleur de fond du badge (gris secondaire) */
    color: #ffffff; /* Couleur du texte */
    padding: 0.5rem 1rem; /* Padding interne */
    border-radius: 20px; /* Bords très arrondis (forme de pilule) */
    font-size: 0.85rem; /* Taille de la police */
    font-weight: 500; /* Poids de la police */
    cursor: pointer; /* Indique qu'il est cliquable */
    transition: background-color 0.2s ease, transform 0.2s ease; /* Transition douce */
    user-select: none; /* Empêche la sélection du texte du tag */
}

.placeholder-tag:hover {
    background-color: #5a6268; /* Couleur de fond plus foncée au survol */
    transform: translateY(-1px); /* Léger effet de soulèvement */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Petite ombre au survol */
}

.placeholder-tag:active {
    background-color: #495057; /* Couleur encore plus foncée au clic */
    transform: translateY(0); /* Retour à la position initiale au clic */
}

/* Si vous utilisez les variables CSS que j'ai définies précédemment (avec --bt-) */
/* Remplacez les couleurs ci-dessus par celles-ci si vous voulez être cohérent */
/*
.placeholder-section {
    background-color: #f8f9fa;
    border: 1px solid var(--bt-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.placeholder-section h5 {
    color: var(--bt-text-dark);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.placeholder-section p.text-muted {
    font-size: 0.9rem;
    color: var(--bt-secondary-color);
    margin-bottom: 1rem;
}

.placeholder-tag {
    background-color: var(--bt-secondary-color);
    color: var(--bt-text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.placeholder-tag:hover {
    background-color: darken(var(--bt-secondary-color), 10%); // Nécessite une fonction darken si vous n'avez pas de préprocesseur
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.placeholder-tag:active {
    background-color: darken(var(--bt-secondary-color), 15%); // Nécessite une fonction darken
    transform: translateY(0);
}
*/
.chips-container {
    display: flex;
    flex-wrap: wrap; /* Pour que les chips aillent à la ligne si trop nombreux */
    gap: 8px; /* Espacement entre les chips */
    margin-top: 10px;
    margin-bottom: 15px;
}

.chip {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px; /* Bords arrondis pour le style "chip" */
    background-color: #f0f0f0;
    color: #333;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none; /* Empêche la sélection de texte */
    white-space: nowrap; /* Empêche les chips de se couper en plusieurs lignes */
}

.chip:hover {
    background-color: #e0e0e0;
}

.chip.selected {
    background-color: var(--primary-color, #007bff); /* Utilisez votre couleur primaire */
    color: white;
    border-color: var(--primary-color, #007bff);
    font-weight: bold;
}

/* Optionnel : pour les sélections multiples */
.chips-container.multiple .chip.selected {
    background-color: var(--secondary-color, #6c757d); /* Couleur différente si vous voulez */
    color: white;
    border-color: var(--secondary-color, #6c757d);
}
.modal-content .form-group {
    margin: 5px;
}

/*.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
}

.admin-filter-box label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.admin-filter-box input,
.admin-filter-box select {
    width: 100%;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}
.event-tag {
    background: #eef;
    border: 1px solid #ccd;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.event-tag span {
    cursor: pointer;
    margin-left: 6px;
    color: #a00;
}
.suggestions {
    background: white;
    border: 1px solid #ccc;
    max-height: 160px;
    overflow-y: auto;
    display: none;
    position: absolute;
    width: 220px;
    z-index: 20;
}
.suggestions div {
    padding: 6px;
    cursor: pointer;
}
.suggestions div:hover {
    background: #eee;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
}
.badge-info { background: #2d7be5; }
.badge-warning { background: #e5a72d; }
.badge-error { background: #d93f3f; }
*/
/* =============================
   GLOBAL
   ============================= */
.admin-filter-box {
    background: #fff;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}


/* =============================
   INPUTS & SELECT
   ============================= */
.admin-filter-box input,
.admin-filter-box select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    font-size: 0.95rem;
    transition: all .2s;
}

.admin-filter-box input:focus,
.admin-filter-box select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.16);
    outline: none;
}

.input-with-icon {
    position: relative;
    width: 100%;
}
.input-with-icon i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}
.input-with-icon input {
    width: 100%;
    padding: 10px 12px 10px 34px !important;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color .2s, box-shadow .2s;
}
.input-with-icon input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,.2);
    outline: none;
}


/* =============================
   BUTTONS (Modern)
   ============================= */
.btn,
.btn-small {
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
    font-weight: 500;
    margin:5px;
}

.btn-primary {
    background: #4a80ff !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: #3a6ae6 !important;
}

.btn-secondary {
    background: #eef1f7 !important;
    border: 1px solid #d7dbe4 !important;
    color: #333 !important;
}

.btn-secondary:hover {
    background: #e3e7ef !important;
}

.btn-small {
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* Chips effect for quick filters */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 20px;
}

.quick-filter {
    padding: 7px 14px;
    border-radius: 999px; /* chip */
    background: #f3f4f6;
    border: 1px solid #e0e0e0;
    font-size: 0.83rem;
    cursor: pointer;
    user-select: none;
    transition: all .2s ease;
    color: #444;
}

.quick-filter:hover {
    background: #e8eaf0;
}

.quick-filter.active {
    background: #4a80ff;
    border-color: #4a80ff;
    color: white;
}

/* =============================
   TAGS (multi-events)
   ============================= */
.event-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.event-tag {
    background: #eef2ff;
    color: #4338ca;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #c7d2fe;
}

.event-tag span {
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: #6366f1;
}


/* =============================
   AUTOCOMPLETE
   ============================= */
#event-suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #e5e7eb;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    z-index: 50;
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#event-suggestions > div {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background .15s;
}

#event-suggestions > div:hover {
    background: #f3f4f6;
}


/* =============================
   INTERNAL SEARCH FIELD (.search-q)
   ============================= */
.search-q {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 12px 0 20px;
}

.search-q input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 0.9rem;
    transition: all .2s ease;
}

.search-q input:focus {
    border-color: #4a80ff;
    box-shadow: 0 0 0 2px rgba(74,128,255,.18);
}

.search-q button {
    background: #4a80ff;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background .15s ease;
}

.search-q button:hover {
    background: #3a6ae6;
}


/* =============================
   TABLE
   ============================= */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
}
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-error { background: #fee2e2; color: #b91c1c; }


/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 740px) {

    /* Fix for table not showing on mobile */
    .admin-table thead {
        display: none;
    }
    .admin-table tr {
        display: block;
        margin-bottom: 15px;
        padding: 12px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .admin-table td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border-bottom: none;
        font-size: 0.85rem;
    }
    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
    }

    .search-q {
        flex-direction: column;
    }

    .search-q button {
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}


.watcher-toggle-box {
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 0 20px 0;
    font-size:1rem;
    font-weight:600;
}

/* SWITCH STYLE */
.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(26px);
}



/* ===================================================== */
/* 🔧 RESET / BASE                                       */
/* ===================================================== */

* {
    box-sizing: border-box;
}

.admin-form input,
.admin-form select {
    height: 44px;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    background: #fff;
}

.admin-form input:focus,
.admin-form select:focus {
    border-color: #0969da;
    outline: none;
    box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.15);
}

/* ⚠️ IMPORTANT : ne jamais bloquer sticky */
.main,
.content,
.admin-page {
    overflow: visible;
}

/* ===================================================== */
/* 🧮 LAYOUT GLOBAL                                      */
/* ===================================================== */

.pricing-simulator-layout {
    display: block;
}

/* Desktop */
@media (min-width: 1024px) {
    .pricing-simulator-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 2rem;
        align-items: start;
    }
}

.pricing-simulator-left {
    min-width: 0;
}

.pricing-simulator-right {
    position: relative;
}

/* ===================================================== */
/* 🧾 FORMULAIRE                                         */
/* ===================================================== */

.ps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .ps-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        align-items: end;
    }
}

.pricing-simulator-form {
    max-width: 100%;
}

/* ===================================================== */
/* 🧪 DRAFT RULES                                        */
/* ===================================================== */

.draft-rules {
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.draft-rule {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fafafa;
    margin-bottom: 1rem;
}

.draft-rule__title {
    display: block;
    font-weight: 600;
}

.draft-rule__fields,
.draft-rule__value {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .draft-rule__fields {
        flex-wrap: nowrap;
    }
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, auto);
    gap: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .days-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .days-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.day-option {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
}

/* ===================================================== */
/* 📊 SUMMARY (STICKY)                                   */
/* ===================================================== */

.pricing-summary-wrapper {
    margin-bottom: 1.5rem;
}

/* Sticky desktop */
@media (min-width: 1024px) {
    .pricing-summary--sticky {
        position: sticky;
        top: 80px; /* hauteur header */
        z-index: 20;
    }
}

.pricing-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.ps-total {
    font-size: 28px;
    font-weight: 700;
}

.ps-meta {
    margin-top: .5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: #666;
}

/* Actions */
.pricing-summary__actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1rem;
}

.pricing-summary__actions .button {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
}

/* Mobile : summary non sticky */
@media (max-width: 1023px) {
    .pricing-summary--sticky {
        position: static;
        margin-top: 1.5rem;
    }
}

/* ===================================================== */
/* 📱 MOBILE CARDS                                       */
/* ===================================================== */

.pricing-cards {
    margin-top: 2rem;
    display: grid;
    gap: 12px;
}

.pricing-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
}

.pc-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.pc-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.pc-badge {
    margin-top: 6px;
    font-size: 13px;
}

.pc-seasonal {
    color: #2e7d32;
}

.pc-overlay {
    color: #1565c0;
}

/* ===================================================== */
/* 🖥 TABLE DESKTOP                                      */
/* ===================================================== */

.pricing-table {
    display: none;
}

@media (min-width: 768px) {
    .pricing-cards {
        display: none;
    }
    .pricing-table {
        display: table;
    }
}

/* ===================================================== */
/* 🔍 QUOTE DETAILS                                      */
/* ===================================================== */

.pc-details summary,
.quote-details summary {
    cursor: pointer;
    font-size: .85rem;
    color: #2563eb;
}

.quote-steps {
    margin-top: .5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quote-step {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
}

.quote-step.is-draft {
    opacity: .85;
    font-style: italic;
}

.draft-badge {
    background: #ffe8a3;
    color: #8a6d00;
    padding: 0 .4rem;
    border-radius: 4px;
    font-size: .75em;
    margin-left: .4rem;
}
.admin-form input::placeholder {
    color: #9ca3af;   /* gris clair */
    opacity: 1;       /* Safari */
}

/* ========================= */
/* 🧾 Quote information block */
/* ========================= */

.quote-infos {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #fafafa;
    margin-bottom: 1rem;
}

.quote-infos h3 {
    font-size: 1rem;
    margin-bottom: .75rem;
}

.quote-infos__field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: .75rem;
}

.quote-infos__field label {
    font-size: .85rem;
    font-weight: 500;
    color: #374151;
}

.quote-infos__field input,
.quote-infos__field textarea {
    padding: .5rem .6rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .9rem;
    background: #fff;
}

.quote-infos__field input::placeholder,
.quote-infos__field textarea::placeholder {
    color: #9ca3af; /* plus clair que la valeur */
}

.quote-infos__field textarea {
    resize: vertical;
}

.actions {
    display: flex;
    gap: .75rem;
}

.actions a {
    color: #374151;
}

.actions a:hover {
    color: #111827;
}

.badge-status {
    display: inline-block;
    margin-top: .25rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .75rem;
}

.badge-status.badge-draft { background: #fff3cd; color: #856404; }
.badge-status.badge-sent { background: #e7f3ff; color: #084298; }
.badge-status.badge-accepted { background: #d1e7dd; color: #0f5132; }
.badge-status.badge-rejected { background: #f8d7da; color: #842029; }

.badge-warning {
    background: #ffe8a3;
    color: #8a6d00;
    margin-left: .25rem;
}

.quote-saved__intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.quote-saved__card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 520px;
}

.quote-saved__row {
    margin-bottom: .5rem;
}

.quote-saved__total {
    margin-top: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.quote-saved__actions {
    margin-top: 2rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

/* ============================= */
/* Quote saved page */
/* ============================= */

.quote-saved__intro {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #166534; /* vert succès */
}

.quote-saved__card {
    max-width: 520px;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.05),
        0 8px 24px rgba(0,0,0,0.06);
}

.quote-saved__row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: .5rem 0;
    border-bottom: 1px dashed #e5e7eb;

    font-size: .95rem;
}

.quote-saved__row:last-child {
    border-bottom: none;
}

.quote-saved__row strong {
    color: #374151;
    font-weight: 500;
}

.quote-saved__total {
    margin-top: 1.5rem;
    padding-top: 1rem;

    font-size: 1.6rem;
    font-weight: 700;
    text-align: right;

    color: #111827;
    border-top: 2px solid #e5e7eb;
}

.quote-saved__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* Responsive */
@media (max-width: 600px) {
    .quote-saved__card {
        padding: 1.25rem;
    }

    .quote-saved__actions {
        flex-direction: column;
    }

    .quote-saved__actions .button {
        width: 100%;
    }
}

/* ========================= */
/* 🔎 Filters bar (quotes) */
/* ========================= */

.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;

    padding: .75rem 1rem;
    margin-bottom: 1.5rem;

    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

/* Inputs / select / date unified */
.filters-bar input,
.filters-bar select,
.filters-bar button {
    height: 40px;
    padding: 0 .75rem;

    font-size: .9rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;

    box-sizing: border-box;
}

/* Fix date inputs (Chrome / Safari) */
.filters-bar input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Focus state */
.filters-bar input:focus,
.filters-bar select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .15);
}

/* Text input width */
.filters-bar input[type="text"] {
    min-width: 180px;
}

/* Select compact */
.filters-bar select {
    min-width: 160px;
}

/* Button */
.filters-bar button {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    transition: background .15s ease;
}

.filters-bar button:hover {
    background: #1d4ed8;
}

/* ========================= */
/* 📱 Responsive */
/* ========================= */

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-bar input,
    .filters-bar select,
    .filters-bar button {
        width: 100%;
    }
}

.simulator-secondary-nav {
    margin: 0.5rem 0 1.2rem;
}

.text-link-muted {
    font-size: 0.9rem;
    color: #6b7280; /* gris moderne */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.text-link-muted:hover {
    color: #374151;
    text-decoration: underline;
}

/* ==========================================================
   QUOTE VIEW – ADMIN
   ========================================================== */

.quote-view {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* --------------------------
   Header
   -------------------------- */

.quote-view__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quote-view__header h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.quote-view__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* --------------------------
   Grid client / company
   -------------------------- */

.quote-view__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .quote-view__grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------
   Cards
   -------------------------- */

.card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.card p {
    margin: 0.2rem 0;
}

.muted {
    color: #6b7280;
    font-size: 0.9rem;
}

/* --------------------------
   Meta list
   -------------------------- */

.quote-meta {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quote-meta li {
    padding: 0.25rem 0;
}

/* --------------------------
   Daily pricing
   -------------------------- */

.quote-day {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.8rem;
    margin-top: 0.8rem;
}

.quote-day:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.quote-day__header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* --------------------------
   Price steps
   -------------------------- */

.quote-steps {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.quote-step {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.quote-step.is-draft {
    opacity: 0.7;
}

.draft-badge {
    margin-left: 0.3rem;
    font-size: 0.75rem;
    color: #92400e;
}

/* --------------------------
   Total
   -------------------------- */

.quote-total {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* --------------------------
   Footer actions
   -------------------------- */

.quote-view__footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quote-view__footer select {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
}

/* --------------------------
   Badges
   -------------------------- */

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-status {
    background: #e5e7eb;
    color: #374151;
}

.badge-status.badge-draft {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-status.badge-sent {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-status.badge-accepted {
    background: #dcfce7;
    color: #166534;
}

.badge-status.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* --------------------------
   Links & buttons
   -------------------------- */

.text-danger {
    color: #b91c1c;
    text-decoration: none;
}

.text-danger:hover {
    text-decoration: underline;
}

/* --------------------------
   Print clean
   -------------------------- */

@media print {
    .quote-view__actions,
    .quote-view__footer {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    body {
        background: #fff;
    }
}





        .box {
            width: 48%;
        }

        .box strong {
            display: block;
            margin-bottom: 4px;
        }

        .meta {
            margin-bottom: 24px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 24px;
        }

        th, td {
            padding: 8px 10px;
            border-bottom: 1px solid #ddd;
            vertical-align: top;
        }

        th {
            text-align: left;
            background: #f5f5f5;
        }

        .price {
            text-align: right;
            white-space: nowrap;
        }

        .total-box {
            margin-top: 24px;
            padding: 16px;
            background: #f8f8f8;
            border: 1px solid #ddd;
        }

        .total-line {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
        }

        .grand-total {
            font-size: 18px;
            font-weight: bold;
        }

        .draft-warning {
            margin-top: 24px;
            padding: 12px;
            background: #fff3cd;
            border: 1px solid #ffeeba;
            color: #856404;
        }

     

.branding {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.branding img {
    max-height: 70px;
    max-width: 200px;
}

.brand-text {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}


/* Rendre le conteneur inactif aux clics */
.chips-container.is-locked {
    pointer-events: none; /* Empêche tout clic sur les enfants */
    opacity: 0.7; /* Indication visuelle */
}

/* Style pour les chips inactifs (optionnel, le pointer-events sur le parent suffit normalement) */
.chip.disabled {
    /* background-color: #eee; Ex: fond grisé */
    /* color: #888; Ex: texte grisé */
    cursor: not-allowed; /* Curseur interdit */
}



/* Contenu fermé par défaut */
.menu-accordion-content {
  display: none;
}

/* Ouvert uniquement si .open est présent */
.menu-accordion.open > .menu-accordion-content {
  display: block;
}

/* Chevron animé */
.menu-accordion .chevron {
  transition: transform 0.2s ease;
}

.menu-accordion.open .chevron {
  transform: rotate(180deg);
}
/* === ACCORDION WRAPPER === */
.menu-accordion {
  margin: 4px 0;
}

/* === TOGGLE BUTTON === */
.menu-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;

  color: #e5e7eb; /* gris clair */
  font-size: 0.9rem;
  font-weight: 600;

  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover */
.menu-accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Icône principale */
.menu-accordion-toggle > i:first-child {
  width: 18px;
  text-align: center;
  opacity: 0.85;
}

/* Chevron */
.menu-accordion-toggle .chevron {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* === OPEN STATE === */
.menu-accordion.open > .menu-accordion-toggle {
  background: rgba(255, 255, 255, 0.12);
}

.menu-accordion.open .chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* === CONTENT === */
.menu-accordion-content {
  display: none;
  margin-top: 4px;
  padding-left: 28px;
}

.menu-accordion.open > .menu-accordion-content {
  display: block;
}

/* === LINKS INSIDE === */
.menu-accordion-content a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 12px;
  margin: 2px 0;

  border-radius: 6px;
  font-size: 0.85rem;

  color: #cbd5e1;
  text-decoration: none;

  transition: background 0.15s ease, color 0.15s ease;
}

.menu-accordion-content a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* Active link (optionnel) */
.menu-accordion-content a.active {
  background: rgba(59, 130, 246, 0.25);
  color: #ffffff;
}


.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination a {
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    background: #f5f5f5;
    color: #333;
}

.pagination a.active {
    background: #007bff;
    color: #fff;
    font-weight: bold;
}

.pagination .ellipsis {
    padding: 0 6px;
    color: #999;
}
/*bage message */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-info    { background: #e0f0ff; color: #005ea6; }
.badge-warning { background: #fff4e0; color: #a15c00; }
.badge-success { background: #e6f7e6; color: #1f7a1f; }
.badge-danger  { background: #fdecea; color: #a61d24; }
.badge-muted   { background: #f0f0f0; color: #666; }





.pagination-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pagination-link,
.pagination-current {
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    text-decoration: none;
}

.pagination-link {
    background: #f0f0f0;
    color: #333;
}

.pagination-link:hover {
    background: #ddd;
}

.pagination-current {
    background: #333;
    color: #fff;
    font-weight: bold;
}




.form-group input[type="datetime-local"],
.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #cfd4dc;
    border-radius: 6px;
    background: #fff;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4c9ffe;
    box-shadow: 0 0 0 2px rgba(76, 159, 254, 0.15);
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid #cfd4dc;
    border-radius: 6px;
    cursor: pointer;
    background: #f9fafb;
}

.radio-card input {
    accent-color: #4c9ffe;
}

.radio-card:hover {
    background: #f1f5f9;
}


.message-preview {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px dashed #cfd4dc;
    border-radius: 8px;
    background: #fafafa;
}

.preview-body {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5eb;
}
#add-message-section {
    background: #ffffff;
    border: 1px solid #e1e5eb;
    border-radius: 10px;
    padding: 1.25rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.form-row{
    width:45%;
    display:inline-block
}
.form-row input{
    display:block;
    height:35px;
    border-color:#efe3e3;
}




.audit-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.kpi-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

.kpi-card h4 {
    margin: 0;
    font-size: .9rem;
    color: #666;
}

.kpi-value {
    font-size: 2rem;
    font-weight: bold;
    margin-top: .5rem;
}

.kpi-card.info { border-left: 5px solid #3b82f6; }
.kpi-card.warning { border-left: 5px solid #f59e0b; }
.kpi-card.danger { border-left: 5px solid #ef4444; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
    padding: 1rem 1.2rem;
}

.panel header {
    margin-bottom: 1rem;
}

.simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.simple-table th,
.simple-table td {
    padding: .5rem;
    border-bottom: 1px solid #eee;
}

.stats-list {
    list-style: none;
    padding: 0;
}

.stats-list li {
    margin-bottom: .5rem;
}

.danger {
    color: #ef4444;
    font-weight: bold;
}

.chart-placeholder {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        #f8fafc,
        #f8fafc 10px,
        #f1f5f9 10px,
        #f1f5f9 20px
    );
    border-radius: 6px;
}

.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}


.visitor-title .chevron {
    float: right;
    transition: transform .2s;
}

.visitor-title.open .chevron {
    transform: rotate(180deg);
}

.timeline {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.timeline.open {
    max-height: 500px; /* ou 1000px selon ton volume */
}

.visitor-title {
    cursor: pointer;
    user-select: none;
}

.funnel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.funnel-step {
    display: grid;
    grid-template-columns: 180px 1fr 90px;
    align-items: center;
    gap: 12px;
}

.funnel-step .label {
    font-weight: 600;
}

.funnel-step .bar {
    background: #1f2937;
    border-radius: 6px;
    height: 14px;
    overflow: hidden;
}

.funnel-step .fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.funnel-step.warning .fill {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.funnel-step.danger .fill {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.funnel-step .meta {
    text-align: right;
    font-size: 0.85rem;
    color: #9ca3af;
}

.funnel-arrow {
    text-align: center;
    color: #6b7280;
    font-size: 1.2rem;
}



/* ==========================================================================
   7. Responsive Design
   ========================================================================== */
/* ==========================================================================
   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; }
}

/*admin planner */
.planner-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.planner-table th,
.planner-table td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
    font-size: 0.8rem;
}

.planner-table th {
    background: #f2f2f2;
}

.day-cell {
    height: 40px;
    background-color: #dff0d8;
    cursor: pointer;
}

.day-cell.booked-confirmed {
    background-color: #f2dede;
    cursor: not-allowed;
}

.day-cell.booked-pending {
    background-color: #fcf8e3;
    cursor: not-allowed;
}

.day-cell.booked-blocked {
    background-color: #d9edf7;
    cursor: not-allowed;
}

.button-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}


@media (max-width: 400px) {
        /* Header empilé en 3 blocs */
    header { flex-direction: column; gap: 20px; }
    header a.logo, #header-search-target, header nav {
        width: 50% !important;
        justify-content: center;
    }
    #header-search-target { order: 3; } /* La recherche passe en dernier */
    header nav { order: 2; justify-content: space-around; } /* La nav passe au milieu */

    /* Barre de recherche du hero sur 4 lignes */
    .search-bar-container.in-hero .date-inputs-wrapper,
    #header-search-target .date-inputs-wrapper {
        flex-direction: column;
    }
    .search-bar-container.in-header .date-inputs-wrapper,
    #header-search-target .date-inputs-wrapper {
        flex-direction: column;
    }

 
}



@media (max-width: 1024px) {
    /* Sur tablette et en dessous, on passe à une seule colonne */
    .reservation-content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

/* --- Style pour le bandeau de réservation sticky sur mobile --- */
    #sticky-booking-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 15px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 990;
        
        /* Gère l'apparition/disparition en douceur */
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        display: block; /* On le rend visible (mais hors écran) */
    }

    #sticky-booking-footer.is-visible {
        display: block;
        transform: translateY(0); /* Fait apparaître le bandeau */
    }

    .sticky-footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sticky-footer-content .price {
        font-weight: bold;
        font-size: 1.1rem;
    }
    .sticky-footer-content .nights {
        display: block;
        font-size: 0.9rem;
        color: #666;
    }

    #sticky-booking-footer .reserve-btn {
        padding: 10px 20px;
        font-size: 1rem;
        width: auto;
    }
 
}
/* --- On applique la largeur minimale uniquement sur les grands écrans --- */
@media (min-width: 1025px) {
    .apartment-details-column {
        /* Force la colonne à être assez large pour les 2 mois du calendrier */
        min-width: 520px; 
    }
}

/* On adapte les boutons pour les petits écrans */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    .lightbox-close { top: 10px; right: 15px; }

    #booking-calendar .litepicker {
        width: 100%;
    }

 

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-info {
        width: 50%; /* On force la largeur à 50% */
    }
    
    .footer-map {
        width: 50%; /* On force la largeur à 50% */
    }

    /*.apartment-details-column {
        min-width: 520px;
    }*/

    /* --- Dans la media query @media (max-width: 768px) --- */
    /* ... (autres règles responsives) ... */

    /* On transforme les tableaux admin en cartes sur mobile */
    .admin-table thead {
        display: none; /* On cache les en-têtes */
    }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
        display: block;
        width: 100%;
    }
    .admin-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    .admin-table td {
        text-align: center; /* On aligne le contenu à droite */
        position: relative;
        border-bottom: 1px solid #eee;
    }
    .admin-table td::before {
        content: attr(data-label); /* On utilise le data-label comme titre de ligne */
        position: absolute;
        left: 15px;
        font-weight: bold;
    }

    
}


/* ==========================================================================
   Responsive pour la page "À Propos"
   ========================================================================== */

@media (max-width: 640px) {
    /* On passe la grille principale sur une seule colonne */
    .about-page-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* On abandonne la grille complexe pour les articles d'histoire */
    .history-grid-container {
        display: flex;
        flex-direction: column; /* On empile les articles */
        gap: 20px;
        height: auto; /* La hauteur devient automatique */
    }

    /* On annule le positionnement spécifique de chaque article */
    .article-1, .article-2, .article-3, .article-4 {
        grid-column: auto;
        grid-row: auto;
    }
    
    /* --- Mise en page originale pour mobile --- */
    
    /* Pour tous les articles, on s'assure que le layout est vertical */
    .history-article, .article-3 {
        flex-direction: column;
    }
    
    .history-article img, .article-3 img {
        width: 100%;
        height: 180px; /* On donne une hauteur d'image cohérente */
    }
    
    /* On alterne la position de l'image pour créer un rythme */
    /* Article 2 et 4 : image en bas (comme sur desktop) */
    .article-2, .article-4 {
        flex-direction: column-reverse;
    }
 
}


/* --- Pour les tablettes (entre 641px et 1007px) --- */
@media (max-width: 1007px) {
    .about-page-grid-layout {
        grid-template-columns: 1fr;
    }
    .history-grid-container {
        grid-template-columns: repeat(2, 1fr); /* On passe à 2 colonnes */
        grid-template-rows: auto; /* Les lignes s'adaptent */
        height: auto;
    }
    /* On annule le positionnement complexe et on uniformise les articles */
    .history-article, .article-2, .article-3, .article-4 {
        grid-column: auto;
        grid-row: auto;
        flex-direction: column;
    }
    .history-article img, .article-3 img, .article-4 img {
        width: 100%;
        height: 180px;
    }
    .footer-map {
        display: block;
        width: 100%; /* On force la largeur à 50% */
    }

}

.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: 40px;
        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:80%;
      text-align: center;  
      height: 50%;
  line-height: 50%; 
}
.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;
    }
}
/* Mobile Planner Styles */
@media (max-width: 768px) {
    .planner-table {
        display: none;
    }

    .mobile-planner-container {
        display: block;
        margin-top: 20px;
    }

    .planner-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin-bottom: 15px;
        overflow: hidden;
    }

    .card-header {
        background: #f8f9fa;
        padding: 12px 15px;
        font-weight: bold;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .card-header h3 {
        margin: 0;
        font-size: 1rem;
        color: #333;
    }

    .expand-icon {
        transition: transform 0.3s ease;
        color: #666;
    }

    .card-header.collapsed .expand-icon {
        transform: rotate(-90deg);
    }

    .card-body {
        display: none;
        padding: 12px;
    }

    .card-body.expanded {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }

    .date-cell {
        text-align: center;
        padding: 8px;
        border-radius: 4px;
        font-size: 0.8rem;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
    }

    .date-label {
        font-size: 0.7rem;
        color: #6c757d;
        margin-bottom: 3px;
    }

    .date-status {
        font-size: 0.8rem;
        font-weight: 500;
    }




    /* Style des cellules de statut */
.date-cell.day-cell.empty {
    background-color: #f0fff0; /* Vert très clair pour libre */
    cursor: pointer;
    transition: background-color 0.2s;
}
.date-cell.day-cell:hover {
    background-color: #e0fbe0;
}

.date-cell.day-cell.booked-confirmed {
    background-color: #ffe4e4; /* Rouge clair pour réservé */
    color: #a02d2d;
    cursor: not-allowed;
}
.date-cell.day-cell.booked-pending {
    background-color: #fff8e1; /* Jaune clair pour en attente */
    color: #c09853;
    cursor: not-allowed;
}
.date-cell.day-cell.booked-blocked {
    background-color: #e7e7e7; /* Gris pour bloqué */
    color: #555;
}


   /* .date-cell.day-cell.booked-pending {
        background: #fcf8e3;
        color: #856404;
    }

    .date-cell.day-cell.booked-confirmed {
        background: #f2dede;
        color: #155724;
    }

    .date-cell.empty {
        background: #dff0d8;
    }*/

    .date-cell.day-cell.empty.weekend {
        background-color: #f9f9f9;
    }

    .date-cell button {
        width: 100%;
        padding: 3px;
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 3px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    /* Navigation */
    .planner-nav {
        display: flex;
        align-items: center;
        width: 100%;
        white-space: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .planner-nav::-webkit-scrollbar {
        display: none;
    }
}
