/* ==========================================================
   Rabélys — site public (blanc & or, nouvelle génération)
   ========================================================== */

/* ---------- En-tête ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 18px;
  height: calc(74px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) clamp(16px, 4vw, 48px) 0;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
html.scrolled .hdr { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(70, 52, 20, .35); }
.nav { display: flex; gap: 6px; margin-inline-start: auto; font-size: .92rem; font-weight: 500; }
.nav a { padding: 8px 12px; white-space: nowrap; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.hdr-r { display: flex; align-items: center; gap: 8px; margin-inline-start: 18px; }
.langs { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.langs button { min-width: 34px; height: 30px; padding: 0 8px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.langs button.on { background: #1C1915; color: #fff; }
.hdr-wa { min-height: 42px; padding: 0 16px; }
.hdr-wa .ic { color: #25A35A; }
.hdr .btn-navy.hdr-wa { background: #fff; color: var(--text); border: 1px solid var(--line); }
@media (max-width: 1100px) { .nav { display: none; } .hdr-r { margin-inline-start: auto; } }
.burger { display: none; }
@media (max-width: 1100px) { .burger { display: grid; } }
@media (max-width: 560px) { .hdr .langs { display: none; } }
@media (max-width: 560px) { .hdr { gap: 10px; height: calc(64px + env(safe-area-inset-top, 0px)); } .hdr-wa { display: none !important; } .hdr .wm { font-size: 1rem; letter-spacing: .16em; } .hdr .crest { height: 36px; } }
@media (max-width: 360px) { .hdr .wm { font-size: .92rem; } .hdr .wm small { letter-spacing: .32em; } }

/* ---------- Accueil ---------- */
.hero { max-width: 1320px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) clamp(18px, 5vw, 56px) 24px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero-visual { order: -1; } }
.hero-in > * { animation: rise .9s cubic-bezier(.2, .75, .2, 1) both; }
.hero-in > :nth-child(2) { animation-delay: .12s; } .hero-in > :nth-child(3) { animation-delay: .24s; } .hero-in > :nth-child(4) { animation-delay: .36s; }
.place { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-text); }
.place::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
html[lang="ar"] .place { letter-spacing: 0; font-size: .95rem; }
.hero h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.01em; margin: 18px 0 18px; text-wrap: balance; color: var(--text); }
html[lang="ar"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero .sub { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 52ch; }
.hero-visual { position: relative; }
.hero-img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 66% 60%; border-radius: 400px 400px 28px 28px; box-shadow: var(--shadow); animation: zoomin 1.4s cubic-bezier(.2, .75, .2, 1) both; }
@keyframes zoomin { from { opacity: 0; transform: scale(.96); } }
@media (max-width: 900px) { .hero-img { aspect-ratio: 4 / 3.4; border-radius: 260px 260px 24px 24px; } }
.hv-badge { position: absolute; bottom: 22px; inset-inline-start: -14px; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); font-size: .88rem; font-weight: 600; animation: rise 1s .5s both; }
.hv-badge .ic { color: var(--gold); }
@media (max-width: 900px) { .hv-badge { inset-inline-start: 14px; bottom: 14px; } }

/* Recherche rapide */
.qs { margin-top: 30px; padding: 8px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; }
.qs-tabs { display: flex; gap: 4px; padding: 4px; }
.qs-tabs button { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.qs-tabs button.on { background: #1C1915; color: #fff; }
.qs-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; align-items: stretch; }
.qs-row .fld { background: var(--surface-2); border-color: transparent; }
.qs-row .btn { min-height: 100%; padding: 0 26px; border-radius: 18px; }
@media (max-width: 560px) { .qs-row { grid-template-columns: 1fr 1fr; } .qs-row .btn { grid-column: 1 / -1; min-height: 50px; } }

/* Les deux entrées */
.gates { max-width: 1320px; margin: 0 auto; padding: 12px clamp(18px, 5vw, 56px) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .gates { grid-template-columns: 1fr; gap: 12px; } }
.gate { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 24px; border-radius: 26px; background: var(--bg-soft); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; overflow: hidden; }
.gate::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); transition: transform .5s; }
.gate:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.gate:hover::after { transform: scale(1.4); }
.gate-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm); }
.gate-ic .ic { width: 26px; height: 26px; }
.gate-tx { display: grid; gap: 3px; min-width: 0; position: relative; z-index: 1; }
.gate-tx strong { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; }
.gate-tx span { color: var(--muted); font-size: .92rem; }
.gate-tx em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--gold-text); min-height: 1.2em; }
.gate .arr { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #1C1915; color: #fff; transition: transform .3s; position: relative; z-index: 1; }
.gate:hover .arr { transform: translateX(4px); }
[dir="rtl"] .gate:hover .arr { transform: translateX(-4px); }
@media (max-width: 440px) { .gate { grid-template-columns: auto 1fr; padding: 18px; gap: 14px; } .gate .arr { display: none; } .gate-ic { width: 50px; height: 50px; } }

/* ---------- Sections ---------- */
.sec { max-width: 1320px; margin: 0 auto; padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 56px) 0; }
.sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: 26px; }
.h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.005em; max-width: 20ch; }
html[lang="ar"] .h2 { line-height: 1.45; }
.h2::after { content: none; }
.intro { color: var(--muted); max-width: 48ch; }

/* Filtres */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 10px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .fld { flex: 1 0 150px; padding: 8px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.filters .fld:hover { border-color: var(--line-2); }
.results { color: var(--faint); font-size: .86rem; margin-bottom: 20px; min-height: 1.4em; }

/* Cartes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 34px 24px; }
.card-skel { aspect-ratio: 4 / 5.4; border-radius: 26px; }
.card { display: flex; flex-direction: column; cursor: pointer; border-radius: 26px; outline-offset: 6px; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.card:hover { transform: translateY(-4px); }
.card .art { position: relative; aspect-ratio: 4 / 3.6; border-radius: 24px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.card .art > img, .card .art > svg { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.card:hover .art > img, .card:hover .art > svg { transform: scale(1.06); }
.area { --area-tx: var(--text); position: absolute; bottom: 12px; inset-inline-start: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--area-tx); font-size: .8rem; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.area .ic { width: 14px; height: 14px; color: var(--gold); }
.badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; background: rgba(255, 255, 255, .94); color: var(--gold-text); box-shadow: var(--shadow-sm); }
.badge.st-reserved { background: #FFF4DF; color: #8A5A00; } .badge.st-sold { background: #FDE8E5; color: #9A2F22; }
.cbody { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 4px 0; }
.ctype { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); display: flex; gap: 6px; align-items: center; }
html[lang="ar"] .ctype { letter-spacing: 0; }
.cbody h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .86rem; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.meta .ic { width: 16px; height: 16px; color: var(--gold); }
.cfoot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price b { font-weight: 700; font-size: 1.12rem; }
.price span { color: var(--muted); font-size: .85rem; }
.go { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-text); font-size: .88rem; font-weight: 700; }
.go .ic { width: 16px; height: 16px; transition: transform .3s; }
.card:hover .go .ic { transform: translateX(3px); }
.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 14px; padding: 50px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 24px; color: var(--muted); }

/* ---------- Fiche d'un bien ---------- */
.sheet.wide { width: min(1180px, 100%); }
.pd { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; }
.pd-main, .pd-side { min-width: 0; }
@media (max-width: 920px) { .pd { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
/* Galerie bureau : 1 grande + 4 petites */
.gal-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 8px; height: clamp(280px, 40vw, 440px); border-radius: 22px; overflow: hidden; position: relative; }
.gal-grid button { position: relative; overflow: hidden; background: var(--surface-2); }
.gal-grid button:first-child { grid-row: span 2; }
.gal-grid img, .gal-grid svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; }
.gal-grid button:hover img { transform: scale(1.04); filter: brightness(.94); }
.gal-grid.n1 { grid-template-columns: 1fr; } .gal-grid.n1 button:first-child { grid-row: span 2; }
.gal-grid.n2 { grid-template-columns: 2fr 1fr; } .gal-grid.n2 button:nth-child(2) { grid-row: span 2; }
.gal-grid.n3 { grid-template-columns: 2fr 1fr; }
.gal-grid.n4 { grid-template-columns: 2fr 1fr 1fr; } .gal-grid.n4 button:nth-child(4) { grid-column: span 2; }
.gal-grid button.gal-all { position: absolute; grid-row: auto; overflow: visible; background: rgba(255, 255, 255, .94); bottom: 14px; inset-inline-end: 14px; display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: .85rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.gal-all .ic { width: 16px; height: 16px; }
/* Galerie mobile : carrousel à glisser */
.gal-strip { display: none; position: relative; margin: 0 -18px; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track button { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; background: var(--surface-2); }
.gal-track img, .gal-track svg { width: 100%; height: 100%; object-fit: cover; }
.gal-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.gal-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.gal-dots i.on { width: 18px; border-radius: 6px; background: #fff; }
.gal-count { position: absolute; top: 12px; inset-inline-end: 64px; padding: 4px 10px; border-radius: 999px; background: rgba(28, 25, 21, .6); color: #fff; font-size: .78rem; font-weight: 600; }
@media (max-width: 760px) { .gal-grid { display: none; } .gal-strip { display: block; } }
.pd-head { margin-top: 22px; }
.pd-head h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; margin: 6px 0 10px; overflow-wrap: anywhere; }
.pd-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); }
.pd-sub > .ic { color: var(--gold); width: 18px; height: 18px; }
.pd-sub .fav-btn { margin-inline-start: auto; }
.pd-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 22px 0 6px; }
.spec { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--bg-soft); }
.spec .ic { color: var(--gold); margin-bottom: 6px; }
.spec b { font-weight: 700; font-size: 1.05rem; }
.spec span { font-size: .8rem; color: var(--muted); }
.pd h4 { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; margin: 26px 0 12px; }
.pd-desc { color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.pd-desc.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.more { margin-top: 8px; font-weight: 700; color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.pd .chips .chip { background: var(--bg-soft); border-color: transparent; padding: 8px 14px; }
.pd-side { align-self: start; position: sticky; top: 0; }
.panel { padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.panel h3, .form-title { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; }
.price-l { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--muted); }
.price-l b { font-weight: 700; font-size: 1.5rem; color: var(--text); }
.lead-form { display: grid; gap: 14px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 14px; background: var(--surface-2); color: var(--muted); }
.stepper > span { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.stepper > span .ic { color: var(--gold); width: 16px; height: 16px; }
.stepper > div { display: flex; align-items: center; gap: 14px; color: var(--text); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.stepper b { min-width: 22px; text-align: center; font-size: 1.05rem; }
.avail { display: flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 600; }
.avail .ic { width: 18px; height: 18px; }
.avail.yes { color: var(--ok); } .avail.no { color: var(--danger); }
.sum { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); }
.sum .ln { display: flex; justify-content: space-between; gap: 12px; }
.sum .ln span:first-child { color: var(--muted); }
.sum .tot { border-top: 1px solid var(--line); padding-top: 10px; }
.sum .tot span:last-child { font-weight: 700; font-size: 1.15rem; }
/* Barre d'action mobile (fiche) */
.pd-cta { display: none; }
@media (max-width: 920px) {
  .pd-cta { display: flex; position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom, 0px)); margin: 18px -16px calc(-22px - env(safe-area-inset-bottom, 0px)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); align-items: center; justify-content: space-between; gap: 12px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 4; }
  .pd-cta b { font-size: 1.1rem; } .pd-cta small { color: var(--muted); }
  .pd-side { position: static; }
}
.ok-view { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 14px 0; }
.ok-view .ck { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #C9A462, #8E6C33); color: #fff; margin-bottom: 6px; animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }
.ok-view .ck .ic { width: 36px; height: 36px; }
.ok-view h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; }
.ok-view .ref { display: inline-block; margin: 4px 0 10px; padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); font-weight: 700; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.matches { width: 100%; display: grid; gap: 8px; margin-top: 16px; text-align: start; }
.mrow { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; border: 1px solid var(--line); text-align: start; transition: border-color .2s; }
.mrow:hover { border-color: var(--gold); }
.mrow .th { width: 64px; height: 52px; border-radius: 10px; overflow: hidden; }
.mrow .th img, .mrow .th svg { width: 100%; height: 100%; object-fit: cover; }
.mrow b { display: block; font-weight: 600; }
.mrow small { color: var(--muted); }

/* Visionneuse plein écran */
.lb { position: fixed; inset: 0; z-index: 300; background: #0E0D0B; display: grid; grid-template-rows: auto 1fr auto; color: #fff; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; font-weight: 600; font-size: .9rem; }
.lb-top button, .lb-nav { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .3s; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-nav.prev { inset-inline-start: 16px; } .lb-nav.next { inset-inline-end: 16px; }
@media (max-width: 640px) { .lb-nav { display: none; } }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); scrollbar-width: none; justify-content: center; }
.lb-thumbs button { flex: none; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; opacity: .45; outline: 2px solid transparent; transition: opacity .2s; }
.lb-thumbs button.on { opacity: 1; outline-color: #fff; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Projets d'achat et de vente ---------- */
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .req { grid-template-columns: 1fr; } }
.rq { --rq-bg: var(--bg-soft); display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 38px); border-radius: 30px; border: 1px solid var(--line); background: var(--rq-bg); transition: box-shadow .35s, transform .35s; }
.rq:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.rq h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.85rem; line-height: 1.15; }
.rq > p { color: var(--muted); }
.steps { list-style: none; display: grid; gap: 10px; counter-reset: s; margin: 4px 0 10px; }
.steps li { display: flex; gap: 12px; align-items: center; color: var(--soft); }
.steps li::before { counter-increment: s; content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: var(--gold-text); }
.rq .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Pied de page ---------- */
.foot { margin-top: clamp(72px, 9vw, 120px); background: var(--bg-soft); border-top: 1px solid var(--line); }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 56px clamp(18px, 5vw, 56px) 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
.foot-brand .logo-full { width: 180px; height: auto; }
.foot-brand p { color: var(--muted); margin-top: 16px; max-width: 36ch; }
.foot h5 { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
html[lang="ar"] .foot h5 { letter-spacing: 0; }
.foot ul { list-style: none; display: grid; gap: 10px; color: var(--muted); }
.foot ul a, .foot ul span { display: inline-flex; gap: 10px; align-items: center; }
.foot ul .ic { width: 17px; height: 17px; color: var(--gold); }
.foot a:hover { color: var(--text); }
.foot-b { max-width: 1320px; margin: 0 auto; padding: 18px clamp(18px, 5vw, 56px) calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }

.wa-fab { position: fixed; z-index: 50; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 18px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25A35A; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 163, 90, .55); transition: transform .25s, opacity .25s; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab .ic { width: 26px; height: 26px; }
html.locked .wa-fab { display: none; }
html:not(.scrolled) .wa-fab { opacity: 0; transform: scale(.8); pointer-events: none; }

/* Apparition douce au défilement */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .75, .2, 1), transform .8s cubic-bezier(.2, .75, .2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- Menu latéral ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; }
.drawer-bg { position: absolute; inset: 0; background: rgba(28, 25, 21, .4); opacity: 0; transition: opacity .35s; backdrop-filter: blur(4px); }
.drawer-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(380px, 88vw); display: flex; flex-direction: column; gap: 18px; padding: calc(18px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .3); transform: translateX(100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; }
[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-logo { height: 64px; width: auto; }
.drawer-nav { display: grid; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; opacity: 0; transform: translateX(16px); transition: opacity .4s var(--d, 0ms), transform .4s var(--d, 0ms), color .2s; }
[dir="rtl"] .drawer-nav a { transform: translateX(-16px); }
.drawer.open .drawer-nav a { opacity: 1; transform: none; }
.drawer-nav a .ic:first-child { color: var(--gold); width: 20px; height: 20px; }
.drawer-nav a span { flex: 1; }
.drawer-nav a .ic:last-child { width: 16px; height: 16px; color: var(--faint); }
.drawer-nav a:hover { color: var(--gold-text); }
.drawer-acc { width: 100%; }
.drawer-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drawer-quick a { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: var(--bg-soft); font-size: .8rem; font-weight: 600; }
.drawer-quick .ic { color: var(--gold); }
.drawer-langs { align-self: center; }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-visual { position: relative; }
.about-visual > img:first-child { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 30% 50%; border-radius: 28px 28px 400px 400px; box-shadow: var(--shadow); }
.about-mark { position: absolute; bottom: -22px; inset-inline-end: -10px; width: 110px; padding: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 860px) { .about-visual > img:first-child { aspect-ratio: 4 / 3; border-radius: 24px 24px 260px 260px; } .about-mark { width: 84px; padding: 14px; } }
.about-tx .h2 { margin: 14px 0 16px; }
.lead-p { font-size: 1.12rem; color: var(--soft); margin-bottom: 10px; }
.values { display: grid; gap: 14px; margin-top: 26px; }
.value { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.value .gate-ic { width: 46px; height: 46px; }
.value .gate-ic .ic { width: 20px; height: 20px; }
.value b { display: block; font-weight: 700; }
.value p { color: var(--muted); font-size: .94rem; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; min-height: 250px; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.svc-n { position: absolute; top: 20px; inset-inline-end: 22px; font-family: var(--f-display); font-size: 1.4rem; color: var(--faint); }
.svc b { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.svc p { color: var(--muted); font-size: .93rem; }
.svc .go { margin-top: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); transition: background .3s, color .3s; }
.svc:hover .go { background: #1C1915; color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.qa { border-radius: 20px; background: var(--bg-soft); border: 1px solid transparent; transition: background .3s, border-color .3s; }
.qa[open] { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 1.02rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s, background .3s; }
.qa[open] summary i { transform: rotate(45deg); background: #1C1915; color: #fff; }
.qa summary i .ic { width: 16px; height: 16px; }
.qa-a { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info .h2 { margin-bottom: 12px; }
.cinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 18px; }
@media (max-width: 520px) { .cinfo { grid-template-columns: 1fr; } }
.cinfo > a, .cinfo > div { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--bg-soft); min-width: 0; transition: background .2s; }
.cinfo > a:hover { background: var(--surface-3); }
.cinfo .gate-ic { width: 42px; height: 42px; }
.cinfo .gate-ic .ic { width: 18px; height: 18px; }
.cinfo small { display: block; color: var(--muted); font-size: .78rem; }
.cinfo b { display: block; font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map { width: 100%; height: 240px; border: 0; border-radius: 22px; filter: grayscale(.25) sepia(.15); }

/* ---------- Pages légales ---------- */
.legal h2 { font-family: var(--f-display); font-weight: 600; font-size: 2rem; margin-bottom: 8px; padding-inline-end: 50px; }
.legal h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 6px; color: var(--gold-text); }
.legal p { color: var(--soft); }

/* ---------- Pied de page ---------- */
.foot-in { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
@media (max-width: 960px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-in { grid-template-columns: 1fr; } }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--gold-text); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a:hover { color: var(--text); }

/* ---------- Compatibilité anciens iPhone (iOS < 15 : pas de « aspect-ratio ») ---------- */
@supports not (aspect-ratio: 1 / 1) {
  .card .art { height: 0; padding-top: 90%; }
  .card .art > img, .card .art > svg { position: absolute; top: 0; left: 0; }
  .card-skel { height: 380px; }
  .gal-track button { position: relative; height: 0; padding-top: 75%; }
  .gal-track img, .gal-track svg { position: absolute; top: 0; left: 0; }
  .hero-img { height: 440px; }
  .about-visual > img:first-child { height: 440px; }
  .pp .th, .mcard .th, .mrow .th { height: 56px; }
  @media (max-width: 900px) { .hero-img, .about-visual > img:first-child { height: 300px; } }
}
/* Safari : les images dans des boutons prennent toute la place */
.gal-grid button, .gal-track button { padding: 0; display: block; width: 100%; }
.gal-track button { min-width: 100%; }
.card .art > img, .gal-grid img, .gal-track img { display: block; }

/* ---------- Bandeau « Projet d'achat » ---------- */
.asst-banner { grid-column: 1 / -1; position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 26px; background: #1C1915; color: #fff; text-align: start; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.asst-banner::before { content: ""; position: absolute; inset: -60% -10% auto auto; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 182, 118, .35), transparent 65%); animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(-60px, 40px) scale(1.2); } }
.asst-banner:hover { transform: translateY(-3px); }
.ab-ic { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #EBD099, #A88449); color: #1C1915; }
.ab-ic .ic { width: 26px; height: 26px; }
.ab-tx { position: relative; display: grid; gap: 4px; }
.ab-tx strong { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 600; line-height: 1.15; }
.ab-tx span { color: #D9CEB8; font-size: .94rem; }
.asst-banner .btn { position: relative; pointer-events: none; }
@media (max-width: 640px) { .asst-banner { grid-template-columns: auto 1fr; } .asst-banner .btn { grid-column: 1 / -1; } }

/* ---------- Conversation avec l'assistant ---------- */
.sheet.asst-sheet { width: min(560px, 100%); padding: 0; height: min(760px, 92dvh); display: flex; }
.sheet.asst-sheet .sheet-body { flex: 1; display: flex; min-height: 0; padding: 0; }
.sheet.asst-sheet > .x { top: 16px; }
.asst { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.asst-h { display: flex; align-items: center; gap: 12px; padding: 16px 70px 14px 18px; border-bottom: 1px solid var(--line); }
[dir="rtl"] .asst-h { padding: 16px 18px 14px 70px; }
.asst-h img { width: 40px; height: auto; }
.asst-h div { flex: 1; display: grid; }
.asst-h b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.asst-h small { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(46, 139, 87, .18); }
.asst-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); overscroll-behavior: contain; }
.msg { display: flex; flex-direction: column; gap: 8px; max-width: 88%; animation: rise .35s both; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg .bub { padding: 11px 15px; border-radius: 20px 20px 20px 6px; background: #fff; box-shadow: var(--shadow-sm); font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg.user .bub { background: #1C1915; color: #fff; border-radius: 20px 20px 6px 20px; }
.msg .bub a { color: var(--gold-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.msg.err .bub { background: #FDF0EE; color: #8E2B20; }
.typing .bub { display: flex; gap: 5px; padding: 15px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.asst-cards { display: flex; gap: 10px; overflow-x: auto; max-width: 100%; padding: 2px 2px 6px; scrollbar-width: none; }
.asst-card { flex: 0 0 200px; display: grid; gap: 3px; padding: 8px 8px 10px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); text-align: start; transition: transform .25s; }
.asst-card:hover { transform: translateY(-2px); }
.asst-card .th { height: 110px; border-radius: 12px; overflow: hidden; margin-bottom: 4px; }
.asst-card .th img, .asst-card .th svg { width: 100%; height: 100%; object-fit: cover; }
.asst-card b { font-size: .9rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.asst-card small { color: var(--muted); font-size: .78rem; }
.asst-card em { font-style: normal; font-weight: 700; color: var(--gold-text); font-size: .9rem; }
.asst-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 0; background: var(--bg-soft); }
.asst-quick[hidden] { display: none; }
.asst-quick .chip { background: #fff; }
.asst-in { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px 6px; border-top: 1px solid var(--line); background: #fff; }
.asst-in textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; padding: 12px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; color: var(--text); outline: none; }
.asst-in textarea:focus { border-color: var(--gold); background: #fff; }
.asst-in .btn { width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 50%; flex: none; }
.asst-note { padding: 2px 16px calc(10px + env(safe-area-inset-bottom, 0px)); font-size: .72rem; color: var(--faint); background: #fff; text-align: center; }
@media (max-width: 640px) { .modal:has(.asst-sheet) { padding: 0; align-items: flex-end; } .sheet.asst-sheet { height: 100dvh; max-height: 100dvh; border-radius: 0; } }
.rq-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.rq .rq-acts .btn { align-self: auto; margin-top: 0; }
/* l'assistant ne doit jamais déborder en largeur */
.sheet.asst-sheet, .sheet.asst-sheet .sheet-body, .asst, .asst-log { min-width: 0; max-width: 100%; }
.asst-log { overflow-x: hidden; }
.msg { min-width: 0; }
.msg.assistant { align-self: stretch; max-width: 100%; }
.msg.assistant .bub { max-width: 88%; align-self: flex-start; }
.asst-cards { width: 100%; }

/* ---------- Conversation en tête de l'accueil ---------- */
.hero-ask { margin-top: 28px; padding: 14px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 10px; }
.ha-t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; padding: 2px 4px; }
.ha-t .ic { color: var(--gold); width: 18px; height: 18px; }
.ha-t .live { margin-inline-start: auto; }
.ha-row { display: flex; gap: 8px; align-items: flex-end; }
.ha-row textarea { flex: 1; resize: none; min-height: 54px; padding: 15px 18px; border-radius: 20px; border: 1px solid transparent; background: var(--surface-2); font: inherit; color: var(--text); outline: none; transition: border-color .2s, background .2s; }
.ha-row textarea:focus { border-color: var(--gold); background: #fff; }
.ha-row .btn { width: 54px; height: 54px; min-height: 54px; padding: 0; border-radius: 50%; flex: none; }
.ha-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ha-chips .chip { background: var(--bg-soft); border-color: transparent; font-weight: 600; }
.ha-chips .chip:hover { border-color: var(--gold); }
/* Bouton flottant « Conseiller » */
.ai-fab { position: fixed; z-index: 50; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 18px; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: #1C1915; color: #fff; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); transition: transform .25s, opacity .25s; }
.ai-fab .ic { color: #E7C98A; }
.ai-fab:hover { transform: translateY(-2px); }
html.locked .ai-fab { display: none; }
html:not(.scrolled) .ai-fab { opacity: 0; transform: scale(.85); pointer-events: none; }
/* Téléphone : la conversation passe avant la photo */
@media (max-width: 900px) {
  .hero-visual { order: 0; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); margin: 12px 0 10px; }
  .hero .sub { font-size: .98rem; }
  .hero-ask { margin-top: 18px; }
  .hero-img { aspect-ratio: 16 / 10; border-radius: 200px 200px 24px 24px; }
}
@media (max-width: 560px) { .ha-chips { display: grid; grid-template-columns: 1fr 1fr; } .ha-chips .chip { justify-content: center; text-align: center; font-size: .82rem; padding: 9px 8px; } .ha-row textarea { font-size: .95rem; padding: 16px 14px; } }
