/* ============================================
   annonces.qoridor.fr — Mobile-first CSS
   Style Qoridor : noir/blanc, Poppins + Bebas Neue
   ============================================ */

@font-face {
    font-family: 'Bebas Neue';
    src: url('/assets/fonts/BebasNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Charte Qoridor */
    --color-primary: #141414;
    --color-primary-hover: #2a2a2a;
    --color-text: #1a1a1a;
    --color-text-light: #666;
    --color-text-muted: #999;
    --color-bg: #fff;
    --color-bg-alt: #F6F5F0;        /* beige chaud Qoridor */
    --color-bg-warm: #FAF9F6;       /* off-white chaud */
    --color-border: #e5e5e5;
    --color-border-light: #f0eeea;
    --color-success: #319834;
    --color-error: #e53e3e;
    --color-accent: #C9A96E;         /* doré Qoridor */
    --color-accent-hover: #B8954F;
    --color-accent-light: #fef8ef;   /* fond doré très clair */
    --color-accent-text: #92400e;    /* texte sur fond doré */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Bebas Neue', system-ui, sans-serif;
    --container-width: 1200px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-family); color: var(--color-text); background: var(--color-bg); line-height: 1.6; font-size: 15px; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

/* Container */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 16px; }

/* ============================================
   HEADER — Rectangle bords arrondis (style qoridor.fr / blog)
   ============================================ */
.qoridor-header { position: fixed; top: 0; left: 0; right: 0; height: 90px; z-index: 1000; background: transparent; padding: 15px 20px; box-sizing: border-box; }
.qoridor-navbar { background: #fff; border-radius: 15px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); border: 1px solid #E7E7E7; max-width: 1200px; margin: 0 auto; padding: 12px 25px; display: flex; align-items: center; justify-content: space-between; }
.qoridor-logo { flex-shrink: 0; }
.qoridor-logo img { max-width: 90px; max-height: 25px; height: auto; width: auto; }
.qoridor-logo a:hover { text-decoration: none; }

/* Navigation desktop */
.qoridor-nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: center; }
.qoridor-nav-links > li > a,
.qoridor-dropdown > a { color: var(--color-primary); text-decoration: none; font-family: var(--font-display); font-size: 15px; font-weight: 400; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 10px; }
.qoridor-nav-links > li > a:hover,
.qoridor-dropdown > a:hover { color: #2c2c2c; text-decoration: none; }
.qoridor-nav-links > li > a.active { color: var(--color-primary); opacity: 0.7; }

/* Dropdowns inside navbar */
.qoridor-dropdown { position: relative; }
.qoridor-dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 200px; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); border: 1px solid #E7E7E7; padding: 8px 0; z-index: 200; margin-top: 8px; }
.qoridor-dropdown:hover .qoridor-dropdown-menu { display: block; }
.qoridor-dropdown-menu a { display: block; padding: 10px 18px; font-size: 13px; font-weight: 500; color: var(--color-text); text-transform: none; letter-spacing: 0; transition: all 0.2s ease; }
.qoridor-dropdown-menu a:hover { background: var(--color-bg-alt); color: var(--color-primary); text-decoration: none; }

/* Boutons desktop (phone + CTA) */
.qoridor-nav-buttons { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qoridor-phone-btn, .qoridor-cta-btn { background: var(--color-primary); color: #F6F5F0; border: none; padding: 8px 16px; border-radius: 0; font-family: var(--font-display); font-size: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.qoridor-phone-btn:hover, .qoridor-cta-btn:hover { background: #2c2c2c; color: #F6F5F0; text-decoration: none; }
.qoridor-cta-btn::after { content: " \2192"; margin-left: 0.4em; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Burger menu */
.navbar-burger { display: none; width: 30px; height: 30px; background: transparent; border: none; cursor: pointer; padding: 0; position: relative; z-index: 1001; -webkit-tap-highlight-color: transparent; outline: none; touch-action: manipulation; }
.navbar-burger span { display: block; width: 100%; height: 3px; background: var(--color-primary); border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: absolute; left: 0; transform-origin: center; }
.navbar-burger span:nth-child(1) { top: 6px; }
.navbar-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.navbar-burger span:nth-child(3) { bottom: 6px; }
.navbar-burger.is-active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.navbar-burger.is-active span:nth-child(2) { opacity: 0; transform: translateY(-50%) scale(0); }
.navbar-burger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Menu mobile plein écran */
.navbar-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
.navbar-menu.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.navbar-menu-content { position: fixed; inset: 0; width: 100vw; height: 100vh; background: rgba(26,26,26,0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0; transform: translateX(100%); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; z-index: 1001; }
.navbar-menu.is-active .navbar-menu-content { transform: translateX(0); }
.navbar-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 40px 30px 30px; border-bottom: 1px solid rgba(246,245,240,0.2); }
.navbar-menu-title { font-size: 24px; font-weight: 600; color: #F6F5F0; text-transform: uppercase; letter-spacing: 1.5px; margin: 0; }
.navbar-menu-close { background: none; border: none; font-size: 32px; color: #F6F5F0; cursor: pointer; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background-color 0.3s ease; font-weight: 300; line-height: 1; }
.navbar-menu-close:hover { background-color: rgba(246,245,240,0.1); }
.navbar-menu-links { list-style: none; padding: 0 30px; margin: 40px 0; }
.navbar-menu-links a { color: #F6F5F0; text-decoration: none; font-family: var(--font-display); font-size: 22px; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; justify-content: space-between; padding: 25px 0; border-bottom: 1px solid rgba(246,245,240,0.15); transition: all 0.3s ease; }
.navbar-menu-links a:hover { color: #F6F5F0; text-decoration: none; background-color: rgba(246,245,240,0.05); }
.navbar-menu-buttons { display: flex; flex-direction: column; gap: 20px; margin-top: 50px; padding: 0 30px 40px; }
.navbar-menu-phone-btn, .navbar-menu-cta-btn { color: #1a1a1a; text-decoration: none; padding: 20px 25px; background: #F6F5F0; border-radius: 0; text-align: center; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; display: block; border: none; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.navbar-menu-phone-btn:hover, .navbar-menu-cta-btn:hover { background: #e5e4df; color: #1a1a1a; text-decoration: none; transform: translateY(-2px); }
.navbar-menu-cta-btn::after { content: " \2192"; margin-left: 0.5em; font-weight: 400; }
body.menu-open, html.menu-open { overflow: hidden; position: fixed; width: 100%; height: 100%; }

/* Responsive header */
@media (max-width: 768px) {
    .qoridor-nav-links { display: none !important; }
    .qoridor-nav-buttons { display: none !important; }
    .navbar-burger { display: flex !important; }
    .navbar-menu { display: block !important; }
    .qoridor-navbar { max-width: 85%; width: 85%; margin: 0 auto; border-radius: 15px; padding: 12px 20px; }
    .qoridor-header { padding: 15px 0; }
}
@media (min-width: 769px) {
    .container { padding: 0 24px; }
}
@media (max-width: 480px) {
    .qoridor-navbar { padding: 8px 15px; }
    .qoridor-logo img { max-width: 70px; max-height: 20px; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font-family: var(--font-display); font-weight: 400; font-size: 16px; border: none; transition: all var(--transition); text-decoration: none; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.5px; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary { background: var(--color-bg); color: var(--color-primary); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-bg-alt); }
.btn-outline { background: transparent; color: var(--color-primary); border: 1px solid var(--color-border); }
.btn-outline:hover { background: var(--color-bg-alt); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-hover); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ============================================
   HERO — Moteur de recherche style SeLoger + Map
   ============================================ */
.hero-search-section { padding: 32px 0 0; }
.hero-title { font-family: var(--font-display); font-size: 36px; font-weight: 400; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.hero-subtitle-text { font-size: 15px; color: var(--color-text-light); margin-bottom: 24px; }

/* Moteur de recherche */
.search-engine { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin-bottom: 16px; box-shadow: var(--shadow-lg); position: relative; z-index: 50; }
.search-row { display: flex; flex-wrap: wrap; }
.search-row-main { border-bottom: 1px solid var(--color-border-light); }
.search-field { flex: 1; min-width: 0; }
.search-field select, .search-field input[type="number"] { width: 100%; padding: 14px 16px; border: none; font-size: 14px; background: #fff; color: var(--color-text); appearance: auto; outline: none; }
.search-field-transaction { flex: 0 0 auto; width: 130px; border-right: 1px solid var(--color-border-light); }
.search-field-transaction select { font-weight: 600; }
.search-field-location { flex: 1; }

/* Autocomplete multi-tags */
.search-autocomplete { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.search-tags-wrapper { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; flex: 1; padding: 6px 8px 6px 8px; min-height: 48px; }
.search-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.search-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--color-primary); color: #fff; padding: 4px 8px 4px 10px; border-radius: 16px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.search-tag button { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 14px; cursor: pointer; padding: 0 2px; line-height: 1; }
.search-tag button:hover { color: #fff; }
.search-tags-wrapper input { flex: 1; min-width: 100px; padding: 6px 8px; border: none; font-size: 14px; background: transparent; color: var(--color-text); outline: none; }
.search-tags-wrapper input::placeholder { color: var(--color-text-muted); }
.search-suggestions { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--color-border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.15); z-index: 500; max-height: 320px; overflow-y: auto; }
.search-suggest-header { padding: 8px 16px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-muted); background: var(--color-bg-alt); }
.search-suggest-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; cursor: pointer; transition: background 0.15s ease; }
.search-suggest-item:hover { background: var(--color-bg-alt); }
.search-suggest-name { font-size: 14px; font-weight: 500; color: var(--color-text); }
.search-suggest-count { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; margin-left: 12px; }

/* Bouton rechercher */
.search-btn { flex: 0 0 auto; padding: 14px 28px; background: var(--color-primary); color: #fff; border: none; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.2s ease; white-space: nowrap; border-radius: 0 var(--radius-lg) 0 0; }
.search-btn:hover { background: var(--color-primary-hover); }

/* Ligne filtres */
.search-row-filters { background: var(--color-bg-alt); }
.search-row-filters .search-field { border-right: 1px solid var(--color-border-light); }
.search-row-filters .search-field:last-child { border-right: none; }
.search-row-filters select { padding: 12px 16px; font-size: 13px; background: transparent; }

/* Multi-dropdown (type de bien, pièces) */
.multi-dropdown { position: relative; }
.multi-dropdown-btn { width: 100%; padding: 12px 16px; font-size: 13px; background: transparent; border: none; text-align: left; cursor: pointer; color: var(--color-text); font-family: var(--font-family); display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.multi-dropdown-btn::after { content: '\25BE'; font-size: 11px; color: var(--color-text-muted); }
.multi-dropdown-btn .mdd-selected { font-weight: 600; color: var(--color-primary); }
.multi-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; min-width: 200px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 300; padding: 8px 0; max-height: 280px; overflow-y: auto; }
.multi-dropdown.open .multi-dropdown-menu { display: block; }
.multi-dropdown-menu label { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 14px; cursor: pointer; transition: background 0.15s; user-select: none; }
.multi-dropdown-menu label:hover { background: var(--color-bg-alt); }
.multi-dropdown-menu input[type="checkbox"] { accent-color: var(--color-primary); width: 16px; height: 16px; cursor: pointer; }
.mdd-count { font-size: 12px; color: var(--color-text-muted); margin-left: auto; }

@media (max-width: 768px) {
    .hero-title { font-size: 30px; }
    .search-row-main { flex-direction: column; }
    .search-field-transaction { width: 100%; border-right: none; border-bottom: 1px solid var(--color-border-light); }
    .search-btn { width: 100%; justify-content: center; }
    .search-row-filters { flex-wrap: wrap; }
    .search-row-filters .search-field { flex: 1 1 50%; min-width: 0; border-bottom: 1px solid var(--color-border-light); }
}
@media (min-width: 769px) {
    .hero-title { font-size: 42px; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 48px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.5px; }
.section-subtitle { color: var(--color-text-light); margin-bottom: 24px; }
.section-cta { text-align: center; margin-top: 32px; }

/* CTA Block — doré Qoridor */
.section-cta-block { background: linear-gradient(135deg, var(--color-primary) 0%, #2a2420 100%); color: #fff; text-align: center; padding: 48px 0; }
.section-cta-block h2 { font-family: var(--font-display); font-size: 32px; font-weight: 400; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.section-cta-block p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.section-cta-block .btn-primary { background: var(--color-accent); color: #fff; }
.section-cta-block .btn-primary:hover { background: var(--color-accent-hover); }

/* ============================================
   PROPERTY CARDS GRID
   ============================================ */
.properties-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.properties-grid-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
    .properties-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .properties-grid { grid-template-columns: repeat(3, 1fr); }
    .properties-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Property Card */
.property-card { background: var(--color-bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow var(--transition), transform var(--transition); }
.property-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.property-card-link { display: block; color: var(--color-text); text-decoration: none; }
.property-card-link:hover { text-decoration: none; }
.property-card-image { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--color-bg-alt); }
.property-card-image img { width: 100%; height: 100%; object-fit: cover; }
.property-card-dpe { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; color: #fff; }
.property-card-transaction { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; background: var(--color-primary); color: #fff; }
.property-card-body { padding: 16px; }
.property-card-price { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.price-suffix { font-size: 14px; font-weight: 400; color: var(--color-text-light); }
.property-card-title { font-size: 14px; font-weight: 500; color: var(--color-text-light); margin-bottom: 8px; line-height: 1.4; }
.property-card-specs { display: flex; gap: 16px; flex-wrap: wrap; }
.spec { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--color-text-muted); }
.spec svg { flex-shrink: 0; }

/* DPE Colors */
.dpe-a { background: #319834; }
.dpe-b { background: #33cc31; }
.dpe-c { background: #cbfc34; color: #333; }
.dpe-d { background: #fbfe06; color: #333; }
.dpe-e { background: #fbcc04; color: #333; }
.dpe-f { background: #fc9935; }
.dpe-g { background: #fc1a1d; }
.dpe-unknown { background: #ccc; color: #666; }

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.category-card { display: flex; flex-direction: column; align-items: center; padding: 20px; background: var(--color-bg); border-radius: var(--radius); border: 1px solid var(--color-border); text-align: center; transition: all var(--transition); }
.category-card:hover { text-decoration: none; border-color: var(--color-accent); box-shadow: 0 4px 16px rgba(201,169,110,0.12); }
.category-name { font-weight: 600; font-size: 15px; color: var(--color-text); }
.category-count { font-size: 13px; color: var(--color-text-muted); }

@media (min-width: 640px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================
   AGENTS
   ============================================ */
.agents-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.agent-preview-card { display: flex; flex-direction: column; align-items: center; padding: 24px 16px; background: var(--color-bg-warm); border-radius: var(--radius-lg); text-align: center; transition: all var(--transition); border: 1px solid transparent; }
.agent-preview-card:hover { text-decoration: none; background: var(--color-bg); box-shadow: 0 4px 16px rgba(201,169,110,0.12); border-color: var(--color-accent); }
.agent-preview-photo, .agent-preview-photo-placeholder { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.agent-preview-photo-placeholder { background: var(--color-border); display: flex; align-items: center; justify-content: center; }
.agent-preview-name { font-weight: 600; font-size: 15px; color: var(--color-text); }
.agent-preview-count { font-size: 13px; color: var(--color-text-muted); }

@media (min-width: 768px) { .agents-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs { margin: 16px 0; font-size: 13px; color: var(--color-text-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li::after { content: '\203A'; margin-left: 4px; }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs a:hover { color: var(--color-primary); }

/* ============================================
   LISTING PAGE
   ============================================ */
.listing-page { padding: 24px 0 48px; }
.listing-title { font-family: var(--font-display); font-size: 30px; font-weight: 400; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.listing-count { color: var(--color-text-muted); font-size: 14px; margin-bottom: 16px; }

/* Status tabs (vente / location / vendus) */
.status-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.status-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; color: var(--color-text-light); background: var(--color-bg-alt); border: 1px solid var(--color-border-light); transition: all var(--transition); text-decoration: none; }
.status-tab:hover { text-decoration: none; border-color: var(--color-primary); color: var(--color-text); }
.status-tab--active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.status-tab--active:hover { color: #fff; }
.status-tab-count { font-size: 12px; opacity: 0.7; }
.status-tab--active .status-tab-count { opacity: 0.85; }

/* Sold card overlay */
.property-card--sold .property-card-image { position: relative; }
.property-card--sold .property-card-image::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.15); }
.property-card--sold .property-card-image img { filter: grayscale(30%); }
.sold-badge { position: absolute; top: 8px; left: 8px; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; z-index: 2; }
.sold-badge--sold { background: var(--color-primary); color: #fff; }
.sold-badge--rented { background: var(--color-accent); color: #fff; }
.sold-badge--pending { background: #f59e0b; color: #fff; }

/* Sub-tabs (vendus / loués / compromis) */
.sub-tabs { display: flex; gap: 6px; margin-bottom: 32px; flex-wrap: wrap; }
.sub-tab { padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--color-text-light); background: var(--color-bg); border: 1px solid var(--color-border); cursor: pointer; transition: all var(--transition); font-family: var(--font-family); }
.sub-tab:hover { border-color: var(--color-primary); color: var(--color-text); }
.sub-tab--active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Sold sections */
.sold-section { margin-bottom: 48px; }
.sold-section-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.sold-section-badge { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-family); }

/* Filters */
.filters-form { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
.filters-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.filter-group label { display: block; font-size: 12px; font-weight: 500; color: var(--color-text-light); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group select, .filter-group input { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 14px; background: #fff; }
.filter-group select:focus, .filter-group input:focus { outline: none; border-color: var(--color-primary); }
.filters-actions { display: flex; gap: 12px; margin-top: 16px; }

@media (min-width: 640px) { .filters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .filters-grid { grid-template-columns: repeat(4, 1fr); } }

/* Empty state */
.empty-state { text-align: center; padding: 48px 0; }
.empty-state h2 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--color-text-muted); margin-bottom: 16px; }

/* SEO links */
.seo-links { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--color-border); }
.seo-links h2 { font-size: 18px; margin-bottom: 16px; }
.seo-links-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links-grid a { display: inline-block; padding: 6px 12px; background: var(--color-bg-alt); border-radius: var(--radius); font-size: 13px; color: var(--color-text-light); transition: all var(--transition); }
.seo-links-grid a:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 32px; flex-wrap: wrap; }
.pagination-link { padding: 8px 14px; border-radius: var(--radius); font-size: 14px; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-border); transition: all var(--transition); }
.pagination-link:hover { text-decoration: none; border-color: var(--color-primary); }
.pagination-link.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination-numbers { display: flex; gap: 4px; }
.pagination-dots { padding: 8px 6px; color: var(--color-text-muted); }

/* ============================================
   PROPERTY PAGE
   ============================================ */
.property-page { padding: 24px 0 48px; }
.property-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
.property-sidebar { display: none; }
.property-contact-mobile { display: block; }

@media (min-width: 1024px) {
    .property-layout { grid-template-columns: 1fr 360px; }
    .property-sidebar { display: block; }
    .property-contact-mobile { display: none; }
}

/* Sticky sidebar */
.sidebar-sticky { position: sticky; top: 88px; }

/* Property Header */
.property-header { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; padding-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.property-title { font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.3px; }
.property-location { font-size: 14px; color: var(--color-text-light); margin-top: 4px; }
.property-price-block { }
.property-price { font-size: 28px; font-weight: 700; color: var(--color-accent); }
.property-price-suffix { font-size: 16px; color: var(--color-text-light); font-weight: 400; }
.property-charges { display: block; font-size: 13px; color: var(--color-text-muted); }
.property-price-m2 { display: block; font-size: 13px; color: var(--color-text-muted); }

@media (min-width: 768px) {
    .property-header { flex-direction: row; justify-content: space-between; align-items: flex-start; }
    .property-price-block { text-align: right; flex-shrink: 0; }
}

/* Key Specs */
.property-key-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.key-spec { text-align: center; padding: 16px; background: var(--color-bg-alt); border-radius: var(--radius); }
.key-spec-value { display: block; font-size: 20px; font-weight: 700; }
.key-spec-label { display: block; font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }

@media (min-width: 640px) { .property-key-specs { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); } }

/* Description */
.property-description { margin-bottom: 32px; }
.property-description h2 { font-size: 18px; margin-bottom: 12px; }
.description-text { font-size: 14px; line-height: 1.7; color: var(--color-text-light); }
.description-text p { margin: 0 0 12px 0; }
.description-text p:last-child { margin-bottom: 0; }

/* Features — grille label/valeur style bien.php client */
.property-section { margin-bottom: 32px; }
.property-section-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.3px; }
.property-features-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.property-feature-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--color-border-light); }
.property-feature-row:last-child { border-bottom: none; }
.property-feature-label { font-size: 14px; color: var(--color-text-light); }
.property-feature-value { font-size: 14px; font-weight: 600; color: var(--color-text); }

/* Legacy features (badges) */
.property-features { margin-bottom: 32px; }
.property-features h2 { font-size: 18px; margin-bottom: 12px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.feature-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--color-bg-alt); border-radius: var(--radius); font-size: 14px; }

@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================
   GALLERY — Style Hosman (main + 2 thumbs)
   ============================================ */
.gallery-hosman { display: grid; grid-template-columns: 1fr; gap: 4px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 8px; }
.gallery-hosman-main { position: relative; aspect-ratio: 16/10; background: var(--color-bg-alt); cursor: pointer; overflow: hidden; }
.gallery-hosman-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-hosman-side { display: none; grid-template-rows: 1fr 1fr; gap: 4px; }
.gallery-hosman-thumb { border: none; padding: 0; background: var(--color-bg-alt); cursor: pointer; overflow: hidden; position: relative; }
.gallery-hosman-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-hosman-thumb--more::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.gallery-more-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: #fff; z-index: 1; }
.gallery-dpe-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff; z-index: 1; }
.gallery-photo-count { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 13px; display: flex; align-items: center; gap: 6px; z-index: 1; }

@media (min-width: 768px) {
    .gallery-hosman { grid-template-columns: 2fr 1fr; max-height: 450px; }
    .gallery-hosman-main { aspect-ratio: auto; height: 100%; max-height: 450px; }
    .gallery-hosman-side { display: grid; max-height: 450px; }
    .gallery-hosman-thumb { min-height: 0; }
}

/* Legacy gallery */
.gallery { margin-bottom: 8px; }
.gallery-main { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-alt); cursor: pointer; }
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 12px; }
.gallery-fullscreen { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,0.5); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 4px; }
.gallery-thumb { border: none; padding: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; background: var(--color-bg-alt); cursor: pointer; border: 2px solid transparent; }
.gallery-thumb.active { border-color: var(--color-primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-more-btn { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--color-text-light); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; z-index: 1001; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 14px; }

/* ============================================
   ENERGY (DPE/GES)
   ============================================ */
.energy-section { margin-bottom: 32px; }
.energy-display { display: flex; gap: 2rem; flex-wrap: wrap; }
.energy-block { flex: 1; min-width: 260px; margin-bottom: 24px; }
.energy-block h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.energy-scale { display: flex; flex-direction: column; gap: 3px; }
.energy-bar { padding: 4px 8px; border-radius: 0 4px 4px 0; font-size: 13px; color: #fff; display: flex; align-items: center; justify-content: space-between; min-height: 28px; opacity: 0.4; transition: opacity var(--transition); }
.energy-bar.active { opacity: 1; font-weight: 700; min-height: 36px; font-size: 15px; box-shadow: var(--shadow); }
.energy-letter { font-weight: 600; }
.energy-value { font-size: 11px; font-weight: 400; }
.energy-active-value { font-size: 13px; font-weight: 700; color: var(--color-text); white-space: nowrap; margin-left: 8px; }

/* ============================================
   AGENT CARD (sidebar)
   ============================================ */
.agent-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; text-align: center; margin-bottom: 16px; }
.agent-card-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); margin-bottom: 16px; font-weight: 600; }
.agent-card-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.agent-card-photo-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.agent-card-name { font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.agent-card-actions { display: flex; flex-direction: column; gap: 8px; }

/* Sidebar cards (financement, estimation) — touche dorée */
.sidebar-card { background: var(--color-accent-light); border: 1px solid rgba(201,169,110,0.2); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.sidebar-card-icon { margin-bottom: 8px; color: var(--color-accent); }
.sidebar-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.sidebar-card p { font-size: 13px; color: var(--color-text-light); margin-bottom: 12px; }

/* Sidebar CTA */
.sidebar-cta { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: 20px; text-align: center; margin-top: 16px; }
.sidebar-cta p { font-size: 14px; color: var(--color-text-light); margin-bottom: 12px; }

/* Sidebar price card */
.sidebar-price-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; text-align: center; margin-bottom: 16px; }
.sidebar-price-main { display: block; font-size: 26px; font-weight: 700; color: var(--color-accent); }
.sidebar-price-main small { font-size: 16px; font-weight: 400; color: var(--color-text-light); }
.sidebar-price-detail { display: block; font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-wrapper { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; }
.contact-form h3 { font-size: 16px; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--color-text-light); }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 14px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); }
.form-group textarea { resize: vertical; }
.contact-form-status { margin-top: 12px; padding: 10px; border-radius: var(--radius); font-size: 14px; text-align: center; }
.contact-form-status.success { background: #f0fdf4; color: var(--color-success); }
.contact-form-status.error { background: #fef2f2; color: var(--color-error); }

/* ============================================
   MODAL
   ============================================ */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-content { position: relative; background: var(--color-bg); border-radius: var(--radius-lg); padding: 32px; max-width: 520px; width: 90%; max-height: 90vh; overflow-y: auto; z-index: 1; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 18px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--color-text-muted); padding: 4px; }
.modal-close:hover { color: var(--color-text); }
.modal-success { text-align: center; padding: 24px 0; }
.modal-success svg { color: var(--color-success); margin-bottom: 12px; }
.modal-success h4 { font-size: 18px; margin-bottom: 8px; }
.modal-success p { color: var(--color-text-light); }

/* ============================================
   QMODAL — Modale agence.qoridor.fr (nouvelle charte)
   ============================================ */
.qmodal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.qmodal.active { display: flex; }
.qmodal-overlay { position: fixed; inset: 0; background: rgba(20,20,20,0.55); backdrop-filter: blur(2px); }
.qmodal-content { position: relative; background: #fff; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.18); width: 100%; max-width: 560px; padding: 28px 28px 32px; z-index: 1; }
.qmodal-content--lg { max-width: 760px; }
.qmodal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.qmodal-title { font-family: var(--font-display, 'Bebas Neue'), system-ui, sans-serif; font-size: 28px; font-weight: 400; letter-spacing: 0.5px; text-transform: uppercase; color: var(--color-primary); line-height: 1.1; }
.qmodal-close { background: none; border: none; color: var(--color-text-muted); padding: 4px; cursor: pointer; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.qmodal-close:hover { background: var(--color-bg-alt); color: var(--color-text); }
.qmodal-intro { font-size: 14px; line-height: 1.5; color: var(--color-text-light); margin-bottom: 24px; }
.qmodal-success { text-align: center; padding: 32px 12px; }
.qmodal-success svg { color: var(--color-accent); margin-bottom: 16px; }
.qmodal-success h4 { font-family: var(--font-display, 'Bebas Neue'), system-ui, sans-serif; font-size: 22px; font-weight: 400; letter-spacing: 0.3px; text-transform: uppercase; margin-bottom: 8px; }
.qmodal-success p { color: var(--color-text-light); font-size: 14px; }

/* ============================================
   QFORM — Formulaire long (multistep visuel)
   ============================================ */
.qform-section { padding-top: 18px; border-top: 1px solid var(--color-border-light); margin-top: 16px; }
.qform-section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.qform-section-title { font-family: var(--font-display, 'Bebas Neue'), system-ui, sans-serif; font-size: 18px; font-weight: 400; letter-spacing: 0.4px; text-transform: uppercase; color: var(--color-text); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.qform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qform-field { display: flex; flex-direction: column; gap: 4px; }
.qform-field--full { grid-column: 1 / -1; }
.qform-field--sm { grid-column: span 1; }
.qform-field label { font-size: 12px; font-weight: 600; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.4px; }
.qform-field input, .qform-field select, .qform-field textarea {
    padding: 11px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
.qform-field input:focus, .qform-field select:focus, .qform-field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}
.qform-field textarea { resize: vertical; min-height: 80px; }
.qform-hint { font-size: 12px; color: var(--color-text-muted); margin-bottom: 12px; line-height: 1.5; }

/* Radio buttons */
.qform-radio-group { display: flex; gap: 16px; padding: 6px 0; }
.qform-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--color-text); }
.qform-radio input { width: 16px; height: 16px; accent-color: var(--color-accent); cursor: pointer; }

/* File uploads */
.qform-files-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.qform-file { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--color-border); border-radius: 6px; background: var(--color-bg-alt); cursor: pointer; transition: all 0.15s; min-height: 48px; }
.qform-file:hover { border-color: var(--color-accent); background: rgba(201,169,110,0.05); }
.qform-file--selected { border-style: solid; border-color: var(--color-accent); background: rgba(201,169,110,0.08); }
.qform-file[data-required="1"] .qform-file-label::after { content: ' *'; color: var(--color-accent); }
.qform-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.qform-file-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--color-text-muted); flex-shrink: 0; }
.qform-file--selected .qform-file-icon { color: var(--color-accent); }
.qform-file-label { font-size: 12px; font-weight: 600; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.3px; flex-shrink: 0; }
.qform-file-name { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: auto; max-width: 160px; }
.qform-file--selected .qform-file-name { color: var(--color-text); }

/* RGPD note */
.qform-rgpd { font-size: 11px; color: var(--color-text-muted); margin: 18px 0 14px; line-height: 1.5; }
.qform-rgpd a { color: var(--color-accent); text-decoration: underline; }

/* QBTN — Bouton agence charte */
.qbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: none; border-radius: 6px; font-family: var(--font-display, 'Bebas Neue'), system-ui, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: 0.6px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.qbtn--block { width: 100%; }
.qbtn--lg { padding: 14px 28px; font-size: 17px; }
.qbtn--primary { background: var(--color-primary); color: #fff; }
.qbtn--primary:hover { background: #2a2a2a; color: #fff; transform: translateY(-1px); }
.qbtn--primary:disabled { background: #999; cursor: not-allowed; transform: none; }

/* Responsive */
@media (max-width: 640px) {
    .qmodal { padding: 0; }
    .qmodal-content { border-radius: 0; padding: 20px 16px 28px; max-width: 100%; min-height: 100vh; }
    .qmodal-title { font-size: 24px; }
    .qmodal-content--lg { max-width: 100%; }
    .qform-grid { grid-template-columns: 1fr; gap: 10px; }
    .qform-field--sm { grid-column: 1 / -1; }
    .qform-files-grid { grid-template-columns: 1fr; }
    .qform-file-name { max-width: 110px; }
}

/* ============================================
   MAP — Homepage + Property
   ============================================ */
.property-map { margin-bottom: 32px; }
.property-map h2 { font-size: 18px; margin-bottom: 12px; }
.map-container { height: 300px; border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 768px) { .map-container { height: 400px; } }

/* Homepage map */
.homepage-map { height: 400px; border-radius: var(--radius-lg); overflow: hidden; position: relative; z-index: 1; }
@media (min-width: 768px) { .homepage-map { height: 500px; } }

/* MapTiler markers */
.map-marker { cursor: pointer; transition: transform 0.2s ease; }
.map-marker:hover { transform: scale(1.1); z-index: 10 !important; }
.map-marker--active { z-index: 20 !important; }
.map-marker--active .map-marker-price { background: var(--color-primary); color: #fff; border-color: var(--color-primary); transform: scale(1.05); }
.map-marker--hover { z-index: 15 !important; }
.map-marker--hover .map-marker-price { background: var(--color-accent); color: #fff; border-color: var(--color-accent); box-shadow: 0 4px 16px rgba(201,169,110,0.4); transform: scale(1.08); }
.map-marker-price { display: inline-block; background: #F5F4EF; color: #141414; padding: 8px 14px; border-radius: 24px; font-weight: 600; font-size: 13px; white-space: nowrap; box-shadow: 0 2px 12px rgba(0,0,0,0.2); transition: all 0.2s ease; font-family: var(--font-family); border: 1px solid rgba(0,0,0,0.1); }
.map-marker:hover .map-marker-price { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }

/* MapTiler popups */
.map-popup-wrapper .maplibregl-popup-content { padding: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.map-popup-wrapper .maplibregl-popup-close-button { font-size: 20px; padding: 8px 12px; color: #fff; right: 4px; top: 4px; background: rgba(0,0,0,0.3); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.map-popup-wrapper .maplibregl-popup-close-button:hover { background: rgba(0,0,0,0.5); color: #fff; }
.map-popup-wrapper .maplibregl-popup-tip { border-top-color: #fff; }
.map-popup { width: 260px; font-family: var(--font-family); }
.map-popup-image { width: 100%; height: 140px; background-size: cover; background-position: center; background-color: var(--color-bg-alt); }
.map-popup-body { padding: 14px 16px 16px; }
.map-popup-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--color-text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-popup-city { font-size: 12px; color: var(--color-text-light); margin: 0 0 8px; }
.map-popup-price { font-size: 18px; font-weight: 700; color: var(--color-primary); margin: 0 0 12px; }
.map-popup-btn { display: block; width: 100%; padding: 10px 16px; background: var(--color-primary); color: #fff !important; text-align: center; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-decoration: none !important; transition: var(--transition); }
.map-popup-btn:hover { background: #333; color: #fff !important; }

/* MapLibre controls */
.maplibregl-ctrl-attrib { font-size: 10px; background: rgba(255,255,255,0.8) !important; }
.maplibregl-ctrl-attrib a { color: var(--color-text-light) !important; }
.maplibregl-ctrl-group { border-radius: var(--radius) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important; }
.maplibregl-ctrl-group button { width: 36px !important; height: 36px !important; }

/* ============================================
   RELATED
   ============================================ */
.related-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--color-border); }
.related-section h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.3px; }

/* ============================================
   AGENT PAGE
   ============================================ */
.agent-page { padding: 24px 0 48px; }
.agent-profile-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; margin-bottom: 40px; }
.agent-profile-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.agent-profile-photo-placeholder { width: 120px; height: 120px; border-radius: 50%; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; }
.agent-profile-info h1 { font-family: var(--font-display); font-size: 32px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; }
.agent-profile-title { color: var(--color-text-light); margin-bottom: 8px; }
.agent-profile-location { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--color-text-light); margin-bottom: 16px; }
.agent-profile-location svg { flex-shrink: 0; color: var(--color-primary); }
.agent-profile-contact { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.agent-properties h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.3px; }

/* Bio agent */
.agent-bio { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 40px; border-left: 4px solid var(--color-accent); }
.agent-bio-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--color-text); }
.agent-bio-content p { font-size: 15px; line-height: 1.7; color: var(--color-text-light); margin: 0 0 12px; }
.agent-bio-content p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
    .agent-profile-header { flex-direction: row; text-align: left; }
    .agent-profile-contact { justify-content: flex-start; }
}

/* Agents List */
.agents-list-page { padding: 24px 0 48px; }
.agents-list-page h1 { font-family: var(--font-display); font-size: 32px; font-weight: 400; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.agents-list-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.agent-list-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: all var(--transition); }
.agent-list-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.agent-list-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.agent-list-photo-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.agent-list-info h2 { font-size: 18px; color: var(--color-text); }
.agent-list-title { font-size: 13px; color: var(--color-text-muted); }
.agent-list-location { font-size: 13px; color: var(--color-text-light); display: flex; align-items: center; gap: 4px; }
.agent-list-location svg { flex-shrink: 0; color: var(--color-primary); }
.agent-list-count { font-size: 13px; color: var(--color-text-light); }
.agent-list-phone { font-size: 14px; color: var(--color-primary); font-weight: 500; }

/* Barre de recherche agents */
.agents-search-bar { display: flex; align-items: center; gap: 10px; max-width: 500px; margin: 0 auto 32px; padding: 12px 18px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); transition: border-color 0.2s; }
.agents-search-bar:focus-within { border-color: var(--color-primary); }
.agents-search-bar svg { flex-shrink: 0; color: var(--color-text-muted); }
.agents-search-bar input { flex: 1; border: none; outline: none; font-size: 15px; background: transparent; font-family: var(--font-family); color: var(--color-text); }
.agents-search-bar input::placeholder { color: var(--color-text-muted); }

@media (min-width: 640px) { .agents-list-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page { padding: 80px 0; text-align: center; }
.error-content h1 { font-size: 32px; margin-bottom: 12px; }
.error-content p { color: var(--color-text-light); margin-bottom: 24px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.error-search { max-width: 500px; margin: 0 auto; }
.error-search h2 { font-size: 18px; margin-bottom: 12px; }

/* ============================================
   TRUSTPILOT
   ============================================ */
.trustpilot-banner { padding: 20px 0; background: var(--color-bg-alt); border-top: 1px solid var(--color-border-light); border-bottom: 1px solid var(--color-border-light); }
.trustpilot-inline { margin-top: 16px; padding: 14px 16px; background: var(--color-bg-alt); border-radius: var(--radius); border: 1px solid var(--color-border-light); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.8); padding: 48px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h3 { font-family: var(--font-display); color: #fff; font-size: 18px; font-weight: 400; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer ul { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color var(--transition); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-contact { font-size: 14px; margin-top: 12px; }
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }

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

/* ============================================
   SPLIT LAYOUT — Homepage cards + map (style Hosman)
   ============================================ */
.split-section { border-top: 1px solid var(--color-border); }
.split-layout { display: flex; flex-direction: column; }
.split-cards { flex: 1; overflow-y: auto; }
.split-cards-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--color-border-light); background: var(--color-bg-warm); position: sticky; top: 0; z-index: 5; }
.split-cards-count { font-size: 14px; font-weight: 600; color: var(--color-text); }
.split-cards-tabs { display: flex; align-items: center; gap: 4px; }
.split-tab { font-size: 13px; padding: 4px 10px; border-radius: 14px; color: var(--color-text-light); text-decoration: none; transition: all var(--transition); white-space: nowrap; }
.split-tab:hover { text-decoration: none; color: var(--color-text); background: var(--color-bg-alt); }
.split-tab--active { font-weight: 600; color: #fff; background: var(--color-primary); }
.split-tab small { font-size: 11px; opacity: 0.7; }
.split-cards-sort { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-light); }
.split-cards-sort select { border: none; font-size: 13px; font-weight: 600; color: var(--color-text); background: transparent; cursor: pointer; padding: 4px 0; }
.split-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px; }
.split-map { display: none; }
.split-map-inner { width: 100%; height: 100%; }

@media (min-width: 1024px) {
    .split-layout { flex-direction: row; height: calc(100vh - 90px); }
    .split-cards { width: 55%; overflow-y: auto; }
    .split-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .split-map { display: block; width: 45%; position: sticky; top: 90px; height: calc(100vh - 90px); }
}
@media (min-width: 1400px) {
    .split-cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
    .split-cards-grid { grid-template-columns: 1fr; }
}

/* Hosman-style property card */
.hcard { background: var(--color-bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border-light); transition: box-shadow var(--transition), transform var(--transition); }
.hcard:hover { box-shadow: 0 8px 24px rgba(201,169,110,0.15); transform: translateY(-2px); border-color: var(--color-accent); }
.hcard-link { display: block; color: var(--color-text); text-decoration: none !important; }
.hcard-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-alt); }
.hcard-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.hcard:hover .hcard-image img { transform: scale(1.03); }

/* DPE badge */
.hcard-dpe { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; z-index: 2; }

/* Photo count */
.hcard-photo-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.55); color: #fff; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 500; z-index: 2; }
.hcard-photo-count::before { content: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E"); margin-right: 4px; vertical-align: middle; }

/* Agent avatar overlay — bottom-left */
.hcard-agent { position: absolute; bottom: 10px; left: 10px; z-index: 2; }
.hcard-agent img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

/* City badge — bottom-right */
.hcard-city-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(201,169,110,0.9); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; z-index: 2; backdrop-filter: blur(4px); letter-spacing: 0.3px; }

/* Card body */
.hcard-body { padding: 14px 16px 16px; }
.hcard-address { font-size: 14px; font-weight: 600; color: var(--color-text); margin-bottom: 4px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard-specs { display: flex; gap: 6px; font-size: 13px; color: var(--color-text-light); margin-bottom: 10px; }
.hcard-specs span { display: inline-flex; align-items: center; }
.hcard-specs span::after { content: '\00b7'; margin-left: 6px; color: var(--color-border); }
.hcard-specs span:last-child::after { display: none; }
.hcard-pricing { display: flex; align-items: baseline; gap: 8px; }
.hcard-price { font-size: 18px; font-weight: 700; color: var(--color-accent); }
.hcard-price small { font-size: 13px; font-weight: 400; color: var(--color-text-light); }
.hcard-pricem2 { font-size: 13px; color: var(--color-text-muted); }

/* ============================================
   PROPERTY SOLD BANNER (bien vendu/loué affiché sur la page bien)
   ============================================ */
.property-sold-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 15px; line-height: 1.4; }
.property-sold-banner strong { font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-display); font-size: 17px; }
.property-sold-banner a { color: inherit; text-decoration: underline; font-weight: 600; }
.property-sold-banner svg { flex-shrink: 0; }
.sold-banner--sold { background: var(--color-primary); color: #fff; }
.sold-banner--rented { background: var(--color-accent); color: #fff; }
.sold-banner--pending { background: #f59e0b; color: #fff; }

/* ============================================
   STATIC PAGES (mentions légales, confidentialité)
   ============================================ */
.static-page { padding: 24px 0 64px; }
.static-content { max-width: 760px; margin: 24px 0; font-size: 15px; line-height: 1.7; color: var(--color-text-light); }
.static-content h2 { font-family: var(--font-display); font-size: 22px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.3px; color: var(--color-text); margin: 32px 0 12px; }
.static-content p { margin-bottom: 14px; }
.static-content a { color: var(--color-accent); text-decoration: underline; }
.static-content a:hover { color: var(--color-accent-hover); }
.static-content strong { color: var(--color-text); }

/* ============================================
   STICKY ESTIMATION BUTTON
   ============================================ */
.sticky-estimation-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--color-accent);
    color: #fff !important;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(201,169,110,0.4), 0 2px 6px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    animation: sticky-pulse 2.5s ease-in-out infinite;
}
.sticky-estimation-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(201,169,110,0.55), 0 3px 8px rgba(0,0,0,0.15);
    animation: none;
}
.sticky-estimation-btn svg { flex-shrink: 0; }

@keyframes sticky-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(201,169,110,0.4), 0 2px 6px rgba(0,0,0,0.12); }
    50% { box-shadow: 0 6px 22px rgba(201,169,110,0.7), 0 2px 6px rgba(0,0,0,0.12); }
}

/* Mobile : icone seule (le label disparaît) */
@media (max-width: 640px) {
    .sticky-estimation-btn { bottom: 16px; right: 16px; padding: 14px; border-radius: 50%; gap: 0; }
    .sticky-estimation-btn-label { display: none; }
}

/* ============================================
   MOBILE FIXES — iPhone SE (375px) et autres petits écrans
   Surcharges spécifiques pour assurer un rendu impeccable sur mobile.
   Ces règles viennent après tout le CSS pour avoir la priorité.
   ============================================ */
@media (max-width: 768px) {
    /* Container avec padding réduit */
    .container { padding: 0 14px; }

    /* Header : navbar full width avec radius léger */
    .qoridor-navbar { max-width: calc(100% - 24px); width: auto; margin: 0 12px; padding: 10px 16px; }
    .qoridor-header { padding: 12px 0; }
    main { padding-top: 80px !important; }

    /* Hero / Search engine */
    .hero-search-section { padding: 16px 0 0; }
    .hero-title { font-size: 26px; line-height: 1.15; }
    .hero-subtitle-text { font-size: 13px; margin-bottom: 16px; }
    .search-engine { border-radius: 10px; }
    .search-field-transaction select,
    .search-field input,
    .search-field select { font-size: 13px; padding: 12px 14px; }
    .search-row-filters .search-field { flex: 1 1 100%; }

    /* Sections */
    .section { padding: 32px 0; }
    .section-title { font-size: 22px; margin-bottom: 16px; }

    /* Split layout : map cachée en mobile */
    .split-cards-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 14px;
    }
    .split-cards-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    .split-tab { font-size: 12px; padding: 4px 8px; }
    .split-cards-grid { grid-template-columns: 1fr; padding: 14px; gap: 14px; }

    /* Property page */
    .property-page { padding: 16px 0 32px; }
    .property-title { font-size: 22px; line-height: 1.2; }
    .property-location { font-size: 13px; }
    .property-price { font-size: 24px; }
    .property-price-suffix { font-size: 14px; }
    .property-header { gap: 8px; margin: 16px 0; padding-bottom: 16px; }
    .property-section-title { font-size: 18px; }
    .property-features-grid { gap: 8px 12px; }
    .property-feature-label { font-size: 13px; }
    .property-feature-value { font-size: 13px; }

    /* Galerie Hosman → image principale full-width sur mobile, thumbs sous */
    .gallery-hosman {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 4px;
    }
    .gallery-hosman-main { aspect-ratio: 4/3; }
    .gallery-hosman-side {
        grid-template-rows: 1fr;
        grid-template-columns: 1fr 1fr;
        height: auto;
    }
    .gallery-hosman-thumb { aspect-ratio: 4/3; }
    .gallery-photo-count { bottom: 8px; right: 8px; padding: 4px 8px; font-size: 11px; }
    .gallery-dpe-badge { top: 8px; left: 8px; padding: 3px 8px; font-size: 11px; }

    /* Property breadcrumb : taille réduite */
    .breadcrumbs { font-size: 12px; }
    .breadcrumbs ol { gap: 4px; }

    /* Key specs : pleine largeur en grille 3 colonnes */
    .property-key-specs { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
    .key-spec { padding: 10px 6px; }
    .key-spec-value { font-size: 16px; }
    .key-spec-label { font-size: 10px; }

    /* Description, sold banner, energy block */
    .description-text { font-size: 14px; }
    .property-sold-banner { padding: 12px 14px; font-size: 13px; gap: 10px; }
    .property-sold-banner strong { font-size: 14px; }
    .energy-block h4 { font-size: 13px; }
    .energy-active-value { font-size: 12px; }

    /* Property sidebar (contact mobile) */
    .property-contact-mobile { margin-top: 16px; padding: 16px; background: var(--color-bg-alt); border-radius: var(--radius-lg); }

    /* Agent profile (page conseiller) */
    .agent-profile-header { gap: 12px; margin-bottom: 24px; }
    .agent-profile-photo,
    .agent-profile-photo-placeholder { width: 90px; height: 90px; }
    .agent-profile-info h1 { font-size: 26px; }
    .agent-profile-title { font-size: 13px; }
    .agent-profile-location { font-size: 13px; }
    .agent-profile-contact { gap: 8px; flex-direction: column; width: 100%; }
    .agent-profile-contact .btn { width: 100%; }
    .agent-bio { padding: 18px 16px; }
    .agent-bio-title { font-size: 18px; }
    .agent-bio-content p { font-size: 14px; line-height: 1.6; }

    /* Agents list (page conseillers) */
    .agents-list-page h1 { font-size: 26px; }
    .agents-search-bar { padding: 10px 14px; margin-bottom: 16px; }
    .agents-search-bar input { font-size: 14px; }
    .agent-list-card { padding: 14px; gap: 12px; }
    .agent-list-photo, .agent-list-photo-placeholder { width: 56px; height: 56px; }
    .agent-list-info h2 { font-size: 15px; }
    .agent-list-title { font-size: 12px; }
    .agent-list-location { font-size: 12px; }
    .agent-list-count { font-size: 12px; }
    .agent-list-phone { font-size: 13px; }

    /* Listing page (résultats de recherche) */
    .listing-page { padding: 16px 0 32px; }
    .listing-title { font-size: 24px; }
    .listing-count { font-size: 13px; }
    .filters-form { padding: 14px; }

    /* Sold page (vendus / loués) */
    .sub-tabs { gap: 6px; margin-bottom: 20px; }
    .sub-tab { font-size: 12px; padding: 5px 12px; }
    .sold-section-title { font-size: 18px; gap: 8px; }
    .sold-section-badge { font-size: 11px; padding: 3px 8px; }

    /* Sticky estimation bouton positionné en bas, ne pas trop déborder */
    .sticky-estimation-btn { bottom: 14px; right: 14px; }

    /* CTA block */
    .section-cta-block { padding: 32px 0; }
    .section-cta-block h2 { font-size: 22px; }

    /* Trustpilot bandeau */
    .trustpilot-banner { padding: 14px 0; }

    /* Footer */
    .site-footer { padding: 32px 0 16px; margin-top: 32px; }
    .footer-grid { gap: 24px; margin-bottom: 24px; }
    .site-footer h3 { font-size: 16px; }

    /* Categories grid (rechercher par ville) */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .category-card { padding: 14px 10px; }
    .category-name { font-size: 13px; }
    .category-count { font-size: 11px; }

    /* Agents preview grid (homepage) */
    .agents-grid { gap: 12px; }
    .agent-preview-card { padding: 16px 10px; }
    .agent-preview-photo, .agent-preview-photo-placeholder { width: 56px; height: 56px; }
    .agent-preview-name { font-size: 13px; }
    .agent-preview-count { font-size: 11px; }
}

@media (max-width: 380px) {
    /* iPhone SE et plus petits */
    .hero-title { font-size: 22px; }
    .property-title { font-size: 19px; }
    .property-price { font-size: 21px; }
    .agent-profile-info h1 { font-size: 22px; }
    .qoridor-navbar { padding: 8px 12px; margin: 0 8px; max-width: calc(100% - 16px); }
    .qoridor-logo img { max-width: 80px; }
    .split-tab { font-size: 11px; padding: 3px 7px; }

    /* Categories : passer à 1 colonne */
    .categories-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header, .site-footer, .agent-card-actions, .contact-form-wrapper, .sidebar-cta, .related-section, .filters-form, .pagination, .modal, .sticky-estimation-btn { display: none !important; }
    .property-layout { grid-template-columns: 1fr !important; }
    .property-sidebar { display: none !important; }
    body { font-size: 12px; }
}
