/* ───────── Rio Studio · pages dédiées ─────────
   Mêmes jetons, mêmes caractères et mêmes formes que la page d'accueil : chaque chapitre est une salle,
   chaque projet garde la couleur de son mur et la forme de sa porte. Chaque section fait un écran exactement. */
.pg { overflow-x: hidden; }
.pg .bar { background: none; }
.pg main { display: block; }

/* ── un écran par section ── */
/* (v3.27) défilement libre : aucune aimantation, chaque section fait un écran mais on s'arrête où l'on veut */
.scr { position: relative; height: 100vh; height: 100svh; box-sizing: border-box; overflow: hidden; scroll-snap-align: start; }
/* l'indicateur d'accueil des téléphones ne recouvre rien : la section s'arrête au-dessus */
.scr { border-bottom: env(safe-area-inset-bottom, 0px) solid transparent; }
@media (max-height: 520px) and (orientation: landscape) {
  .scr { height: auto; min-height: 100svh; overflow: visible; }
}
.sc-cue { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 3; display: flex; align-items: center; gap: 12px; margin: 0; font: 600 10.5px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.sc-cue i { display: block; width: 1px; height: 26px; background: currentColor; animation: scCue 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes scCue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.pg-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font: 600 11px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.pg-k span:nth-child(n+3)::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 16px; }
.pg-k a { color: inherit; }
.pg-crumb { position: absolute; z-index: 4; left: var(--gut); right: var(--gut); top: calc(var(--bar) + 10px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 10.5px/1.3 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.pg-crumb a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s; }
.pg-crumb a:hover { border-color: currentColor; }
.pg-crumb i { font-style: normal; opacity: .5; }
.pg-crumb .pg-pn { margin-left: auto; display: flex; gap: 6px; }
.pg-crumb .pg-pn a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; }
.pg-crumb .pg-pn svg { width: 16px; height: 16px; }

/* ── chapitre : la salle d'entrée ── */
.pg-hero { background: var(--wall); color: var(--on); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; column-gap: var(--gap); padding: calc(var(--bar) + 4vh) var(--gut) clamp(54px, 8vh, 90px); --frame-bg: color-mix(in srgb, var(--on) 10%, var(--wall)); }
.pg-hero-in { position: relative; z-index: 2; display: grid; gap: clamp(14px, 2.2vh, 28px); align-content: center; min-width: 0; }
.pg-h { font: italic 400 clamp(70px, min(12vw, 19svh), 220px)/.84 var(--f-display); letter-spacing: -.04em; white-space: nowrap; max-width: 100%; }
.pg-h .rise { padding-bottom: .12em; margin-bottom: -.12em; }
.pg-lead { font: italic 400 clamp(20px, min(1.9vw, 3.2svh), 32px)/1.18 var(--f-display); letter-spacing: -.008em; max-width: 26em; text-wrap: pretty; }
.pg-toc { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid currentColor; max-width: 640px; }
.pg-toc--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; max-width: 760px; }
.pg-toc a { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: clamp(7px, 1.1svh, 11px) 0; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); color: inherit; text-decoration: none; transition: padding-left .5s var(--ease); }
.pg-toc a:hover, .pg-toc a:focus-visible { padding-left: 10px; }
.pg-toc b { font: 600 10.5px/1 var(--f-label); letter-spacing: .1em; opacity: .7; }
.pg-toc span { font: italic 400 clamp(20px, min(1.8vw, 3svh), 30px)/1.05 var(--f-display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-toc em { font: 600 10px/1.2 var(--f-label); font-style: normal; letter-spacing: .12em; text-transform: uppercase; opacity: .75; text-align: right; }
.pg-toc--2 em { display: none; }
.pg-door { position: relative; z-index: 1; justify-self: center; margin: 0; height: min(68svh, 660px); max-width: 100%; overflow: hidden; background: var(--frame-bg); }
.pg-door[data-shape="arch"] { aspect-ratio: .74; border-radius: 999px 999px 0 0; }
.pg-door[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.pg-door[data-shape="star"] { aspect-ratio: 1; height: min(58svh, 560px); clip-path: url(#starClip); }
.pg-door[data-shape="rect"] { aspect-ratio: 1; border-radius: 6px; }
.pg-door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease), transform 3.2s var(--ease); }
.pg-door img.on { opacity: 1; transform: scale(1); }
.pg-orn { position: absolute; z-index: 1; pointer-events: none; display: block; opacity: 0; scale: .7; transition: opacity .8s var(--ease) .2s, scale 1.4s var(--spring) .2s; }
.pg-orn.done, .rm .pg-orn { opacity: 1; scale: 1; }
.pg-orn[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; }
.pg-orn[data-shape="arch"] { aspect-ratio: .7; }
.pg-orn[data-shape="star"] { aspect-ratio: 1; }
.pg-orn-a { width: clamp(80px, 8.5vw, 150px); left: 54%; top: calc(var(--bar) + 4vh); rotate: -8deg; }
.pg-orn-b { width: clamp(70px, 7vw, 130px); right: 4%; bottom: 8%; rotate: 9deg; }
.pg-hero .pg-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-hero .pill, .sc-room .pill, .gate .pill { border: 1px solid currentColor; color: inherit; }
.pg-hero .pill:hover { background: var(--on); color: var(--wall); }
.pg-door-scr { width: min(100%, 640px); margin: 0; }
.pg-slides { position: relative; }
.pg-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.pg-slides img.on { opacity: 1; }
.js .pg-hero .pg-door-scr { opacity: 0; transform: translateY(4vh) scale(.95); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.pg-in .pg-hero .pg-door-scr, .rm .pg-hero .pg-door-scr { opacity: 1; transform: none; }

/* ── une salle par écran ── */
.sc-room { background: var(--wall); color: var(--on); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: clamp(30px, 5vw, 90px); padding: calc(var(--bar) + 3vh) var(--gut) 5vh; --frame-bg: color-mix(in srgb, var(--on) 10%, var(--wall)); }
.sc-room.sc-r .sc-room-media { order: 2; }
.sc-room-media { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; min-height: 0; min-width: 0; }
.sc-win { position: relative; margin: 0; overflow: hidden; background: var(--frame-bg); height: min(70svh, 680px); max-width: 100%; }
.sc-win[data-shape="arch"] { aspect-ratio: .74; border-radius: 999px 999px 0 0; }
.sc-win[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.sc-win[data-shape="star"] { aspect-ratio: 1; height: min(60svh, 600px); clip-path: url(#starClip); }
.sc-win[data-shape="rect"] { aspect-ratio: 1; border-radius: 6px; }
.sc-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 2.4s var(--ease); }
.sc-room.in .sc-win img { transform: scale(1); }
.sc-room-scr { width: min(100%, 700px); margin: 0; }
.sc-room-scr .ovp-scr-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-room-txt { position: relative; z-index: 2; display: grid; gap: clamp(12px, 2.2vh, 26px); align-content: center; min-width: 0; }
.sc-room-t { font: italic 400 clamp(54px, min(7.2vw, 13svh), 140px)/.88 var(--f-display); letter-spacing: -.035em; white-space: nowrap; margin: 0; }
.sc-room-t a { color: inherit; text-decoration: none; }
.sc-room-d { font: italic 400 clamp(18px, min(1.55vw, 2.8svh), 26px)/1.28 var(--f-display); max-width: 30em; margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.sc-room-a { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.sc-pill-on { background: var(--on); color: var(--wall) !important; }
.sc-room-n { position: absolute; z-index: 0; right: var(--gut); bottom: -3svh; font: italic 400 clamp(150px, min(30vw, 52svh), 480px)/.8 var(--f-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--on) 32%, transparent); pointer-events: none; }
.sc-room.sc-r .sc-room-n { right: auto; left: var(--gut); }
.sc-orn { width: clamp(64px, 6.5vw, 118px); top: calc(var(--bar) + 3vh); left: 47%; rotate: -8deg; }
.sc-r .sc-orn { left: auto; right: 47%; rotate: 9deg; }
.sc-th { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sc-th li { width: clamp(64px, 7vw, 110px); aspect-ratio: 1; overflow: hidden; border: 1px solid color-mix(in srgb, var(--on) 40%, transparent); }
.sc-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.js .sc-room .sc-room-txt > *, .js .sc-room .sc-room-media { opacity: 0; translate: 0 22px; transition: opacity .9s var(--ease), translate 1.2s var(--ease); }
.js .sc-room .sc-room-media { translate: 0; transform: scale(.94); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.js .sc-room.in .sc-room-txt > *, .js .sc-room.in .sc-room-media { opacity: 1; translate: none; transform: none; }
.js .sc-room.in .sc-room-txt > :nth-child(2) { transition-delay: .08s; } .js .sc-room.in .sc-room-txt > :nth-child(3) { transition-delay: .16s; } .js .sc-room.in .sc-room-txt > :nth-child(4) { transition-delay: .24s; }
.rm .sc-room .sc-room-txt > *, .rm .sc-room .sc-room-media { opacity: 1; translate: none; transform: none; }

/* ── fiche projet, en page ── */
.pg-proj { background: var(--wall); color: var(--on); }
.pg-proj .ovp-hero.scr { min-height: 0; padding-top: calc(var(--bar) + 58px); padding-bottom: 6vh; }
.pg-proj .ovp-win { height: min(60svh, 600px); }
.pg-proj .ovp-win[data-shape="star"] { height: min(54svh, 520px); }
.pg-proj .ovp-t { font-size: clamp(56px, min(9.4vw, 17svh), 200px); }
.sc-lead { display: grid; place-items: center; padding: calc(var(--bar) + 5vh) var(--gut) 7vh; }
.sc-lead .ovp-lead { margin: 0; max-width: 23em; font-size: clamp(26px, min(3.3vw, 5.4svh), 60px); }
.sc-fiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--gap) * 2); align-content: center; align-items: start; padding: calc(var(--bar) + 5vh) var(--gut) 7vh; }
.sc-h { font: italic 400 clamp(42px, min(5vw, 9svh), 92px)/.9 var(--f-display); letter-spacing: -.03em; margin: 0 0 3vh; }
.sc-fiche-txt p { font-size: clamp(15px, min(1.25vw, 2.2svh), 19px); line-height: 1.6; max-width: 34em; }
.sc-fiche .ovp-dl dd { font-size: clamp(14px, min(1.1vw, 2svh), 16px); }
.sc-gest, .sc-live { display: grid; align-content: center; gap: clamp(20px, 4vh, 50px); padding: calc(var(--bar) + 4vh) var(--gut) 6vh; }
.sc-gest .ovp-live-h, .sc-live .ovp-live-h { grid-column: auto; }
.sc-gest .ovp-gest { grid-column: auto; }
.sc-live { grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.sc-gest { grid-template-columns: minmax(0, 1fr); }
.sc-live .ovp-live-win { grid-column: auto; width: min(100%, 1040px, calc((100svh - var(--bar) - 7vh - 230px) * 1.6)); justify-self: center; min-height: 0; }
.sc-shot { display: grid; place-items: center; padding: calc(var(--bar) + 2vh) var(--gut) 3vh; }
.sc-shot figure { margin: 0; display: grid; gap: 12px; position: relative; width: min(100%, 1180px, calc(min(66svh, 100svh - var(--bar) - 5vh - 60px) * var(--ar))); }
.sc-shot--screen figure { width: min(100%, 1180px, calc(min(62svh, 100svh - var(--bar) - 5vh - 100px) * var(--ar))); }
.sc-shot--l figure { justify-self: start; } .sc-shot--r figure { justify-self: end; }
.sc-shot--port figure { justify-self: center; }
.sc-shot-img { position: relative; overflow: hidden; background: var(--frame-bg); }
/* l'image entière, jamais recadrée : il y a parfois du contenu jusque dans les bords */
.sc-shot-img img, .sc-shot .ovp-shot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.sc-shot .ovp-shot-img { position: relative; }
.sc-shot figcaption { display: flex; justify-content: space-between; gap: 16px; font: 600 10.5px/1.3 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.js .sc-shot figure { opacity: 0; transform: translateY(5vh) scale(.97); transition: opacity 1s var(--ease), transform 1.4s var(--ease); }
.js .sc-shot.in figure, .rm .sc-shot figure { opacity: 1; transform: none; }

/* ── bande de cartes (même chapitre, autres séries) ── */
.pg-rel { background: var(--paper); color: var(--ink); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vh, 34px); padding: calc(var(--bar) + 4vh) 0 4vh; }
.pg-rel--night { background: var(--night); color: var(--night-ink); }
.pg-rel .pg-sec-h { margin: 0 var(--gut); }
.pg-sec-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid currentColor; }
.pg-h2 { font: italic 400 clamp(42px, min(5.6vw, 10svh), 104px)/.9 var(--f-display); letter-spacing: -.03em; }
.pg-sec-h .pg-k { justify-content: flex-end; }
.pg-strip { display: flex; gap: clamp(12px, 1.4vw, 24px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gut); padding: 6px var(--gut) 10px; min-height: 0; scrollbar-width: thin; }
.pg-strip:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.pg-strip .pg-card { flex: 0 0 auto; height: 100%; max-height: 64svh; aspect-ratio: 4 / 5; scroll-snap-align: start; }
.pg-strip-cue { margin: 0 var(--gut); display: flex; align-items: center; gap: 12px; font: 600 10.5px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; opacity: .7; }
.pg-strip-cue i { width: 40px; height: 1px; background: currentColor; }
.pg-card { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 12px; min-width: 0; padding: 18px 20px 22px; box-sizing: border-box; background: var(--wall); color: var(--on); text-decoration: none; overflow: hidden; --frame-bg: color-mix(in srgb, var(--on) 10%, var(--wall)); transition: translate .6s var(--ease), box-shadow .6s var(--ease); }
.pg-card:hover, .pg-card:focus-visible { translate: 0 -6px; }
.pg-card-n { font: 600 10.5px/1 var(--f-label); letter-spacing: .12em; display: flex; justify-content: space-between; position: relative; z-index: 2; }
.pg-card-win { justify-self: center; align-self: center; height: 100%; max-height: 100%; max-width: 100%; overflow: hidden; background: var(--frame-bg); position: relative; min-height: 0; }
.pg-card-win[data-shape="arch"] { aspect-ratio: .74; border-radius: 999px 999px 0 0; }
.pg-card-win[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.pg-card-win[data-shape="star"] { aspect-ratio: 1; height: 86%; clip-path: url(#starClip); }
.pg-card-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.pg-card:hover .pg-card-win img { transform: scale(1.14); }
.pg-card-t { font: italic 400 clamp(26px, min(2.4vw, 4.4svh), 44px)/.95 var(--f-display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; position: relative; z-index: 2; }
.pg-card-m { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 600 10px/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; position: relative; z-index: 2; }
.pg-card-scr { position: relative; align-self: center; justify-self: center; width: 92%; min-height: 0; }
.pg-card-scr .pg-card-halo { position: absolute; z-index: 0; right: -8%; top: 50%; height: 128%; translate: 0 -50%; background: var(--frame-bg); }
.pg-card-scr figure { z-index: 1; }
.pg-card-halo[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.pg-card-halo[data-shape="arch"] { aspect-ratio: .74; border-radius: 999px 999px 0 0; }
.pg-card-halo[data-shape="star"] { aspect-ratio: 1; clip-path: url(#starClip); }
.pg-card-scr figure { position: relative; margin: 0; border: 1px solid currentColor; border-radius: 9px; overflow: hidden; background: #fff; rotate: -1.5deg; transition: rotate .8s var(--ease), scale .8s var(--ease); }
.pg-card:hover .pg-card-scr figure { rotate: 0deg; scale: 1.03; }
.pg-card-scr .bar3 { display: flex; gap: 5px; align-items: center; height: 20px; padding: 0 10px; border-bottom: 1px solid currentColor; background: var(--wall); }
.pg-card-scr .bar3 i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.pg-card-scr img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.pg-card--serie .pg-card-win { border: 1px solid currentColor; }

/* ── écran de passage : la salle suivante, qui se charge pendant qu'on la regarde ── */
.gate { background: var(--wall); color: var(--on); --frame-bg: color-mix(in srgb, var(--on) 10%, var(--wall)); }
.gate-a { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top top" "txt win" "meter win"; column-gap: var(--gap); padding: calc(var(--bar) + 3vh) var(--gut) calc(24px + env(safe-area-inset-bottom, 0px)); color: inherit; text-decoration: none; }
.gate-num { position: absolute; z-index: 0; left: calc(var(--gut) - .06em); top: 50%; translate: 0 -54%; font: italic 400 clamp(220px, min(40vw, 74svh), 760px)/.78 var(--f-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--on) 28%, transparent); pointer-events: none; }
.gate-top { grid-area: top; position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid currentColor; font: 600 11px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.gate-go { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid currentColor; border-radius: 999px; transition: background .4s, color .4s; }
.gate-go svg { width: 14px; height: 14px; }
.gate-a:hover .gate-go, .gate-a:focus-visible .gate-go { background: var(--on); color: var(--wall); }
.gate-a:focus-visible { outline: none; }
.gate-win { grid-area: win; position: relative; z-index: 1; align-self: center; justify-self: center; height: min(64svh, 620px); max-width: 100%; overflow: hidden; background: var(--frame-bg); }
.gate-win[data-shape="arch"] { aspect-ratio: .74; border-radius: 999px 999px 0 0; }
.gate-win[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.gate-win[data-shape="star"] { aspect-ratio: 1; height: min(56svh, 540px); clip-path: url(#starClip); }
.gate-win[data-shape="rect"] { aspect-ratio: 1; border-radius: 6px; }
.gate-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.6s var(--ease); }
.gate.in .gate-win img, .gate-a:hover .gate-win img { transform: scale(1); }
.gate-txt { grid-area: txt; position: relative; z-index: 2; align-self: end; display: grid; gap: clamp(10px, 2vh, 22px); padding-bottom: 3vh; min-width: 0; }
.gate-m { font: 600 11px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.gate-t { font: italic 400 clamp(60px, min(9vw, 17svh), 190px)/.86 var(--f-display); letter-spacing: -.04em; white-space: nowrap; }
.gate-d { font: italic 400 clamp(18px, min(1.6vw, 2.8svh), 26px)/1.28 var(--f-display); max-width: 26em; }
.gate-th { position: absolute; z-index: 2; right: var(--gut); bottom: calc(70px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.gate-th li { width: clamp(44px, 4.4vw, 70px); aspect-ratio: 1; overflow: hidden; border: 1px solid color-mix(in srgb, var(--on) 45%, transparent); background: var(--frame-bg); opacity: .35; transition: opacity .6s; }
.gate-th li.on { opacity: 1; }
.gate-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gate-meter { grid-area: meter; position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; font: 600 10.5px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.gate-meter i { height: 1px; background: color-mix(in srgb, currentColor 25%, transparent); overflow: hidden; }
.gate-meter b { display: block; height: 100%; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .3s; }
.gate-meter-n { font: italic 400 18px/1 var(--f-display); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; min-width: 3em; text-align: right; }
.js .gate .gate-txt > *, .js .gate .gate-win { opacity: 0; translate: 0 26px; transition: opacity 1s var(--ease), translate 1.3s var(--ease); }
.js .gate.in .gate-txt > *, .js .gate.in .gate-win { opacity: 1; translate: none; }
.js .gate.in .gate-t { transition-delay: .1s; } .js .gate.in .gate-d { transition-delay: .2s; } .js .gate.in .gate-win { transition-delay: .05s; }
.rm .gate .gate-txt > *, .rm .gate .gate-win { opacity: 1; translate: none; }

/* ── pied de page : un écran ── */
.pg-end { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; gap: 3vh; padding: calc(var(--bar) + 5vh) var(--gut) calc(24px + env(safe-area-inset-bottom, 0px)); }
.pg-end-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px var(--gap); padding-bottom: 3vh; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.pg-end-g p { font: 600 10.5px/1.3 var(--f-label); letter-spacing: .13em; text-transform: uppercase; opacity: .65; margin-bottom: 10px; }
.pg-end-g a { display: block; width: max-content; max-width: 100%; color: inherit; text-decoration: none; font: italic 400 clamp(17px, min(1.5vw, 2.5svh), 22px)/1.32 var(--f-display); }
.pg-end-g a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.pg-end-wm { font: italic 400 clamp(80px, min(18vw, 27svh), 320px)/.9 var(--f-display); letter-spacing: -.04em; margin: 0 0 1vh; white-space: nowrap; }
.pg-end-m { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font: 600 10.5px/1.3 var(--f-label); letter-spacing: .13em; text-transform: uppercase; opacity: .75; }
.pg-end-m a { color: inherit; }

/* ── série : la chapelle ── */
.pg-serie { background: var(--night); color: var(--night-ink); --ink: var(--night-ink); --ink-2: var(--night-2); --rule: var(--night-rule); }
.pg-serie .pg-hero { --wall: var(--night); --on: var(--night-ink); }
.pg-serie .pg-door { border: 1px solid currentColor; }
.sc-chapel .sc-win { border: 1px solid currentColor; }
.sc-photo { display: grid; place-items: center; gap: clamp(16px, 2.4vw, 40px); padding: calc(var(--bar) + 2vh) var(--gut) 3vh; }
.sc-photo--2 { grid-template-columns: repeat(2, auto); justify-content: center; }
.sc-photo figure { margin: 0; display: grid; gap: 10px; }
.sc-photo figure { width: min(100%, calc((100svh - var(--bar) - 5vh - 64px) * var(--ar, 1.333))); }
.sc-photo--2 figure { width: min(calc((100vw - 2 * var(--gut) - 40px) / 2), calc((100svh - var(--bar) - 5vh - 64px) * var(--ar, .75))); }
.pg-photo { display: block; width: 100%; padding: 0; border: 0; background: #24211E; cursor: zoom-in; overflow: hidden; position: relative; }
.pg-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pg-photo:hover img { transform: scale(1.03); }
.sc-photo figcaption { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--night-rule); }
.sc-photo figcaption b { font: 600 10.5px/1 var(--f-label); letter-spacing: .1em; }
.sc-photo figcaption span { font: italic 400 clamp(16px, 1.4vw, 20px)/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-photo figcaption em { font: 600 9.5px/1.3 var(--f-label); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--night-2); text-align: right; white-space: nowrap; }
.sc-photo--2 figcaption em, .sc-photo--port figcaption em { display: none; }
.js .sc-photo figure { opacity: 0; transform: translateY(4vh); transition: opacity 1s var(--ease), transform 1.3s var(--ease); }
.js .sc-photo.in figure, .rm .sc-photo figure { opacity: 1; transform: none; }
.js .sc-photo.in figure + figure { transition-delay: .12s; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(11, 10, 8, .96); color: var(--night-ink); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; transition: opacity .3s; }
.lb.on { opacity: 1; }
.lb-top, .lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--gut); font: 600 10.5px/1.3 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gut); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb .chip { background: none; color: inherit; border-color: currentColor; }
.lb-foot span:last-child { font: italic 400 19px/1.2 var(--f-display); text-transform: none; letter-spacing: 0; }

/* ── PixL : chaque bloc tient dans un écran ; le fonctionnement déroule ses étapes, la scène reste en place ── */
.pg-pixl .pxo.scr { min-height: 0; display: grid; place-items: center; padding: calc(var(--bar) + 30px) var(--gut) 50px; }
.pg-pixl .pxo-in { transform: none !important; }
.pg-pixl .px-how { padding: 0; }
.pg-pixl .px-how-g { align-items: start; }
.pg-pixl .px-how .px-head.scr-in { grid-column: 1 / -1; height: 100svh; box-sizing: border-box; display: grid; align-content: center; padding: calc(var(--bar) + 4vh) 0 6vh; scroll-snap-align: start; max-width: 980px; }
.pg-pixl .px-step.scr-step { min-height: 0; height: 100svh; box-sizing: border-box; padding: calc(var(--bar) + 4vh) 0 6vh; scroll-snap-align: start; border-top: 0; cursor: pointer; }
.pg-pixl .px-step.scr-step:last-child { min-height: 0; }
.pg-pixl .px-step.on { opacity: 1; }
.pg-pixl .px-stage-col { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; padding-top: var(--bar); box-sizing: border-box; }
.pg-pixl .px-fn.scr, .pg-pixl .px-ver.scr, .pg-pixl .px-cal.scr { padding: calc(var(--bar) + 3vh) 0 3vh; display: grid; align-content: center; }
.pg-pixl .px-fn .fn[hidden] { display: none; }
.pg-pixl .px-fn .fn { padding: 12px 0 14px; }
.pg-pixl .px-fn .fn p { font-size: 13px; line-height: 1.45; }
.pg-pixl .fn-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-pixl .px-head { margin-bottom: 0; }
.pg-pixl .scr > *, .pg-pixl .scr .wrap, .pg-pixl .fn-list, .pg-pixl .ver { min-width: 0; max-width: 100%; }

/* ── contact ── */
.pg-contact { background: var(--black); color: var(--cream); display: grid; place-items: center; text-align: center; padding: calc(var(--bar) + 30px) var(--gut) 40px; }
.pg-contact-in { display: grid; justify-items: center; gap: clamp(14px, 2.4vh, 22px); max-width: 100%; }
.pg-medal { width: clamp(120px, min(18vw, 26svh), 250px); height: auto; }
.pg-mail { font: italic 400 clamp(32px, 6vw, 104px)/1.05 var(--f-display); letter-spacing: -.02em; white-space: nowrap; max-width: calc(100vw - 2 * var(--gut)); color: inherit; text-decoration: none; }
.pg-contact .pill { border: 1px solid currentColor; color: inherit; background: none; }
.pg-contact .pill:hover { background: var(--cream); color: var(--black); }
.pg-contact-l { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 2vh; font: 600 10.5px/1.3 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.pg-contact-l a { color: inherit; }
#copyMsg { min-height: 1.2em; font: 400 14px var(--f-label); margin: 0; }

/* ── entrée de page ── */
.js .pg-hero .pg-door, .js .pg-hero .pg-k, .js .pg-hero .pg-lead, .js .pg-hero .pg-toc, .js .pg-hero .pg-cta { opacity: 0; translate: 0 18px; transition: opacity .9s var(--ease), translate 1.1s var(--ease); }
.js .pg-hero .pg-door { translate: 0; transform: scale(.9); transition: opacity .9s var(--ease), transform 1.5s var(--ease); }
.pg-in .pg-hero .pg-k, .pg-in .pg-hero .pg-lead, .pg-in .pg-hero .pg-toc, .pg-in .pg-hero .pg-cta { opacity: 1; translate: none; }
.pg-in .pg-hero .pg-door { opacity: 1; transform: none; }
.pg-in .pg-hero .pg-lead { transition-delay: .15s; }
.pg-in .pg-hero .pg-toc { transition-delay: .25s; }
.pg-in .rise .ch { transform: none; }
.rm .pg-hero .pg-door, .rm .pg-hero .pg-k, .rm .pg-hero .pg-lead, .rm .pg-hero .pg-toc, .rm .pg-hero .pg-cta { opacity: 1; translate: none; transform: none; }

@media (max-width: 1100px) { .pg-end-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .pg-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: stretch; row-gap: 3vh; padding-top: calc(var(--bar) + 2vh); padding-bottom: 64px; }
  .pg-hero-in { align-content: end; }
  .pg-door { grid-row: 1; height: min(32svh, 300px); justify-self: start; }
  .pg-door-scr { grid-row: 1; width: min(100%, 420px); justify-self: start; }
  .pg-toc { display: none; }
  .pg-h { font-size: clamp(54px, 15vw, 110px); }
  .pg-lead { font-size: clamp(18px, 4.8vw, 24px); }
  .pg-orn-a { left: auto; right: 6%; top: calc(var(--bar) + 2vh); }
  .pg-orn-b { bottom: auto; top: 30svh; right: 3%; }
  .pg-crumb span:not(.pg-pn) { display: none; }
  .pg-crumb { top: calc(var(--bar) + 6px); }

  .sc-room { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; row-gap: 2.6vh; padding: calc(var(--bar) + 2vh) var(--gut) 4vh; }
  .sc-room.sc-r .sc-room-media { order: 0; }
  .sc-win { height: min(38svh, 360px); }
  .sc-win[data-shape="star"] { height: min(34svh, 320px); }
  .sc-room-scr { width: min(100%, 420px); }
  .sc-room-t { font-size: clamp(42px, 13vw, 80px); }
  .sc-room-d { font-size: clamp(16px, 4.4vw, 20px); -webkit-line-clamp: 4; }
  .sc-room-n { font-size: clamp(120px, 42vw, 220px); bottom: auto; top: calc(var(--bar) + 1vh); }
  .sc-orn { display: none; }
  .sc-th li { width: 58px; }
  .pg-room-a .pill { font-size: 15px; }

  .pg-proj .ovp-hero.scr { padding-top: calc(var(--bar) + 48px); grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
  .pg-proj .ovp-winwrap, .pg-proj .ovp-scr { margin-bottom: 2vh; align-self: center; }
  .pg-proj .ovp-win { height: min(40svh, 380px); }
  .pg-proj .ovp-win[data-shape="star"] { height: min(34svh, 320px); }
  .pg-proj .ovp-t { font-size: clamp(46px, 13.5vw, 96px); }
  .sc-lead .ovp-lead { font-size: clamp(22px, min(6.4vw, 3.9svh), 34px); }
  .sc-fiche { grid-template-columns: minmax(0, 1fr); row-gap: 3vh; align-content: center; }
  .sc-h { margin-bottom: 1.6vh; }
  .sc-fiche-txt p { font-size: clamp(14px, 3.8vw, 16px); line-height: 1.5; }
  .sc-fiche .ovp-dl > div { padding: 8px 0 7px; grid-template-columns: 6.6em minmax(0, 1fr); }
  .sc-gest .ovp-gest { grid-template-columns: minmax(0, 1fr); }
  .sc-gest .ovp-gest li { padding: 10px 0 12px; }
  .sc-gest .ovp-gest-d { font-size: 14px; line-height: 1.4; }
  .sc-live .ovp-live-win { width: 100%; }
  .sc-shot figure, .sc-shot--l figure, .sc-shot--r figure { justify-self: center; }

  .gate-a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "top" "win" "txt" "meter"; row-gap: 2vh; padding-top: calc(var(--bar) + 2vh); }
  .gate-win { height: min(36svh, 340px); }
  .gate-win[data-shape="star"] { height: min(30svh, 300px); }
  .gate-txt { padding-bottom: 0; }
  .gate-t { font-size: clamp(46px, 14vw, 96px); }
  .gate-d { font-size: clamp(16px, 4.4vw, 20px); }
  .gate-num { font-size: clamp(200px, 70vw, 360px); top: 40%; }
  .gate-th { position: static; grid-area: auto; display: none; }
  .gate-top { font-size: 10px; }
  .gate-go { padding: 7px 12px; }
  .gate-go-t { display: none; }

  .pg-end { gap: 2vh; }
  .pg-end-g { gap: 16px 20px; }
  .pg-end-g a { font-size: clamp(14px, 3.9vw, 17px); line-height: 1.28; }
  .pg-end-g p { margin-bottom: 6px; }
  .pg-end-wm { font-size: clamp(64px, 24vw, 120px); }

  .sc-photo--2 { gap: 10px; }
  .sc-photo--2 figure { width: calc((100vw - 2 * var(--gut) - 10px) / 2); }
  .sc-photo figcaption { grid-template-columns: 2em minmax(0, 1fr); }
  .sc-photo figcaption em { display: none; }

  .pg-strip .pg-card { max-height: 58svh; }
  .pg-sec-h { grid-template-columns: minmax(0, 1fr); }
  .pg-sec-h .pg-k { justify-content: flex-start; }

  .pg-pixl .px-how .px-head.scr-in { padding: calc(var(--bar) + 3vh) 0 5vh; }
  .pg-pixl .px-steps { grid-row: 2 / span 1; grid-column: 1 / -1; }
  .pg-pixl .px-stage-col { grid-row: 2; grid-column: 1 / -1; position: sticky; top: var(--bar); height: auto; align-self: start; padding: 10px 0; z-index: 2; background: var(--px-ground); }
  .pg-pixl .px-step.scr-step { padding-top: calc(var(--bar) + 46svh); align-content: start; }
  .pg-pixl .px-fn.scr, .pg-pixl .px-ver.scr, .pg-pixl .px-cal.scr { align-content: start; padding-top: calc(var(--bar) + 2vh); }
  .pg-pixl .px-h { font-size: clamp(26px, 7.4vw, 34px); }
  .pg-pixl .px-legal { display: none; }
  .pg-pixl .cal { margin-top: 2vh; }
  .pg-pixl .fn-list, .pg-pixl .ver-days { display: flex !important; overflow-x: auto; scroll-snap-type: x proximity; gap: 16px; }
  .pg-pixl .fn-list > *, .pg-pixl .ver-days > * { flex: 0 0 78%; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .pg-end-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-toc em { display: none; }
}

/* ── grille : toutes les salles d'un chapitre sur un écran, pour choisir vite ── */
html[data-view="grille"] .sc-room { display: none; }
html:not([data-view="grille"]) .pg-gridv { display: none; }
.pg-view { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 3px; gap: 2px; text-transform: none; letter-spacing: 0; }
.pg-view-b { font: 500 14px/1 var(--f-text); color: inherit; background: none; border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; white-space: nowrap; }
.pg-view-b[aria-pressed="true"] { background: currentColor; }
.pg-view-b[aria-pressed="true"] { color: var(--wall, var(--paper)); background: var(--on, var(--ink)); }
.pg-gridv .pg-view-b[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.pg-gridv--night .pg-view-b[aria-pressed="true"] { color: var(--night); background: var(--night-ink); }
.pg-view-b:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.pg-hero .pg-cta { align-items: center; }
.pg-gridv { background: var(--paper); color: var(--ink); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(14px, 2.4vh, 26px); padding: calc(var(--bar) + 3vh) var(--gut) 3vh; }
.pg-gridv--night { background: var(--night); color: var(--night-ink); }
.pg-gridv .pg-sec-h .pg-k { align-items: center; }
.pg-grid { display: grid; grid-template-columns: repeat(var(--cd), minmax(0, 1fr)); grid-template-rows: repeat(var(--rd), minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); min-height: 0; }
.pg-tile { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 8px; min-width: 0; min-height: 0; padding: 12px 14px 14px; box-sizing: border-box; background: var(--wall); color: var(--on); text-decoration: none; overflow: hidden; --frame-bg: color-mix(in srgb, var(--on) 12%, var(--wall)); outline-offset: 3px; }
.pg-tile:hover .pg-tile-t, .pg-tile:focus-visible .pg-tile-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.pg-tile-n { display: flex; justify-content: space-between; gap: 8px; font: 600 10px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; }
.pg-tile-m { display: grid; place-items: center; min-height: 0; overflow: hidden; }
.pg-tile-win { position: relative; display: block; height: 100%; max-height: 100%; max-width: 100%; overflow: hidden; background: var(--frame-bg); }
.pg-tile-win[data-shape="arch"] { aspect-ratio: .74; border-radius: 999px 999px 0 0; }
.pg-tile-win[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.pg-tile-win[data-shape="star"] { aspect-ratio: 1; height: 88%; clip-path: url(#starClip); }
.pg-tile-win[data-shape="rect"] { aspect-ratio: 1; }
.pg-tile-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pg-tile:hover .pg-tile-win img { transform: scale(1.07); }
.pg-tile-scr { display: block; width: 100%; max-height: 100%; border: 1px solid currentColor; border-radius: 7px; overflow: hidden; background: var(--wall); }
.pg-tile-scr .bar3 { display: flex; gap: 4px; align-items: center; height: 15px; padding: 0 7px; border-bottom: 1px solid currentColor; }
.pg-tile-scr .bar3 i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid currentColor; }
.pg-tile-scr img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #fff; }
.pg-tile-t { font: italic 400 clamp(18px, min(2vw, 3.6svh), 34px)/1 var(--f-display); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: .1em; }
.pg-tile-c { font: 600 9.5px/1.25 var(--f-label); letter-spacing: .11em; text-transform: uppercase; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .pg-grid { grid-template-columns: repeat(var(--cm), minmax(0, 1fr)); grid-template-rows: repeat(var(--rm), minmax(0, 1fr)); gap: 8px; }
  .pg-tile { padding: 9px 10px 10px; gap: 6px; }
  .pg-tile-t { font-size: clamp(15px, 4.4vw, 20px); }
  .pg-tile-c { display: none; }
  .pg-tile-n span { display: none; }
  .pg-gridv { padding-top: calc(var(--bar) + 2vh); }
  .pg-gridv .pg-h2 { font-size: clamp(34px, 10vw, 52px); }
  .pg-view-b { padding: 8px 11px; font-size: 13px; }
}

/* ── le paravent de la photographie : six feuilles, six séries, fond d'or en aplat ── */
@property --a { syntax: '<angle>'; inherits: true; initial-value: 84deg; }
.pg-hero--pvt { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: stretch; row-gap: 2vh; padding-bottom: 3vh; }
.pvt-head { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 12px var(--gap); }
.pvt-head .pg-k { margin-bottom: 1.4vh; }
.pg-hero--pvt .pg-h { font-size: clamp(64px, min(10.5vw, 15svh), 190px); }
.pvt-side { display: grid; gap: 14px; justify-items: start; padding-bottom: .6vh; }
.pvt-side .pg-lead { font-size: clamp(18px, min(1.6vw, 2.8svh), 26px); }
.pvt { position: relative; min-height: 0; perspective: 2400px; perspective-origin: 50% 18%; }
.pvt-scr { position: absolute; top: var(--pt, 2%); left: calc(50% - var(--pw, 160px) * 3 * cos(var(--a))); width: var(--pw, 160px); height: var(--ph, 50vh); transform-style: preserve-3d; --a: 84deg; transition: --a 1.8s cubic-bezier(.2, .8, .2, 1) .25s, left 1.8s cubic-bezier(.2, .8, .2, 1) .25s; }
.pg-in .pvt-scr, .rm .pvt-scr { --a: 22deg; }
.pvt-leaf { position: absolute; top: 0; left: 100%; width: var(--pw, 160px); height: 100%; transform-style: preserve-3d; transform-origin: 0 50%; }
.pvt-leaf.root { left: 0; transform: rotateY(var(--a)); }
.pvt-leaf.odd { transform: rotateY(calc(var(--a) * -2)); }
.pvt-leaf.even { transform: rotateY(calc(var(--a) * 2)); }
.pvt-face { position: absolute; inset: 0; box-sizing: border-box; overflow: hidden; border: solid #0E0C0A; border-width: 4px 2px; background-color: #D6AE52;
  background-image: linear-gradient(#B8902F 1px, transparent 1px), linear-gradient(90deg, #C79F42 1px, transparent 1px); background-size: 100% calc(var(--pw) / 3), calc(var(--pw) / 3) 100%; }
.pvt-paint { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60%; opacity: 0; transition: opacity 1s; }
.pvt-paint.done { opacity: 1; }
.pvt-cloud { position: absolute; left: calc(var(--x0) * 100%); width: calc((var(--x1) - var(--x0)) * 100%); top: calc(var(--y) * 100%); height: calc(var(--th) * 100%); border-radius: 999px; background: #E2BD62; border: 1px solid #A98426; box-sizing: border-box; }
.pvt-shade { position: absolute; inset: 0; pointer-events: none; }
.pvt-leaf.odd > .pvt-face > .pvt-shade { background: rgba(14, 12, 10, .16); }
.pvt-tag { position: absolute; z-index: 2; top: 6%; right: 9%; display: flex; align-items: center; gap: 8px; writing-mode: vertical-rl; padding: 12px 5px; background: #F4EFDD; color: #171717; border: 1px solid #0E0C0A; font: italic 400 clamp(14px, 1.4vw, 19px)/1 var(--f-display); white-space: nowrap; }
.pvt-tag b { font: 600 10px/1 var(--f-label); letter-spacing: .12em; font-style: normal; }
.pvt-hit { position: absolute; inset: 0; z-index: 3; }
.pvt-hit:focus-visible { outline: 3px solid #F4EFDD; outline-offset: -7px; }
.pvt-face:has(.pvt-hit:hover) .pvt-tag, .pvt-face:has(.pvt-hit:focus-visible) .pvt-tag { background: #171717; color: #F4EFDD; border-color: #F4EFDD; }
.pvt-floor { position: absolute; left: 4%; right: 4%; top: calc(var(--pt, 2%) + var(--ph, 50vh) + 6px); height: 1px; background: color-mix(in srgb, var(--on) 45%, transparent); }
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .pvt-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pg-hero--pvt .pg-h { font-size: clamp(52px, 15vw, 96px); }
  .pvt-side .pg-lead { display: none; }
  .pvt-tag { right: 6%; padding: 8px 3px; font-size: 12.5px; gap: 5px; }
  .pvt-tag b { font-size: 8.5px; }
  .pvt { perspective: 1300px; }
  .pvt-face { border-width: 3px 1px; }
}

/* (v3.26) défilement latéral sans barre : on glisse au doigt, au pavé ou à la souris */
.pg-strip, .pg-pixl .fn-list, .pg-pixl .ver-days { scrollbar-width: none; -ms-overflow-style: none; }
.pg-strip::-webkit-scrollbar, .pg-pixl .fn-list::-webkit-scrollbar, .pg-pixl .ver-days::-webkit-scrollbar { display: none; }
.pg-strip { cursor: grab; }
.pg-strip.is-drag { cursor: grabbing; user-select: none; }

/* ═════════ rideaux de passage entre les pages ═════════ */
html.tr-arr::after { content: ""; position: fixed; inset: 0; z-index: 240; background: var(--tr-wall, #F4EFDD); }
html.tr-busy, html.tr-arr { cursor: progress; }
.tr { position: fixed; inset: 0; z-index: 250; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top top" "txt win" "meter win"; column-gap: var(--gap, 28px);
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gut, 24px) calc(22px + env(safe-area-inset-bottom, 0px)); background: var(--wall); color: var(--on); overflow: hidden; --p: 0;
  --frame-bg: color-mix(in srgb, var(--on) 10%, var(--wall)); clip-path: inset(100% 0 0 0); transition: clip-path .85s cubic-bezier(.7, 0, .2, 1); }
.tr.in { clip-path: inset(0 0 0 0); }
.tr.arr { transition: none; }
.tr.out { clip-path: inset(0 0 100% 0); transition: clip-path 1.05s cubic-bezier(.7, 0, .2, 1) .05s; }
.tr-num { position: absolute; z-index: 0; left: calc(var(--gut, 24px) - .06em); top: 50%; translate: 0 -54%; font: italic 400 clamp(220px, min(42vw, 78svh), 800px)/.78 var(--f-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--on) 28%, transparent); pointer-events: none; }
.tr-top { grid-area: top; position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid currentColor; font: 600 11px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.tr-top i { font-style: normal; opacity: .5; margin: 0 6px; }
.tr-win { grid-area: win; position: relative; z-index: 1; align-self: center; justify-self: center; margin: 0; height: min(66svh, 640px); max-width: 100%; overflow: hidden; background: var(--frame-bg); transform: translateY(8vh) scale(.9); opacity: 0; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) .2s, opacity .8s .2s; }
.tr-win[data-shape="arch"] { aspect-ratio: .74; border-radius: 999px 999px 0 0; }
.tr-win[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.tr-win[data-shape="star"] { aspect-ratio: 1; height: min(58svh, 560px); clip-path: url(#starClip); }
.tr-win[data-shape="rect"] { aspect-ratio: 1; border-radius: 6px; }
.tr-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 7s cubic-bezier(.2, .8, .2, 1); }
.tr.in .tr-win, .tr.arr .tr-win { transform: none; opacity: 1; }
.tr.in .tr-win img, .tr.arr .tr-win img { transform: scale(1.02); }
.tr-txt { grid-area: txt; position: relative; z-index: 2; align-self: end; display: grid; gap: clamp(10px, 2vh, 22px); padding-bottom: 3vh; min-width: 0; }
.tr-k { margin: 0; font: 600 11px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.tr-t { margin: 0 0 -.14em; font: italic 400 clamp(60px, min(9vw, 17svh), 190px)/.86 var(--f-display); letter-spacing: -.04em; white-space: nowrap; overflow: hidden; padding: 0 .04em .22em 0; }
.tr-t span { display: inline-block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) .25s; }
.tr.in .tr-t span, .tr.arr .tr-t span { transform: none; }
.tr-d { margin: 0; font: italic 400 clamp(18px, min(1.6vw, 2.8svh), 26px)/1.28 var(--f-display); max-width: 26em; opacity: 0; transition: opacity .9s .45s; }
.tr.in .tr-d, .tr.arr .tr-d { opacity: 1; }
.tr-th { position: absolute; z-index: 2; right: var(--gut, 24px); bottom: calc(66px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tr-th li { width: clamp(44px, 4.4vw, 70px); aspect-ratio: 1; overflow: hidden; border: 1px solid color-mix(in srgb, var(--on) 45%, transparent); background: var(--frame-bg); opacity: .3; transform: translateY(10px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.tr-th li.on { opacity: 1; transform: none; }
.tr-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-meter { grid-area: meter; position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; font: 600 10.5px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.tr-meter i { height: 1px; background: color-mix(in srgb, currentColor 25%, transparent); overflow: hidden; }
.tr-meter b { display: block; height: 100%; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.tr-meter-n { font: italic 400 18px/1 var(--f-display); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; min-width: 3em; text-align: right; }
/* sites : la capture dans une fenêtre de navigateur, la forme de la porte derrière */
.tr-win.tr-scr, .gate-win.gate-scr { height: auto; width: min(100%, 640px); aspect-ratio: auto; overflow: visible; background: none; clip-path: none; border-radius: 0; }
.tr-halo { position: absolute; z-index: 0; right: -10%; top: 50%; height: 140%; translate: 0 -50%; background: var(--frame-bg); }
.tr-halo[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.tr-halo[data-shape="arch"] { aspect-ratio: .74; border-radius: 999px 999px 0 0; }
.tr-halo[data-shape="star"] { aspect-ratio: 1; clip-path: url(#starClip); }
.tr-scr-win { position: relative; z-index: 1; display: block; border: 1px solid currentColor; border-radius: 12px; overflow: hidden; background: var(--wall); rotate: -1.2deg; }
.tr-scr-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid currentColor; font: 600 10px/1 var(--f-label); letter-spacing: .1em; }
.tr-scr-bar i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.tr-scr-bar span { flex: 1; text-align: center; text-transform: lowercase; opacity: .8; }
.tr-scr-win img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #fff; transform: none !important; }
.tr.go .tr-win { transform: scale(1.04); transition: transform .5s; }
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .tr { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "top" "win" "txt" "meter"; row-gap: 2vh; }
  .tr-win { height: min(38svh, 360px); }
  .tr-win[data-shape="star"] { height: min(32svh, 300px); }
  .tr-txt { padding-bottom: 0; }
  .tr-t { font-size: clamp(46px, 14vw, 96px); }
  .tr-d { font-size: clamp(16px, 4.4vw, 20px); }
  .tr-num { font-size: clamp(200px, 72vw, 380px); top: 40%; }
  .tr-th { display: none; }
  .tr-top { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .tr, .tr * { transition-duration: .01s !important; transition-delay: 0s !important; } }

/* ═════════ sommaire : barre miroir, feuille d'architecte, légende des pages dédiées ═════════
   Aplats et filets d'encre ; une seule couleur d'alerte, le rouge du repère « Vous êtes ici ». */
.sheet { --here: #E2412E; --grid: color-mix(in srgb, var(--ink) 7%, transparent); }
.sheet .sheet-in { padding-top: calc(var(--bar) + env(safe-area-inset-top, 0px) + 10px); gap: clamp(26px, 5vh, 52px); }
.sheet .sheet-top { position: fixed; inset: 0 0 auto; z-index: 3; height: var(--bar); min-height: 0; padding: env(safe-area-inset-top, 0px) var(--gut) 0; box-sizing: content-box;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--paper); pointer-events: none; }
.sheet .sheet-top > * { pointer-events: auto; }
.sh-brand { gap: 14px; text-decoration: none; }
.sh-brand .wm { font: italic 400 24px/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.sh-chap { font: 600 10.5px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid currentColor; height: 16px; display: inline-flex; align-items: center; white-space: nowrap; }
.sh-close { gap: 10px; justify-content: center; font: 500 14px/1 var(--f-label); letter-spacing: 0; text-transform: none; }
.sh-x { display: grid; grid-template-columns: repeat(3, 3px); gap: 2px; }
.sh-x i { width: 3px; height: 3px; background: currentColor; }
.sh-x i:nth-child(2n) { visibility: hidden; }          /* la grille du bouton Sommaire, dont il ne reste que la croix */
.sh-body { display: grid; gap: clamp(32px, 6vh, 64px); }

/* la feuille : un cadre d'encre, un quadrillage, le plan, l'orientation, l'échelle, et le cartouche */
.sh-sheet { margin: 0; border: 1.5px solid var(--ink); background: var(--paper); }
.sh-frame { position: relative; display: grid; place-items: center; padding: clamp(44px, 6vh, 60px) clamp(12px, 2vw, 28px) clamp(44px, 6vh, 60px);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.sh-corner { position: absolute; left: 14px; top: 14px; font: 600 10px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sh-north { position: absolute; right: 12px; top: 10px; width: 42px; height: 42px; overflow: visible; }
.sh-north circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.sh-north path { fill: var(--ink); }
.sh-north text { font: 600 7.5px var(--f-label); text-anchor: middle; fill: var(--ink); }
.sh-scale { position: absolute; left: 14px; bottom: 14px; margin: 0; display: flex; align-items: center; gap: 10px; font: 600 10px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sh-bar { display: flex; border: 1px solid var(--ink); }
.sh-bar i { width: 26px; height: 6px; background: var(--paper); }
.sh-bar i:nth-child(odd) { background: var(--ink); }
.sh-cart { display: grid; grid-template-columns: 1.1fr 1.25fr 1.5fr 1.15fr; border-top: 1.5px solid var(--ink); }
.sh-c { margin: 0; padding: 12px 16px 14px; display: grid; gap: 5px; align-content: start; border-left: 1px solid var(--ink); min-width: 0; }
.sh-c:first-child { border-left: 0; }
.sh-k { display: flex; align-items: center; gap: 7px; font: 600 10px/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sh-v { font: italic 400 clamp(19px, 1.7vw, 24px)/1.12 var(--f-display); font-weight: 400; overflow-wrap: anywhere; }
.sh-dot { width: 9px; height: 9px; box-sizing: content-box; border-radius: 50%; background: var(--here); border: 2px solid var(--paper); outline: 1.5px solid var(--here); margin: 0 3px; }
.sh-c-here .sh-k { color: var(--here); }
.sh-keys { display: grid; gap: 6px; font: 400 14px/1.2 var(--f-text); }
.sh-keys span { display: flex; align-items: center; gap: 9px; }
.k-ch { width: 18px; height: 14px; background: #F9CB40; border: 1px solid var(--ink); }
.k-ab { width: 9px; height: 18px; background: var(--ink); border-radius: 0 9px 9px 0; }

/* le plan */
.pl-box { position: relative; width: 100%; }
.pl { display: block; width: 100%; height: auto; max-height: min(66vh, 660px); margin-inline: auto; color: var(--ink); overflow: visible; }
.pl-p { display: none; }
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .pl-l { display: none; } .pl-p { display: block; max-height: none; max-width: 520px; margin-inline: auto; }
  .sh-north { transform: rotate(-90deg); }           /* en portrait le plan tourne : le nord passe à gauche */
}
.pl-f { stroke: none; }
.pl-w { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: square; stroke-linejoin: miter; }
.pl-pier { fill: var(--ink); }
.pl-rib { stroke: var(--ink); stroke-width: 1.1; stroke-dasharray: 3 5; opacity: .55; }
.pl-ap { fill: none; stroke: var(--ink); stroke-width: 4; }
.pl-rib-l { stroke: var(--paper); opacity: .4; }
.pl-cross { fill: none; stroke: var(--paper); stroke-width: 1.2; opacity: .45; }
.pl-pxg { pointer-events: none; }
.pl-sf { fill: var(--c); stroke: var(--ink); stroke-width: 1; transition: fill .25s; }
.pl-s .pl-sn { font: 600 12px var(--f-label); letter-spacing: .08em; text-anchor: middle; fill: currentColor; pointer-events: none; transition: opacity .2s; }
.pl-s { color: inherit; cursor: pointer; }
.pl-s:hover .pl-sf, .pl-s:focus-visible .pl-sf, .pl-s.is-hl .pl-sf { fill: var(--ink); }
.pl-s:hover, .pl-s:focus-visible, .pl-s.is-hl { color: var(--paper) !important; }
.pl-s:focus-visible, .pl-r:focus-visible { outline: none; }
.pl-s.is-here .pl-sn { opacity: 0; }
.pl-r polygon { fill: transparent; cursor: pointer; transition: fill .25s; }
.pl-r:hover polygon, .pl-r:focus-visible polygon, .pl-r.is-hl polygon { fill: rgba(255, 255, 255, .2); }
.pl-r:focus-visible polygon, .pl-r.is-hl polygon { stroke: var(--ink); stroke-width: 3; }
.pl-labs { pointer-events: none; }
.pl-lab text { text-anchor: middle; }
.pl-n { font: 600 14px var(--f-label); letter-spacing: .14em; }
.pl-t { font: italic 400 30px var(--f-display); }
.pl-lab-s .pl-t { font-size: 22px; }
.pl-lab-s .pl-n { font-size: 12px; }
.pl-m { font: 600 10px var(--f-label); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
/* « Vous êtes ici » : suit la visite, d'une salle à l'autre */
.pl-here { pointer-events: none; transition: transform .7s var(--ease); }
.pl-here-o { fill: none; stroke: var(--here); stroke-width: 2.5; }
.pl-here-d { fill: var(--here); stroke: var(--paper); stroke-width: 2.5; }
.pl-flag line { stroke: var(--here); stroke-width: 2.5; }
.pl-flag rect { fill: var(--here); }
.pl-flag text { fill: #FFFFFF; font-family: var(--f-label); font-weight: 600; letter-spacing: .12em; text-anchor: middle; }
.pl-here[data-fl="r"] .pl-flag-l, .pl-here[data-fl="l"] .pl-flag-r { display: none; }
/* en portrait le plan est dessiné plus petit : les textes grossissent pour rester lisibles sur un téléphone */
.pl-p .pl-sn { font-size: 19px; }
.pl-p .pl-n { font-size: 18px; }
.pl-p .pl-t { font-size: 36px; }
.pl-p .pl-m { font-size: 15px; letter-spacing: .1em; }
.pl-p .pl-lab-s .pl-t { font-size: 28px; }
.pl-p .pl-lab-s .pl-n { font-size: 16px; }

/* la légende : une colonne par chapitre, ses numéros sont ceux des chapelles */
.sh-leg { display: grid; gap: 16px; }
.sh-leg-h { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.sh-leg-h b { font: italic 400 clamp(30px, 3.4vw, 46px)/1 var(--f-display); font-weight: 400; letter-spacing: -.01em; }
.sh-leg-h span { font: 400 15px/1.4 var(--f-text); color: var(--ink-2); }
.sh-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.sh-col { border: 1.5px solid var(--ink); background: var(--paper); min-width: 0; }
.sheet .sh-head { display: grid; grid-template-columns: 1fr; gap: 6px; min-height: 0; padding: 12px 14px 13px; background: var(--c); color: var(--on); text-decoration: none; border-bottom: 1.5px solid var(--ink); }
.sheet .sh-head .sheet-n { font: 600 10.5px/1 var(--f-label); letter-spacing: .14em; color: inherit; }
.sheet .sh-head .sheet-t { font: italic 400 clamp(28px, 2.3vw, 36px)/1 var(--f-display); letter-spacing: -.01em; transition: none; }
.sheet .sh-head .sheet-m { display: block; font: 600 10px/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: inherit; opacity: .85; }
.sheet .sh-head:hover .sheet-t, .sheet .sh-head.is-hl .sheet-t { transform: none; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.sheet .sh-head.is-here .sheet-n::after { content: '   ·   vous êtes ici'; white-space: pre; }
.sh-items { list-style: none; margin: 0; padding: 6px 0 8px; }
.sh-items a { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 11px; padding: 6px 14px; min-height: 36px; box-sizing: border-box; text-decoration: none !important; font: 400 15px/1.25 var(--f-text); color: var(--ink); }
.sh-no { width: 30px; height: 23px; display: grid; place-items: center; background: var(--cc); color: var(--con); border: 1px solid var(--ink); font: 600 10.5px/1 var(--f-label); letter-spacing: .06em; transition: background-color .2s, color .2s; }
.sh-no-t { background: none !important; border-color: transparent; color: var(--ink-3) !important; font: italic 400 18px/1 var(--f-display); }
.sh-items a:hover .sh-no, .sh-items a.is-hl .sh-no { background: var(--ink); color: var(--paper); }
.sh-items a:hover .sh-nm, .sh-items a.is-hl .sh-nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.sh-items a.is-here .sh-no { background: var(--here); border-color: var(--here); color: #FFFFFF; }
.sh-items a.is-here .sh-nm::after { content: 'vous êtes ici'; display: block; margin-top: 3px; font: 600 9.5px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--here); }
.sh-col .sheet-a { min-height: 0; }

@media (max-width: 1180px) { .sh-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sh-cart { grid-template-columns: 1fr 1fr; } .sh-c:nth-child(3) { border-left: 0; } .sh-c:nth-child(n+3) { border-top: 1px solid var(--ink); } }
@media (max-width: 760px) {
  .sh-cols { grid-template-columns: 1fr; gap: 10px; }
  .sh-frame { padding: 46px 10px 44px; }
  .sh-cart { grid-template-columns: 1fr 1fr; }
  .sh-c { padding: 10px 12px 12px; }
  .sh-c-key { display: none; }
  .sh-c-hov { grid-column: 1 / -1; }
  .sh-c:nth-child(3) { border-left: 0; }
  .sheet .sh-head { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; }
  .sheet .sh-head .sheet-m { grid-column: 1 / -1; }
  .sh-items { columns: 2; column-gap: 0; }
  .sh-items li { break-inside: avoid; }
  .sh-items a { padding: 6px 10px; gap: 8px; font-size: 14.5px; min-height: 44px; }
}

/* ═════════ plein écran ═════════
   Les couleurs sont celles de la section d'où l'on vient (--fs-bg, --fs-fg). Aplats, filets, pastilles : le HUD du site. */
/* couleurs fixes : dans les séries et en thème sombre, l'encre et le papier du thème se confondent */
.fs-btn { position: absolute; top: 10px; right: 10px; z-index: 4; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid #171717; background: #F4EFDD; color: #171717;
  display: grid; place-items: center; cursor: zoom-in; transition: background-color .2s, color .2s; }
.fs-btn svg, .fs-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.fs-btn:hover, .fs-btn:focus-visible { background: #171717; color: #F4EFDD; border-color: #F4EFDD; }
.fs-btn:focus-visible { outline: 2px solid var(--blue, #3366FF); outline-offset: 2px; }
.ovp-winwrap > .fs-btn, .sc-room-media > .fs-btn { top: auto; bottom: 6%; right: 6%; }
.sc-photo figure > .fs-btn { top: 12px; right: 12px; }
img.fs-img-t { cursor: zoom-in; }
.ovp-fig figure > .fs-btn { top: 12px; right: 12px; }
.ovp-fig.lay-shot figure > .fs-btn, .sc-shot--screen figure > .fs-btn, .ovp-hero .ovp-scr > .fs-btn { top: 46px; }

html.fs-open, html.fs-open body { overflow: hidden; }
.fs { --fs-bg: var(--paper); --fs-fg: var(--ink); position: fixed; inset: 0; z-index: 140; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--fs-bg); color: var(--fs-fg); clip-path: inset(100% 0 0 0); transition: clip-path .5s cubic-bezier(.7, 0, .2, 1); }
.fs.on { clip-path: inset(0); }
.fs[hidden] { display: none; }
.fs-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--bar, 64px); padding: env(safe-area-inset-top, 0px) var(--gut, 24px) 0; box-sizing: content-box; }
.fs-t { margin: 0; display: inline-flex; align-items: center; gap: 12px; height: 38px; padding: 0 16px; border: 1px solid currentColor; border-radius: 999px; min-width: 0; }
.fs-name { font: italic 400 21px/1 var(--f-display); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-n { font: 600 10.5px/1 var(--f-label); letter-spacing: .14em; padding-left: 12px; border-left: 1px solid currentColor; height: 16px; display: inline-flex; align-items: center; white-space: nowrap; }
.fs-acts { display: flex; gap: 8px; flex: none; }
.fs-b { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid currentColor; background: var(--fs-bg); color: inherit; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.fs-b:hover, .fs-b:focus-visible, .fs-b[aria-pressed="true"] { background: var(--fs-fg); color: var(--fs-bg); }
.fs-b:focus-visible, .fs-ticks button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.fs-x { width: 40px; }
.fs-one .fs-prev, .fs-one .fs-next, .fs-one .fs-ticks { display: none; }
.fs-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; box-sizing: border-box; padding: 6px var(--gut, 24px); overflow: hidden; touch-action: none; cursor: zoom-out; }
.fs-img { --z: 1; --tx: 0px; --ty: 0px; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none;
  transform: translate(var(--tx), var(--ty)) scale(var(--z)); transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.fs-zoomed .fs-img { cursor: zoom-out; }
.fs-img.fs-pan { transition: none; }
.fs-loading .fs-img { visibility: hidden; }
/* changement d'image : un rideau net, dans le sens de la marche, sans fondu */
@keyframes fsWr { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes fsWl { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.fs-img.fs-wr { animation: fsWr .5s cubic-bezier(.7, 0, .2, 1) both; }
.fs-img.fs-wl { animation: fsWl .5s cubic-bezier(.7, 0, .2, 1) both; }
.fs-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 56px; padding: 0 var(--gut, 24px) env(safe-area-inset-bottom, 0px); }
.fs-k { font: 600 10.5px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-cap { justify-self: end; text-align: right; font: italic 400 19px/1.2 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fs-ticks { display: flex; gap: 4px; }
.fs-ticks button { width: 22px; height: 28px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
.fs-ticks i { display: block; width: 100%; height: 3px; background: currentColor; opacity: .3; }
.fs-ticks button.on i { opacity: 1; height: 5px; }
.fs-ticks button:hover i { opacity: .7; }
@media (max-width: 760px) {
  .fs-t { padding: 0 12px; gap: 9px; height: 36px; }
  .fs-name { font-size: 18px; max-width: 34vw; }
  .fs-acts { gap: 6px; }
  .fs-b { width: 36px; height: 36px; }
  .fs-scr { display: none; }
  .fs-stage { padding: 4px 8px; }
  .fs-foot { grid-template-columns: 1fr; justify-items: center; gap: 6px; padding-top: 8px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .fs-k { display: none; }
  .fs-cap { justify-self: center; text-align: center; font-size: 17px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .fs-ticks button { width: 16px; }
  .fs-btn { width: 36px; height: 36px; }
}
@media (max-width: 400px) { .fs-t .fs-name { max-width: 28vw; } .fs-acts { gap: 5px; } .fs-b { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .fs, .fs-img { transition: none; } .fs-img.fs-wr, .fs-img.fs-wl { animation: none; } }

/* (v3.21) défilement latéral sans barre : on glisse au doigt, à la souris ou au pavé */
.cal { scrollbar-width: none; -ms-overflow-style: none; cursor: grab; }
.cal::-webkit-scrollbar { display: none; }
.cal.is-drag { cursor: grabbing; user-select: none; }

/* (v3.22) le curseur du site reste visible au-dessus du plein écran, dans ses couleurs */
html.fs-open #cur { z-index: 150; --cf: var(--fs-cur-f) !important; --cb: var(--fs-cur-f) !important; --ct: var(--fs-cur-b) !important; }
/* dans le carrousel des séries : un bouton sur la photographie au centre, une fois qu'elle est dévoilée */
.ovs-fr > .fs-btn { top: 12px; right: 12px; visibility: hidden; }
.ovs-it.on .ovs-fr > .fs-btn { visibility: visible; animation: fsChipIn .7s steps(1, end) both; }
@keyframes fsChipIn { from { visibility: hidden; } to { visibility: visible; } }
