:root {
    --divana-teal: #2D8B94;
    --divana-gold: #C5A059;
    --text-dark: #334155;
    --text-light: #64748B;
    --soft-bg: #F8FAFC;
    --white: #ffffff;
}

/* Base & Espacements */
body { background-color: var(--white); color: var(--text-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-section { padding: 120px 0; }
.bg-pale { background-color: var(--soft-bg); }

/* Hero Light */
.immo-hero-light {
    padding: 100px 0 150px 0;
    background: linear-gradient(180deg, #edf2f7 0%, #ffffff 100%);
    text-align: center;
}
.hero-minimal h1 { font-size: 3.5rem; font-weight: 800; color: var(--text-dark); margin: 15px 0; }
.subtitle { text-transform: uppercase; letter-spacing: 3px; color: var(--divana-gold); font-weight: 700; font-size: 0.8rem; }
.hero-minimal p { font-size: 1.2rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* Filtres flottants */
.filter-section { margin-top: -80px; }
.glass-filter {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}
.filter-row { display: flex; gap: 30px; align-items: flex-end; }
.field { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 0.8rem; font-weight: 700; color: var(--text-dark); text-transform: uppercase; }
.field select { 
    padding: 15px; border: 1px solid #e2e8f0; border-radius: 12px; 
    background-color: #f8fafc; color: var(--text-dark); outline: none; transition: 0.3s;
}
.field select:focus { border-color: var(--divana-teal); }
.btn-primary-divana { 
    padding: 15px 35px; background: var(--divana-teal); color: white; 
    border: none; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s;
}

/* Grid de Propriétés */
.section-intro { margin-bottom: 60px; text-align: left; }
.section-intro h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.divider { width: 60px; height: 4px; background: var(--divana-gold); }

.clean-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }
.modern-card { border-radius: 24px; overflow: hidden; transition: 0.4s; background: white; border: 1px solid #f1f5f9; }
.modern-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1); }
.card-media { height: 280px; position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.tag-price { 
    position: absolute; bottom: 20px; left: 20px; background: white; 
    padding: 10px 20px; border-radius: 12px; font-weight: 800; color: var(--divana-teal);
}

.card-info { padding: 30px; }
.card-cat { color: var(--divana-gold); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; }
.card-info h3 { font-size: 1.4rem; margin: 10px 0; }
.card-loc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.card-features { display: flex; gap: 20px; padding-top: 20px; border-top: 1px solid #f1f5f9; }
.card-features span { font-size: 0.9rem; color: var(--text-light); }
.btn-text { display: inline-block; margin-top: 20px; text-decoration: none; color: var(--divana-teal); font-weight: 700; }

/* Réalisations (Showcase horizontal) */
.showcase-list { display: flex; flex-direction: column; gap: 80px; }
.showcase-item { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.showcase-img { height: 450px; border-radius: 30px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; }
.showcase-content h3 { font-size: 2.5rem; margin: 15px 0; }
.year { font-size: 1.2rem; color: var(--divana-gold); font-weight: 800; }
.showcase-footer { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; }
.btn-outline-gold { border: 2px solid var(--divana-gold); color: var(--divana-gold); padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.3s; }
.btn-outline-gold:hover { background: var(--divana-gold); color: white; }

/* Pagination */
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 30px; padding: 80px 0; }
.pag-arrow { width: 50px; height: 50px; border: 1px solid #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-dark); transition: 0.3s; }
.pag-arrow:hover { background: var(--divana-teal); color: white; border-color: var(--divana-teal); }
.pag-numbers { font-weight: 700; font-size: 1.1rem; }

/* Responsive */
@media (max-width: 992px) {
    .filter-row { flex-direction: column; }
    .showcase-item { grid-template-columns: 1fr; gap: 30px; }
    .showcase-img { height: 300px; }
    .hero-minimal h1 { font-size: 2.5rem; }
    .content-section { padding: 60px 0; }
}

/* 1. On s'assure que le header et la nav restent les maîtres absolus */
header, 
.nav-container, 
nav {
    position: relative;
    z-index: 99999 !important; /* Priorité maximale */
}

/* 2. Le menu mobile (le panneau gris que l'on voit sur ta capture) */
/* Remplace '.mobile-menu' par le nom de ta classe si c'est différent */




/* 4. On calme le jeu sur la page recherche */
/* Le "Glassmorphism" crée souvent des bugs de superposition */
.recherche-page, 
.filter-section, 
.glass-filter {
    position: relative;
    z-index: 1 !important; /* On les force à rester au niveau du sol */
}

.modern-card {
    z-index: 1; /* On évite que les cartes ne volent au-dessus du menu */
}

/* --- La Section Filtre (Optimisée Mobile) --- */
.filter-section {
    padding: 15px; /* Réduit l'espace autour sur petit écran */
}

.glass-filter {
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box; /* Empêche le débordement horizontal */
}

/* --- Structure de la ligne --- */
.filter-row {
    display: flex;
    flex-direction: column; /* Empilement vertical obligatoire sur mobile */
    gap: 15px; /* Espace constant entre chaque bloc "Label + Input" */
}

/* --- Bloc Champ (Label + Input) --- */
.field {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre tout le contenu du champ */
    text-align: center;
}

.field label {
    font-size: 0.75rem; /* Réduit la taille pour éviter que ça prenne toute la place */
    margin-bottom: 6px;
    width: 100%;
}

/* --- Les Inputs & Selects --- */
.field input, 
.field select {
    width: 100% !important; /* Prend toute la largeur disponible dans le cadre */
    max-width: 100%;
    height: 45px !important; /* Hauteur fixe pour l'unité visuelle */
    text-align: center; /* Centre le texte à l'intérieur pour le look mobile */
    border-radius: 10px !important;
    padding: 0 10px !important;
}

/* --- Le Bouton --- */
.btn-primary-divana {
    width: 100%; /* Le bouton doit être large sur mobile pour être facile à cliquer */
    height: 50px;
    margin-top: 5px;
    z-index: 1; /* S'assure qu'il reste sous le chatbot si nécessaire */
}

/* --- AJUSTEMENT PC (Reste inchangé pour le bureau) --- */
@media (min-width: 992px) {
    .filter-row {
        flex-direction: row;
        align-items: flex-end;
        gap: 15px;
    }
    
    .field {
        align-items: flex-start; /* Aligné à gauche sur PC */
        text-align: left;
    }
    
    .field input, .field select {
        text-align: left;
    }
}