/* =========================================
   1. VARIABLES & RESET
   ========================================= */
   :root {
    --primary-blue: #0056b3;
    --dark-navy: #1a2b3c;
    --accent-gold: #eeac50;
    --text-dark: #222;
    --text-light: #666;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.3s ease, transform 0.3s ease; 
}

ul { 
    list-style: none; 
}

/* --- OPTIMISATION SVG (Classe Universelle) --- */
/* Cette classe sera utilisée sur tes balises <svg class="icon"> */
.icon {
    width: 1em;
    height: 1em;
    fill: currentColor; /* L'icône prend la couleur du texte parent */
    display: inline-block;
    vertical-align: middle; /* Meilleur alignement que -0.125em pour les SVG */
    flex-shrink: 0; /* Empêche l'icône de s'écraser */
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    will-change: transform; 
}

/* Logo du Header */
.logo a {
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary-blue);
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none;
}

/* Ajustement spécifique pour l'icône du logo */
.logo .icon {
    width: 1.2em; /* Un peu plus grand que le texte */
    height: 1.2em;
}

/* Navigation PC */
.nav-menu ul { display: flex; gap: 2.5rem; }

.nav-menu a { 
    font-weight: 600;
    color: var(--text-dark); 
    font-size: 1.15rem;
    transition: 0.3s;
}

.nav-menu a:hover { color: var(--primary-blue); }

.mobile-only { display: none; }

.header-right { display: flex; align-items: center; gap: 15px; }

/* Langue */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 15px;
}

.lang-switch a {
    color: var(--text-light);
    text-decoration: none;
    transition: 0.3s;
}

.lang-switch a:hover, 
.lang-switch a.active {
    color: var(--primary-blue);
}

.lang-switch .separator { color: #ccc; }

/* Boutons */
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    font-size: 1.05rem; 
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.5;
}

.btn-primary:hover {
    background-color: #004494;
    transform: translateY(-2px);
}
.full-width { width: 100%; display: block; }

/* Burger Menu */
.burger-menu { 
    display: none; 
    font-size: 1.8rem; 
    cursor: pointer; 
    color: var(--dark-navy); 
    /* Flex pour centrer le futur SVG */
    align-items: center;
    justify-content: center;
}

/* Adaptation icône burger */
.burger-menu .icon {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
}

/* =========================================
   3. ACCUEIL & CARTES (Listings)
   ========================================= */
   .hero {
    position: relative; /* Indispensable pour que l'image se place bien */
    height: 60vh; 
    min-height: 450px;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: white;
    padding: 0 20px;
    overflow: hidden; /* Coupe l'image si elle dépasse */
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; animation: fadeInDown 0.8s ease; }
.hero span.accent { color: var(--accent-gold); font-style: italic; }
.hero p { font-size: 1.2rem; max-width: 600px; animation: fadeInUp 0.8s ease 0.2s backwards; }

.listings { 
    padding: 4rem 5%; 
    content-visibility: auto; 
    contain-intrinsic-size: 1000px;
}

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--primary-blue); font-weight: 600; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }

.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    flex: 1 1 350px;
    max-width: 550px;
    width: 100%;
}

.property-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.12); 
}

.card-image {
    height: 310px;
    width: 100%;
    position: relative;
    background-color: #eee;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.price-tag {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary-blue);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-content { padding: 1.5rem; }
.card-title { font-size: 1.4rem; margin-bottom: 1rem; color: var(--dark-navy); }
.location-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.5rem; }
.amenities { display: flex; gap: 15px; border-top: 1px solid #eee; padding-top: 1rem; color: var(--text-light); font-size: 0.9rem; }
.amenities .icon, .amenities i { color: var(--primary-blue); margin-right: 5px; }

/* =========================================
   4. PAGES INTERNES
   ========================================= */
   .page-hero {
    position: relative; /* Indispensable pour que l'image se place bien */
    height: 40vh; 
    min-height: 300px;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: white;
    overflow: hidden; /* Coupe l'image si elle dépasse */
}
.page-hero h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.page-hero p { font-size: 1.2rem; font-style: italic; color: var(--accent-gold); }

.content-container { max-width: 1200px; margin: 0 auto; padding: 4rem 5%; }
.subtitle { color: var(--primary-blue); font-weight: 700; letter-spacing: 2px; font-size: 0.9rem; display: block; margin-bottom: 1rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }
.about-grid.reverse .about-text { order: 2; }
.about-grid.reverse .about-image { order: 1; }
.about-text h3, .about-text h2 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--dark-navy); }
.about-text p { margin-bottom: 1.5rem; color: #555; text-align: justify; }
.feature-list li { margin-bottom: 0.8rem; font-weight: 500; color: var(--dark-navy); display: flex; align-items: center; }
.feature-list .icon, .feature-list i { color: var(--accent-gold); margin-right: 10px; width: 1.2em; height: 1.2em; }
.about-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.weather-section { margin-bottom: 5rem; text-align: center; }
.weather-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 3rem; }
.weather-card { background: white; padding: 2rem; border-radius: var(--radius); box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee; }
.weather-card:hover { transform: translateY(-5px); }
.weather-card .icon, .weather-card i { font-size: 2rem; color: var(--primary-blue); margin-bottom: 1rem; width: 40px; height: 40px; }
.weather-card .temp { font-size: 2.5rem; font-weight: 700; color: var(--dark-navy); margin-bottom: 0.5rem; }
.weather-card.highlight { background: var(--primary-blue); color: white; }
.weather-card.highlight .icon, .weather-card.highlight i, .weather-card.highlight .temp, .weather-card.highlight h3 { color: white; }

.cta-box { background: var(--bg-light); border-radius: var(--radius); padding: 4rem 2rem; text-align: center; margin-top: 4rem; }
.cta-box h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--dark-navy); }
.cta-box p { margin-bottom: 2.5rem; color: #666; font-size: 1.1rem; }
.cta-box .btn-primary { display: inline-block; margin-top: 10px; }

/* Carrousel */
.carousel-wrapper { position: relative; display: flex; align-items: center; }
.photo-carousel { display: flex; overflow-x: auto; gap: 15px; padding: 20px 5px; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; width: 100%; }
.photo-carousel::-webkit-scrollbar { display: none; }

.carousel-item {
    flex: 0 0 auto;
    width: auto;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: zoom-in;
    margin-right: 5px;
}
.carousel-item img { height: 100%; width: auto; display: block; object-fit: contain; background-color: #f0f0f0; }
.carousel-item:hover { transform: scale(1.03); }

.scroll-btn { background: white; border: 1px solid #eee; width: 45px; height: 45px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer; font-size: 1.2rem; color: var(--primary-blue); display: flex; align-items: center; justify-content: center; z-index: 10; transition: 0.3s; flex-shrink: 0; }
.scroll-btn:hover { background: var(--primary-blue); color: white; transform: scale(1.1); }
.scroll-btn.prev { margin-right: 15px; }
.scroll-btn.next { margin-left: 15px; }

/* =========================================
   5. PAGE RECHERCHE
   ========================================= */
.search-hero {
    background-color: var(--dark-navy);
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/accueil.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 1rem;
    text-align: center;
    color: white;
    position: relative;
}
.search-container h1 { font-size: 2.5rem; margin-bottom: 2rem; }

.search-bar { background: white; max-width: 800px; margin: 0 auto; border-radius: 50px; padding: 10px; display: flex; align-items: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); gap: 10px; }
.search-item { flex: 1; padding: 5px 20px; border-right: 1px solid #eee; text-align: left; }
.search-item:last-of-type { border-right: none; }
.search-item label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--dark-navy); margin-bottom: 2px; }
.search-item label .icon, .search-item label i { margin-right: 5px; }
.search-item input, .search-item select { border: none; width: 100%; font-size: 0.95rem; color: #666; background: transparent; outline: none; padding: 0; }

.btn-search { background: var(--primary-blue); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; transition: 0.3s; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.btn-search:hover { transform: scale(1.1); background: #004494; }

#search-results-section { animation: fadeInUp 0.6s ease-out; }
body:has(.search-hero) { background-color: #fff; }

/* =========================================
   6. PAGE GUIDE & FAQ
   ========================================= */
.guide-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; 
    content-visibility: auto; contain-intrinsic-size: 500px;
}
.destination-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s; border: 1px solid #eee; }
.destination-card:hover { transform: translateY(-5px); }
.dest-img { height: 200px; width: 100%; position: relative; background-color: #eee; }
.dest-img img { width: 100%; height: 100%; object-fit: cover; }
.dest-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.7); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.dest-content { padding: 1.5rem; }
.micro-list { list-style: none; padding: 0; }
.micro-list li { font-size: 0.85rem; color: var(--primary-blue); margin-bottom: 5px; font-weight: 500; display: flex; align-items: center;}
.micro-list .icon, .micro-list i { margin-right: 8px; width: 15px; text-align: center; }

.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 2rem; }
.activity-item { background: white; padding: 2rem 1.5rem; text-align: center; border-radius: 12px; border: 1px solid #eee; transition: 0.3s; }
.activity-item:hover { border-color: var(--primary-blue); box-shadow: 0 5px 15px rgba(0,86,179,0.1); }
.act-icon { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 1rem; display: inline-block; }
.act-icon .icon { width: 40px; height: 40px; }

.faq-category { margin-bottom: 3rem; }
.category-title { font-size: 1.5rem; color: var(--primary-blue); margin-bottom: 1.5rem; padding-bottom: 10px; border-bottom: 2px solid #eee; display: flex; align-items: center; }
.category-title .icon, .category-title i { margin-right: 10px; }

.faq-item { background: white; border: 1px solid #eee; border-radius: 8px; margin-bottom: 15px; overflow: hidden; transition: all 0.3s ease; }
.faq-item[open] { box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-color: var(--primary-blue); }
.faq-item summary { padding: 1.5rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--dark-navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 30px; height: 30px; background: #f4f4f4; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); font-size: 0.9rem; transition: 0.3s; flex-shrink: 0; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--primary-blue); color: white; }
.faq-content { padding: 0 1.5rem 1.5rem 1.5rem; color: #666; line-height: 1.7; font-size: 0.95rem; animation: slideDown 0.3s ease-out; }

/* =========================================
   7. PAGE DÉTAIL VILLA
   ========================================= */
.property-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; padding: 3rem 5%; max-width: 1400px; margin: 0 auto; }

.gallery-wrapper { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 200px 200px; gap: 10px; margin-bottom: 2rem; border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; background-color: #eee; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.02); }
.main-img { grid-column: 1 / 2; grid-row: 1 / 3; height: 100%; }
.sub-img-1 { grid-column: 2 / 3; grid-row: 1 / 2; }
.sub-img-2 { grid-column: 2 / 3; grid-row: 2 / 3; }

.overlay-btn { position: absolute; bottom: 20px; right: 20px; background: white; color: var(--dark-navy); padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 8px; border: 1px solid rgba(0,0,0,0.1); z-index: 10; transition: 0.2s; }
.overlay-btn:hover { transform: scale(1.05); }
.mobile-text { display: none; } 
.desktop-text { display: block; }

.property-header h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--dark-navy); }
.badges { display: flex; gap: 10px; margin-bottom: 5px; }
.badge-gold { background: var(--accent-gold); color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center;}
.badge-blue { background: var(--primary-blue); color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center;}
.badge-gold .icon, .badge-blue .icon, .badge-gold i, .badge-blue i { margin-right: 4px; }
.location-text { color: #666; margin-bottom: 1.5rem; display: flex; align-items: center;}
.location-text .icon, .location-text i { margin-right: 5px; color: var(--primary-blue); }

.amenities-bar { display: flex; gap: 20px; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 2rem; color: var(--dark-navy); font-weight: 500; font-size: 0.9rem; }
.amenities-bar .icon, .amenities-bar i { color: var(--primary-blue); margin-right: 5px; width: 1.3em; height: 1.3em; }

.content-block { margin-bottom: 2.5rem; }
.content-block h3 { font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.content-block p { color: #555; margin-bottom: 1rem; line-height: 1.7; text-align: justify; }

.detail-list { list-style: none; padding: 0; }
.detail-list li { margin-bottom: 0.8rem; color: #555; display: flex; align-items: center; gap: 10px; }
.detail-list .icon, .detail-list i { color: var(--accent-gold); flex-shrink: 0; }
.detail-list.specs-list li { display: grid; grid-template-columns: 140px 1fr; align-items: baseline; gap: 10px; }
.detail-list.specs-list strong { color: var(--dark-navy); white-space: nowrap; }

.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.three-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; }

.fees-block { background: #fff; border: 1px solid #eee; padding: 2rem; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); position: relative; overflow: hidden; }
.fees-block::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 5px; background: var(--primary-blue); }
.fees-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.fee-item span { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; color: #888; margin-bottom: 5px; display: block; }
.fee-item strong { font-size: 1.1rem; color: var(--primary-blue); }

/* Sticky Sidebar & Widget */
.sticky-sidebar { position: sticky; top: 110px; height: fit-content; z-index: 100; }
.booking-widget { background: white; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #eee; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; font-size: 0.95rem; background: white; }

.flatpickr-input[readonly] { background-color: var(--white) !important; border: 1px solid #ddd; padding: 12px 15px; border-radius: 6px; font-family: 'Inter', sans-serif; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%230056b3' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 9v7.5' /%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 20px; }
.flatpickr-day.selected { background: var(--primary-blue) !important; border-color: var(--primary-blue) !important; }

.total-price-box { background: #f8f9fa; padding: 15px; border-radius: 8px; margin-top: 15px; border: 1px solid #eee; display: none; animation: fadeIn 0.3s ease; }
.total-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.9rem; color: #666; }
.total-final { display: flex; justify-content: space-between; border-top: 1px solid #ddd; margin-top: 10px; padding-top: 10px; font-weight: 700; font-size: 1.1rem; color: var(--dark-navy); }

#map-container { background: #eee; border: 1px solid #ddd; }
.custom-map-marker { background: transparent; }

/* Contact Page */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; margin-top: 2rem; }
.contact-info-box h3, .contact-form-box h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--dark-navy); }
.contact-details-list li { display: flex; gap: 20px; margin-bottom: 2rem; align-items: flex-start; }
.icon-circle { width: 50px; height: 50px; background: #eef4fb; color: var(--primary-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-details-list strong { display: block; color: var(--dark-navy); margin-bottom: 5px; }
.contact-form-box { background: white; padding: 3rem; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border: 1px solid #eee; }

/* =========================================
   8. MODALES & LIGHTBOX
   ========================================= */
.lightbox { position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: flex; align-items: flex-start; overflow-y: auto; padding-top: 50px; }
.lightbox-content { display: flex; flex-direction: column; gap: 20px; padding: 20px; max-width: 900px; width: 100%; margin: 0 auto; }
.lightbox-content img { width: 100%; height: auto; border-radius: 4px; display: block; }
.close-lightbox { position: fixed; top: 20px; right: 30px; color: white; font-size: 3rem; cursor: pointer; z-index: 10001; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: rgba(255, 255, 255, 0.7); font-size: 3rem; cursor: pointer; padding: 20px; z-index: 10002; transition: 0.2s; }
.lightbox-nav:hover { color: white; transform: translateY(-50%) scale(1.1); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.modal-content { background: white; padding: 3rem; border-radius: 16px; text-align: center; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); border: 1px solid rgba(0,0,0,0.1); }
.text-danger { color: #dc3545; }

/* =========================================
   9. FOOTER (Design & Spacing Fix)
   ========================================= */
   footer { 
    /* Enforce global theme colors */
    background-color: var(--dark-navy); 
    color: var(--white);
    
    /* Enforce global font */
    font-family: 'Inter', sans-serif; 
    
    /* MARGIN FIX: Reduce top spacing */
    margin-top: 0; /* Changed from 5rem to 0 to remove the large gap */
    padding: 3rem 5% 2rem 5%; /* Reduced top padding from 5rem to 3rem */
    
    font-size: 0.95rem;
    overflow: hidden; /* Safety to prevent horizontal scrollbars */
}

.footer-grid { 
    display: grid; 
    /* Robust grid that won't collapse columns */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 3rem; 
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 { 
    color: var(--white); 
    font-size: 1.2rem; 
    margin-bottom: 1.5rem;
    /* Enforce title font */ 
    font-family: 'Playfair Display', serif; 
    font-weight: 700;
}

.footer-links li { 
    margin-bottom: 0.8rem; 
    list-style: none; /* Security against default styles */
}

.footer-links a { 
    color: var(--white); /* Force white text */
    opacity: 0.7; 
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover { 
    opacity: 1; 
    color: var(--accent-gold); 
}

/* Logo Styling */
.footer-col .logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--white);
    font-family: 'Playfair Display', serif; /* Logo font */
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Contact List Styling */
.contact-list { 
    list-style: none; 
    padding: 0; 
}

.contact-list li { 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    margin-bottom: 1rem; 
    opacity: 0.9; 
    color: var(--white); /* Force text color */
}

/* SVG Icon Styling */
/* Use !important to override any inline styles or specificities from the functional HTML */
.contact-list .icon, 
.contact-list i,
.footer-col .logo .icon { 
    width: 1.2em;
    height: 1.2em;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Enforce Gold Color for Contact Icons */
.contact-list .icon, 
.contact-list i {
    color: var(--accent-gold) !important; 
    fill: var(--accent-gold) !important;
}

/* Enforce White Color for Logo Icon */
.footer-col .logo .icon {
    color: var(--white) !important;
    fill: var(--white) !important;
}

.contact-list a { 
    color: var(--white); 
    text-decoration: none; 
}

.contact-list a:hover { 
    color: var(--accent-gold); 
}

/* Copyright Section */
.copyright { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 2rem; 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 1rem; 
    opacity: 0.6; 
    font-family: 'Inter', sans-serif;
}

.copyright a { 
    color: var(--white); 
    text-decoration: none; 
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    footer {
        padding-top: 2rem; /* Even smaller padding on mobile */
    }
    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns vertically */
        gap: 2.5rem;
    }
    .copyright {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* =========================================
   10. MOBILE RESPONSIVE FINAL (< 768px)
   ========================================= */
.mobile-overlay { display: none; }
.mobile-widget-header { display: none; }
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
    header { padding: 0.8rem 5%; height: 70px; }
    .logo a { font-size: 1.2rem; }
    .burger-menu { display: block; display: flex; align-items: center; } /* Flex pour centrer le SVG */
    
    .header-right .btn-primary { display: none; }

    .nav-menu { position: fixed; top: 70px; right: -100%; width: 100%; height: calc(100vh - 70px); background: white; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 3rem; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-top: 1px solid #eee; box-shadow: 0 10px 10px rgba(0,0,0,0.05); z-index: 1001; }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; gap: 2.5rem; width: 100%; }
    .nav-menu a { font-size: 1.3rem; }

    .mobile-only { display: block; margin-top: 1rem; font-weight: 700; border-top: 1px solid #eee; padding-top: 1rem; width: 100%; text-align: center; }

    .property-layout { display: block; padding-bottom: 100px; }
    .page-hero h1 { font-size: 2.2rem; }
    footer { margin-bottom: 80px; }

    .two-cols, .three-cols { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-grid.reverse .about-image { order: -1; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .contact-form-box { padding: 1.5rem; }

    .detail-list li, 
    .detail-list.specs-list li {
        display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-bottom: 1.2rem; border-bottom: 1px solid #f9f9f9; padding-bottom: 10px;
        overflow-wrap: anywhere; word-break: break-word; max-width: 100%;
    }
    .detail-list strong { display: block; width: 100%; margin-bottom: 2px; color: var(--dark-navy); font-size: 1rem; }
    .detail-list.specs-list li { grid-template-columns: 1fr; }

    .gallery-wrapper { display: block; height: 280px; margin-bottom: 1.5rem; }
    .main-img { width: 100%; height: 100%; }
    .sub-img-1, .sub-img-2 { display: none; }
    
    .overlay-btn { bottom: 15px; right: 15px; padding: 5px 12px; font-size: 0.8rem; background: rgba(30, 30, 30, 0.7); color: white; border: none; backdrop-filter: blur(2px); }
    .desktop-text { display: none; }
    .mobile-text { display: block; }
    
    .scroll-btn { display: none; }
    .lightbox-nav { font-size: 2rem; padding: 10px; }
    .lightbox-nav.prev { left: 5px; }
    .lightbox-nav.next { right: 5px; }

    .search-bar { flex-direction: column; border-radius: 20px; padding: 20px; }
    .search-item { width: 100%; border-right: none; border-bottom: 1px solid #eee; padding: 10px 0; }
    .btn-search { width: 100%; border-radius: 12px; margin-top: 10px; height: 45px; }

    /* Footer responsive */
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 2.5rem; 
        margin-bottom: 2rem; 
    }
    
    footer { 
        padding: 3rem 5% 2rem 5%; 
    }
    
    .copyright { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 1rem; 
    }
    
    .contact-list li { 
        align-items: flex-start; 
    }

    .sticky-sidebar { position: fixed !important; left: 0; bottom: 0; width: 100%; height: auto; z-index: 10000; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); top: auto; padding: 0; background: transparent; }
    .sticky-sidebar.open { transform: translateY(0); }
    .booking-widget { background: #fff; border-radius: 16px 16px 0 0; padding: 20px; box-shadow: 0 -10px 40px rgba(0,0,0,0.15); max-height: 85vh; overflow-y: auto; border: none; }
    
    .mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 9999; display: none; backdrop-filter: blur(2px); }
    .mobile-overlay.active { display: block; }
    
    .mobile-widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; background: white; z-index: 10; }
    .mobile-widget-header h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
    .mobile-widget-header span { font-size: 1.2rem; background: #f7f7f7; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
    
    .mobile-bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; background: white; padding: 12px 20px; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 9990; justify-content: space-between; align-items: center; border-top: 1px solid #eee; }
    .mobile-price { display: flex; flex-direction: column; }
    .mobile-price .amount { font-weight: 700; font-size: 1rem; color: var(--dark-navy); }
    .mobile-price .period { font-size: 0.8rem; color: #666; text-decoration: underline; }
}

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* =========================================
   CORRECTIF FINAL : ORDRE D'AFFICHAGE (Z-INDEX)
   À coller tout en bas de style.css
   ========================================= */

/* 1. Le fond flouté/sombre (doit être derrière le formulaire) */
.mobile-overlay {
    z-index: 9990 !important;
}

/* 2. Le formulaire de réservation (doit être DEVANT le fond flouté) */
.sticky-sidebar {
    z-index: 9995 !important;
}

/* 3. Les fenêtres d'erreur/succès (doivent être DEVANT le formulaire) */
.modal-overlay {
    z-index: 9998 !important;
}

/* 4. Le calendrier (doit être TOUT DEVANT pour sélectionner les dates) */
.flatpickr-calendar {
    z-index: 99999 !important;
}

/* 5. Le menu de navigation (doit rester accessible si besoin) */
.nav-menu {
    z-index: 10001 !important;
}