/* =========================================================
   V2 — Médias réels (vidéo héros, logo officiel, galerie, vivre, équipe)
   Chargé après styles.css
   ========================================================= */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Logo officiel : wordmark découpé lettre par lettre ---- */
.wordmark { display: block; width: 100%; aspect-ratio: 1589 / 186; white-space: nowrap; font-size: 0; line-height: 0; }
.wordmark i { display: inline-block; height: 100%; vertical-align: top; background-image: url("../assets/logo/wordmark-blanc.png"); background-repeat: no-repeat; opacity: 0; transform: translateY(45%) rotateX(-70deg); transform-origin: 50% 100%; }
.wordmark--pre { width: min(70vw, 720px); margin: 0 auto; }
.wordmark--pre i { animation: chIn .9s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 150ms); }
.preloader__sub { display: block; width: min(52vw, 520px); height: auto; margin: 22px auto 0; opacity: 0; animation: fadeIn 1s .85s forwards; }
.wordmark--hero { width: min(86vw, 1000px); margin: 0 auto; filter: drop-shadow(0 12px 40px rgba(0,0,0,.55)); perspective: 800px; }
body.is-ready .wordmark--hero i { animation: chIn 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 50ms + 120ms); }
.hero__sub { display: block; width: min(50vw, 560px); height: auto; margin: clamp(12px, 1.8vw, 26px) auto 0; opacity: 0; transform: translateY(14px); filter: drop-shadow(0 6px 20px rgba(0,0,0,.5)); }
body.is-ready .hero__sub { animation: riseIn 1.2s .8s var(--ease) forwards; }
@media (prefers-reduced-motion: reduce) { .wordmark i, .hero__sub, .preloader__sub { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* ---- Navigation / pied de page : logo image ---- */
.nav__brand img { height: 36px; width: auto; display: block; transition: height .5s var(--ease); }
.nav.is-scrolled .nav__brand img { height: 30px; }
.footer__logo { height: 40px; width: auto; align-self: flex-start; }
@media (max-width: 560px) { .hero__eyebrow { font-size: 10.5px; letter-spacing: .18em; padding: 8px 14px; } .hero__eyebrow .dot { display: none; } }

/* ---- Héros vidéo ---- */
/* v10 — inset: -8.24% remplace « inset:-6% + scale(1.04) ».
   Résultat géométrique identique, mais la couche n'a plus de matrice d'échelle :
   la parallaxe n'applique qu'une translation en pixels entiers, donc aucun
   rééchantillonnage de la texture vidéo à chaque image.
   Le poster est porté par le conteneur pour permettre le fondu vers la vidéo. */
.hero__video { position: absolute; inset: -8.24%; will-change: transform;
  background: #1a2226 url("../assets/video/hero-poster.jpg") 50% 45% / cover no-repeat; }
/* v10 — le « filter » a été retiré : appliqué à une <video>, il force chaque image
   décodée à repasser par le pipeline de composition GPU au lieu de la superposition
   matérielle directe. L'étalonnage (saturate .9 / contrast 1.05) sera cuit au réencodage.
   L'opacité 0 -> 1 assure le fondu depuis le poster (classe posée par main.js). */
.hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  opacity: 0; transition: opacity .9s var(--ease); }
.hero__bg.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__bg { transition: none; } }
/* v10 — « mix-blend-mode » retiré : un mode de fusion posé au-dessus de la vidéo
   oblige le navigateur à rasteriser la vidéo dans le même groupe de composition.
   Opacité abaissée de .09 à .045 pour compenser la perte du mode « overlay ». */
.hero__grain { position: absolute; inset: 0; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero__vignette { background: radial-gradient(ellipse at 50% 42%, transparent 25%, rgba(11,15,14,.55) 85%, rgba(11,15,14,.85) 100%), linear-gradient(180deg, rgba(11,15,14,.62) 0%, rgba(11,15,14,.25) 22%, rgba(11,15,14,.18) 55%, var(--bg) 100%); }
/* v10 — « blur(30px) » retiré : le fond de cette couche est un dégradé vertical déjà
   parfaitement lisse sur 40% de la hauteur, le flou n'y ajoutait rien de visible tout en
   coûtant deux passes GPU par image. « mix-blend-mode: screen » retiré pour la même
   raison que le grain (voir ci-dessus). */
.hero__fog { opacity: .55; filter: none; mix-blend-mode: normal; }
.hero__particles { opacity: .45; }
.hero__tagline { text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero__eyebrow, .hero__status { background: rgba(11,15,14,.5); }

/* ---- Galerie horizontale pilotée par le défilement ---- */
.gallery { position: relative; height: 340vh; background: var(--bg-solid-2); }
.gallery__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.gallery__head { position: absolute; top: clamp(70px, 9vh, 110px); left: 0; right: 0; z-index: 2; pointer-events: none; }
.gallery__head .h2 { max-width: 12ch; font-size: clamp(30px, 3.8vw, 52px); }
.gallery__track { display: flex; gap: 22px; align-items: center; padding-left: max(24px, calc((100vw - var(--container)) / 2)); padding-right: 24px; will-change: transform; margin-top: clamp(80px, 12vh, 140px); }
.gcard { position: relative; flex: none; width: clamp(280px, 30vw, 460px); aspect-ratio: 4/3; margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.gcard--tall { width: clamp(240px, 24vw, 360px); aspect-ratio: 3/4; }
.gcard img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.92) brightness(.92); }
.gcard:hover img { transform: scale(1); filter: saturate(1) brightness(1); }
.gcard figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(180deg, transparent, rgba(11,15,14,.85)); display: flex; flex-direction: column; gap: 2px; }
.gcard figcaption b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.gcard figcaption span { font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.gcard--cta { display: grid; place-items: center; background: linear-gradient(160deg, var(--gold-dim), transparent); border-color: rgba(200,164,106,.4); }
.gcard__link { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 30px; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.gcard__link b { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #0b0f0e; font-family: var(--sans); font-weight: 400; transition: transform .5s var(--ease); }
.gcard__link:hover b { transform: translateX(8px); }
.gallery__progress { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: min(300px, 40vw); height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.gallery__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
@media (max-width: 860px) {
  .gallery { height: auto; }
  .gallery__pin { position: static; height: auto; overflow: visible; padding: 72px 0 40px; }
  .gallery__head { position: static; margin-bottom: 26px; }
  .gallery__track { overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 0; padding-bottom: 20px; scrollbar-width: none; }
  .gallery__track::-webkit-scrollbar { display: none; }
  .gcard { scroll-snap-align: center; width: 78vw; }
  .gcard--tall { width: 62vw; }
  .gallery__progress { display: none; }
}

/* ---- Vivre ici (vidéo immersive + téléphone) ---- */
.vivre { position: relative; min-height: 100vh; display: flex; align-items: center; padding: clamp(100px, 12vw, 160px) 0; overflow: hidden; background: var(--bg); }
.vivre__media { position: absolute; inset: 0; }
/* v10 — filter retiré (saturate .85 / contrast 1.05 cuit dans vivre-loop.mp4 au réencodage) */
.vivre__video { width: 100%; height: 100%; object-fit: cover; opacity: .9; transform: scale(1.06); }
.vivre__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,15,14,.92) 0%, rgba(11,15,14,.78) 45%, rgba(11,15,14,.35) 100%), linear-gradient(180deg, var(--bg-solid-2) 0%, transparent 18%, transparent 82%, var(--bg-solid-2) 100%); }
.vivre__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.vivre__list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.vivre__list li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.vivre__list li:last-child { border-bottom: 1px solid var(--line); }
.vivre__list b { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--gold-2); }
.vivre__list span { color: var(--ink-2); font-size: 15px; }
.phone { position: relative; justify-self: center; width: min(300px, 70vw); }
.phone__frame { position: relative; aspect-ratio: 9/19.2; border-radius: 44px; overflow: hidden; background: #000; border: 8px solid #141a17; box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.08); transform: rotate(-4deg); transition: transform 1s var(--ease); }
.phone:hover .phone__frame { transform: rotate(0deg) scale(1.02); }
.phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 34%; height: 26px; border-radius: 20px; background: #0b0f0e; z-index: 3; }
.phone__video { width: 100%; height: 100%; object-fit: cover; }
.phone__ui { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 54px 16px 20px; pointer-events: none; }
.phone__pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(11,15,14,.55); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: 12px; }
.phone__card { padding: 14px 16px; border-radius: 18px; background: rgba(11,15,14,.6); backdrop-filter: blur(12px); border: 1px solid var(--line); display: grid; gap: 2px; }
.phone__card b { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.phone__card span { font-size: 12px; color: var(--ink-2); }
.phone__glow { position: absolute; inset: 10% -20% -10%; background: radial-gradient(ellipse, rgba(200,164,106,.28), transparent 65%); filter: blur(30px); z-index: -1; animation: breathe 6s ease-in-out infinite; }
@media (max-width: 960px) { .vivre__inner { grid-template-columns: 1fr; } .phone { margin-top: 20px; } .vivre__shade { background: linear-gradient(180deg, rgba(11,15,14,.9), rgba(11,15,14,.75) 60%, rgba(11,15,14,.9)); } }
@media (max-width: 560px) { .vivre__list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---- Fiches logements avec photos ---- */
.lcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); filter: saturate(.95); }
.lcard:hover .lcard__media img { transform: scale(1.1); }
.lcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,14,.15), transparent 40%, rgba(11,15,14,.55)); pointer-events: none; }
.lcard__media::before { z-index: 1; }
.lcard__tag { z-index: 2; }

/* ---- Équipe (contact) ---- */
.team { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--glass); }
.team__faces { display: flex; }
.team__faces img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--bg-solid-2); margin-left: -14px; filter: saturate(.85); }
.team__faces img:first-child { margin-left: 0; }
.team__text { display: grid; gap: 2px; }
.team__text b { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.team__text span { font-size: 13px; color: var(--muted); }

/* ---- Appel final avec photo parallaxe ---- */
.cta-final__bg { position: absolute; inset: -15% 0; z-index: 0; will-change: transform; }
.cta-final__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.7); }
.cta-final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-solid-2), rgba(11,15,14,.35) 30%, rgba(11,15,14,.35) 70%, var(--bg-solid-2)); z-index: 0; }
.cta-final .container { position: relative; z-index: 1; }
.cta-final__glow { z-index: 1; opacity: .8; }

/* ---- Témoignages : arrière-plan doux ---- */
.testimonials { background: radial-gradient(800px 400px at 50% 0%, rgba(200,164,106,.08), transparent 70%), var(--bg); }

/* ---- Logements en direct (Building Stack) ---- */
.live-badge { display: inline-flex; align-items: center; gap: 7px; margin-left: 14px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 11px; letter-spacing: .12em; text-transform: none; color: var(--ink-2); vertical-align: middle; }
.live-badge.is-live { border-color: rgba(88,200,138,.35); color: var(--ink); }
.live-badge a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.listings__count { margin: -6px 0 0; font-family: var(--serif); font-size: 20px; color: var(--gold-2); }
.chip b { font-weight: 500; opacity: .6; margin-left: 4px; }
.chip.is-active b { opacity: .8; }
.lcard__live { position: absolute; top: 18px; right: 16px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,15,14,.6); backdrop-filter: blur(6px); border: 1px solid var(--line); }
.lcard__foot { gap: 12px; }
.lcard__foot .link-arrow { margin-top: 0; font-size: 14px; }
.lcard--skeleton { pointer-events: none; }
.lcard--skeleton .lcard__media { background: linear-gradient(90deg, var(--bg-3) 25%, #1c2521 50%, var(--bg-3) 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.lcard--skeleton .lcard__body i { display: block; height: 14px; border-radius: 6px; margin: 8px 0; background: linear-gradient(90deg, var(--bg-3) 25%, #1c2521 50%, var(--bg-3) 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.lcard--skeleton .lcard__body i:first-child { height: 26px; width: 40%; } .lcard--skeleton .lcard__body i:nth-child(2) { width: 85%; } .lcard--skeleton .lcard__body i:nth-child(3) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.listings__more .btn .dot { margin-right: 2px; }

.listings__grid.is-collapsed .lcard:nth-child(n+10) { display: none; }
.lgrid-more { grid-column: 1 / -1; justify-self: center; margin-top: 10px; }

/* ---- Propriétaires : candidature d'immeuble ---- */
.owners { position: relative; overflow: hidden; background: var(--bg); }
.owners__bg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.owners__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.6); }
.owners::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(11,15,14,.55) 25%, rgba(11,15,14,.6) 75%, var(--bg-solid-2) 100%); }
.owners .container { position: relative; z-index: 1; }
.owners__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.owners__steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.owners__steps li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--glass); }
.owners__steps li span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #0b0f0e; font-weight: 600; font-size: 14px; }
.owners__steps b { display: block; font-weight: 500; font-size: 16px; }
.owners__steps small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.owners__perks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.owners__perks div { padding: 16px 18px; border-radius: var(--r-md); border: 1px dashed rgba(200,164,106,.35); display: grid; gap: 4px; }
.owners__perks b { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--gold-2); }
.owners__perks span { font-size: 13.5px; color: var(--ink-2); }
.form--owner { position: sticky; top: 100px; }
.form__head { display: grid; gap: 6px; margin-bottom: 6px; }
.form__kicker { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.form__head h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; line-height: 1.2; }
.form__head p { margin: 0; color: var(--muted); font-size: 14px; }
.form__row--3 { grid-template-columns: 1.2fr .8fr 1fr; }
.field--checks { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.field--checks legend { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.field--checks label { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(11,15,14,.4); font-size: 14px; color: var(--ink-2); transition: border-color .3s, background .3s; }
.field--checks label:has(input:checked) { border-color: rgba(200,164,106,.6); background: var(--gold-dim); color: var(--ink); }
.field--checks input { accent-color: var(--gold); width: 16px; height: 16px; }
.field--checks { grid-template-columns: 1fr 1fr; }
.field--checks legend { grid-column: 1 / -1; }
.field--checks label:last-child { grid-column: 1 / -1; }
.form__alt { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.form__alt a { color: var(--gold-2); }
@media (max-width: 1080px) { .owners__grid { grid-template-columns: 1fr; } .form--owner { position: static; } }
@media (max-width: 640px) { .form__row--3 { grid-template-columns: 1fr; } .owners__perks, .field--checks { grid-template-columns: 1fr; } .field--checks label:last-child { grid-column: auto; } }
.field--checks label span { text-transform: none; letter-spacing: 0; font-size: 14px; color: inherit; }

/* ---- Concierge IA ---- */
#conciergeMode.is-ai { color: var(--gold-2); }
.cmsg--stream::after { content: "▍"; color: var(--gold-2); animation: caret 1s steps(2) infinite; margin-left: 2px; }
@keyframes caret { 50% { opacity: 0; } }

/* ---- Refonte mobile 2026-08-18 : logo du héros en un seul fondu (pas lettre par lettre) ---- */
@media (max-width: 900px) {
  body.is-ready .wordmark--hero i { animation-delay: 120ms; animation-duration: .7s; }
}
.cmsg--bot a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
