/* =============================================
   IMMOSEN - PLATEFORME IMMOBILIERE
   CSS Principal - Charte : vert #117333, doré #F1C249
   ============================================= */

/* Variables CSS - Charte graphique SenCentrale (logo & charte) */
:root {
    /* Palette SenCentrale - Logo & charte */
    --primary-color: #117333;         /* Vert charte - Confiance & Sécurité */
    --primary-dark: #0e5c2a;          /* Vert foncé - Autorité */
    --secondary-color: #F1C249;       /* Doré charte - Prospérité */
    --accent-color: #F1C249;          /* Doré - Énergique */
    --success-color: #117333;         /* Vert - Succès */
    --danger-color: #D32F2F;          /* Rouge - Urgence */
    --warning-color: #FBC02D;         /* Jaune - Attention */
    
    --text-dark: #1f2937;
    --text-medium: #6b7280;
    --text-light: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-gray: #f3f4f6;
    
    --border-color: #e5e7eb;
    --border-radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-secondary);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
}

/* Typographie - Mobile First */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

/* Mobile par défaut (petit) */
h1 { font-size: 1.75rem; }   /* Mobile */
h2 { font-size: 1.5rem; }     /* Mobile */
h3 { font-size: 1.25rem; }     /* Mobile */
h4 { font-size: 1.125rem; }    /* Mobile */
h5 { font-size: 1rem; }        /* Mobile */
h6 { font-size: 0.875rem; }    /* Mobile */

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-medium);
}

/* Liens */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white !important;
}

.btn-secondary {
    background-color: var(--text-medium);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Formulaires */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* Cards */
.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.card-header {
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0;
}
.card-title--section {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    font-size: 1.75rem;
}
@media (min-width: 768px) {
    .card-title--section {
        font-size: 2rem;
    }
}
.card-subtitle,
.section-lead {
    text-align: center;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
.card--elevated {
    box-shadow: var(--shadow-md);
}
.card--home-features {
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-2xl);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.card-body {
    padding: var(--spacing-md) 0;
}

/* Layout - Mobile First */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem; /* Mobile : padding réduit pour harmoniser avec header */
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md); /* Mobile : padding réduit */
}

/* Header - Mobile First */
.header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0; /* Mobile : moins de padding */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm); /* Mobile : espacement réduit */
}

/* Logo - Mobile First */
.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem; /* Mobile : gap réduit */
    font-size: 1.125rem; /* Mobile : plus petit */
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 1.25rem; /* Mobile : plus petit */
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation - Mobile First */
/* Par défaut : mobile menu visible */
.nav {
    display: none; /* Mobile : caché */
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem; /* Mobile : padding réduit */
    border-radius: var(--border-radius);
    transition: all 0.2s;
    font-size: 0.875rem; /* Mobile : texte plus petit */
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(45, 125, 50, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(45, 125, 50, 0.1);
    font-weight: 600;
}

/* Boutons dans navbar - Mobile */
.btn {
    padding: 0.5rem 1rem; /* Mobile : plus petit */
    font-size: 0.875rem; /* Mobile */
}

.btn-icon {
    margin-right: 0.25rem;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    background: var(--bg-gray);
    border-color: var(--primary-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
}

.dropdown-icon {
    font-size: 0.75rem;
    color: var(--text-medium);
    transition: transform 0.2s;
}

/* User Dropdown */
.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 1001;
    overflow: hidden;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-gray);
}

.user-menu-header strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.user-menu-header small {
    color: var(--text-medium);
    font-size: 0.875rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
}

.menu-item:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.menu-item.menu-danger {
    color: var(--danger-color);
}

.menu-item.menu-danger:hover {
    background: rgba(211, 47, 47, 0.1);
}

.menu-icon {
    font-size: 1.2rem;
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Mobile Menu - Par défaut visible sur mobile */
.mobile-menu-toggle {
    display: block; /* Mobile : visible par défaut */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-dark);
}

.mobile-nav {
    display: none; /* Mobile : caché par défaut */
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.mobile-nav.show {
    display: flex; /* Mobile : affiché au clic */
}

.mobile-nav-link {
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s;
    font-size: 0.875rem;
}

.mobile-nav-link:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Sections d'accueil - espacement visible */
.home-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.home-section--large {
    margin-top: 3rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .home-section {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
    .home-section--large {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
}

/* Bandeau "Pourquoi choisir" - fond pour faire ressortir la card */
.home-why-band {
    width: 100%;
    background: var(--bg-secondary);
    padding: 3rem 0 4rem;
}
@media (min-width: 768px) {
    .home-why-band {
        padding: 4rem 0 5rem;
    }
}

/* Hero Section - plus imposant */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3.5rem 0;
    text-align: center;
}
.hero__inner {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}
.hero-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: white;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.0625rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    color: white;
    line-height: 1.5;
}
.hero__ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: var(--spacing-md);
}
.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* Bouton CTA dans le hero : contraste blanc sur fond vert */
.hero .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.9);
}
.hero .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    border-color: #fff;
    color: var(--primary-dark) !important;
}

/* Section split Terrains, maisons, appartements - card bien visible */
.home-cta-split {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
/* Image paysage : photo entière visible (pas de crop). La hauteur suit le ratio intrinsèque de l’image. */
.home-cta-split__image {
    width: 100%;
    background: var(--bg-gray);
    display: block;
    position: relative;
    overflow: hidden;
    line-height: 0;
}
.home-cta-split__image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    vertical-align: top;
}
.home-cta-split__placeholder {
    color: var(--text-light);
    font-size: 0.9rem;
}
.home-cta-split__text {
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
}
.home-cta-split__intro {
    flex-shrink: 0;
}
.home-cta-split__kicker {
    margin: 0 0 0.65rem 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3d4f3a;
    background: rgba(241, 194, 73, 0.22);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
}
.home-cta-split__title {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.home-cta-split__subtitle {
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.65;
    max-width: 26rem;
}
.home-cta-split__highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.home-cta-split__highlights li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-medium);
}
.home-cta-split__highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary-color);
}
/* Grille : CTA principal pleine largeur, deux boutons secondaires alignés sur une ligne (dès ~400px) */
.home-cta-split__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
    margin-top: 1.25rem;
    width: 100%;
    flex-shrink: 0;
}
@media (min-width: 400px) {
    .home-cta-split__actions {
        grid-template-columns: 1fr 1fr;
    }
    .home-cta-split__btn--primary {
        grid-column: 1 / -1;
    }
}
.home-cta-split__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.125rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}
.home-cta-split__btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.home-cta-split__icon {
    flex-shrink: 0;
    opacity: 0.95;
}
.home-cta-split__btn--primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(17, 115, 51, 0.15);
}
.home-cta-split__btn--primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(17, 115, 51, 0.25);
}
.home-cta-split__btn--outline {
    background-color: var(--bg-primary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.home-cta-split__btn--outline:hover {
    background-color: rgba(17, 115, 51, 0.08);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

@media (min-width: 768px) {
    /* Même hauteur pour les deux colonnes : plus de bloc texte « flottant » au milieu */
    .home-cta-split {
        flex-direction: row;
        align-items: stretch;
    }
    .home-cta-split__image {
        flex: 1 1 50%;
        min-width: 0;
        align-self: stretch;
        background: var(--bg-gray);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .home-cta-split__image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: block;
        flex-shrink: 0;
    }
    .home-cta-split__text {
        flex: 1 1 50%;
        padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
        justify-content: flex-start;
        align-self: stretch;
        min-height: 0;
    }
    /* Espace utile entre accroche et boutons (remplit le vide au lieu de le centrer) */
    .home-cta-split__actions {
        margin-top: auto;
        padding-top: 1.25rem;
        max-width: none;
    }
    .home-cta-split__title {
        font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    }
    .home-cta-split__subtitle {
        font-size: 1rem;
        max-width: 28rem;
    }
}

@media (min-width: 1024px) {
    .home-cta-split__image {
        flex: 1 1 55%;
    }
    .home-cta-split__text {
        flex: 1 1 45%;
        padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    }
    .home-cta-split__title {
        font-size: clamp(1.625rem, 2.2vw, 2rem);
    }
    .home-cta-split__subtitle {
        font-size: 1.0625rem;
    }
}

/* Search Form - Mobile First */
.search-form {
    background: white;
    padding: var(--spacing-md); /* Mobile : moins de padding */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-top: -var(--spacing-md); /* Mobile : moins de margin */
    position: relative;
    z-index: 10;
}

.search-filters {
    display: grid;
    grid-template-columns: 1fr; /* Mobile : 1 colonne */
    gap: var(--spacing-sm); /* Mobile : gap réduit */
    margin-bottom: var(--spacing-sm);
}

/* Features Grid - cartes bien visibles */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-item {
    padding: 1.75rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-md);
    min-height: 150px;
    display: flex;
    align-items: stretch;
}

.feature-item:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-item:active {
    transform: translateY(0);
}

.feature-item:focus {
    outline: none;
}

.feature-item:focus-visible {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 125, 50, 0.15);
}

.feature-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    line-height: 1;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-header h3,
.feature-item__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .feature-item {
        min-height: 160px;
    }
    .feature-header h3,
    .feature-item__title {
        font-size: 1.0625rem;
    }
}

/* Modal : inscription requise pour déposer une annonce */
.register-depot-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}
.register-depot-modal[hidden] {
    display: none;
}
.register-depot-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
.register-depot-modal__box {
    position: relative;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-2xl);
    max-width: 420px;
    width: 100%;
    border: 1px solid var(--border-color);
}
.register-depot-modal__title {
    margin: 0 0 var(--spacing-md);
    font-size: 1.25rem;
    color: var(--text-dark);
}
.register-depot-modal__text {
    margin: 0 0 var(--spacing-xl);
    color: var(--text-medium);
    line-height: 1.5;
    font-size: 1rem;
}
.register-depot-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: flex-end;
}

/* Modal inscription : responsive (petits écrans) */
@media (max-width: 480px) {
    .register-depot-modal {
        padding: var(--spacing-sm);
        align-items: flex-start;
        padding-top: 2rem;
    }
    .register-depot-modal__box {
        padding: var(--spacing-lg);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    .register-depot-modal__title {
        font-size: 1.125rem;
    }
    .register-depot-modal__text {
        font-size: 0.9375rem;
        margin-bottom: var(--spacing-lg);
    }
    .register-depot-modal__actions {
        flex-direction: column;
        justify-content: stretch;
    }
    .register-depot-modal__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Feature Modal - Fenêtre à 2 battants */
.feature-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.feature-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-window {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: visible; /* Permettre aux battants de sortir */
    animation: windowOpen 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    min-height: 200px; /* Hauteur minimale pour les battants */
}

@keyframes windowOpen {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* BATANTS DE LA FENÊTRE - Positionnement de base */
.window-left-panel,
.window-right-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 10; /* Au-dessus du conteneur panels */
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    min-height: 200px; /* Hauteur minimale pour être visible */
}

/* Barre centrale sur les battants */
.window-left-panel::after,
.window-right-panel::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(45, 125, 50, 0.5);
}

/* Battant gauche */
.window-left-panel {
    left: 0;
    transform: translateX(0);
    border-radius: 12px 0 0 12px;
    min-height: 200px; /* Hauteur minimale pour être visible */
}

/* Battant droit */
.window-right-panel {
    right: 0;
    transform: translateX(0);
    border-radius: 0 12px 12px 0;
    min-height: 200px; /* Hauteur minimale pour être visible */
}

/* OUVERTURE : battants s'ouvrent vers l'extérieur */
.feature-modal.active .window-left-panel {
    transform: translateX(-150%) !important;
}

.feature-modal.active .window-right-panel {
    transform: translateX(150%) !important;
}

.modal-content {
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
    z-index: 20; /* Au-dessus des battants */
    background: white;
    border-radius: 12px; /* Coins arrondis pour le contenu */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease 0s, transform 0.3s ease 0s;
}

.feature-modal.active .modal-content {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s ease 1.2s;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-medium);
    transition: color 0.2s;
    z-index: 20;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-content h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Property Grid - Mobile First */
.property-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile : 1 colonne */
    gap: var(--spacing-md); /* Mobile : gap réduit */
    margin-top: var(--spacing-md);
}

/* Publicités natives dans le grid */
.ad-native-container {
    grid-column: 1 / -1; /* Prend toute la largeur */
    margin: 1.5rem 0;
}

/* Property Card */
.property-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.property-card > div[onclick*="window.location.href"],
.property-card > div[onclick*="window.location"] {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.property-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .property-image {
        height: 260px;
    }
}

@media (min-width: 1024px) {
    .property-image {
        height: 280px;
    }
}

.property-body {
    padding: var(--spacing-md);
}

.property-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.property-location {
    color: var(--text-medium);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.property-details {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-medium);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-section a {
    color: var(--text-light);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================
   MOBILE FIRST - STYLES PAR DÉFAUT (ci-dessus)
   ========================================== */

/* ==========================================
   TABLET & DESKTOP - Media Queries
   ========================================== */

/* Tablet (à partir de 768px) */
@media (min-width: 768px) {
    /* Typographie - Tablet */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    h6 { font-size: 1rem; }
    
    /* Container */
    .container {
        padding: 0 1.5rem;
        max-width: 720px;
    }
    
    /* Header */
    .header {
        padding: var(--spacing-md) 0;
    }
    
    .header-content {
        gap: var(--spacing-md);
    }
    
    /* Logo */
    .logo {
        font-size: 1.25rem;
        gap: 0.5rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav {
        display: flex; /* Tablet : navigation visible */
        gap: var(--spacing-md);
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Mobile Menu caché */
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-nav {
        display: none !important;
    }
    
    /* Hero - plus imposant sur tablette */
    .hero {
        padding: 4.5rem 0;
    }
    .hero__ctas {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero__cta {
        width: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
        color: white;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        color: white;
    }
    
    /* Search Form */
    .search-form {
        padding: var(--spacing-lg);
    }
    
    .search-filters {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes tablet */
        gap: var(--spacing-md);
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    /* Property Grid */
    .property-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes tablet */
        gap: var(--spacing-lg);
    }
}

/* Desktop (à partir de 1024px) */
@media (min-width: 1024px) {
    /* Typographie */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Container */
    .container {
        max-width: 1200px;
    }
    
    /* Header */
    .header {
        padding: 1rem 0;
    }
    
    /* Logo */
    .logo {
        font-size: 1.5rem;
        gap: 0.5rem;
    }
    
    .logo-icon {
        font-size: 1.8rem;
    }
    
    /* Navigation */
    .nav {
        gap: var(--spacing-lg);
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-icon {
        margin-right: 0.5rem;
    }
    
    /* User Menu */
    .user-name {
        display: block; /* Desktop : nom visible */
    }
    
    .user-menu-dropdown {
        right: 0;
        left: auto;
        min-width: 220px;
    }
    
    /* Hero - bannière marquante sur desktop */
    .hero {
        padding: 5.5rem 0;
    }
    
    .hero-title {
        font-size: 3.25rem;
        color: white;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        color: white;
    }
    
    /* Search Form */
    .search-form {
        padding: var(--spacing-xl);
        margin-top: -var(--spacing-xl);
    }
    
    .search-filters {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes desktop */
        gap: var(--spacing-xl);
    }
    
    /* Property Grid */
    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 3 colonnes + */
        gap: var(--spacing-xl);
    }
}

/* Large Desktop (à partir de 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }
    
    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* ==========================================
   STYLES POUR LA RECHERCHE AMÉLIORÉE
   ========================================== */

/* Filtres avancés - Accordéon */
details.advanced-filters {
    transition: all 0.3s ease;
}

details.advanced-filters[open] {
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
}

details.advanced-filters summary {
    user-select: none;
    transition: color 0.2s;
}

details.advanced-filters summary:hover {
    color: var(--primary-color);
}

details.advanced-filters summary::-webkit-details-marker {
    display: none;
}

/* Amélioration des cartes de propriétés */
.property-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.property-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Badge de transaction */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background-color: rgba(45, 125, 50, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Amélioration du formulaire de recherche */
.search-form {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-top: -var(--spacing-md);
    position: relative;
    z-index: 10;
}

/* Icônes dans les formulaires */
.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Message de résultats vides */
.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.no-results h3 {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Note: Les styles mobile sont dans les styles de base (Mobile First) */

/* ═══════════════════════════════════════════════════════════════════════
   HOVER UTILITY CLASSES (partagées admin + frontend)
   Miroir de admin.css — !important pour surpasser les styles inline.
   ═══════════════════════════════════════════════════════════════════════ */
.adm-h-fafafa:hover   { background: #FAFAFA !important; }
.adm-h-f8fdf8:hover   { background: #f8fdf8 !important; }
.adm-h-f0f0f0:hover   { background: #f0f0f0 !important; }
.adm-h-f9f9f9:hover   { background: #f9f9f9 !important; }
.adm-h-f9fafb:hover   { background: #f9fafb !important; }
.adm-h-e8f5e9:hover   { background: #e8f5e9 !important; }
.adm-h-e0e0e0:hover   { background: #e0e0e0 !important; }
.adm-h-d0d0d0:hover   { background: #d0d0d0 !important; }
.adm-h-ede7f6:hover   { background: #ede7f6 !important; }
.adm-h-fecaca:hover   { background: #fecaca !important; }
.adm-h-fff8f0:hover   { background: #fff8f0 !important; border-color: #FFB74D !important; }
.adm-h-fff3e0:hover   { background: #fff3e0 !important; }
.adm-h-0a4a22:hover   { background: #0a4a22 !important; }
.adm-h-117333:hover   { background: #117333 !important; color: white !important; }
.adm-h-1565c0:hover   { background: #1565C0 !important; }
.adm-h-1976d2:hover   { background: #1976D2 !important; }
.adm-h-1b5e20:hover   { background: #1B5E20 !important; }
.adm-h-1b5e20-lift:hover { background: #1B5E20 !important; transform: translateY(-2px) !important; }
.adm-h-1e5a22:hover   { background: #1e5a22 !important; }
.adm-h-1ebe5a:hover   { background: #1ebe5a !important; }
.adm-h-b71c1c:hover   { background: #B71C1C !important; }
.adm-h-e65100:hover   { background: #E65100 !important; }
.adm-h-616161:hover   { background: #616161 !important; }
.adm-h-w20:hover      { background: rgba(255,255,255,0.20) !important; }
.adm-h-w22:hover      { background: rgba(255,255,255,0.22) !important; }
.adm-h-w25:hover      { background: rgba(255,255,255,0.25) !important; }
.adm-h-w28:hover      { background: rgba(255,255,255,0.28) !important; }
.adm-h-y28:hover      { background: rgba(251,192,45,0.28) !important; }
.adm-h-y32:hover      { background: rgba(241,194,73,0.32) !important; }
.adm-h-r02:hover      { background: rgba(244,67,54,0.2) !important; }
.adm-h-r20:hover      { background: rgba(244,67,54,0.2) !important; }
.adm-h-r90-scale:hover  { background: rgba(244,67,54,0.9) !important; transform: scale(1.1) !important; }
.adm-h-r100:hover       { background: rgba(244,67,54,1) !important; transform: scale(1.1) !important; }
.adm-h-r100-scale:hover { background: rgba(244,67,54,1) !important; transform: scale(1.1) !important; }
.adm-h-op70:hover     { opacity: 0.7 !important; }
.adm-h-op80:hover     { opacity: 0.8 !important; }
.adm-h-op85:hover     { opacity: 0.85 !important; }
.adm-h-op90:hover     { opacity: 0.9 !important; }
.adm-h-text333:hover  { color: #333 !important; }
.adm-h-border-g:hover { border-color: #117333 !important; color: #117333 !important; }
.adm-h-shadow-g:hover { box-shadow: 0 4px 14px rgba(17,115,51,0.15) !important; border-color: var(--admin-primary, #117333) !important; }
.adm-h-shadow-g2:hover { box-shadow: 0 6px 20px rgba(17,115,51,0.45) !important; }
.adm-h-photo-area:hover { border-color: #2D7D32 !important; background: #F0F9F4 !important; }
.adm-h-lift:hover     { transform: translateY(-2px) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; }
.adm-h-lift2:hover    { transform: translateY(-2px) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important; }
.adm-h-lift-red:hover    { transform: translateY(-1px) !important; box-shadow: 0 4px 14px rgba(198,40,40,0.4) !important; }
.adm-h-lift-green:hover  { transform: translateY(-2px) !important; box-shadow: 0 4px 12px rgba(76,175,80,0.3) !important; }
.adm-h-lift-orange:hover { transform: translateY(-1px) !important; box-shadow: 0 4px 14px rgba(245,124,0,0.4) !important; }

