/* =========================================================
   Em Consult Marrakech — Feuille de style du site
   GSAP + ScrollTrigger + Lenis + jQuery
   ========================================================= */

:root {
  --bleu: #A07D4F;          /* beige Em Consult (couleur principale : boutons, liens, accents) */
  --bleu-fonce: #7A5D38;
  --bleu-glow: rgba(160, 125, 79, .4);
  --bleu-pale: #F3EADB;
  --encre: #1F1A15;         /* encre (brun très foncé, chaud) */
  --encre-2: #2A231C;
  --noir: #1F1A15;
  --sable: #D9A25F;         /* ocre / sable de Marrakech (accent sur fond sombre) */
  --terre: #B5562E;         /* terre cuite */
  --chaux: #F7F2EA;
  --blanc: #fff;
  --gris: #5B6168;
  --gris-clair: rgba(255,255,255,.66);
  --ligne: #E7DFD3;
  --ligne-dark: rgba(255,255,255,.14);

  --f-titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-ar: "Reem Kufi", "Noto Kufi Arabic", "Segoe UI", sans-serif;

  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --r: 18px;
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font-family: var(--f-texte); font-size: 1.0625rem; line-height: 1.6;
  color: var(--noir); background: var(--blanc); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titre); line-height: 1.02; margin: 0; letter-spacing: -0.035em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--bleu); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bleu); color: #fff; padding: 10px 16px; z-index: 300; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Mots découpés par le JS pour les animations de titres */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: color .4s var(--ease), border-color .4s;
}
.btn::before { /* remplissage qui monte au survol */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn--blue { background: var(--bleu); color: #fff; box-shadow: 0 14px 40px -14px var(--bleu-glow); }
.btn--blue::before { background: var(--encre); }
.btn--white { background: #fff; color: var(--bleu); }
.btn--white::before { background: var(--encre); }
.btn--white:hover { color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--bleu); border-color: #fff; }
.btn--full { width: 100%; }

/* ---------- Préchargement ---------- */

/* ---------- Curseur ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center; position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--bleu); mix-blend-mode: normal;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .3s;
  }
  .cursor__label { font-size: .8rem; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; }
  .cursor.is-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
  .cursor.is-view .cursor__label { opacity: 1; }
  .cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(160,125,79,.18); }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- En-tête ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: #fff;
  transition: background-color .4s, color .4s, transform .5s var(--ease), box-shadow .4s;
}
.header__inner { height: 88px; display: flex; align-items: center; gap: 28px; transition: height .4s; }
.header.is-solid { background: rgba(255,255,255,.86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: var(--noir); box-shadow: 0 1px 0 var(--ligne); }
.header.is-solid .header__inner { height: 72px; }
.header.is-hidden { transform: translateY(-100%); }
.header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; position: relative; }
.header__logo img { width: 168px; height: auto; transition: opacity .3s; }
.header__logo .logo-dark { position: absolute; left: 0; top: 0; opacity: 0; }
.header.is-solid .logo-light { opacity: 0; }
.header.is-solid .logo-dark { opacity: 1; }
.header__brand { font-family: var(--f-titre); font-weight: 800; font-size: 1.2rem; line-height: 1; letter-spacing: -.01em; }
.header__brand small { display: block; font-family: var(--f-texte); font-weight: 500; font-size: .72rem; opacity: .7; margin-top: 4px; letter-spacing: .04em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a { position: relative; display: block; padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--bleu); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; box-shadow: 0 10px 30px -10px var(--bleu-glow); }
.header__cta svg { width: 18px; height: 18px; fill: currentColor; }

.menu-btn { display: none; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer; padding: 8px; font-weight: 600; }
.menu-btn__lines { display: grid; gap: 6px; width: 26px; }
.menu-btn__lines i { display: block; height: 2px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open .header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .header .logo-light { opacity: 1; } .menu-open .header .logo-dark { opacity: 0; }

/* Menu plein écran */
.menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; color: #fff; }
.menu__bg { position: absolute; inset: 0; background: var(--encre); clip-path: circle(0% at calc(100% - 60px) 44px); }
.menu__inner { position: relative; height: 100%; overflow-y: auto; display: grid; grid-template-columns: 1.4fr 1fr; align-content: center; gap: 32px 56px; padding-top: 104px; padding-bottom: 40px; }
/* Liens principaux : taille raisonnable, séparés par un filet */
.menu__links { margin: 0; padding: 0; list-style: none; }
.menu__links > li { border-bottom: 1px solid var(--ligne-dark); }
.menu__links > li > a, .menu__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 2px;
  border: 0; background: none; color: #fff; text-decoration: none; text-align: left; cursor: pointer;
  font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -.02em; line-height: 1.2;
  transition: color .25s, padding-left .3s var(--ease);
}
.menu__links > li > a:hover, .menu__toggle:hover, .menu__links > li > a[aria-current="page"] { color: var(--sable); padding-left: 6px; }
.menu__chev { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .3s; }
.menu__toggle[aria-expanded="true"] { color: var(--sable); }
.menu__toggle[aria-expanded="true"] .menu__chev { transform: rotate(180deg); }
/* Sous-menus dépliables */
.menu__sub { margin: 0 0 14px; padding: 4px 0 4px 14px; list-style: none; border-left: 2px solid rgba(123,123,255,.5); display: grid; gap: 2px; }
.menu__sub[hidden] { display: none; }
.menu__sub a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--gris-clair); text-decoration: none; font-size: 1rem; font-weight: 500; transition: background-color .2s, color .2s; }
.menu__sub a:hover { background: rgba(255,255,255,.08); color: #fff; }
/* Raccourcis favoris / comparateur */
.menu__quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.menu__quick a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ligne-dark); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; transition: background-color .25s, color .25s; }
.menu__quick a:hover { background: #fff; color: var(--encre); }
/* Coordonnées : cliquables, avec pictogrammes */
.menu__side { display: grid; gap: 18px; align-content: start; color: var(--gris-clair); }
.menu__side-title { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sable); }
.menu__contacts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.menu__contacts a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); color: #fff; text-decoration: none; font-weight: 500; transition: background-color .25s; }
.menu__contacts a:hover { background: rgba(255,255,255,.12); }
.menu__contacts .ico { width: 20px; height: 20px; color: var(--sable); }
.menu__contacts span { min-width: 0; overflow-wrap: anywhere; }
.menu__socials { margin: 0; padding: 0; list-style: none; display: flex; gap: 10px; }
.menu__socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ligne-dark); color: #fff; transition: background-color .25s, color .25s; }
.menu__socials a:hover { background: #fff; color: var(--encre); }
.menu__socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu__socials svg .fill { fill: currentColor; stroke: none; }
/* Entrée du contenu en CSS (pas de GSAP, voir common.js) */
.menu__nav, .menu__side { opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease); }
.menu-open .menu__nav { opacity: 1; transform: none; transition-delay: .35s; }
.menu-open .menu__side { opacity: 1; transform: none; transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .menu__nav, .menu__side { transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--encre); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: -4%; background-size: cover; background-image: var(--bg); background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease, transform 8s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.75) 78%, rgba(0,0,0,.95) 100%),
  radial-gradient(60% 50% at 85% 20%, rgba(160,125,79,.35), transparent 70%); }

.hero__ar {
  position: absolute; top: 16vh; right: -2vw; margin: 0;
  font-family: var(--f-ar); font-weight: 700; font-size: clamp(7rem, 22vw, 22rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.4);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.hero__content { position: relative; padding-top: 140px; }
.hero__title { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: clamp(3rem, 8.2vw, 7.4rem); max-width: 12ch; letter-spacing: -.045em; line-height: .95; }
.hero__lead { margin-top: 28px; max-width: 46ch; font-size: 1.15rem; color: rgba(255,255,255,.82); }

/* Recherche en verre dépoli */
.search {
  margin-top: 40px; max-width: 860px; padding: 10px; border-radius: 26px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
.search__tabs { position: relative; display: inline-flex; padding: 4px; gap: 0; }
.search__tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; color: rgba(255,255,255,.75); transition: color .3s; }
.search__tabs button.is-active { color: var(--encre); }
.search__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; background: #fff; border-radius: 999px; transition: left .5s var(--ease), width .5s var(--ease); }
.search__fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 6px 0 0; }
.search .field { background: #fff; color: var(--encre); border-radius: 18px; padding: 10px 18px 6px; }
.search .field > span { font-size: .78rem; font-weight: 600; color: var(--gris); }
.search .field select { border: 0; padding: 0; height: 30px; background-color: transparent; font-weight: 600; }
.search .field select:focus { box-shadow: none; }
.search .field:focus-within { box-shadow: 0 0 0 3px var(--bleu); }
.search__submit { display: inline-flex; align-items: center; gap: 10px; padding: 0 30px; border: 0; border-radius: 18px; background: var(--bleu); color: #fff; font-weight: 600; cursor: pointer; transition: background-color .3s; }
.search__submit:hover { background: var(--bleu-fonce); }
.search__submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field select { appearance: none; width: 100%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5C66' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; background-size: 18px; padding-right: 26px; cursor: pointer; }

.hero__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; padding-top: 48px; padding-bottom: 32px; }
.hero__progress { display: flex; gap: 8px; }
.hero__progress span { position: relative; width: 56px; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero__progress span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__progress span.is-done::after { transform: scaleX(1); }
.hero__progress span.is-active::after { animation: progress 6s linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: .9rem; color: rgba(255,255,255,.75); }
.hero__scroll i { position: relative; width: 1.5px; height: 44px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: #fff; animation: scrollLine 1.8s var(--ease) infinite; }
@keyframes scrollLine { from { top: -40%; } to { top: 100%; } }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--bleu); color: #fff; overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 36px; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -.02em; white-space: nowrap; }
.marquee b { font-size: 1.1rem; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chiffres ---------- */
.stats { padding: clamp(90px, 12vw, 170px) 0; }
.stats__intro { font-family: var(--f-titre); font-weight: 500; font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.12; letter-spacing: -.03em; max-width: 22ch; }
.stats__intro .w { display: inline-block; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 100px); border-top: 1px solid var(--ligne); }
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--ligne); }
.stat strong { display: block; font-family: var(--f-titre); font-weight: 800; font-size: clamp(3rem, 6.5vw, 5.6rem); line-height: 1; letter-spacing: -.05em; color: var(--bleu); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; color: var(--gris); }

/* ---------- Annonces (horizontal épinglé) ---------- */
.listings { background: var(--encre); color: #fff; overflow: hidden; }
.listings__pin { padding: clamp(80px, 9vw, 120px) 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.listings__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.listings__head h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.listings__meta { display: grid; gap: 16px; justify-items: end; color: var(--gris-clair); }
.listings__bar { width: 200px; height: 2px; background: var(--ligne-dark); }
.listings__bar span { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.listings__track { display: flex; gap: 28px; padding: 0 var(--pad); padding-left: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); width: max-content; }

.card { width: clamp(300px, 30vw, 430px); flex-shrink: 0; text-decoration: none; color: #fff; }
.card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--encre-2); }
.card__media img { width: 100%; height: 115%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.85)); }
.card__badges { position: absolute; z-index: 1; top: 16px; left: 16px; display: flex; gap: 6px; }
.badge { padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.badge--promo { background: var(--bleu); }
.card__price { position: absolute; z-index: 1; left: 20px; bottom: 18px; font-family: var(--f-titre); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; }
.card__price small { font-size: .95rem; font-weight: 600; opacity: .8; }
.card__body { padding: 18px 4px 0; }
.card__ref { font-size: .88rem; color: var(--gris-clair); }
.card__title { font-size: 1.45rem; font-weight: 700; margin-top: 4px; }
.card__specs { display: flex; gap: 14px; margin-top: 10px; color: var(--gris-clair); font-size: .95rem; }

.listings__all { width: clamp(260px, 22vw, 320px); flex-shrink: 0; aspect-ratio: 4 / 5; border-radius: var(--r); border: 1.5px solid var(--ligne-dark); display: flex; flex-direction: column; justify-content: space-between; padding: 32px; text-decoration: none; font-family: var(--f-titre); font-weight: 700; font-size: 2rem; line-height: 1.05; letter-spacing: -.03em; transition: background-color .5s var(--ease), border-color .5s; }
.listings__all i { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .5s var(--ease); }
.listings__all svg { width: 26px; height: 26px; fill: none; stroke: var(--encre); stroke-width: 2.2; }
.listings__all:hover { background: var(--bleu); border-color: var(--bleu); }
.listings__all:hover i { transform: rotate(-45deg); }
/* Section épinglée à la hauteur de l'écran : avec des photos en 4/5, le texte des cartes (titre,
   lieu, chambres, surface) sortait de l'écran pendant le défilement horizontal. Photos plus basses,
   titre et marges resserrés pour que toute la carte reste visible. */
.listings__pin { padding: clamp(56px, 7vh, 96px) 0; }
.listings__head { margin-bottom: clamp(24px, 4vh, 40px); }
.listings__head h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.listings .card { width: clamp(280px, 26vw, 380px); }
.listings .card__media { aspect-ratio: auto; height: min(46vh, 340px); }
.listings .card__media img { height: 100%; }
.listings__all { aspect-ratio: auto; height: min(46vh, 340px); }
@media (max-width: 900px) { .listings .card { width: 78vw; max-width: 380px; } }

/* ---------- Catégories ---------- */
.cats { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.cats__title { font-size: clamp(2.6rem, 6vw, 5.4rem); max-width: 12ch; }
.cats__list { margin-top: 64px; border-top: 1px solid var(--ligne); }
.cats__list li { border-bottom: 1px solid var(--ligne); }
.cats__list a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0; text-decoration: none; overflow: hidden; }
.cats__list a::before { content: ""; position: absolute; inset: 0; background: var(--chaux); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.cats__list a:hover::before { transform: scaleY(1); }
.cats__name { font-family: var(--f-titre); font-weight: 700; font-size: clamp(2rem, 5vw, 4.4rem); letter-spacing: -.04em; line-height: 1; transition: transform .6s var(--ease), color .3s; }
.cats__list a:hover .cats__name { transform: translateX(24px); color: var(--bleu); }
.cats__count { color: var(--gris); text-align: right; transition: transform .6s var(--ease); }
.cats__list a:hover .cats__count { transform: translateX(-24px); }
.cats__thumb { display: none; }
.cats__float { position: fixed; top: 0; left: 0; z-index: 5; width: 340px; aspect-ratio: 4 / 5; pointer-events: none; border-radius: var(--r); overflow: hidden; opacity: 0; transform: scale(.6); }
.cats__float-img { position: absolute; inset: 0; background-size: cover; background-position: center; }

/* ---------- Bande image ---------- */
.reveal-band { position: relative; height: 100vh; min-height: 560px; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--blanc); }
.reveal-band__media { position: absolute; inset: 0; clip-path: inset(18% 24% 18% 24% round 28px); }
.reveal-band__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.reveal-band__media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.reveal-band__text { position: relative; text-align: center; }
.reveal-band__text h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); max-width: 16ch; margin: 0 auto; }

/* ---------- Propriétaires ---------- */
.owners { padding: clamp(90px, 12vw, 160px) 0; }
.owners__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.owners__text h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 13ch; }
.owners__lead { margin-top: 24px; color: var(--gris); max-width: 46ch; font-size: 1.15rem; }
.steps { margin-top: 56px; display: grid; gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--ligne); }
.steps__line { position: absolute; left: 27px; top: 28px; width: 2px; height: calc(100% - 56px); background: var(--bleu); transform: scaleY(0); transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 0 0 40px; }
.step:last-child { padding-bottom: 0; }
.step__num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--ligne); font-family: var(--f-titre); font-weight: 800; font-size: 1.2rem; color: var(--gris); transition: background-color .5s, color .5s, border-color .5s, box-shadow .5s; }
.step.is-on .step__num { background: var(--bleu); border-color: var(--bleu); color: #fff; box-shadow: 0 10px 30px -8px var(--bleu-glow); }
.step h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; padding-top: 12px; }
.step p { color: var(--gris); margin-top: 6px; max-width: 44ch; }

.lead { position: sticky; top: 110px; display: grid; gap: 16px; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--encre); color: #fff; box-shadow: 0 50px 100px -50px rgba(0,0,0,.7); overflow: hidden; isolation: isolate; }
.lead::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, var(--bleu-glow), transparent 65%); }
.lead__title { font-size: 2rem; }
.lead__hint { color: var(--gris-clair); margin-top: -6px; }
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field--float { position: relative; }
.field--float input, .field--float select { width: 100%; height: 62px; padding: 24px 18px 8px; border-radius: 14px; border: 1px solid var(--ligne-dark); background: rgba(255,255,255,.06); color: #fff; font-size: 1rem; transition: border-color .3s, background-color .3s; }
.field--float select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-position: right 16px center; background-repeat: no-repeat; background-size: 18px; padding-right: 44px; }
.field--float select option { color: var(--encre); }
.field--float > span { position: absolute; left: 19px; top: 21px; font-size: 1rem; color: var(--gris-clair); pointer-events: none; transition: transform .3s var(--ease), font-size .3s; transform-origin: left; }
.field--float input:focus + span, .field--float input:not(:placeholder-shown) + span, .field--float select + span { transform: translateY(-12px); font-size: .75rem; }
.field--float input:focus, .field--float select:focus { outline: none; border-color: var(--sable); background: rgba(255,255,255,.1); }
.field--float.has-error input { border-color: #FF6B6B; }

.lead__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.lead__choices label { cursor: pointer; }
.lead__choices input { position: absolute; opacity: 0; pointer-events: none; }
.lead__choices span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ligne-dark); font-weight: 500; font-size: .95rem; transition: background-color .3s, border-color .3s, color .3s; }
.lead__choices input:checked + span { background: #fff; color: var(--encre); border-color: #fff; }
.lead__choices input:focus-visible + span { outline: 3px solid var(--sable); outline-offset: 2px; }
.form-error { color: #C4211A; font-weight: 500; font-size: .95rem; }
.lead .form-error { color: #FF8A8A; }
.form-success { color: #0F8A4B; font-weight: 600; }
.lead .form-success { color: #7CF0B4; }
.lead__note { font-size: .85rem; color: var(--gris-clair); text-align: center; }
.lead .btn--blue::before { background: #fff; }
.lead .btn--blue:hover { color: var(--bleu); }

/* ---------- Services ---------- */
.services { padding: 0 0 clamp(90px, 12vw, 160px); }
.services__title { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 14ch; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; perspective: 1000px; }
.service { position: relative; padding: 40px 36px 44px; border-radius: 24px; background: var(--chaux); transform-style: preserve-3d; transition: background-color .5s, color .5s; overflow: hidden; }
.service::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.service:hover { background: var(--bleu); color: #fff; }
.service:hover::after { opacity: 1; }
.service__icon { width: 64px; height: 64px; border-radius: 18px; background: #fff; display: grid; place-items: center; transform: translateZ(40px); }
.service svg { width: 34px; height: 34px; fill: none; stroke: var(--bleu); stroke-width: 2; stroke-linejoin: round; }
.service h3 { font-size: 1.5rem; margin-top: 64px; letter-spacing: -.02em; transform: translateZ(30px); }
.service p { margin-top: 10px; color: var(--gris); max-width: 32ch; transition: color .5s; transform: translateZ(20px); }
.service:hover p { color: rgba(255,255,255,.82); }

/* ---------- Témoignages ---------- */
.quotes { background: var(--encre); color: #fff; padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.quotes__title { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 14ch; }
.quotes__rows { margin-top: 64px; }
.quotes__row { display: flex; width: max-content; }
.quotes__group { display: flex; gap: 24px; padding-right: 24px; }
.quote { width: clamp(300px, 34vw, 480px); margin: 0; padding: 36px; border-radius: 24px; border: 1px solid var(--ligne-dark); background: rgba(255,255,255,.03); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.quote p { font-family: var(--f-titre); font-weight: 500; font-size: 1.35rem; line-height: 1.35; letter-spacing: -.015em; }
.quote p::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--sable); margin-bottom: 10px; }
.quote footer { display: flex; align-items: center; gap: 14px; }
.quote footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--encre-2); }
.quote cite { font-style: normal; font-weight: 600; display: flex; flex-direction: column; }
.quote cite span { font-weight: 400; color: var(--gris-clair); font-size: .92rem; }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--bleu); color: #fff; padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 70vw; height: 70vw; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%); }
.cta__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 44px; }
.cta__title { font-size: clamp(2.6rem, 6.4vw, 6rem); }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Pied de page ---------- */
.footer { background: var(--encre); color: var(--gris-clair); padding: 96px 0 0; font-size: .95rem; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__about img { width: 210px; height: auto; }
.footer__about p { margin-top: 20px; max-width: 36ch; }
.footer h3 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; letter-spacing: 0; }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: #fff; }
.footer__giant { margin-top: 72px; line-height: .78; text-align: center; overflow: hidden; }
.footer__giant span { display: inline-block; font-family: var(--f-titre); font-weight: 800; font-size: 15.5vw; letter-spacing: -.06em; white-space: nowrap; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ligne-dark); padding-top: 22px; padding-bottom: 26px; font-size: .85rem; }

/* Bouton de contact flottant unique (footer.php) : déploie WhatsApp, appel, Messenger... */
.contact-fab { position: relative; }
.contact-fab__toggle {
  position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--bleu); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(0,0,0,.55); transition: transform .4s var(--ease), background-color .3s;
}
.contact-fab__toggle::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--bleu); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.contact-fab.is-open .contact-fab__toggle::before { animation: none; opacity: 0; }
.contact-fab__toggle:hover { transform: scale(1.06); }
.contact-fab__toggle:focus-visible { outline: 3px solid var(--sable); outline-offset: 3px; }
.contact-fab__toggle svg { position: absolute; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease), opacity .25s; }
.contact-fab__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.contact-fab.is-open .contact-fab__open { opacity: 0; transform: rotate(90deg) scale(.6); }
.contact-fab.is-open .contact-fab__close { opacity: 1; transform: none; }
/* Liste superposée au-dessus du bouton (hors du flux) : fermée, elle n'occupe aucune place et
   ne capte aucun clic, donc ne masque plus favoris/comparateur */
.contact-fab__list {
  position: absolute; right: 0; bottom: calc(100% + 12px); margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; visibility: hidden;
  transition: visibility 0s linear .35s; /* reste visible le temps du fondu de fermeture */
}
.contact-fab.is-open .contact-fab__list { visibility: visible; transition-delay: 0s; }
.contact-fab__list li { opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .25s, transform .35s var(--ease); transition-delay: calc(var(--i) * 25ms); }
.contact-fab.is-open .contact-fab__list { pointer-events: auto; }
.contact-fab.is-open .contact-fab__list li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms); }
.contact-fab__item { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.contact-fab__label { padding: 8px 14px; border-radius: 10px; background: #fff; color: var(--encre); font-weight: 600; font-size: .9rem; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.contact-fab__icon { width: 50px; height: 50px; margin-right: 5px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); transition: transform .3s var(--ease); }
.contact-fab__item:hover .contact-fab__icon, .contact-fab__item:focus-visible .contact-fab__icon { transform: scale(1.1); }
.contact-fab__item:focus-visible { outline: none; }
.contact-fab__item:focus-visible .contact-fab__label { outline: 3px solid var(--sable); }
.contact-fab__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-fab__icon svg .fill { fill: currentColor; stroke: none; }
.contact-fab__item--wa .contact-fab__icon { background: #25D366; }
.contact-fab__item--tel .contact-fab__icon { background: var(--bleu); }
.contact-fab__item--msg .contact-fab__icon { background: linear-gradient(135deg, #0A7CFF, #A033FF 60%, #FF5280); }
.contact-fab__item--mail .contact-fab__icon { background: #E0533D; }
.contact-fab__item--form .contact-fab__icon { background: var(--encre); }


/* =========================================================
   Composants partagés des pages intérieures
   ========================================================= */

/* Icône WhatsApp du bouton d'en-tête */
.header__cta .i-tel { width: 18px; height: 18px; }

/* Sous-menu « Types de bien » */
.nav__drop { position: relative; }
.nav__drop > button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: none; border: 0; cursor: pointer; font-weight: 500; font-size: .95rem; }
.nav__drop > button::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.nav__drop.is-open > button::after { transform: translateY(1px) rotate(-135deg); }
.nav__drop ul { position: absolute; top: calc(100% + 10px); left: 0; display: grid !important; gap: 0; min-width: 200px; padding: 8px; border-radius: 16px; background: #fff; color: var(--noir); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.nav__drop.is-open ul { opacity: 1; visibility: visible; transform: none; }
.nav__drop ul a { border-radius: 10px; }
.nav__drop ul a::after { display: none; }
.nav__drop ul a:hover { background: var(--chaux); color: var(--bleu); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Boutons supplémentaires */
.btn--line { border-color: currentColor; color: var(--noir); background: transparent; }
.btn--line::before { background: var(--noir); }
.btn--line:hover { color: #fff; }
.btn--dark { background: var(--encre); color: #fff; }
.btn--dark::before { background: var(--bleu); }
.link-btn { background: none; border: 0; padding: 6px 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; color: inherit; }
.link-btn:hover { color: var(--bleu); }

/* Puces de choix (radio / case à cocher) */
.chips-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ligne); font-weight: 500; font-size: .95rem; transition: background-color .3s, border-color .3s, color .3s; }
.chip:hover span { border-color: var(--noir); }
.chip input:checked + span { background: var(--noir); border-color: var(--noir); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 2px; }
.lead .chip span { border-color: var(--ligne-dark); }
.lead .chip:hover span { border-color: #fff; }
.lead .chip input:checked + span { background: #fff; color: var(--encre); border-color: #fff; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .lead__legend { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: .95rem; }

/* Champ flottant sur fond clair */
.field--light input, .field--light select, .field--light textarea { background: #fff; color: var(--noir); border-color: var(--ligne); }
.field--light select { background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5C66' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.field--light > span { color: var(--gris); }
.field--light input:focus, .field--light select:focus { background: #fff; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(160,125,79,.15); }
.field--light.has-error input { border-color: #C4211A; }
.field--area textarea { width: 100%; padding: 28px 18px 12px; border-radius: 14px; border: 1px solid var(--ligne-dark); background: rgba(255,255,255,.06); color: #fff; font: inherit; resize: vertical; min-height: 140px; }
.field--area textarea:focus { outline: none; border-color: var(--sable); }
.field--area textarea:focus + span, .field--area textarea:not(:placeholder-shown) + span { transform: translateY(-12px); font-size: .75rem; }
.field--area.has-error textarea { border-color: #FF6B6B; }

/* ---------- En-tête de page ---------- */
.page-head { position: relative; min-height: 72vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--encre); padding: 160px 0 72px; }
.page-head--short { min-height: 56vh; }
.page-head__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-head__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.35) 40%, rgba(0,0,0,.92)), radial-gradient(60% 60% at 90% 10%, rgba(160,125,79,.35), transparent 70%); }
.page-head__inner { position: relative; }
.page-head__title { font-size: clamp(2.8rem, 7vw, 6.4rem); max-width: 16ch; line-height: .98; letter-spacing: -.045em; }
.page-head__lead { margin-top: 22px; max-width: 52ch; font-size: 1.15rem; color: rgba(255,255,255,.82); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .92rem; color: rgba(255,255,255,.7); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { opacity: .5; }

/* ---------- Liste des biens ---------- */
.catalog { padding: 0 0 clamp(80px, 10vw, 140px); }
.filters { position: relative; z-index: 3; margin-top: -44px; background: #fff; border-radius: 24px; padding: 14px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.45); border: 1px solid var(--ligne); }
.filters__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.filters__row .field--select { flex: 1 1 160px; }
.filters__row .filters__tabs, .filters__row .filters__more, .filters__row .search__submit { flex: 0 0 auto; }
.filters__row .search__submit { padding: 0 26px; }
.filters__tabs { position: relative; display: inline-flex; align-items: center; background: var(--chaux); border-radius: 16px; padding: 4px; }
.filters__tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 12px 18px; border-radius: 12px; font-weight: 600; cursor: pointer; color: var(--gris); transition: color .3s; white-space: nowrap; }
.filters__tabs button.is-active { color: #fff; }
.filters__tabs .search__pill { background: var(--noir); border-radius: 12px; }
.field--select { background: var(--chaux); border-radius: 16px; padding: 10px 18px 6px; }
.field--select > span { font-size: .78rem; font-weight: 600; color: var(--gris); }
.field--select select, .field--select input { border: 0; background-color: transparent; height: 30px; font-weight: 600; width: 100%; min-width: 0; color: inherit; }
.field--select input { padding: 0; }
.field--select input::placeholder { color: var(--gris); font-weight: 500; opacity: .8; }
.field--select select:focus, .field--select input:focus { outline: none; }
.field--select:focus-within { box-shadow: 0 0 0 2px var(--bleu); }
.field--select select:disabled { color: var(--gris); cursor: not-allowed; font-weight: 500; }
.filters__more { display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; border-radius: 16px; border: 1.5px solid var(--ligne); background: #fff; font-weight: 600; cursor: pointer; transition: border-color .3s; }
.filters__more:hover, .filters__more[aria-expanded="true"] { border-color: var(--noir); }
.filters__more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.filters__more b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bleu); color: #fff; font-size: .78rem; }
.filters__more b:empty { display: none; }
.filters__panel { overflow: hidden; }
/* Panneau « Plus de critères » (accueil et /biens, même rendu) : 1 grille de champs côte à côte
   (6 par ligne sur grand écran, retour à la ligne automatique), puis les caractéristiques à cocher
   en trois colonnes. */
.filters__panel:not([hidden]) { display: block; margin-top: 14px; padding: 22px 8px 8px; border-top: 1px solid var(--ligne); }
.filters__fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
/* Chambres + salles de bain : enveloppe transparente pour la grille, masquée pour terrains/commercial */
.filters__rooms:not([hidden]) { display: contents; }
.filters__features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--ligne); }
.filters__panel legend { margin-bottom: 12px; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--encre); }
/* Champs du panneau : fond blanc et bordure nette, libellé et texte d'exemple lisibles */
.filters__panel .field--select { background: #fff; border: 1.5px solid #C3C9D8; border-radius: 14px; padding: 9px 16px 5px; transition: border-color .2s; }
.filters__panel .field--select:hover { border-color: var(--gris); }
.filters__panel .field--select:focus-within { border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(160,125,79,.12); }
.filters__panel .field--select > span { font-size: .8rem; font-weight: 600; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filters__panel .field--select select, .filters__panel .field--select input { height: 30px; padding: 0 26px 0 0; font-size: 1rem; color: var(--encre); }
.filters__panel .field--select input { padding-right: 0; }
.filters__panel .field--select input::placeholder { color: #6B7186; font-weight: 500; opacity: 1; }
.filters__panel .chip span { border-color: #C3C9D8; color: var(--encre); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 36px 0 28px; }
.sort { display: flex; align-items: center; gap: 10px; color: var(--gris); font-size: .95rem; }
.sort select { appearance: none; border: 1.5px solid var(--ligne); border-radius: 999px; padding: 10px 40px 10px 16px; font-weight: 600; color: var(--noir); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C5C66' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; cursor: pointer; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.grid .card { width: auto; color: var(--noir); }
.grid .card__media { aspect-ratio: 4 / 3.4; }
.grid .card__media img { height: 100%; }
.grid .card__ref, .grid .card__specs { color: var(--gris); }
.grid .card.is-out { display: none; }

.empty { text-align: center; max-width: 620px; margin: 40px auto 0; padding: 56px 32px; border-radius: 28px; background: var(--chaux); }
.empty h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.empty p { margin-top: 14px; color: var(--gris); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Fiche bien ---------- */
.page-head--bien { min-height: 64vh; }
.page-head--bien .page-head__title { font-size: clamp(2.4rem, 5.6vw, 5rem); max-width: 18ch; }
.bien-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.bien-head__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bien-head__lieu { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: rgba(255,255,255,.82); }
.bien-head__lieu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bien-head__prix { font-family: var(--f-titre); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.bien-head__prix small, .aside-card__prix small { font-size: .4em; font-weight: 600; opacity: .75; letter-spacing: 0; }

.gallery-wrap { margin-top: -40px; position: relative; z-index: 2; }
.gallery { display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; }
.gallery[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 560px; }
.gallery[data-count="2"] { grid-template-columns: 2fr 1fr; grid-template-rows: 520px; }
.gallery[data-count="3"] { grid-template-columns: 2fr 1fr; }
.gallery__item { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: 16px; background: var(--encre-2); }
.gallery__item:first-child { grid-row: span 2; border-radius: 22px; }
.gallery[data-count="1"] .gallery__item:first-child, .gallery[data-count="2"] .gallery__item:first-child { grid-row: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__all { position: absolute; right: 14px; bottom: 14px; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--encre); font-weight: 600; font-size: .9rem; }

.bien { display: grid; grid-template-columns: 1fr 400px; gap: clamp(40px, 6vw, 96px); padding-top: 64px; padding-bottom: clamp(80px, 10vw, 120px); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--ligne); border-radius: 20px; overflow: hidden; }
.facts > div { padding: 22px 22px; border-right: 1px solid var(--ligne); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: .85rem; color: var(--gris); }
.facts dd { margin: 4px 0 0; font-family: var(--f-titre); font-weight: 700; font-size: 1.2rem; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; letter-spacing: -.02em; }
.bien__block { margin-top: 56px; }
.bien__h { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.03em; margin-bottom: 18px; }
.bien__desc { font-size: 1.12rem; line-height: 1.75; max-width: 64ch; }
.bien__muted { color: var(--gris); font-size: .92rem; margin-top: 12px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.features li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ligne); font-weight: 500; }
.features svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--bleu); fill: none; stroke: #fff; stroke-width: 2.6; flex-shrink: 0; }

.credit__grid { display: grid; grid-template-columns: 1fr 260px; gap: 28px; margin-top: 24px; padding: 28px; border-radius: 24px; background: var(--chaux); }
.credit__inputs { display: grid; gap: 22px; }
.range { display: grid; gap: 10px; }
.range > span { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .95rem; }
.range output { color: var(--bleu); }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--bleu) var(--p, 50%), var(--ligne) var(--p, 50%)); cursor: pointer; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--bleu); box-shadow: 0 4px 12px rgba(160,125,79,.35); }
.range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--bleu); }
.credit__result { display: flex; flex-direction: column; justify-content: center; padding: 24px; border-radius: 18px; background: var(--encre); color: #fff; }
.credit__result p { color: var(--gris-clair); font-size: .92rem; }
.credit__result strong { font-family: var(--f-titre); font-size: 2.6rem; letter-spacing: -.04em; line-height: 1.1; margin: 6px 0 10px; }
.credit__result small { font-size: .9rem; font-weight: 500; opacity: .75; letter-spacing: 0; }
.credit__cap { font-size: .85rem !important; }

.map-frame { border-radius: 28px; overflow: hidden; background: var(--chaux); height: clamp(320px, 50vh, 520px); }
.map-frame--small { height: 340px; border-radius: 20px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }

.bien__aside { position: sticky; top: 100px; }
.aside-card { padding: 30px; border-radius: 28px; background: #fff; border: 1px solid var(--ligne); box-shadow: 0 40px 80px -50px rgba(0,0,0,.45); display: grid; gap: 18px; }
.aside-card__label { color: var(--gris); font-size: .9rem; }
.aside-card__prix { font-family: var(--f-titre); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; color: var(--bleu); margin-top: -10px; }
.aside-card__actions { display: grid; gap: 10px; }
.visit { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--ligne); }
.visit h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: none; border: 0; cursor: pointer; font-weight: 600; color: var(--gris); }
.share:hover { color: var(--bleu); }
.share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.similar { background: var(--chaux); padding: clamp(80px, 10vw, 120px) 0; }
.similar__title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-bottom: 44px; }
.not-found { padding: 80px var(--pad) 120px; display: grid; justify-items: start; gap: 24px; font-size: 1.15rem; }

/* Visionneuse */
.lb { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(0,0,0,.96); padding: 70px 90px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 82vh; border-radius: 14px; object-fit: contain; }
.lb button { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .3s; }
.lb button:hover { background: var(--bleu); border-color: var(--bleu); }
.lb svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }

/* ---------- Vendre ---------- */
.owners--page .owners__grid { align-items: start; }
.owners--page .steps { margin-top: 0; }
.owners--page .owners__text { position: sticky; top: 120px; }
.estimate { background: var(--chaux); padding: clamp(90px, 11vw, 150px) 0; }
.estimate__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.estimate__text h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); max-width: 12ch; }
.estimate__text p { margin-top: 20px; color: var(--gris); max-width: 44ch; font-size: 1.1rem; }
.estimate__list { display: grid; gap: 12px; margin-top: 32px; }
.estimate__list li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.estimate__list svg, .wizard__done-icon svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--bleu); fill: none; stroke: #fff; stroke-width: 2.6; }

.wizard { background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 50px 100px -60px rgba(0,0,0,.5); display: grid; gap: 28px; overflow: hidden; }
.wizard__dots { display: flex; gap: 8px; justify-content: space-between; counter-reset: none; }
.wizard__dots li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--gris); font-size: .95rem; transition: color .4s; }
.wizard__dots span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ligne); font-family: var(--f-titre); font-weight: 800; transition: background-color .4s, border-color .4s, color .4s; }
.wizard__dots li.is-on { color: var(--noir); }
.wizard__dots li.is-on span { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.wizard__bar { height: 3px; background: var(--ligne); border-radius: 3px; margin-top: 18px; overflow: hidden; }
.wizard__bar span { display: block; height: 100%; background: var(--bleu); transform: scaleX(.33); transform-origin: left; transition: transform .6s var(--ease); }
.wizard__step { display: grid; gap: 26px; }
.wizard__step[hidden] { display: none; }
.wizard__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 6px; }
.choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.choice { cursor: pointer; position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; justify-items: center; gap: 10px; padding: 20px 8px; border-radius: 18px; border: 1.5px solid var(--ligne); text-align: center; transition: border-color .3s, background-color .3s, color .3s, transform .4s var(--ease); }
.choice svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.choice b { font-weight: 600; font-size: .95rem; }
.choice:hover > span { border-color: var(--noir); transform: translateY(-3px); }
.choice input:checked + span { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 2px; }
.wizard__done { display: grid; justify-items: start; gap: 14px; padding: 20px 0; }
.wizard__done[hidden] { display: none; }
.wizard__done-icon svg { width: 56px; height: 56px; padding: 12px; }
.wizard__done h3 { font-size: 1.8rem; letter-spacing: -.03em; }
.wizard__done p { color: var(--gris); max-width: 46ch; }

.faq { padding: clamp(90px, 11vw, 150px) 0; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); }
.faq__grid h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); max-width: 10ch; }
.faq__item { border-bottom: 1px solid var(--ligne); }
.faq__item:first-child { border-top: 1px solid var(--ligne); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -.02em; }
.faq__q:hover { color: var(--bleu); }
.faq__q i { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ligne); transition: background-color .3s, border-color .3s, transform .5s var(--ease); }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; transition: transform .4s var(--ease); }
.faq__q i::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] i { background: var(--bleu); border-color: var(--bleu); color: #fff; transform: rotate(180deg); }
.faq__q[aria-expanded="true"] i::after { transform: rotate(0); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 60px 28px 0; color: var(--gris); font-size: 1.05rem; max-width: 62ch; }

/* ---------- Contact ---------- */
.contact { padding: clamp(70px, 9vw, 120px) 0 clamp(90px, 11vw, 140px); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; margin-bottom: clamp(60px, 8vw, 100px); }
.contact__cards { display: grid; gap: 12px; }
.open-status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 8px 16px; border-radius: 999px; background: var(--chaux); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.open-status i { width: 10px; height: 10px; border-radius: 50%; background: #C4211A; }
.open-status.is-open i { background: #19B862; box-shadow: 0 0 0 0 rgba(25,184,98,.6); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(25,184,98,0); } }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 20px; border: 1px solid var(--ligne); text-decoration: none; transition: border-color .3s, transform .5s var(--ease), background-color .3s; }
a.contact-card:hover { border-color: var(--bleu); transform: translateX(6px); }
.contact-card svg { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--bleu-pale); fill: none; stroke: var(--bleu); stroke-width: 1.8; flex-shrink: 0; }
.contact-card svg.fill { fill: var(--bleu); stroke: none; }
.contact-card span { display: grid; font-weight: 600; font-size: 1.05rem; }
.contact-card small { font-weight: 500; font-size: .85rem; color: var(--gris); }
.lead--contact { position: static; }


/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header__cta { margin-left: auto; }
}
@media (max-width: 1100px) {
  .filters__row { grid-template-columns: 1fr 1fr; }
  .filters__tabs { grid-column: span 2; display: flex; }
  .filters__tabs button { flex: 1; }
  .filters__more { grid-column: span 2; justify-content: center; height: 52px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .bien { grid-template-columns: 1fr; }
  .bien__aside { position: static; }
  .choices { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .header__cta span { display: none; }
  .page-head { min-height: 64vh; padding-top: 130px; }
  .gallery, .gallery[data-count="2"], .gallery[data-count="3"] { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 160px 160px; }
  .gallery[data-count="1"] { grid-template-rows: 360px; }
  .gallery__item:first-child { grid-column: span 2; grid-row: auto; }
  .gallery[data-count="2"] { grid-template-rows: 300px 200px; }
  .credit__grid { grid-template-columns: 1fr; }
  .estimate__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .owners--page .owners__text { position: static; }
  .header__cta { padding: 12px; }
  .menu__inner { grid-template-columns: 1fr; align-content: start; padding-top: 96px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--ligne); margin-top: 32px; }
  .listings__head { flex-direction: column; align-items: flex-start; }
  .listings__meta { justify-items: start; }
  /* Sans épinglage : défilement tactile */
  .listings__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .listings__track::-webkit-scrollbar { display: none; }
  .card, .listings__all { scroll-snap-align: start; }
  .card { width: 78vw; max-width: 380px; }
  .cats__thumb { display: block; width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex-shrink: 0; order: -1; }
  .cats__list a { justify-content: flex-start; }
  .cats__count { margin-left: auto; }
  .owners__grid { grid-template-columns: 1fr; }
  .lead { position: static; }
  .services__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .filters__row { grid-template-columns: 1fr; }
  .filters__tabs, .filters__more { grid-column: auto; }
  .filters__tabs button { padding: 12px 8px; font-size: .9rem; white-space: normal; line-height: 1.15; }
  .search__tabs button { line-height: 1.15; }
  .results-bar { flex-direction: column-reverse; align-items: flex-start; }
  .features { grid-template-columns: 1fr; }
  .choices { grid-template-columns: repeat(2, 1fr); }
  .wizard__dots li { font-size: 0; gap: 0; }
  .wizard__dots span { font-size: 1rem; }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--ligne); padding: 18px; }
  .facts dd { font-size: 1.02rem; }
  .lb { padding: 70px 12px; }
  .lb__prev, .lb__next { top: auto; bottom: 16px; transform: none; }
  .faq__a p { padding-right: 0; }
  .header__brand { display: none; }
  .menu-btn__text { display: none; }
  .hero__ar { top: 84px; right: -6vw; font-size: 6.5rem; opacity: .7; }
  .hero__content { padding-top: 200px; }
  .search__fields { grid-template-columns: 1fr; }
  .search__submit { justify-content: center; height: 56px; }
  .search__tabs { display: flex; }
  .search__tabs button { flex: 1; padding: 10px 8px; }
  .lead__row { grid-template-columns: 1fr; }
  .cats__count { display: none; }
  .reveal-band { height: 80vh; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .hero__slide { transition: opacity .01ms; }
}

/* =========================================================
   Intégration CodeIgniter (ajouts) : devise, comparateur
   ========================================================= */
.currency-select { position: relative; }
.flag { flex: 0 0 auto; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.currency-select button#currencyBtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 12px 0 14px;
  border-radius: 999px; border: 1.5px solid var(--ligne-dark); background: transparent; color: #fff;
  font-family: var(--f-titre); font-weight: 700; font-size: .9rem; cursor: pointer; letter-spacing: -.01em;
  transition: border-color .3s, background-color .3s;
}
.currency-select button#currencyBtn:hover { border-color: rgba(255,255,255,.6); }
.header.is-solid .currency-select button#currencyBtn { border-color: var(--ligne); color: var(--encre); }
.header.is-solid .currency-select button#currencyBtn:hover { border-color: var(--gris); }
.currency-select__chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform .25s; }
.currency-select.is-open .currency-select__chevron { transform: rotate(180deg); }
.currency-select__list {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px; margin: 0; list-style: none; background: #fff; border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .25s, visibility .25s; z-index: 20;
}
.currency-select.is-open .currency-select__list { opacity: 1; visibility: visible; transform: translateY(0); }
.currency-select__list button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: none;
  color: var(--encre); font-family: var(--f-texte); font-weight: 600; font-size: .92rem; text-align: left; cursor: pointer;
}
.currency-select__list button span { flex: 1; }
.currency-select__list button b { font-size: .8rem; color: var(--gris); font-weight: 700; }
.currency-select__list button:hover, .currency-select__list button.is-active { background: var(--chaux); color: var(--bleu); }
.currency-select__list button.is-active b { color: var(--bleu); }
@media (max-width: 600px) { .currency-select button#currencyBtn > span { display: none; } }

/* Boutons favori + comparateur sur chaque carte (ajoutés par backend-bridge.js) */
.card__tools { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; gap: 8px; }
.card__tool {
  width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.card__tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card__tool:hover { background: rgba(0,0,0,.75); transform: scale(1.08); }
.card__tool:focus-visible { outline: 3px solid var(--sable); outline-offset: 2px; }
.card__tool--fav.is-on { background: #fff; color: #E0245E; }
.card__tool--fav.is-on svg { fill: currentColor; }
.card__tool--compare.is-on { background: #fff; color: var(--bleu); }

/* Colonne fixe en bas à droite (footer.php) : favoris + comparateur, puis bouton de
   contact. La colonne elle-même laisse passer les clics ; seuls les boutons les captent. */
.float-stack { position: fixed; z-index: 86; right: 22px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.float-stack > * { pointer-events: auto; }
.dock { display: grid; gap: 10px; margin-right: 4px; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
/* Menu de contact ouvert : il s'affiche à la place de favoris/comparateur */
.float-stack.is-open .dock { opacity: 0; visibility: hidden; transform: translateY(10px); }
.dock__btn {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--encre); text-decoration: none; border: 1px solid var(--ligne);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.dock__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dock__btn:hover, .dock__btn[aria-current="page"] { background: var(--bleu); color: #fff; transform: scale(1.06); }
.dock__btn:focus-visible { outline: 3px solid var(--sable); outline-offset: 3px; }
.dock__count {
  position: absolute; top: -4px; left: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  background: #E0245E; color: #fff; font-family: var(--f-titre); font-size: .72rem; font-weight: 800; line-height: 21px; text-align: center;
  border: 2px solid #fff;
}
.dock__count[hidden] { display: none; }
.dock__label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); white-space: nowrap;
  padding: 7px 12px; border-radius: 10px; background: var(--encre); color: #fff; font-size: .85rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.dock__btn:hover .dock__label, .dock__btn:focus-visible .dock__label { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 600px) {
  .float-stack { right: 16px; bottom: 16px; gap: 10px; }
  .dock__btn { width: 46px; height: 46px; }
  .dock { margin-right: 7px; }
  .dock__label { display: none; }
}

/* Message temporaire (ajout aux favoris / au comparateur) */
.tf-toast {
  position: fixed; z-index: 260; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px; background: var(--encre); color: #fff; font-weight: 500;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.tf-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.tf-toast a { margin-left: 10px; color: var(--sable); font-weight: 700; }

/* Page comparateur (nouveau template) */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 16px 18px; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.compare-table th { font-family: var(--f-texte); font-weight: 600; font-size: .82rem; color: var(--gris); white-space: nowrap; width: 180px; }
.compare-table td { font-family: var(--f-texte); font-size: .95rem; }
.compare-card-head { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
.compare-card-head img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.compare-card-head h3 { font-family: var(--f-titre); font-size: 1.05rem; letter-spacing: -.02em; }
.compare-remove { align-self: flex-start; border: 1px solid var(--ligne); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .8rem; cursor: pointer; }
.compare-empty { text-align: center; padding: 80px 20px; }

/* Panneau "Plus de critères" du formulaire de recherche (en-tête, fond sombre) : carte blanche
   pour garder le même contraste que sur la page /biens. */
.search .filters__more { height: 46px; padding: 0 18px; border-radius: 999px; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.14); color: #fff; }
.search .filters__more:hover, .search .filters__more[aria-expanded="true"] { border-color: #fff; background: rgba(255,255,255,.24); }
.search .filters__more b { background: #fff; color: var(--encre); }
.search .filters__panel:not([hidden]) {
  margin-top: 10px; background: #fff; border: 0; border-radius: 18px; padding: 20px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); color: var(--encre);
}
/* Lisibilité de la recherche de l'accueil : le verre clair d'origine (blanc à 10 %) laissait les
   onglets blancs se perdre sur les photos claires, et le formulaire (860px) était trop étroit pour
   3 champs + 2 boutons. Fond assombri, formulaire élargi, "Plus de critères" remonté à côté des
   onglets avec son libellé pour laisser toute la ligne aux champs. */
.search {
  max-width: 1040px; padding: 12px; background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.3);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6);
}
.search__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.search__tabs { background: rgba(255,255,255,.14); border-radius: 999px; }
.search__tabs button { color: #fff; }
.search__fields { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; padding-top: 10px; }
.search__fields .field { flex: 1 1 0; min-width: 0; padding: 12px 18px 10px; }
.search__fields .field > span { font-size: .8rem; letter-spacing: .01em; }
/* "padding: 0" plus haut supprimait la réserve de la flèche : le texte passait dessous */
.search__fields .field select { width: 100%; height: 32px; padding-right: 26px; font-size: 1.02rem; color: var(--encre); text-overflow: ellipsis; }
.search__fields .field:focus-within { box-shadow: 0 0 0 3px var(--sable); }
/* Bleu nuit sur fond sombre = bouton invisible : accent clair du thème à la place */
.search__fields .search__submit { flex: 0 0 auto; padding: 0 28px; background: var(--bleu); color: #fff; }
.search__fields .search__submit:hover { background: #fff; color: var(--bleu); }
@media (max-width: 900px) {
  .search__fields { flex-wrap: wrap; }
  .search__fields .field { flex-basis: 100%; }
  .search__fields .search__submit { flex: 1 1 100%; justify-content: center; height: 56px; }
}
@media (max-width: 600px) {
  .search__tabs, .search .filters__more { flex: 1 1 100%; justify-content: center; }
}

/* Sélecteur « Type de bien » (type-select.php) : bouton dans le champ + liste à cocher des types
   et de leurs sous-types. */
.type-select { position: relative; }
.type-select__toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 30px; padding: 0; border: 0; background: none; font-weight: 600; color: inherit; text-align: left; cursor: pointer; }
.search .type-select__toggle { height: 32px; font-size: 1.02rem; color: var(--encre); }
.type-select__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-select__toggle svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--gris); stroke-width: 2; stroke-linecap: round; transition: transform .2s; }
.type-select__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.type-select__panel {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: max(100%, 300px); max-height: 380px; overflow: auto;
  padding: 8px; background: #fff; color: var(--encre); border: 1px solid var(--ligne); border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); text-align: left;
}
/* Liste « Type de bien » : vers le bas par défaut, vers le haut seulement si la place manque (classe opens-up, search-form.js) */
.type-select.opens-up .type-select__panel { top: auto; bottom: calc(100% + 8px); }
.type-select__row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .95rem; font-weight: 600; cursor: pointer; }
.type-select__row:hover { background: var(--chaux); }
.type-select__row input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--bleu); cursor: pointer; }
.type-select__subs { margin: 0 0 6px 19px; padding-left: 8px; border-left: 2px solid var(--ligne); }
.type-select__row--sub { padding: 7px 10px; font-size: .9rem; font-weight: 500; color: var(--gris); }
.type-select__row--sub:has(input:checked) { color: var(--encre); }
.type-select__foot { position: sticky; bottom: -8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px -8px -8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--ligne); }
.type-select__ok { padding: 8px 20px; border: 0; border-radius: 999px; background: var(--bleu); color: #fff; font-weight: 600; cursor: pointer; }
.type-select__ok:hover { background: var(--bleu-fonce); }
/* /biens : tous les filtres sur une seule ligne (offre en liste déroulante, « Plus de critères »
   réduit à son icône, avec le nombre de critères actifs en pastille) */
.filters__row { flex-wrap: nowrap; }
.filters__row .field--select { flex: 1 1 0; min-width: 0; }
.filters__row .filters__offer { flex-grow: .8; }
.filters__row .field--select select { text-overflow: ellipsis; }
.filters__more--icon { position: relative; width: 56px; padding: 0; gap: 0; justify-content: center; }
.filters__more--icon b { position: absolute; top: -7px; right: -7px; }
@media (max-width: 1100px) {
  .filters__row { flex-wrap: wrap; }
  .filters__row .field--select { flex: 1 1 calc(50% - 5px); }
  .filters__row .filters__more--icon { flex: 0 0 56px; height: auto; min-height: 52px; }
  .filters__row .search__submit { flex: 1 1 0; justify-content: center; min-height: 52px; }
}
@media (max-width: 600px) {
  .filters__row .field--select { flex-basis: 100%; }
}
/* Cartes d'annonce : le prix est posé sur la photo, il reste blanc même dans la grille claire
   de /biens (.grid .card passe le texte en noir) ; infos du bien avec pictogrammes. */
.card__price { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.card__media::after { background: linear-gradient(transparent 45%, rgba(0,0,0,.88)); }
.ico { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__ref { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card__ref .ico { width: 16px; height: 16px; }
.card__ref span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__ref small { margin-left: auto; flex: 0 0 auto; font-size: .8rem; opacity: .85; }
.card__specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.card__specs li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 600; font-size: .9rem; }
.grid .card__specs li { background: var(--chaux); color: var(--encre); }
.grid .card__specs .ico { color: var(--bleu); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Formulaires : indicatif pays (intl-tel-input) dans les champs à libellé flottant */
.field--tel .iti { display: block; width: 100%; }
/* Libellé toujours en haut : sinon il se superposerait au drapeau et à l'indicatif */
.field--tel .iti + span { transform: translateY(-12px); font-size: .75rem; }
.field--tel .iti__flag-container { padding-top: 14px; }
.field--tel .iti__selected-flag { background: transparent !important; padding-left: 16px; }
.field--tel .iti__selected-dial-code { color: inherit; font-weight: 600; }
.field--light.field--tel .iti__selected-dial-code { color: var(--encre); }
.iti__arrow { border-top-color: currentColor; }
.iti--container { z-index: 300; }
.iti__country-list { color: var(--encre); border-radius: 12px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.4); font-size: .95rem; }
/* reCAPTCHA */
.form-captcha { min-height: 78px; margin: 4px 0 2px; }
.form-captcha:empty { min-height: 0; }
/* Envoi en cours */
.btn.is-loading, [type="submit"].is-loading { opacity: .65; cursor: progress; pointer-events: none; }
/* =========================================================
   Page À propos (a-propos.php)
   ========================================================= */
.about-story { padding: clamp(90px, 12vw, 160px) 0 0; }
.about-story__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-story__ar { font-family: var(--f-ar); font-weight: 700; font-size: clamp(3.6rem, 8vw, 6.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--bleu); opacity: .35; margin-bottom: 10px; }
.about-story__text h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 14ch; }
.about-story__text p:not(.about-story__ar) { margin-top: 20px; color: var(--gris); font-size: 1.1rem; max-width: 52ch; }
.about-story__text p:not(.about-story__ar):first-of-type { margin-top: 28px; color: var(--encre); font-size: 1.25rem; font-weight: 500; }
.about-story__media { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); }
.about-story__media img { width: 100%; height: 100%; object-fit: cover; }
.about-story__media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.stats--about .stat strong { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
.about-visit { padding: clamp(90px, 12vw, 150px) 0; background: var(--chaux); }
.about-visit__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-visit h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.about-visit__list { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.about-visit__list li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #fff; font-weight: 500; }
.about-visit__list .ico { width: 22px; height: 22px; color: var(--bleu); }
.about-visit__list a { text-decoration: none; }
.about-visit__list a:hover { color: var(--bleu); text-decoration: underline; }
.about-visit__map { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.about-visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) {
  .about-story__grid, .about-visit__grid { grid-template-columns: 1fr; }
  .about-story__media { aspect-ratio: 4 / 3; }
}
/* Bouton WhatsApp de la fiche bien */
.btn--wa { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #25D366; color: #fff; border-color: #25D366; }
.btn--wa::before { background: #128C4A; }
.btn--wa svg { width: 20px; height: 20px; fill: currentColor; }
/* À propos : alternance de fonds pour bien séparer les blocs
   (en-tête sombre > histoire blanc > chiffres nuit > engagements gris > services blanc >
   accès bleu pâle > appel à l'action bleu) */
.about-story { background: #fff; padding-bottom: clamp(90px, 12vw, 160px); }
.stats--about { background: var(--encre); color: #fff; }
.stats--about .stats__grid { border-top-color: var(--ligne-dark); }
.stats--about .stat + .stat { border-left-color: var(--ligne-dark); }
.stats--about .stat strong { color: var(--sable); }
.stats--about .stat span { color: var(--gris-clair); }
.services--about { background: var(--chaux); padding-top: clamp(90px, 12vw, 160px); }
.services--about .service { background: #fff; }
.services--about .service:hover { background: var(--bleu); }
.services--about .service__icon { background: var(--chaux); }
.owners--about { background: #fff; }
.about-visit { background: var(--bleu-pale); }
@media (max-width: 900px) {
  .stats--about .stat:nth-child(n+3) { border-top-color: var(--ligne-dark); }
}
/* =========================================================
   Comparateur (compare.php) : tableau côte à côte, colonne des critères figée sur mobile
   ========================================================= */
.cmp { padding: clamp(56px, 8vw, 100px) 0 clamp(90px, 12vw, 150px); background: var(--chaux); }
.cmp__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.cmp__count { color: var(--gris); font-size: 1.05rem; }
.cmp__count strong { font-family: var(--f-titre); font-size: 1.8rem; color: var(--encre); margin-right: 6px; letter-spacing: -.03em; }
.cmp__bar-actions { display: flex; gap: 20px; }
.cmp__swipe { display: none; }
.cmp__scroll { overflow-x: auto; background: #fff; border: 1px solid var(--ligne); border-radius: 24px; box-shadow: 0 40px 80px -50px rgba(0,0,0,.35); }
.cmp__table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.cmp__table th, .cmp__table td { padding: 16px 20px; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; font-size: .97rem; }
.cmp__table tbody tr:nth-child(even) td, .cmp__table tbody tr:nth-child(even) th { background: #FAFBFD; }
.cmp__table tbody th { width: 190px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); font-weight: 700; }
.cmp__corner { width: 190px; vertical-align: bottom !important; }
.cmp__corner span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); font-weight: 700; }
.cmp__head { padding-top: 20px !important; }
.cmp__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--chaux); margin-bottom: 14px; }
.cmp__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cmp__media:hover img { transform: scale(1.05); }
.cmp__badge { position: absolute; top: 10px; left: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); color: #fff; font-size: .75rem; font-weight: 600; }
.cmp__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--f-titre); font-size: 1.15rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-decoration: none; color: var(--encre); margin-bottom: 10px; }
.cmp__title:hover { color: var(--bleu); }
.cmp__remove { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--ligne); border-radius: 999px; background: #fff; color: var(--gris); font-size: .82rem; font-weight: 600; cursor: pointer; transition: color .2s, border-color .2s; }
.cmp__remove svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cmp__remove:hover { color: #C4211A; border-color: #C4211A; }
.cmp-price { font-family: var(--f-titre); font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; color: var(--encre); }
.cmp-price small { font-size: .8rem; font-weight: 600; color: var(--gris); }
.cmp-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bleu-pale); color: var(--bleu); font-size: .85rem; font-weight: 600; }
.cmp-dash { color: #B4BAC9; }
.cmp-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cmp-features li { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.cmp-features svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: #0F8A4B; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cmp__table td.is-best { background: #EAF7F0 !important; }
.cmp__best { display: block; margin-top: 6px; font-size: .74rem; font-weight: 700; color: #0F8A4B; text-transform: uppercase; letter-spacing: .06em; }
.cmp__actions td, .cmp__actions th { border-bottom: 0; background: #fff !important; padding-top: 20px; padding-bottom: 22px; }
.cmp__actions .btn { padding: 14px 18px; }
.cmp__hint { margin-top: 22px; color: var(--gris); }
.cmp__hint svg { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: var(--bleu); stroke-width: 2; }
.cmp__hint a { color: var(--bleu); font-weight: 600; margin-left: 6px; }
.cmp__empty { max-width: 560px; margin: 0 auto; padding: 56px 32px; text-align: center; background: #fff; border-radius: 24px; border: 1px solid var(--ligne); }
.cmp__empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--bleu-pale); color: var(--bleu); margin-bottom: 18px; }
.cmp__empty-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cmp__empty h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cmp__empty p { margin: 12px 0 26px; color: var(--gris); }
@media (max-width: 760px) {
  .cmp__swipe { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .85rem; color: var(--gris); }
  .cmp__swipe svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cmp__scroll { border-radius: 18px; }
  .cmp__table { width: calc(110px + var(--cmp-n, 2) * 180px); min-width: 100%; }
  .cmp__table th, .cmp__table td { padding: 12px; font-size: .9rem; }
  .cmp__table thead th { width: 180px; }
  .cmp__table thead th.cmp__corner, .cmp__table tbody th { width: 110px; padding: 12px 10px; }
  /* Colonne des critères figée pendant le glissement horizontal */
  .cmp__table tbody th, .cmp__corner { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--ligne); }
  .cmp__table tbody th { font-size: .66rem; letter-spacing: .05em; overflow-wrap: break-word; hyphens: auto; }
  .cmp__media { border-radius: 12px; margin-bottom: 8px; }
  .cmp__title { font-size: 1rem; }
  .cmp-price { font-size: 1.1rem; }
  .cmp__actions .btn { padding: 12px 10px; font-size: .9rem; }
}
/* Assistant d'estimation (vendre.php) : champs adaptés au type de bien et au projet.
   .field / .choice imposent un display : sans !important, l'attribut hidden serait ignoré. */
[data-bien][hidden], [data-projet][hidden] { display: none !important; }
.wizard__context { margin-bottom: 16px; font-weight: 600; color: var(--bleu); }
.wizard__context:empty { display: none; }
.wizard__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .wizard__fields { grid-template-columns: 1fr; } }
/* Footer : coordonnées cliquables avec pictogrammes, réseaux sociaux en icônes */
.footer__contacts a { display: flex; align-items: flex-start; gap: 10px; }
.footer__contacts .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--sable); transition: color .3s; }
.footer__contacts a:hover .ico { color: #fff; }
.footer__contacts a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.footer .footer__socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.footer__socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ligne-dark);
  color: #fff; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.footer__socials a:hover { background: #fff; color: var(--encre); border-color: #fff; transform: translateY(-2px); }
.footer__socials a:focus-visible { outline: 3px solid var(--sable); outline-offset: 2px; }
.footer__socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__socials svg .fill { fill: currentColor; stroke: none; }
/* Mention de copyright (même format que les autres sites MY iMMOTECH) */
.footer__copy a { color: #fff; font-weight: 600; }
.footer__copy a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Mobile : pas de bouton téléphone dans l'en-tête (l'appel est dans le bouton de contact flottant) */
@media (max-width: 900px) { .header__cta { display: none !important; } }

/* Sous-menus de la navigation : ouverts au survol (et au focus clavier), plus seulement au clic.
   Le pont invisible (::before) couvre l'espace entre le lien et le sous-menu pour que le survol
   ne se perde pas en descendant. */
@media (hover: hover) and (pointer: fine) {
  .nav__drop:hover > ul, .nav__drop:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
  .nav__drop:hover > button::after, .nav__drop:focus-within > button::after { transform: translateY(1px) rotate(-135deg); }
}
.nav__drop > ul::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }

/* Formulaire d'estimation (accueil) : colonnes vraiment égales. Le champ téléphone avec indicatif
   (intl-tel-input) imposait sa largeur minimale et élargissait sa colonne. */
.lead > *, .lead__row > * { min-width: 0; }
.lead__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field--float input, .field--float select { min-width: 0; }
@media (max-width: 600px) { .lead__row { grid-template-columns: minmax(0, 1fr); } }
/* reCAPTCHA (304 px fixes) : réduit sur les petits écrans pour ne pas déborder */
@media (max-width: 400px) { .form-captcha { transform: scale(.86); transform-origin: 0 0; min-height: 68px; } }
/* Pagination de /biens (biens.js) */
.pager-wrap { display: grid; justify-items: center; gap: 12px; margin-top: 48px; }
.pager-wrap:has(.pager[hidden]) { margin-top: 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pager[hidden] { display: none; }
.pager button { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--ligne); background: #fff; color: var(--encre); font-family: var(--f-titre); font-weight: 700; font-size: .95rem; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.pager button:hover:not(:disabled) { border-color: var(--encre); }
.pager button.is-active { background: var(--bleu); border-color: var(--bleu); color: #fff; cursor: default; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager button:focus-visible { outline: 3px solid var(--sable); outline-offset: 2px; }
.pager__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pager__arrow--next svg { transform: scaleX(-1); }
.pager__gap { padding: 0 4px; color: var(--gris); font-weight: 700; }
.pager__info { color: var(--gris); font-size: .9rem; }
.pager__info:empty { display: none; }
@media (max-width: 600px) { .pager button { min-width: 40px; height: 40px; padding: 0 10px; } }

/* En-tête mobile / tablette : logo plus grand, devise et menu regroupés à droite */
@media (max-width: 1100px) {
  .header .currency-select { margin-left: auto; }
  .header__cta { margin-left: 0; }
  .header__inner { gap: 12px; }
}
@media (max-width: 600px) {
  .header__logo img { width: 150px; }
  .header__inner { height: 80px; }
  .header.is-solid .header__inner { height: 70px; }
}
/* Accueil : H1 (nom de l'agence + zone) au-dessus du slogan */
.hero__kicker {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 22px; padding: 8px 16px;
  border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-texte); font-size: clamp(.82rem, 1.6vw, .98rem); font-weight: 600; letter-spacing: .01em; line-height: 1.35; color: #fff;
}
.hero__kicker span { font-weight: 500; color: rgba(255,255,255,.75); white-space: pre; }
@media (max-width: 600px) { .hero__kicker { border-radius: 14px; } .hero__kicker span { white-space: normal; } }
/* Cartes : localité et délégation cliquables vers leur page */
.card__place { cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.card__place:hover, .card__place:focus-visible { color: #fff; text-decoration-color: currentColor; outline: none; }
.grid .card__place:hover, .grid .card__place:focus-visible { color: var(--bleu); }
/* Accueil : emplacements les plus demandés (6 quartiers de Marrakech, home.php) */
.places { padding: clamp(80px, 10vw, 130px) 0; background: var(--chaux); }
.places__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: 40px; }
.places__head h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 18ch; }
.places__head p { margin-top: 12px; max-width: 46ch; color: var(--gris); }
.places__all { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--encre); color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; transition: background-color .3s; }
.places__all:hover { background: var(--bleu); }
.places__all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.places__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.places__tile { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 460px; width: 100%; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: var(--encre); box-shadow: 0 30px 60px -40px rgba(0,0,0,.6); }
.places__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.places__tile:hover img { transform: scale(1.08); }
.places__tile:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.places__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.92)); transition: opacity .4s; }
.places__count { position: absolute; top: 16px; left: 16px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--encre); font-size: .8rem; font-weight: 700; }
.places__text { position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 6px; }
.places__text strong { font-family: var(--f-titre); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.places__tagline { color: rgba(255,255,255,.82); font-size: .95rem; line-height: 1.4; }
.places__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; width: max-content; padding-bottom: 3px; border-bottom: 1.5px solid rgba(255,255,255,.4); font-weight: 600; font-size: .92rem; transition: border-color .3s, gap .3s; }
.places__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.places__tile:hover .places__cta { border-color: #fff; gap: 12px; }@media (max-width: 1000px) { .places__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  /* Mobile : cartes en défilement horizontal */
  .places__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; scrollbar-width: none; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .places__grid::-webkit-scrollbar { display: none; }
  .places__grid > li { flex: 0 0 78%; scroll-snap-align: start; }
  .places__tile { aspect-ratio: 4 / 5; }
  .places__all { width: 100%; justify-content: center; }
}
/* Fiche bien : responsive. La grille .bien prenait la largeur minimale de son contenu le plus
   large (carte de contact + reCAPTCHA 304 px) et débordait de l'écran sur mobile. */
.bien { grid-template-columns: minmax(0, 1fr) 400px; }
.bien > *, .bien__main > *, .aside-card > * { min-width: 0; }
.bien__desc { overflow-wrap: anywhere; white-space: normal; }
.page-head--bien .page-head__title { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .bien { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .bien { padding-top: 40px; gap: 40px; }
  .bien__block { margin-top: 40px; }
  .bien-head { gap: 16px; }
  .bien-head__prix { white-space: normal; font-size: 2rem; }
  .aside-card { padding: 20px; border-radius: 22px; }
  .aside-card__prix { font-size: 2.1rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { border-right: 0; }
  .facts > div:nth-child(odd) { border-right: 1px solid var(--ligne); }
  .facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .credit__grid { padding: 18px; gap: 18px; }
  .credit__result strong { font-size: 2rem; }
  .gallery-wrap { margin-top: -24px; }
  .similar__title { margin-bottom: 28px; }
}
/* reCAPTCHA (304 px) dans la carte latérale : réduit quand la place manque */
@media (max-width: 420px) { .aside-card .form-captcha { transform: scale(.88); transform-origin: 0 0; min-height: 69px; } }
@media (max-width: 360px) { .aside-card .form-captcha { transform: scale(.8); min-height: 63px; } }
.bien__desc p + p { margin-top: 1em; }

/* Navigation PC : « Acheter » et « Louer » sont des liens (vers /acheter, /louer) ; leur sous-menu
   s'ouvre au survol. Flèche dessinée en ::before (::after sert au soulignement des liens .nav a). */
.nav .nav__drop > a { display: flex; align-items: center; gap: 8px; }
.nav .nav__drop > a::before { content: ""; order: 2; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.nav .nav__drop:hover > a::before, .nav .nav__drop:focus-within > a::before { transform: translateY(1px) rotate(-135deg); }
/* Galerie de la fiche bien : 5 photos en grille sur ordinateur ; sur mobile, carrousel à faire
   glisser au doigt avec toutes les photos et un compteur (bien.js) */
.gallery__item:nth-child(n+6) { display: none; }
.gallery__counter { display: none; }
.lb { touch-action: pan-y; }
@media (max-width: 600px) {
  .gallery, .gallery[data-count] {
    display: flex; grid-template: none; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
    border-radius: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item, .gallery__item:first-child, .gallery__item:nth-child(n+6) {
    display: block; flex: 0 0 100%; height: 300px; border-radius: 0; scroll-snap-align: start;
  }
  .gallery__all { display: none; }
  .gallery__counter {
    display: block; position: absolute; right: calc(var(--pad) + 12px); bottom: 12px; z-index: 3;
    padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.65); backdrop-filter: blur(6px);
    color: #fff; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none;
  }
}

/* Fiche bien : en-tête sur fond fixe bleu nuit (et non la photo du bien, déjà dans la galerie) */
.page-head--bien { min-height: 0; padding-top: 150px; padding-bottom: 96px; }
.page-head--bien .page-head__bg {
  background:
    radial-gradient(55% 80% at 88% 0%, rgba(123,123,255,.28), transparent 70%),
    radial-gradient(45% 70% at 0% 100%, rgba(160,125,79,.22), transparent 70%),
    linear-gradient(135deg, #1F1A15 0%, #1F1810 60%, #3A2A18 100%);
}
.page-head--bien .page-head__shade { background: none; }
.page-head--bien .page-head__bg::after {
  content: "تعرفشي؟"; position: absolute; right: -2vw; bottom: -4vw; font-family: var(--f-ar); font-weight: 700;
  font-size: clamp(6rem, 18vw, 16rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.1);
  pointer-events: none; white-space: nowrap;
}
@media (max-width: 600px) { .page-head--bien { padding-top: 120px; padding-bottom: 72px; } }
/* Fiche bien : description repliée (« Lire plus » / « Lire moins ») */
.bien__desc.is-clamped { max-height: 260px; overflow: hidden; position: relative; }
.bien__desc.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.desc-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 18px; border: 1.5px solid var(--ligne); border-radius: 999px; background: #fff; color: var(--encre); font-weight: 700; cursor: pointer; transition: border-color .25s, color .25s; }
.desc-toggle:hover { border-color: var(--bleu); color: var(--bleu); }
.desc-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; transition: transform .3s; }
.desc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Fiche bien : vidéo et visite 360° */
.media-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--encre); box-shadow: 0 30px 60px -40px rgba(0,0,0,.5); }
.media-frame--360 { aspect-ratio: 16 / 10; }
.media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--encre); color: #fff; text-decoration: none; font-weight: 700; }
.media-link svg { width: 20px; height: 20px; fill: currentColor; }
.media-link--small { margin-top: 12px; padding: 0; background: none; color: var(--bleu); font-weight: 600; }
.media-link--small svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.media-link--small:hover { text-decoration: underline; }
@media (max-width: 600px) { .media-frame--360 { aspect-ratio: 4 / 5; } }

/* Fiche bien : barre de partage */
.share-bar { padding-top: 18px; border-top: 1px solid var(--ligne); }
.share-bar__title { margin-bottom: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.share-bar__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.share-bar__item[hidden] { display: none; }
.share-bar__item a, .share-bar__item button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; color: #fff; cursor: pointer; text-decoration: none; transition: transform .25s var(--ease), filter .25s; }
.share-bar__item a:hover, .share-bar__item button:hover { transform: translateY(-2px); filter: brightness(1.1); }
.share-bar__item a:focus-visible, .share-bar__item button:focus-visible { outline: 3px solid var(--sable); outline-offset: 2px; }
.share-bar__item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.share-bar__item svg .fill { fill: currentColor; stroke: none; }
.share-bar__item--facebook a { background: #1877F2; }
.share-bar__item--whatsapp a { background: #25D366; }
.share-bar__item--messenger a { background: linear-gradient(135deg, #0A7CFF, #A033FF 60%, #FF5280); }
.share-bar__item--x a { background: #000; }
.share-bar__item--linkedin a { background: #0A66C2; }
.share-bar__item--email a { background: #E0533D; }
.share-bar__item--copy button { background: var(--chaux); color: var(--encre); }
.share-bar__item--native button { background: var(--encre); }
.share-bar__done { margin-top: 10px; color: #0F8A4B; font-weight: 600; font-size: .9rem; }
/* Accueil : nom arabe de l'agence (تعرفشي؟) centré dans le slider */
.hero__ar { left: 0; right: 0; top: 13vh; text-align: center; font-size: clamp(5rem, 13vw, 13rem); -webkit-text-stroke-color: rgba(255,255,255,.55); }
@media (max-width: 600px) { .hero__ar { left: 0; right: 0; top: 110px; font-size: 5.6rem; opacity: .8; } }
/* Comparateur sans limite : chaque bien garde au moins 230 px, le tableau défile à l'horizontale */
.cmp__table { min-width: max(760px, calc(190px + var(--cmp-n, 2) * 230px)); }

/* Prix non communiqué (prix à 0) : « Prix sur demande » */
.price-ask { font-size: .62em; font-weight: 700; letter-spacing: -.01em; }
.card__price .price-ask { font-size: 1.15rem; }
/* Accueil : H1 (nom de l'agence + zone) affiché en grand comme l'ancien slogan, et ligne des zones */
.hero__title { max-width: 15ch; font-size: clamp(2.8rem, 6.6vw, 6.2rem); }
.hero__zone { margin-top: 18px; font-family: var(--f-texte); font-weight: 600; font-size: clamp(.9rem, 1.4vw, 1.05rem); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); }
@media (max-width: 600px) { .hero__title { font-size: clamp(2.3rem, 10vw, 3rem); } }
/* Comparateur : flèches de défilement entre les biens + colonne des critères figée */
.cmp__nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 12px; }
.cmp__nav[hidden] { display: none; }
.cmp__arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--bleu); color: #fff; cursor: pointer; box-shadow: 0 10px 24px -12px var(--bleu-glow); transition: background-color .25s, transform .25s var(--ease), opacity .25s; }
.cmp__arrow:hover:not(:disabled) { background: var(--bleu-fonce); transform: scale(1.06); }
.cmp__arrow:disabled { opacity: .3; cursor: not-allowed; box-shadow: none; }
.cmp__arrow:focus-visible { outline: 3px solid var(--sable); outline-offset: 3px; }
.cmp__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cmp__pos { min-width: 150px; text-align: center; color: var(--gris); font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; }
.cmp__scroll { scroll-behavior: smooth; }
.cmp__table tbody th, .cmp__corner { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 var(--ligne); }
.cmp__table tbody tr:nth-child(even) th { background: #FAFAFC; }
@media (max-width: 600px) { .cmp__nav { justify-content: space-between; } .cmp__pos { min-width: 0; } }
/* Accueil : dans le H1, « agence immobilière à Marrakech » sur une ligne plus petite sous le nom */
.hero__title-sub { display: block; margin-top: .35em; font-family: var(--f-titre); font-size: clamp(1.4rem, 2.8vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: rgba(255,255,255,.92); }
@media (max-width: 600px) { .hero__title-sub { font-size: 1.3rem; } }
/* Champ « Emplacement » : « Délégation : … » en gras, « Localité : … » en retrait */
.field select option.opt-delegation { font-weight: 700; color: var(--bleu); }
.field select option.opt-localite { font-weight: 400; color: var(--encre, #000); }
/* =========================================================
   Em Consult : compléments
   ========================================================= */
/* Budgets en saisie libre (accueil) : même rendu que les listes déroulantes */
.search__fields .field > input[type=number], .search__fields .field > input[type=text] { width: 100%; height: 32px; border: 0; background: transparent; padding: 0; font-size: 1.02rem; font-weight: 600; color: var(--encre); min-width: 0; }
.search__fields .field > input::placeholder { color: #6B7186; font-weight: 500; }
.search__fields .field > input:focus { outline: none; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
/* Nom arabe de la ville (accueil) : contour blanc */
.hero__ar { -webkit-text-stroke-color: #fff; }
/* Titres accentués */
.accent { color: var(--sable); }
/* Pages de texte (mentions légales, confidentialité) */
.legal { padding: clamp(56px, 8vw, 110px) 0; background: var(--blanc); }
.legal__inner { max-width: 860px; }
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 44px 0 14px; letter-spacing: -.02em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--gris); line-height: 1.8; }
.legal p + p { margin-top: 12px; }
.legal ul { margin-top: 12px; display: grid; gap: 6px; list-style: disc; padding-left: 22px; }
.legal a { color: var(--bleu); text-underline-offset: 3px; }
/* En-tête : libellés du menu et numéro sur une seule ligne */
.nav a, .header__cta span { white-space: nowrap; }
.header__logo { flex-shrink: 0; }
@media (max-width: 1360px) { .nav a { padding: 10px 10px; font-size: .92rem; } .header__inner { gap: 18px; } }
@media (max-width: 1240px) { .header__cta span { display: none; } .header__cta { padding: 12px; } }
/* Bandeau de consentement aux cookies */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 190; width: min(560px, calc(100vw - 40px)); display: grid; gap: 16px; padding: 22px 24px; border-radius: 20px; background: var(--encre); color: #fff; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); border: 1px solid var(--ligne-dark); opacity: 0; transform: translateY(20px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.cookie-banner.is-on { opacity: 1; transform: none; }
.cookie-banner strong { display: block; font-family: var(--f-titre); font-size: 1.2rem; margin-bottom: 6px; color: var(--sable); }
.cookie-banner p { font-size: .93rem; line-height: 1.6; color: var(--gris-clair); }
.cookie-banner a { color: #fff; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-banner .btn { padding: 12px 22px; font-size: .95rem; }
.cookie-banner .btn--line { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
@media (max-width: 600px) { .cookie-banner { left: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 18px; } .cookie-banner__actions .btn { flex: 1; } }
.cookie-banner .btn--line::before { background: #fff; } .cookie-banner .btn--line:hover { color: var(--encre); }
/* Liste des biens : nombre de biens disponibles */
.results-bar__left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.results-count { font-size: 1.08rem; color: var(--gris); }
.results-count strong { font-family: var(--f-titre); font-size: 1.6rem; font-weight: 800; color: var(--bleu); letter-spacing: -.02em; margin-right: 4px; }

/* =========================================================
   Fiche détaillée du bien (données complètes du CRM)
   ========================================================= */
.fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.fiche__group { border: 1px solid var(--ligne); border-radius: 20px; padding: 22px 24px; background: var(--blanc); }
.fiche__title { font-family: var(--f-texte); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bleu); margin-bottom: 12px; }
.fiche__list { margin: 0; display: grid; }
.fiche__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.fiche__list > div:last-child { border-bottom: 0; }
.fiche__list dt { color: var(--gris); }
.fiche__list dd { margin: 0; font-weight: 600; text-align: right; }
.equip { display: grid; gap: 26px; }
.equip__group .features li { padding: 11px 0; }
@media (max-width: 760px) { .fiche { grid-template-columns: 1fr; } }

/* Boutons vidéo / visite 360° / plans sur la galerie */
.gallery-media { position: absolute; left: calc(var(--pad) + 18px); bottom: 18px; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-media__btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; border: 0; background: rgba(31,26,21,.82); color: #fff; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); transition: background .3s, transform .3s var(--ease); }
.gallery-media__btn:hover { background: var(--bleu); transform: translateY(-2px); }
.gallery-media__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gallery-media__btn[data-kind="video"] svg { fill: currentColor; stroke: none; }
.gallery-media__btn:focus-visible { outline: 3px solid var(--sable); outline-offset: 2px; }

/* Fenêtre de lecture vidéo / 360° */
.media-modal { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; background: rgba(0,0,0,.94); padding: 70px 4vw 40px; }
.media-modal[hidden] { display: none; }
.media-modal__frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: 100%; border-radius: 16px; overflow: hidden; background: #000; }
.media-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.media-modal__close { position: absolute; top: 18px; right: 18px; }

/* Plans du bien */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.plans__item { display: block; border: 1px solid var(--ligne); border-radius: 16px; overflow: hidden; background: var(--chaux); text-decoration: none; color: var(--encre); }
.plans__item img { width: 100%; height: 220px; object-fit: contain; background: #fff; }
.plans__pdf { display: flex; align-items: center; gap: 10px; padding: 22px; font-weight: 600; }
.plans__pdf svg { width: 22px; height: 22px; fill: none; stroke: var(--bleu); stroke-width: 1.8; }
.media-modal__close { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; } .media-modal__close:hover { background: var(--bleu); border-color: var(--bleu); } .media-modal__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
/* Fiche : groupes en colonnes fluides (pas de vide sous un groupe court) */
.fiche { display: block; columns: 2; column-gap: 22px; }
.fiche__group { break-inside: avoid; margin-bottom: 22px; }
@media (max-width: 760px) { .fiche { columns: 1; } }
/* « Marrakech » en lettres latines sous le nom arabe (même contour blanc, plus petit, espacé) */
.hero__ar-fr { display: block; margin-top: .34em; font-family: var(--f-titre); font-weight: 800; font-size: .2em; line-height: 1; letter-spacing: .55em; text-transform: uppercase; padding-left: .55em; -webkit-text-stroke-width: 1.2px; }
@media (max-width: 600px) { .hero__ar-fr { font-size: .24em; letter-spacing: .45em; padding-left: .45em; } }
/* Nom de la ville (accueil) : taille limitée aussi par la hauteur de l'écran, pour que
   « MARRAKECH » ne descende jamais sur le texte d'introduction (écrans larges mais peu hauts) */
.hero__ar { font-size: clamp(4.5rem, min(11vw, 18vh), 12rem); top: max(96px, 11vh); }
.hero__ar-fr { font-size: .17em; margin-top: .28em; letter-spacing: .6em; padding-left: .6em; }
@media (max-width: 600px) { .hero__ar { font-size: 5rem; top: 100px; } .hero__ar-fr { font-size: .24em; letter-spacing: .45em; padding-left: .45em; } }
/* Accueil : titre principal (H1) au-dessus de l'accroche */
.hero__brand { font-family: var(--f-titre); font-weight: 700; font-size: clamp(.85rem, 1.1vw, 1rem); letter-spacing: .38em; color: var(--sable); text-transform: uppercase; }
.hero__title { margin-top: 10px; font-size: clamp(2rem, min(4vw, 7vh), 3.6rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); max-width: 18ch; }
.hero__title + .hero__lead { margin-top: 16px; }
@media (max-height: 720px) and (min-width: 601px) { .hero__lead { display: none; } }
.hero__brand { text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.45); font-weight: 800; }
/* Nom de la ville sur la droite du slider (le titre et l'accroche sont à gauche) */
@media (min-width: 901px) {
  .hero__ar { left: auto; right: max(4vw, calc((100vw - var(--wrap)) / 2 + 20px)); text-align: center; font-size: clamp(4.5rem, min(9.5vw, 20vh), 11rem); top: calc(46% - .8em); }
}
/* Nom de la ville : plus haut, bord droit aligné sur celui du bloc de recherche (.wrap) */
@media (min-width: 901px) {
  .hero__ar { right: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--pad)); text-align: right; top: calc(30% - .8em); }
  .hero__ar-fr { padding-left: 0; margin-right: -.6em; } /* l'espacement des lettres ajoute un blanc après le H final */
}
/* Bord droit = bord droit réel du bloc de recherche (largeur max. 1040 px dans le cadre .wrap) */
@media (min-width: 901px) {
  .hero__ar { right: max(calc(max(0px, (100% - var(--wrap)) / 2) + var(--pad)), calc(100% - max(0px, (100% - var(--wrap)) / 2) - var(--pad) - 1040px)); }
}
/* Mobile : espace sous « مراكش / MARRAKECH » avant le titre EM CONSULT */
@media (max-width: 900px) {
  .hero__ar { top: 92px; font-size: clamp(4.2rem, 17vw, 6rem); }
  .hero__content { padding-top: calc(92px + clamp(4.2rem, 17vw, 6rem) * 1.75 + 36px); }
}
/* Sélecteur « Type de bien » : cases de recherche rapide (Villa, Riad, Hôtel, Bureau, Local) */
.type-select__quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--ligne); }
.type-select__row--quick { font-weight: 700; color: var(--encre); }
.type-select__row--quick input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--bleu); cursor: pointer; }
.type-select__sep { margin: 4px 10px 2px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.type-select__panel { max-height: min(70vh, 560px); overflow-y: auto; }
/* Liste des types : un par ligne, sous le titre « Tous les types du catalogue » */
.type-select__quick { grid-template-columns: 1fr; gap: 0; border-bottom: 0; padding-bottom: 0; margin-bottom: 4px; }
.type-select__sep { margin: 6px 10px 6px; }
/* Accueil : section « Biens de luxe » */
.luxe { padding: clamp(80px, 10vw, 130px) 0; background: var(--encre); color: #fff; }
.luxe .places__head p { color: var(--gris-clair); max-width: 60ch; margin-top: 14px; }
.luxe .places__head h2 { color: #fff; }
.luxe__eyebrow { margin: 0 0 12px !important; font-size: .8rem !important; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sable) !important; }
.luxe .places__all { color: #fff; border-color: rgba(255,255,255,.35); }
.luxe .card { color: #fff; }
.luxe .card__ref, .luxe .card__ref small { color: var(--gris-clair); }
.luxe .card__specs li { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 1000px) { .luxe__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .luxe__grid { grid-template-columns: 1fr; } }
/* Accueil : seules les photos du slider sont rognées (.hero__media), pour que la liste « Type de bien »
   puisse s'ouvrir vers le bas et déborder sur la section suivante */
.hero { overflow: visible; z-index: 3; }
.hero__media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero__content, .hero__bottom { z-index: 2; }
.hero .search { position: relative; z-index: 5; }
/* Empilement du slider d'accueil : photos (0) < nom de la ville < barre du bas (2) < titre + recherche (4),
   pour que la liste « Type de bien » ouverte passe au-dessus des barres de progression et de « Défiler » */
.hero__content { z-index: 4; }
/* Liste « Type de bien » qui défile : une option amenée à l'écran (clavier, molette) ne reste jamais cachée sous la barre Effacer / Valider */
.type-select__panel { scroll-padding-bottom: 72px; scroll-padding-top: 8px; }

/* Diaporama d'accueil : photo portrait légère (WebP 720x1280) sur téléphone */
@media (max-width: 760px) and (orientation: portrait) {
  .hero__slide { background-image: var(--bg-m, var(--bg)); }
}

/* =========================================================
   Préchargement : animation entièrement en CSS (1 s au total).
   Il n'attend plus les scripts externes (jQuery, GSAP...) : sur mobile en 4G lente,
   l'ancienne version restait affichée jusqu'à 7 s (PageSpeed).
   0 → 0,7 s : logo, nom arabe et compteur 0 → 100 % ; 0,62 s : volet beige ; 0,75 → 1 s : remonte.
   ========================================================= */
@property --tf-n { syntax: "<integer>"; inherits: false; initial-value: 100; }
.loader { display: none; }
.js .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; overflow: hidden;
  background: var(--encre); color: #fff;
  animation: loaderOut .25s cubic-bezier(.76, 0, .24, 1) .75s forwards;
}
.loader__inner { display: grid; justify-items: center; gap: 14px; animation: loaderFade .08s .68s forwards; }
.loader__logo { width: 240px; max-width: 70vw; height: auto; animation: loaderIn .2s ease-out both; }
.loader__ar { font-family: var(--f-ar); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.2; color: transparent; -webkit-text-stroke: 1.5px #fff; animation: loaderAr .55s .05s cubic-bezier(.65, 0, .35, 1) both; }
.loader__count { font-family: var(--f-titre); font-weight: 300; font-size: 1rem; opacity: .6; font-variant-numeric: tabular-nums; counter-reset: tfn var(--tf-n); animation: loaderCount .7s ease-in-out both; }
.loader__count::before { content: counter(tfn); }
.loader__count::after { content: "%"; }
.loader__panel { position: absolute; inset: 0; background: var(--bleu); transform: scaleY(0); transform-origin: bottom; animation: loaderPanel .15s cubic-bezier(.76, 0, .24, 1) .62s forwards; }
@keyframes loaderIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes loaderAr { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes loaderCount { from { --tf-n: 0; } to { --tf-n: 100; } }
@keyframes loaderPanel { to { transform: scaleY(1); } }
@keyframes loaderFade { to { opacity: 0; } }
@keyframes loaderOut { to { transform: translateY(-100%); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .js .loader { display: none; } }

/* Aucun débordement horizontal (mobile) : pendant son entrée, le nom arabe du hero est décalé vers la
   droite ; sans cette coupe, la page s'élargissait et le préchargement n'était plus centré sur l'accueil.
   « clip » (et non « hidden ») ne crée pas de zone de défilement : les éléments collants restent actifs. */
html, body { overflow-x: clip; }

/* Comparateur, téléphone : la règle « sans limite » plus haut (230 px par bien, 760 px minimum)
   écrasait le réglage mobile. Colonne des critères étroite (104 px) et biens de 196 px : un bien
   entier visible et le début du suivant, qui invite à faire glisser. */
@media (max-width: 760px) {
  .cmp__table { min-width: 0; width: calc(104px + var(--cmp-n, 2) * 196px); }
  .cmp__table thead th { width: 196px; }
  .cmp__table thead th.cmp__corner, .cmp__table tbody th { width: 104px; padding: 12px 8px; }
  .cmp__table th, .cmp__table td { padding: 12px 10px; font-size: .88rem; }
  .cmp__table tbody th { font-size: .62rem; letter-spacing: .03em; overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .cmp__corner span { font-size: .62rem; letter-spacing: .04em; }
  .cmp__title { font-size: .95rem; }
  .cmp__remove { padding: 6px 10px; font-size: .78rem; }
  .cmp__badge { font-size: .7rem; padding: 4px 9px; }
  .cmp__bar-actions { gap: 16px; flex-wrap: wrap; }
  .cmp__swipe { display: none; } /* les flèches « Biens 1 sur 3 » suffisent */
  .cmp-features li { font-size: .84rem; align-items: flex-start; }
  .cmp__best { font-size: .66rem; }
}
/* Une seule fiche : pleine largeur, sans colonne vide */
@media (max-width: 760px) { .cmp__table[style*="--cmp-n: 1"] { width: 100%; } }

/* Visionneuse en mode plan : fond blanc sous le plan (souvent un dessin à traits noirs sur fond
   transparent, illisible sur le noir), image la plus grande possible, zoom au clic. */
.plans__item { cursor: zoom-in; }
.lb--plan { padding: 64px 70px; touch-action: auto; } /* pincer pour zoomer sur mobile */
.lb--plan img { width: auto; max-width: 100%; max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); background: #fff; border-radius: 10px; padding: 10px; cursor: zoom-in; }
.lb--plan.is-zoom { display: block; overflow: auto; text-align: center; }
.lb--plan.is-zoom img { max-width: none; max-height: none; cursor: zoom-out; margin: 0 auto; }
@media (max-width: 760px) { .lb--plan { padding: 64px 8px 76px; } .lb--plan img { max-height: calc(100dvh - 150px); padding: 6px; } }
.lb--plan.is-zoom button { position: fixed; z-index: 2; }
