/* ==========================================================================
   Patrick Rubinstein — one page
   Typographie calquée sur la hiérarchie de sobha-privy-collection.com :
   titres serif léger (300) en capitales, interlettrage .02em ;
   texte sans-serif ; petits libellés 600 capitales espacées.

   Polices du site de référence (sous licence, non fournies) :
     titres  → TT Ramillas Light (TypeType)
     texte   → TT Commons Pro (TypeType)
   Une fois les licences achetées, déposer les .woff2 dans assets/fonts/
   et décommenter le bloc @font-face ci-dessous : elles remplaceront
   automatiquement Cormorant Garamond et Figtree.
   ========================================================================== */
/*
@font-face { font-family: "TT Ramillas"; src: url("../fonts/TTRamillas-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "TT Commons Pro"; src: url("../fonts/TTCommonsPro-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "TT Commons Pro"; src: url("../fonts/TTCommonsPro-DemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
*/

:root {
  --black: #0d0d0d;
  --black-2: #161616;
  --white: #ffffff;
  --cream: #f5f2ed;
  --grey: #8c8a86;
  --grey-d: #6b6966;
  --line-d: rgba(255,255,255,.14);
  --line-l: rgba(0,0,0,.14);
  --gold: #c9a86a;
  --gold-deep: #a8854a;
  --ease-ui: cubic-bezier(.7, 0, .3, 1);
  --ease-out: cubic-bezier(.29, .73, .45, 1);
  --gutter: clamp(16px, 4.2vw, 64px);
  --serif: "TT Ramillas", "Cormorant Garamond", Georgia, serif;
  --sans: "TT Commons Pro", "Figtree", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--black); color: var(--white);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 300; text-transform: none; letter-spacing: 0; }

.container { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(110px, 13vw, 220px) 0; }
[data-theme="light"] { background: var(--cream); color: var(--black); }
[data-theme="dark"] { background: var(--black); color: var(--white); }

/* ---------- Typographie ---------- */
.h0, .h1, .h2, .h3, .hero__title {
  font-family: var(--serif); font-weight: 300; text-transform: uppercase;
  letter-spacing: .02em; line-height: .98;
}
.h0 { font-size: clamp(64px, 11vw, 200px); line-height: .9; }
.h1 { font-size: clamp(46px, 7vw, 128px); }
.h2 { font-size: clamp(36px, 4.6vw, 84px); margin-bottom: 32px; }
.h3 { font-size: clamp(24px, 2.2vw, 38px); margin-bottom: 18px; }
.label {
  display: block; font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 28px;
}
[data-theme="dark"] .label { color: var(--gold); }
.lead { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; }
p + p { margin-top: 18px; }
[data-theme="light"] p:not(.label):not(.lead) { color: var(--grey-d); }
[data-theme="dark"] p:not(.label):not(.lead) { color: var(--grey); }

.split-line { overflow-x: visible; overflow-y: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.split-char, .split-word { display: inline-block; will-change: transform; }
[data-reveal], [data-intro] { visibility: hidden; }
.no-js [data-reveal], .no-js [data-intro], .reduced [data-reveal], .reduced [data-intro] { visibility: visible; }

/* ---------- Ouverture : écran noir + logo ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; background: var(--black); display: grid; place-items: center; }
.preloader__logo { width: min(320px, 62vw); }
.preloader__logo svg { width: 100%; height: auto; overflow: visible; }
.preloader__logo path { fill: var(--white); }

/* ---------- Header : toujours visible, petit, sans fond ----------
   La couleur suit la section sous le header (data-tone) : blanc, noir, gris ou or. */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 34px; padding: 18px var(--gutter);
  color: var(--white); transition: color .6s ease, opacity .8s;
}
.is-loading .header { opacity: 0; }
.header[data-tone="black"] { color: var(--black); }
.header[data-tone="grey"] { color: #a6a39e; }
.header[data-tone="gold"] { color: var(--gold); }
.header__logo { display: block; }
.header__mark {
  display: block; width: 104px; height: 18px; background: currentColor;
  -webkit-mask: url("../img/logo-pr.svg") no-repeat left center / contain; mask: url("../img/logo-pr.svg") no-repeat left center / contain;
}
.header__nav { display: flex; gap: 26px; margin-left: auto; }
.header__nav a, .header__cta { font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; position: relative; padding: 5px 0; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease-ui); }
.header__nav a:hover::after, .header__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__lang { display: flex; align-items: center; gap: 6px; font: 600 10px/1 var(--sans); letter-spacing: .16em; }
.header__lang span { opacity: .4; }
.header__lang a { opacity: .55; padding: 5px 0; transition: opacity .3s; }
.header__lang a:hover, .header__lang a[aria-current] { opacity: 1; }
.header__cta { padding: 9px 14px; border: 1px solid currentColor; border-radius: 40px; opacity: .85; transition: opacity .4s; }
.header__cta:hover { opacity: 1; }
.header__burger { display: none; width: 28px; height: 18px; position: relative; margin-left: auto; }
.header__burger span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease-ui); }
.header__burger span:first-child { top: 5px; } .header__burger span:last-child { bottom: 5px; }
@media (max-width: 960px) {
  .header__burger { display: block; margin-left: 22px; }
  .header__lang { margin-left: auto; }
  .header__cta { display: none; }
  .header__nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 18px;
    padding: 0 var(--gutter); background: var(--black); color: var(--white);
    clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-ui);
  }
  .header__nav a { font: 300 clamp(36px, 10vw, 60px)/1 var(--serif); letter-spacing: .02em; }
  .menu-open .header__nav { clip-path: inset(0 0 0 0); }
  .menu-open .header { color: var(--white); transform: none; }
  .menu-open .header__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .header__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- Vidéo de fond (hero + bloc 5) ---------- */
.hero__poster, .hero__video, .film__poster, .film__video {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78svh; border: 0; object-fit: cover;
}
.hero__video, .film__video { opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.is-playing { opacity: 1 !important; }

/* ---------- 1. Hero (fixe sous le rideau) ---------- */
.curtain-wrap { position: relative; }
.hero { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; display: grid; place-items: center; text-align: center; z-index: 0; }
.hero__media { position: absolute; inset: 0; background: var(--black); }
.hero__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(13,13,13,.2) 0%, rgba(13,13,13,.55) 100%); }
.hero__content { position: relative; padding: 0 var(--gutter); }
.hero__title { font-size: clamp(56px, 11.5vw, 220px); line-height: .88; }
.hero__sub { margin-top: 30px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--white) !important; }
.hero__scroll { position: absolute; left: 50%; bottom: 34px; width: 1px; height: 64px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero__scroll i { position: absolute; inset: 0; background: var(--white); animation: scrollLine 2.4s var(--ease-ui) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- 2. Rideau blanc + œuvre en 3 vues ---------- */
.reveal-work { position: relative; z-index: 1; height: 220vh; background: var(--white) !important; }
.reveal-work__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(28px, 4vh, 48px); padding: 100px var(--gutter) 50px; }
.reveal-work__sticky > .label { margin: 0; }
/* triptyque complet : les trois points de vue de l'œuvre côte à côte */
.reveal-work__art { width: min(1100px, 100%, 150vh); }
.reveal-work__art img { width: 100%; height: auto; will-change: opacity, transform; }
.reveal-work__text { max-width: 640px; }
.reveal-work__text .h2 { font-size: clamp(30px, 3vw, 54px); margin-bottom: 16px; }
.reveal-work__text .lead { margin-bottom: 0; }
.reveal-work__cap { margin: 22px 0 0; color: var(--grey) !important; }

/* ---------- Parallax imageMove ---------- */
.parallax-frame { overflow: hidden; position: relative; }
.parallax-frame img[data-parallax-move] { width: 100%; height: 120%; object-fit: cover; will-change: transform; }

/* ---------- 3. Grand texte + photo ---------- */
.artist__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 130px); align-items: start; }
.artist__big { font: 300 clamp(34px, 3.9vw, 70px)/1.08 var(--serif); text-transform: uppercase; letter-spacing: .02em; color: var(--black) !important; margin-bottom: 44px; }
.artist__text .lead { max-width: 640px; }
.artist__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: clamp(56px, 6vw, 96px); }
.artist__img { aspect-ratio: 4/5; position: sticky; top: 14vh; }
.artist__cv { margin-top: 48px; }
@media (max-width: 900px) {
  .artist__grid, .artist__cols { grid-template-columns: 1fr; }
  .artist__img { position: relative; top: 0; }
}

/* ---------- 4. Kinetic : calques sticky ---------- */
.kinetic { position: relative; height: 540vh; }
.kinetic__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.kinetic__layer {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  gap: clamp(32px, 7vw, 120px); padding: 110px var(--gutter) 70px; background: var(--black);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.kinetic__layer[data-layer="2"] { background: var(--black-2); }
.kinetic__media { height: 100%; max-height: 72vh; overflow: hidden; }
.kinetic__media img { width: 100%; height: 100%; object-fit: cover; }
.kinetic__copy { max-width: 540px; }
.kinetic__demo { display: grid; justify-items: center; gap: 22px; }
.kinetic__hint { margin: 0; }
@media (max-width: 900px) {
  .kinetic__layer { grid-template-columns: 1fr; align-content: center; gap: 26px; padding-top: 90px; }
  .kinetic__media { max-height: 36vh; }
  .kinetic__copy .h2 { margin-bottom: 14px; }
  .kinetic__copy p:not(.label) { font-size: 15px; }
}

/* ---------- Vues d'une œuvre (fondu entre points de vue) ---------- */
.views { position: relative; width: 100%; height: 100%; perspective: 1400px; background: var(--white); }
.views__stage { position: absolute; inset: 7%; transform-style: preserve-3d; will-change: transform; }
.views__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; will-change: opacity; transition: opacity .8s cubic-bezier(.45, 0, .55, 1); }
.views--demo { width: min(100%, 50vh); height: auto; aspect-ratio: 3/4; }
@media (max-width: 900px) { .views--demo { width: min(70%, 30vh); } }

/* ---------- 5. Vidéo de fond en parallax ---------- */
/* la vidéo monte comme un rideau sur le dernier calque Kinetic (resté fixe),
   puis reste en plein écran pendant une longue pause avec un zoom arrière */
.film { position: relative; z-index: 2; height: 360vh; margin-top: -100svh; }
.film__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.film__media { position: absolute; inset: 0; background: var(--black); will-change: transform; }
.film__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,13,13,.75), rgba(13,13,13,.1) 55%); }
.film__content { position: relative; padding-bottom: clamp(70px, 10vh, 130px); }

/* ---------- 5 bis. Photo en parallax ---------- */
.still { padding-bottom: clamp(60px, 7vw, 120px); }
.still__frame { width: min(1100px, 100%); margin: 0 auto; aspect-ratio: 1056 / 480; }
.still__text { width: min(1100px, 100%); margin: 48px auto 0; display: grid; grid-template-columns: .5fr 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.still__text .label { margin: 6px 0 0; }
.still__text p + p { margin-top: 0; }
@media (max-width: 900px) { .still__text { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- 6. Fond noir, texte doré, photo à droite ---------- */
.gold__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: clamp(40px, 8vw, 150px); align-items: center; }
.gold__title {
  font-size: clamp(38px, 4.7vw, 86px); margin-bottom: 44px;
  background: linear-gradient(110deg, #8f6d36 0%, #c9a86a 30%, #f3dfae 48%, #c9a86a 62%, #8f6d36 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldSheen 9s ease-in-out infinite;
}
.gold__title .split-line, .gold__title .split-word, .gold__title .split-char { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes goldSheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.gold .lead { color: var(--gold) !important; margin-bottom: 18px; }
.gold__img img { width: 100%; height: auto; filter: drop-shadow(0 50px 80px rgba(0,0,0,.6)); }
@media (max-width: 900px) { .gold__grid { grid-template-columns: 1fr; } .gold__img { max-width: 70%; } }

/* ---------- 7. Photo en fond, citation en or ---------- */
.quote { position: relative; min-height: 110svh; display: grid; align-items: center; overflow: hidden; }
.quote__bg { position: absolute; inset: 0; }
.quote__shade { position: absolute; inset: 0; background: rgba(13,13,13,.72); }
.quote__inner { position: relative; padding-top: 140px; padding-bottom: 140px; }
.quote blockquote { max-width: 1240px; margin: 0 auto; text-align: center; }
.quote__text { font: 300 clamp(30px, 3.8vw, 64px)/1.18 var(--serif); letter-spacing: .01em; color: var(--gold) !important; }
.quote cite { margin: 48px 0 0; font-style: normal; color: var(--white) !important; }

/* ---------- Projets : volets plein écran ---------- */
.projects { position: relative; height: 500vh; }
.projects__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.projects__layers, .project-layer { position: absolute; inset: 0; }
.project-layer { clip-path: inset(100% 0 0 0); }
.project-layer:first-child { clip-path: inset(0 0 0 0); }
.project-layer img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 100%; }
.projects__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(13,13,13,.78) 0%, rgba(13,13,13,.3) 45%, transparent 70%), linear-gradient(0deg, rgba(13,13,13,.6), transparent 45%), linear-gradient(180deg, rgba(13,13,13,.5), transparent 25%); }
.projects__head { position: absolute; left: 0; right: 0; top: 110px; }
.projects__panel { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: clamp(32px, 6vh, 64px); }
.projects__info { max-width: 560px; }
.projects__info .label { margin-bottom: 16px; }
.projects__info p:not(.label) { color: rgba(255,255,255,.8) !important; max-width: 46ch; margin-bottom: 26px; }
.projects__progress { position: relative; width: 84px; height: 84px; flex: none; }
.projects__progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.projects__progress circle { fill: none; stroke-width: 1; }
.projects__progress .track { stroke: rgba(255,255,255,.2); }
.projects__progress .bar { stroke: var(--white); stroke-dasharray: 373.25; stroke-dashoffset: 373.25; }
.projects__progress span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 11px/1 var(--sans); letter-spacing: .08em; }
@media (max-width: 760px) { .projects__progress { width: 60px; height: 60px; } .projects__info .h2 { font-size: 34px; } }

/* ---------- 8. Anneau 3D des séries ---------- */
.ring { position: relative; height: 720vh; }
.ring__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ring__canvas, .ring__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ring__head { position: absolute; left: 50%; top: 11vh; transform: translateX(-50%); width: min(900px, 92vw); text-align: center; pointer-events: none; }
.ring__head p:not(.label) { max-width: 560px; margin: 24px auto 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.85) !important; }
/* légende dans la zone noire au-dessus des cartes : jamais de texte sur les images */
.ring__caption { position: absolute; left: 0; right: 0; top: 12vh; text-align: center; pointer-events: none; }
.ring__caption .label { margin-bottom: 14px; }
.ring__caption .h2 { margin-bottom: 14px; }
.ring__caption p:not(.label) { max-width: 600px; margin: 0 auto; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.85) !important; }

/* ---------- 9. Défilement horizontal des œuvres (rideau) ---------- */
.gallery { position: relative; z-index: 2; margin-top: -100svh; }
.gallery__sticky { height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.gallery__track { display: flex; align-items: flex-end; gap: clamp(56px, 7vw, 140px); padding: 0 var(--gutter); will-change: transform; transform-origin: 0 50%; }
.gallery__intro { flex: 0 0 auto; width: min(420px, 74vw); align-self: center; margin-right: clamp(20px, 4vw, 80px); }
.gallery__intro .h2 { margin-bottom: 18px; }
.gallery__intro p:not(.label) { font-size: 15px; }
.gallery__sep { flex: 0 0 1px; align-self: stretch; background: var(--line-l); margin: 0 clamp(20px, 3vw, 60px); }
.work { flex: 0 0 auto; }
.work__frame { height: var(--h, 56vh); aspect-ratio: 4/5; padding: 0; }
.work--tall .work__frame { aspect-ratio: 3/5; }
.work--wide .work__frame { aspect-ratio: 5/4; }
.work__frame.views { box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 30px 60px -30px rgba(0,0,0,.25); }
.work__dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.work__dots i { width: 16px; height: 1px; background: var(--line-l); transition: background .4s; }
.work__dots i.is-on { background: var(--black); }
.work__cap { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; }
.work__title { font: 300 20px/1.1 var(--serif); text-transform: uppercase; letter-spacing: .02em; }
.work__year { font: 600 11px/1.9 var(--sans); letter-spacing: .1em; color: var(--gold-deep); }
.work__meta { font-size: 12px; line-height: 1.5; color: var(--grey-d); margin-top: 4px; max-width: 30ch; }
.gallery__bar { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; align-items: center; gap: 24px; }
.gallery__bar .label { margin: 0; min-width: 190px; }
.gallery__bar i { flex: 1; height: 1px; background: var(--line-l); }
.gallery__bar b { display: block; height: 100%; background: var(--black); transform-origin: left; transform: scaleX(0); }
@media (max-width: 900px) {
  .gallery { margin-top: 0; }
  .gallery__sticky { height: auto; padding: 100px 0 80px; }
  .gallery__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 20px; }
  .gallery__track::-webkit-scrollbar { display: none; }
  .work { scroll-snap-align: center; }
  .work__frame { --h: 48svh; }
  .gallery__bar { display: none; }
}

/* ---------- 10. Carte des galeries (vol 3D) ---------- */
.map { position: relative; height: 900vh; }
.map__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #121212; }
.map__canvas, .map__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map__labels { position: absolute; inset: 0; pointer-events: none; }
.map-pin {
  position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 30px; background: rgba(13,13,13,.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,106,.35); color: var(--white); white-space: nowrap;
  font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  transform: translate(-50%, calc(-100% - 14px)) scale(.6); opacity: 0;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-ui), background .3s, border-color .3s;
}
.map-pin::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,106,.18); }
.map-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: linear-gradient(rgba(201,168,106,.6), transparent); }
.map-pin b { font-weight: 600; color: var(--gold); margin-left: 2px; }
.map-pin.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)) scale(1); }
.map-pin:hover, .map-pin.is-active { background: var(--gold); border-color: var(--gold); color: var(--black); }
.map-pin:hover b, .map-pin.is-active b { color: var(--black); }
.map-pin:hover::before, .map-pin.is-active::before { background: var(--black); box-shadow: none; }
.map__head { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1000px, 92vw); text-align: center; pointer-events: none; }
.map__scroll { margin: 40px 0 0; color: rgba(255,255,255,.6) !important; }
.map__region { position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 72px); pointer-events: none; }
.map__region .h2 { margin-bottom: 0; }
.map__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); z-index: 5;
  background: var(--cream); color: var(--black); padding: 130px 40px 40px; overflow-y: auto;
  transform: translateX(105%); transition: transform .9s var(--ease-ui);
}
.map__panel.is-open { transform: none; }
.map__panel .h2 { font-size: clamp(34px, 3vw, 52px); margin-bottom: 8px; }
.map__panel ul { list-style: none; margin-top: 30px; }
.map__panel li { padding: 18px 0; border-top: 1px solid var(--line-l); }
.map__panel li strong { display: block; font: 300 21px/1.15 var(--serif); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.map__panel li span { font-size: 14px; color: var(--grey-d); }
.map__close { position: absolute; top: 78px; right: 40px; margin: 0; color: var(--black) !important; }
.finder { padding-top: 40px !important; }
.finder__list { list-style: none; columns: 4 230px; column-gap: 40px; margin-top: 40px; font-size: 14px; color: var(--grey); }
.finder__list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line-d); }
.finder__list li small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5f5d5a; margin-top: 2px; }
.finder__list li[hidden] { display: none; }
.finder__list mark { background: none; color: var(--white); }

/* ---------- 11. Portrait ---------- */
.portrait__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 130px); align-items: center; }
.portrait__img { aspect-ratio: 4/5; }
.portrait__quote { font: 300 clamp(30px, 3.2vw, 56px)/1.2 var(--serif); color: var(--black) !important; }
.portrait__src { margin: 30px 0 44px; color: var(--grey-d) !important; }
@media (max-width: 900px) { .portrait__grid { grid-template-columns: 1fr; } }

/* ---------- Bouton ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden; isolation: isolate;
  padding: 17px 30px; border-radius: 40px; border: 1px solid currentColor;
  font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; transform: translateY(101%); transition: transform .6s var(--ease-ui); }
.btn span { transition: color .6s var(--ease-ui); }
.btn:hover::before { transform: translateY(0); }
[data-theme="dark"] .btn:hover span { color: var(--black); }
[data-theme="light"] .btn:hover span { color: var(--white); }

/* ---------- Formulaires ---------- */
.field { display: block; margin-bottom: 28px; }
.field span { display: block; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; opacity: .7; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0; font: 400 18px/1.4 var(--sans); color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; outline: none; transition: border-color .3s;
}
.field select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right center; }
.field select option { color: var(--black); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field--search input { font: 300 clamp(24px, 2.6vw, 38px)/1.3 var(--serif); border-color: var(--line-d); }

/* ---------- Contact ---------- */
.contact .h1 { font-size: clamp(42px, 4.8vw, 88px); }
/* la colonne prend la largeur du titre et la hauteur du formulaire :
   la photo a la largeur du titre et s'arrête au bas du bouton « Envoyer » */
.contact__head { width: max-content; max-width: 100%; display: flex; flex-direction: column; }
/* cadre à la proportion exacte de la photo : même hauteur, plus étroit, tableau entier visible */
.contact__img { flex: 1 1 0; min-height: 220px; margin-top: 44px; align-self: flex-start; width: 100%; } /* largeur calculée en JS */
.contact__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .contact__img { flex: none; aspect-ratio: 505 / 800; } }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 150px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.form__legal { font-size: 12px; margin: 8px 0 34px; max-width: 60ch; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 22px; font-size: 14px; min-height: 1.4em; }
.form__status.is-ok { color: #4f7a4f !important; }
.form__status.is-error { color: #a8483f !important; }
.form.is-sending .btn { opacity: .5; pointer-events: none; }
@media (max-width: 900px) { .contact__inner, .form__row { grid-template-columns: 1fr; gap: 0; } .contact__head { margin-bottom: 48px; } }

/* ---------- 12. Footer : reflet doré ---------- */
.footer { padding: 100px 0 32px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer__logo { height: 34px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 30px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.footer__nav a { transition: color .4s; } .footer__nav a:hover { color: var(--gold); }
.footer__giant { position: relative; font: 300 12.4vw/.9 var(--serif); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; text-align: center; margin: 90px 0 50px; }
.footer__giant span:first-child { color: transparent; -webkit-text-stroke: 1px rgba(201,168,106,.28); }
.footer__shine {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 0%, transparent 38%, rgba(201,168,106,.25) 45%, #f3dfae 50%, rgba(201,168,106,.25) 55%, transparent 62%, transparent 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: footerShine 4.5s ease-in-out infinite;
}
/* reflet doré : passage d'environ 3 s, puis courte pause */
@keyframes footerShine { 0% { background-position: 120% 0; } 70%, 100% { background-position: -20% 0; } }
.footer__bottom { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey); }
.footer__credit { color: var(--white); border-bottom: 1px solid rgba(201,168,106,.5); transition: color .4s, border-color .4s; }
.footer__credit:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Lightbox vidéo + texte long du projet ----------
   La vidéo reste fixe en haut ; seul le texte défile dessous, dans sa propre zone
   (sans barre de défilement), avec un fondu en haut et en bas. */
.modal { position: fixed; inset: 0; z-index: 180; background: var(--black); overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease-ui); visibility: hidden; }
.modal.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.modal__inner { height: 100%; display: flex; flex-direction: column; padding-top: 76px; }
.modal__frame { flex: none; width: min(1100px, calc(100% - 2 * var(--gutter)), calc(52svh * 16 / 9)); aspect-ratio: 16/9; margin: 0 auto; background: #000; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__text {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: 120px max(var(--gutter), calc((100% - 720px) / 2)) 30vh; color: var(--white);
  /* zone noire de fondu sous la vidéo : le texte s'y efface progressivement */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 24px, #000 140px, #000 calc(100% - 90px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, transparent 24px, #000 140px, #000 calc(100% - 90px), transparent 100%);
}
.modal__text::-webkit-scrollbar { display: none; }
.modal__text:empty { display: none; }
.modal__text .label { margin-bottom: 18px; }
.modal__text .h2 { margin-bottom: 36px; }
.modal__text h4 { font: 300 clamp(22px, 2vw, 30px)/1.2 var(--serif); text-transform: uppercase; letter-spacing: .02em; color: var(--gold); margin: 40px 0 16px; }
.modal__text p:not(.label) { font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.82); }
.modal__text p + p { margin-top: 18px; }
.modal__hint { display: flex; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,.5) !important; }
.modal__hint i { width: 1px; height: 36px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.modal__hint i::after { content: ""; position: absolute; inset: 0; background: var(--white); animation: scrollLine 2.4s var(--ease-ui) infinite; }
.modal__close { position: fixed; top: 28px; right: var(--gutter); z-index: 2; margin: 0; color: var(--white) !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
