/* Easyhome : bleu marine #002D82, orange #FF7000, fond ivoire (même identité que le CRM) */
:root {
  --navy: #002D82; --navy-2: #0A3A9A; --orange: #FF7000; --orange-2: #E86300;
  --ivory: #FBF8F3; --white: #fff; --ink: #14213D; --muted: #5B6478; --line: #E6E1D8;
  --radius: 14px; --shadow: 0 6px 24px rgba(0, 45, 130, .08);
  /* Tailles d'écriture du site : 5 tailles seulement, pour un texte homogène */
  --fs-xs: .8rem; --fs-sm: .9rem; --fs-md: 1.05rem; --fs-lg: 1.15rem; --fs-xl: 1.3rem;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ivory); line-height: 1.6; font-size: 1rem; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h3 { font-size: var(--fs-md); font-weight: 700; }
:root { --marge: clamp(16px, 4vw, 72px); }
.wrap { max-width: none; margin: 0 auto; padding: 0 var(--marge); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px; z-index: 99; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-xs); font-weight: 700; color: var(--orange-2); margin: 0 0 .5em; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font: 700 .95rem var(--font); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--orange-2); }
.btn-light { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-light:hover { background: #EEF2FA; }
.btn-sm { padding: 8px 16px; font-size: var(--fs-sm); }
.btn-block { width: 100%; margin-bottom: 8px; }

/* En-tête */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand img { height: 48px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { padding: 8px 10px; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); border-radius: 8px; }
.menu a:hover, .menu a[aria-current] { color: var(--navy); background: #EEF2FA; }
.menu a.btn { color: #fff; margin-left: 8px; }
.menu a.btn:hover { background: var(--orange-2); }
.fav-count { background: var(--orange); color: #fff; border-radius: 999px; font-size: var(--fs-xs); padding: 1px 6px; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }
@media (max-width: 980px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a { padding: 12px; }
  .menu a.btn { margin: 8px 0 0; }
}

/* Accueil */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,112,0,.35), transparent 70%); }
.hero h1 { color: #fff; max-width: 760px; }
/* Titre de l'accueil : les mots apparaissent l'un après l'autre, « bonnes mains » souligné en orange */
.titre-anime .mot { display: inline-block; opacity: 0; transform: translateY(.45em); animation: mot-in .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.15s + var(--i) * .12s); }
.titre-anime em { font-style: normal; color: var(--orange); background: linear-gradient(var(--orange), var(--orange)) left bottom / 0 4px no-repeat; animation: souligne .7s ease-out 1.3s forwards; }
@keyframes mot-in { to { opacity: 1; transform: none; } }
@keyframes souligne { to { background-size: 100% 4px; } }
@media (prefers-reduced-motion: reduce) { .titre-anime .mot { animation: none; opacity: 1; transform: none; } .titre-anime em { animation: none; background-size: 100% 4px; } }
.hero .eyebrow { color: #FFB380; }
.lead-txt { font-size: var(--fs-md); max-width: 640px; opacity: .92; margin: 0 0 28px; }
.hero-page { background: var(--navy); color: #fff; padding: 40px 0; }
.hero-page h1 { color: #fff; margin: 0; }
.hero-page p { margin: 8px 0 0; opacity: .9; max-width: 720px; }

/* Recherche */
.search { position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 1fr 1fr 1.4fr 1.15fr 1fr auto; gap: 12px; align-items: end; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.search .seg { grid-column: 1 / -1; display: flex; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
/* Acheter / Louer : deux grands onglets, celui choisi en orange (le sélecteur .search .seg l'emporte sur le style des étiquettes de champ) */
.search .seg { gap: 8px; }
.search .seg span, .seg span { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 11px 28px; border-radius: 999px; font-weight: 800; font-size: var(--fs-md); letter-spacing: .01em; background: #EEF2FA; color: var(--navy); border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.search .seg label:hover span { border-color: var(--navy); }
.search .seg input:checked + span, .seg input:checked + span { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(255,112,0,.35); }
.seg input:focus-visible + span { outline: 2px solid var(--orange); }
.search > label > span, .search > .curseur > span, .lead label > span { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,45,130,.12); }
.search-compact { grid-template-columns: 1fr 1.1fr 1.5fr 1.2fr 1fr 1fr auto; box-shadow: var(--shadow); margin-bottom: 28px; }
/* Critères : cases à cocher en pastilles, sur toute la largeur sous la recherche */
.crits-zone { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
.crits-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); color: var(--navy); cursor: pointer; list-style: none; user-select: none; }
.crits-btn::-webkit-details-marker { display: none; }
.crits-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.crits-zone[open] .crits-btn::after { transform: translateY(2px) rotate(-135deg); }
.crits-btn:hover { border-color: var(--navy); }
.crits-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.crits-nb { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--orange); color: #fff; font-size: var(--fs-xs); }
.crits-nb[hidden] { display: none; }
.crits { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); background: #fff; transition: background .15s, border-color .15s; }
.chip span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid #9AA6C0; border-radius: 4px; flex: none; }
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:checked + span::before { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23002D82' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.crits-grp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 8px 4px 12px; border-radius: 22px; background: #EEF2FA; }
.crits-sous { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
@media (max-width: 980px) { .search .btn { order: 1; } .search, .search-compact { grid-template-columns: 1fr 1fr; } .search .btn { grid-column: 1 / -1; } }
@media (max-width: 520px) { .search, .search-compact { grid-template-columns: 1fr; } }

/* Accueil avec images */
.hero-img { padding: 96px 0 104px; min-height: 560px; display: flex; align-items: center; background: var(--navy); }
.hero-img::after { display: none; }
.hero-in { position: relative; z-index: 2; width: 100%; }
.hero-img h1, .hero-img .lead-txt { text-shadow: 0 2px 16px rgba(0, 20, 60, .45); }
.hero-img .eyebrow, .hero-img h1, .hero-img .lead-txt { text-align: center; margin-left: auto; margin-right: auto; }
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-img { overflow: visible; } /* la liste des critères peut dépasser du bandeau */
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: hero-fade 24s infinite; }
.hero-slides img:nth-child(1) { opacity: 1; animation-delay: -1s; }
.hero-slides img:nth-child(2) { animation-delay: 7s; }
.hero-slides img:nth-child(3) { animation-delay: 15s; }
.hero-slides::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 30, 90, .82) 0%, rgba(0, 30, 90, .55) 45%, rgba(0, 30, 90, .15) 100%); }
@keyframes hero-fade { 0% { opacity: 0; } 4% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-slides img { animation: none; } .hero-slides img:not(:first-child) { display: none; } }
@media (max-width: 720px) { .hero-img { padding: 56px 0 72px; min-height: 0; } .hero-slides::after { background: rgba(0, 30, 90, .68); } }
.quick-img .quick-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.quick-img .quick-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #DDE4F2; }
.quick-img .qc-txt { display: block; padding: 14px 18px 18px; }
.quick-img .quick-card.accent .qc-txt { background: var(--orange); }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.intro-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: #DDE4F2; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; gap: 20px; } }
.band-img { position: relative; overflow: hidden; }
.band-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-img::before { content: ''; position: absolute; inset: 0; background: rgba(0, 30, 90, .72); z-index: 1; }
.band-img .band-in { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -32px; position: relative; z-index: 2; }
.quick-card { background: #fff; border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .15s; }
.quick-card:hover { transform: translateY(-2px); }
.quick-card b { display: block; color: var(--navy); font-size: var(--fs-md); }
.quick-card span { font-size: var(--fs-sm); color: var(--muted); }
.quick-card.accent { background: var(--orange); border-color: var(--orange); }
.quick-card.accent b, .quick-card.accent span { color: #fff; }
@media (max-width: 860px) { .quick { grid-template-columns: 1fr 1fr; } }

.section { padding-top: 48px; padding-bottom: 48px; }
.section:not(.wrap) { padding-left: 16px; padding-right: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; }
.section-head.sous-tete { margin: 8px 0 14px; }
.section-head.sous-tete h3 { margin: 0; font-size: var(--fs-lg); color: var(--navy); }
.grid + .sous-tete { margin-top: 36px; }
.band { background: var(--navy); color: #fff; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.band h2 { color: #fff; }
.band p { margin: 0; max-width: 620px; opacity: .9; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 20px 0; }
.why-grid > div { background: #fff; border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--orange); }
.why-grid.why-3 { grid-template-columns: repeat(3, 1fr); }
.why-grid p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 860px) { .why-grid, .why-grid.why-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid, .why-grid.why-3, .quick { grid-template-columns: 1fr; } }

/* Cartes de biens */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(300px, calc((100% - 72px) / 4)), 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 4 / 3; background: #E9EEF7; display: block; position: relative; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: var(--fs-sm); background: repeating-linear-gradient(45deg, #EEF2FA, #EEF2FA 10px, #F5F7FC 10px, #F5F7FC 20px); }
.noimg.big { aspect-ratio: 16 / 7; border-radius: var(--radius); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--navy); color: #fff; font-weight: 700; font-size: var(--fs-xs); padding: 4px 10px; border-radius: 999px; }
.badge-sold { background: var(--orange); }
.card-body { padding: 16px 18px 18px; }
.card h3 { margin: 0 0 4px; font-size: 1rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.price { font-weight: 800; color: var(--navy); font-size: var(--fs-lg); margin: 0 0 4px; }
.price.big { font-size: 1.6rem; }
.meta, .loc { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.loc::before { content: '📍 '; }
.fav { position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--orange); font-size: var(--fs-lg); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.fav[aria-pressed="true"] { background: var(--orange); color: #fff; }
.fav-wide { position: static; width: 100%; height: auto; border-radius: 999px; padding: 10px; font: 700 .9rem var(--font); box-shadow: inset 0 0 0 1.5px var(--orange); }
.empty { background: #fff; border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); }

/* Fiche bien */
.crumbs { padding-top: 20px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; margin-top: 16px; position: relative; }
.gallery a { overflow: hidden; border-radius: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .g0 { grid-row: 1 / 3; }
.more-photos { position: absolute; right: calc(var(--marge) + 16px); bottom: 16px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; } .gallery .g0 { grid-column: 1 / -1; grid-row: auto; } .gallery .g3, .gallery .g4 { display: none; } }
.gallery.gallery-one { grid-template-columns: 1fr; grid-template-rows: auto; }
.gallery-one .g0, .gallery-one .noimg { grid-column: 1; grid-row: auto; aspect-ratio: 16 / 7; height: auto; }
@media (max-width: 760px) { .gallery-one .g0, .gallery-one .noimg { aspect-ratio: 4 / 3; } }
.fiche { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.fiche-main h2 { margin-top: 1.6em; }
.facts { list-style: none; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.facts li { background: #fff; border-radius: 10px; padding: 8px 14px; border: 1px solid var(--line); }
.desc p { margin: 0 0 1em; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: #EEF2FA; color: var(--navy); font-weight: 600; border-radius: 999px; padding: 6px 14px; font-size: var(--fs-sm); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.side-card .kv { grid-template-columns: 1fr; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
.map-bien { overflow: hidden; background: #e9edf3; z-index: 0; position: relative; }
.map-bien iframe { width: 100%; height: 100%; border: 0; display: block; }
.autour { margin-top: 18px; }
.autour h3 { margin-bottom: 10px; }
.autour-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.autour-cat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.autour-cat b { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: var(--fs-sm); margin-bottom: 6px; }
.autour-cat b i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.autour-cat ul { list-style: none; margin: 0; padding: 0; }
.autour-cat li { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); padding: 3px 0; }
.autour .lien { all: unset; cursor: pointer; color: var(--navy); font-weight: 600; text-decoration: underline; }
.autour-cat li button { all: unset; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.autour-cat li button:hover, .autour-cat li button:focus-visible { color: var(--orange); text-decoration: underline; }
.autour-cat li em { font-style: normal; color: var(--muted); white-space: nowrap; }
.fiche-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.side-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.agent { margin: 0 0 12px; }
/* Alerte email (listes de biens) */
.alerte { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 20px; }
.alerte summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--navy); }
.alerte summary::-webkit-details-marker { display: none; }
.alerte summary::after { content: '▾'; margin-left: auto; color: var(--orange); }
.alerte[open] summary::after { content: '▴'; }
.alerte-ico { font-size: var(--fs-xl); }
.alerte .lead { box-shadow: none; padding-top: 0; }

/* Simulateur de crédit (fiche bien) */
.simu { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 1.5em; }
.simu-champs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.simu-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 8px; }
.simu-res p { margin: 0; background: #EEF2FA; border-radius: 12px; padding: 12px 14px; display: grid; }
.simu-res span { color: var(--muted); font-size: var(--fs-sm); }
.simu-res b { color: var(--navy); font-size: var(--fs-lg); }
.simu-res p:first-child { background: var(--navy); }
.simu-res p:first-child span { color: #C9D4EC; }
.simu-res p:first-child b { color: #fff; font-size: var(--fs-xl); }
@media (max-width: 700px) { .simu-champs { grid-template-columns: 1fr 1fr; } .simu-res { grid-template-columns: 1fr; } }
.print-tete { display: none; }
@media print {
  .top, .foot, .wa, .crumbs, .fiche-side .lead, .fiche-side .btn, .fiche-side .fav, .more-photos, .simu, .map-bien, .autour, .fiche-main > h2:has(+ .simu) { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .print-tete { display: flex; align-items: center; gap: 20px; padding: 0 0 12px; border-bottom: 2px solid #002D82; margin-bottom: 12px; }
  .print-tete img { height: 50px; width: auto; }
  .print-tete p { margin: 0; font-size: 10pt; }
  .fiche { display: block; }
  .fiche-side { position: static; }
  .side-card { box-shadow: none; border: 1px solid #ccc; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; gap: 6px; }
  .gallery .g0 { grid-row: auto; }
  .gallery a { break-inside: avoid; }
  .gallery img { height: 160px; width: 100%; object-fit: cover; }
  .gallery .g3, .gallery .g4 { display: none; }
  h2 { break-after: avoid; }
  a { text-decoration: none; color: inherit; }
}
@media (max-width: 900px) { .fiche { grid-template-columns: 1fr; } .fiche-side { position: static; } .kv { grid-template-columns: 1fr; } }

/* Formulaires */
.lead { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.lead .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.lead .full { grid-column: 1 / -1; }
.lead b[aria-hidden] { color: var(--orange-2); }
.fiche-side .lead .fields { grid-template-columns: 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 16px; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.form-msg { margin: 12px 0 0; font-weight: 600; }
.form-msg.ok { color: #1D8A57; }
.form-msg.err { color: #C0392B; }
@media (max-width: 600px) { .lead .fields { grid-template-columns: 1fr; } }

/* Pages de contenu */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.prose { max-width: 720px; }
.prose.narrow { margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.checks { list-style: none; padding: 0; }
.checks li { padding: 8px 0 8px 32px; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: var(--fs-xs); display: grid; place-items: center; font-weight: 800; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 10px; }

/* Pied de page */
.foot { background: #001C52; color: #C9D3EA; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 16px 24px; }
.foot h3 { color: #fff; font-size: var(--fs-sm); }
.foot a { color: #C9D3EA; text-decoration: none; display: block; padding: 3px 0; font-size: var(--fs-sm); }
.foot a:hover { color: #fff; }
.foot p a { display: inline; }
.foot img { height: 48px; width: auto; margin-bottom: 12px; }
.social a { display: inline-block; margin-right: 12px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px; font-size: var(--fs-sm); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* WhatsApp flottant */
.wa { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 30; }

/* Visionneuse photos */
.lb { position: fixed; inset: 0; background: rgba(5,12,30,.94); z-index: 50; display: grid; place-items: center; }
.lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb .lb-x { top: 16px; right: 16px; }
.lb .lb-p { left: 16px; top: 50%; }
.lb .lb-n { right: 16px; top: 50%; }
.lb .lb-c { position: absolute; bottom: 20px; color: #fff; font-size: var(--fs-sm); }

/* Équipe (page L'agence) */
.equipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.membre { margin: 0; text-align: center; }
.membre img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: #DDE4F2; }
.membre figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.membre figcaption span { color: var(--muted, #5B6478); font-size: var(--fs-sm); }
@media (max-width: 860px) { .equipe { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .equipe { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.map-agence { height: 260px; display: block; margin: 4px 0 8px; }

/* Accueil : le bandeau du haut se fond dans la photo, puis redevient blanc au défilement */
.brand .logo-b { display: none; }
.top-over { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.top-over::before { content: ''; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(0, 20, 60, .55), rgba(0, 20, 60, 0)); pointer-events: none; transition: opacity .25s; }
.top-over .top-in { position: relative; }
.top-over:not(.solid) .logo-c { display: none; }
.top-over:not(.solid) .logo-b { display: inline; }
.top-over:not(.solid) .menu a:not(.btn) { color: #fff; }
.top-over:not(.solid) .menu a:not(.btn):hover, .top-over:not(.solid) .menu a[aria-current] { background: rgba(255, 255, 255, .16); color: #fff; }
.top-over:not(.solid) .burger span { background: #fff; }
.top-over.solid { background: #fff; border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(0, 20, 60, .08); }
.top-over.solid::before { opacity: 0; }
.top-over + main .hero-img { padding-top: 168px; min-height: 640px; }
@media (max-width: 720px) { .top-over + main .hero-img { padding-top: 128px; min-height: 0; } }

/* Bandeaux de titre des autres pages : même photo de fond, assombrie */
.hero-page { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-page::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 30, 90, .85) 0%, rgba(0, 30, 90, .6) 55%, rgba(0, 30, 90, .35) 100%); }
.hero-page .wrap { position: relative; z-index: 2; }
.top-over + main .hero-page { padding: 136px 0 56px; }
.hero-page h1 { text-shadow: 0 2px 16px rgba(0, 20, 60, .45); }
@media (max-width: 720px) { .top-over + main .hero-page { padding: 112px 0 40px; } }

/* Présentation d'un onglet (photo + arguments) */
.presentation { background: linear-gradient(#fff 0 22%, #F4F2EE 22% 100%); padding: 56px 0; }
.pres-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.pres-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: #DDE4F2; }
.pres-txt h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2; margin: 8px 0 28px; }
.pres-txt h2 span { display: block; font-weight: 400; }
.pres-txt ul { list-style: none; padding: 0; margin: 0 0 24px; color: var(--navy); }
.pres-txt li { position: relative; padding-left: 22px; margin: 0 0 12px; line-height: 1.5; }
.pres-txt li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
@media (max-width: 860px) { .pres-in { grid-template-columns: 1fr; gap: 28px; } .presentation { background: #F4F2EE; padding: 40px 0; } }
/* Bandeaux de titre plus hauts : la photo se voit davantage */
.top-over + main .hero-page { min-height: 440px; display: flex; align-items: flex-end; padding: 150px 0 64px; }
.top-over + main .hero-page .wrap { width: 100%; }
@media (max-width: 720px) { .top-over + main .hero-page { min-height: 320px; padding: 120px 0 40px; } }
/* Logo plus grand */
.top-in { min-height: 92px; }
.brand img { height: 70px; }
@media (max-width: 980px) { .top-in { min-height: 76px; } .brand img { height: 56px; } .menu { top: 76px; } }
.brand { display: block; padding: 10px 0 8px; }

/* Accueil : vidéos de fond */
.hero-videos video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-videos video.on { opacity: 1; }
/* Téléphone : la vidéo (verticale) remplit un écran, puis le bandeau continue en bleu sous la recherche */
@media (max-width: 720px) {
  .hero-videos { bottom: auto; height: 100vh; height: 100svh; }
  .hero-videos::after { background: linear-gradient(180deg, rgba(0, 30, 90, .55) 0%, rgba(0, 30, 90, .6) 60%, var(--navy) 100%); }
}

[hidden] { display: none !important; }

/* ---------- Menu : onglet avec sous-onglets ---------- */
.sous-menu { position: relative; }
.sous-menu > a { display: inline-flex; align-items: center; gap: 4px; }
.caret { font-size: .7em; }
.sous-liste { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 30, 90, .18); padding: 8px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 30; }
.sous-liste::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sous-menu:hover .sous-liste, .sous-menu:focus-within .sous-liste { opacity: 1; visibility: visible; transform: none; }
.top-over:not(.solid) .menu .sous-liste a { color: var(--ink); }
.top-over:not(.solid) .menu .sous-liste a:hover, .top-over:not(.solid) .menu .sous-liste a[aria-current] { background: #EEF2FA; color: var(--navy); }
@media (max-width: 980px) {
  .sous-menu { display: flex; flex-direction: column; }
  .sous-menu .caret { display: none; }
  .sous-liste { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .sous-liste a { font-weight: 500; }
}

/* ---------- Apparition au défilement, compteurs ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Pages propriétaires ---------- */
.ico { width: 30px; height: 30px; flex: none; }
.badges { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 6px 14px; font-size: var(--fs-sm); font-weight: 600; }
.titre-section { text-align: center; margin: 0 0 8px; }
.sous-titre { text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 640px; }
.section-alt { background: #fff; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: -36px; position: relative; z-index: 3; }
.chiffres > div { background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 30, 90, .12); padding: 20px; text-align: center; }
.chiffres b { display: block; font-size: 2rem; color: var(--navy); line-height: 1.1; }
.chiffres span { color: var(--muted); font-size: var(--fs-sm); }
.chiffres b span { font-size: inherit; color: inherit; }

/* Estimez votre bien : formulaire en étapes */
.wizard { scroll-margin-top: 100px; }
.est { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.wizard fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.wizard legend { font-size: var(--fs-xl); font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.wz-q { font-weight: 700; font-size: var(--fs-sm); margin: 16px 0 8px; }
.wz-steps { display: none; }
.wz-bar { display: none; }
.js .wizard .wz-steps { display: flex; list-style: none; padding: 0; margin: 0 0 10px; gap: 8px; counter-reset: wz; }
.js .wizard .wz-steps li { flex: 1; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; counter-increment: wz; }
.js .wizard .wz-steps li::before { content: counter(wz); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #EEF2FA; color: var(--navy); flex: none; transition: background .2s, color .2s; }
.js .wizard .wz-steps li.on { color: var(--navy); }
.js .wizard .wz-steps li.on::before, .js .wizard .wz-steps li.fait::before { background: var(--navy); color: #fff; }
.js .wizard .wz-steps li.fait::before { content: '✓'; background: var(--orange); }
.js .wizard .wz-bar { display: block; height: 4px; background: #EEF2FA; border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.js .wizard .wz-bar span { display: block; height: 100%; width: 33%; background: var(--orange); border-radius: 4px; transition: width .35s ease; }
.js .wizard .wz-step { display: none; }
.js .wizard .wz-step.on { display: block; animation: wz-in .35s ease; }
@keyframes wz-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.wz-nav { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.wz-nav [data-wz=prev] { margin-right: auto; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-item { position: relative; cursor: pointer; }
.choix-item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choix-item span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: var(--fs-sm); background: #fff; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.choix-item span .ico { width: 22px; height: 22px; color: var(--navy); }
.choix-item:hover span { border-color: var(--navy); transform: translateY(-1px); }
.choix-item input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.choix-item input:checked + span .ico { color: #fff; }
.choix-item input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.wizard .invalide .choix-item span, .wizard input.invalide { border-color: #D93025; }
.est-side h2 { font-size: var(--fs-xl); margin-top: 0; }
.timeline { list-style: none; padding: 0; margin: 12px 0 16px; counter-reset: tl; }
.timeline li { position: relative; padding: 0 0 18px 44px; counter-increment: tl; }
.timeline li::before { content: counter(tl); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.timeline b, .timeline span { display: block; }
.timeline span { color: var(--muted); font-size: var(--fs-sm); }
.liens-prop { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 0; }
.lien-prop { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.lien-prop .ico { grid-row: span 2; width: 40px; height: 40px; color: var(--orange); }
.lien-prop b { color: var(--navy); font-size: var(--fs-md); }
.lien-prop span { color: var(--muted); font-size: var(--fs-sm); }
.lien-prop:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 30, 90, .14); }

/* Pourquoi nous choisir ? */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.service .ico { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: #FFF1E6; color: var(--orange); }
.service h3 { margin: 14px 0 6px; color: var(--navy); }
.service p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.service:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 30, 90, .14); border-color: var(--orange); }
.mandats { max-width: 640px; margin: 0 auto; }
.mandat-seg { display: flex; justify-content: center; margin-bottom: 18px; }
.mandat-seg button { font: inherit; font-weight: 700; border: 0; padding: 10px 22px; border-radius: 999px; background: #EEF2FA; color: var(--navy); cursor: pointer; margin: 0 4px; transition: background .2s, color .2s; }
.mandat-seg button[aria-selected=true] { background: var(--navy); color: #fff; }
.mandat-liste { list-style: none; padding: 0; margin: 0; background: var(--ivory); border-radius: var(--radius); overflow: hidden; }
.mandat-liste li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: opacity .25s, background .25s; }
.mandat-liste li:last-child { border-bottom: 0; }
.m-ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: var(--fs-xs); flex: none; }
.mandat-liste li.excl .m-ok { background: var(--orange); }
.mandat-liste li.excl .m-ok::before { content: '✓'; }
.mandat-liste em { margin-left: auto; font-style: normal; font-size: var(--fs-xs); font-weight: 700; color: var(--orange-2); background: #FFF1E6; padding: 3px 10px; border-radius: 999px; }
.mandat-liste[data-actif=simple] li.excl { opacity: .35; }
.mandat-liste[data-actif=simple] li.excl .m-ok { background: #C9CFDB; }
.mandat-liste[data-actif=simple] li.excl .m-ok::before { content: '–'; }
.exclusifs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.excl-card { display: flex; gap: 18px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 26px; }
.excl-card .ico { width: 48px; height: 48px; color: var(--orange); }
.excl-card h3 { color: #fff; margin: 0 0 6px; }
.excl-card p { margin: 0; opacity: .9; }
.etapes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: et; }
.etapes li { position: relative; counter-increment: et; padding-top: 52px; }
.etapes li::before { content: counter(et); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; z-index: 1; }
.etapes li:not(:last-child)::after { content: ''; position: absolute; top: 19px; left: 40px; right: -14px; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 12px); }
.etapes b { display: block; color: var(--navy); }
.etapes span { color: var(--muted); font-size: var(--fs-sm); }

@media (max-width: 980px) {
  .est, .liens-prop, .exclusifs { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .etapes { grid-template-columns: 1fr 1fr 1fr; row-gap: 24px; }
  .etapes li:nth-child(3n)::after { display: none; }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .etapes li { padding: 0 0 0 56px; min-height: 48px; }
  .etapes li:not(:last-child)::after { top: 42px; left: 19px; right: auto; bottom: -22px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--orange) 0 6px, transparent 6px 12px); display: block; }
  .chiffres { grid-template-columns: 1fr 1fr; }
  .js .wizard .wz-steps li { font-size: 0; gap: 0; justify-content: center; }
  .js .wizard .wz-steps li::before { font-size: var(--fs-sm); }
}

/* Pourquoi nous choisir ? : « clients qui nous ont fait confiance » */
.confiance { margin-top: -36px; position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.conf-total { background: linear-gradient(135deg, var(--orange), #FF8F3A); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 14px 36px rgba(255, 112, 0, .28); }
.conf-total b { font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; font-weight: 800; }
.conf-total > span { font-size: var(--fs-lg); font-weight: 700; margin-top: 8px; }
.conf-det { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.conf-det > div { background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 30, 90, .12); padding: 18px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.conf-det > div span { grid-column: 2; }
.conf-det .ico { width: 34px; height: 34px; color: var(--orange); grid-row: span 2; }
.conf-det b { font-size: 2rem; color: var(--navy); line-height: 1.1; }
.conf-det > div > span { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 860px) { .confiance { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .conf-det { grid-template-columns: 1fr; } }

/* Résultats : liste + carte (comme Tecnocasa), élargir autour du secteur */
.elargir { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 24px; font-size: var(--fs-sm); }
.elargir span { color: var(--muted); font-weight: 600; margin-right: 4px; }
.elargir a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line, #dfe3ec); background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; }
.elargir a:hover { border-color: var(--orange, #FF7000); }
.elargir a[aria-current] { background: var(--navy); border-color: var(--navy, #002D82); color: #fff; }
.resultats { display: grid; gap: 24px; }
.resultats-carte { display: none; }
.resultats .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.proches-titre { margin: 40px 0 16px; font-size: var(--fs-lg); }
.badge-proche { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--navy); padding: 4px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; }
.card.lit { box-shadow: 0 0 0 3px var(--orange, #FF7000); }
#carte-biens { height: 100%; min-height: 420px; border-radius: 16px; background: #e9edf3; z-index: 0; }
.btn-carte { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.resultats.vue-carte .resultats-liste { display: none; }
.resultats.vue-carte .resultats-carte { display: block; height: 70vh; }
@media (min-width: 980px) {
  .resultats { grid-template-columns: minmax(0, 1fr) minmax(0, 52%); align-items: start; }
  .resultats-carte { display: block; position: sticky; top: 96px; height: calc(100vh - 120px); }
  .resultats .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .btn-carte { display: none; }
}
.pin { background: none; border: 0; }
.pin span { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: var(--navy); color: #fff; font: 700 12px/1.2 'Plus Jakarta Sans', sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.pin-proche span { background: #fff; color: var(--navy); border: 1px solid var(--navy, #002D82); }
.pin-on span { background: var(--orange, #FF7000); color: #fff; border-color: var(--orange, #FF7000); position: relative; z-index: 1000; }
.pop { display: grid; gap: 2px; width: 200px; color: inherit; text-decoration: none; }
.pop img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.pop b { color: var(--navy); }
.pop em { color: var(--muted); font-size: var(--fs-xs); }
.search option.opt-region { font-weight: 700; }
.search option.opt-ville { font-weight: 600; }
/* Liste des secteurs de la recherche (remplace le menu natif) : titres de groupes sur fond de couleur */
.sel { position: relative; }
.search.sel-ouvert { z-index: 15; } /* la liste passe au-dessus des fiches de biens */
.sel-btn { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 34px 10px 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.sel-btn::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); }
.sel-btn:focus, .sel-btn[aria-expanded=true] { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,45,130,.12); }
.sel-list { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: min(360px, 90vw); max-height: 380px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .16); padding: 6px 0; }
.sel-grp { margin-top: 6px; padding: 6px 14px; background: var(--navy); color: #fff; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sel-opt { padding: 6px 14px 6px 30px; cursor: pointer; font-size: var(--fs-sm); }
.sel-opt[data-v=""] { padding-left: 14px; }
.sel-opt.opt-region { padding-left: 14px; font-weight: 700; color: var(--navy); background: #E7EDF8; }
.sel-opt.opt-ville { padding-left: 14px; font-weight: 700; color: var(--navy); background: #FFEBDB; }
.sel-opt.act { background: var(--navy); color: #fff; }
.sel-opt[aria-selected=true]:not(.act) { box-shadow: inset 3px 0 0 var(--orange); }

/* Page de service /outils/alentours */
.outil-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: var(--fs-sm); }
.outil-table th, .outil-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.outil-table td:first-child { max-width: 420px; }

/* Recherche : curseurs budget et chambres */
.curseur output { float: right; color: var(--navy); font-weight: 800; font-size: var(--fs-xs); white-space: nowrap; }
.curseur input[type="range"] { display: block; margin: 0; -webkit-appearance: none; appearance: none; height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; accent-color: var(--orange); cursor: pointer; }
.curseur input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--orange) var(--pct, 100%), #E3E8F3 var(--pct, 100%)); }
.curseur input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--orange) var(--pct, 100%), #E3E8F3 var(--pct, 100%)); }
.curseur input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--orange); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.curseur input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.curseur input[type="range"]:focus { outline: none; box-shadow: none; }
.curseur input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255,112,0,.3); }
/* Budget : deux curseurs superposés sur une même piste, seule la poignée attrape le clic */
.double { position: relative; height: 44px; }
.double::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 6px; border-radius: 3px; background: linear-gradient(to right, #E3E8F3 var(--de, 0%), var(--orange) var(--de, 0%), var(--orange) var(--a, 100%), #E3E8F3 var(--a, 100%)); }
.double input[type="range"] { position: absolute; inset: 0; width: 100%; margin: 0; pointer-events: none; }
.double input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.double input[type="range"]::-moz-range-track { background: transparent; }
.double input[type="range"]::-webkit-slider-thumb { pointer-events: auto; }
.double input[type="range"]::-moz-range-thumb { pointer-events: auto; }
.double input.dessus { z-index: 2; }

/* Textes plus lisibles : menu du haut et cadre de recherche (demande de Sabrina, 28 oct. 2026) */
.menu a { font-size: var(--fs-md); }
.menu a.btn { font-size: var(--fs-md); padding: 11px 20px; }
.fav-count { font-size: var(--fs-xs); }
@media (min-width: 981px) and (max-width: 1180px) { .menu { gap: 0; } .menu a { padding: 8px 7px; font-size: 1rem; } .menu a.btn { padding: 10px 16px; margin-left: 4px; } }
.search > label > span, .search > .curseur > span, .crits-lbl, .crits-sous { font-size: var(--fs-sm); color: #3E4860; }
.curseur output { font-size: var(--fs-sm); }
.search select, .search .sel-btn { font-size: var(--fs-md); height: 48px; line-height: 1.4; }
.chip span { font-size: var(--fs-sm); }
@media (min-width: 981px) and (max-width: 1279px) { .search-compact { grid-template-columns: repeat(4, 1fr); } }
/* Tablette : budget, superficie et chambres côte à côte sur une ligne, sous le type et le secteur */
@media (min-width: 521px) and (max-width: 980px) {
  .search, .search-compact { grid-template-columns: repeat(6, 1fr); }
  .search > label { grid-column: span 3; }
  .search > .curseur { grid-column: span 2; }
  .search-compact > label:last-of-type { grid-column: 1 / -1; }
  .search > .curseur { min-width: 0; }
  .search > .curseur output { float: none; display: block; white-space: normal; }
}
/* Programme neuf : tableau des lots (défile sur téléphone sans élargir la page) */
.fiche-main { min-width: 0; }
.table-scroll { overflow-x: auto; margin-bottom: 8px; }
.lots { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: var(--fs-sm); }
.lots th, .lots td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lots th { color: var(--muted); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; }
.lots tr:last-child td { border-bottom: 0; }
.statut-lot { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: #E7F5EC; color: #1E7A44; }
.lot-reserve .statut-lot { background: #FFF1E6; color: var(--orange-2); }
.lot-vendu td { color: var(--muted); }
.lot-vendu .statut-lot { background: #EEF0F4; color: var(--muted); }
@media (max-width: 520px) { .lots th, .lots td { padding: 9px 6px; } .lots th:first-child, .lots td:first-child { padding-left: 10px; } .statut-lot { padding: 2px 7px; } }
