/* Accueil : un film continu. Les propriétés occupent l'écran, le texte reste discret. */
.hv { --ink: #f3efe7; --dark: #0f1315; --paper: #f4f1ea; --line: rgba(243,239,231,.28); --g: clamp(20px, 6vw, 96px); background: var(--dark); color: var(--ink); font-family: var(--rx-sans); overflow: clip; }
.hv h1, .hv h2 { font-family: var(--rx-serif); font-weight: 400; letter-spacing: -0.012em; margin: 0; color: inherit; text-wrap: balance; }
.hv h2 { font-size: clamp(30px, 4vw, 56px); line-height: 1.08; }
.hv p { margin: 0; }
.hv-eyebrow { font-size: clamp(12px, .8vw, 14px); letter-spacing: .14em; text-transform: uppercase; opacity: .72; margin-bottom: 18px !important; }
.hv-link { display: inline-flex; gap: 8px; align-items: center; color: inherit; font-size: clamp(15px, 1vw, 18px); text-decoration: none; padding: 10px 0; border-bottom: 1px solid currentColor; }
.hv-link svg, .hv-btn svg { width: 14px; height: 14px; }
.hv-btn { display: inline-flex; gap: 10px; align-items: center; min-height: 46px; padding: 0 22px; background: var(--ink); color: #171c1f; font-size: 15px; font-weight: 500; text-decoration: none; }
.hv-btn:hover { background: #fff; }
.hv-fid { position: absolute; right: 18px; bottom: 16px; z-index: 3; font-size: 11px; color: var(--ink); background: rgba(13,17,20,.56); padding: 4px 8px; }
.hv-clip { display: block; width: 100%; height: 100%; object-fit: cover; }

/* En-tête : invisible sur le film, utile ensuite */
body.rx-film .rx-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; box-shadow: none; transition: background .35s, border-color .35s; }
body.rx-film .rx-brand img { filter: brightness(0) invert(1); transition: filter .35s; }
body.rx-film .rx-nav > a, body.rx-film .rx-dd-btn, body.rx-film .rx-lang button, body.rx-film .rx-menu-btn { color: #f3efe7; background: none; border-color: transparent; }
body.rx-film .rx-lang button[aria-pressed="true"] { color: #fff; }
body.rx-film .rx-header-cta { opacity: 0; pointer-events: none; transition: opacity .35s; }
body.rx-film.is-past .rx-header { background: #f7f6f2; border-color: rgba(29,38,38,.1); }
body.rx-film.is-past .rx-brand img { filter: none; }
body.rx-film.is-past .rx-nav > a, body.rx-film.is-past .rx-dd-btn, body.rx-film.is-past .rx-lang button, body.rx-film.is-past .rx-menu-btn { color: var(--rx-ink); }
body.rx-film.is-past .rx-header-cta { opacity: 1; pointer-events: auto; }
/* Menu mobile ouvert : la feuille est claire, les libelles doivent redevenir
   sombres. En mode film ils restaient creme sur papier (contraste 1,06:1,
   texte quasi invisible) parce que la regle du bandeau transparent continuait
   de s appliquer une fois le panneau ouvert. */
body.rx-film.rx-menu-open .rx-header { background: #f7f6f2; border-color: rgba(29,38,38,.1); }
body.rx-film.rx-menu-open .rx-brand img { filter: none; }
body.rx-film.rx-menu-open .rx-nav > a,
body.rx-film.rx-menu-open .rx-dd-btn,
body.rx-film.rx-menu-open .rx-lang button,
body.rx-film.rx-menu-open .rx-menu-btn { color: var(--rx-ink); }
html.routed body.rx-film .rx-header { display: none; }

/* Ouverture */
.hv-open { position: relative; height: 100svh; min-height: 560px; background: #111; overflow: hidden; }
.hv-open-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Le film d'ouverture est lumineux à la source (luminance médiane 0,196, p90 0,828) :
   tout l'assombrissement venait d'ici. Le dégradé pleine hauteur était monté de
   .42/.66 (V55) à .58/.80, et sa fenêtre claire avait perdu un tiers de sa hauteur.
   Il est remplacé par deux voiles LOCALISÉS — une barre haute pour l'en-tête, un
   coin bas-gauche pour la typographie — qui laissent l'architecture respirer. */
.hv-open::after { content: ""; position: absolute; inset: 0 0 auto; height: 15%; background: linear-gradient(180deg, rgba(10,13,15,.34), rgba(10,13,15,0)); pointer-events: none; }
.hv-open::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 46%; background: radial-gradient(86% 100% at 0% 100%, rgba(8,11,13,.72) 0%, rgba(8,11,13,.40) 32%, rgba(8,11,13,.10) 60%, rgba(8,11,13,0) 78%); pointer-events: none; }
.hv-open-p { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
.hv-open.is-reset .hv-open-p { opacity: 1; }
.hv-open .hv-fid { bottom: 8px; background: none; opacity: .72; }
.hv-words { position: absolute; z-index: 3; right: var(--g); bottom: clamp(30px, 6vh, 64px); display: flex; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; font-size: clamp(12px, .8vw, 14px); letter-spacing: .12em; text-transform: uppercase; }
.hv-words li { opacity: .42; transition: opacity .6s; }
.hv-words li.is-on { opacity: 1; }
.hv-open-t { position: absolute; z-index: 3; left: var(--g); bottom: clamp(34px, 7vh, 72px); max-width: min(760px, 70vw); opacity: 0; transform: translateY(14px); transition: opacity 1.2s, transform 1.2s; }
.hv-open.is-told .hv-open-t { opacity: 1; transform: none; }
.hv-mark { font: 500 13px/1 var(--rx-sans); letter-spacing: .34em; text-transform: uppercase; margin-bottom: 16px !important; }
.hv-open h1 { font-size: clamp(36px, 4.4vw, 76px); line-height: 1.06; margin-bottom: 14px; text-shadow: 0 1px 10px rgba(0,0,0,.55), 0 2px 30px rgba(0,0,0,.40); }
.hv-sub { font-size: clamp(16px, 1.2vw, 21px); line-height: 1.5; max-width: 32em; text-shadow: 0 1px 8px rgba(0,0,0,.6), 0 2px 22px rgba(0,0,0,.45); }
.hv-acts { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 24px; }

/* Qui est Revo */
.hv-who { background: var(--paper); color: var(--rx-ink); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(52px, 8.5vh, 104px) var(--g); }
.hv-who-t > p:not(.hv-eyebrow) { margin-top: 24px; font-size: clamp(16px, 1.15vw, 21px); line-height: 1.6; color: #475052; max-width: 34em; }
.hv-who-t .hv-link { margin-top: 26px; }
html[lang^="en"] [data-only="fr"], html:not([lang^="en"]) [data-only="en"] { display: none; }

/* Plan → espace : le film plein cadre avance avec le défilement */
.hv-plan { height: 360vh; background: #e9e7e1; color: var(--rx-ink); transition: color .5s; }
.hv-plan.is-dark { color: #f3efe7; }
.hv-plan-in { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hv-plan-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-plan-in::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(10,13,15,.7)); opacity: 0; transition: opacity .6s; pointer-events: none; }
.hv-plan.is-dark .hv-plan-in::after { opacity: 1; }
.hv-plan-t { position: absolute; z-index: 2; left: var(--g); top: clamp(84px, 12vh, 120px); transition: opacity .6s, transform .6s; }
.hv-plan-t h2 { font-size: clamp(30px, 3.4vw, 56px); }
.hv-plan-t p { margin-top: 8px; font-size: clamp(15px, 1.1vw, 19px); }
.hv-plan.is-in .hv-plan-t { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.hv-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 2vw, 30px); font-size: clamp(12px, .8vw, 14px); letter-spacing: .12em; text-transform: uppercase; }
.hv-steps li { opacity: .46; transition: opacity .5s; }
.hv-steps li.is-on { opacity: 1; }
.hv-plan .hv-steps { position: absolute; z-index: 2; left: var(--g); bottom: clamp(24px, 5vh, 48px); }
.hv-plan-a { position: absolute; z-index: 2; left: var(--g); bottom: clamp(60px, 11vh, 100px); opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; pointer-events: none; }
.hv-plan.is-end .hv-plan-a { opacity: 1; transform: none; pointer-events: auto; }
.hv-plan-a small { display: block; margin-top: 10px; font-size: 13px; opacity: .84; }
.hv-plan .hv-fid { bottom: 8px; background: none; color: inherit; opacity: .6; }

/* Film de préconstruction : plein cadre, sans cadre */
.hv-cine { position: relative; z-index: 2; height: 100svh; min-height: 620px; overflow: hidden; background: #14110e; }
.hv-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s; }
[data-film].is-reset .hv-film { opacity: 0; }
.hv-cine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,13,15,.66) 0, rgba(10,13,15,.14) 52%, transparent 74%), linear-gradient(180deg, transparent 58%, rgba(10,13,15,.6)); pointer-events: none; }
.hv-cine-t { position: absolute; z-index: 2; left: var(--g); bottom: clamp(34px, 8vh, 80px); max-width: min(640px, 84vw); }
.hv-cine-t p { margin-top: 14px; font-size: clamp(16px, 1.2vw, 21px); line-height: 1.5; }
.hv-cine .hv-steps { margin: 22px 0 24px; }

/* Résidence : respiration claire, film large */
.hv-vie { position: relative; z-index: 2; background: #ece6da; color: var(--rx-ink); padding: clamp(80px, 15vh, 170px) 0 clamp(56px, 10vh, 110px); }
.hv-vie-t { padding: 0 var(--g); max-width: 900px; margin-bottom: clamp(32px, 6vh, 64px); }
.hv-vie-t p { margin-top: 14px; font-size: clamp(16px, 1.2vw, 21px); line-height: 1.5; color: #4d5152; max-width: 36em; }
.hv-vie-f { position: relative; height: min(84svh, 56vw); min-height: 340px; overflow: hidden; background: #2a2118; }
.hv-vie-b { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding: clamp(24px, 4vh, 40px) var(--g) 0; }
.hv-vie .hv-steps li { opacity: .72; }
.hv-vie .hv-btn { background: #171c1f; color: #f3efe7; }

/* Studio Revo : les quatre dimensions, en index */
.hv-dims { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.hv-dims li { border-top: 1px solid rgba(29,38,38,.16); counter-increment: d; }
.hv-dims li:last-child { border-bottom: 1px solid rgba(29,38,38,.16); }
.hv-dims a { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 2px 8px; padding: clamp(16px, 2.6vh, 26px) 0; color: inherit; text-decoration: none; }
.hv-dims a::before { content: "0" counter(d); grid-row: 1 / span 2; font-size: 13px; letter-spacing: .1em; opacity: .55; padding-top: .7em; }
.hv-dims b { font: 400 clamp(26px, 2.8vw, 44px)/1.15 var(--rx-serif); }
.hv-dims span { font-size: clamp(14px, 1vw, 17px); color: #5a6163; }
.hv-dims a:hover b { color: #6d2238; }

/* Transformations : le défilement ouvre l'image suivante */
.hv-wipe { height: 165vh; background: var(--dark); }
.hv-wipe-in { position: sticky; top: 0; height: 100svh; overflow: hidden; --p: 0; }
.hv-wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-wipe.is-plan .hv-wipe-in { background: #f6f5f0; }
.hv-wipe.is-plan .hv-a { inset: clamp(104px, 15svh, 150px) 9vw clamp(70px, 11svh, 110px) 44vw; width: auto; height: auto; max-width: calc(56vw - 9vw); max-height: 74svh; margin: auto; object-fit: contain; object-position: 50% 50%; }
.hv-wipe.is-plan .hv-wipe-in::after { display: none; }
.hv-wipe.is-plan .hv-wipe-t { right: auto; padding: 18px 24px 16px; background: rgba(13,17,20,.82); }
.hv-b { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
/* Le voile montait trop tard et trop peu : sur un ciel clair ou une façade pâle
   (Chantier → Livraison), le titre blanc tombait sous 1,4:1. Rampe plus longue,
   plus dense au pied, et une ombre de texte en filet de sécurité. */
.hv-wipe-in::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(180deg, transparent, rgba(10,13,15,.36) 46%, rgba(10,13,15,.84)); pointer-events: none; }
.hv-wipe-t .hv-from, .hv-wipe-t .hv-line, .hv-wipe-t .hv-link { text-shadow: 0 1px 16px rgba(8,11,13,.72); }
.hv-wipe.is-plan .hv-wipe-t .hv-from, .hv-wipe.is-plan .hv-wipe-t .hv-line, .hv-wipe.is-plan .hv-wipe-t .hv-link { text-shadow: none; }
.hv-wipe-t { position: absolute; z-index: 2; left: var(--g); right: var(--g); bottom: clamp(30px, 7vh, 72px); }
.hv-from { font: 400 clamp(30px, 4.6vw, 64px)/1.08 var(--rx-serif); }
.hv-from span { opacity: calc(1 - var(--p) * .3); }
.hv-from i { font-style: normal; opacity: .7; margin: 0 .12em; }
.hv-from b { font-weight: 400; opacity: calc(.7 + var(--p) * .3); }
.hv-line { margin: 10px 0 8px !important; font-size: clamp(16px, 1.25vw, 22px); }

/* Trois propriétés */
.hv-pane { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #111; }
.hv-pane > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.hv-pane > .hv-clip { position: absolute; inset: 0; }
.hv-pane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,13,15,.62) 0, rgba(10,13,15,.1) 56%, transparent); pointer-events: none; }
.hv-pane-t { position: absolute; z-index: 2; left: var(--g); bottom: clamp(36px, 10vh, 96px); max-width: min(560px, 84vw); }
.hv-chain { margin: 14px 0 22px !important; font-size: 15px; opacity: .9; }
.hv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; }
.hv-chips button { min-height: 42px; padding: 0 15px; background: rgba(13,17,20,.5); color: var(--ink); border: 1px solid var(--line); font: 400 clamp(14px, .9vw, 16px) var(--rx-sans); cursor: pointer; }
.hv-chips button[aria-pressed="true"] { background: var(--ink); color: #171c1f; }

/* Échelle */
/* La carte du portefeuille est désormais une cartographie claire : la section
   passe donc en encre sur papier. Y garder du texte blanc aurait obligé à
   rajouter un voile noir sur une carte lumineuse — exactement ce qu'on vient
   de retirer ailleurs. */
.hv-map { position: relative; z-index: 2; height: 100svh; min-height: 560px; overflow: hidden; background: #e8e4d8; color: #1b2023; }
.hv-map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-map::after { content: ""; position: absolute; inset: 0; background: radial-gradient(105% 120% at 0% 50%, rgba(246,244,238,.95) 0%, rgba(246,244,238,.78) 28%, rgba(246,244,238,.22) 50%, rgba(246,244,238,0) 66%); pointer-events: none; }
.hv-map .hv-eyebrow { color: #6d2238; }
.hv-map-t h2 { color: #1b2023; }
.hv-map-t > p:not(.hv-eyebrow) { color: #4e5458; }
.hv-map .hv-btn { background: #1b2023; color: #f4f2ec; border-color: #1b2023; }
.hv-map-t { position: absolute; z-index: 2; left: var(--g); top: 50%; transform: translateY(-50%); max-width: min(520px, 84vw); }
.hv-map-t > p:not(.hv-eyebrow) { margin: 18px 0 18px !important; font-size: clamp(16px, 1.15vw, 20px); line-height: 1.5; }
/* Reo */
.hv-reo { position: relative; z-index: 2; height: 100svh; min-height: 620px; overflow: hidden; }
.hv-reo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.hv-reo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,13,15,.66) 0, rgba(10,13,15,.26) 34%, rgba(10,13,15,.05) 58%, transparent 72%); pointer-events: none; }
.hv-reo-t { position: absolute; z-index: 2; left: var(--g); top: 50%; transform: translateY(-50%); max-width: min(560px, 84vw); }
.hv-say { min-height: 1.5em; font-size: 16px; }
.hv-tech { margin-top: 26px !important; font-size: clamp(13px, .85vw, 15px); line-height: 1.5; opacity: .8; }

/* Pour qui */
.hv-for { position: relative; z-index: 2; background: var(--paper); color: var(--rx-ink); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); padding: clamp(72px, 13vh, 150px) var(--g); align-items: stretch; }
.hv-for h2 { font-size: 14px; font-family: var(--rx-sans); letter-spacing: .14em; text-transform: uppercase; color: #6c7375; margin-bottom: 20px; }
.hv-for-n button { display: block; width: 100%; text-align: left; padding: 7px 0; border: 0; background: none; color: #a3a8a6; font: 400 clamp(24px, 2.7vw, 38px)/1.2 var(--rx-serif); cursor: pointer; transition: color .25s; }
.hv-for-n button:hover, .hv-for-n button[aria-pressed="true"] { color: var(--rx-ink); }
.hv-for-r { position: relative; display: block; min-height: 460px; overflow: hidden; color: #f3efe7; text-decoration: none; background: #222; }
.hv-for-r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-for-r::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(10,13,15,.7)); }
.hv-for-r span { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 6px; }
.hv-for-r b { font: 400 clamp(20px, 2vw, 28px)/1.2 var(--rx-serif); }
.hv-for-r i { font-style: normal; font-size: clamp(14px, .95vw, 16px); display: inline-flex; gap: 8px; align-items: center; }
.hv-for-r svg { width: 14px; height: 14px; }

/* Côté professionnel */
.hv-pro { position: relative; z-index: 2; background: var(--paper); color: var(--rx-ink); padding: 0 var(--g) clamp(72px, 13vh, 150px); }
.hv-pro-t { max-width: 900px; }
.hv-pro-t h2 { font-size: clamp(28px, 3vw, 46px); }
.hv-pro-t p { margin-top: 16px !important; font-size: clamp(16px, 1.15vw, 20px); line-height: 1.55; color: #475052; }
body.rx-film { background: #0f1315; }
body.rx-film .rx-header-in { max-width: none; padding-left: clamp(20px, 6vw, 96px); padding-right: clamp(20px, 6vw, 96px); }

/* Fin */
.hv-end { position: relative; z-index: 2; height: 100svh; min-height: 560px; overflow: hidden; background: var(--dark); display: grid; place-items: center; text-align: center; padding: 0 var(--g); }
.hv-end > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-end::after { content: ""; position: absolute; inset: 0; background: rgba(10,13,15,.5); pointer-events: none; }
.hv-end-t { position: relative; z-index: 2; }
.hv-end-a { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; margin-top: 26px; }

@media (max-width: 860px) {
  .hv-who, .hv-for { grid-template-columns: minmax(0, 1fr); }
  .hv-words { right: auto; left: var(--g); bottom: auto; top: 76px; }
  .hv-open-t { max-width: none; right: var(--g); }
  .hv-open .hv-fid { right: auto; left: var(--g); bottom: 6px; }
  .hv-plan { height: 300vh; }
  .hv-plan-t { right: var(--g); top: 76px; }
  .hv-cine::after { background: linear-gradient(180deg, transparent 34%, rgba(10,13,15,.84)); }
  .hv-cine-t { right: var(--g); max-width: none; }
  .hv-vie-f { height: 100vw; }
  .hv-map-t { top: auto; bottom: 32px; transform: none; right: var(--g); max-width: none; }
  .hv-map::after { background: linear-gradient(180deg, transparent 30%, rgba(246,244,238,.9) 62%, rgba(246,244,238,.98)); }
  .hv-map > img { object-position: 62% 50%; }
  .hv-plan-t ol { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 12px 0; font-size: 12px; }
  .hv-plan-t li { border: 0; padding: 2px 0; }
  .hv-plan-t small { display: none; }
  .hv-pane::after, .hv-reo::after { background: linear-gradient(180deg, transparent 30%, rgba(10,13,15,.78)); }
  .hv-reo-t { top: auto; transform: none; bottom: 28px; right: var(--g); max-width: none; }
  .hv-pane-t { right: var(--g); bottom: 30px; max-width: none; }
  .hv-for-r { min-height: 320px; }
  .hv-for-n { display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .hv-for-n button { width: auto; font-size: 22px; min-height: 40px; }
  body.rx-film .rx-header-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hv-open-t { opacity: 1; transform: none; transition: none; } }

@media (max-width: 860px) {
  .hv-plan-in { background: #ebe9e2; transition: background .5s; }
  .hv-plan.is-dark .hv-plan-in { background: #16130f; }
  .hv-plan-v { inset: auto 0; top: 50%; height: auto; aspect-ratio: 1; transform: translateY(-50%); }
  .hv-plan-in::after { display: none; }
}

.hv-plan:not(.is-dark) .hv-steps li { opacity: .62; }
.hv-plan:not(.is-dark) .hv-steps li.is-on { opacity: 1; font-weight: 600; }
.hv-pro { padding-top: clamp(12px, 3vh, 32px); }

#experiences { scroll-margin-top: 110px; }

/* Contrôles de séquence : des mots, un trait, pas d'onglets */
.hv-steps button { padding: 8px 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; box-shadow: 0 1px 0 transparent; transition: box-shadow .4s; }
.hv-steps button:hover { box-shadow: 0 1px 0 currentColor; }
.hv-steps li.is-on button { box-shadow: 0 1px 0 currentColor; }
.hv-steps button:focus-visible, .hv-from button:focus-visible, .hv-skip:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hv-skip { position: absolute; z-index: 3; right: var(--g); bottom: clamp(24px, 5vh, 48px); padding: 8px 0; color: inherit; font-size: 14px; text-decoration: none; border-bottom: 1px solid currentColor; }
.hv-plan { position: relative; }
.hv-snap { display: none; }
@media (pointer: coarse) {
  html { scroll-snap-type: y proximity; }
  .hv-snap { display: block; position: absolute; left: 0; width: 1px; height: 1px; top: calc((100% - 100svh) * var(--i) / 4); scroll-snap-align: start; scroll-snap-stop: always; }
}
.hv-from { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.hv-from button { padding: 6px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: inherit; font: inherit; opacity: .66; cursor: pointer; transition: opacity .4s, border-color .4s; }
.hv-from button:hover { opacity: 1; }
.hv-from button[aria-pressed="true"] { opacity: 1; font-weight: 600; border-color: currentColor; }
.hv-dwell { position: relative; height: 165svh; }
.hv-dwell .hv-cine { position: sticky; top: 0; }
.hv-replay { display: inline-block; margin-left: 18px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.hv-replay[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hv-dwell { height: auto; } .hv-dwell .hv-cine { position: relative; } }
@media (max-width: 760px) {
  .hv-wipe.is-plan .hv-a { inset: 92px 7vw 250px; max-width: 86vw; max-height: 48svh; }
}

/* =====================================================================
 * LE PLAN DEVIENT L'ESPACE  (.hv-rise)
 *
 * Le moment signature de Revo, rendu réellement manipulable sur l'accueil.
 * Ce n'est pas un fondu entre deux images sans rapport : le plan 2D et le
 * rendu en volume sont le MÊME appartement 304, même géométrie, mêmes finis.
 * Le plan bascule en 3D CSS vers l'angle de caméra du rendu, puis cède la
 * place au volume — l'œil lit « le plan se lève », pas « l'image change ».
 * Aucun WebGL : les deux médias existent déjà en qualité héros.
 * ===================================================================== */
.hv-rise { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 30vw); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: 100svh; padding: clamp(60px, 9vh, 120px) var(--g); background: #f4f2ec; }
.hv-rise-stage { position: relative; aspect-ratio: 2400 / 1357; width: 100%; max-height: 74svh; margin: auto; perspective: 1700px; perspective-origin: 50% 46%; }
/* Rien n'est cliquable dans la pile 3D : dans un contexte preserve-3d l'ordre
   de peinture suit la profondeur et non le z-index, si bien que le rendu
   captait les clics destinés aux repères de pièces. */
.hv-rise-deck { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.hv-rise-plan, .hv-rise-dh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* Le plan : à plat, puis incliné vers l'angle du rendu. */
.hv-rise-plan { transform-origin: 50% 54%; transition: transform 1.25s cubic-bezier(.52,.02,.16,1), opacity .85s ease; }
.hv-rise-dh { opacity: 0; transition: opacity 1s ease .25s, transform 1.25s cubic-bezier(.52,.02,.16,1); transform: scale(.985); }

.hv-rise[data-step="plan"] .hv-rise-plan { transform: none; }
/* Angle relevé sur le rendu, variantes comparées côte à côte : 52° d'inclinaison,
   +17° de rotation en plan (le sens inverse faisait fuir le plan du mauvais
   côté), et une échelle de .64 pour que le plan atterrisse exactement à la
   taille du volume — sans quoi la reprise se voit. */
.hv-rise[data-step="tilt"] .hv-rise-plan { transform: rotateX(52deg) rotateZ(17deg) scale(.64); }
.hv-rise[data-step="tilt"] .hv-rise-dh { opacity: .55; }
.hv-rise[data-step="space"] .hv-rise-plan,
.hv-rise[data-step="room"] .hv-rise-plan { transform: rotateX(52deg) rotateZ(17deg) scale(.64); opacity: 0; }
.hv-rise[data-step="space"] .hv-rise-dh,
.hv-rise[data-step="room"] .hv-rise-dh { opacity: 1; transform: none; }

/* Pièces : repères discrets, qui n'apparaissent qu'une fois le volume posé. */
.hv-rise-hots { position: absolute; z-index: 2; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s ease .5s; }
.hv-rise[data-step="space"] .hv-rise-hots { opacity: 1; pointer-events: auto; }
.hv-rise-hots button { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 12px 0 0; border: 0; background: none; color: #1b2023; font: 400 13px/1 var(--rx-sans); white-space: nowrap; cursor: pointer; }
.hv-rise-hots button::before { content: ""; flex: none; width: 13px; height: 13px; border: 1.5px solid #1b2023; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 1px 6px rgba(0,0,0,.22); transition: background .25s, transform .25s; }
.hv-rise-hots button span { opacity: .78; transform: none; transition: opacity .3s; text-shadow: 0 1px 10px rgba(255,255,255,.95), 0 0 16px rgba(255,255,255,.8); }
.hv-rise-hots button:hover span, .hv-rise-hots button:focus-visible span { opacity: 1; }
.hv-rise-hots button:hover::before, .hv-rise-hots button:focus-visible::before { background: #6d2238; transform: scale(1.25); }

/* La pièce prend toute la scène : la photographie vérifiée domine. */
.hv-rise-room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 1.4s cubic-bezier(.4,0,.15,1); pointer-events: none; }
.hv-rise[data-step="room"] .hv-rise-room { opacity: 1; transform: none; }
.hv-rise-back { position: absolute; z-index: 3; left: 14px; bottom: 14px; min-height: 40px; padding: 0 16px; border: 0; background: rgba(13,17,20,.74); color: #f1eee7; font: 400 14px var(--rx-sans); cursor: pointer; }
.hv-rise .hv-fid { right: 10px; bottom: 8px; left: auto; }

/* Panneau de contrôle : discret, aligné sur la typographie du site. */
.hv-rise-t { max-width: 34ch; }
.hv-rise-t h2 { font-size: clamp(28px, 2.9vw, 46px); line-height: 1.08; margin-bottom: 14px; }
.hv-rise-say { min-height: 3em; margin: 0 0 22px !important; font-size: 16px; line-height: 1.5; color: #5d6165; }
.hv-rise-steps { display: grid; gap: 0; margin: 0 0 22px; padding: 0; list-style: none; border-top: 1px solid rgba(27,32,35,.14); }
.hv-rise-steps button { display: flex; align-items: baseline; gap: 14px; width: 100%; min-height: 50px; padding: 0; border: 0; border-bottom: 1px solid rgba(27,32,35,.14); background: none; color: #1b2023; font: 400 clamp(19px, 1.7vw, 25px) var(--rx-serif); text-align: left; cursor: pointer; transition: color .3s; }
.hv-rise-steps button i { flex: none; font: 500 11px var(--rx-sans); font-style: normal; letter-spacing: .1em; opacity: .42; }
.hv-rise-steps button:hover { color: #6d2238; }
.hv-rise-steps button[aria-pressed="true"] { color: #6d2238; }
.hv-rise-steps button[aria-pressed="true"] i { opacity: 1; }
.hv-rise-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 22px; }
.hv-rise-opts .hv-chips { margin: 0; gap: 4px; }
.hv-rise-opts .hv-chips button, .hv-rise-furn { min-height: 38px; padding: 0 14px; border: 1px solid rgba(27,32,35,.2); background: none; color: #1b2023; font: 400 14px var(--rx-sans); cursor: pointer; transition: background .25s, color .25s; }
.hv-rise-opts .hv-chips button[aria-pressed="true"], .hv-rise-furn[aria-pressed="true"] { background: #1b2023; color: #f4f2ec; border-color: #1b2023; }
.hv-rise-t .hv-link { color: #1b2023; }

@media (max-width: 900px) {
  /* Vertical : la scène d'abord, les commandes dessous, à portée de pouce. */
  .hv-rise { grid-template-columns: 1fr; min-height: 0; padding: clamp(40px, 7vh, 72px) var(--g); gap: 24px; }
  .hv-rise-stage { max-height: 46svh; }
  .hv-rise-t { max-width: none; }
  .hv-rise-say { min-height: 0; margin-bottom: 16px !important; }
  .hv-rise-steps { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .hv-rise-steps button { flex-direction: column; gap: 4px; min-height: 58px; border-bottom: 0; border-top: 2px solid rgba(27,32,35,.14); font-size: 15px; }
  .hv-rise-steps button[aria-pressed="true"] { border-top-color: #6d2238; }
  .hv-rise-hots button span { opacity: 1; transform: none; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  /* Mouvement réduit : les états changent, la caméra ne bouge pas. */
  .hv-rise-plan, .hv-rise-dh, .hv-rise-room, .hv-rise-hots { transition-duration: .01s; }
  .hv-rise[data-step="tilt"] .hv-rise-plan { transform: none; }
  .hv-rise[data-step="space"] .hv-rise-plan, .hv-rise[data-step="room"] .hv-rise-plan { transform: none; }
}

/* =====================================================================
 * PORTAILS D'EXPÉRIENCE  (.hv-worlds)
 *
 * Après la première manipulation, l'accueil rend la main : le visiteur
 * choisit par quel monde il entre, au lieu de subir une page linéaire.
 * Trois panneaux de photographie pleine hauteur, pas trois cartes. Le
 * panneau visé s'ouvre et bascule vers sa destination — ce que ce monde
 * permet d'explorer se voit avant d'y entrer.
 * Aucun moteur n'est chargé ici : deux images par panneau, rien de plus.
 * ===================================================================== */
.hv-worlds { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; background: #11161a; }
.hv-worlds-h { padding: clamp(42px, 7vh, 86px) var(--g) clamp(22px, 3.5vh, 40px); }
.hv-worlds-h h2 { font-size: clamp(28px, 3.2vw, 50px); line-height: 1.06; max-width: 18ch; }
.hv-worlds-g { flex: 1; display: flex; min-height: min(62svh, 620px); }

.hv-world { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-left: 1px solid rgba(255,255,255,.14); transition: flex-grow .9s cubic-bezier(.3,0,.15,1); }
.hv-world:first-child { border-left: 0; }
.hv-world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-world-b { opacity: 0; transition: opacity 1.1s ease; }
.hv-world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,13,.18) 0, rgba(8,11,13,0) 34%, rgba(8,11,13,.82) 100%); pointer-events: none; }
.hv-world-t { position: absolute; z-index: 2; left: clamp(18px, 2vw, 34px); right: clamp(18px, 2vw, 34px); bottom: clamp(22px, 3.5vh, 40px); }
.hv-world-k { margin: 0 0 8px !important; font: 500 11px/1 var(--rx-sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hv-world h3 { margin: 0; font: 400 clamp(21px, 2vw, 32px)/1.1 var(--rx-serif); color: #fff; }
.hv-world-c { display: flex; flex-wrap: wrap; gap: 2px 7px; margin: 12px 0 0; padding: 0; list-style: none; font: 400 12.5px var(--rx-sans); color: rgba(255,255,255,.8); }
.hv-world-c li + li::before { content: "→"; margin-right: 7px; opacity: .6; }
.hv-world-s { margin: 12px 0 0 !important; max-width: 30ch; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.84); opacity: 0; max-height: 0; overflow: hidden; transition: opacity .5s, max-height .6s; }
.hv-world .hv-btn { margin-top: 16px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; pointer-events: none; }

/* Le panneau visé s'ouvre : la destination apparaît, l'action devient possible. */
.hv-world.is-on { flex-grow: 2.1; }
.hv-world.is-on .hv-world-b { opacity: 1; }
.hv-world.is-on .hv-world-s { opacity: 1; max-height: 6em; }
.hv-world.is-on .hv-btn { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 900px) {
  /* Vertical : trois volets empilés, chacun s'ouvre au toucher. */
  .hv-worlds { min-height: 0; }
  .hv-worlds-g { flex-direction: column; min-height: 0; }
  .hv-world { flex: none; height: 46svh; min-height: 300px; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); transition: height .7s cubic-bezier(.3,0,.15,1); }
  .hv-world:first-child { border-top: 0; }
  .hv-world.is-on { flex-grow: 0; height: 62svh; }
  .hv-world-s { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-world, .hv-world-b, .hv-world-s, .hv-world .hv-btn { transition-duration: .01s; }
}
