/* Kit annonce — aligné sur le design system ProPilot.
   Deux registres, comme dans l'application :
   - la page du bien (film, visite, carrousel) suit le « cinéma sombre » de la page publique
     ProPilot (src/app/bien/[slug]/page.tsx) et porte l'identité de l'agent, jamais celle de ProPilot ;
   - ce qui s'adresse à l'agent prospect (bandeau d'aperçu, bloc « Recevoir mon kit ») suit la
     charte du back-office (src/app/globals.css, docs/handoff/02-design-system.md). */

/* Montserrat servie localement (sous-ensemble latin, licence OFL : fonts/LICENSE-OFL.txt), comme le site vitrine. */
@font-face {
  font-family: Montserrat; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/montserrat-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Montserrat; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/montserrat-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Montserrat; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/montserrat-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/montserrat-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Page du bien — cinéma sombre */
  --cine-fond: #0c0b0a;
  --cine-surface: #151311;
  --cine-encre: #EDE9E1;
  --cine-encre-2: rgb(237 233 225 / 0.7);
  --cine-filet: #2a2724;
  --cine-champ: #4a453f;
  --agent: #C9A46C; /* accent de l'agent : or par défaut, comme la page publique ProPilot */

  /* ProPilot — charte claire du back-office */
  --pp-bg: #F4F6F8;
  --pp-surface: #FFFFFF;
  --pp-line: #DCE1E6;
  --pp-text: #0B1424;
  --pp-text2: #5B6670;
  --pp-soft: #E0F2FE;
  --pp-navy: #0B1424;
  --pp-cyan: #0EA5E9;
  --pp-cyan-link: #0369A1;
  --pp-orange: #D2775C;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: Montserrat, system-ui, sans-serif;
  --marge: clamp(20px, 5vw, 72px);
  --barre: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Kit affiché en exemple dans un cadre : pas de barre de défilement. */
html.integre { scrollbar-width: none; }
html.integre::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background: var(--cine-fond);
  color: var(--cine-encre);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
p, h1, h2, h3, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--agent); outline-offset: 3px; }

/* Libellé ProPilot : capitales espacées (page publique) */
.visite__etape, .seuil__lieu, .agent__presente, .diapo__amorce, .carrousel__tete .libelle {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ── Bandeau d'aperçu (bandeau « démo » ProPilot) ─────────────────── */
.apercu {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--barre);
  display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 16px;
  background: var(--pp-soft); color: var(--pp-text);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.apercu__action { color: var(--pp-cyan-link); text-decoration: none; white-space: nowrap; }
.apercu__action:hover { text-decoration: underline; }

/* ── Film ─────────────────────────────────────────────────────────── */
.film { position: relative; height: 100svh; min-height: 540px; background: #000; overflow: hidden; }
.film__attente { position: absolute; left: var(--marge); bottom: 48px; color: var(--cine-encre-2); font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.film__ecran { position: absolute; inset: 0; }
.plan, .scene { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.plan img, .panneau img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transform-origin: 50% 50%; }
.film--fixe .plan { visibility: visible; }
.film--fixe .film__ville--plein { position: absolute; }

/* Chiffres : nombre en Montserrat, unité plus petite. */
.valeur__u { font-weight: 500; font-size: 0.4em; margin-left: 0.2em; letter-spacing: 0; }

.film__ville {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  margin: 0; text-align: center;
  font-family: var(--serif); font-weight: 400; font-size: clamp(4.5rem, 18vw, 20rem); line-height: 0.95; letter-spacing: -0.01em;
  visibility: hidden;
}
.film__ville--photo { color: transparent; background-size: cover; -webkit-background-clip: text; background-clip: text; }
.film__ville--plein { color: var(--cine-encre); }
.film__type {
  position: absolute; left: 0; right: 0; top: calc(50% + clamp(3rem, 10.5vw, 11.5rem)); text-align: center;
  font-family: var(--sans); font-size: clamp(11px, 1.1vw, 14px); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cine-encre);
  visibility: hidden;
}

.film__ligne {
  position: absolute; left: var(--marge); right: var(--marge); bottom: clamp(72px, 12vh, 132px); z-index: 5;
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 5vw, 4.4rem); line-height: 1.08;
  max-width: 17ch; color: var(--cine-encre); text-shadow: 0 1px 18px rgb(0 0 0 / 0.45);
}
.film__ligne--centre { left: 0; right: 0; bottom: auto; top: 50%; transform: translateY(-50%); max-width: none; text-align: center; padding: 0 var(--marge); }
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.mot > span { display: inline-block; }

/* Voiles de lisibilité sur les photos (pas d'ombre portée) */
.plan::after, .panneau::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 48%); pointer-events: none; }
.plan--ouverture::after { background: radial-gradient(ellipse at center, rgb(0 0 0 / 0.45), rgb(0 0 0 / 0.1) 72%); }

.scene--chiffres .plan, .scene--prix .plan { visibility: inherit; }
.scene--chiffres .plan::after { background: rgb(12 11 10 / 0.66); }
.chiffres { position: absolute; left: var(--marge); top: 50%; transform: translateY(-50%); display: grid; gap: clamp(10px, 2.4vh, 28px); }
.chiffre { display: flex; align-items: baseline; gap: 0.6em; flex-wrap: wrap; }
.chiffre dd { font-family: var(--sans); font-weight: 600; font-size: clamp(2.6rem, 7.6vw, 6.8rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.chiffre dt { font-size: clamp(12px, 1.2vw, 15px); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--agent); }

.scene--triptyque { display: flex; gap: 6px; background: #000; }
.panneau { position: relative; flex: 1; overflow: hidden; }
.scene--triptyque .panneau::after { background: rgb(12 11 10 / 0.4); }

.scene--prix .plan::after { background: radial-gradient(ellipse at center, rgb(0 0 0 / 0.6), rgb(0 0 0 / 0.22) 70%); }
.prix__montant {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%); text-align: center; overflow: hidden;
  font-family: var(--sans); font-weight: 600; font-size: clamp(2.8rem, 9.5vw, 8.6rem); line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  white-space: nowrap;
}
.prix__montant span { display: inline-block; white-space: pre; }
.prix__sous { position: absolute; left: 0; right: 0; top: calc(50% + clamp(2.2rem, 5.4vw, 5rem)); text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.8vw, 1.4rem); color: var(--cine-encre); }

/* Identité de l'agent : monogramme ou visuel dans un carré bordé (page publique ProPilot). */
.scene--agent { background: var(--cine-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 0 var(--marge); }
.agent__visuel {
  width: 112px; height: 112px; border: 1.5px solid var(--cine-encre); overflow: hidden; display: grid; place-items: center; margin-bottom: 18px;
  font-family: var(--serif); font-size: 2rem; letter-spacing: 0.08em; color: var(--cine-encre);
}
.agent__visuel--logo { background: var(--cine-encre); }
.agent__visuel--logo img { width: 78%; height: 78%; object-fit: contain; }
.agent__visuel--portrait img { width: 100%; height: 100%; object-fit: cover; }
.agent__presente { color: var(--agent); }
.agent__nom { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
.agent__agence { color: var(--cine-encre-2); font-size: 1rem; }
.agent__visite { margin-top: 22px; font-size: 1rem; border-top: 1px solid var(--agent); padding-top: 14px; }

.film__noir { position: absolute; inset: 0; background: #000; visibility: hidden; z-index: 8; }
.film__grain {
  position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.film__grain::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgb(0 0 0 / 0.55)); mix-blend-mode: normal; }

.film__ui { position: absolute; inset: auto 0 0 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 0 var(--marge) 22px; }
.film__marque { position: absolute; z-index: 10; top: calc(var(--barre) + 16px); right: var(--marge); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cine-encre-2); }
.film__visiter {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 2px;
  border: 1px solid var(--cine-encre); background: rgb(12 11 10 / 0.35); backdrop-filter: blur(8px);
  color: var(--cine-encre); font: 600 14px/1 var(--sans); cursor: pointer;
}
.film__visiter:hover { background: rgb(12 11 10 / 0.6); }
.film__lecture {
  margin-left: auto; width: 44px; height: 44px; border-radius: 2px; border: 1px solid rgb(237 233 225 / 0.55);
  background: rgb(0 0 0 / 0.25); color: var(--cine-encre); cursor: pointer; display: grid; place-items: center;
}
.film__lecture::before { content: ''; width: 10px; height: 14px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.film__lecture[data-etat='pause']::before { width: 0; height: 0; border: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.film__progression { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(237 233 225 / 0.15); }
.film__progression span { display: block; height: 100%; background: var(--agent); transform-origin: 0 50%; transform: scaleX(0); }

/* ── Boutons (page publique ProPilot : hauteur 48, rayon 2) ─────────── */
.action {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 2px;
  border: 1px solid var(--cine-encre); background: transparent; color: var(--cine-encre);
  font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.action:hover { background: rgb(237 233 225 / 0.08); }
.action--plein { background: var(--cine-encre); color: var(--cine-fond); }
.action--plein:hover { background: #fff; }

/* ── Le seuil et son cartouche ────────────────────────────────────── */
.seuil {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: clamp(40px, 6vw, 110px); align-items: center;
  padding: clamp(96px, 12vw, 170px) var(--marge) clamp(80px, 10vw, 140px);
}
.seuil__lieu { color: var(--cine-encre-2); }
.seuil__titre { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 6vw, 5.25rem); line-height: 1.05; max-width: 15ch; }
.seuil__chapeau { margin-top: 28px; font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: rgb(237 233 225 / 0.9); max-width: 46ch; }
.seuil__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.cartouche { border: 1px solid var(--cine-champ); }
.cartouche__tete { padding: 24px 26px 20px; border-bottom: 1px solid var(--cine-champ); }
.cartouche__prix { font-weight: 600; font-size: clamp(1.9rem, 2.8vw, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.cartouche__lieu { margin-top: 8px; color: var(--cine-encre-2); font-size: 14px; }
.cartouche__lignes > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 26px; border-bottom: 1px solid var(--cine-filet); }
.cartouche__lignes > div:last-child { border-bottom: 0; }
.cartouche__lignes dt { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cine-encre-2); }
.cartouche__lignes dd { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.cartouche__energie { align-items: center !important; }
.cartouche__energie dd { display: grid; gap: 8px; justify-items: end; }
.cartouche__energie .dpe__lettres { width: 168px; }
.cartouche__energie .dpe__lettres li { height: 16px; font-size: 9px; }
.cartouche__energie .dpe__lettres .dpe--actif { height: 24px; font-size: 12px; }

/* ── La visite ────────────────────────────────────────────────────── */
.visite { position: relative; background: var(--cine-fond); border-top: 1px solid var(--cine-filet); }
.visite__scene { position: relative; height: 100svh; display: grid; grid-template-columns: minmax(300px, 30vw) minmax(0, 1fr); overflow: hidden; }
.visite__cadres { grid-area: 1 / 2; position: relative; overflow: hidden; background: #000; cursor: pointer; }
.visite__photo { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 50%; }
.visite__photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.visite__segments { grid-area: 1 / 2; align-self: start; z-index: 3; display: flex; gap: 4px; margin: calc(var(--barre) + 16px) 24px 0; pointer-events: none; }
.visite__segments span { flex: 1; height: 3px; background: rgb(237 233 225 / 0.3); transition: background 0.3s; }
.visite__segments span.plein { background: var(--agent); }
.visite__panneau {
  grid-area: 1 / 1; z-index: 2; display: flex; flex-direction: column; gap: 26px;
  padding: calc(var(--barre) + 40px) clamp(24px, 3vw, 52px) 44px; background: var(--cine-fond); border-right: 1px solid var(--cine-filet);
}
.visite__section { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.4vw, 2.3rem); line-height: 1.1; }
.visite__plan { display: grid; gap: 2px; }
.visite__plan button {
  display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 7px 0; border: 0; background: none;
  color: var(--cine-encre-2); font: 500 14px/1.3 var(--sans); text-align: left; cursor: pointer; transition: color 0.2s;
}
.visite__plan button:hover, .visite__plan button[aria-current] { color: var(--cine-encre); }
.visite__plan-no { width: 1.6em; font-weight: 600; font-variant-numeric: tabular-nums; }
.visite__plan button[aria-current] .visite__plan-no { color: var(--agent); }
.visite__courant { margin-top: auto; }
.visite__etape { color: var(--agent); }
.visite__titre { margin: 10px 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 3.2vw, 3.3rem); line-height: 1.05; }
.visite__texte { font-family: var(--serif); font-size: 1.08rem; line-height: 1.6; max-width: 36ch; color: rgb(237 233 225 / 0.9); }
.visite__plein-ecran { align-self: start; padding: 0 0 2px; border: 0; border-bottom: 1px solid var(--agent); background: none; color: var(--cine-encre); font: 600 14px/1.4 var(--sans); cursor: pointer; }

/* Sans animation : les pièces se suivent dans le flux de la page. */
.visite--statique .visite__scene { height: auto; display: flex; flex-direction: column; }
.visite--statique .visite__panneau { order: -1; padding-top: 80px; border-right: 0; }
.visite--statique .visite__cadres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 8px; padding: 0 var(--marge) 80px; cursor: default; background: none; }
.visite--statique .visite__photo { position: relative; aspect-ratio: 4 / 3; }
.visite--statique .visite__piece { grid-column: 1 / -1; padding: 48px 0 12px; scroll-margin-top: calc(var(--barre) + 16px); }
.visite--statique .visite__segments { display: none; }

/* ── Carrousel ────────────────────────────────────────────────────── */
.carrousel { background: var(--cine-surface); padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--cine-filet); }
.carrousel__tete { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 var(--marge) 40px; }
.carrousel__tete h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.1; }
.carrousel__tete p { margin-top: 12px; color: var(--cine-encre-2); max-width: 46ch; }
.carrousel__nav { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.carrousel__compteur { min-width: 4ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--cine-encre-2); }
.carrousel__bouton { width: 44px; height: 44px; border-radius: 2px; border: 1px solid rgb(237 233 225 / 0.45); background: none; color: var(--cine-encre); cursor: pointer; display: grid; place-items: center; }
.carrousel__bouton::before { content: ''; width: 9px; height: 9px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateX(2px) rotate(45deg); }
.carrousel__bouton[data-sens='1']::before { transform: translateX(-2px) rotate(-135deg); }
.carrousel__bouton:disabled { opacity: 0.3; cursor: default; }
.carrousel__piste {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--marge) 8px; scroll-padding-inline: var(--marge); scrollbar-width: none;
}
.carrousel__piste::-webkit-scrollbar { display: none; }

.diapo {
  position: relative; flex: 0 0 auto; width: min(78vw, 420px); aspect-ratio: 4 / 5; overflow: hidden;
  container-type: inline-size; background: var(--cine-fond); color: var(--cine-encre); scroll-snap-align: start;
}
.diapo__photo { position: absolute; inset: 0; }
.diapo__photo img { width: 100%; height: 100%; object-fit: cover; }
.diapo__marque { position: absolute; top: 4cqw; right: 4cqw; font-size: 2.4cqw; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(237 233 225 / 0.75); z-index: 2; }
.diapo__amorce { position: absolute; top: 6cqw; left: 6cqw; z-index: 2; font-size: 2.9cqw; }

.diapo--couverture .diapo__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.68), rgb(0 0 0 / 0) 50%), linear-gradient(to bottom, rgb(0 0 0 / 0.5), rgb(0 0 0 / 0) 24%); }
.diapo__ville { position: absolute; left: 6cqw; bottom: 15cqw; font-family: var(--serif); font-weight: 400; font-size: 18cqw; line-height: 0.95; letter-spacing: -0.01em; }
.diapo__titre { position: absolute; left: 6cqw; right: 6cqw; bottom: 7cqw; font-size: 3.1cqw; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--agent); }

.diapo--accroche .diapo__photo::after { content: ''; position: absolute; inset: 0; background: rgb(12 11 10 / 0.5); }
.diapo__citation { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 9cqw; text-align: center; font-family: var(--serif); font-style: italic; font-size: 9cqw; line-height: 1.12; }

.diapo--chiffres { background: var(--cine-fond); }
.diapo--chiffres .diapo__amorce { color: var(--agent); }
.diapo__chiffres { position: absolute; left: 6cqw; right: 6cqw; bottom: 9cqw; display: grid; gap: 4cqw; }
.diapo__chiffres div { border-top: 1px solid var(--cine-champ); padding-top: 3cqw; }
.diapo__chiffres dd { font-weight: 600; font-size: 12cqw; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.diapo__chiffres dt { margin-top: 1.4cqw; font-size: 2.8cqw; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cine-encre-2); }

.diapo--legende .diapo__photo { inset: 0 0 24% 0; }
.diapo--legende { background: var(--cine-encre); }
.diapo--legende .diapo__legende { position: absolute; left: 6cqw; right: 6cqw; bottom: 0; height: 24%; display: flex; align-items: center; color: var(--cine-fond); font-family: var(--serif); font-size: 6.2cqw; line-height: 1.12; }

.diapo__duo { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr 1fr; gap: 1.2cqw; background: var(--cine-encre); }
.diapo__duo .diapo__photo { position: relative; }
.diapo--duo .diapo__legende { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 84cqw; padding: 2.4cqw 4cqw; background: var(--cine-encre); color: var(--cine-fond); font-family: var(--serif); font-style: italic; font-size: 5cqw; line-height: 1.15; text-align: center; }

.diapo--photo .diapo__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0) 46%); }
.diapo--photo .diapo__legende { position: absolute; left: 6cqw; right: 6cqw; bottom: 7cqw; font-family: var(--serif); font-style: italic; font-size: 7cqw; line-height: 1.1; }

.diapo--prix .diapo__photo::after { content: ''; position: absolute; inset: 0; background: rgb(12 11 10 / 0.58); }
.diapo__prix { position: absolute; left: 0; right: 0; top: 44%; text-align: center; font-weight: 600; font-size: 11.5cqw; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.diapo__sous { position: absolute; left: 0; right: 0; top: calc(44% + 16cqw); text-align: center; font-family: var(--serif); font-style: italic; font-size: 4.2cqw; }

.diapo--contact { background: var(--cine-encre); color: var(--cine-fond); }
.diapo--contact .diapo__marque { color: var(--cine-champ); }
.diapo__contact { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2cqw; padding: 0 8cqw; }
.diapo__contact .agent__visuel { width: 24cqw; height: 24cqw; margin-bottom: 4cqw; border-color: var(--cine-fond); color: var(--cine-fond); font-size: 7cqw; }
.diapo__contact .agent__visuel--logo { background: #fff; }
.diapo__visite { font-family: var(--serif); font-size: 8.6cqw; line-height: 1.08; }
.diapo__agent { margin-top: 3cqw; font-size: 4.2cqw; font-weight: 600; }
.diapo__agence { font-size: 3.8cqw; color: var(--cine-champ); }

/* ── Le mot de l'agent ────────────────────────────────────────────── */
.agent-mot {
  background: var(--cine-fond); color: var(--cine-encre); border-top: 1px solid var(--cine-filet);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(36px, 5vw, 72px) clamp(40px, 6vw, 110px);
  padding: clamp(90px, 11vw, 160px) var(--marge);
}
.agent-mot__section { grid-column: 1 / -1; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--agent); }
.agent-mot__citation { grid-column: 1; }
.agent-mot__citation blockquote { margin: 0; }
.agent-mot__citation p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.18; max-width: 22ch; }
.agent-mot__citation figcaption { margin-top: 24px; color: var(--cine-encre-2); }
.agent-mot__cote { grid-column: 2; display: grid; gap: 40px; align-content: start; }
.agent-mot__carte { display: flex; align-items: center; gap: 18px; }
.agent-mot__carte .agent__visuel { width: 72px; height: 72px; margin: 0; flex-shrink: 0; font-size: 1.3rem; }
.agent-mot__nom { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.agent-mot__agence, .agent-mot__role { color: var(--cine-encre-2); font-size: 14px; }
.agent-mot__energie-titre { font-weight: 600; margin-bottom: 12px; }
.agent-mot__energie-cout { margin-top: 12px; font-size: 13px; color: var(--cine-encre-2); }
.agent-mot__annonce { grid-column: 1 / -1; border-top: 1px solid var(--cine-filet); padding-top: 22px; }
.agent-mot__annonce summary { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
.agent-mot__annonce summary::-webkit-details-marker { display: none; }
.agent-mot__annonce summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--agent); }
.agent-mot__annonce[open] summary::after { content: '−'; }
.agent-mot__annonce-texte { margin-top: 26px; columns: 2 34ch; column-gap: 56px; }
.agent-mot__annonce-texte p { margin-bottom: 1em; font-size: 14px; line-height: 1.7; color: var(--cine-encre-2); break-inside: avoid-column; }

.dpe__lettres { display: flex; gap: 4px; align-items: end; }
.dpe__lettres li { flex: 1; height: 30px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; }
.dpe__a { background: #009c6d; } .dpe__b { background: #52b153; } .dpe__c { background: #78bd76; color: var(--cine-fond) !important; }
.dpe__d { background: #f4e70f; color: var(--cine-fond) !important; } .dpe__e { background: #f0b50f; color: var(--cine-fond) !important; }
.dpe__f { background: #eb8235; } .dpe__g { background: #d7221f; }
.dpe__lettres .dpe--actif { height: 46px; font-size: 18px; outline: 2px solid var(--cine-encre); outline-offset: 2px; }

/* ── Visite en plein écran (story) ────────────────────────────────── */
html.story-ouverte { overflow: hidden; }
.story {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: var(--cine-encre); overflow: hidden;
}
.story::backdrop { background: #000; }
.story:focus { outline: none; }
.story__scene { position: absolute; inset: 0; touch-action: none; user-select: none; cursor: pointer; }
.story__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.story__scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgb(0 0 0 / 0.58), rgb(0 0 0 / 0) 18%, rgb(0 0 0 / 0) 55%, rgb(0 0 0 / 0.75)); }
.story__segments { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 16px; right: 16px; z-index: 2; display: flex; gap: 4px; pointer-events: none; }
.story__segments span { flex: 1; height: 3px; overflow: hidden; background: rgb(255 255 255 / 0.3); }
.story__segments i { display: block; height: 100%; background: var(--agent); transform-origin: 0 50%; transform: scaleX(0); }
.story__tete { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 14px); left: 16px; right: 10px; z-index: 4; display: flex; align-items: center; gap: 6px; }
.story__etape { margin-right: auto; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.story__pause, .story__fermer { position: relative; width: 44px; height: 44px; border: 0; background: none; color: var(--cine-encre); cursor: pointer; display: grid; place-items: center; }
.story__pause::before { content: ''; width: 9px; height: 13px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.story__pause[data-etat='pause']::before { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.story__fermer::before, .story__fermer::after { content: ''; position: absolute; width: 20px; height: 2px; background: currentColor; transform: rotate(45deg); }
.story__fermer::after { transform: rotate(-45deg); }
.story__legende { position: absolute; left: 20px; right: 20px; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 2; max-width: 680px; pointer-events: none; }
.story__titre { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; }
.story__texte { margin-top: 12px; font-family: var(--serif); font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.5; max-width: 40ch; }
.story__legende--discrete .story__titre { font-size: clamp(1.4rem, 3vw, 2rem); }
.story__legende--discrete .story__texte { display: none; }
.story__fin { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: var(--marge); background: var(--cine-surface); text-align: center; }
.story__fin-titre { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; }
.story__fin-nom { margin-top: 8px; font-size: 16px; font-weight: 600; }
.story__fin-agence { color: var(--cine-encre-2); }
.story__revoir { margin-top: 28px; padding: 0 0 2px; border: 0; border-bottom: 1px solid var(--agent); background: none; color: var(--cine-encre); font: 600 14px/1.4 var(--sans); cursor: pointer; }

/* ── Recevoir le kit : ProPilot s'adresse à l'agent (charte claire) ── */
.recevoir { background: var(--pp-bg); color: var(--pp-text); padding: clamp(80px, 10vw, 140px) var(--marge); }
.recevoir > * { max-width: 760px; }
.recevoir__logo { width: 180px; height: auto; margin-bottom: 40px; }
.recevoir h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.12; }
/* Le petit carré cyan, unique motif de la marque, en point final du titre. */
.recevoir h2::after { content: ''; display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.12em; background: var(--pp-cyan); }
.recevoir > p:not(.recevoir__note) { margin-top: 22px; font-size: 16px; line-height: 1.65; color: var(--pp-text2); max-width: 54ch; }
.recevoir__action {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 34px; padding: 12px 20px;
  background: var(--pp-navy); color: #fff; border-radius: 4px; font: 600 14px/1.4 var(--sans); text-decoration: none;
}
.recevoir__action:active { transform: scale(0.97); background: var(--pp-cyan-link); }
.recevoir__note { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--pp-text2); }

.pied { padding: 26px var(--marge) 36px; border-top: 1px solid var(--cine-filet); font-size: 12px; color: var(--cine-encre-2); }
.erreur { padding: 140px var(--marge); font-family: var(--serif); font-size: 1.6rem; }

/* ── Téléphone ────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .apercu { gap: 12px; font-size: 9px; }
  .apercu__detail { display: none; }
  .scene--triptyque { flex-direction: column; }
  .seuil, .agent-mot { grid-template-columns: 1fr; }
  .agent-mot__citation, .agent-mot__cote { grid-column: 1; }
  .cartouche__lignes > div, .cartouche__tete { padding-left: 20px; padding-right: 20px; }
  .carrousel__tete { flex-direction: column; align-items: start; }
  .chiffres { right: var(--marge); }
  .film__visiter { padding: 0 18px; }

  /* La visite devient une story plein écran, le texte posé sur la photo. */
  .visite__scene { grid-template-columns: 1fr; }
  .visite__cadres, .visite__segments { grid-area: 1 / 1; }
  .visite__panneau {
    grid-area: 1 / 1; align-self: end; gap: 14px; padding: 80px var(--marge) 28px; border-right: 0;
    background: linear-gradient(to top, rgb(12 11 10 / 0.95) 45%, rgb(12 11 10 / 0));
  }
  .visite__section, .visite__plan { display: none; }
  .visite__titre { font-size: 2.2rem; margin: 6px 0 8px; }
  .visite__texte { font-size: 1rem; }
  .visite--statique .visite__panneau { background: var(--cine-fond); }
}

@media (prefers-reduced-motion: reduce) {
  .carrousel__piste { scroll-behavior: auto; }
}
