/* Homefeel — feuille de style
   Noir chaud + crème + terracotta. Police : celle du téléphone (SF Pro sur iPhone/Mac), Inter ailleurs. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0908;
  --bg-2: #141210;
  --fg: #f4efe7;
  --mut: rgba(244, 239, 231, 0.58);
  --faint: rgba(244, 239, 231, 0.22);
  --line: rgba(244, 239, 231, 0.14);
  --accent: #c4623c;
  --accent-btn: #b4532d;
  --g: clamp(20px, 5.5vw, 64px);
  --nav-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--g); }

/* ——— Logo : « homefeel » avec l'anneau terracotta ——— */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.06em;
  line-height: 1;
}
.ring {
  display: inline-block;
  width: 0.56em;
  height: 0.56em;
  margin: 0 0.02em;
  border-radius: 50%;
  border: 0.105em solid var(--accent);
  transform: translateY(0.02em);
}

/* ——— Barre du haut (verre dépoli, comme Apple) ——— */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  padding: env(safe-area-inset-top) var(--g) 0;
  box-sizing: content-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 9, 8, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 1px 0 var(--line);
}
.logo--nav { font-size: 26px; letter-spacing: -0.06em; }
.nav.is-solid {
  background: rgba(10, 9, 8, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__right { display: flex; align-items: center; gap: 6px; }
.nav__burger { position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: var(--fg); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav.is-open .nav__burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 21.5px; transform: rotate(-45deg); }
.nav__links { display: none; }
.nav__ho { display: none; }
.nav.is-open { background: rgba(10, 9, 8, 0.94); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); }
.nav.is-open .nav__links {
  display: grid; position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top)); padding: 6px var(--g) 26px;
  background: rgba(10, 9, 8, 0.985); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line); animation: menu-in 0.3s var(--ease);
}
.nav__links a { display: block; padding: 15px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
.nav__links a:last-child { border-bottom: 0; }
.nav__links a.is-active { color: var(--accent); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  /* le menu reste au centre ; seul le petit « ho » se place juste à gauche de « C'est quoi ? » */
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; justify-content: normal; }
  .logo--nav { display: none; }
  .nav__links { grid-column: 2; position: relative; }
  .nav__right { grid-column: 3; justify-self: end; }
  .nav__links a.nav__ho { display: inline-flex; position: absolute; right: 100%; top: 50%; margin: 0 clamp(16px, 2vw, 26px) 0 0; transform: translateY(-50%); padding: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--fg); }
  .nav__links a.nav__ho::after { display: none; }
  .nav__burger { display: none; }
  .nav__links, .nav.is-open .nav__links { display: flex; position: relative; gap: clamp(18px, 2.4vw, 34px); padding: 0; background: none; border: 0; animation: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__links a { position: relative; padding: 8px 0; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; border: 0; color: rgba(244, 239, 231, 0.82); transition: color 0.25s var(--ease); }
  .nav__links a:hover, .nav__links a.is-active { color: #fff; }
  .nav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); }
  .nav.is-open { background: rgba(10, 9, 8, 0.9); }
}
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }


/* ——— Boutons en pilule ——— */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--fg);
  color: #0a0908;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid var(--fg);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pill:active { transform: scale(0.97); }
.pill--ghost { background: rgba(10, 9, 8, 0.25); color: var(--fg); border-color: rgba(244, 239, 231, 0.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pill--accent { background: var(--accent-btn); border-color: var(--accent-btn); color: #fffaf4; }
.pill--sm { height: 36px; padding: 0 16px; font-size: 15px; }
.pill--sm::before { content: ""; position: absolute; inset: -6px -4px; }
@media (hover: hover) {
  .pill:hover { background: var(--accent); border-color: var(--accent); color: #0a0908; }
  .pill--ghost:hover { background: var(--fg); color: #0a0908; border-color: var(--fg); }
  .pill--accent:hover { background: var(--accent); border-color: var(--accent); color: #0a0908; }
}

/* ——— Typographie ——— */
.eyebrow { font-size: 15px; color: var(--mut); letter-spacing: -0.005em; }
.eyebrow b { color: var(--accent); font-weight: 600; }
.kicker { font-size: clamp(18px, 4.8vw, 23px); font-weight: 600; color: var(--accent); letter-spacing: -0.015em; margin-bottom: 14px; }
.lead { margin-top: 16px; max-width: 34em; font-size: clamp(17px, 2.2vw, 21px); color: var(--mut); }
.display {
  font-size: clamp(30px, 7.6vw, 60px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.035em;
  max-width: 17em;
  text-wrap: balance;
}
.display--xl { font-size: clamp(34px, 9.4vw, 76px); line-height: 1.03; letter-spacing: -0.04em; }

.block { padding-block: clamp(48px, 6vw, 80px); }

/* ——— 1 · Accueil (même mise en page que apple.com) ——— */
.hero { background: var(--bg); text-align: center; }
/* L'accueil entier reste « collé » pendant le zoom : texte en haut, iPhone entier dessous */
/* le zoom se termine juste quand le logo est en place : « Homefeel, c'est quoi ? » est déjà juste dessous, sans écran noir entre les deux */
.zoom { position: relative; height: 166vh; height: 166svh; }
.zoom__stage {
  --pw: max(260px, min(calc(100vw - 24px), 1100px, calc((100svh - 350px) * 1.664)));
  position: sticky; top: 0; z-index: 2; pointer-events: none; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
}
/* le bloc de texte garde exactement la hauteur qu'il avait avec les deux anciens boutons (marge + 46 px, 50 px sur ordinateur) :
   la signature (16 px + son espace) s'y loge au-dessus du titre, le reste devient de l'air sous « Belgique & France ».
   Ainsi le téléphone ne bouge pas d'un pixel (sa taille et sa place dépendent de cette hauteur). */
.hero__text { --sig-gap: clamp(12px, 1.6vw, 18px); position: relative; z-index: 1; padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(16px, 3vw, 34px)) var(--g) calc(clamp(14px, 3vw, 22px) + 46px - 16px - var(--sig-gap)); }
.logo--mark { font-size: clamp(40px, 8.5vw, 54px); letter-spacing: -0.06em; }
/* la signature : fine, en italique, orange, très espacée, nettement plus petite que le titre */
.hero__sig { margin: 0 0 var(--sig-gap); padding-left: 0.26em; font-size: clamp(10.5px, 2.9vw, 13px); font-style: italic; font-weight: 400; line-height: 16px; letter-spacing: min(0.26em, 0.7vw); text-transform: uppercase; white-space: nowrap; color: #e2825d; }   /* l'espacement se resserre un peu sur les très petits écrans pour tenir sur une ligne */
.hero h1 { margin: 0 auto; max-width: 16ch; font-size: clamp(29px, 7.2vw, 54px); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; text-wrap: balance; }
.hero__sub { margin-top: 8px; font-size: clamp(15px, 3.6vw, 18px); color: var(--mut); }
@media (min-width: 900px) {
  .hero__text { padding-bottom: calc(clamp(14px, 3vw, 22px) + 50px - 16px - var(--sig-gap)); }
  .hero__sig { font-weight: 300; }
  .hero h1 { max-width: none; font-size: clamp(40px, 4.6vw, 56px); }
}

.zoom__phonebox { position: relative; display: grid; align-content: start; justify-items: center; gap: 14px; min-height: 0; padding: clamp(14px, 4vh, 40px) 0 12px; }
@supports (width: 1cqw) {
  .zoom__phonebox { container-type: size; --pw: max(200px, min(calc(100cqw - 24px), 1100px, calc((100cqh - 90px) * 1.664))); }
}
.phone { position: relative; width: var(--pw); aspect-ratio: 1396 / 839; }
.phone__img { display: block; width: 100%; height: auto; }
.widget {
  position: absolute; left: 7.16%; top: 12.5%; width: 42.05%; height: 77.1%; padding: 0; border: 0; overflow: hidden; opacity: 0;
  border-radius: calc(var(--pw) * 0.0322); font-size: calc(var(--pw) * 0.02448); color: #fff; background: #222; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.widget img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.widget__ui { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 9, 8, 0.5) 0%, rgba(10, 9, 8, 0) 34%); }
.zoom__logo { position: absolute; left: 28.185%; top: 26.92%; transform: translate(-50%, -50%); font-size: calc(var(--pw) * 0.06365); color: #0a0908; white-space: nowrap; opacity: 0; pointer-events: none; }
.widget__title { position: absolute; left: 1em; bottom: 0.85em; display: grid; text-align: left; line-height: 1.15; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.widget__title b { font-size: 1.05em; font-weight: 700; letter-spacing: -0.02em; }
.widget__title small { font-size: 0.65em; opacity: 0.9; }
.widget__play { position: absolute; right: 0.95em; bottom: 0.68em; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: rgba(95, 95, 95, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.widget__play svg { width: 1.05em; height: 1.05em; margin-left: 0.1em; }

/* l'invitation à descendre, posée dans la boîte du téléphone (hors du flux : la mise en page du téléphone ne change pas)
   pour se placer d'après sa taille réelle (--pw) : à gauche du téléphone sur un écran large, sous lui sur téléphone.
   « EXPLORER » en grand, orange brûlé, qu'un reflet traverse de temps en temps ; dessous, la flèche qui descend doucement,
   « Scroller pour découvrir » et un fin trait orange qui s'étire vers le bas puis revient. Tout s'efface dès que l'on défile (main.js). */
.explore { --fs: 28px; --pad: clamp(14px, 4vh, 40px); position: absolute; z-index: 3; left: 50%; bottom: 20px; translate: -50% 0; display: grid; grid-template-columns: 14px minmax(0, max-content); column-gap: 12px; align-items: center; width: max-content; text-align: left; pointer-events: none; }   /* --pad = le haut de la boîte du téléphone */
.explore.is-gone { visibility: hidden; }
.explore.is-gone *, .explore.is-gone *::before, .explore.is-gone *::after { animation-play-state: paused; }   /* rien ne tourne quand elle n'est plus visible */
.explore__word { grid-column: 1 / -1; margin: 0 -0.14em 0.38em 0; font-size: var(--fs); font-weight: 300; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: #d4704a; background: linear-gradient(105deg, #d4704a 42%, #f6b18f 50%, #d4704a 58%) 100% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: explore-rise 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both, explore-sheen 7s cubic-bezier(0.45, 0, 0.55, 1) 2.4s infinite; }
.explore__arrow { grid-column: 1; justify-self: center; width: 12px; height: 19px; color: #e2825d; animation: explore-fade 1s ease 1.1s both, explore-arrow 2.8s cubic-bezier(0.45, 0, 0.55, 1) 2.1s infinite; }
.explore__arrow svg { display: block; width: 100%; height: 100%; overflow: visible; }
.explore__hint { grid-column: 2; font-size: 11px; font-weight: 500; line-height: 1.45; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244, 239, 231, 0.74); animation: explore-fade 1s ease 1.1s both; }
.explore__line { grid-column: 1; justify-self: center; width: 1px; height: clamp(26px, 5vh, 48px); margin-top: 10px; background: linear-gradient(to bottom, rgba(240, 138, 95, 0.95), rgba(196, 98, 60, 0)); box-shadow: 0 0 6px rgba(240, 138, 95, 0.4); transform-origin: 50% 0; animation: explore-fade 1s ease 1.3s both, explore-stretch 2.8s cubic-bezier(0.45, 0, 0.55, 1) 2.1s infinite; }
/* le mot arrive en montant légèrement, ses lettres se resserrent ; le reflet le traverse en 2 s, toutes les 7 s ;
   la flèche descend de quelques pixels et remonte pendant que le trait s'étire vers le bas (même rythme, 2,8 s) */
@keyframes explore-rise { from { opacity: 0; translate: 0 14px; letter-spacing: 0.26em; } }
@keyframes explore-sheen { 0%, 70% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
@keyframes explore-fade { from { opacity: 0; } }
@keyframes explore-arrow { 0%, 100% { translate: 0 -1px; } 55% { translate: 0 6px; } }
@keyframes explore-stretch { 0%, 100% { transform: scaleY(1); } 55% { transform: scaleY(1.6); } }
@supports (width: 1cqw) {
  /* téléphone, tablette en hauteur : dans l'espace noir sous le téléphone, un peu au-dessus du milieu
     (cet espace va du bas du téléphone au bas de la boîte : 100cqh + ses 12 px de marge du bas − la hauteur du téléphone) */
  .explore { --fs: min(34px, 9cqw); bottom: auto; top: calc(var(--pad) + var(--pw) * 0.601 + (100cqh + 12px - var(--pw) * 0.601) * 0.46); translate: -50% -50%; }
  /* petit écran de téléphone (peu de place sous le téléphone) : un peu plus compacte */
  @container (max-height: 400px) and (max-aspect-ratio: 19 / 10) {
    .explore { --fs: min(26px, 8cqw); }
    .explore__word { margin-bottom: 0.3em; }
    .explore__line { height: 22px; margin-top: 7px; }
  }
  /* écran large : à gauche du téléphone, au milieu de l'espace noir et à mi-hauteur du téléphone ; la taille suit la place libre */
  @container (min-aspect-ratio: 19 / 10) {
    .explore { --side: calc((100cqw - var(--pw)) / 2); --fs: clamp(17px, (var(--side) - 48px) / 6.4, 42px); left: calc(var(--side) / 2); top: calc(var(--pad) + var(--pw) * 0.3005); max-width: max(158px, var(--side) - 48px); }   /* au moins « Scroller pour » sur une ligne */
  }
}

/* La fin du zoom : tout se dissout sauf le logo « homefeel », qui reste seul */
.ring--hint { font-size: 16px; }
/* sans animation (réglage « réduire les animations ») : tout s'affiche à la suite, un appui sur la carte descend à la suite */
.zoom.is-static { height: auto; }
.zoom.is-static .zoom__stage { position: relative; height: auto; overflow: visible; display: block; padding-bottom: 40px; }
.zoom.is-static .zoom__phonebox { container-type: normal; --pw: min(calc(100vw - 24px), 1100px); }
.zoom.is-static .widget { opacity: 1; }
/* l'invitation se range sous le téléphone, dans l'accueil (qui est alors plus court) ; rien ne bouge, pas de reflet */
.zoom.is-static .explore { --fs: clamp(26px, 6vw, 40px); position: relative; inset: auto; translate: none; max-width: none; margin-top: 10px; }
.zoom.is-static .explore__word, .zoom.is-static .explore__arrow, .zoom.is-static .explore__hint, .zoom.is-static .explore__line { animation: none; }
.zoom.is-static .zoom__logo { opacity: 1; }

/* ——— 2 · « Homefeel, c'est quoi ? » (appartement 3D animé) ——— */
.concept { position: relative; z-index: 1; background: var(--bg); }
/* la section se révèle avec le défilement, dès que le logo est seul sur le noir (--rev va de 0 à 1) */
.concept__sticky { opacity: var(--rev, 1); translate: 0 calc((1 - var(--rev, 1)) * 26px); }
.concept:not(.is-revealed) .concept__sticky { pointer-events: none; }
/* l'accueil passe au-dessus de la section suivante : elle apparaît à mesure que le téléphone se dissout */
.zoom__stage .pill, .zoom__stage .widget, .zoom__stage a, .zoom__stage button { pointer-events: auto; }
.concept__sticky { position: relative; height: clamp(900px, calc(100svh + 110px), 1000px); overflow: hidden; }
.concept__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.concept__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(10, 9, 8, 0.97) 0%, rgba(10, 9, 8, 0.8) 38%, rgba(10, 9, 8, 0) 56%); }
.concept__link { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.concept__link path { fill: none; stroke: #ff7a35; stroke-width: var(--lw, 2.6px); stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(255, 122, 53, 0.85)); }
.concept__chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cchip { position: absolute; left: 0; top: 0; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--fg); opacity: 0; background: rgba(10, 9, 8, 0.62); border: 1px solid rgba(255, 122, 61, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); will-change: transform, opacity; }
.concept__copy { position: absolute; z-index: 3; left: 50%; top: 30px; width: min(calc(100% - 2 * var(--g)), 680px); transform: translateX(-50%); text-align: center; transition: opacity 0.3s; }
.concept__copy .kicker { margin: 0 0 10px; }
.concept__copy h2 { font-size: clamp(34px, 9.4vw, 62px); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.concept__lead { margin: 14px auto 0; max-width: 24em; font-size: clamp(19px, 5.4vw, 26px); line-height: 1.32; font-weight: 500; letter-spacing: -0.015em; color: rgba(244, 239, 231, 0.88); }
.concept__lead b { color: var(--fg); font-weight: 700; }
.concept__sub { display: none; margin-top: 10px; font-size: clamp(15px, 3.8vw, 18px); color: var(--mut); }
/* le titre s'écrit lettre par lettre, puis la définition apparaît */
.concept__copy h2 .tc { opacity: 0; transition: opacity 0.14s linear; }
.concept__copy h2 .tc.on { opacity: 1; }
.caret { position: relative; display: inline-block; width: 0; height: 0.8em; vertical-align: baseline; }
.caret::after { content: ""; position: absolute; left: 0.04em; bottom: -0.04em; width: 0.07em; height: 0.82em; border-radius: 2px; background: var(--accent); animation: blink 0.9s steps(1) infinite; }
.caret.done::after { animation: none; opacity: 0; transition: opacity 0.6s; }
@keyframes blink { 50% { opacity: 0; } }
.js .concept__lead, .js .concept__sub { opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .concept__lead { transition-delay: 0.15s; }
.js .concept__sub { transition-delay: 0.4s; }
.concept.is-typed .concept__lead, .concept.is-typed .concept__sub { opacity: 1; transform: none; }

/* le bouton posé sur le plan 3D (sa place suit le plan) */
.concept__enter {
  position: absolute; z-index: 6; left: 50%; top: 66%; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; transform: translate(-50%, -50%);
  background: var(--accent-btn); color: #fffaf4; font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 0 0 0 rgba(255, 122, 61, 0.6), 0 10px 40px rgba(255, 122, 61, 0.4); animation: cpulse 2.2s ease-out infinite; opacity: 0; pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
.concept__enter.is-ready { pointer-events: auto; }
.concept__enter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.concept__enter:active { filter: brightness(1.08); }
.concept__enter:focus-visible, .concept__back:focus-visible, .concept__real:focus-visible, .concept__down:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes cpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 61, 0.6), 0 10px 40px rgba(255, 122, 61, 0.4); } 70% { box-shadow: 0 0 0 24px rgba(255, 122, 61, 0), 0 10px 40px rgba(255, 122, 61, 0.4); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 61, 0), 0 10px 40px rgba(255, 122, 61, 0.4); } }
.concept__back { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); white-space: nowrap; bottom: 24px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(244, 239, 231, 0.4); background: rgba(10, 9, 8, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--fg); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity 0.4s; }
.concept__back.is-on { opacity: 1; }
.concept__real { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); white-space: nowrap; bottom: 82px; height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent-btn); color: #fffaf4; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity 0.4s; box-shadow: 0 8px 28px rgba(255, 122, 61, 0.35); }
.concept__real.is-on { opacity: 1; }
.concept__down { display: none; position: absolute; z-index: 4; left: 50%; bottom: 22px; width: 38px; height: 38px; margin-left: -19px; place-items: center; border-radius: 50%; border: 1px solid rgba(244, 239, 231, 0.35); background: rgba(10, 9, 8, 0.4); color: var(--fg); }
.concept__down svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.concept__flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 58%, rgba(255, 220, 180, 0.95), rgba(255, 122, 61, 0.35) 42%, rgba(10, 9, 8, 0) 74%); }

/* le téléphone : ce que l'on découvre en ouvrant le lien — de vraies pièces de la villa qui défilent */
.cphone { --cw: clamp(124px, 38vw, 232px); position: absolute; z-index: 4; left: 8%; top: 300px; width: var(--cw); height: calc(var(--cw) * 2.11); font-size: calc(var(--cw) / 20); transform: rotate(-7deg); will-change: transform, opacity; }
.cphone__frame { position: absolute; inset: 0; padding: 0.45em; border-radius: 2.8em; background: #181410; box-shadow: inset 0 0 0 0.1em rgba(255, 255, 255, 0.18), 0 1.6em 4em rgba(0, 0, 0, 0.7), 0 0 3.4em rgba(255, 122, 61, 0.2); }
.cphone__screen { position: relative; display: flex; flex-direction: column; gap: 0.6em; width: 100%; height: 100%; padding: 2.9em 0.7em 0.8em; border-radius: 2.4em; overflow: hidden; background: #0d0b0a; }
.cphone__island { position: absolute; top: 0.75em; left: 50%; width: 5.2em; height: 1.45em; margin-left: -2.6em; border-radius: 1em; background: #000; }
.cphone__bar { flex: none; display: flex; align-items: center; gap: 0.5em; height: 2.2em; padding: 0 0.8em; border-radius: 999px; background: #1c1816; color: rgba(244, 239, 231, 0.72); font-size: 0.78em; letter-spacing: -0.01em; }
.cphone__bar svg { flex: none; width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cphone__bar span { flex: 1; text-align: center; white-space: nowrap; }
.cphone__view { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 1.4em; background: #1a1613; }
.cphone__view::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10, 9, 8, 0.55), rgba(10, 9, 8, 0) 40%); }
.cphone__pano { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: none; opacity: 0; transform: translateX(-12%); }
.cphone__pano:first-child { opacity: 1; }
.cphone__hot { position: absolute; z-index: 2; left: 50%; bottom: 12%; width: 3.2em; height: 3.2em; margin-left: -1.6em; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 250, 244, 0.93); color: var(--accent-btn); box-shadow: 0 0 0 0.35em rgba(255, 255, 255, 0.18), 0 0 2em rgba(255, 122, 61, 0.65); }
.cphone__hot svg { width: 1.6em; height: 1.6em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cphone__thumbs { flex: none; display: flex; gap: 0.45em; }
.cphone__thumbs img { flex: 1; min-width: 0; height: auto; aspect-ratio: 1 / 0.85; object-fit: cover; border-radius: 0.6em; opacity: 0.5; }
.cphone__thumbs img:first-child { opacity: 1; box-shadow: 0 0 0 0.16em var(--accent); }
.cphone__room { position: relative; flex: none; display: flex; align-items: center; gap: 0.5em; height: 1.9em; padding: 0 0.3em; font-size: 0.9em; font-weight: 600; letter-spacing: -0.01em; }
.cphone__room svg { flex: none; width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cphone__room svg.chev { margin-left: auto; opacity: 0.6; }
.cphone__room span { position: absolute; left: 2.1em; opacity: 0; }
.cphone__room span:first-of-type { opacity: 1; }

/* les pièces défilent toutes seules (4 s chacune), la photo glisse doucement comme un regard qui tourne */
.cphone.is-play .cphone__pano { animation: ccycle 16s linear calc(var(--i) * 4s) infinite, cpan 10s ease-in-out infinite alternate; }
.cphone.is-play .cphone__room span { animation: ccycle 16s linear calc(var(--i) * 4s) infinite; }
.cphone.is-play .cphone__thumbs img { animation: cthumb 16s linear calc(var(--i) * 4s) infinite; }
.cphone.is-play .cphone__hot { animation: chot 2.4s ease-out infinite; }
@keyframes ccycle { 0% { opacity: 0; } 3% { opacity: 1; } 25% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes cthumb { 0% { opacity: 0.5; box-shadow: 0 0 0 0 transparent; } 3%, 25% { opacity: 1; box-shadow: 0 0 0 0.16em var(--accent); } 28%, 100% { opacity: 0.5; box-shadow: 0 0 0 0 transparent; } }
@keyframes cpan { from { transform: translateX(-9%); } to { transform: translateX(-42%); } }
@keyframes chot { 0% { box-shadow: 0 0 0 0.35em rgba(255, 255, 255, 0.18), 0 0 0 0 rgba(255, 122, 61, 0.7), 0 0 2em rgba(255, 122, 61, 0.65); } 70%, 100% { box-shadow: 0 0 0 0.35em rgba(255, 255, 255, 0.18), 0 0 0 1.4em rgba(255, 122, 61, 0), 0 0 2em rgba(255, 122, 61, 0.65); } }

/* ordinateur : le texte au centre, en haut ; le grand plan ; le téléphone à gauche, plus grand ; le bouton en bas au centre */
@media (min-width: 900px) {
  .concept__sticky { height: clamp(760px, 60vw, 900px); }
  .concept__veil { background: linear-gradient(to bottom, rgba(10, 9, 8, 0.97) 0%, rgba(10, 9, 8, 0.82) 24%, rgba(10, 9, 8, 0) 44%); }
  .concept__copy { top: 34px; width: min(calc(100% - 2 * var(--g)), 980px); }
  .concept__copy h2 { font-size: clamp(38px, 4.4vw, 62px); }
  .concept__copy .br-m { display: none; }
  .concept__lead { font-size: clamp(18px, 1.7vw, 23px); max-width: 28em; }
  .concept__sub { display: block; font-size: clamp(15px, 1.25vw, 17px); }
  .cphone { --cw: clamp(190px, 19vw, 300px); left: clamp(16px, 5vw, 110px); top: 31%; }
  .concept__down { display: grid; }
  .concept__back { left: auto; right: var(--g); transform: none; }
  .concept__real { left: var(--g); transform: none; bottom: 24px; }
}

/* sans animation : on voit le plan 3D fixe et la première pièce ; si la 3D est indisponible, il reste le texte et le téléphone */
.concept.is-static .concept__enter, .concept.is-static .concept__back, .concept.is-static .concept__real { display: none; }
.concept.is-static .cphone *, .concept.is-nogl .cphone * { animation: none !important; }
.concept.is-nogl .concept__canvas, .concept.is-nogl .concept__veil, .concept.is-nogl .concept__link, .concept.is-nogl .concept__chips, .concept.is-nogl .concept__enter, .concept.is-nogl .concept__back, .concept.is-nogl .concept__real, .concept.is-nogl .concept__down, .concept.is-nogl .concept__flash { display: none; }
.concept.is-nogl .concept__sticky { height: auto; padding: 80px 0 56px; display: grid; gap: 28px; }
.concept.is-nogl .concept__copy { position: relative; left: auto; top: auto; transform: none; width: auto; margin: 0 var(--g); }
.concept.is-nogl .cphone { position: relative; inset: auto; justify-self: center; transform: none !important; opacity: 1 !important; }
.concept.is-nogl .concept__sub { display: block; }

/* ——— Mode « maquette en image » (par défaut) : le texte, la grande maquette (img/appartement.webp), puis trois cartes ——— */
.concept__house, .ccards { display: none; }
.concept--img .concept__canvas, .concept--img .concept__veil, .concept--img .concept__link, .concept--img .concept__chips, .concept--img .concept__enter, .concept--img .concept__back, .concept--img .concept__real, .concept--img .concept__down, .concept--img .concept__flash, .concept--img .cphone { display: none; }
.concept--img { --hi: #f08a5f; }
.concept--img .concept__sticky { height: auto; display: grid; grid-template-columns: minmax(0, 1fr); padding: 34px var(--g) 64px; }
.concept--img .concept__copy { position: relative; left: auto; top: auto; transform: none; order: 1; width: auto; text-align: left; }
.concept--img .concept__copy .kicker { margin: 0 0 14px; font-size: 14.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #e2825d; }
.concept--img .concept__copy h2 { font-size: clamp(36px, 10.6vw, 54px); line-height: 1.03; letter-spacing: -0.035em; text-wrap: initial; }
.concept--img .concept__copy h2 .hl { color: var(--hi); }
.concept--img .concept__lead { margin: 18px 0 0; max-width: 27em; font-size: clamp(16.5px, 4.5vw, 19px); line-height: 1.5; font-weight: 400; letter-spacing: -0.01em; color: rgba(244, 239, 231, 0.72); }
.concept--img .concept__sub { display: none; }
/* téléphone : la maquette prend toute la largeur de l'écran */
.concept--img .concept__house { display: block; position: relative; order: 2; margin: 14px calc(-1 * var(--g)) 0; pointer-events: none; }
.concept--img .concept__house img { display: block; width: 100%; height: auto; }

/* les deux cartes : fond sombre, bordure fine, leur visuel à droite */
.concept--img .ccards { --cg: 14px; order: 3; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cg); margin: 10px 0 0; padding: 0; list-style: none; }
.ccard { position: relative; display: flex; flex-direction: column; justify-content: flex-start; min-height: 172px; padding: 22px 20px; border: 1px solid rgba(214, 122, 82, 0.2); border-radius: 18px; background: #0f0c0a; }
.ccard h3 { position: relative; z-index: 1; max-width: 56%; text-wrap: balance; font-size: 20px; font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; color: var(--fg); }
.ccard p { position: relative; z-index: 1; max-width: 56%; margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: rgba(244, 239, 231, 0.62); }
.ccard__img { position: absolute; z-index: 0; pointer-events: none; }
/* la chambre en 360° : collée au bord droit de la carte (à ses proportions), elle se fond dans le noir côté texte */
.ccard--chambre .ccard__img { top: 0; right: 0; width: auto; height: 100%; max-width: 50%; aspect-ratio: 520 / 448; object-fit: cover; object-position: 55% 50%; border-radius: 0 17px 17px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 42%); mask-image: linear-gradient(to right, transparent, #000 42%); }
/* le téléphone et l'ordinateur */
.ccard--appareils .ccard__img { top: 50%; right: 8px; width: auto; height: auto; max-width: 41%; max-height: 82%; translate: 0 -50%; }
.ccard--appareils p { max-width: 55%; }

/* apparition en douceur : la maquette, puis les cartes l'une après l'autre */
.js .concept--img .concept__house { opacity: 0; translate: 0 28px; transition: opacity 0.8s ease 0.05s, translate 0.9s var(--ease) 0.05s; }
.js .concept--img .ccard { opacity: 0; translate: 0 22px; transition: opacity 0.8s ease calc(0.35s + var(--i) * 0.14s), translate 0.9s var(--ease) calc(0.35s + var(--i) * 0.14s); }
.concept--img.is-in .concept__house, .concept--img.is-in .ccard { opacity: 1; translate: 0 0; }
.js .concept--img.is-static .concept__house, .js .concept--img.is-static .ccard, .js .concept--img.is-static .concept__lead { transition: none; }

/* ordinateur : texte à gauche, maquette à droite, les deux cartes dessous.
   Tout doit tenir dans l'écran juste sous le logo « homefeel » (à la fin du zoom de l'accueil, le haut de la section est à 22 % de l'écran + 62 px) :
   la hauteur de la maquette suit donc la hauteur de l'écran. */
@media (min-width: 900px) {
  .concept--img .concept__sticky { width: min(100%, calc(1240px + 2 * var(--g))); margin: 0 auto; grid-template-columns: minmax(300px, 1fr) auto; grid-template-areas: "copy house" "cards cards"; column-gap: clamp(24px, 3vw, 56px); align-items: center; padding: 12px var(--g) 76px; }
  .concept--img .concept__copy { grid-area: copy; align-self: center; }
  .concept--img .concept__copy .kicker { margin-bottom: clamp(12px, 1.1vw, 18px); font-size: clamp(14.5px, 1.15vw, 17px); }
  .concept--img .concept__copy h2 { font-size: clamp(36px, 3.4vw, 60px); }
  .concept--img .concept__lead { margin-top: clamp(16px, 1.6vw, 26px); max-width: 24em; font-size: clamp(16px, 1.22vw, 20px); }
  .concept--img .concept__house { grid-area: house; margin: 0; }
  .concept--img .concept__house img { width: auto; height: clamp(240px, calc(78svh - 242px), 540px); max-width: calc(100vw - 2 * var(--g) - 340px); object-fit: contain; }
  .concept--img .ccards { --cg: clamp(28px, 3vw, 52px); grid-area: cards; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
  .ccard { justify-content: center; min-height: 124px; padding: 20px 26px; }
  .ccard h3 { max-width: 60%; font-size: clamp(18px, 1.3vw, 21px); }
  .ccard p { max-width: 60%; margin-top: 6px; font-size: clamp(13.5px, 0.98vw, 15px); }
  .ccard p br { display: none; }
  .ccard--chambre .ccard__img { max-width: 40%; aspect-ratio: 16 / 10; }
  .ccard--chambre p { text-shadow: 0 1px 10px #0f0c0a; }
  .ccard--appareils .ccard__img { right: 22px; max-width: 34%; max-height: 84%; }
  .ccard + .ccard::before { content: ""; position: absolute; top: 50%; left: calc(var(--cg) / -2); width: 10px; height: 10px; margin: -5px 0 0 -7px; border-top: 2px solid #ee8b64; border-right: 2px solid #ee8b64; border-radius: 1px; rotate: 45deg; }
}

/* ——— 3 · Le problème : texte à gauche, l'ordinateur de la référence (image) avec l'écran refait en code et posé en 3D dessus, barre des trois problèmes ——— */
.pb { --hi: #f08a5f; --pbx: clamp(20px, 6.6vw, 110px); position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 7vw, 110px); background: var(--bg); }
.pb__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 1640px); margin: 0 auto; padding: 0 var(--pbx); }
.pb__copy { position: relative; z-index: 2; }
.pb__copy .kicker { margin: 0 0 16px; font-size: 14.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #e2825d; }
.pb__copy h2 { font-size: clamp(32px, 8.6vw, 58px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.pb__copy h2 .hl { color: var(--hi); }
.pb__lead { margin-top: 20px; max-width: 24em; font-size: clamp(16.5px, 4.4vw, 21px); line-height: 1.6; color: rgba(244, 239, 231, 0.72); }

/* la scène : l'image de l'ordinateur (img/probleme/scene.webp, 1657 x 949 dans la référence) et, par-dessus, l'écran en code.
   Tout est mesuré en « pixels de la référence » : 1em = 1 pixel de la référence, mis à l'échelle de l'écran.
   La position 3D de l'écran a été calculée à partir de ses 4 coins dans la référence (perspective de 2 495 px, centrée sur l'image) :
   l'écran en code retombe exactement sur celui de l'image, et les photos peuvent en sortir pour de vrai. */
.pb__scene { position: relative; z-index: 1; aspect-ratio: 1187 / 715; margin: 14px calc(-1 * var(--pbx)) 0; overflow: hidden; container-type: inline-size; }
.pb__shot { position: absolute; left: 0; top: 0; width: 1657em; height: 949em; font-size: calc(100cqw / 1187); translate: -470em -30em; }
.pb__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 3%, #000 10%, #000 74%, transparent 79%); mask-image: linear-gradient(to bottom, transparent 3%, #000 10%, #000 74%, transparent 79%); }
.pb__cam { position: absolute; inset: 0; perspective: 2494.7em; perspective-origin: 828.5em 474.5em; pointer-events: none; }
.pb__screen { position: absolute; left: 828.5em; top: 474.5em; width: 823.57em; height: 502.56em; border-radius: 8em; background: #171615; transform-style: preserve-3d; transform-origin: 0 0;
  transform: translate3d(-19.354em, -385.424em, -264.315em) matrix3d(0.84859, 0.02407, 0.52851, 0, -0.14327, 0.97209, 0.18578, 0, -0.50929, -0.23337, 0.82835, 0, 0, 0, 0, 1); }
.pb__screen::after { content: ""; position: absolute; inset: -21em -15em -17em -15em; border-radius: 30em; border: 2.6em solid rgba(255, 168, 120, 0.95); box-shadow: 0 0 10em 1.5em rgba(240, 122, 70, 0.85), 0 0 46em 8em rgba(240, 122, 70, 0.3), inset 0 0 10em 1em rgba(240, 122, 70, 0.55); transform: translateZ(-0.5em); pointer-events: none; animation: pb-neon 3.4s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes pb-neon { 0%, 100% { opacity: 0.72; } 50% { opacity: 1; } }

/* l'annonce fictive, à l'intérieur de l'écran */
.ls { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 8.2855em; padding: 2.4em 3em 2.2em; color: var(--fg); font-family: var(--font); line-height: 1.2; transform-style: preserve-3d; }
.ls p { margin: 0; }
.ls svg { flex: none; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ls__top { display: flex; align-items: center; justify-content: space-between; font-size: 1.6em; }
.ls__city { display: inline-flex; align-items: center; gap: 0.55em; height: 2.4em; padding: 0 0.9em; border-radius: 0.7em; background: #252120; font-weight: 500; }
.ls__city svg:first-child { color: var(--hi); }
.ls__city .ls__chev { margin-left: 1.8em; opacity: 0.75; }
.ls__acts { display: flex; gap: 2.4em; font-size: 0.88em; color: rgba(244, 239, 231, 0.85); }
.ls__acts span { display: inline-flex; align-items: center; gap: 0.5em; }
.ls__crumbs { display: flex; gap: 0.6em; margin-top: 1em !important; font-size: 1.42em; color: rgba(244, 239, 231, 0.5); }
.ls__crumbs i { font-style: normal; opacity: 0.8; }
.ls__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5em; margin-top: 0.55em; }
.ls__title { font-size: 2.6em; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.ls__price { font-size: 2.6em; white-space: nowrap; }
.ls__price b { font-weight: 700; letter-spacing: -0.02em; }
.ls__meta { display: flex; gap: 2.6em; margin-top: 0.8em !important; font-size: 1.42em; color: rgba(244, 239, 231, 0.82); }
.ls__meta span { display: inline-flex; align-items: center; gap: 0.5em; }
.ls__meta svg { color: var(--hi); }

/* les photos : une grande à gauche, quatre petites à droite */
.ls__photos { display: grid; grid-template-columns: 2.22fr 1fr 1.07fr; grid-template-rows: 1fr 1fr; gap: 1.2em; margin-top: 1.5em; transform-style: preserve-3d; }
.ls__ph { --z: 0.15em; --sc: 1; --tx: 0deg; --ty: 0deg; position: relative; margin: 0; min-height: 0; transform-style: preserve-3d; transform: translateZ(var(--z)) rotateX(var(--ty)) rotateY(var(--tx)) scale(var(--sc)); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: auto; cursor: auto; -webkit-tap-highlight-color: transparent; }
.ls__ph--main { grid-row: span 2; aspect-ratio: 782 / 534; }
.ls__ph img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 1em; }
/* l'ombre reste posée sur l'écran pendant que la photo s'en détache */
.ls__ph::before { content: ""; position: absolute; inset: 6% 5%; border-radius: 1em; background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 1.4em 0.8em rgba(0, 0, 0, 0.5); opacity: 0; transform: translateZ(calc(0.05em - var(--z))) translateY(0.4em); transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
/* le badge « 1/12 », posé exactement sur celui de la photo d'origine */
.ls__count { position: absolute; left: 2.1%; top: 84.2%; width: 18.6%; height: 13%; display: flex; align-items: center; justify-content: center; gap: 0.4em; border-radius: 0.65em; background: #121110; font-size: 1.5em; font-weight: 600; letter-spacing: -0.01em; }
.ls__count svg { width: 1.15em; height: 1.15em; }

/* en bas de l'annonce : description (en gris), propriétaire et bouton */
.ls__foot { display: grid; grid-template-columns: 2.22fr 2.07fr; gap: 1.4em; margin-top: 1.4em; }
.ls__lines { display: grid; align-content: center; gap: 0.95em; }
.ls__lines i, .ls__olines i { display: block; height: 0.7em; border-radius: 1em; background: rgba(244, 239, 231, 0.1); }
.ls__lines i:nth-child(1) { width: 86%; }
.ls__lines i:nth-child(2) { width: 93%; }
.ls__lines i:nth-child(3) { width: 52%; }
.ls__owner { display: flex; align-items: center; gap: 1.1em; padding: 1em 1.1em; border-radius: 1em; background: #1d1c1b; }
.ls__avatar { flex: none; width: 3.2em; height: 3.2em; border-radius: 50%; background: #3a3836; }
.ls__olines { flex: 1; display: grid; gap: 0.8em; }
.ls__olines i:nth-child(1) { width: 82%; }
.ls__olines i:nth-child(2) { width: 56%; }
.ls__btn { flex: none; padding: 1.05em 1.5em; border-radius: 0.75em; background: #ec7f52; color: #fff; font-size: 1.4em; font-weight: 600; white-space: nowrap; }

/* la barre des trois problèmes */
.pb__bar { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); margin: 22px 0 0; padding: 6px 22px; list-style: none; border: 1px solid rgba(244, 239, 231, 0.09); border-radius: 18px; background: linear-gradient(180deg, rgba(20, 18, 16, 0.86), rgba(12, 11, 10, 0.86)); }
.pb__bar li { position: relative; perspective: 900px; }
.pb__bar li + li { border-top: 1px solid rgba(244, 239, 231, 0.08); }
.pb__bar li.is-up { z-index: 3; }
.pb__card { --bz: 0px; --bs: 1; --rx: 0deg; --ry: 0deg; --l1: 0px; --l2: 0px; position: relative; display: flex; align-items: flex-start; gap: 18px; margin: 0 -14px; padding: 20px 14px; border: 1px solid transparent; border-radius: 16px; transform-style: preserve-3d; transform: translateZ(var(--bz)) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--bs)); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.pb__card > svg, .pb__card > div { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pb__card > svg { transform: translateZ(var(--l1)); }
.pb__card > div { transform: translateZ(var(--l2)); }
.pb__card.is-hover { --bz: 14px; --l1: 18px; --l2: 8px; }
.pb__card.is-zoom { --bz: 56px; --bs: 1.04; --l1: 40px; --l2: 18px; border-color: rgba(238, 125, 79, 0.45); background-color: #171412; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(238, 125, 79, 0.1); }
.pb.is-static .pb__card, .pb.is-static .pb__card > svg, .pb.is-static .pb__card > div { transition: none; }
.pb__bar svg { flex: none; width: 42px; height: 42px; fill: none; stroke: #ee7d4f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pb__bar h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); }
.pb__bar p { margin-top: 6px; font-size: 15.5px; line-height: 1.45; color: rgba(244, 239, 231, 0.62); }

/* apparition au défilement (js/probleme.js ajoute is-in) : texte, ordinateur, puis les photos l'une après l'autre */
.js .pb .pb__in { opacity: 0; translate: 0 22px; transition: opacity 0.9s ease calc(var(--d) * 0.1s), translate 1s var(--ease) calc(var(--d) * 0.1s); }
.js .pb .pb__bar .pb__in { transition-delay: calc(0.5s + var(--d) * 0.1s); }
.js .pb .pb__scene { opacity: 0; transition: opacity 1.2s ease 0.1s; }
.pb.is-in .pb__in { opacity: 1; translate: 0 0; }
.pb.is-in .pb__scene { opacity: 1; }
.pb.is-in .ls__ph { --z: 0.9em; }
.pb.is-in .ls__ph::before { opacity: 0.4; }
.pb.is-in:not(.is-ready) .ls__ph, .pb.is-in:not(.is-ready) .ls__ph::before { transition-duration: 0.8s; transition-delay: calc(0.9s + var(--i) * 0.1s); }
/* une photo sort de l'écran : au survol (souris) ou au toucher (téléphone) */
.pb .ls__ph.is-out { --z: 11em; --sc: 1.07; z-index: 2; }
.pb .ls__ph--main.is-out { --z: 7em; --sc: 1.035; }   /* la grande photo sort un peu moins, pour ne pas cacher l'annonce */
.pb .ls__ph.is-out::before { opacity: 0.95; transform: translateZ(calc(0.05em - var(--z))) translateY(3.4em) scale(1.03); }
.pb.is-static .pb__in, .pb.is-static .pb__scene, .pb.is-static .ls__ph, .pb.is-static .ls__ph::before { transition: none; }
.pb.is-static .ls__ph.is-out { --z: 3em; --sc: 1.02; }
/* téléphone : les photos sont petites, elles sortent un peu plus franchement */
@media (max-width: 1099px) { .pb .ls__ph.is-out { --z: 13em; --sc: 1.13; } .pb .ls__ph--main.is-out { --z: 8em; --sc: 1.05; } }

/* ordinateur : la composition exacte de la référence, mise à l'échelle pour tenir en entier dans la fenêtre, sous le menu
   (un clic sur « Problème » la montre complète et centrée). Les positions sont celles de la référence, en em (1em = 1 pixel de la référence). */
@media (min-width: 1100px) {
  .pb { padding: 12px 0; }
  .pb__inner { display: block; width: min(100%, calc((100svh - var(--nav-h) - 24px) * 1657 / 949)); aspect-ratio: 1657 / 949; padding: 0; container-type: inline-size; }
  .pb__inner > * { font-size: calc(100cqw / 1657); }
  .pb__copy { position: absolute; left: 110em; top: 196em; width: 650em; }
  .pb__copy .kicker { margin: 0 0 1.4em; font-size: max(14.5px, 19em); }
  .pb__copy h2 { font-size: max(30px, 50em); line-height: 1.14; }
  .pb__lead { margin-top: 1.55em; max-width: 22em; font-size: max(15px, 21.5em); line-height: 1.62; }
  .pb__scene { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; overflow: visible; container-type: normal; }
  .pb__shot { font-size: inherit; translate: none; }
  /* les bords de l'image se fondent dans le fond de la page */
  .pb__photo { -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 93%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 3%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 93%, transparent); mask-composite: intersect; }
  .pb__bar { position: absolute; left: 110em; top: 740em; width: 1437em; min-height: 143em; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; margin: 0; padding: 0; border-radius: 18em; }
  .pb__bar li { padding: 10em; }
  .pb__bar li + li { border-top: 0; }
  .pb__card { align-items: center; gap: 24em; margin: 0; padding: 18em 26em; border-radius: 14em; }
  .pb__bar li + li::after { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: rgba(244, 239, 231, 0.09); }
  .pb__bar svg { width: max(34px, 50em); height: max(34px, 50em); }
  .pb__bar h3 { font-size: max(15px, 21.5em); }
  .pb__bar p { margin-top: 0.45em; font-size: max(12.5px, 17em); }
}

/* ——— 5 · Pour qui : quatre cases sobres (2 x 2 sur ordinateur) ; la flèche en bas à droite déploie un texte complémentaire ——— */
/* comme « Avantages » : un clic sur « Pour qui » ne montre que cette section (elle fait au moins un écran sous le menu) */
.block.who { min-height: calc(100svh - var(--nav-h) - 8px); min-height: calc(100dvh - var(--nav-h) - 8px); padding-block: clamp(20px, 3vw, 36px); }
.who__kicker { margin: 0 0 clamp(12px, 1.8vh, 18px); font-size: clamp(14.5px, 1.15vw, 17px); font-weight: 600; line-height: 1.3; letter-spacing: 0.2em; text-transform: uppercase; color: #e2825d; }
.who__title { max-width: 15em; margin-bottom: clamp(22px, 4vh, 44px); font-size: clamp(30px, min(7.6vw, 6.4vh), 60px); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.who__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; margin: 0; padding: 0; list-style: none; }
.who__card { position: relative; display: flex; flex-direction: column; padding: 24px 22px 78px; border: 1px solid rgba(244, 239, 231, 0.1); border-radius: 18px; background: #0e0c0b; transition: border-color 0.35s ease; }
.who__card:hover, .who__card.is-open { border-color: rgba(226, 130, 93, 0.42); }
.who__cat { font-size: 12.5px; font-weight: 600; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: #e2825d; }
.who__card h3 { margin-top: 14px; font-size: clamp(22px, 6vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; color: var(--fg); }
.who__text { margin-top: 10px; max-width: 30em; font-size: 15.5px; line-height: 1.5; color: rgba(244, 239, 231, 0.62); }
/* le texte complémentaire : la hauteur se déploie (0fr → 1fr), puis un filet orange se trace et le texte monte en fondu */
.who__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.who__more > div { min-height: 0; overflow: hidden; }
.who__more p { position: relative; max-width: 32em; margin-top: 22px; padding-top: 20px; font-size: 15.5px; line-height: 1.6; color: rgba(244, 239, 231, 0.82); opacity: 0; translate: 0 10px; transition: opacity 0.35s ease, translate 0.5s var(--ease); }
.who__more p::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 1px; background: #e2825d; transform: scaleX(0); transform-origin: left center; transition: transform 0.5s var(--ease); }
.who__card.is-open .who__more { grid-template-rows: 1fr; }
.who__card.is-open .who__more p { opacity: 1; translate: 0 0; transition-duration: 0.55s, 0.7s; transition-delay: 0.2s; }
.who__card.is-open .who__more p::before { transform: none; transition-delay: 0.14s; }
/* la flèche : fine, dans le coin en bas à droite, elle pivote vers le haut quand la case est ouverte */
.who__btn { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(244, 239, 231, 0.18); border-radius: 50%; background: transparent; color: rgba(244, 239, 231, 0.72); cursor: pointer; transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease; -webkit-tap-highlight-color: transparent; }
.who__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.who__card:hover .who__btn, .who__card.is-open .who__btn { border-color: rgba(226, 130, 93, 0.6); color: #ee8b64; }
.who__btn:hover { background-color: rgba(226, 130, 93, 0.08); }
.who__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.who__card.is-open .who__btn svg { transform: rotate(180deg); }
/* l'apparition au défilement garde aussi la transition de la bordure */
.js .who__card.reveal { transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s), border-color 0.35s ease; }
@media (min-width: 760px) {
  .who__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
  /* fermées, les quatre cases ont la même hauteur (liée à la hauteur de l'écran pour que la section tienne dans un écran) */
  .who__card { min-height: clamp(214px, calc(50svh - 180px), 300px); padding: clamp(24px, 2.4vw, 34px) clamp(24px, 2.6vw, 38px) 80px; }
  .who__card h3 { margin-top: clamp(14px, 2vh, 22px); font-size: clamp(22px, 2.2vw, 30px); }
  .who__text, .who__more p { font-size: clamp(15px, 1.12vw, 17px); }
  .who__btn { right: clamp(18px, 1.8vw, 24px); bottom: clamp(18px, 1.8vw, 24px); }
}

/* ——— 4 · Avantages : un tableau éditorial (grandes lignes à gauche, explications à droite, séparateurs fins) ——— */
.block.adv { padding-block: clamp(20px, 3vw, 36px) clamp(20px, 3vh, 36px); }
/* un clic sur « Avantages » ne montre que les avantages : la section fait exactement un écran sous le menu,
   et les 5 lignes se répartissent sur toute cette hauteur (la section suivante commence juste sous le bas de l'écran) */
.adv { display: flex; flex-direction: column; min-height: calc(100svh - var(--nav-h) - 8px); min-height: calc(100dvh - var(--nav-h) - 8px); }
.adv > .wrap { flex: 1; display: flex; flex-direction: column; }
.adv__title { margin: 0 0 clamp(14px, 2.4vh, 26px); font-size: clamp(14.5px, 1.15vw, 17px); font-weight: 600; line-height: 1.3; letter-spacing: 0.2em; text-transform: uppercase; color: #e2825d; }
.adv__list { flex: 1; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.adv__row { position: relative; flex: 1; display: grid; align-content: center; gap: 8px; padding: clamp(14px, 2.6vh, 30px) 0; }
.adv__row::before, .adv__row:last-child::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(244, 239, 231, 0.12); transform-origin: left center; }
.adv__row::before { top: 0; }
.adv__row:last-child::after { bottom: 0; }
.adv__row h3 { font-size: clamp(23px, min(6.4vw, 5vh), 44px); font-weight: 600; line-height: 1.08; letter-spacing: -0.032em; color: var(--fg); }
.adv__row p { max-width: 30em; font-size: clamp(15px, 4vw, 18px); line-height: 1.5; color: rgba(244, 239, 231, 0.62); }
@media (min-width: 900px) {
  .adv__row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: baseline; column-gap: clamp(40px, 6vw, 112px); }
  .adv__row p { font-size: clamp(15px, min(1.4vw, 2.3vh), 19px); }
}
/* petits téléphones (iPhone SE…) : un peu plus serré pour que les 5 lignes tiennent encore dans l'écran */
@media (max-width: 899px) and (max-height: 720px) {
  .adv__title { margin-bottom: 10px; }
  .adv__row { gap: 5px; padding-block: 11px; }
  .adv__row h3 { font-size: 22px; }
  .adv__row p { font-size: 14.5px; line-height: 1.45; }
}
/* apparition : le séparateur se trace, puis la grande ligne et son explication montent en fondu (ligne après ligne) */
.js .adv__row.reveal { opacity: 1; transform: none; transition: none; }
.js .adv__row h3, .js .adv__row p { opacity: 0; translate: 0 14px; transition: opacity 0.7s var(--ease), translate 0.8s var(--ease); transition-delay: calc(var(--d, 0s) + 0.12s); }
.js .adv__row p { transition-delay: calc(var(--d, 0s) + 0.2s); }
.js .adv__row::before, .js .adv__row:last-child::after { transform: scaleX(0); transition: transform 0.9s var(--ease) var(--d, 0s); }
.js .adv__row.in h3, .js .adv__row.in p { opacity: 1; translate: 0 0; }
.js .adv__row.in::before, .js .adv__row.in:last-child::after { transform: none; }

/* ——— 6 · Démonstration : la grande photo de la villa (le bouton néon ouvre la vraie visite), puis l'invitation à me contacter ——— */
.tours__kicker { margin: 0 0 clamp(12px, 1.8vh, 18px); font-size: clamp(14.5px, 1.15vw, 17px); font-weight: 600; line-height: 1.3; letter-spacing: 0.2em; text-transform: uppercase; color: #e2825d; }
.tours__kicker, .tours__title, .tours__lead { text-align: center; margin-inline: auto; }
.tours__title { max-width: 15em; font-size: clamp(30px, min(7.6vw, 6.4vh), 60px); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.tours__lead { max-width: 32em; margin-top: clamp(12px, 1.8vh, 18px); font-size: clamp(16px, 4.2vw, 19px); line-height: 1.55; color: rgba(244, 239, 231, 0.66); }

/* la photo : grande, panoramique sur ordinateur, recadrée sur la maison ; un dégradé sombre en bas pour lire le texte */
.demo { position: relative; isolation: isolate; overflow: hidden; margin: clamp(22px, 3.6vh, 40px) calc(-1 * min(var(--g), 8px)) 0; aspect-ratio: 4 / 5; border-radius: 20px; background: var(--bg-2); }
.demo__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 66% 55%; transition: scale 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.demo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 9, 8, 0.86) 0%, rgba(10, 9, 8, 0.45) 26%, rgba(10, 9, 8, 0) 52%); }
/* au clic : la photo avance et s'assombrit un instant, comme si l'on entrait */
.demo::before { content: ""; position: absolute; inset: 0; z-index: 2; background: #0a0908; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.demo.is-entering::before { opacity: 0.55; }
.demo.is-entering .demo__img { scale: 1.12 !important; transition: scale 0.6s cubic-bezier(0.55, 0, 0.3, 1); }
.demo__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px; text-align: center; }
.demo__label { font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244, 239, 231, 0.88); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }

/* le bouton « Entrer dans la visite » : orange chaud, un halo qui respire lentement (3,2 s), il remonte au survol */
.demo__btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #f08a5f 0%, #dc6c40 100%); box-shadow: inset 0 0 0 1px rgba(255, 214, 186, 0.38), inset 0 1px 0 rgba(255, 235, 220, 0.45); color: #fffaf5; font: inherit; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; text-shadow: 0 1px 1px rgba(120, 40, 10, 0.35); cursor: pointer; transition: transform 0.35s var(--ease), filter 0.35s ease; -webkit-tap-highlight-color: transparent; }
.demo__btn::before, .demo__btn::after { content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: inherit; background: #f07a46; filter: blur(18px); pointer-events: none; }
.demo__btn::before { opacity: 0.5; transform: scale(0.94); animation: demo-breathe 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.demo__btn::after { inset: -10px; filter: blur(26px); opacity: 0; transition: opacity 0.45s ease; }
@keyframes demo-breathe { 0%, 100% { opacity: 0.5; transform: scale(0.94); } 50% { opacity: 0.95; transform: scale(1.06); } }
.demo__btn:hover { transform: translateY(-3px); }
.demo__btn:hover::after { opacity: 0.45; }
.demo__btn:active, .demo.is-entering .demo__btn { transform: translateY(0) scale(0.97); filter: brightness(1.08); }
.demo__btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* apparition : la photo arrive en fondu et se recadre doucement ; au survol, un très léger zoom */
.js .demo.reveal .demo__img { scale: 1.06; }
.js .demo.reveal.in .demo__img { scale: 1; }
@media (hover: hover) { .demo:hover .demo__img, .js .demo.reveal.in:hover .demo__img { scale: 1.035; } }

/* et pour votre bien ? : un bloc secondaire, plus discret, sous la photo */
.demo-cta { display: grid; gap: 16px; max-width: 860px; margin: clamp(32px, 5vh, 56px) auto 0; padding: clamp(18px, 2vw, 24px) clamp(20px, 2.4vw, 30px); border: 1px solid rgba(244, 239, 231, 0.09); border-radius: 18px; background: #0e0c0b; }
.demo-cta__kicker { font-size: 11.5px; font-weight: 600; line-height: 1.3; letter-spacing: 0.2em; text-transform: uppercase; color: #e2825d; }
.demo-cta h3 { margin-top: 8px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--fg); }
.demo-cta__text > p:last-child { margin-top: 6px; max-width: 34em; font-size: clamp(14.5px, 1vw, 15.5px); line-height: 1.55; color: rgba(244, 239, 231, 0.62); }
.demo-cta__link { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid rgba(238, 125, 79, 0.55); border-radius: 999px; color: #f08a5f; font-size: 16px; font-weight: 600; white-space: nowrap; transition: background-color 0.3s ease, border-color 0.3s ease; }
.demo-cta__link span { transition: transform 0.3s var(--ease); }
.demo-cta__link:hover { background-color: rgba(238, 125, 79, 0.1); border-color: rgba(238, 125, 79, 0.85); }
.demo-cta__link:hover span { transform: translateX(4px); }
.demo-cta__link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (min-width: 600px) {
  .demo { margin-inline: 0; aspect-ratio: 16 / 10; border-radius: 24px; }
  .demo__img { object-position: 52% 60%; }
  .demo__bar { gap: 18px; padding: clamp(24px, 3vw, 40px); }
}
@media (min-width: 900px) {
  /* un clic sur « Démonstration » : pas de bande vide sous la barre ; le titre et la photo remplissent juste l'écran,
     l'invitation « Et pour votre bien ? » vient dessous */
  .block.tours { padding-block: clamp(16px, 3vh, 36px); }
  .tours__screen { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--nav-h) - 8px - 2 * clamp(16px, 3vh, 36px)); min-height: calc(100dvh - var(--nav-h) - 8px - 2 * clamp(16px, 3vh, 36px)); }
  .demo { flex: 1 1 auto; margin-inline: calc(-1 * min(var(--g), 56px)); aspect-ratio: auto; min-height: 300px; max-height: 680px; }   /* toute la largeur ; la hauteur prend la place qui reste sous le titre */
  .demo__img { object-position: 50% 61%; }
  .demo__label { font-size: 12.5px; }
  .demo__btn { min-height: 56px; padding: 0 32px; font-size: 17px; }
  .demo-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 40px; }
  .demo-cta__link { justify-self: end; }
}

/* ——— 7 · Comment ça marche : deux façons de créer la visite, en deux grandes colonnes ——— */
.how__kicker { margin: 0 0 clamp(12px, 1.8vh, 18px); font-size: clamp(14.5px, 1.15vw, 17px); font-weight: 600; line-height: 1.3; letter-spacing: 0.2em; text-transform: uppercase; color: #e2825d; }
.how__title { max-width: 16em; font-size: clamp(30px, min(7.6vw, 6.4vh), 60px); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.how__lead { max-width: 34em; margin-top: clamp(12px, 1.8vh, 18px); font-size: clamp(16px, 4.2vw, 19px); line-height: 1.55; color: rgba(244, 239, 231, 0.66); }
.how__opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: clamp(28px, 5vh, 56px); }

/* une option : la photo en grand (le libellé dans un petit encadré en haut, le titre en bas), puis les trois étapes */
.opt { --opt-bg: #0f0f0e; --opt-line: rgba(244, 239, 231, 0.09); position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(244, 239, 231, 0.1); border-radius: 22px; background: var(--opt-bg); }
/* option 01 : plus chaude (fond brun-noir, bordure cuivrée, une lueur orange au pied de la colonne) */
.opt--distance { --opt-bg: #17100c; --opt-line: rgba(214, 122, 82, 0.2); border-color: rgba(214, 122, 82, 0.34); background: radial-gradient(ellipse 90% 55% at 100% 100%, rgba(196, 98, 60, 0.16), rgba(196, 98, 60, 0) 70%), var(--opt-bg); }
.opt__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3.3; container-type: inline-size; }
.opt__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.opt__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--opt-bg) 0%, rgba(10, 9, 8, 0.5) 28%, rgba(10, 9, 8, 0) 55%); pointer-events: none; }
.opt__label { position: absolute; z-index: 1; top: clamp(14px, 1.6vw, 20px); left: clamp(14px, 1.6vw, 20px); padding: 8px 14px; border: 1px solid rgba(240, 138, 95, 0.55); border-radius: 999px; background: rgba(10, 9, 8, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase; color: #f6a27c; }
/* le titre tient toujours sur une ligne : sa taille suit la largeur de la photo (« Vous prenez les photos. » ≈ 10 fois sa hauteur de lettre) ; les deux options ont donc la même taille */
.opt__title { position: absolute; z-index: 1; left: clamp(22px, 2.4vw, 34px); right: clamp(22px, 2.4vw, 34px); bottom: clamp(14px, 1.6vw, 22px); white-space: nowrap; font-size: clamp(20px, calc((100cqw - 2 * clamp(22px, 2.4vw, 34px)) / 10.4), 44px); font-weight: 700; line-height: 1.04; letter-spacing: -0.032em; color: var(--fg); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); }
.opt__steps { margin: 0; padding: clamp(8px, 1vw, 12px) clamp(22px, 2.4vw, 34px) clamp(20px, 2.2vw, 30px); list-style: none; }
.opt__steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--opt-line); }
.opt__steps li:first-child { border-top: 0; }
.opt__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(238, 125, 79, 0.5); color: #f08a5f; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
/* option 01 : les numéros pleins, l'accent orange plus présent */
.opt--distance .opt__n { border-color: transparent; background: linear-gradient(180deg, #ef8659, #d4663b); color: #fff8f2; box-shadow: 0 0 18px rgba(240, 122, 70, 0.28); }
.opt__steps h4 { margin: 0; padding-top: 6px; font-size: clamp(17px, 1.35vw, 19px); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--fg); }
.opt__steps p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: rgba(244, 239, 231, 0.6); }
@media (hover: hover) { .opt:hover .opt__media img { scale: 1.04; } }

/* apparition : chaque colonne monte en fondu, la photo se recadre doucement, puis les étapes arrivent l'une après l'autre */
.js .opt.reveal .opt__media img { scale: 1.06; }
.js .opt.reveal.in .opt__media img { scale: 1; }
@media (hover: hover) { .js .opt.reveal.in:hover .opt__media img { scale: 1.04; } }
.js .opt .opt__steps li { opacity: 0; translate: 0 10px; transition: opacity 0.6s ease, translate 0.7s var(--ease); transition-delay: calc(var(--d, 0s) + 0.35s + var(--k) * 0.1s); }
.js .opt.in .opt__steps li { opacity: 1; translate: 0 0; }

/* ordinateur : deux colonnes égales ; grâce à « subgrid », la photo et chaque étape sont alignées d'une colonne à l'autre */
@media (min-width: 900px) {
  .how__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto repeat(3, auto); gap: 0 clamp(18px, 2vw, 28px); }
  .opt { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .opt__steps { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .opt__media { aspect-ratio: 16 / 10; }
  /* un clic sur « Comment ça marche » : toute la section tient dans l'écran ; les deux encadrés sont un peu moins hauts
     (la photo prend la place qui reste, les étapes sont plus serrées), le texte garde sa taille */
  .block.how { display: flex; flex-direction: column; min-height: calc(100svh - var(--nav-h) - 8px); min-height: calc(100dvh - var(--nav-h) - 8px); padding-block: clamp(16px, 3vh, 36px) clamp(12px, 2vh, 28px); }
  .how > .wrap { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
  .how__opts { flex: 1 1 auto; max-height: 680px; margin-top: clamp(16px, 2.6vh, 36px); grid-template-rows: minmax(150px, 1fr) repeat(3, auto); }
  .opt__media { aspect-ratio: auto; }
  .opt__media img { position: absolute; inset: 0; object-position: 50% 68%; }   /* le téléphone reste au-dessus du titre quand la photo est basse */
  .opt__steps { padding-top: 2px; padding-bottom: clamp(10px, 1.6vh, 28px); }
  .opt__steps li { padding-block: clamp(6px, 1.1vh, 16px); }
  .opt__steps h4 { padding-top: 4px; }
  .opt__steps p { margin-top: 2px; }
}

/* ——— 8 · Contact : un panneau sobre et chaleureux, centré (lueur orange en haut, réponse en moins de 12 heures) ——— */
.contact { padding-bottom: clamp(64px, 10vw, 140px); }
.contact__panel { position: relative; isolation: isolate; overflow: hidden; max-width: 980px; margin: 0 auto; padding: clamp(40px, 6vw, 84px) clamp(22px, 5vw, 72px); border: 1px solid rgba(214, 122, 82, 0.28); border-radius: 28px; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(196, 98, 60, 0.22), rgba(196, 98, 60, 0) 70%), linear-gradient(180deg, #15100c 0%, #0d0b0a 100%); text-align: center; }
.contact__panel::before { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 168, 120, 0), rgba(255, 168, 120, 0.9), rgba(255, 168, 120, 0)); }
.contact__kicker { font-size: clamp(14.5px, 1.15vw, 17px); font-weight: 600; line-height: 1.3; letter-spacing: 0.2em; text-transform: uppercase; color: #e2825d; }
.contact__title { margin-top: clamp(12px, 1.6vw, 18px); font-size: clamp(38px, 9vw, 74px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; color: var(--fg); }
.contact__lead { max-width: 34em; margin: clamp(16px, 2vw, 24px) auto 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: rgba(244, 239, 231, 0.72); }
.contact__badge { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(22px, 2.6vw, 30px); padding: 9px 16px; border: 1px solid rgba(240, 138, 95, 0.42); border-radius: 999px; background: rgba(240, 138, 95, 0.08); font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; color: #f6a27c; }
.contact__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f08a5f; animation: contact-dot 2.4s ease-out infinite; }
@keyframes contact-dot { 0% { box-shadow: 0 0 0 0 rgba(240, 138, 95, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(240, 138, 95, 0); } }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(26px, 3vw, 34px); }
.contact__actions .pill { height: 56px; padding: 0 32px; font-size: 16.5px; }
.contact__actions .pill--accent { border-color: transparent; background: linear-gradient(180deg, #f08a5f 0%, #dc6c40 100%); box-shadow: inset 0 1px 0 rgba(255, 235, 220, 0.4), 0 0 28px rgba(240, 122, 70, 0.35); }
.contact__soon { color: var(--mut); font-size: 17px; }
.contact__lines { margin-top: 22px; color: var(--mut); font-size: 15px; line-height: 1.7; }
.contact__lines a { color: var(--fg); }

/* ——— Téléphone : tout un peu plus compact (l'ordinateur n'est pas concerné) ——— */
/* « C'est quoi ? » : les deux cartes */
@media (max-width: 899px) {
  .concept--img .ccards { gap: 10px; }
  .ccard { min-height: 128px; padding: 16px; border-radius: 16px; }
  .ccard h3 { font-size: 17px; }
  .ccard p { margin-top: 6px; font-size: 13.5px; line-height: 1.45; }
}
/* « Le problème » : la barre des trois problèmes */
@media (max-width: 1099px) {
  .pb__bar { margin-top: 16px; padding: 2px 16px; border-radius: 16px; }
  .pb__card { gap: 14px; margin: 0 -10px; padding: 13px 10px; border-radius: 12px; }
  .pb__bar svg { width: 30px; height: 30px; }
  .pb__bar h3 { font-size: 16px; }
  .pb__bar p { margin-top: 3px; font-size: 13.5px; line-height: 1.4; }
}
/* « Pour qui ? » : les quatre cases (la flèche garde sa colonne à droite) */
@media (max-width: 759px) {
  .who__grid { gap: 10px; }
  .who__card { padding: 16px 62px 16px 18px; border-radius: 16px; }
  .who__cat { font-size: 11.5px; }
  .who__card h3 { margin-top: 8px; font-size: 19px; }
  .who__text { margin-top: 5px; font-size: 14px; line-height: 1.45; }
  .who__more p { margin-top: 14px; padding-top: 14px; font-size: 14px; line-height: 1.55; }
  .who__btn { right: 12px; bottom: 12px; width: 42px; height: 42px; }
}
/* « Démonstration » : la photo de la villa moins haute */
@media (max-width: 599px) {
  .demo { aspect-ratio: 1.15; border-radius: 18px; }
  .demo__img { object-position: 62% 58%; }
  .demo__bar { gap: 12px; padding: 16px; }
  .demo__label { font-size: 11px; }
  .demo__btn { min-height: 48px; padding: 0 24px; font-size: 15.5px; }
  .demo-cta h3 { font-size: 18px; }
}
/* « Comment ça marche » : photos moins hautes, étapes plus serrées */
@media (max-width: 899px) {
  .how__opts { gap: 14px; }
  .opt { border-radius: 18px; }
  .opt__media { aspect-ratio: 16 / 10.5; }
  .opt__label { top: 12px; left: 12px; padding: 6px 11px; font-size: 11px; }
  .opt__steps { padding: 2px 18px 14px; }
  .opt__steps li { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .opt__n { width: 30px; height: 30px; font-size: 11.5px; }
  .opt__steps h4 { padding-top: 4px; font-size: 15.5px; }
  .opt__steps p { margin-top: 2px; font-size: 13.5px; line-height: 1.45; }
}

/* ——— Pied de page ——— */
.footer { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); color: var(--mut); font-size: 14px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.footer .logo { color: var(--fg); }

/* ——— Lecteur de visite ——— */
.player { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; animation: player-in 0.45s var(--ease); }
@keyframes player-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.player__bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding: calc(6px + env(safe-area-inset-top)) var(--g) 6px; border-bottom: 1px solid rgba(244, 239, 231, 0.08); background: rgba(10, 9, 8, 0.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.player__title { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(244, 239, 231, 0.12); color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: background-color 0.25s ease; }
.player__close:hover { background: rgba(244, 239, 231, 0.2); }
.player__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.player iframe { flex: 1; width: 100%; border: 0; background: #000; position: relative; z-index: 1; }
.player__load { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; }
.ring--load { font-size: 44px; animation: spin 1.1s linear infinite; border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— Apparition au scroll ——— */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 900px) {
  :root { --nav-h: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .adv__row h3, .js .adv__row p { opacity: 1; translate: none; transition: none; }
  .js .adv__row::before, .js .adv__row:last-child::after { transform: none; transition: none; }
  .who__more, .who__more p, .who__more p::before, .who__btn svg { transition: none !important; }
  .demo__btn::before { animation: none; opacity: 0.6; transform: none; }
  .explore__word, .explore__arrow, .explore__hint, .explore__line { animation: none; }
  .contact__dot { animation: none; }
  .pb__screen::after { animation: none; opacity: 0.9; }
  .js .opt .opt__steps li { opacity: 1; translate: none; transition: none; }
  .opt__media img { transition: none !important; }
  .js .opt.reveal .opt__media img { scale: 1; }
  .demo__img, .demo__btn, .demo::before { transition: none !important; }
  .js .demo.reveal .demo__img { scale: 1; }
  .ring--hint, .ring--load { animation: none; }
  .concept__enter, .caret::after { animation: none; }
  .js .concept__lead, .js .concept__sub { opacity: 1; transform: none; transition: none; }
  .player { animation: none; }
}
