/*
Theme Name: Vivvo Ichou
Theme URI: https://royaumeichou.com
Author: Vivvo
Author URI: https://royaumeichou.com
Description: Thème immobilier professionnel Vivvo Ichou — moteur de recherche avancé, fiches biens, gestion agences, panel admin complet.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vivvo_ichou
Tags: real-estate, immobilier, property, agence, responsive, custom-menu, custom-logo, featured-images, theme-options
*/
/* =====================================================
   RESET & BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --teal:       #2bb5a0;
    --teal2:      #229e8c;
    --teal3:      #1a8070;
    --teal-light: #e8f8f6;
    --teal-mid:   #c2ede8;
    --dark:       #1c2b3a;
    --dark2:      #2d3e50;
    --text:       #3a4a5a;
    --mid:        #6b7c8d;
    --muted:      #9aacba;
    --border:     #e2eaef;
    --border2:    #cdd8e0;
    --bg:         #f4f7f9;
    --bg2:        #eef2f5;
    --white:      #ffffff;
    --gold:       #e8a020;
    --green:      #27ae60;
    --red:        #e74c3c;
    --radius:     12px;
    --shadow:     0 4px 24px rgba(43,181,160,0.10);
    --shadow-lg:  0 12px 48px rgba(43,181,160,0.15);
    --W:          1300px;
    --font:       'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); font-size: 15px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* =====================================================
   LAYOUT
===================================================== */
.container { max-width: var(--W); margin: 0 auto; padding: 0 2rem; }
.section { padding: 4.5rem 0; }
.section-bg { background: var(--bg); }

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--dark); font-weight: 900; line-height: 1.15; letter-spacing: -0.5px; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
.accent { color: var(--teal); }

/* =====================================================
   BUTTONS
===================================================== */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: 8px; font-weight: 800; font-size: .9375rem; border: none; cursor: pointer; transition: all .2s; white-space: nowrap; }
.btn-teal  { background: var(--teal); color: var(--white); }
.btn-teal:hover  { background: var(--teal2); transform: translateY(-1px); }
.btn-dark  { background: var(--dark); color: var(--white); }
.btn-dark:hover  { background: var(--dark2); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-outline-teal { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: var(--white); }
.btn-white { background: var(--white); color: var(--teal); }
.btn-white:hover { background: var(--dark); color: var(--white); }
.btn-sm { padding: .5rem 1.125rem; font-size: .875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.0625rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-rounded { border-radius: 50px; }

/* =====================================================
   FORMS
===================================================== */
.form-group { margin-bottom: 1.125rem; }
.form-label { display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: var(--mid); margin-bottom: .4375rem; }
.form-label .req { color: var(--red); }
.form-control { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-family: var(--font); font-size: .9375rem; color: var(--dark); background: var(--white); outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,181,160,.12); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aacba' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-full { grid-column: 1 / -1; }
.form-check { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; cursor: pointer; }
.form-check input { accent-color: var(--teal); width: 15px; height: 15px; }
.form-error { font-size: .8125rem; color: var(--red); margin-top: .25rem; }
.form-hint  { font-size: .8125rem; color: var(--muted); margin-top: .25rem; }

/* =====================================================
   SECTION HEADERS
===================================================== */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.sec-title { font-size: 1.75rem; font-weight: 900; color: var(--dark); }
.sec-title .accent { color: var(--teal); }
.sec-sub { font-size: .9375rem; color: var(--mid); margin-top: .25rem; font-weight: 400; }
.sec-link { font-size: .875rem; font-weight: 800; color: var(--teal); display: flex; align-items: center; gap: .25rem; white-space: nowrap; }
.sec-link::after { content: '→'; transition: margin .2s; }
.sec-link:hover::after { margin-left: .375rem; }
.sec-center { text-align: center; }
.sec-center .sec-title { justify-content: center; }
.sec-kicker { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--teal); margin-bottom: .5rem; }

/* =====================================================
   PROPERTY CARDS
===================================================== */
.props-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.props-grid-3 { grid-template-columns: repeat(3, 1fr); }

.prop-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all .25s; }
.prop-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.prop-card__img { position: relative; height: 200px; overflow: hidden; background: var(--bg2); }
.prop-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prop-card:hover .prop-card__img img { transform: scale(1.06); }
.prop-card__badges { position: absolute; top: .75rem; left: .75rem; display: flex; flex-direction: column; gap: .3rem; }
.badge { padding: .25rem .625rem; border-radius: 6px; font-size: .6875rem; font-weight: 800; letter-spacing: .3px; }
.badge-vente   { background: var(--teal); color: var(--white); }
.badge-location { background: #2980b9; color: var(--white); }
.badge-exclusif { background: var(--gold); color: var(--white); }
.badge-neuf    { background: var(--dark); color: var(--white); }
.badge-promo   { background: var(--red); color: var(--white); }
.prop-card__fav { position: absolute; top: .75rem; right: .75rem; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--mid); transition: all .2s; }
.prop-card__fav:hover, .prop-card__fav.active { background: var(--white); color: var(--red); transform: scale(1.1); }
.prop-card__body { padding: 1rem 1.125rem; }
.prop-card__loc { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: .3rem; display: flex; align-items: center; gap: .25rem; }
.prop-card__price { font-size: 1.25rem; font-weight: 900; color: var(--dark); letter-spacing: -.5px; }
.prop-card__type { font-size: .875rem; color: var(--mid); font-weight: 600; margin: .3rem 0; }
.prop-card__infos { font-size: .8125rem; color: var(--text); line-height: 1.8; }
.prop-card__infos strong { font-weight: 800; color: var(--dark); }
.prop-card__equip { font-size: .75rem; color: var(--teal); font-weight: 700; margin-top: .25rem; }
.prop-card__foot { padding: .75rem 1.125rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.prop-card__agency { font-size: .75rem; color: var(--muted); }
.prop-card__cta { font-size: .8rem; font-weight: 800; color: var(--teal); background: none; border: 1.5px solid var(--teal); padding: .3rem .875rem; border-radius: 6px; transition: all .2s; }
.prop-card__cta:hover { background: var(--teal); color: var(--white); }

/* =====================================================
   HERO
===================================================== */
.hero { background: var(--white); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; align-items: center; }
.hero__left { padding: 3.5rem 3rem 3.5rem 0; }
.hero__h1 { font-size: clamp(2.25rem, 3.5vw, 3.5rem); font-weight: 900; color: var(--dark); line-height: 1.1; margin-bottom: 1.125rem; letter-spacing: -1.5px; }
.hero__p { font-size: 1rem; color: var(--mid); max-width: 440px; margin-bottom: 2.25rem; }
.hero__right { position: relative; height: 580px; }
.hero__right-wrap { position: absolute; top: 20px; left: -20px; bottom: 20px; right: 0; border-radius: 24px 0 0 24px; overflow: hidden; }
.hero__right-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* SEARCH WIDGET */
.search-widget { margin-top: 0; }
.search-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.75rem; }
.search-tab { padding: .625rem 1.375rem .75rem; border: none; background: none; font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--mid); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s; }
.search-tab.active, .search-tab:hover { color: var(--teal); }
.search-tab.active { border-bottom-color: var(--teal); }
.search-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0; border: 1.5px solid var(--border2); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.search-field { position: relative; border-right: 1.5px solid var(--border2); }
.search-field:last-child { border-right: none; }
.search-field input, .search-field select { width: 100%; padding: 1rem 1.125rem; border: none; font-family: var(--font); font-size: .9375rem; color: var(--dark); background: transparent; outline: none; -webkit-appearance: none; }
.search-field input::placeholder { color: var(--muted); font-weight: 500; }
.search-field select { color: var(--mid); font-weight: 500; cursor: pointer; padding-right: 2rem; }
.search-field__arrow { position: absolute; right: .875rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-size: .75rem; }
.search-btn { background: var(--teal); color: var(--white); border: none; padding: 0 2rem; font-family: var(--font); font-size: 1rem; font-weight: 800; transition: background .2s; }
.search-btn:hover { background: var(--teal2); }
.search-more { display: inline-flex; align-items: center; gap: .375rem; margin-top: 1rem; font-size: .9375rem; font-weight: 700; color: var(--dark); cursor: pointer; background: none; border: none; transition: color .2s; }
.search-more:hover { color: var(--teal); }
.search-more svg { transition: transform .25s; }
.search-more.open svg { transform: rotate(180deg); }
.search-advanced { display: none; margin-top: 1.25rem; padding: 1.5rem; background: var(--bg); border-radius: var(--radius); flex-wrap: wrap; gap: 1.25rem; }
.search-advanced.open { display: flex; }
.adv-group { min-width: 150px; flex: 1; }
.adv-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--mid); margin-bottom: .625rem; }
.rooms-row { display: flex; gap: .375rem; flex-wrap: wrap; }
.room-btn { width: 36px; height: 36px; border: 1.5px solid var(--border2); background: var(--white); border-radius: 8px; font-size: .875rem; font-weight: 700; color: var(--dark); transition: all .2s; }
.room-btn:hover, .room-btn.active { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* =====================================================
   NAVBAR
===================================================== */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 999; }
.site-header__inner { height: 68px; display: flex; align-items: center; gap: 2rem; }
.site-logo { display: flex; flex-direction: column; line-height: 1; cursor: pointer; flex-shrink: 0; }
.site-logo__name { font-size: 1.75rem; font-weight: 900; color: var(--teal); letter-spacing: -1px; font-style: italic; }
.site-logo__name span { color: var(--dark); font-style: normal; }
.site-logo__tag { font-size: .6875rem; font-weight: 700; color: var(--teal); letter-spacing: .5px; }
.nav-home-icon { width: 36px; height: 36px; border: 1.5px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--mid); transition: all .2s; flex-shrink: 0; }
.nav-home-icon:hover { border-color: var(--teal); color: var(--teal); }
.nav-estimer-btn { padding: .5rem 1.375rem; border: 2px solid var(--dark); border-radius: 50px; font-size: .9rem; font-weight: 800; color: var(--dark); background: transparent; transition: all .2s; flex-shrink: 0; white-space: nowrap; }
.nav-estimer-btn:hover { background: var(--dark); color: var(--white); }
.main-nav { display: flex; gap: 0; flex: 1; }
.main-nav a { padding: 0 1rem; height: 68px; display: flex; align-items: center; font-size: .9375rem; font-weight: 600; color: var(--dark2); transition: color .2s; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.main-nav a:hover, .main-nav a.current { color: var(--teal); border-bottom-color: var(--teal); }
.main-nav a.special { color: var(--teal); font-weight: 700; }
.nav-login { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 700; color: var(--dark2); margin-left: auto; flex-shrink: 0; cursor: pointer; transition: color .2s; }
.nav-login:hover { color: var(--teal); }
.nav-login__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: .875rem; }
.nav-publish { flex-shrink: 0; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--dark); }

/* =====================================================
   FOOTER
===================================================== */
.site-footer { background: var(--dark); color: rgba(255,255,255,.55); padding: 3.5rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand-name { font-size: 1.5rem; font-weight: 900; color: var(--white); font-style: italic; }
.footer__brand-name span { font-style: normal; }
.footer__tagline { font-size: .75rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1rem; }
.footer__desc { font-size: .875rem; line-height: 1.75; margin-bottom: 1.25rem; }
.footer__social { display: flex; gap: .5rem; }
.social-btn { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; cursor: pointer; transition: all .2s; color: rgba(255,255,255,.6); }
.social-btn:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.footer__col-title { font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: 1.125rem; }
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a { font-size: .875rem; transition: color .2s; }
.footer__links a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: .8125rem; flex-wrap: wrap; gap: .5rem; }
.footer__bottom a { transition: color .2s; }
.footer__bottom a:hover { color: var(--white); }

/* =====================================================
   LISTING PAGE
===================================================== */
.listing-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: .875rem 0; }
.listing-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.listing-count { font-size: .9375rem; font-weight: 800; color: var(--dark); }
.listing-controls { display: flex; align-items: center; gap: 1rem; }
.sort-select { border: 1.5px solid var(--border2); padding: .4375rem .875rem; font-family: var(--font); font-size: .875rem; color: var(--dark); background: var(--white); border-radius: 8px; outline: none; font-weight: 600; -webkit-appearance: none; }
.view-toggle { display: flex; border: 1.5px solid var(--border2); border-radius: 8px; overflow: hidden; }
.view-btn { width: 34px; height: 34px; border: none; background: var(--white); color: var(--muted); font-size: .9375rem; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.view-btn.active, .view-btn:hover { background: var(--teal); color: var(--white); }
.listing-layout { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; padding: 2rem 0; }
.listing-filters { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem; height: fit-content; position: sticky; top: 86px; }
.filter-title { font-size: 1.0625rem; font-weight: 900; color: var(--dark); padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 1.375rem; }
.filter-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: .625rem; }
.filter-checks { display: flex; flex-direction: column; gap: .4375rem; }
.filter-check { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; cursor: pointer; color: var(--dark2); }
.filter-check input { accent-color: var(--teal); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }
.result-list .prop-card { display: grid; grid-template-columns: 260px 1fr auto; }
.result-list .prop-card__img { height: auto; min-height: 180px; }
.result-list .prop-card__body { display: flex; flex-direction: column; justify-content: space-between; }
.result-list .prop-card__foot { border-top: none; border-left: 1px solid var(--border); padding: 1rem 1.125rem; flex-direction: column; justify-content: center; min-width: 160px; }

/* =====================================================
   DETAIL PAGE
===================================================== */
.breadcrumb { background: var(--bg); padding: .875rem 0; font-size: .8125rem; color: var(--muted); }
.breadcrumb__inner { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--teal); font-weight: 600; }
.breadcrumb__sep { color: var(--border2); }
.breadcrumb__actions { margin-left: auto; display: flex; gap: 1rem; }
.breadcrumb__actions button { background: none; border: none; font-family: var(--font); font-size: .8125rem; color: var(--mid); cursor: pointer; display: flex; align-items: center; gap: .25rem; font-weight: 600; transition: color .2s; }
.breadcrumb__actions button:hover { color: var(--teal); }
.detail-gallery { display: grid; grid-template-columns: 3fr 2fr; height: 460px; gap: 3px; overflow: hidden; }
.gallery-main { position: relative; overflow: hidden; cursor: pointer; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; }
.gallery-thumb { position: relative; overflow: hidden; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-thumb:hover img { transform: scale(1.04); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.42); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: .9375rem; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; padding: 2rem 0; }
.detail-ref { font-size: .8125rem; color: var(--muted); margin-bottom: .5rem; }
.detail-title { font-size: 1.875rem; font-weight: 900; color: var(--dark); letter-spacing: -.5px; line-height: 1.2; margin-bottom: .75rem; }
.detail-loc { font-size: .9375rem; color: var(--mid); display: flex; align-items: center; gap: .375rem; margin-bottom: 1.5rem; font-weight: 600; }
.detail-price { font-size: 2.25rem; font-weight: 900; color: var(--teal); letter-spacing: -1px; margin-bottom: 1.75rem; }
.detail-specs { display: flex; gap: 1.25rem; flex-wrap: wrap; background: var(--teal-light); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.spec-item { text-align: center; min-width: 70px; }
.spec-item__val { font-size: 1.1875rem; font-weight: 900; color: var(--dark); }
.spec-item__lbl { font-size: .75rem; color: var(--mid); font-weight: 600; margin-top: .2rem; }
.detail-section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.detail-section:last-child { border-bottom: none; }
.detail-section-title { font-size: 1.125rem; font-weight: 900; color: var(--dark); margin-bottom: 1rem; }
.detail-desc { font-size: .9375rem; line-height: 1.8; color: var(--text); }
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.equip-item { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--dark2); font-weight: 600; }
.equip-item::before { content: '✓'; color: var(--teal); font-weight: 900; }
.dpe-bar { display: flex; gap: 1.5rem; }
.dpe-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: .375rem; }
.dpe-badge { padding: .625rem 1.25rem; border-radius: 6px; font-weight: 900; font-size: 1.125rem; color: var(--white); }
/* Contact card */
.contact-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; position: sticky; top: 86px; }
.contact-card__head { background: var(--teal); padding: 1.25rem 1.5rem; color: var(--white); }
.contact-card__head h3 { font-size: 1.0625rem; font-weight: 900; }
.contact-card__head p { font-size: .875rem; opacity: .8; margin-top: .2rem; margin-bottom: 0; }
.contact-card__body { padding: 1.375rem; }
.contact-agency { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.agency-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 1.375rem; flex-shrink: 0; }
.agency-name { font-weight: 800; font-size: .9375rem; color: var(--dark); }
.agency-city { font-size: .8125rem; color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: .75rem; }
.contact-form input, .contact-form textarea { padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: 10px; font-family: var(--font); font-size: .9rem; color: var(--dark); outline: none; width: 100%; transition: border-color .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); }
.contact-form textarea { min-height: 80px; resize: vertical; }
.contact-actions { display: flex; gap: .625rem; margin-top: .875rem; }
.action-btn { flex: 1; background: var(--bg); border: none; padding: .625rem; border-radius: 8px; font-size: .8rem; font-weight: 800; color: var(--mid); transition: all .2s; display: flex; align-items: center; justify-content: center; gap: .25rem; font-family: var(--font); cursor: pointer; }
.action-btn:hover { background: var(--teal-light); color: var(--teal); }

/* =====================================================
   MODALS
===================================================== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(28,43,58,.6); z-index: 9999; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 20px; max-width: 580px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal--sm { max-width: 440px; }
.modal--lg { max-width: 700px; }
.modal__head { padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--white); z-index: 1; }
.modal__head h2 { font-size: 1.25rem; font-weight: 900; color: var(--dark); margin: 0; }
.modal__close { background: var(--bg); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; color: var(--mid); }
.modal__body { padding: 1.75rem; }
.modal__foot { padding: 1.25rem 1.75rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .75rem; }
/* Auth tabs */
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.auth-tab { flex: 1; padding: .875rem; background: none; border: none; font-family: var(--font); font-size: .9375rem; font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: all .2s; }
.auth-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.upload-zone { border: 2px dashed var(--border2); border-radius: var(--radius); padding: 2rem; text-align: center; cursor: pointer; transition: all .2s; }
.upload-zone:hover { border-color: var(--teal); background: var(--teal-light); }
.upload-zone__icon { font-size: 2rem; margin-bottom: .5rem; }
.upload-zone__text { font-weight: 800; font-size: .9375rem; color: var(--dark); }
.upload-zone__hint { font-size: .8125rem; color: var(--muted); margin-top: .25rem; }

/* =====================================================
   AGENCIES SECTION
===================================================== */
.agencies-layout { display: grid; grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: start; }
.agencies-search { display: flex; gap: 0; margin-bottom: 1.25rem; border: 1.5px solid var(--border2); border-radius: 10px; overflow: hidden; }
.agencies-search input { flex: 1; padding: .75rem 1rem; border: none; font-family: var(--font); font-size: .9375rem; color: var(--dark); outline: none; }
.agencies-search button { background: var(--teal); color: var(--white); border: none; padding: 0 1rem; font-size: .875rem; font-weight: 800; }
.agency-list { display: flex; flex-direction: column; gap: .75rem; max-height: 400px; overflow-y: auto; }
.agency-item { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 1rem 1.125rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: all .2s; }
.agency-item:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.agency-item__name { font-weight: 800; font-size: .9rem; color: var(--dark); }
.agency-item__addr { font-size: .8rem; color: var(--mid); margin-top: .2rem; }
.status-badge { font-size: .75rem; font-weight: 700; padding: .25rem .625rem; border-radius: 20px; }
.status-open   { background: #e6f9f0; color: var(--green); }
.status-closed { background: var(--bg2); color: var(--muted); }
.map-box { background: var(--bg2); border-radius: 16px; height: 440px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .75rem; color: var(--mid); }

/* =====================================================
   STATS / CHIFFRES
===================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-val { font-size: 2.625rem; font-weight: 900; color: var(--teal); letter-spacing: -1px; line-height: 1; }
.stat-lbl { font-size: .875rem; color: var(--mid); font-weight: 600; margin-top: .5rem; }

/* =====================================================
   SERVICES
===================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { border: 1.5px solid var(--border); border-radius: 16px; padding: 2rem; transition: all .3s; position: relative; overflow: hidden; background: var(--white); }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--teal); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.service-card:hover { border-color: var(--teal-mid); box-shadow: var(--shadow); }
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.125rem; }
.service-card__title { font-size: 1.0625rem; font-weight: 900; color: var(--dark); margin-bottom: .625rem; }
.service-card__desc { font-size: .9rem; color: var(--mid); line-height: 1.7; margin: 0; }

/* =====================================================
   BLOG CARDS
===================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.blog-card { cursor: pointer; }
.blog-card__img { height: 196px; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__cat { font-size: .75rem; font-weight: 800; color: var(--teal); text-transform: uppercase; letter-spacing: .8px; margin-bottom: .375rem; }
.blog-card__title { font-size: 1.0625rem; font-weight: 800; color: var(--dark); line-height: 1.4; transition: color .2s; }
.blog-card:hover .blog-card__title { color: var(--teal); }
.blog-card__date { font-size: .8125rem; color: var(--muted); margin-top: .375rem; font-weight: 500; }

/* =====================================================
   ESTIMER BAND
===================================================== */
.estimer-band { background: linear-gradient(135deg, var(--teal) 0%, var(--teal3) 100%); padding: 3.5rem 0; overflow: hidden; position: relative; }
.estimer-band::before { content: ''; position: absolute; top: -80px; right: 10%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.06); }
.estimer-band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.estimer-band__left h2 { font-size: 2rem; font-weight: 900; color: var(--white); line-height: 1.2; margin-bottom: .75rem; }
.estimer-band__left p { color: rgba(255,255,255,.75); font-size: .9375rem; line-height: 1.7; max-width: 420px; margin: 0; }
.estimer-form { background: rgba(255,255,255,.1); border-radius: 16px; padding: 1.75rem; backdrop-filter: blur(4px); display: flex; flex-direction: column; gap: .875rem; }
.estimer-form input, .estimer-form select { padding: .875rem 1.125rem; border: none; border-radius: 10px; font-family: var(--font); font-size: .9375rem; color: var(--dark); background: var(--white); outline: none; width: 100%; -webkit-appearance: none; }
.estimer-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.estimer-form p { color: rgba(255,255,255,.9); font-weight: 800; font-size: 1rem; margin: 0 0 .25rem; }

/* =====================================================
   TOAST NOTIFICATION
===================================================== */
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99999; background: var(--dark); color: var(--white); padding: 1rem 1.375rem; border-radius: var(--radius); font-size: .9375rem; font-weight: 600; display: flex; align-items: center; gap: .75rem; box-shadow: 0 12px 48px rgba(0,0,0,.25); transform: translateY(120%); transition: transform .35s cubic-bezier(.34,1.56,.64,1); max-width: 360px; border-left: 4px solid var(--teal); pointer-events: none; }
.toast.show { transform: translateY(0); }
.toast--success { border-left-color: var(--green); }
.toast--error   { border-left-color: var(--red); }

/* =====================================================
   PAGINATION
===================================================== */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.page-link { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: 8px; font-weight: 700; font-size: .875rem; color: var(--dark); transition: all .2s; }
.page-link:hover, .page-link.active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.page-link.dots { border: none; cursor: default; }
.page-link.dots:hover { background: none; color: var(--dark); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1100px) {
    .props-grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__right { display: none; }
    .hero__left { padding: 2.5rem 0; }
    .search-form { grid-template-columns: 1fr; }
    .search-field { border-right: none; border-bottom: 1.5px solid var(--border2); }
    .search-btn { padding: 1rem; }
    .props-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .blog-grid { grid-template-columns: 1fr; }
    .estimer-band__inner { grid-template-columns: 1fr; }
    .agencies-layout { grid-template-columns: 1fr; }
    .listing-layout { grid-template-columns: 1fr; }
    .listing-filters { display: none; }
    .result-grid { grid-template-columns: 1fr 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-gallery { grid-template-columns: 1fr; height: 280px; }
    .gallery-side { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .props-grid { grid-template-columns: 1fr; }
    .result-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
