@font-face{font-family:"Maxeville Tekst";src:url(../fonts/maxeville-tekst.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:"Maxeville Tekst";src:url(../fonts/maxeville-tekst-italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:"Maxeville Tekst";src:url(../fonts/maxeville-bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:"Instrument Serif";src:url(../fonts/instrument-serif-latin.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}@font-face{font-family:"Instrument Serif";src:url(../fonts/instrument-serif-latin-ext.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}@font-face{font-family:"Instrument Serif";src:url(../fonts/instrument-serif-italic-latin.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}@font-face{font-family:"Instrument Serif";src:url(../fonts/instrument-serif-italic-latin-ext.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}@font-face{font-family:"Instrument Sans";src:url(../fonts/instrument-sans-latin.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}@font-face{font-family:"Instrument Sans";src:url(../fonts/instrument-sans-latin-ext.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}@font-face{font-family:"Abhaya Libre";src:url(../fonts/abhaya-libre-latin.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}@font-face{font-family:"Abhaya Libre";src:url(../fonts/abhaya-libre-latin-ext.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
/* Théâtre de papier sur l'axe Z : des portes aux formes de la marque, des coulisses peintes
   à partir des photographies du studio, des aplats de couleur. Tout est plat : la profondeur vient
   de la perspective et de la parallaxe. L'interface flotte en pastilles au-dessus de la scène. */
:root {
  --paper: #F4EFDD; --sheet: #FAF6EA; --ink: #171717; --ink-2: #4E493F; --ink-3: #6A6458; --rule: #D2C8AC; --rule-2: #E4DBC5;
  --cream: #F4EFDD; --black: #171717; --brick: #A0473A; --gold: #F9CB40; --gold-line: #D7A729; --coral: #FF715B; --cobalt: #2F52E0; --cobalt-line: #5A76E8;
  --night: #171717; --night-ink: #F4EFDD; --night-2: #B8B1A0; --night-rule: #3A3631;
  --wall-cream: #F4EFDD; --wall-paper: #FAF6EA; --px-off: #D9DDE3;
  --chip: #FAF6EA; --chip-ink: #171717; --chip-line: #171717;
  --px-ground: #F5F5F7; --px-paper: #FFFFFF; --px-ink: #1D1D1F; --px-ink-2: #3D3D42; --px-mute: #6C6C74; --px-rule: #DADAE0; --px-grid: #ECECF1;
  --px-grid-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 .5H24M.5 0V24' stroke='%23ECECF1' fill='none'/%3E%3C/svg%3E");
  --px-cube: #3366FF; --px-dim: #5A84FF; --px-deep: #1F45C8; --px-tint: #EAF0FF; --px-ok: #1C8549; --px-ok-tint: #E3F4EA;
  --px-term: #121215; --px-term-ink: #D8D9E2; --px-term-mute: #7B7D8B; --px-term-k: #9CB4FF; --px-term-g: #74D6A0;
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-text: "Maxeville Tekst", "Helvetica Neue", Arial, sans-serif;
  --f-label: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-pill: "Abhaya Libre", Georgia, serif;
  --f-px: "Funnel Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --f-px-text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, Consolas, monospace;
  --gut: clamp(16px, 3.2vw, 56px); --gap: clamp(12px, 1.6vw, 24px); --bar: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1.3 -1.3 26.6 26.6'%3E%3Cpath d='M 16.783 3.689 C 17.234 5.417 18.583 6.766 20.311 7.217 C 25.23 8.504 25.23 15.496 20.311 16.783 C 18.583 17.234 17.234 18.583 16.783 20.311 C 15.496 25.23 8.504 25.23 7.217 20.311 C 6.766 18.583 5.417 17.234 3.689 16.783 C -1.23 15.496 -1.23 8.504 3.689 7.217 C 5.417 6.766 6.766 5.417 7.217 3.689 C 8.504 -1.23 15.496 -1.23 16.783 3.689 Z'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #13120F; --sheet: #1B1916; --ink: #EEE8D6; --ink-2: #BDB6A4; --ink-3: #9C9585; --rule: #38342C; --rule-2: #27241F;
    --night: #0B0A08; --night-rule: #2D2A25; --wall-cream: #1B1916; --wall-paper: #13120F; --px-off: #232A44;
    --chip: #1B1916; --chip-ink: #EEE8D6; --chip-line: #EEE8D6;
    --px-ground: #0E0E11; --px-paper: #15151A; --px-ink: #F2F2F5; --px-ink-2: #BABBC5; --px-mute: #8D8E97; --px-rule: #2B2B32; --px-grid: #16161B; --px-grid-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 .5H24M.5 0V24' stroke='%231A1A20' fill='none'/%3E%3C/svg%3E");
    --px-cube: #4F7DFF; --px-dim: #6F93FF; --px-deep: #AAC0FF; --px-tint: #161D3D; --px-ok: #5CCF91; --px-ok-tint: #10291D; --px-term: #08080A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #13120F; --sheet: #1B1916; --ink: #EEE8D6; --ink-2: #BDB6A4; --ink-3: #9C9585; --rule: #38342C; --rule-2: #27241F;
  --night: #0B0A08; --night-rule: #2D2A25; --wall-cream: #1B1916; --wall-paper: #13120F; --px-off: #232A44;
  --chip: #1B1916; --chip-ink: #EEE8D6; --chip-line: #EEE8D6;
  --px-ground: #0E0E11; --px-paper: #15151A; --px-ink: #F2F2F5; --px-ink-2: #BABBC5; --px-mute: #8D8E97; --px-rule: #2B2B32; --px-grid: #16161B; --px-grid-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 .5H24M.5 0V24' stroke='%231A1A20' fill='none'/%3E%3C/svg%3E");
  --px-cube: #4F7DFF; --px-dim: #6F93FF; --px-deep: #AAC0FF; --px-tint: #161D3D; --px-ok: #5CCF91; --px-ok-tint: #10291D; --px-term: #08080A;
  color-scheme: dark;
}

[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + env(safe-area-inset-top, 0px)); }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { position: relative; z-index: 1; overflow-x: clip; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.wrap { padding-inline: var(--gut); max-width: 1680px; margin-inline: auto; box-sizing: border-box; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none; font: 600 13px var(--f-label); }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.lbl { font: 600 11.5px/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.dot { position: relative; }
.dot::after { content: ""; position: absolute; left: .145em; top: .27em; width: .12em; height: .12em; background: currentColor; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }

/* ── texte qui roule au survol : chaque lettre monte et laisse place à sa jumelle ── */
.roll { position: relative; display: inline-flex; overflow: hidden; vertical-align: top; line-height: 1.15; padding: .05em .12em .05em .04em; margin-inline: -.04em -.12em; }
.roll .rl { display: inline-flex; white-space: pre; }
.roll .rl + .rl { position: absolute; left: .04em; top: 100%; }
.roll .ch { display: inline-block; transition: transform .55s var(--ease); transition-delay: calc(var(--i) * 18ms); }
.roll-host:hover .roll .ch, .roll-host:focus-visible .roll .ch, .roll-host.hot .roll .ch { transform: translateY(-100%); }
.roll.swap .ch { transition-duration: .5s; }

/* ── pastilles d'appel ── */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px; font: 400 17px/1 var(--f-pill); white-space: nowrap; text-decoration: none; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s; }
.pill svg { width: 14px; height: 14px; flex: none; transition: transform .5s var(--ease); }
.pill:hover svg { transform: translate(3px, -3px) rotate(0deg); }
.pill-ink { background: var(--chip-ink); color: var(--chip); border: 1px solid var(--chip); }
.pill-line { border: 1px solid currentColor; }
.mag { transition: transform .6s var(--ease); }

/* ═══ scène 3D ═══ */
#stage { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; pointer-events: none; }
.no3d #stage { display: none; }
.scene { position: relative; }
.gl .scene { background: transparent; }
.scene > .stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; pointer-events: none; }
.no3d .scene > .stick { display: none; }
.gl .scene > .fb { display: none; }
.anc { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }

.p3 { position: absolute; left: 0; top: 0; visibility: hidden; }
.p3.vis { visibility: visible; }
/* pendant le mouvement : calques composés ; à l'arrêt : texte redessiné net */
.mv .p3.vis { will-change: transform, opacity; }
/* entrée : on attend les polices (1,2 s au plus) avant de lever le texte, puis l'en-tête et le pied d'écran arrivent */
#ouverture > .stick { transition: opacity .8s var(--ease); }
.bar, .hud { transition: opacity .8s var(--ease) .2s, translate 1s var(--ease) .2s; }
.fw #ouverture > .stick, .fw .bar, .fw .hud { opacity: 0; }
.fw .bar { translate: 0 -12px; } .fw .hud { translate: 0 12px; }
.fw .w3 .wi { animation-play-state: paused; }
.p3 a, .p3 button { pointer-events: auto; }

/* ouverture : le logotype accroché à la première porte */
.folio3 { position: absolute; left: 0; right: 0; top: calc(var(--bar) + 12px + env(safe-area-inset-top, 0px)); text-align: center; font: 400 15px/1 var(--f-display); color: var(--ink-2); }
.w3 { font: italic 400 var(--wfs, 160px)/.8 var(--f-display); letter-spacing: -.035em; color: var(--ink); white-space: nowrap; transform-origin: 50% 50%; }
.w3-y { font-size: calc(var(--wfs, 160px) * .2); letter-spacing: 0; }
.cue3 { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font: 600 11px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); transition: opacity .6s; }
.cue3 i { display: block; width: 1px; height: 34px; background: currentColor; transform-origin: top; }
.cue3.gone { opacity: 0; }
@media (max-width: 640px) { .cue3 { display: none; } }

/* cartes : phrases sur bandeaux d'aplat */
.k3 { width: min(1100px, calc(100vw - 2 * var(--gut))); text-align: center; display: grid; justify-items: center; gap: 20px; }
.k3-l { display: inline-block; padding: 7px 12px 6px; background: var(--k3l-bg, var(--black)); color: var(--k3l-fg, var(--cream)); font: 600 11px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.k3-t { font: italic 400 clamp(36px, 5.6vw, 92px)/1.02 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.k3-t span { background: var(--k3-bg, var(--cream)); color: var(--k3-fg, var(--black)); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .16em .04em; line-height: 1.16; }
.k3 .pill { pointer-events: auto; }

/* étiquettes des salles (projets), des chapelles (séries) et du contact */
.lb3 { width: min(440px, 34vw); display: grid; gap: 12px; color: var(--lc, var(--black)); background: var(--lbg, var(--cream)); padding: 22px 24px 24px; box-sizing: border-box; }
.lb3[data-side="1"] { text-align: left; }
.lb3[data-side="-1"] { text-align: right; justify-items: end; }
.lb3[data-side="-1"] .lb3-m { justify-content: flex-end; }
.lb3[data-side="-1"] .pill { justify-self: end; }
.lb3-n { font: 600 11px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.lb3-t { font: italic 400 clamp(46px, 5.6vw, 104px)/.9 var(--f-display); letter-spacing: -.03em; }
.lb3-m { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 600 11px/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; }
.lb3-m span + span::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 14px; }
.lb3-d { font-size: 16px; line-height: 1.5; max-width: 30em; }
.lb3 .pill { justify-self: start; margin-top: 6px; border: 1px solid currentColor; }
.lb3 .pill:hover, .lb3.hot .pill { background: var(--lc, var(--black)); color: var(--lbg, var(--cream)); border-color: var(--lc, var(--black)); }
.lb3-s .lb3-t { font-size: clamp(54px, 6.4vw, 120px); }
/* masque des lettres qui montent : élargi pour laisser déborder l'italique (la dernière lettre n'est plus coupée) ;
   pendant la mesure des titres (.fitting), la marge ne compte pas */
.fitting .rise { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
.rise { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .3em .08em .12em; margin: 0 -.3em -.08em -.12em; white-space: nowrap; }
.rise .ch { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 22ms + 80ms); }
.p3.in .rise .ch { transform: none; }
.rm .rise .ch { transform: none; transition: none; }
.p3 .fade { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease) .25s, transform .9s var(--ease) .25s; }
.p3.in .fade { opacity: 1; transform: none; }
.rm .p3 .fade { opacity: 1; transform: none; }
.w3 .wi { display: inline-block; }
.js .w3 .wi { animation: wrise 1.4s var(--ease) both; }
.w3[data-a="studio"] .wi { animation-delay: .12s; }
.w3-y .wi { animation-delay: .5s !important; }
@keyframes wrise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.ct3 { width: min(900px, calc(100vw - 2 * var(--gut))); display: grid; justify-items: center; gap: 18px; text-align: center; color: var(--cream); }
/* titres de chapitre posés sur les voiles */
.t3 { display: grid; justify-items: center; gap: clamp(10px, 1.6vh, 16px); text-align: center; color: var(--t3-fg, #FFFFFF); width: max-content; max-width: 86vw; }
/* titres posés sur un shoji ou un semis d'étoiles : un panneau uni sous le texte, pour qu'aucun trait ne le traverse */
.t3[data-card="T2"], .t3[data-card="T3"] { background: var(--t3-bg); padding: clamp(16px, 2.6vh, 26px) clamp(20px, 3.4vh, 34px) clamp(18px, 2.8vh, 28px); }
.t3[data-card="T2"] { --t3-bg: #171717; } .t3[data-card="T3"] { --t3-bg: #2F52E0; }
.t3-n { font: 600 11px/1 var(--f-label); letter-spacing: .14em; padding: 7px 11px 6px; border: 1px solid currentColor; border-radius: 999px; }
.t3-t { font: italic 400 var(--t3fs, 12vh)/.88 var(--f-display); letter-spacing: -.03em; white-space: nowrap; }
.t3-m { font: 600 10.5px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.ct3-mail { max-width: 100%; font: italic 400 clamp(30px, 5.2vw, 84px)/1.05 var(--f-display); letter-spacing: -.02em; white-space: nowrap; user-select: all; padding-right: .08em; }
.p3 .ct3-mail { pointer-events: auto; }
.ct3-msg { min-height: 1.2em; font: 400 14px var(--f-label); color: var(--cream); }

/* écran étroit : l'étiquette se pose en bas, sur toute la largeur, sous l'image */
.narrow .lb3 { width: calc(100vw - 2 * var(--gut)); max-width: 560px; padding: 18px 20px 20px; gap: 10px; }
.narrow .lb3, .narrow .lb3[data-side="-1"] { text-align: left; justify-items: start; }
.narrow .lb3[data-side="-1"] .lb3-m { justify-content: flex-start; }
.narrow .lb3[data-side="-1"] .pill, .narrow .lb3 .pill { justify-self: start; margin-top: 4px; }
.narrow .lb3-t, .narrow .lb3-s .lb3-t { font-size: clamp(38px, 10.5vw, 60px); }
.narrow .lb3-d { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@media (max-width: 760px) {
  .lb3 { width: min(86vw, 420px); }
  .lb3-t { font-size: clamp(42px, 12vw, 64px); }
  .lb3-d { font-size: 15px; }
  .k3-t { font-size: clamp(30px, 8.6vw, 46px); }
}

/* ═══ en-tête : pastilles flottantes ═══ */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar); padding: env(safe-area-inset-top, 0px) var(--gut) 0; box-sizing: content-box; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.bar > * { pointer-events: auto; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; gap: 14px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); border: 1px solid var(--chip-line); text-decoration: none; }
.bar-wm .wm { font: italic 400 24px/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.bar-chap { font: 600 10.5px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid currentColor; white-space: nowrap; height: 16px; display: inline-flex; align-items: center; overflow: hidden; }
.bar-nav { margin-left: auto; gap: 4px; padding: 0 6px; font: 500 14px/1 var(--f-label); }
.bar-nav a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 999px; text-decoration: none; transition: background-color .3s, color .3s; }
.bar-nav a[aria-current="true"] { background: var(--chip-ink); color: var(--chip); }
.bar-cta { min-width: 0; }
.bar-icon { width: 40px; padding: 0; justify-content: center; }
.bar-icon svg { width: 18px; height: 18px; }
.bar-menu { gap: 10px; font: 500 14px/1 var(--f-label); }
.bar-grid { display: grid; grid-template-columns: repeat(3, 3px); gap: 2px; }
.bar-grid i { width: 3px; height: 3px; background: currentColor; }
@media (max-width: 1100px) { .bar-nav { display: none; } .bar-cta { margin-left: auto; } }
@media (max-width: 640px) { .bar-chap { display: none; } .bar-cta { display: none; } .bar-theme { margin-left: auto; } .bar-wm .wm { font-size: 22px; } }

/* pied d'écran */
.hud { position: fixed; left: var(--gut); right: var(--gut); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.hud .chip { height: 32px; padding: 0 12px; font: 600 10.5px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; gap: 10px; }
.hud-bar { width: 72px; height: 1px; background: currentColor; opacity: .35; position: relative; }
.hud-bar i { position: absolute; inset: -0.5px 0; background: currentColor; transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 1; }
.hud-r .hud-bar { opacity: 1; background: transparent; outline: 1px solid transparent; }
.hud-r .hud-bar::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .3; }
@media (max-width: 640px) { .hud-l .hud-x { display: none; } }

/* curseur : une lentille aux formes de la marque, qui change selon la section et ce qu'elle survole */
.cursor, .cursor *, .cursor *::before, .cursor *::after { cursor: none !important; }
img { -webkit-user-drag: none; }
#cur { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: none; --cf: var(--ink); --cb: var(--ink); --ct: var(--paper); }
.cursor #cur { display: block; }
#cur.out > * { opacity: 0 !important; }
#cur > * { position: absolute; left: 0; top: 0; transition: opacity .3s; }
.cur-in { width: 0; height: 0; }
.cur-in > * { position: absolute; left: 0; top: 0; }
/* étoile centrale */
.cur-star { width: 20px; height: 20px; margin: -10px 0 0 -10px; color: var(--cf); transition: transform .5s var(--spring), color .35s, opacity .25s; }
.cur-star use { transform-box: fill-box; }
#cur.m-link .cur-star,
#cur.m-badge .cur-star, #cur.m-drag .cur-star, #cur.m-px .cur-star, #cur.m-pxsel .cur-star, #cur.m-caret .cur-star { transform: scale(0); opacity: 0; }
#cur.down .cur-star { transform: scale(.7); }
/* lentille : contour de la forme du lieu, qui s'étire avec la vitesse */
.cur-ring { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.cur-ring svg { width: 100%; height: 100%; display: block; overflow: visible; fill: none; stroke: var(--cf); stroke-width: 1.5px; transition: transform .5s var(--spring), opacity .3s, stroke .35s; }
.cur-ring path { vector-effect: non-scaling-stroke; }
#cur.swap .cur-ring svg { transform: scale(.4); opacity: 0; transition-duration: .16s; }
#cur.m-link .cur-ring svg, #cur.m-badge .cur-ring svg, #cur.m-px .cur-ring svg, #cur.m-pxsel .cur-ring svg, #cur.m-caret .cur-ring svg { transform: scale(.35); opacity: 0; }
#cur.m-drag .cur-ring svg { transform: scale(1.45); }
#cur.down .cur-ring svg { transform: scale(.82); }
#cur.m-drag.down .cur-ring svg { transform: scale(1.25); }
/* badge : la forme de la porte, pleine, avec un filet intérieur et le libellé */
.cur-badge { width: 136px; height: 136px; margin: -68px 0 0 -68px; overflow: visible; transform: scale(.2); opacity: 0; transition: transform .55s var(--spring), opacity .25s; }
.cur-badge .bg { fill: var(--cb); transition: fill .3s; }
.cur-badge .ln { fill: none; stroke: var(--ct); stroke-width: 1px; vector-effect: non-scaling-stroke; }
#cur.m-badge .cur-badge { transform: scale(1); opacity: 1; }
#cur.m-badge.down .cur-badge { transform: scale(.9); }
.cur-lab { width: var(--lw, 96px); margin-left: calc(var(--lw, 96px) / -2); transform: translateY(-50%) scale(.6); text-align: center; text-wrap: balance; color: var(--ct); font: 400 17px/1.02 var(--f-pill); opacity: 0; transition: opacity .2s, transform .55s var(--spring); }
#cur.m-badge .cur-lab { opacity: 1; transform: translateY(-50%); transition-delay: .05s; }
/* pellicule : cercle, « Glisser » et chevrons */
.cur-drag { width: 120px; margin-left: -60px; transform: translateY(-50%); display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--cf); font: 400 16px/1 var(--f-pill); opacity: 0; transition: opacity .2s; }
.cur-drag span { font: 400 20px/1 var(--f-display); transition: transform .4s var(--ease); }
#cur.m-drag .cur-drag { opacity: 1; }
#cur.m-drag.down .cur-drag span:first-child { transform: translateX(-6px); }
#cur.m-drag.down .cur-drag span:last-child { transform: translateX(6px); }
/* caret sur le texte */
.cur-caret { width: 2px; height: 26px; margin: -13px 0 0 -1px; background: var(--cf); transform: scaleY(0); transition: transform .35s var(--spring); }
.cur-caret::before, .cur-caret::after { content: ""; position: absolute; left: -4px; width: 10px; height: 2px; background: var(--cf); }
.cur-caret::before { top: 0; } .cur-caret::after { bottom: 0; }
#cur.m-caret .cur-caret { transform: none; }
/* case PixL : avance de case en case */
.cur-px { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--cf); scale: 0; opacity: 0; transition: scale .35s var(--spring), opacity .2s, background-color .3s; }
#cur.m-px .cur-px, #cur.m-pxsel .cur-px { scale: 1; opacity: 1; }
#cur.m-px.down .cur-px, #cur.m-pxsel.down .cur-px { scale: .6; }
/* cadre : crochets autour d'un lien, ou sélection façon Framer dans PixL */
.cur-box { width: 10px; height: 10px; opacity: 0; transition: opacity .25s; }
#cur.m-link .cur-box, #cur.m-pxsel .cur-box { opacity: 1; }
.cur-box i { position: absolute; width: 12px; height: 12px; border: 0 solid var(--cf); }
.cur-box .c1 { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; } .cur-box .c2 { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.cur-box .c3 { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; } .cur-box .c4 { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
#cur.m-pxsel .cur-box { outline: 1.5px solid var(--cf); outline-offset: -1px; }
#cur.m-pxsel .cur-box i { width: 7px; height: 7px; border: 1.5px solid var(--cf); background: var(--ct); }
#cur.m-pxsel .cur-box .c1 { left: -4px; top: -4px; } #cur.m-pxsel .cur-box .c2 { right: -4px; top: -4px; }
#cur.m-pxsel .cur-box .c3 { left: -4px; bottom: -4px; } #cur.m-pxsel .cur-box .c4 { right: -4px; bottom: -4px; }
.cur-tag { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 4px; padding: 4px 7px 3px; background: var(--cf); color: var(--ct); font: 500 10.5px/1 var(--f-mono); letter-spacing: .02em; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .35s var(--ease); }
#cur.m-pxsel .cur-tag { opacity: 1; transform: none; }
.cur-fx { width: 100%; height: 100%; }
/* coucou : la carte photo qui remplace le curseur quand on le secoue (elle se balance avec le geste) */
.cur-egg { width: 112px; margin: -56px 0 0 -56px; display: grid; justify-items: center; gap: 9px; transform-origin: 50% 100%; scale: .15; opacity: 0; transition: scale .5s var(--spring), opacity .18s; }
.cur-egg-ph { display: block; width: 112px; aspect-ratio: 1; border-radius: 0; overflow: hidden; background: var(--cobalt); outline: 3px solid var(--cream); outline-offset: -1px; }
.cur-egg-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cur-egg-t:empty { display: none; }
.cur-egg-t { padding: 7px 13px 6px; background: var(--cream); color: var(--black); border-radius: 999px; font: italic 400 19px/1 var(--f-display); white-space: nowrap; }
#cur.m-egg .cur-egg { scale: 1; opacity: 1; transition: scale .6s var(--spring), opacity .12s; }
#cur.m-egg .cur-ring svg { transform: scale(.35); opacity: 0; }
#cur.m-egg .cur-star { transform: scale(0); opacity: 0; }
.cur-egg.flip .cur-egg-ph { animation: eggflip .46s var(--ease); }
@keyframes eggflip { 0% { transform: none; } 45% { transform: scaleX(.04); } 100% { transform: none; } }
.rm .cur-badge, .rm .cur-lab, .rm .cur-ring svg, .rm .cur-star { transition: none !important; }

/* sommaire plein écran */
.sheet { position: fixed; inset: 0; z-index: 70; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.sheet-in { padding-block: calc(16px + env(safe-area-inset-top, 0px)) 36px; min-height: 100%; display: flex; flex-direction: column; gap: 22px; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.sheet-list > li { border-top: 1px solid var(--rule); padding: 12px 0 14px; }
.sheet-a { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: baseline; text-decoration: none; }
.sheet-n { font: italic 400 20px var(--f-display); color: var(--ink-3); }
.sheet-t { font: 400 clamp(40px, 6.6vw, 96px)/1 var(--f-display); letter-spacing: -.025em; transition: transform .6s var(--ease), color .3s; }
.sheet-a:hover .sheet-t { transform: translateX(14px); color: var(--cobalt); }
.sheet-m { font: 600 10.5px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.sheet-sub { margin: 8px 0 0 3.2rem; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 15px/1.4 var(--f-text); color: var(--ink-2); }
.sheet-sub a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.sheet-sub a:hover { color: var(--ink); border-color: var(--ink); }
.sheet-foot { margin-top: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font: 500 12px var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 14px; }
.sheet-peek { position: fixed; left: 0; top: 0; z-index: 71; width: 170px; aspect-ratio: 236.38 / 302.682; pointer-events: none; clip-path: url(#ovalClip); background: var(--px-cube); opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg); transition: opacity .35s var(--ease), transform .6s var(--spring); }
.sheet-peek img { width: 100%; height: 100%; object-fit: cover; }
.sheet-peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
.js .sheet:not([hidden]) .sheet-list > li { animation: up .8s var(--ease) both; }
.sheet-list > li:nth-child(2) { animation-delay: .05s !important; } .sheet-list > li:nth-child(3) { animation-delay: .1s !important; }
.sheet-list > li:nth-child(4) { animation-delay: .15s !important; } .sheet-list > li:nth-child(5) { animation-delay: .2s !important; }
@keyframes up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .sheet-m { display: none; } .sheet-a { grid-template-columns: 2.4rem 1fr; } .sheet-sub { margin-left: 2.4rem; } .sheet-peek { display: none; } }

/* ═══ PixL : ouverture (fond bleu dès l'arrivée) ═══ */
.pxo { position: relative; height: 230vh; background: var(--px-cube); color: #FFFFFF; }
.pxo .stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
/* avec les cases animées : le papier quadrillé de PixL attend sous la mosaïque bleue */
.pxc .pxo { background: var(--px-ground); }
.pxc .pxo .stick { background-color: var(--px-ground); background-image: var(--px-grid-img); background-size: 24px 24px; }
.pxo-cells { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.pxc .pxo-cells { display: block; }
.pxo-in { z-index: 1; will-change: transform; }
.pxo .pxmark i { translate: calc(var(--mx, 0) * var(--dd, 0) * 1px) calc(var(--my, 0) * var(--dd, 0) * 1px); }
.rm .pxo { height: auto; }
.rm .pxo .stick { position: relative; height: auto; min-height: 100svh; padding-block: 120px 80px; box-sizing: border-box; }
.pxo-in { position: relative; display: grid; justify-items: center; text-align: center; gap: clamp(18px, 3vh, 30px); width: 100%; }
.pxo-k { font: 500 12px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.pxo-logo { display: inline-flex; align-items: center; gap: .07em; font: 700 clamp(96px, 16vw, 250px)/1 var(--f-px); letter-spacing: -.035em; }
.pxo-pix { display: block; }
.pxmark { display: grid; grid-template-columns: repeat(3, 1fr); gap: .036em; width: .66em; height: .66em; margin-top: .02em; }
.pxmark i { background: var(--px-dim); border-radius: .012em; }
.pxmark i.on { background: #FFFFFF; }
.pxo-lead { font: 500 clamp(19px, 1.7vw, 25px)/1.42 var(--f-px-text); max-width: 34em; }
.pxo-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; font: 400 14px/1.4 var(--f-px-text); }
.pxo-meta li { display: grid; gap: 2px; text-align: left; padding-left: 12px; border-left: 1px solid var(--px-dim); }
.pxo-meta b { font: 500 11px/1.3 var(--f-mono); letter-spacing: .03em; text-transform: uppercase; }
.pxo .pill { background: #FFFFFF; color: var(--px-cube); font-family: var(--f-px-text); font-weight: 600; font-size: 15px; }
.js .pxo .pxo-k, .js .pxo .pxo-lead, .js .pxo .pxo-meta li, .js .pxo .pxo-in > .pill { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.js .pxo .pxmark i { opacity: 0; transform: scale(.3); transition: opacity .45s var(--ease), transform .7s var(--spring); transition-delay: calc(var(--o) * 70ms); }
.js .pxo .pxo-pix { clip-path: inset(0 100% 0 0); transform: translateX(24px); transition: clip-path 1s var(--ease-io) .55s, transform 1.1s var(--ease) .55s; }
.js .pxo.in .pxo-k, .js .pxo.in .pxo-lead, .js .pxo.in .pxo-meta li, .js .pxo.in .pxo-in > .pill, .js .pxo.in .pxmark i { opacity: 1; transform: none; }
.js .pxo.in .pxo-pix { clip-path: inset(0); transform: none; }
.js .pxo.in .pxo-k { transition-delay: .1s; } .js .pxo.in .pxo-lead { transition-delay: .9s; }
.js .pxo.in .pxo-meta li:nth-child(1) { transition-delay: 1.05s; } .js .pxo.in .pxo-meta li:nth-child(2) { transition-delay: 1.15s; } .js .pxo.in .pxo-meta li:nth-child(3) { transition-delay: 1.25s; }
.js .pxo.in .pxo-in > .pill { transition-delay: 1.4s; }
@media (max-width: 560px) { .pxo-meta { flex-direction: column; align-items: flex-start; width: max-content; margin-inline: auto; } }
.mock-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }

/* ═══ pied de page : un générique de film ═══ */
.end { position: relative; background: var(--cobalt); color: var(--cream); padding-block: clamp(70px, 12vh, 130px) calc(78px + env(safe-area-inset-bottom, 0px)); }
.end :focus-visible { outline-color: var(--cream); }
.end-g { position: relative; display: grid; justify-items: center; gap: clamp(30px, 5vh, 56px); }
.end-k { font: 600 11px/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--cobalt-line); }
.end-cred { display: grid; gap: 14px; width: min(860px, 100%); margin: 0; }
.end-cred > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(18px, 3vw, 40px); align-items: baseline; }
.end-cred dt { text-align: right; font: 600 10.5px/1.5 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 72%, var(--cobalt)); }
.end-cred dd { margin: 0; font: italic 400 clamp(19px, 1.7vw, 24px)/1.22 var(--f-display); letter-spacing: -.005em; }
.end-cred .end-mail { white-space: nowrap; font-size: clamp(16px, 1.7vw, 24px); }
.end-corners .orn-c { position: absolute; width: clamp(60px, 7vw, 104px); height: auto; aspect-ratio: 1; overflow: visible; pointer-events: none; }
.end-corners .orn-c .ol { fill: none; stroke: var(--cream); stroke-width: 1.3px; vector-effect: non-scaling-stroke; } .end-corners .orn-c .of { fill: var(--cream); }
.end-corners .orn-tl { left: 18px; top: 18px; } .end-corners .orn-tr { right: 18px; top: 18px; transform: scaleX(-1); }
.end-corners .orn-bl, .end-corners .orn-br { display: none; }
.js .end-cred > div { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--k, 0) * 70ms); }
.js .end.in .end-cred > div { opacity: 1; transform: none; }
.rm .end-cred > div { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .end-cred > div { grid-template-columns: minmax(0, 1fr); text-align: center; row-gap: 4px; }
  .end-cred dt { text-align: center; }
  .end-corners .orn-c { width: 44px; }
  .end-meta { flex-wrap: wrap; justify-content: center; text-align: center; }
}
.end-wm { font: italic 400 clamp(76px, 18vw, 320px)/.85 var(--f-display); letter-spacing: -.04em; white-space: nowrap; }
.end-meta { width: 100%; display: flex; justify-content: space-between; gap: 12px; font: 600 11px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; padding-top: 18px; border-top: 1px solid var(--cobalt-line); }
.end-meta a { text-decoration: none; }
.end-wm { overflow: hidden; padding: 0 .14em .06em .04em; }
.js .end-rise { display: inline-block; transform: translateY(102%); transition: transform 1.4s var(--ease); }
.js .end-wm.in .end-rise { transform: none; }
.rm .end-rise { transform: none; }
.end-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ═══ repli : sans WebGL ou sans animation ═══ */
.fb-open { min-height: 100svh; box-sizing: border-box; padding: calc(var(--bar) + 40px) var(--gut) 60px; display: grid; align-content: center; justify-items: center; gap: 28px; text-align: center; }
.fb-lock { display: grid; justify-items: center; }
.fb-lock .w { font: italic 400 clamp(90px, 15vw, 210px)/.8 var(--f-display); letter-spacing: -.035em; position: relative; z-index: 2; }
.fb-lock .w:first-child { margin-bottom: -.28em; } .fb-lock .w:last-child { margin-top: -.3em; }
.fb-win { width: min(46vw, 300px); aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.fb-win img { width: 100%; height: 100%; object-fit: cover; }
.fb-says { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; padding: 40px var(--gut) 100px; text-align: center; }
.fb-says p { font: italic 400 clamp(28px, 4vw, 54px)/1.1 var(--f-display); }
.fb-says .lbl { font-style: normal; }
.fb-vit { padding-block: 100px 60px; }
.fb-vit h2 { font: 400 clamp(56px, 8vw, 130px)/.92 var(--f-display); letter-spacing: -.025em; margin-bottom: 40px; }
.fb-pho { background: var(--night); color: var(--night-ink); padding-block: 90px; --ink: var(--night-ink); --ink-2: var(--night-2); --rule: var(--night-rule); }
.fb-pho h2 { font: 400 clamp(56px, 8vw, 130px)/.92 var(--f-display); letter-spacing: -.025em; margin-bottom: 40px; }
.fb-ct { background: var(--night); color: var(--night-ink); padding: 40px var(--gut) 120px; display: grid; justify-items: center; gap: 22px; text-align: center; }
.fb-ct .ct3-mail { color: var(--night-ink); }
.no3d .js-only3d { display: none; }

/* ═══ mini-tunnel et iris ═══ */
.warp { position: fixed; inset: 0; z-index: 88; pointer-events: none; visibility: hidden; }
.warp.on { visibility: visible; pointer-events: auto; }
.warp canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.warp-lab { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: clamp(10px, 1.6vh, 16px); text-align: center; white-space: nowrap; transform-origin: 50% 50%; }
.wl-n { font: 600 11px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; padding: 7px 11px 6px; border: 1px solid currentColor; border-radius: 999px; }
.wl-t { font: italic 400 calc(clamp(34px, min(11vh, 12vw), 150px) * var(--wlk, 1))/.9 var(--f-display); letter-spacing: -.03em; }
@media (max-width: 640px) { .wl-m { display: none; } }
.wl-m { font: 600 10.5px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.warp-lab.is-px .wl-t { font: 700 calc(clamp(32px, min(10vh, 11vw), 130px) * var(--wlk, 1))/1 var(--f-px); font-style: normal; letter-spacing: -.035em; }
.warp-lab.is-px .wl-n, .warp-lab.is-px .wl-m { font-family: var(--f-mono); font-weight: 500; letter-spacing: .04em; }

.rm *, .rm *::before, .rm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
.motion-btn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; }
.motion-btn:hover { text-decoration-thickness: 2px; }

/* téléphone à l'horizontale : écrans très bas */
@media (max-height: 520px) and (orientation: landscape) {
  .folio3 { display: none; }
  .pxo-logo { font-size: 68px; }
  .pxo-meta { display: none; }
  .pxo-in { gap: 12px; padding-top: 40px; }
  .pxo-lead { font-size: 16px; }
  .k3-t { font-size: clamp(26px, 6.4vh, 40px); }
  .lb3-t { font-size: clamp(34px, 9vh, 56px); }
  .lb3-d { display: none; }
  .t3-t { font-size: min(14vh, 9vw); }
  .cue3 { display: none; }
}

/* ═══ PIXL (repris de la v2) ═══ */
/* révélations au défilement : l'état final est l'état de repos ; sans script, tout est visible */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rm .rv, .rm .rv.in { opacity: 1; transform: none; transition: none; }
/* titres PixL : apparition en marches de pixels */
.js .px-head.rv { transform: none; opacity: 1; }
.js .px-head.rv .px-k, .js .px-head.rv .px-h, .js .px-head.rv .px-p { clip-path: inset(-.3em 100% -.3em -.3em); }
.js .px-head.rv .px-k { transition: clip-path .7s steps(18, end); }
.js .px-head.rv .px-h { transition: clip-path 1s steps(14, end) .18s; }
.js .px-head.rv .px-p { transition: clip-path .9s steps(10, end) .5s; }
.js .px-head.rv.in .px-k, .js .px-head.rv.in .px-h, .js .px-head.rv.in .px-p { clip-path: inset(-.3em -.3em -.3em -.3em); }
.rm .px-head.rv .px-k, .rm .px-head.rv .px-h, .rm .px-head.rv .px-p { clip-path: none; }
/* cases du quadrillage qui s'allument sous le pointeur */
.px-heat { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; display: block; }
.px > .wrap { position: relative; z-index: 2; }
.pxc .px-how .dither { display: none; }
.pxc .px-how { padding-top: clamp(48px, 9vh, 100px); }
/* ═══ PIXL : surfaces ═══ */
.px { position: relative; background-color: var(--px-ground); color: var(--px-ink); font-family: var(--f-px-text);
  background-image: var(--px-grid-img); background-size: 24px 24px; background-position: -1px -1px; }
.px :focus-visible { outline-color: var(--px-cube); }
.px-head { display: grid; gap: 16px; max-width: 760px; }
.px-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; flex-wrap: wrap; }
.px-k { font: 500 12px/1.3 var(--f-mono); color: var(--px-cube); letter-spacing: .02em; }
.px-k span { color: var(--px-mute); margin-left: .8em; }
.px-h { font: 600 clamp(32px, 3.8vw, 56px)/1.04 var(--f-px); letter-spacing: -.025em; }
.px-p { font-size: 18px; line-height: 1.5; color: var(--px-ink-2); max-width: 36em; }
kbd { font: 500 .78em/1 var(--f-mono); padding: 3px 6px 2px; border: 1px solid var(--px-rule); border-radius: 3px; background: var(--px-paper); white-space: nowrap; }

.dither { position: absolute; left: 0; top: 0; width: 100%; height: 0; display: block; }
.dither rect { fill: var(--px-cube); }

.px-how { padding-block: clamp(150px, 26vh, 260px) clamp(80px, 14vh, 160px); }
.rm .px-how, .no-js .px-how { padding-top: clamp(80px, 12vh, 140px); }
.px-how-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.px-how .px-head { grid-column: 1 / span 7; margin-bottom: 4vh; }
.px-steps { grid-column: 1 / span 5; }
.px-step { min-height: 74vh; display: grid; align-content: center; gap: 14px; border-top: 1px solid var(--px-rule); padding-block: 28px; color: var(--px-mute); transition: color .5s var(--ease); }
.px-step:last-child { min-height: 80vh; }
.px-step.on { color: var(--px-ink); }
.px-n { font: 500 12px var(--f-mono); color: var(--px-cube); }
.px-step h4 { font: 600 clamp(26px, 2.4vw, 34px)/1.1 var(--f-px); letter-spacing: -.02em; }
.px-step p { font-size: 17px; line-height: 1.55; max-width: 30em; }
.px-step .px-note { font: 400 12.5px/1.6 var(--f-mono); color: var(--px-mute); }
.px-stage-col { grid-column: 7 / span 6; grid-row: 2; }
.px-stage { position: sticky; top: calc(var(--bar) + 9vh); display: grid; gap: 14px; }
.px-stage-cap { font: 400 12px var(--f-mono); color: var(--px-mute); }
.win { border: 1px solid var(--px-rule); background: var(--px-paper); border-radius: 6px; overflow: hidden; }
.win-bar { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--px-rule); font: 400 11.5px/1 var(--f-mono); color: var(--px-ink-2); }
.win-c { display: flex; gap: 14px; color: var(--px-mute); }
.win-c i { font-style: normal; }
.win-body { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.mock { position: absolute; inset: 0; padding: 12px 14px 14px; display: grid; grid-template-rows: 26px 1fr 17%; gap: 26px 10px; transition: opacity .6s var(--ease); }
.mock-nav { display: flex; align-items: center; gap: 16px; font: 400 11px/1 var(--f-px-text); color: var(--px-mute); }
.mock-nav b { font: 600 13px/1 var(--f-px); color: var(--px-ink); margin-right: auto; letter-spacing: -.01em; }
.mock-hero { position: relative; border-radius: 3px; background: var(--px-grid); }
.mock-hero .paint, .mock-hero .pxgrid { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 3px; }
.mock-hero .pxgrid { opacity: 0; transition: opacity .2s; }
.mock-title { position: absolute; left: 12px; bottom: 12px; display: grid; gap: 4px; padding: 10px 12px; background: var(--px-paper); border-radius: 2px; }
.mock-title b { font: 600 clamp(16px, 1.7vw, 24px)/1 var(--f-px); letter-spacing: -.02em; }
.mock-title span { font: 400 11px/1 var(--f-px-text); color: var(--px-mute); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards i { background: var(--px-grid); border-radius: 3px; }
.sel { position: absolute; inset: -5px; border: 1.5px solid var(--px-cube); border-radius: 2px; pointer-events: none; transition: opacity .5s var(--ease); }
.sel-tag { position: absolute; left: -1.5px; top: -22px; height: 20px; padding: 0 7px; display: flex; align-items: center; background: var(--px-cube); color: #FFFFFF; font: 500 10.5px/1 var(--f-mono); font-style: normal; border-radius: 2px 2px 0 0; }
.sel .h { position: absolute; width: 7px; height: 7px; background: var(--px-paper); border: 1.5px solid var(--px-cube); }
.sel .h1 { left: -5px; top: -5px; } .sel .h2 { right: -5px; top: -5px; } .sel .h3 { left: -5px; bottom: -5px; } .sel .h4 { right: -5px; bottom: -5px; }
.term { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px 16px; background: var(--px-term); color: var(--px-term-ink); border-radius: 4px; font: 400 clamp(10px, .82vw, 12px)/1.75 var(--f-mono);
  transform: translateY(calc(100% + 20px)); transition: transform .7s var(--ease); }
.term p { opacity: 0; transition: opacity .25s; }
.term em { font-style: normal; color: var(--px-term-g); }
.widths { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 8px; padding: 14px 16px; background: var(--px-paper); border: 1px solid var(--px-rule); border-radius: 4px;
  transform: translateY(calc(100% + 20px)); transition: transform .7s var(--ease); }
.widths div { display: grid; grid-template-columns: 5.5em 3.5em 1fr 4em; align-items: center; gap: 12px; font: 400 11.5px/1 var(--f-mono); }
.widths span { color: var(--px-mute); }
.widths i { height: 8px; background: var(--px-tint); position: relative; }
.widths i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 100%); background: var(--px-cube); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.widths em { font-style: normal; color: var(--px-ok); text-align: right; }
.tree { position: absolute; inset: 0; padding: clamp(18px, 3vw, 36px); display: grid; align-content: center; gap: 2px; background: var(--px-term); color: var(--px-term-ink); font: 400 clamp(11px, 1vw, 14px)/1.9 var(--f-mono); white-space: pre;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); }
.tree b { font-weight: 500; color: var(--px-term-k); }
.tree span { color: var(--px-term-mute); margin-left: 1.4em; }
.tree p { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .5s var(--ease); }
.tree-tag { margin-top: 14px; justify-self: start; padding: 6px 10px; border: 1px solid var(--px-term-g); color: var(--px-term-g); border-radius: 3px; font-size: .86em; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 7%; z-index: 4; display: grid; grid-template-columns: repeat(16, 1fr); pointer-events: none; transform: translateY(-110%); }
.scan i { background: var(--px-cube); }
.scan i:nth-child(3n) { background: var(--px-dim); } .scan i:nth-child(5n+2) { background: transparent; } .scan i:nth-child(7n+4) { background: transparent; }
.px-stage.scanning .scan { animation: scan .62s steps(15, end) both; }
@keyframes scan { from { transform: translateY(-110%); } to { transform: translateY(1450%); } }
.px-stage[data-state="1"] .mock { opacity: .4; }
.px-stage[data-state="1"] .term { transform: none; }
.px-stage[data-state="1"] .term p { opacity: 1; }
.px-stage[data-state="1"] .term p:nth-child(2) { transition-delay: .25s; } .px-stage[data-state="1"] .term p:nth-child(3) { transition-delay: .5s; }
.px-stage[data-state="1"] .term p:nth-child(4) { transition-delay: .75s; } .px-stage[data-state="1"] .term p:nth-child(5) { transition-delay: 1s; }
.px-stage[data-state="2"] .pxgrid { opacity: 1; }
.px-stage[data-state="2"] .sel { opacity: 0; }
.px-stage[data-state="2"] .widths { transform: none; }
.px-stage[data-state="2"] .widths i::after { transform: none; }
.px-stage[data-state="3"] .mock { opacity: 0; }
.px-stage[data-state="3"] .tree { clip-path: inset(0); }
.px-stage[data-state="3"] .tree p { opacity: 1; transform: none; }
.tree p:nth-child(2) { transition-delay: .15s; } .tree p:nth-child(3) { transition-delay: .25s; } .tree p:nth-child(4) { transition-delay: .35s; }
.tree p:nth-child(5) { transition-delay: .45s; } .tree p:nth-child(6) { transition-delay: .55s; } .tree p:nth-child(7) { transition-delay: .75s; }
@media (max-width: 900px) {
  .px-how .px-head { grid-column: 1 / -1; }
  .px-stage-col { grid-column: 1 / -1; grid-row: 2; position: sticky; top: calc(var(--bar) + 8px); z-index: 2; padding-block: 8px; background: var(--px-ground); }
  .px-stage { position: static; }
  .px-steps { grid-column: 1 / -1; grid-row: 3; }
  .px-step { min-height: 64vh; align-content: start; padding-top: 22px; }
  .px-stage-cap { display: none; }
}

/* fonctions */
.px-fn { padding-block: clamp(80px, 13vh, 150px); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { font: 500 12px/1 var(--f-mono); padding: 9px 12px; border: 1px solid var(--px-rule); border-radius: 2px; background: var(--px-paper); color: var(--px-ink-2); transition: background .25s, color .25s, border-color .25s; }
.fchip span { color: var(--px-mute); margin-left: 4px; }
.fchip[aria-pressed="true"] { background: var(--px-ink); color: var(--px-ground); border-color: var(--px-ink); }
.fchip[aria-pressed="true"] span { color: var(--px-ground); }
.fn-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 48px; }
.fn { display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; row-gap: 8px; align-content: start; padding: 22px 0 30px; border-top: 1px solid var(--px-rule); }
.fn.off { display: none; }
.fn .mini { grid-row: 1 / span 3; margin-top: 2px; }
.fn-mod { font: 400 11.5px/1.3 var(--f-mono); color: var(--px-mute); }
.fn-mod code { font: inherit; color: var(--px-cube); margin-left: 6px; }
.fn-t { font: 600 21px/1.2 var(--f-px); letter-spacing: -.015em; }
.fn-d { font-size: 15.5px; line-height: 1.55; color: var(--px-ink-2); max-width: 34em; }
.js .fn.rv { transition-delay: calc(var(--i) * .07s); }
.mini { display: grid; grid-template-columns: repeat(3, 6px); gap: 2px; width: 22px; height: 22px; }
.mini i { width: 6px; height: 6px; background: var(--px-grid); outline: 1px solid var(--px-rule); outline-offset: -1px; }
.mini i.on { background: var(--px-cube); outline: 0; }
.mini i { transition: background-color .01s linear calc(var(--k, 0) * 42ms), outline-color .01s linear calc(var(--k, 0) * 42ms); }
.fn:hover .mini i { background: var(--px-cube); outline-color: var(--px-cube); }
.fn { position: relative; }
.fn::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--px-cube); transform: scaleX(0); transform-origin: left; transition: transform .7s steps(12, end); }
.fn:hover::before { transform: none; }
.fn-t { transition: transform .5s var(--ease); }
.fn:hover .fn-t { transform: translateX(6px); }
.px-site { margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--px-ink); border-bottom: 1px solid var(--px-rule); font-size: 17px; line-height: 1.6; color: var(--px-ink-2); }
.px-site b { font: 600 17px var(--f-px); color: var(--px-ink); margin-right: .6em; }
.tn { font-variant-numeric: tabular-nums; color: var(--px-ink); }
@media (max-width: 1100px) { .fn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fn-list { grid-template-columns: 1fr; } }

/* versions */
.px-ver { padding-block: clamp(60px, 10vh, 120px); }
.ver { position: relative; margin-top: 48px; }
.ver-axis { height: 9px; position: relative; }
.ver-axis i { position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--px-ink); transform-origin: left; }
.js .ver .ver-axis i { transform: scaleX(0); transition: transform 1.6s var(--ease-io); }
.js .ver.in .ver-axis i { transform: none; }
.ver-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.ver-day { position: relative; padding-top: 22px; }
.ver-day::before { content: ""; position: absolute; left: 0; top: -9px; width: 9px; height: 9px; background: var(--px-cube); }
.js .ver .ver-day::before { transform: scale(0); transition: transform .6s var(--spring); transition-delay: calc(.2s + var(--k, 0) * .12s); }
.js .ver.in .ver-day::before { transform: none; }
.ver-d { display: grid; gap: 4px; margin-bottom: 18px; }
.ver-d b { font: 600 clamp(30px, 3vw, 44px)/1 var(--f-px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ver-d span { font: 400 12px var(--f-mono); color: var(--px-mute); }
.ver-items { display: grid; gap: 14px; }
.ver-it { display: grid; gap: 4px; padding: 14px; background: var(--px-paper); border: 1px solid var(--px-rule); border-radius: 4px; }
.ver-v { font: 500 12px var(--f-mono); color: var(--px-cube); }
.ver-it b { font: 600 16px/1.25 var(--f-px); }
.ver-x { font-size: 14px; line-height: 1.5; color: var(--px-ink-2); }
.js .ver .ver-it { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(.3s + var(--k) * .09s); }
.js .ver.in .ver-it { opacity: 1; transform: none; }
.rm .ver .ver-it, .rm .ver .ver-axis i { opacity: 1; transform: none; transition: none; }
@media (max-width: 900px) { .ver-days { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 560px) { .ver-days { grid-template-columns: 1fr; } .ver-axis { display: none; } .ver-day { border-top: 1px solid var(--px-ink); } .ver-day::before { top: -5px; } }

/* calendrier */
.px-cal { padding-block: clamp(60px, 10vh, 120px) clamp(90px, 14vh, 160px); }
.cal { margin-top: 48px; overflow-x: auto; padding-bottom: 6px; }
.cal-grid { position: relative; min-width: 760px; --lab: clamp(200px, 22vw, 300px); }
.cal-months { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-left: var(--lab); font: 400 10.5px/1.2 var(--f-mono); color: var(--px-mute); }
.cal-months span { padding: 0 0 10px 5px; border-left: 1px solid var(--px-rule); min-height: 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.cal-months b { font-weight: 500; color: var(--px-ink); margin-bottom: 3px; }
.cal-rows { border-top: 1px solid var(--px-ink); }
.cal-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; border-bottom: 1px solid var(--px-rule); min-height: 74px; }
.cal-l { grid-row: 1 / span 2; display: grid; gap: 4px; padding: 14px 16px 14px 0; }
.cal-l b { font: 600 18px/1.2 var(--f-px); }
.cal-l span { font: 400 11.5px var(--f-mono); color: var(--px-mute); }
.cal-bar { position: relative; height: 16px; align-self: end; }
.cal-bar i { position: absolute; top: 0; bottom: 0; left: calc(var(--a) / var(--n) * 100%); width: calc((var(--b) - var(--a)) / var(--n) * 100%); background: var(--px-cube); transform-origin: left; }
.cal-bar.arrow i { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.cal-row:nth-child(4) .cal-bar i { background: var(--px-deep); }
.cal-w { grid-column: 2; padding: 8px 0 12px calc(var(--a) / var(--n) * 100%); font-size: 13.5px; color: var(--px-ink-2); }
.js .cal .cal-bar i { transform: scaleX(0); transition: transform 1.2s var(--ease-io); transition-delay: calc(.2s + var(--k) * .18s); }
.js .cal.in .cal-bar i { transform: none; }
.rm .cal .cal-bar i { transform: none; transition: none; }
.cal-today { position: absolute; top: 0; bottom: 0; left: calc(var(--lab) + (100% - var(--lab)) * var(--m) / var(--n)); width: 0; border-left: 1px dashed var(--px-ink); }
.js .cal .cal-today { clip-path: inset(0 -240px 100% -240px); transition: clip-path 1.4s steps(16, end) .9s; }
.js .cal.in .cal-today { clip-path: inset(-40px -240px 0 -240px); }
.cal-today span { position: absolute; left: 6px; top: -30px; white-space: nowrap; font: 500 10.5px var(--f-mono); color: var(--px-ink); background: var(--px-ground); padding: 2px 4px; }
.cal-grid { margin-top: 34px; }
@media (max-width: 900px) {
  .cal { overflow: visible; }
  .cal-grid { min-width: 0; --lab: 0px; }
  .cal-months span { border-left-color: transparent; padding-left: 0; }
  .cal-months span:not(.y) { visibility: hidden; }
  .cal-months span.y { visibility: visible; border-left-color: var(--px-rule); padding-left: 4px; white-space: nowrap; }
  .cal-months span.y b { margin: 0; }
  .cal-months span.y { font-size: 0; }
  .cal-months span.y b { font-size: 10.5px; }
  .cal-row { grid-template-columns: minmax(0, 1fr); padding: 14px 0 6px; }
  .cal-l { grid-row: auto; padding: 0 0 10px; }
  .cal-bar { align-self: auto; }
  .cal-w { grid-column: 1; padding-left: 0; padding-top: 8px; }
  .cal-today span { top: -26px; left: 4px; }
}
.px-legal { margin-top: 48px; max-width: 60em; font: 400 12px/1.6 var(--f-mono); color: var(--px-mute); }

/* ═══ fiches (salles) et visionneuse (pellicule) ═══ */
.ov { position: fixed; inset: 0; z-index: 80; background: var(--wall, var(--paper)); color: var(--on, var(--ink)); }
.ov[data-kind="serie"] { background: var(--night); color: var(--night-ink); --ink: var(--night-ink); --ink-2: var(--night-2); --rule: var(--night-rule); }
.ov :focus-visible { outline-color: currentColor; }
.ov-bar { position: absolute; inset: 0 0 auto; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 10px; height: var(--bar); padding: env(safe-area-inset-top, 0px) var(--gut) 0; box-sizing: content-box; pointer-events: none; }
.ov-bar > * { pointer-events: auto; }
.ov-k { gap: 12px; min-width: 0; font: 600 10.5px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.ov-k b { font: italic 400 20px/1.1 var(--f-display); letter-spacing: -.01em; text-transform: none; font-weight: 400; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: .1em; }
.ov-k { max-width: calc(100vw - 2 * var(--gut) - 150px); }
.ov-nav { display: flex; gap: 8px; flex: none; }
.ov-b { width: 40px; padding: 0; justify-content: center; }
.ov-b svg { width: 18px; height: 18px; }
.ov-x { gap: 10px; font: 500 14px/1 var(--f-label); }
.ov-body { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.ov[data-kind="serie"] .ov-body { overflow: hidden; }
.ov-prog { position: absolute; right: 0; top: 0; bottom: 0; width: 3px; z-index: 6; pointer-events: none; }
.ov-prog i { position: absolute; inset: 0; background: var(--on, currentColor); transform-origin: top; transform: scaleY(0); }
.ov[data-kind="serie"] .ov-prog { display: none; }
@media (max-width: 640px) { .ov-k span:not(:first-child) { display: none; } .ov-x .roll { display: none; } .ov-x { width: 40px; padding: 0; justify-content: center; font-size: 20px; } .ov-k { gap: 8px; padding: 0 12px; } .ov-k b { font-size: 17px; } }

/* ── fiche projet : une salle en plein écran ── */
.ovp { --frame-bg: color-mix(in srgb, var(--on) 9%, var(--wall)); }
.ovp-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; column-gap: var(--gap); padding: calc(var(--bar) + 28px) var(--gut) clamp(46px, 8vh, 90px); box-sizing: border-box; overflow: hidden; }
.ovp-hero-txt { position: relative; z-index: 2; align-self: end; display: grid; gap: clamp(16px, 2.4vh, 26px); padding-bottom: 2vh; will-change: transform; }
.ovp-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; }
.ovp-pill { padding: 7px 11px 6px; border: 1px solid currentColor; border-radius: 999px; }
.ovp-k span:nth-child(n+3)::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 16px; }
.ovp-t { font: italic 400 clamp(62px, 10vw, 205px)/.86 var(--f-display); letter-spacing: -.035em; max-width: 100%; }
.ovp-t .rise { padding-bottom: .1em; margin-bottom: -.1em; }
.ovp-winwrap { position: relative; z-index: 1; justify-self: center; align-self: center; max-width: 100%; }
.ovp-win { position: relative; height: min(58vh, 600px); max-width: 100%; margin: 0; overflow: hidden; background: var(--frame-bg); }
.ovp-win[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.ovp-win[data-shape="arch"] { aspect-ratio: .74; border-radius: 999px 999px 0 0; }
.ovp-win[data-shape="star"] { aspect-ratio: 1; height: min(52vh, 520px); clip-path: url(#starClip); }
/* lettrine */
.ovp-ini { float: left; display: grid; place-items: center; width: 2.05em; height: 2.05em; margin: .1em .32em 0 0; background: var(--on); color: var(--wall); position: relative; font-style: normal; }
.ovp-ini::before { content: ""; position: absolute; inset: .14em; border: 1px solid var(--wall); }
.ovp-ini-l { position: relative; font: italic 400 1.8em/1 var(--f-display); letter-spacing: -.02em; margin-top: -.06em; }
.ovp-win-in { position: absolute; inset: 0; transform: scale(1.12); will-change: transform; }
.ovp-win-in img, .ovp-win-in video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ovp-orn { position: absolute; z-index: 1; pointer-events: none; display: block; will-change: transform; }
.ovp-orn[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; }
.ovp-orn[data-shape="arch"] { aspect-ratio: .7; }
.ovp-orn[data-shape="star"] { aspect-ratio: 1; }
.ovp-orn-a { width: clamp(84px, 9.5vw, 170px); left: 41%; top: 13%; }
.ovp-orn-b { width: clamp(80px, 8.5vw, 150px); right: 4%; bottom: 9%; }
.ovp-cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 12px; font: 600 10.5px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.ovp-cue i { display: block; width: 1px; height: 30px; background: currentColor; }
/* entrée de la salle */
.js .ovp .ovp-win { transform: scale(.82) translateY(4vh); opacity: 0; transition: transform 1.5s var(--ease), opacity .7s var(--ease); }
.js .ovp .ovp-orn { opacity: 0; scale: .6; transition: opacity .8s var(--ease) .5s, scale 1.4s var(--spring) .5s; }
.js .ovp .ovp-k, .js .ovp .ovp-cue { opacity: 0; translate: 0 14px; transition: opacity .8s var(--ease) .35s, translate 1s var(--ease) .35s; }
.js .ovp.on .ovp-win, .js .ovp.on .ovp-orn { transform: none; opacity: 1; scale: 1; }
.js .ovp.on .ovp-k, .js .ovp.on .ovp-cue { opacity: 1; translate: none; }
.ovp.on .rise .ch { transform: none; }
.rm .ovp .ovp-win, .rm .ovp .ovp-orn, .rm .ovp .ovp-k, .rm .ovp .ovp-cue { opacity: 1; transform: none; scale: 1; translate: none; }

.ovp-txt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; padding: clamp(80px, 15vh, 170px) var(--gut) clamp(70px, 12vh, 140px); }
.ovp-lead { grid-column: 1 / span 7; font: italic 400 clamp(28px, 3.1vw, 54px)/1.13 var(--f-display); letter-spacing: -.012em; text-wrap: pretty; }
.ovp-side { grid-column: 9 / span 4; display: grid; gap: 28px; align-content: start; font-size: 16px; line-height: 1.6; }
.ovp-dl { display: grid; margin: 0; }
.ovp-dl > div { display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 12px; padding: 12px 0 11px; border-top: 1px solid currentColor; align-items: baseline; }
.ovp-dl > div:last-child { border-bottom: 1px solid currentColor; }
.ovp-dl dt { font: 600 10.5px/1.6 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.ovp-dl dd { margin: 0; font-size: 15px; }
.ovp-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.ovp-tools span { padding: 5px 10px 4px; border: 1px solid currentColor; border-radius: 999px; font: 400 15px/1 var(--f-pill); }
.js .ovp-rv { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.3s var(--ease); }
.js .ovp-rv.in { opacity: 1; transform: none; }
.js .ovp-side.ovp-rv { transition-delay: .14s; }

.ovp-gal { display: grid; gap: clamp(70px, 13vh, 150px); padding: 0 var(--gut) clamp(90px, 16vh, 180px); }
.ovp-fig figure { display: grid; gap: 12px; margin: 0; }
.lay-full figure { width: 100%; }
.lay-left figure { width: 76%; }
.lay-right figure { width: 76%; margin-left: auto; }
.lay-mid figure { width: 58%; }
.lay-mid-l figure { margin-left: 9%; }
.lay-mid-r figure { margin-left: auto; margin-right: 9%; }
.ovp-frame { position: relative; overflow: hidden; background: var(--frame-bg); }
.ovp-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); will-change: transform; }
.ovp-fig 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 .ovp-fig .ovp-frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); }
.js .ovp-fig.in .ovp-frame { clip-path: inset(0); }
.js .ovp-fig figcaption { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease) .55s, transform 1s var(--ease) .55s; }
.js .ovp-fig.in figcaption { opacity: 1; transform: none; }
.rm .ovp-fig .ovp-frame, .rm .ovp-rv { clip-path: none; opacity: 1; transform: none; }
.rm .ovp-fig figcaption { opacity: 1; transform: none; }

/* salle suivante */
.ovp-next { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k win" "t win" "m win"; align-items: end; column-gap: var(--gap); row-gap: 16px; width: 100%; padding: clamp(70px, 14vh, 160px) var(--gut) clamp(60px, 12vh, 130px); background: var(--wall2); color: var(--on2); text-align: left; overflow: hidden; }
.ovp-next-k { grid-area: k; font: 600 11px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.ovp-next-t { grid-area: t; font: italic 400 clamp(54px, 9vw, 170px)/.88 var(--f-display); letter-spacing: -.035em; min-width: 0; }
.ovp-next-t .roll { line-height: 1.22; padding: 0 .16em .02em 0; margin: -.12em 0 -.1em; max-width: 100%; }
.ovp-next-t .roll .rl + .rl { left: 0; }
.ovp-next-m { grid-area: m; font: 600 11px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.ovp-next-wrap { grid-area: win; align-self: center; position: relative; margin: 60px 70px 30px; transition: transform 1.1s var(--ease), rotate 1.1s var(--ease); --on: var(--on2); }
.ovp-next-win { display: block; width: clamp(110px, 15vw, 240px); overflow: hidden; }
.ovp-next-win[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.ovp-next-win[data-shape="arch"] { aspect-ratio: .74; border-radius: 999px 999px 0 0; }
.ovp-next-win[data-shape="star"] { aspect-ratio: 1; clip-path: url(#starClip); }
.ovp-next-win img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ovp-next:hover .ovp-next-wrap { transform: scale(1.05); rotate: -3deg; }
.ovp-next:hover .ovp-next-win img { transform: scale(1.12); }
.ovp-next:hover .roll .ch, .ovp-next:focus-visible .roll .ch { transform: translateY(-100%); }

@media (max-width: 900px) {
  .ovp-hero { grid-template-columns: minmax(0, 1fr); align-content: center; row-gap: 26px; padding-top: calc(var(--bar) + 18px); }
  .ovp-hero { padding-top: calc(var(--bar) + 84px); }
  .ovp-winwrap { grid-row: 1; margin-bottom: 64px; }
  .ovp-win { height: min(44vh, 420px); }
  .ovp-win[data-shape="star"] { height: min(38vh, 360px); }
  .ovp-hero-txt { grid-row: 2; align-self: start; padding-bottom: 30px; }
  .ovp-t { font-size: clamp(50px, 14vw, 110px); }
  .ovp-orn-a { left: auto; right: 5%; top: calc(var(--bar) + 10px); }
  .ovp-orn-b { right: auto; left: 4%; bottom: auto; top: calc(var(--bar) + 30vh); }
  .ovp-lead, .ovp-side { grid-column: 1 / -1; }
  .lay-left figure, .lay-right figure, .lay-mid figure { width: 100%; margin: 0; }
  .ovp-next { grid-template-columns: minmax(0, 1fr); grid-template-areas: "win" "k" "t" "m"; justify-items: start; }
  .ovp-next-wrap { justify-self: start; margin: 40px 0 34px 46px; }
  .ovp-next-win { width: clamp(100px, 30vw, 160px); }
}

/* ── visionneuse : pellicule glissée dans la nef ── */
.ovs { position: absolute; inset: 0; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.ovs-bg { position: absolute; left: 0; top: 47%; transform: translateY(-50%); margin: 0; white-space: nowrap; font: italic 400 clamp(150px, 33vw, 560px)/.8 var(--f-display); letter-spacing: -.045em; color: #24211E; pointer-events: none; padding-left: 5vw; }
.ovs-bg span { display: inline-block; will-change: transform; }
.ovs-arches { position: absolute; left: 50%; top: 46%; height: 84%; width: auto; aspect-ratio: 200 / 260; transform: translate(-50%, -50%); fill: none; stroke: #3D3934; stroke-width: 1px; pointer-events: none; overflow: visible; }
.ovs-arches path { vector-effect: non-scaling-stroke; }
.ovs-view { position: relative; grid-row: 1; overflow: hidden; touch-action: pan-y; cursor: grab; outline-offset: -8px; user-select: none; -webkit-user-select: none; }
.ovs-view.drag { cursor: grabbing; }
.ovs-track { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: clamp(30px, 5.2vw, 96px); margin: 0; padding: calc(var(--bar) + 12px) 0 6px; will-change: transform; }
.ovs-it { flex: none; position: relative; width: min(calc(58vh * var(--ar)), 82vw, 1100px); aspect-ratio: var(--ar); }
.ovs-fr { position: absolute; inset: 0; margin: 0; transform-origin: 50% 50%; }
.ovs-ph { position: absolute; inset: 0; overflow: hidden; background: #24211E; }
.ovs-ph img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; will-change: transform; }
.ovs-it.on .ovs-ph { outline: 1px solid var(--night-ink); outline-offset: 10px; }
.js .ov.shown .ovs-ph { animation: phin 1.2s var(--ease-io) both; }
.js .ov.shown .ovs-it:nth-child(2) .ovs-ph { animation-delay: .08s; } .js .ov.shown .ovs-it:nth-child(3) .ovs-ph { animation-delay: .16s; }
@keyframes phin { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .ov.shown .ovs-bg span { animation: bgin 1.6s var(--ease) both; }
@keyframes bgin { from { opacity: 0; translate: 0 18%; } to { opacity: 1; translate: none; } }
.ovs-end .ovs-ph { display: none; }
.ovs-nx { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; justify-items: center; align-content: center; gap: 12px; padding: 4% 6%; text-align: center; color: var(--night-ink); border: 1px solid var(--night-rule); }
.ovs-nx-k { font: 600 10.5px/1 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.ovs-nx-win { height: 100%; aspect-ratio: .72; border-radius: 999px 999px 0 0; overflow: hidden; transition: transform 1s var(--ease); }
.ovs-nx-win img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ovs-nx-t { font: italic 400 clamp(34px, 3.6vw, 60px)/.95 var(--f-display); letter-spacing: -.02em; }
.ovs-nx-m { font: 600 10px/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--night-2); }
.ovs-nx:hover .ovs-nx-win { transform: scale(1.05); }
.ovs-foot { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 12px 28px; padding: 10px var(--gut) calc(18px + env(safe-area-inset-bottom, 0px)); }
.ovs-cap { display: grid; gap: 5px; min-height: 52px; align-content: end; }
.ovs-cap b { font: italic 400 clamp(22px, 2.1vw, 32px)/1.08 var(--f-display); font-weight: 400; }
.ovs-cap span { font: 600 10.5px/1.45 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--night-2); }
.ovs-cap.in b, .ovs-cap.in span { animation: capin .75s var(--ease) both; }
.ovs-cap.in span { animation-delay: .07s; }
@keyframes capin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ovs-dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.ovs-dots button { display: block; width: 12px; height: 12px; border: 1px solid var(--night-ink); transition: background-color .3s, transform .45s var(--spring); }
.ovs-dots button:hover { transform: scale(1.3); }
.ovs-dots button[aria-current="true"] { background: var(--night-ink); }
.ovs-n { margin: 0; font: italic 400 22px/1 var(--f-display); white-space: nowrap; }
.ovs-n b { font-weight: 400; font-size: 40px; letter-spacing: -.02em; }
@media (max-width: 760px) {
  .ovs-it { width: min(calc(54vh * var(--ar)), 84vw); }
  .ovs-foot { grid-template-columns: minmax(0, 1fr) auto; }
  .ovs-cap { grid-column: 1 / -1; }
  .ovs-bg { font-size: 44vw; }
}
/* téléphone à l'horizontale : la fiche garde ses deux colonnes, le titre reste dans le premier écran */
@media (max-height: 520px) and (min-width: 600px) and (orientation: landscape) {
  .ovp-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-content: center; row-gap: 0; padding-top: calc(var(--bar) + 24px); }
  .ovp-winwrap { grid-row: 1; grid-column: 2; margin-bottom: 0; }
  .ovp-hero-txt { grid-row: 1; grid-column: 1; align-self: center; padding-bottom: 0; }
  .ovp-win { height: min(60vh, 280px); }
  .ovp-win[data-shape="star"] { height: min(56vh, 260px); }
  .ovp-t { font-size: clamp(40px, 13vh, 76px); }
  .ovp-cue { display: none; }
}
/* ═══ repli sans 3D : projets et arches (repris de la v2) ═══ */
/* ═══ PROJETS ═══ */
.prj { padding-top: clamp(100px, 16vh, 180px); }
.prj-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 7vh, 80px); }
.strip { position: relative; padding-bottom: clamp(80px, 12vh, 140px); }
.strip-rail { display: none; }
.strip-track { display: grid; gap: clamp(64px, 10vh, 110px); padding-inline: var(--gut); max-width: 1680px; margin-inline: auto; box-sizing: border-box; }
.frame { display: grid; gap: 18px; min-width: 0; }
.frame-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--rule-2); text-align: left; }
.frame-media img, .frame-media video { width: 100%; height: 100%; object-fit: cover; transform: translateX(var(--px, 0)) scale(1.12); transition: transform 1.4s var(--ease); }
.frame-media:hover img, .frame-media:hover video { transform: translateX(var(--px, 0)) scale(1.16); }
.frame-n { position: absolute; left: 0; bottom: 0; padding: 8px 12px; background: var(--paper); font: italic 400 20px/1 var(--f-display); }
.frame-txt { display: grid; gap: 10px; justify-items: start; }
.frame-t { font: 400 clamp(34px, 3.4vw, 52px)/1 var(--f-display); letter-spacing: -.02em; }
.frame-m { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 600 11px/1.3 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.frame-m span + span::before { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 18px; }
.frame-d { font-size: 16px; line-height: 1.55; max-width: 38em; }
.frame-tools { font: 400 13px var(--f-text); color: var(--ink-3); }
.frame-open { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font: 400 17px/1 var(--f-pill); padding: 11px 16px 10px 18px; border: 1px solid currentColor; border-radius: 999px; transition: background .3s, color .3s; }
.frame-open svg { width: 15px; height: 15px; }
.frame-open:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* ═══ PHOTOGRAPHIE (encre) ═══ */
.pho { background: var(--night); color: var(--night-ink); --ink: var(--night-ink); --ink-2: var(--night-2); --rule: var(--night-rule); padding-top: clamp(40px, 8vh, 90px); }
.pho :focus-visible { outline-color: var(--night-ink); }
.pho-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 8vh, 90px); }
.arches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.arch-btn { display: grid; gap: 14px; width: 100%; text-align: left; }
.arch-win { display: block; aspect-ratio: 5 / 8; border-radius: 50% 50% 0 0 / 31.25% 31.25% 0 0; overflow: hidden; background: var(--night-rule); }
.arch-win img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.arch-btn:hover .arch-win img { transform: scale(1.1); }
.arch-cap { display: grid; gap: 6px; }
.arch-cap b { font: italic 400 clamp(26px, 2.3vw, 36px)/1 var(--f-display); letter-spacing: -.01em; }
.arch-cap span { font: 600 10.5px/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--night-2); }
.js .arch .arch-win { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io); transition-delay: calc(var(--i) * .11s); }
.js .arch.in .arch-win { clip-path: inset(0); }
.js .arch .arch-cap { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(.5s + var(--i) * .11s); }
.js .arch.in .arch-cap { opacity: 1; transform: none; }
.rm .arch .arch-win, .rm .arch .arch-cap { clip-path: none; opacity: 1; transform: none; transition: none; }
@media (max-width: 1100px) { .arches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .arches { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; } }

.fb-vit .strip-track { display: grid; gap: 56px var(--gap); padding: 0; }
@media (min-width: 600px) { .fb-vit .strip-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fb-vit .strip-track { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── écrans tactiles : cibles d'au moins 44 px ── */
@media (pointer: coarse) {
  .chip { height: 48px; padding: 0 18px; }
  .bar-icon, .ov-b { width: 48px; padding: 0; }
  .pill { height: 48px; padding: 0 22px; font-size: 18px; }
  .fchip { min-height: 44px; padding: 13px 14px; font-size: 14px; }
  .sheet-sub { gap: 0 20px; }
  .sheet-sub a { display: inline-block; padding: 11px 0; }
  .motion-btn { min-height: 44px; }
  .sheet-a { min-height: 48px; align-items: center; }
  /* points de la pellicule : plus gros, zone de toucher de 44 px */
  .ovs-dots { gap: 12px; }
  .ovs-dots button { width: 16px; height: 16px; position: relative; }
  .ovs-dots button::after { content: ''; position: absolute; inset: -14px -6px; }
}

/* ── téléphone (portrait, ou paysage bas) : textes relevés, pastilles du bas retirées ── */
@media (max-width: 600px), (pointer: coarse) and (max-height: 520px) {
  .hud { display: none; }
  .bar-wm .wm { font-size: 25px; }
  .bar-menu { font-size: 16px; }
  .ov-x { width: 48px; font-size: 22px; }
  .lbl, .cue3, .k3-l, .lb3-n, .lb3-m, .t3-n, .t3-m, .pxo-meta b, .end-k, .end-cred dt, .end-meta, .wl-n, .wl-m,
  .ov-k, .ovp-k, .ovp-cue, .ovp-dl dt, .ovp-fig figcaption, .ovp-next-k, .ovp-next-m, .ovs-nx-k, .ovs-nx-m, .ovs-cap span,
  .frame-m, .arch-cap span, .cal-months, .cal-today span, .cal-months span.y b { font-size: 12.5px; }
  .sheet-foot, .pxo-k, .px-k, .px-n, .px-step .px-note, .px-stage-cap, .fn-mod, .ver-d span, .ver-v, .cal-l span, .px-legal { font-size: 13.5px; }
  .lb3-d, .fn-d, .ovp-dl dd, .ver-x, .sheet-sub { font-size: 16px; }
  /* calendrier : la ligne « aujourd'hui » passe derrière les textes */
  .cal-l > * { position: relative; z-index: 1; justify-self: start; background: var(--px-ground); }
}

/* ───────── v3.14 · Interactivité : étiquettes à deux boutons, fiches avec le site en direct ───────── */
.lb3-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.lb3[data-side="-1"] .lb3-acts { justify-content: flex-end; }
.lb3-acts .pill { margin-top: 0; }
.narrow .lb3-acts, .narrow .lb3[data-side="-1"] .lb3-acts { justify-content: flex-start; margin-top: 4px; }
.frame-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.frame-acts .frame-open { margin-top: 0; }
.ovp-url { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.ovp-live { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 7vh, 80px); padding: 0 var(--gut) clamp(90px, 16vh, 180px); }
.ovp-live-h { grid-column: 1 / span 4; display: grid; gap: 16px; align-content: start; }
.ovp-live-k { font: 600 11px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
.ovp-live-t { font: italic 400 clamp(38px, 3.8vw, 68px)/.95 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.ovp-gest { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.ovp-gest li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-content: start; padding: 16px 0 22px; border-top: 1px solid currentColor; }
.ovp-gest-n { grid-row: span 2; font: italic 400 28px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.ovp-gest b { font: 600 11px/1.3 var(--f-label); letter-spacing: .13em; text-transform: uppercase; padding-top: 4px; }
.ovp-gest-d { font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.ovp-live-win { grid-column: 1 / -1; margin: 0; display: grid; gap: 14px; justify-items: center; }
.ovp-live-frame { width: min(100%, calc((100vh - var(--bar) - 150px) * 1.6)); min-width: min(100%, 520px); border: 1px solid currentColor; border-radius: 14px; overflow: hidden; background: var(--frame-bg); }
.ovp-live-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; height: 42px; padding: 0 8px 0 16px; border-bottom: 1px solid currentColor; }
.ovp-live-dots { display: flex; gap: 6px; }
.ovp-live-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; }
.ovp-live-url { justify-self: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px/1 var(--f-text); opacity: .8; }
.ovp-live-tab, .ovp-live-stop { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid currentColor; border-radius: 999px; font: 400 15px/1 var(--f-pill); text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s; }
.ovp-live-tab:hover, .ovp-live-stop:hover { background: var(--on); color: var(--wall); }
.ovp-live-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.ovp-live-screen > img, .ovp-live-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease), filter .8s var(--ease); }
.ovp-live-screen:hover > img, .ovp-live-screen:hover > video { transform: scale(1.025); filter: saturate(.9) brightness(.94); }
.ovp-live-screen iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: #fff; }
.ovp-live-screen.live > img, .ovp-live-screen.live > video, .ovp-live-screen.live > .ovp-live-go { visibility: hidden; }
.ovp-live-go { position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%; display: inline-flex; align-items: center; gap: 12px; padding: 17px 26px 16px 22px; border: 1px solid var(--on); border-radius: 999px; background: var(--wall); color: var(--on); font: 400 20px/1 var(--f-pill); text-decoration: none; white-space: nowrap; transition: scale .6s var(--spring), background-color .3s, color .3s; }
.ovp-live-go:hover { scale: 1.06; background: var(--on); color: var(--wall); }
.ovp-live-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ovpPulse 1.8s ease-out infinite; }
@keyframes ovpPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.rm .ovp-live-dot { animation: none; }
.ovp-live-cap { display: flex; justify-content: space-between; gap: 16px; width: min(100%, calc((100vh - var(--bar) - 150px) * 1.6)); min-width: min(100%, 520px); font: 600 10.5px/1.3 var(--f-label); letter-spacing: .13em; text-transform: uppercase; }
@media (max-width: 900px) {
  .ovp-live-h, .ovp-gest { grid-column: 1 / -1; }
  .ovp-gest { grid-template-columns: minmax(0, 1fr); }
  .ovp-live-frame, .ovp-live-cap { width: 100%; min-width: 0; }
  .ovp-live-screen { aspect-ratio: 4 / 3; }
  .ovp-live-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ovp-live-tab { display: none; }
  .ovp-live-go { font-size: 17px; padding: 14px 20px 13px 18px; }
}
@media (max-width: 1240px) { .bar-nav a { padding: 0 8px; } }

/* ───────── v3.15 · ouverture, fiches des sites, pages dédiées ───────── */
.oi3 { position: absolute; top: 50%; translate: 0 -50%; width: clamp(180px, 15vw, 250px); color: var(--ink); z-index: 2; transition: opacity .3s; }
.oi3-l { left: var(--gut); }
.oi3-r { right: var(--gut); text-align: right; }
.oi3-k { font: 600 10.5px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.oi3 ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.oi3 li a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 9px 0 8px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; pointer-events: auto; transition: padding-left .45s var(--ease); }
.oi3 li a:hover { padding-left: 8px; }
.oi3 li b { font: 600 10.5px/1 var(--f-label); letter-spacing: .1em; color: var(--ink-2); }
.oi3 li span { font: italic 400 24px/1 var(--f-display); letter-spacing: -.01em; }
.oi3 li em { font: 400 12.5px/1 var(--f-label); font-style: normal; color: var(--ink-3); }
.oi3-p { font: italic 400 21px/1.18 var(--f-display); letter-spacing: -.005em; text-wrap: balance; }
.oi3-m { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font: 600 10.5px/1.4 var(--f-label); letter-spacing: .12em; text-transform: uppercase; }
.oi3-m span { flex-basis: 100%; color: var(--ink-3); }
.oi3-m a { color: inherit; pointer-events: auto; text-underline-offset: .25em; }
.no3d .oi3, .narrow .oi3 { display: none; }
@media (max-width: 1000px), (max-height: 600px) { .oi3 { display: none; } }
.ov-page svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .ov-page .roll { display: none; } }
.sheet-sub .sheet-page { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.end-pages a { color: inherit; }
/* fiches des sites : l'écran entier, à sa taille */
.ovp-hero--ux { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.ovp-scr { position: relative; z-index: 1; justify-self: center; align-self: center; width: min(100%, 760px); margin-top: 4vh; }
.ovp-scr-halo { position: absolute; z-index: 0; right: -8%; top: 50%; height: 132%; translate: 0 -50%; background: var(--frame-bg); pointer-events: none; }
.ovp-scr-halo[data-shape="oval"] { aspect-ratio: 236.38 / 302.682; clip-path: url(#ovalClip); }
.ovp-scr-halo[data-shape="arch"] { aspect-ratio: .74; border-radius: 999px 999px 0 0; }
.ovp-scr-halo[data-shape="star"] { aspect-ratio: 1; clip-path: url(#starClip); }
.ovp-scr-win { position: relative; z-index: 1; margin: 0; border: 1px solid currentColor; border-radius: 12px; overflow: hidden; background: var(--wall); rotate: -1.2deg; will-change: transform; }
.ovp-scr-bar, .ovp-shot-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border-bottom: 1px solid currentColor; }
.ovp-scr-url { flex: 1; text-align: center; padding-right: 46px; font: 400 12.5px/1 var(--f-text); opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovp-scr-in { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.ovp-scr-in img, .ovp-scr-in video { width: 100%; height: 100%; object-fit: cover; display: block; }
.js .ovp .ovp-scr { opacity: 0; transform: translateY(5vh) scale(.94); transition: transform 1.5s var(--ease), opacity .8s var(--ease); }
.js .ovp.on .ovp-scr { opacity: 1; transform: none; }
.rm .ovp .ovp-scr { opacity: 1; transform: none; }
.ovp-gal .lay-shot figure { width: min(100%, 1080px); margin-inline: auto; }
.ovp-gal .shot-l figure { width: min(100%, 920px); margin: 0 auto 0 0; }
.ovp-gal .shot-r figure { width: min(100%, 920px); margin: 0 0 0 auto; }
.ovp-gal .shot-poster figure { width: min(100%, 480px); margin-inline: auto; }
.ovp-shot { border: 1px solid currentColor; border-radius: 12px; overflow: hidden; background: var(--frame-bg); }
.shot-phones .ovp-shot, .shot-mock .ovp-shot { border-radius: 6px; }
.shot-poster .ovp-shot { border: 0; border-radius: 2px; }
.ovp-shot-img img { display: block; width: 100%; height: auto; }
.js .ovp-fig .ovp-shot { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease), transform 1.3s var(--ease); }
.js .ovp-fig.in .ovp-shot { opacity: 1; transform: none; }
.rm .ovp-fig .ovp-shot { opacity: 1; transform: none; }
.ovp-live-frame { width: min(100%, 1040px, calc((100vh - var(--bar) - 230px) * 1.6)); }
.ovp-live-cap { width: min(100%, 1040px, calc((100vh - var(--bar) - 230px) * 1.6)); }
@media (max-width: 900px) {
  .ovp-hero--ux { grid-template-columns: minmax(0, 1fr); }
  .ovp-scr { grid-row: 1; width: 100%; margin: 0 0 54px; }
  .ovp-scr-halo { height: 118%; right: -2%; }
  .ovp-gal .shot-l figure, .ovp-gal .shot-r figure { width: 100%; margin: 0; }
}

.ov-g { font-style: normal; }
@media (max-width: 640px) {
  .ov-k .ov-g, .ov-k b { display: none; }
  .ov-k { max-width: calc(100vw - 2 * var(--gut) - 200px); }
}

/* (v3.20) les images d'un projet, entières : pas de zoom de parallaxe qui rogne les bords, une hauteur d'écran au plus */
#ov .ovp-frame img { transform: none !important; object-fit: contain; }
#ov .ovp-gal .ovp-fig:not(.lay-shot) figure { max-width: min(100%, calc(72svh * var(--ar, 1.5))); }
#ov .ovp-gal .lay-full figure, #ov .ovp-gal .lay-mid:not(.lay-mid-l):not(.lay-mid-r) figure { margin-inline: auto; }
#ov .ovp-gal .lay-shot figure { width: min(100%, 1080px, calc(66svh * var(--ar, 1.6))); }

/* (v3.19) téléphone : la fiche d'une salle tient dans un écran, l'image prend la place qui reste */
.ovp-cue { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) {
  #ov .ovp-hero { height: 100svh; min-height: 0; box-sizing: border-box; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; row-gap: 16px;
    padding: calc(var(--bar) + 22px + env(safe-area-inset-top, 0px)) var(--gut) calc(58px + env(safe-area-inset-bottom, 0px)); }
  #ov .ovp-winwrap { grid-row: 1; grid-column: 1; align-self: stretch; justify-self: center; height: 100%; min-height: 0; margin: 0; display: grid; align-items: center; }
  #ov .ovp-win, #ov .ovp-win[data-shape="star"] { height: 100%; max-height: min(46svh, 420px); max-width: 100%; }
  #ov .ovp-scr { grid-row: 1; grid-column: 1; align-self: center; margin: 0; max-height: 100%; }
  #ov .ovp-hero-txt { grid-row: 2; grid-column: 1; align-self: end; padding-bottom: 0; gap: 12px; }
  #ov .ovp-t { font-size: clamp(36px, min(11vw, 8.5svh), 64px); }
}

.cv { display: none; } html.cv-on .cv, html.cv-out .cv { display: block; }
/* ═════════ ouverture : les anneaux de motifs autour de la fenêtre d'entrée ═════════
   Aplats, filets d'encre, aucune ombre, aucun dégradé. */
.cv { position: fixed; inset: 0; z-index: 45; overflow: hidden; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.cv.out { pointer-events: none; }
html.cv-load .bar, html.cv-load .hud, html.cv-load .cur { opacity: 0 !important; pointer-events: none; }
html.cv-up .hud { opacity: 0; pointer-events: none; }
html.cv-on #ouverture .w3, html.cv-on #ouverture .folio3, html.cv-on #ouverture .oi3, html.cv-on #ouverture .cue3 { display: none !important; }
.cv button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.cvx-rings { position: absolute; inset: 0; }
.cvx-rw { position: absolute; left: 50%; top: 50%; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2); pointer-events: none; }
.cvx-ring { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(var(--a, 0deg)); will-change: transform; }
/* sortie : sans fondu. Le cœur puis chaque anneau sont balayés comme l'aiguille d'un cadran, du centre vers les bords,
   dans le sens où ils tournaient ; un anneau disparaît entièrement avant que le suivant ait fini. */
@property --sw { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
/* chaque anneau finit entièrement transparent puis caché : il ne reste aucun fil à midi derrière lui */
@keyframes cvSweep { from { --sw: 360deg; visibility: visible; } to { --sw: -6deg; visibility: hidden; } }
.cv.out .cvx-rw, .cv.out .cvx-core, .cv.out .cvx-mid {
  /* 2° de recouvrement : le début et la fin du dégradé conique ont la même couleur, pas de fil d'un pixel à midi */
  -webkit-mask: conic-gradient(from 0deg, #000 calc(var(--sw) + 2deg), #0000 0); mask: conic-gradient(from 0deg, #000 calc(var(--sw) + 2deg), #0000 0);
  animation: cvSweep 560ms cubic-bezier(.6, 0, .3, 1) both; animation-delay: calc(420ms + var(--i) * 110ms); }
.cv.out .cvx-rw:nth-child(2n+1) { -webkit-mask: conic-gradient(from 0deg, #0000 calc(358deg - var(--sw)), #000 0); mask: conic-gradient(from 0deg, #0000 calc(358deg - var(--sw)), #000 0); }
.cv.out .cvx-core, .cv.out .cvx-mid { --i: 0; animation-duration: 460ms; animation-delay: 0ms; }
.cvx-ring .bg { fill: var(--bg); }
.cvx-ring .fg { fill: var(--fg); }
.cvx-ring .fgo { fill: none; stroke: var(--fg); stroke-width: 1.3; }
.cvx-ring .fgs { fill: var(--fg); fill-opacity: .16; }
.cvx-ring .ln { fill: none; stroke: var(--fg); stroke-width: 1; }
.cvx-ring .ink { fill: none; stroke: #171717; stroke-width: 1.5; }
.cvx-ring .fgt { fill: var(--fg); font-family: var(--f-display); font-style: italic; letter-spacing: .01em; }
.cvx-ring .md1 { fill: var(--fg); }
.cvx-ring .md2 { fill: var(--bg); }
/* le cœur : un disque de papier pendant le chargement, puis la fenêtre s'ouvre sur l'ouverture peinte */
.cvx-core { position: absolute; left: 50%; top: 50%; width: calc(var(--r0) * 2); height: calc(var(--r0) * 2); margin: calc(var(--r0) * -1) 0 0 calc(var(--r0) * -1); border-radius: 50%; background: var(--paper); }
.cvx-mid { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: calc(var(--r0) * 1.5); display: grid; justify-items: center; gap: 6px; text-align: center; pointer-events: none; }
.cvx-k, .cvx-t { margin: 0; font: 600 10.5px/1.25 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.cvx-n { margin: 0; font: italic 400 clamp(76px, min(13vw, 20vh), 168px)/.86 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .cv * { transition-duration: .01s !important; animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ═════════ l'ouverture : la nef dessinée jusqu'à la fenêtre ═════════ */
.nave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; color: var(--ink); }
.nave path { vector-effect: non-scaling-stroke; }
.nv-tile { fill: none; stroke: currentColor; stroke-opacity: .2; stroke-width: .8; }
.nv-tile-b { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.nv-chap { stroke: var(--ink); stroke-width: 1; }
.nv-l { fill: none; stroke: currentColor; stroke-opacity: .42; stroke-width: 1; }
.nv-l2, .nv-l3 { stroke-opacity: .75; stroke-width: 1.4; }
.nv-star { fill: var(--gold, #F9CB40); stroke: var(--ink); stroke-width: .8; }
.nv-apse { fill: none; stroke: var(--ink); stroke-width: 2; }
.nave .nv-l, .nave .nv-apse, .nave .nv-tile { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.2, .8, .2, 1); }
.nave .nv-chap, .nave .nv-tile-b, .nave .nv-star { opacity: 0; transition: opacity 1.1s ease .7s; }
.nave.in .nv-l, .nave.in .nv-apse, .nave.in .nv-tile { stroke-dashoffset: 0; }
.nave.in .nv-chap, .nave.in .nv-tile-b, .nave.in .nv-star { opacity: 1; }
.nave.in .nv-tile-b { opacity: 1; }
.no3d .nave { display: 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; } }
