/* Aaqar & Co — landing pages
   Palette : blanc, plâtre (façades casablancaises), graphite et sable (marque), bronze (prix). */
:root {
  --white: #ffffff;
  --platre: #ecE9e3;
  --platre-2: #e2ded6;
  --platre-3: #d3cec4;
  --line: #dedad2;
  --graphite: #212221;
  --night: #2c2d2b;
  --stone: #5e5c57;
  --sable: #c6af79;
  --sable-soft: #efe6cf;
  --bronze: #7a5a26;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--graphite); border-radius: var(--r-sm);
  background: var(--white); color: var(--graphite);
  font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--platre); }
.btn--dark { background: var(--graphite); color: var(--white); }
.btn--dark:hover { background: #3a3b39; }
.btn--sm { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.btn--lg { min-height: 54px; font-size: 16px; padding: 0 24px; }
.btn--light { background: var(--white); border-color: var(--white); border-radius: 999px; }
.btn--light:hover { background: var(--sable-soft); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); border-radius: 999px; }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn--line { background: transparent; }

/* ---------- En-tête ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: background .35s, border-color .35s, color .35s; }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top__logo { position: relative; display: block; }
.top__logo img { height: 34px; width: auto; transition: opacity .35s; }
.top__logo-light { position: absolute; inset: 0; opacity: 0; }
.top__nav { display: flex; align-items: center; gap: 24px; }
.top__link { text-decoration: none; font-size: 15px; }
.top__link:hover { color: var(--bronze); }
.top__cta { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.top__cta:hover { background: #3a3b39; }
.top.is-over { background: transparent; border-color: transparent; backdrop-filter: none; color: var(--white); }
.top.is-over .top__logo-light { opacity: 1; }
.top.is-over .top__logo-dark { opacity: 0; }
.top.is-over .top__link:hover { color: var(--sable); }
.top.is-over .top__cta { background: var(--white); color: var(--graphite); border-color: var(--white); }

/* ---------- Hero : mur de photos en perspective ---------- */
.hero {
  --ink: #171817;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 720px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 110px;
  background: var(--ink); color: var(--white);
}
.wall { position: absolute; inset: 0; z-index: -2; perspective: 1800px; overflow: hidden; }
.wall__plane {
  position: absolute; left: 50%; top: 50%; width: 170%; height: 230%;
  display: flex; justify-content: center; gap: clamp(12px, 1.4vw, 22px);
  transform: translate(-50%, -50%) translate3d(var(--mx, 0px), var(--my, 0px), 0) rotateX(32deg) rotateZ(-16deg) scale(var(--wall-scale));
  opacity: 0;
  transition: opacity 1.6s var(--ease), transform 2.4s var(--ease);
  --wall-scale: 1.18;
}
.hero.is-ready .wall__plane { opacity: 1; --wall-scale: 1; }
.wall__col { flex: 0 0 clamp(120px, 11.5vw, 210px); display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 22px); animation: drift var(--dur, 90s) linear infinite; will-change: transform; }
.wall__col:nth-child(even) { animation-direction: reverse; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tile { position: relative; flex: none; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #262725; opacity: .1; filter: grayscale(1) brightness(.7); transition: opacity 1s var(--ease), filter 1s var(--ease), box-shadow .8s var(--ease); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.is-on { opacity: .5; filter: none; }
.tile.is-match { opacity: 1; box-shadow: 0 0 0 2px var(--sable), 0 0 60px -6px rgba(198,175,121,.75); }
.tile--ask { display: grid; place-items: center; padding: 14%; background: linear-gradient(160deg, #e9dcb8, #b99d5f); color: var(--graphite); text-align: center; font: 600 clamp(15px, 1.4vw, 21px)/1.15 var(--serif); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 46% at 50% 52%, rgba(23,24,23,.9) 0%, rgba(23,24,23,.72) 45%, rgba(23,24,23,.25) 100%),
    linear-gradient(180deg, rgba(23,24,23,.85) 0%, rgba(23,24,23,0) 22%, rgba(23,24,23,0) 72%, var(--ink) 100%);
}

.hero__center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title {
  margin: 0; max-width: 11.5em;
  font: 500 clamp(3rem, 1.2rem + 5.4vw, 6.75rem)/.95 var(--serif);
  letter-spacing: -.02em; text-wrap: balance;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .12em; margin-bottom: -.12em; }
.hero__title .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + 250ms); }
.hero.is-ready .hero__title .w > span { transform: none; }
.hero__lede { margin: 22px 0 0; max-width: 52ch; color: #cfcbc2; font-size: clamp(16px, 1rem + .3vw, 19px); }
.hero__lede, .finder { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero.is-ready .hero__lede { opacity: 1; transform: none; transition-delay: .7s; }
.hero.is-ready .finder { opacity: 1; transform: none; transition-delay: .9s; }

/* Barre de recherche horizontale */
.finder { width: 100%; max-width: 1140px; margin-top: clamp(32px, 5vh, 52px); }
.finder__bar {
  display: grid; grid-template-columns: minmax(0, 1.9fr) repeat(var(--segs, 4), minmax(0, 1fr)) auto; align-items: stretch;
  padding: 8px; border-radius: 22px; background: var(--white); color: var(--graphite); text-align: left;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -20px rgba(0,0,0,.6);
}
.finder__ask { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 10px 20px; border-radius: 14px; cursor: text; transition: background .2s; }
.finder__ask:hover, .finder__ask:focus-within { background: var(--platre); }
.finder__label { font-size: 12.5px; font-weight: 600; color: var(--graphite); }
.finder__ask input { width: 100%; height: 30px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--graphite); text-overflow: ellipsis; }
.finder__ask input::placeholder { color: #8d8b85; }
.finder__seg { position: relative; display: flex; min-width: 0; }
.finder__seg::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); transition: opacity .2s; pointer-events: none; }
.finder__seg:hover::before, .finder__seg:hover + .finder__seg::before, .finder__ask:hover + .finder__seg::before,
.finder__seg:focus-within::before, .finder__seg:focus-within + .finder__seg::before, .finder__ask:focus-within + .finder__seg::before { opacity: 0; }

/* Déclencheur de menu */
.dd {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; column-gap: 8px;
  width: 100%; min-width: 0; padding: 10px 18px; border: 0; border-radius: 14px; background: transparent; text-align: left; color: var(--graphite);
  transition: background .2s;
}
.dd:hover, .dd[aria-expanded="true"] { background: var(--platre); }
.dd__label { grid-column: 1; font-size: 12.5px; font-weight: 600; }
.dd__val { grid-column: 1; height: 30px; line-height: 30px; font-size: 15px; color: var(--stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd.is-set .dd__val { color: var(--graphite); font-weight: 500; }
.dd .ico { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 16px; height: 16px; color: var(--stone); transition: transform .3s var(--ease); }
.dd[aria-expanded="true"] .ico { transform: rotate(180deg); }
.dd.is-set::after { content: ""; position: absolute; top: 14px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--sable); }

.finder__go {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 176px; padding: 0 24px;
  border: 0; border-radius: 15px; background: var(--graphite); color: var(--white); font-weight: 600; font-size: 15.5px; white-space: nowrap;
  transition: background .2s;
}
.finder__go:hover { background: #3a3b39; }
.finder__go .ico { width: 19px; height: 19px; stroke-width: 2.2; }
.finder__under { display: flex; justify-content: center; min-height: 40px; margin-top: 16px; }
.finder__understood, .finder__ideas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 14px; color: #bdb9b0; }
.finder__understood:empty, .finder__ideas:empty { display: none; }
.finder__ideas button { height: 34px; padding: 0 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.04); color: #ece8df; font-size: 14px; backdrop-filter: blur(4px); transition: background .2s, border-color .2s; }
.finder__ideas button:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.finder__understood .token { background: var(--sable); }
.finder__understood .token:hover { background: #d6c293; }

/* Menu déroulant */
.pop {
  position: fixed; z-index: 60; max-height: min(440px, calc(100dvh - 24px)); overflow: auto; padding: 8px;
  background: var(--white); color: var(--graphite); border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(33,34,33,.06), 0 24px 60px -18px rgba(23,24,23,.45);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .18s var(--ease), transform .22s var(--ease);
}
.pop.is-open { opacity: 1; transform: none; }
.pop__title { margin: 8px 12px 6px; font-size: 13px; font-weight: 600; color: var(--stone); }
.pop__list { display: grid; gap: 2px; }
.pop__opt {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; min-height: 46px; padding: 8px 12px; border: 0; border-radius: 11px; background: transparent; text-align: left; font-size: 15px;
  transition: background .15s;
}
.pop__opt:hover, .pop__opt:focus-visible { background: var(--platre); outline: 0; }
.pop__txt { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pop__txt small { font-size: 13px; color: var(--stone); }
.pop__n { min-width: 28px; height: 24px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--platre); font-size: 12.5px; color: var(--stone); font-variant-numeric: tabular-nums; }
.pop__opt:hover .pop__n { background: var(--white); }
.pop__check { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: transparent; }
.pop__check .ico { width: 14px; height: 14px; stroke-width: 3; }
.pop__opt[aria-selected="true"] { font-weight: 600; }
.pop__opt[aria-selected="true"] .pop__check { color: var(--bronze); }
.pop__opt[role="checkbox"] .pop__check { border: 1.5px solid var(--platre-3); }
.pop__opt[aria-checked="true"] .pop__check { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.pop__opt.is-zero { color: #a7a49d; }

/* Panneau budget */
.pop--budget { padding: 20px 20px 18px; }
.bp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bp__head span { font-size: 13px; font-weight: 600; color: var(--stone); }
.bp__head strong { font: 600 22px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.bp__hist { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin: 18px 11px 0; }
.bp__hist i { flex: 1; border-radius: 3px 3px 0 0; background: var(--platre-2); transition: background .2s; }
.bp__hist i.is-in { background: var(--sable); }
.bp__range { position: relative; height: 28px; margin: 0 0 4px; }
.bp__track { position: absolute; left: 11px; right: 11px; top: 12px; height: 4px; border-radius: 2px; background: var(--platre-2); }
.bp__fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--graphite); }
.bp__range input { position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.bp__range input::-webkit-slider-runnable-track { background: transparent; height: 28px; }
.bp__range input::-moz-range-track { background: transparent; }
.bp__range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--white); border: 2px solid var(--graphite); box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: grab; }
.bp__range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--graphite); cursor: grab; }
.bp__range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--sable-soft); }
.bp__ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--stone); font-variant-numeric: tabular-nums; }
.bp__presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.bp__presets button { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 13.5px; transition: border-color .15s, background .15s; }
.bp__presets button:hover { border-color: var(--graphite); }
.bp__presets button[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.bp__note { margin: 14px 0 0; font-size: 12.5px; color: var(--stone); }

/* Tri de la liste */
.fpill .dd { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: none; align-items: center; height: 44px; padding: 0 14px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.fpill .dd:hover, .fpill .dd[aria-expanded="true"] { border-color: var(--graphite); background: var(--white); }
.fpill .dd__label { grid-column: 1; font-weight: 500; color: var(--stone); font-size: 14px; }
.fpill .dd__val { grid-column: 2; height: auto; line-height: 1; font-size: 14px; color: var(--graphite); font-weight: 500; }
.fpill .dd .ico { grid-column: 3; grid-row: auto; }
.fpill .dd.is-set::after { display: none; }

.hero__scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: #bdb9b0; font-size: 13px; text-decoration: none; }
.hero__scroll i { width: 1px; height: 38px; background: linear-gradient(var(--sable), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero__scroll:hover { color: var(--white); }

.token { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--sable-soft); color: var(--graphite); font-weight: 500; font-size: 14px; border: 0; }
.token .ico { width: 14px; height: 14px; }
.token:hover { background: #e6d8b4; }

/* ---------- Liste ---------- */
.list { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.list__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.list__title { margin: 0; font: 500 clamp(2rem, 1.4rem + 1.8vw, 2.9rem)/1.05 var(--serif); }
.list__tools { display: flex; align-items: center; gap: 16px; }
.list__count { margin: 0; color: var(--stone); font-size: 15px; font-variant-numeric: tabular-nums; }
.sort select { height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23212221' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; font-size: 14px; }

.active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; font-size: 14px; color: var(--stone); }
.active .token { background: var(--platre); }
.active__clear { border: 0; background: none; color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; padding: 4px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; margin-top: 20px; }

/* Carte bien */
.card { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-md); transition: box-shadow .4s; scroll-margin-top: 140px; }
.card.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--sable); } 100% { box-shadow: 0 0 0 4px transparent; } }
.card__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--platre); }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; border: 0; padding: 0; background: var(--platre); cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.card__nav { position: absolute; top: 50%; width: 38px; height: 38px; margin-top: -19px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--graphite); opacity: 0; transition: opacity .2s; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.card__nav--prev { left: 10px; }
.card__nav--next { right: 10px; }
.card__media:hover .card__nav, .card__nav:focus-visible { opacity: 1; }
.card__nav[disabled] { opacity: 0 !important; pointer-events: none; }
.card__count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(33,34,33,.78); color: var(--white); font-size: 13px; font-variant-numeric: tabular-nums; pointer-events: none; }
.card__count .ico { width: 15px; height: 15px; }
.card__tag { position: absolute; left: 10px; top: 10px; height: 28px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 500; pointer-events: none; }
.card__ask { /* pas encore de photos */
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; width: 100%; background: var(--platre); color: var(--graphite); text-decoration: none;
}
.card__ask svg.mini { width: 74px; height: auto; }
.card__ask strong { font: 600 20px/1.1 var(--serif); }
.card__ask small { font-size: 14px; color: var(--stone); text-decoration: underline; text-underline-offset: 3px; }
.card__ask:hover small { color: var(--graphite); }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 2px 0; }
.card__title { margin: 0; font: 600 clamp(1.35rem, 1.2rem + .4vw, 1.6rem)/1.15 var(--serif); }
.card__specs { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; color: var(--stone); font-size: 15px; }
.card__specs li:not(:last-child)::after { content: "•"; margin: 0 7px; font-size: 10px; vertical-align: 2px; }
.card__price { margin: 12px 0 0; font-weight: 600; font-size: 22px; color: var(--bronze); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.card__place { margin: 4px 0 0; color: var(--stone); font-size: 14px; }
.card__actions { container-type: inline-size; display: grid; grid-template-columns: minmax(0, max-content) 1fr auto auto; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; }
.act-wa {
  --wa: #25d366;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 16px 0 6px;
  border-radius: 999px; background: var(--graphite); color: var(--white); text-decoration: none; font-weight: 500; font-size: 14.5px;
  transition: color .4s var(--ease), box-shadow .4s var(--ease), transform .3s var(--ease);
}
/* le vert WhatsApp jaillit du logo et remplit le bouton */
.act-wa::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wa);
  clip-path: circle(0 at 26px 50%); transition: clip-path .65s var(--ease);
}
.act-wa:hover, .act-wa:focus-visible { color: var(--white); box-shadow: 0 10px 28px -10px rgba(37,211,102,.75); }
.act-wa:hover::before, .act-wa:focus-visible::before { clip-path: circle(160% at 26px 50%); }
.act-wa:active { transform: scale(.97); }
.act-wa__logo {
  position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--wa); color: var(--white);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.act-wa__logo .ico { width: 22px; height: 22px; }
.act-wa__logo::after { /* onde qui se propage au survol */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--white); opacity: 0;
}
.act-wa:hover .act-wa__logo, .act-wa:focus-visible .act-wa__logo { background: var(--white); color: var(--wa); }
.act-wa:hover .act-wa__logo .ico, .act-wa:focus-visible .act-wa__logo .ico { animation: wa-wobble .8s var(--ease); }
.act-wa:hover .act-wa__logo::after { animation: wa-ping 1.2s var(--ease) .15s infinite; }
@keyframes wa-wobble { 0% { transform: none; } 25% { transform: rotate(-18deg) scale(1.12); } 50% { transform: rotate(12deg) scale(1.08); } 75% { transform: rotate(-6deg); } 100% { transform: none; } }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.act-wa__txt { flex: 0 1 auto; min-width: 0; height: 20px; overflow: hidden; }
.act-wa__roll { display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.act-wa__roll span { height: 20px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-wa__roll span + span { font-weight: 600; }
.act-wa:hover .act-wa__roll, .act-wa:focus-visible .act-wa__roll { transform: translateY(-20px); }
.act-wa__go { width: 18px; height: 18px; }
@container (max-width: 400px) { .act-wa__long { display: none; } }
.act-wa:hover .act-wa__go, .act-wa:focus-visible .act-wa__go { animation: wa-go .6s var(--ease); }
@keyframes wa-go { 0% { transform: none; } 45% { transform: translateX(16px); opacity: 0; } 46% { transform: translateX(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.act-ic { position: relative; width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--graphite); transition: background .2s, color .2s, border-color .2s; }
.act-ic:hover, .act-ic:focus-visible { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.act-ic .ico { width: 20px; height: 20px; }
.act-ic--call:hover .ico { animation: ring .7s var(--ease); }
.card__actions > .act-ic--call { grid-column: 3; }
@keyframes ring { 20% { transform: rotate(-16deg); } 40% { transform: rotate(13deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }
.act-ic::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  padding: 5px 10px; border-radius: 8px; background: var(--graphite); color: var(--white); font-size: 12.5px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.act-ic:hover::after, .act-ic:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.empty { margin: 32px 0; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-md); background: var(--platre); }
.empty h3 { margin: 0; font: 500 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--serif); }
.empty p { margin: 10px 0 0; max-width: 56ch; color: var(--stone); }
.empty__fix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.empty__fix .token { height: 38px; padding: 0 14px; background: var(--white); border: 1px solid var(--line); }
.empty__wa { margin-top: 20px; }

/* ---------- Pied de page ---------- */
.foot { position: relative; overflow: hidden; background: #171817; color: var(--white); }
.foot__top {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end;
  padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(48px, 7vw, 88px);
}
.foot__title { margin: 0; font: 500 clamp(2.6rem, 1.4rem + 3.6vw, 4.8rem)/.98 var(--serif); letter-spacing: -.015em; }
.foot__sub { margin: 22px 0 0; max-width: 40ch; color: #a9a59c; }
.foot__rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid #343532; }
.frow {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 28px; align-items: center; gap: 16px;
  width: 100%; min-height: 76px; padding: 0 8px; border: 0; border-bottom: 1px solid #343532;
  background: none; color: inherit; text-align: left; text-decoration: none; font-size: 16px; cursor: pointer;
}
.frow::before { /* fond qui monte au survol */
  content: ""; position: absolute; inset: 0; z-index: -1; background: #232422; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.frow:hover::before, .frow:focus-visible::before { transform: scaleY(1); }
.frow__k { display: inline-flex; align-items: center; gap: 10px; color: #a9a59c; font-size: 14px; }
.frow__k .ico { width: 18px; height: 18px; color: var(--sable); }
.frow--wa .frow__k .ico { color: #25d366; }
.frow__v { font: 500 clamp(1.15rem, 1rem + .6vw, 1.55rem)/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .45s var(--ease), color .3s; }
.frow:hover .frow__v, .frow:focus-visible .frow__v { transform: translateX(10px); color: var(--sable); }
.frow__go { width: 22px; height: 22px; color: #6f6c66; transition: transform .45s var(--ease), color .3s; }
.frow:hover .frow__go, .frow:focus-visible .frow__go { transform: rotate(-45deg); color: var(--sable); }
.frow--wa:hover .frow__v { color: #25d366; }
.frow--wa:hover .frow__go { color: #25d366; }

.foot__marquee { border-top: 1px solid #2c2d2a; border-bottom: 1px solid #2c2d2a; overflow: hidden; padding: clamp(14px, 2vw, 26px) 0; }
.foot__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.foot__marquee:hover .foot__track { animation-play-state: paused; }
.foot__track span {
  display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px);
  font: 500 clamp(3.4rem, 2rem + 6vw, 8.5rem)/1 var(--serif); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(236,232,223,.32); transition: color .4s, -webkit-text-stroke-color .4s;
}
.foot__track span:hover { color: var(--sable); -webkit-text-stroke-color: var(--sable); }
.foot__track i { width: .16em; height: .16em; border-radius: 50%; background: var(--sable); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

.foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: #8f8b83; }
.foot__logo img { height: 30px; width: auto; }
.foot__nav { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.foot__nav a { color: #d8d4cb; text-decoration: none; background: linear-gradient(var(--sable), var(--sable)) left bottom / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; padding-bottom: 2px; }
.foot__nav a:hover { color: var(--white); background-size: 100% 1px; }
.foot__copy { margin: 0; }

/* ---------- Galerie ---------- */
dialog { padding: 0; border: 0; color: inherit; }
dialog::backdrop { background: rgba(20,21,20,.6); }
.gal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; overflow: hidden; background: #1a1b1a; color: var(--white); }
.gal[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.gal__top { display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.gal__info { flex: 1; min-width: 0; }
.gal__title { margin: 0; font: 600 20px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal__price { margin: 2px 0 0; color: var(--sable); font-weight: 500; font-size: 14px; }
.gal__count { margin: 0; color: #bdbbb5; font-size: 14px; font-variant-numeric: tabular-nums; }
.gal__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #4a4b48; border-radius: 50%; background: transparent; color: var(--white); }
.gal__close:hover { background: #2e2f2d; }
.gal__stage { position: relative; min-height: 0; }
.gal__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.gal__slide img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px clamp(8px, 6vw, 96px); object-fit: contain; }
.gal__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); }
.gal__nav:hover { background: rgba(255,255,255,.22); }
.gal__nav--prev { left: 16px; }
.gal__nav--next { right: 16px; }
.gal__nav .ico { width: 24px; height: 24px; }
.gal__bottom { display: flex; align-items: center; gap: 20px; padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom)); }
.gal__thumbs { flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gal__thumbs::-webkit-scrollbar { display: none; }
.gal__thumbs button { flex: none; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #2e2f2d; opacity: .55; transition: opacity .2s, border-color .2s; }
.gal__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--sable); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal__actions { display: flex; gap: 8px; }
.gal__actions .btn { border-radius: 999px; }

/* ---------- Formulaire message ---------- */
.lead { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 16px; background: var(--white); overflow: auto; }
.lead[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.lead__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.lead__title { margin: 0; font: 600 26px/1.1 var(--serif); }
.lead__close { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.lead__bien { display: flex; align-items: center; gap: 12px; margin: 16px 22px 0; padding: 10px; border-radius: var(--r-sm); background: var(--platre); }
.lead__bien img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.lead__bien p { margin: 0; font-size: 14px; line-height: 1.35; }
.lead__bien b { display: block; font: 600 17px/1.2 var(--serif); }
.lead__body { display: grid; gap: 14px; padding: 18px 22px 22px; }
.lf { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.lf > span, .lf legend { font-size: 13px; font-weight: 500; color: var(--stone); padding: 0; }
.lf input, .lf textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); font-size: 16px; }
.lf textarea { resize: vertical; min-height: 84px; }
.lf input:focus, .lf textarea:focus { outline: 0; border-color: var(--graphite); box-shadow: 0 0 0 3px var(--sable-soft); }
.lf__err { display: none; font-style: normal; font-size: 13px; color: #a3261b; }
.lf.is-bad input { border-color: #a3261b; }
.lf.is-bad .lf__err { display: block; }
.lf--choice { display: flex; flex-wrap: wrap; gap: 8px; }
.lf--choice legend { width: 100%; margin-bottom: 6px; }
.lf--choice label { position: relative; }
.lf--choice input { position: absolute; opacity: 0; }
.lf--choice span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; }
.lf--choice input:checked + span { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.lf--choice input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.lead__error { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: #f8e9e6; color: #7d1d14; font-size: 14px; }
.lead__error a { font-weight: 600; }
.lead__submit[disabled] { opacity: .6; cursor: wait; }
.lead__note { margin: 0; font-size: 12.5px; color: var(--stone); }
.lead__done { padding: 28px 22px 26px; text-align: center; }
.lead__ok { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--sable-soft); color: var(--bronze); stroke-width: 2.4; }
.lead__done h3 { margin: 14px 0 6px; font: 600 26px/1.1 var(--serif); }
.lead__done p { margin: 0 0 20px; color: var(--stone); }

/* ---------- Animations ---------- */
/* Persiennes : les photos s'ouvrent comme des volets casablancais */
.blinds { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; pointer-events: none; }
.blinds i { flex: 1; margin-bottom: -1px; background: var(--white); transform-origin: 50% 0; transition: transform .7s var(--ease); transition-delay: calc(var(--d, 0ms) + var(--b) * 55ms); }
.card.is-in .blinds i { transform: scaleY(0); }
.card .card__media img { transform: scale(1.14); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0ms); }
.card.is-in .card__media img { transform: scale(1); }
.card__body > * { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0ms) + 380ms); }
.card.is-in .card__body > * { opacity: 1; transform: none; }
.card.is-in .card__body > :nth-child(2) { transition-delay: calc(var(--d, 0ms) + 440ms); }
.card.is-in .card__body > :nth-child(3) { transition-delay: calc(var(--d, 0ms) + 500ms); }
.card.is-in .card__body > :nth-child(n+4) { transition-delay: calc(var(--d, 0ms) + 560ms); }
.no-js-anim .blinds { display: none; }

/* Inclinaison 3D de la photo sous la souris */
.card__media { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); will-change: transform; }
.card__media.is-tilt { transition: transform .12s linear, box-shadow .5s var(--ease); box-shadow: 0 24px 50px -24px rgba(23,24,23,.45); }
.card__media::after { /* reflet qui suit la souris */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card__media.is-tilt::after { opacity: 1; }

/* Curseur « Voir les photos » */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 96px; height: 96px; margin: -48px 0 0 -48px; display: grid; place-items: center; text-align: center;
  border-radius: 50%; background: rgba(23,24,23,.82); backdrop-filter: blur(6px); color: var(--white);
  font-size: 12.5px; font-weight: 600; line-height: 1.2;
  transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0); transition: transform .35s var(--ease);
}
.cursor.is-on { transform: translate3d(var(--cx), var(--cy), 0) scale(1); }
.cursor b { display: block; font: 600 20px/1 var(--serif); color: var(--sable); margin-bottom: 2px; }
@media (pointer: fine) { .card__media.has-cursor .slide { cursor: none; } }

/* Titre de liste : mots qui montent à l'entrée */
.list__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.list__title .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.list__title.is-in .w > span { transform: none; }

/* Footer : le titre se dévoile ligne par ligne */
.foot__title, .foot__sub, .frow { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.foot.is-in .foot__title, .foot.is-in .foot__sub, .foot.is-in .frow { opacity: 1; transform: none; }
.foot.is-in .foot__sub { transition-delay: .12s; }
.foot.is-in li:nth-child(1) .frow { transition-delay: .18s; }
.foot.is-in li:nth-child(2) .frow { transition-delay: .26s; }
.foot.is-in li:nth-child(3) .frow { transition-delay: .34s; }
.foot.is-in li:nth-child(4) .frow { transition-delay: .42s; }

/* Boutons aimantés */
.magnet { transform: translate3d(var(--mgx, 0), var(--mgy, 0), 0); transition: transform .35s var(--ease), background .2s; }

/* Galerie : ouverture */
.gal[open] .gal__stage { animation: gal-in .6s var(--ease); }
@keyframes gal-in { from { opacity: 0; transform: scale(.96); } }

/* Moins de filtres : barre plus courte */
.finder:has(.finder__bar[data-segs="1"]) { max-width: 860px; }
.finder:has(.finder__bar[data-segs="0"]) { max-width: 720px; }

/* Page à un seul projet (ex. lots de terrain) : pas de recherche, deux actions */
.hero__solo { display: none; }
.is-solo .finder { display: none; }
.is-solo .hero__solo {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4vh, 44px);
  opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero.is-ready .hero__solo { opacity: 1; transform: none; transition-delay: .9s; }
.act-wa--hero { height: 58px; padding-right: 22px; font-size: 15.5px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.act-wa--hero .act-wa__logo { width: 46px; height: 46px; }
.hero__photos { height: 58px; padding: 0 24px; }
.is-solo .list__tools { display: none; }
.is-solo .grid { grid-template-columns: minmax(0, 1fr); }
.is-solo .card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
.is-solo .card__media { aspect-ratio: auto; min-height: 460px; height: 100%; }
.is-solo .card__body { padding: clamp(24px, 3vw, 44px); justify-content: center; }
.is-solo .card__actions { margin-top: 0; padding-top: 28px; }
.is-solo .card__title { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .foot__top { grid-template-columns: 1fr; align-items: start; }
  .finder__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 8px; }
  .finder__ask { grid-column: 1 / -1; background: var(--platre); }
  .finder__seg:nth-child(2)::before, .finder__seg:nth-child(4)::before { opacity: 0; }
  .finder__seg:nth-child(n+4) { border-top: 1px solid var(--line); }
  .finder__go { grid-column: 1 / -1; min-height: 54px; }
  .finder__bar[data-segs="1"] .finder__seg { grid-column: 1 / -1; }
  .is-solo .card { grid-template-columns: 1fr; }
  .is-solo .card__media { min-height: 0; aspect-ratio: 4 / 3; }
  .is-solo .card__body { padding: 20px 2px 4px; }
  .wall__col { flex-basis: clamp(110px, 17vw, 170px); }
}
@media (max-width: 640px) {
  .top__in { height: 60px; }
  .top__logo img { height: 28px; }
  .top__link { display: none; }
  html { scroll-padding-top: 72px; }
  .hero { min-height: 100svh; padding: 92px 0 72px; }
  .hero__lede { font-size: 15.5px; margin-top: 16px; }
  .hero__scroll { display: none; }
  .finder { margin-top: 26px; }
  .finder__bar { border-radius: 18px; }
  .finder__ask, .dd { padding: 8px 12px; }
  .finder__label, .dd__label { font-size: 11.5px; }
  .dd__val { font-size: 14px; }
  .list__head { align-items: flex-start; flex-direction: column; }
  .finder__under { justify-content: flex-start; margin: 14px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .finder__ideas, .finder__understood { flex-wrap: nowrap; white-space: nowrap; }
  .finder__ideas button { flex: none; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .card__nav { display: none; }
  .frow { grid-template-columns: minmax(0, 1fr) 24px; grid-template-rows: auto auto; row-gap: 4px; padding: 14px 4px; }
  .frow__k { grid-column: 1; }
  .frow__v { grid-column: 1; white-space: normal; }
  .frow__go { grid-column: 2; grid-row: 1 / 3; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
  .cursor { display: none; }
  .gal__nav { display: none; }
  .gal__bottom { flex-direction: column; align-items: stretch; gap: 10px; }
  .gal__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .wall__col, .foot__track { animation: none !important; }
  .blinds { display: none; }
  .card .card__media img, .card__body > * { transform: none !important; opacity: 1 !important; }
}
