/* Laure Polin — maquette « Ardoise et poussière » */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --ardoise-0: #101317;
  --ardoise-1: #171b20;
  --ardoise-2: #20262d;
  --ardoise-3: #2c333b;
  --ardoise-4: #3c444e;
  --graphite: #8a929b;
  --craie: #ece8e0;
  --craie-2: #c8c3b9;
  --cuivre: #c98048;
  --cuivre-clair: #e3a676;
  --mica: #a7b8c7;
  --teinte: #171b20;

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-texte: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.375rem;
  --t-xl: 1.875rem;
  --t-2xl: clamp(2.25rem, 4.2vw, 3.5rem);
  --t-3xl: clamp(3rem, 7vw, 6rem);
  --t-geant: clamp(4.2rem, 15vw, 15rem);

  --marge: clamp(16px, 4.5vw, 72px);
  --col: min(1440px, 100% - 2 * var(--marge));
  --rayon: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* en-tete : le logo officiel est vertical, l'en-tete se resserre une fois la page defilee */
  --logo-h: 84px;
  --logo-h-compact: 64px;
  --header-h: 104px;
  --header-h-compact: 80px;
}
@media (max-width: 940px) {
  :root { --logo-h: 72px; --logo-h-compact: 60px; --header-h: 88px; --header-h-compact: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--ardoise-1);
  color: var(--craie);
  font-family: var(--f-texte);
  font-size: var(--t-m);
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--cuivre); color: var(--ardoise-0); }
:focus-visible { outline: 2px solid var(--cuivre-clair); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evite { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--craie); color: var(--ardoise-0); padding: 10px 14px; }
.evite:focus { top: 12px; }

/* grain de poussiere global */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .9 0 0 0 0 .9 0 0 0 0 .9 0 0 0 1.6 -.45'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- typographie ---------- */
.display { font-family: var(--f-display); font-weight: 300; line-height: .86; letter-spacing: -.02em; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h2 { font-size: var(--t-3xl); line-height: .95; }
h3 { font-size: var(--t-xl); line-height: 1.1; }
p { margin: 0 0 1em; }
.lead { font-family: var(--f-display); font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.3; font-weight: 400; max-width: 34ch; }
.petit { font-size: var(--t-s); color: var(--craie-2); }
.mini { font-size: var(--t-xs); color: var(--graphite); }
.citation { font-family: var(--f-display); font-style: italic; font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.35; }
.chiffres { font-variant-numeric: tabular-nums lining-nums; }
.a-completer { color: var(--cuivre-clair); font-style: italic; }
.a-completer::before { content: "◇ "; font-style: normal; }

/* ---------- liens et boutons ---------- */
.lien { position: relative; display: inline-block; padding-bottom: 2px; }
.lien::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease); }
.lien:hover::after, .lien:focus-visible::after { transform: scaleX(1); }
.bouton {
  --c: var(--craie);
  position: relative; display: inline-flex; align-items: center; gap: .65em;
  padding: .95em 1.5em; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  color: var(--c); font-size: var(--t-s); font-weight: 500; letter-spacing: .01em; border-radius: 999px;
  overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s;
  will-change: transform;
}
.bouton::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease); }
.bouton:hover, .bouton:focus-visible { color: var(--ardoise-0); border-color: var(--c); }
.bouton:hover::before, .bouton:focus-visible::before { transform: translateY(0); }
.bouton--plein { background: var(--craie); color: var(--ardoise-0); border-color: var(--craie); }
.bouton--plein::before { background: var(--cuivre); }
.bouton--plein:hover, .bouton--plein:focus-visible { color: var(--ardoise-0); border-color: var(--cuivre); }
.bouton--cuivre { --c: var(--cuivre-clair); }
.bouton[disabled] { opacity: .45; pointer-events: none; }
.bouton .ico { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- en-tete ---------- */
.entete {
  --h-entete: var(--header-h);
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--h-entete);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--marge);
  transition: transform .6s var(--ease), background .4s, height .5s var(--ease);
}
.entete.est-cache { transform: translateY(-100%); }
.entete.est-plein { --h-entete: var(--header-h-compact); background: color-mix(in srgb, var(--ardoise-0) 78%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
/* logo officiel : jamais deforme (hauteur seule imposee), jamais rogne */
.marque { display: flex; align-items: center; flex: none; border-radius: 4px; }
.marque-logo { display: block; height: var(--logo-h); width: auto; max-width: none; transition: height .5s var(--ease); }
.entete.est-plein .marque-logo { height: var(--logo-h-compact); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); font-size: var(--t-s); }
.nav a { color: var(--craie-2); transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--craie); }
.outils { display: flex; align-items: center; gap: 6px; }
.outil {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; font-size: var(--t-xs); color: var(--craie-2);
  border: 1px solid transparent; transition: border-color .3s, color .3s;
}
.outil:hover, .outil[aria-pressed="true"] { color: var(--craie); border-color: var(--ardoise-4); }
.outil svg { width: 18px; height: 18px; }
.outil .pastille { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--cuivre); color: var(--ardoise-0); font-size: 11px; font-weight: 600; line-height: 17px; text-align: center; transform: scale(0); transition: transform .4s var(--ease); }
.outil .pastille.on { transform: scale(1); }
.nav .nav-contact { color: var(--craie); padding: 8px 16px; border: 1px solid color-mix(in srgb, var(--craie) 40%, transparent); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.nav .nav-contact:hover, .nav .nav-contact:focus-visible { background: var(--craie); color: var(--ardoise-0); border-color: var(--craie); }
.langues { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; font-size: var(--t-xs); color: var(--graphite); }
.langues button { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; color: var(--craie-2); letter-spacing: .06em; transition: color .3s, background .3s; }
.langues button:hover { color: var(--craie); }
.langues button[aria-pressed="true"] { color: var(--craie); background: color-mix(in srgb, var(--craie) 12%, transparent); }
.langues--menu { margin-top: 26px; font-size: var(--t-s); }
.langues--menu button { min-width: 48px; height: 44px; font-size: var(--t-s); }
.menu-bouton { display: none; }
@media (max-width: 940px) {
  .nav { display: none; }
  .menu-bouton { display: inline-flex; }
  .outil .lib { display: none; }
}
.menu-plein {
  position: fixed; inset: 0; z-index: 70; background: var(--ardoise-0); display: flex; flex-direction: column; justify-content: center;
  padding: var(--marge); gap: 8px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-plein.ouvert { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease); }
.menu-plein a { font-family: var(--f-display); font-size: clamp(2.4rem, 11vw, 4.5rem); line-height: 1.05; }
.menu-plein .fermer { position: absolute; top: calc((var(--header-h) - 44px) / 2); right: var(--marge); }
.menu-plein .menu-logo { position: absolute; top: calc((var(--header-h) - var(--logo-h)) / 2); left: var(--marge); line-height: 0; }
.menu-plein .menu-titre { margin: 0 0 4px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- barre d'empreinte (progression) ---------- */
.empreinte-progression { position: fixed; left: 0; right: 0; bottom: 0; height: 7px; z-index: 55; pointer-events: none; }
.empreinte-progression .trace { height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background:
    repeating-linear-gradient(115deg, color-mix(in srgb, var(--craie) 55%, transparent) 0 3px, transparent 3px 9px),
    linear-gradient(var(--ardoise-3), var(--ardoise-3));
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
          mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }

/* ---------- ouverture ---------- */
.ouverture { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.ouverture .feuillet { position: absolute; left: 0; right: 0; background: var(--ardoise-0) url("../img/ambiance/g-ardoise-relief-16x9.webp") center / cover; will-change: transform; }
.ouverture .feuillet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,19,23,.55), rgba(16,19,23,.85)); }
.ouverture .scene { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.ouverture .signature { width: min(560px, 76vw); display: grid; justify-items: center; gap: 22px; }
.ouverture .trait { width: min(420px, 70vw); height: 14px; overflow: visible; }
.ouverture .trait path { fill: none; stroke: var(--cuivre-clair); stroke-width: 2; stroke-linecap: round; filter: url(#craie); vector-effect: non-scaling-stroke; }
.ouverture .logo-ouverture { width: min(260px, 46vw); height: auto; }
.ouverture .compteur { position: absolute; left: var(--marge); bottom: 26px; font-size: var(--t-xs); color: var(--graphite); }
.ouverture canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
html.deja-vu .ouverture { display: none; }

/* transition de page en feuillets */
.rideau { position: fixed; inset: 0; z-index: 110; pointer-events: none; display: grid; grid-template-rows: repeat(6, 1fr); }
.rideau i { display: block; background: var(--ardoise-0); transform: scaleX(0); transform-origin: left; border-bottom: 1px solid var(--ardoise-3); }

/* ---------- sections communes ---------- */
main { display: block; }
.section { position: relative; padding: clamp(96px, 14vh, 180px) var(--marge); }
.contenu { width: var(--col); margin: 0 auto; }
.rang { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.fond-image { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.fond-image img, .fond-image picture { width: 100%; height: 120%; object-fit: cover; position: absolute; top: -10%; left: 0; }
.fond-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ardoise-1) 0%, transparent 25%, transparent 70%, var(--ardoise-1) 100%); }
.au-dessus { position: relative; z-index: 2; }
.intertitre { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.intertitre p { max-width: 42ch; color: var(--craie-2); margin: 0; }

/* clivage : copies decalees d'un titre */
.clive { position: relative; display: inline-block; }
.clive .strate { display: block; }
.clive .strate + .strate { position: absolute; inset: 0; }
.clive .fente { position: absolute; left: -2%; right: -2%; height: 1px; background: linear-gradient(90deg, transparent, var(--cuivre-clair), transparent); opacity: 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: calc(var(--header-h) + 24px) var(--marge) clamp(28px, 5vh, 56px); overflow: hidden; isolation: isolate; }
.hero .gl, .hero .gl-repli { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero .gl-repli { background: var(--ardoise-0) url("../img/ambiance/g-ardoise-relief-16x9.webp") center / cover; }
.hero .gl-repli::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 70% 45%, transparent, rgba(16,19,23,.75)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--ardoise-1)); }
.hero-grille { width: var(--col); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 24px; }
.hero-titre { font-size: var(--t-geant); }
.hero-titre .ligne { display: block; }
.hero-titre .ligne:nth-child(2) { padding-left: .55em; }
.hero-titre .ligne > span { display: inline-block; }
.hero-texte { display: grid; gap: 22px; margin-top: clamp(24px, 4vh, 44px); max-width: 44ch; }
.hero-texte p { margin: 0; color: var(--craie-2); font-size: var(--t-m); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-oeuvre { --ratio: .7; --fond-cadre: #e6e6e4; --h-cadre: min(64svh, 700px); position: relative; align-self: stretch; display: grid; align-content: end; justify-items: center; gap: 16px; min-height: min(78svh, 820px); }
.hero-cadre { position: relative; height: var(--h-cadre); aspect-ratio: var(--ratio); max-width: 100%; background: var(--fond-cadre); box-shadow: 0 50px 70px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(236,232,224,.08); overflow: hidden; isolation: isolate; }
.hero-diapo { position: absolute; inset: 0; display: block; visibility: hidden; z-index: 0; }
.hero-diapo.est-active { visibility: visible; }
.hero-diapo img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 60%; }
.hero-fente { position: absolute; left: 0; right: 0; top: 100%; height: 2px; z-index: 3; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, var(--cuivre-clair), transparent); box-shadow: 0 0 18px rgba(227,166,118,.6); }
.hero-pied { width: calc(var(--h-cadre) * var(--ratio)); max-width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; }
.hero-pied .cartel { min-height: 3.6em; }
.hero-points { display: flex; align-items: center; gap: 4px; flex: none; }
.hero-point { width: 24px; height: 28px; display: grid; align-items: center; }
.hero-point { position: relative; }
.hero-point::before { content: ""; position: absolute; left: 0; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: var(--ardoise-4); }
.hero-point i { position: absolute; left: 0; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: var(--craie); transform: scaleX(0); transform-origin: left; }
.hero-point[aria-current="true"]::before { background: color-mix(in srgb, var(--craie) 30%, var(--ardoise-4)); }
.hero-pause { width: 30px; height: 30px; display: grid; place-items: center; color: var(--craie-2); border-radius: 50%; margin-right: 4px; transition: color .3s; }
.hero-pause:hover { color: var(--craie); }
.hero-pause svg { width: 14px; height: 14px; }
.hero-pause .l { display: none; }
.hero-pause[aria-pressed="true"] .l { display: block; }
.hero-pause[aria-pressed="true"] .p { display: none; }
.cartel { font-size: var(--t-xs); color: var(--craie-2); line-height: 1.5; }
.cartel strong { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; color: var(--craie); line-height: 1.15; margin-bottom: 2px; }
.cartel .prix { color: var(--cuivre-clair); font-variant-numeric: tabular-nums; }
.indice { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; padding: 8px 14px 4px; font-size: var(--t-xs); color: var(--craie-2); z-index: 4; border-radius: 999px; transition: color .3s; }
.indice:hover, .indice:focus-visible { color: var(--craie); }
.indice:hover i { background: linear-gradient(var(--cuivre-clair), transparent); }
.indice i { width: 1px; height: 46px; background: linear-gradient(var(--craie), transparent); transform-origin: top; animation: indice 2.4s var(--ease) infinite; }
@keyframes indice { 0% { transform: scaleY(0) } 50% { transform: scaleY(1) } 100% { transform: scaleY(1); opacity: 0 } }
@media (max-width: 860px) {
  .hero-grille { grid-template-columns: 1fr; }
  .hero-oeuvre { order: -1; min-height: 0; gap: 12px; }
  .hero-oeuvre { --h-cadre: 46svh; }
  .hero-titre .ligne:nth-child(2) { padding-left: .3em; }
  .indice { display: none; }
}

/* poussiere (canvas superpose) */
.poussiere-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

/* ---------- manifeste ---------- */
.manifeste { overflow: clip; }
.manifeste .rang { align-items: start; }
/* portrait collant : borne a la hauteur de l'ecran sous l'en-tete, legende comprise */
.manifeste .portrait { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; max-height: calc(100svh - var(--header-h) - 48px); }
.manifeste .portrait .cadre { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ardoise-2); flex: 0 1 auto; min-height: 0; }
.manifeste .portrait img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 62% 50%; }
.manifeste .portrait figcaption { margin-top: 12px; }
.manifeste .texte { grid-column: 7 / span 6; display: grid; gap: clamp(28px, 4vw, 48px); padding-top: 4vh; }
.manifeste .texte p { font-family: var(--f-display); font-size: clamp(1.4rem, 2.3vw, 2.15rem); line-height: 1.32; margin: 0; }
.manifeste .texte p .mot { opacity: .24; transition: opacity .2s; }
.manifeste .gestes { display: flex; flex-wrap: wrap; gap: .2em .5em; font-family: var(--f-display); font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1; font-style: italic; }
.geste { display: inline-block; position: relative; }
.geste .eclat { display: inline-block; }
@media (max-width: 860px) {
  .manifeste .portrait { grid-column: 1 / -1; position: relative; top: 0; max-height: none; }
  .manifeste .texte { grid-column: 1 / -1; }
}

/* ---------- trois matieres ---------- */
.matieres { padding: 0; position: relative; }
.matieres .piste { position: relative; height: 100svh; overflow: hidden; }
.matiere { position: absolute; inset: 0; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.matiere .fond-image::after { background: radial-gradient(80% 90% at 30% 50%, rgba(16,19,23,.35), rgba(16,19,23,.9)); }
.matiere .contenu { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 32px; align-items: center; position: relative; z-index: 2; }
.matiere .mot-matiere { font-family: var(--f-display); font-weight: 300; font-size: clamp(4rem, 11vw, 11rem); line-height: .8; letter-spacing: -.02em; }
.matiere .mot-matiere svg { width: 100%; height: auto; overflow: visible; }
.matiere .infos { display: grid; gap: 16px; margin-top: 24px; max-width: 40ch; }
.matiere .infos p { margin: 0; color: var(--craie-2); }
.matiere .nombre { font-family: var(--f-display); font-size: var(--t-2xl); }
.trio { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 32px); height: min(62svh, 620px); }
.trio a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; flex: 1 1 0; min-width: 0; }
.trio img { max-height: calc(100% - 4.4em); width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 30px 40px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(236,232,224,.06); transition: transform .8s var(--ease); }
.trio a:hover img { transform: translateY(-10px); }
.trio .cartel { margin-top: 12px; text-align: center; min-height: 3.6em; }
.matiere[data-matiere="bronze"] { --accent: #d39a5a; }
.matiere[data-matiere="pneu"] { --accent: #9aa1a8; }
.matiere[data-matiere="ardoise"] { --accent: var(--mica); }
.matiere .compte { color: var(--accent); }
.roue { position: absolute; z-index: 3; width: clamp(70px, 9vw, 120px); aspect-ratio: 1; left: 0; top: 0; pointer-events: none; }
@media (max-width: 860px) {
  .matieres .piste { height: auto; }
  .matiere { position: relative; inset: auto; min-height: 100svh; padding: 110px var(--marge) 80px; }
  .matiere .contenu { grid-template-columns: 1fr; width: 100%; }
  .trio { height: 46svh; }
}

/* ---------- salle horizontale ---------- */
.salle-h { position: relative; overflow: hidden; background: var(--teinte); transition: background 1.2s var(--ease); }
.salle-h .tete { padding: clamp(96px, 14vh, 160px) var(--marge) 0; }
@media (min-width: 861px) {
  html:not(.calme) .salle-h { height: 100svh; display: flex; flex-direction: column; }
  html:not(.calme) .salle-h .tete { padding-top: calc(var(--header-h) + 28px); flex: none; }
  html:not(.calme) .salle-h .tete .intertitre { margin-bottom: 0; }
  html:not(.calme) .salle-h .piste-scroll { flex: 1; min-height: 0; display: flex; }
  html:not(.calme) .salle-h .piste-h { height: 100%; padding-top: 20px; padding-bottom: 92px; }
}
.piste-h { display: flex; align-items: flex-end; gap: clamp(40px, 7vw, 120px); padding: 40px var(--marge) clamp(70px, 10vh, 120px); width: max-content; }
.piste-h .fin { flex: none; width: min(420px, 70vw); align-self: center; display: grid; gap: 18px; }
.oeuvre-carte { position: relative; flex: none; display: grid; justify-items: center; align-content: end; gap: 0; }
.oeuvre-carte .socle-zone { position: relative; display: grid; justify-items: center; align-items: end; }
.oeuvre-carte img.oeuvre { width: auto; object-fit: contain; filter: drop-shadow(0 28px 26px rgba(0,0,0,.5)); transition: transform 1s var(--ease); transform-origin: 50% 100%; }
.oeuvre-carte:hover img.oeuvre { transform: translateY(-8px) scale(1.015); }
.oeuvre-carte .socle { width: 100%; min-width: 120px; height: 14px; background: linear-gradient(180deg, var(--ardoise-4), var(--ardoise-2)); box-shadow: 0 18px 30px -10px rgba(0,0,0,.6); }
.oeuvre-carte .cartel { width: 100%; margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.oeuvre-carte .cartel > div { min-width: 0; }
.oeuvre-carte .photo-cadre { background: var(--ardoise-2); padding: 10px; box-shadow: 0 30px 40px -18px rgba(0,0,0,.6); }
.oeuvre-carte .photo-cadre img { width: auto; object-fit: contain; }
.etat { display: inline-block; font-size: max(12px, .6875rem); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--ardoise-4); color: var(--craie-2); white-space: nowrap; }
.etat--dispo { border-color: color-mix(in srgb, var(--cuivre) 60%, transparent); color: var(--cuivre-clair); }
.ajout { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ardoise-4); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.ajout svg { width: 16px; height: 16px; }
.ajout:hover { background: var(--craie); color: var(--ardoise-0); border-color: var(--craie); }
.ajout.dans-panier { background: var(--cuivre); border-color: var(--cuivre); color: var(--ardoise-0); }
@media (max-width: 860px) {
  .salle-h .piste-scroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .salle-h .piste-scroll::-webkit-scrollbar { display: none; }
  .piste-h .oeuvre-carte { scroll-snap-align: center; }
}

/* ---------- petits formats ---------- */
.grille-petits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.carte-petit { position: relative; display: grid; grid-template-rows: auto 1fr; background: linear-gradient(160deg, var(--ardoise-2), var(--ardoise-1)); border: 1px solid var(--ardoise-3); border-radius: var(--rayon); transform-style: preserve-3d; transition: border-color .4s; }
.carte-petit:hover { border-color: var(--ardoise-4); }
.carte-petit .vitrine { position: relative; display: block; aspect-ratio: 4 / 5; transform: translateZ(40px); }
.carte-petit .vitrine img, .carte-petit .vitrine .oeuvre-absente { position: absolute; left: 16px; top: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; object-position: 50% 50%; background: var(--fond, transparent); box-shadow: 0 18px 30px -16px rgba(0,0,0,.7); }
.carte-petit .reflet { position: absolute; inset: 0; background: radial-gradient(circle at var(--rx, 50%) var(--ry, 0%), rgba(236,232,224,.12), transparent 55%); pointer-events: none; opacity: 0; transition: opacity .4s; }
.carte-petit:hover .reflet { opacity: 1; }
.carte-petit .cartel { padding: 14px 16px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: end; border-top: 1px solid var(--ardoise-3); }

/* ---------- collection privee ---------- */
.bandeau { overflow: hidden; padding: 10px 0; }
.bandeau + .bandeau { margin-top: clamp(14px, 2vw, 26px); }
.bandeau .rail { display: flex; gap: clamp(14px, 2vw, 26px); width: max-content; will-change: transform; }
.vignette { position: relative; flex: none; height: clamp(200px, 26vw, 340px); background: var(--ardoise-2); overflow: hidden; }
.vignette img { height: 100%; width: auto; transition: transform 1.1s var(--ease); }
.vignette:hover img { transform: none; }
.vignette .legende { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 10px; background: linear-gradient(transparent, rgba(16,19,23,.85)); font-size: var(--t-xs); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.vignette:hover .legende, .vignette:focus-visible .legende { opacity: 1; transform: none; }

/* ---------- livre ---------- */
.livre .rang { align-items: center; }
.livre .scene-livre { grid-column: 1 / span 6; perspective: 1800px; display: grid; place-items: center; min-height: 70svh; }
.livre-3d { position: relative; width: min(380px, 70vw); aspect-ratio: 2204 / 2498; transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(8deg); }
.livre-3d .page, .livre-3d .couv { position: absolute; inset: 0; backface-visibility: hidden; transform-origin: left center; box-shadow: 0 40px 60px -20px rgba(0,0,0,.7); }
.livre-3d .couv { transform-style: preserve-3d; z-index: 3; }
.livre-3d .couv img, .livre-3d .page img { width: 100%; height: 100%; object-fit: cover; }
.livre-3d .page img { object-fit: contain; background: #ece8e0; }

.exposition-vedette { display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,5vw,80px); padding:clamp(28px,4vw,60px); margin:20px 0 64px; border:1px solid var(--ardoise-3); background:linear-gradient(135deg,rgba(162,113,77,.12),rgba(255,255,255,.015)); }
.exposition-vedette .mini { color:var(--craie-2); letter-spacing:.12em; text-transform:uppercase; margin:0 0 22px; }
.exposition-vedette h3 { font-family:var(--f-display); font-weight:400; font-size:clamp(2.8rem,5vw,5rem); line-height:1; margin:0 0 24px; }
.exposition-vedette-infos p { margin:0 0 18px; }
.exposition-vedette .exposition-dates { font-family:var(--f-display); font-size:clamp(1.5rem,2.3vw,2rem); line-height:1.2; color:var(--craie-2); }
@media(max-width:700px) { .exposition-vedette { grid-template-columns:1fr; gap:22px; padding:26px 22px; margin-bottom:40px; } }
.livre-3d .couv .dos-couv { position: absolute; inset: 0; transform: rotateY(180deg); backface-visibility: hidden; background: #e9e5dc; }
.livre-3d .couv .dos-couv img { object-fit: cover; }
.livre-3d .page { background: #ece8e0; }
.livre-3d .tranche { position: absolute; top: 1%; bottom: 1%; right: -14px; width: 14px; background: repeating-linear-gradient(90deg, #ddd8ce 0 1px, #f3efe7 1px 3px); transform: rotateY(90deg); transform-origin: left; }
.livre .infos { grid-column: 8 / span 5; display: grid; gap: 22px; }
.livre .credits { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: var(--t-s); color: var(--craie-2); margin: 0; }
.livre .credits dt { color: var(--graphite); }
.livre .credits dd { margin: 0; }
@media (max-width: 860px) { .livre .scene-livre, .livre .infos { grid-column: 1 / -1; } .livre .scene-livre { min-height: 56svh; } }

/* ---------- ou voir ---------- */
.ou-voir .rang { align-items: start; }
.ou-voir .carte-fr { grid-column: 1 / span 6; position: relative; }
.ou-voir .carte-fr svg { width: 100%; height: auto; overflow: visible; }
.carte-fr .pays { fill: color-mix(in srgb, var(--ardoise-2) 70%, transparent); stroke: var(--craie-2); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.carte-fr .trajet { fill: none; stroke: var(--cuivre-clair); stroke-width: 2; stroke-dasharray: 4 7; vector-effect: non-scaling-stroke; }
.carte-fr .point { fill: var(--cuivre); }
.carte-fr .halo { fill: none; stroke: var(--cuivre); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: halo 2.6s var(--ease) infinite; }
@keyframes halo { 0% { transform: scale(.4); opacity: 1 } 100% { transform: scale(2.6); opacity: 0 } }
.carte-fr .etiquette { fill: var(--craie); font: 500 20px var(--f-texte); }
.carte-fr .etiquette.discret { fill: var(--graphite); }
.ou-voir .lieux { grid-column: 8 / span 5; display: grid; gap: 0; }
.lieu { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 22px 0; border-top: 1px solid var(--ardoise-3); }
.lieu:last-child { border-bottom: 1px solid var(--ardoise-3); }
.lieu h3 { font-size: 1.6rem; }
.lieu p { margin: 0; color: var(--craie-2); font-size: var(--t-s); grid-column: 1 / -1; }
.lieu .passe { color: var(--graphite); font-size: var(--t-xs); align-self: center; }
.affiche { margin-top: 28px; max-width: 420px; }
.affiche img { width: 100%; border: 1px solid var(--ardoise-3); }
@media (max-width: 860px) { .ou-voir .carte-fr, .ou-voir .lieux { grid-column: 1 / -1; } }

/* ---------- atelier / contact ---------- */
.atelier .rang { align-items: start; }
.atelier .gauche { grid-column: 1 / span 5; display: grid; gap: 28px; }
.atelier .droite { grid-column: 7 / span 6; }
.coord { display: grid; gap: 4px; font-size: var(--t-m); }
.coord a { width: fit-content; }
.coord .grand { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; }
.ouvert { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-s); color: var(--craie-2); }
.ouvert i { width: 9px; height: 9px; border-radius: 50%; background: var(--graphite); box-shadow: 0 0 0 0 transparent; }
.ouvert.oui i { background: #8fc59a; box-shadow: 0 0 0 6px rgba(143,197,154,.15); }
.plan { position: relative; border: 1px solid var(--ardoise-3); background: var(--ardoise-0); }
.plan svg { width: 100%; height: auto; }
.plan .commune { fill: var(--ardoise-2); stroke: var(--ardoise-4); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .4s; }
.plan .commune.ici { fill: color-mix(in srgb, var(--cuivre) 25%, var(--ardoise-2)); stroke: var(--cuivre-clair); }
.plan .paris { fill: var(--ardoise-1); stroke: var(--craie-2); stroke-dasharray: 3 4; }
.plan text { fill: var(--graphite); font: 500 7px var(--f-texte); text-anchor: middle; }
.plan text.ici { fill: var(--craie); font-size: 9px; }
.formulaire { display: grid; gap: 18px; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: var(--t-xs); color: var(--craie-2); }
.champ input, .champ select, .champ textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ardoise-4); padding: 10px 0; font-size: var(--t-m); color: var(--craie); border-radius: 0; transition: border-color .3s; }
.champ select { appearance: none; background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23c8c3b9' stroke-width='1.4'/></svg>") right 4px center no-repeat; padding-right: 24px; }
.champ select option { background: var(--ardoise-1); }
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--cuivre-clair); box-shadow: 0 1px 0 var(--cuivre-clair); }
.choix { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choix legend { font-size: var(--t-xs); color: var(--craie-2); margin-bottom: 8px; }
.choix label { position: relative; }
.choix input { position: absolute; opacity: 0; inset: 0; }
.choix span { display: inline-block; padding: 8px 14px; border: 1px solid var(--ardoise-4); border-radius: 999px; font-size: var(--t-s); color: var(--craie-2); transition: all .3s; }
.choix input:checked + span { background: var(--craie); color: var(--ardoise-0); border-color: var(--craie); }
.choix input:focus-visible + span { outline: 2px solid var(--cuivre-clair); outline-offset: 2px; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.confirmation { padding: 18px 20px; border: 1px solid var(--cuivre); color: var(--craie); background: color-mix(in srgb, var(--cuivre) 10%, transparent); }
@media (max-width: 860px) { .atelier .gauche, .atelier .droite { grid-column: 1 / -1; } .deux { grid-template-columns: 1fr; } }

/* ---------- pied de page ---------- */
.pied { position: relative; padding: clamp(80px, 12vh, 140px) var(--marge) 48px; border-top: 1px solid var(--ardoise-3); overflow: hidden; }
.pied .grand-nom { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.6rem, 16vw, 16rem); line-height: .8; letter-spacing: -.02em; white-space: nowrap; color: var(--ardoise-3); }
.pied .grand-nom svg { width: 100%; height: auto; overflow: visible; }
.pied .grand-nom path { fill: transparent; stroke: var(--craie-2); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.pied .bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 48px; font-size: var(--t-s); color: var(--craie-2); }
.pied .bas nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; align-content: flex-start; }
.pied .note { font-size: var(--t-xs); color: var(--graphite); margin-top: 28px; max-width: 80ch; }

/* ---------- panier ---------- */
.voile { position: fixed; inset: 0; z-index: 79; background: rgba(10,12,15,.6); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.voile.on { opacity: 1; visibility: visible; transition: opacity .5s; }
.panier { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100%); background: var(--ardoise-0); border-left: 1px solid var(--ardoise-3); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(102%); transition: transform .7s var(--ease); }
.panier.ouvert { transform: none; }
.panier header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--ardoise-3); }
.panier header h2 { font-size: 1.8rem; }
.panier .liste { overflow: auto; padding: 8px 24px; overscroll-behavior: contain; }
.ligne-panier { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ardoise-3); }
.ligne-panier img { width: 64px; height: 76px; object-fit: contain; background: var(--ardoise-2); }
.ligne-panier .t { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.1; }
.ligne-panier button { font-size: var(--t-xs); color: var(--graphite); }
.ligne-panier button:hover { color: var(--craie); }
.panier .vide { padding: 40px 0; color: var(--craie-2); display: grid; gap: 16px; }
.panier footer { padding: 20px 24px 28px; border-top: 1px solid var(--ardoise-3); display: grid; gap: 14px; }
.total { display: flex; justify-content: space-between; font-size: var(--t-m); }
.total strong { font-family: var(--f-display); font-size: 1.6rem; font-weight: 500; }
.moyens { display: flex; gap: 8px; flex-wrap: wrap; }
.moyens span { font-size: 11px; padding: 4px 8px; border: 1px dashed var(--ardoise-4); color: var(--craie-2); }

/* notifications */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; transform: translate(-50%, calc(100% + 48px)); visibility: hidden; background: var(--craie); color: var(--ardoise-0); padding: 12px 18px; border-radius: 999px; font-size: var(--t-s); font-weight: 500; transition: transform .6s var(--ease); max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* vol vers le panier */
.vol { position: fixed; z-index: 140; pointer-events: none; width: 60px; height: 60px; object-fit: contain; }

/* ---------- page salle ---------- */
/* entree de salle : plus de hauteur forcee (92svh poussait le titre tout en bas des salles a titre court) ;
   le contenu suit l'en-tete avec le meme ecart compact pour toutes les salles */
.salle-entree { position: relative; display: grid; align-content: start; padding: calc(var(--header-h) + clamp(16px, 5vh, 64px)) var(--marge) clamp(40px, 7vh, 72px); overflow: hidden; isolation: isolate; }
.salle-entree .fond-image { z-index: -1; }
.salle-entree .fond-image::after { background: linear-gradient(180deg, rgba(23,27,32,.4), rgba(23,27,32,.6) 50%, var(--ardoise-1)); }
/* fil d'Ariane : liens, separateurs et page courante sur la meme ligne mediane ; passe proprement sur deux lignes si besoin */
.fil { font-size: var(--t-xs); line-height: 1.45; color: var(--graphite); display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; margin: 0 0 clamp(8px, 1.5vh, 16px); }
.fil > * { min-width: 0; }
.fil a { position: relative; padding: 4px 0; }
.fil a::before { content: ""; position: absolute; inset: -8px -4px; }
.fil [aria-current] { color: var(--craie-2); overflow-wrap: anywhere; }
.fil a:hover { color: var(--craie); }
.salle-entree .titre-salle { font-size: clamp(3.2rem, 11vw, 11.5rem); text-wrap: balance; }
.salle-entree .bas { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-top: 28px; }
.salle-entree .bas p { max-width: 52ch; color: var(--craie-2); margin: 0; }
.salle-entree .compte-grand { font-family: var(--f-display); font-size: var(--t-2xl); line-height: 1; text-align: right; }
.salle-entree .compte-grand small { display: block; font-family: var(--f-texte); font-size: var(--t-xs); color: var(--graphite); }
.taille-directe { padding-top: clamp(80px, 10vh, 120px); }
.taille-directe .rang { align-items: center; }
.taille-directe figure { grid-column: 1 / span 5; margin: 0; }
.taille-directe figure img { width: 100%; height: auto; max-height: 78svh; object-fit: contain; object-position: left center; }
.taille-directe .texte { grid-column: 7 / span 6; display: grid; gap: 18px; }
@media (max-width: 860px) { .taille-directe figure, .taille-directe .texte { grid-column: 1 / -1; } }
.barre-filtres { position: sticky; top: 0; z-index: 30; padding: 14px var(--marge); background: color-mix(in srgb, var(--ardoise-1) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--ardoise-3); border-bottom: 1px solid var(--ardoise-3); }
.barre-filtres .contenu { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filtre { padding: 7px 13px; border: 1px solid var(--ardoise-4); border-radius: 999px; font-size: var(--t-xs); color: var(--craie-2); transition: background-color .3s, color .3s, border-color .3s; }
.filtre:hover { border-color: var(--craie-2); color: var(--craie); }
.filtre[aria-pressed="true"] { background: var(--craie); color: var(--ardoise-0); border-color: var(--craie); }
.filtres .sep { width: 1px; height: 22px; background: var(--ardoise-3); margin: 0 4px; }
.vues { display: flex; gap: 4px; align-items: center; }
.salle-zone { position: relative; }
.salle-zone .vide-filtres { padding: 80px var(--marge); text-align: center; color: var(--craie-2); display: grid; gap: 16px; justify-items: center; }
.grille-oeuvres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 28px); padding: 56px var(--marge) 120px; width: 100%; max-width: 1600px; margin: 0 auto; }
.grille-oeuvres .oeuvre-carte .socle-zone { height: 320px; width: 100%; }
.grille-oeuvres .oeuvre-carte img.oeuvre { max-height: 100%; max-width: 100%; }
.autres-salles .rang > a { grid-column: span 4; }
.carte-salle { position: relative; display: grid; align-content: end; min-height: 380px; padding: 22px; overflow: hidden; background: var(--ardoise-2); border: 1px solid var(--ardoise-3); isolation: isolate; transform-style: preserve-3d; }
.carte-salle .fond-image { z-index: -1; }
.carte-salle .fond-image::after { background: linear-gradient(180deg, rgba(23,27,32,.2), rgba(23,27,32,.9)); }
.carte-salle img.oeuvre { position: absolute; right: 8%; bottom: 76px; height: 58%; width: auto; max-width: 60%; object-fit: contain; padding: 6px; background: var(--ardoise-2); box-shadow: 0 24px 34px -14px rgba(0,0,0,.7); transition: transform .9s var(--ease); }
.carte-salle:hover img.oeuvre { transform: translateY(-10px); }
.carte-salle h3 { font-size: 2.2rem; }
@media (max-width: 860px) { .autres-salles .rang > a { grid-column: 1 / -1; } }

/* ---------- page oeuvre ---------- */
.fiche-entree { position: relative; min-height: 100svh; display: grid; padding: calc(var(--header-h) + 24px) var(--marge) 48px; overflow: hidden; isolation: isolate; }
.fiche-entree::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent 30%, rgba(16,19,23,.62) 70%), linear-gradient(180deg, transparent 70%, var(--ardoise-1)); }
@media (max-width: 860px) { .fiche-entree::before { background: linear-gradient(180deg, transparent 40%, rgba(16,19,23,.7) 70%, var(--ardoise-1)); } }
.fiche-grille { width: var(--col); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.fiche-scene { position: relative; height: min(76svh, 820px); display: grid; justify-items: center; align-items: end; }
.fiche-scene img.oeuvre { height: min(74svh, 800px); width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 40px 46px rgba(0,0,0,.6)); }
.fiche-infos { display: grid; gap: 22px; padding-bottom: 2vh; }
.fiche-infos h1 { font-size: clamp(2.6rem, 2rem + 4.6vw, 6.4rem); line-height: .92; font-weight: 300; text-wrap: balance; overflow-wrap: break-word; }
.fiche-infos .technique { color: var(--craie-2); margin: 0; }
.fiche-infos .prix-grand { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; }
.fiche-infos dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; margin: 0; font-size: var(--t-s); }
.fiche-infos dt { color: var(--graphite); }
.fiche-infos dd { margin: 0; }
@media (max-width: 860px) {
  .fiche-grille { grid-template-columns: 1fr; }
  .fiche-scene { height: 56svh; } .fiche-scene img.oeuvre { height: 56svh; }
}
.vues-oeuvre .rang { align-items: start; }
.visionneuse { grid-column: 1 / span 8; position: relative; background: var(--ardoise-0); transition: background-color .8s var(--ease); border: 1px solid var(--ardoise-3); height: min(80svh, 860px); width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: clamp(10px, 2vw, 24px); }
.visionneuse img.vue { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.visionneuse .loupe { position: absolute; width: 240px; height: 240px; border-radius: 50%; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .3s, transform .4s var(--ease); background-repeat: no-repeat; border: 1px solid rgba(236,232,224,.6); box-shadow: 0 20px 40px rgba(0,0,0,.6), inset 0 0 40px rgba(255,214,170,.18); }
.visionneuse.loupe-on .loupe { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.visionneuse .aide { position: absolute; left: 12px; bottom: 10px; font-size: var(--t-xs); color: var(--craie); background: rgba(16,19,23,.72); padding: 4px 10px; border-radius: 999px; }
.visionneuse .plein { position: absolute; right: 10px; top: 10px; }
.vignettes-vues { grid-column: 9 / span 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.vignettes-vues button { aspect-ratio: 1; background: var(--ardoise-2); border: 1px solid var(--ardoise-3); overflow: hidden; display: grid; place-items: center; transition: border-color .3s; }
.vignettes-vues button img { width: 100%; height: 100%; object-fit: contain; }
.vignettes-vues button[aria-current="true"] { border-color: var(--cuivre-clair); }
.vignettes-vues .compte { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--graphite); }
@media (max-width: 860px) { .visionneuse, .vignettes-vues { grid-column: 1 / -1; } .visionneuse { height: min(72svh, 125vw); } .vignettes-vues { grid-template-columns: repeat(4, 1fr); } }
.recit .rang { align-items: start; }
.recit .texte { grid-column: 1 / span 6; display: grid; gap: 18px; }
.recit .matieres-liste { grid-column: 8 / span 5; display: grid; gap: 14px; }
.pastille-matiere { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.pastille-matiere .ech { width: 84px; height: 84px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(236,232,224,.15), 0 10px 24px rgba(0,0,0,.4); }
@media (max-width: 860px) { .recit .texte, .recit .matieres-liste { grid-column: 1 / -1; } }
.echelle .scene-echelle { position: relative; height: min(72svh, 640px); border: 1px solid var(--ardoise-3); overflow: hidden; background: var(--ardoise-0); }
.echelle .sol { position: absolute; left: 0; right: 0; height: 1px; background: var(--ardoise-4); }
.echelle .elem { position: absolute; bottom: 0; transform-origin: 50% 100%; }
.echelle .silhouette svg { height: 100%; width: auto; fill: color-mix(in srgb, var(--craie) 20%, transparent); stroke: var(--craie-2); stroke-width: .6; }
.echelle .console { background: none; }
.echelle .console::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: linear-gradient(180deg, #a98563, #7a5a3f); border-radius: 1px; box-shadow: 0 10px 18px rgba(0,0,0,.35); }
.echelle .console::after { content: ""; position: absolute; left: 7%; right: 7%; top: 9px; bottom: 0; border-left: 7px solid #6b4f37; border-right: 7px solid #6b4f37; }
.echelle .elem-oeuvre img { height: 100%; width: auto; filter: drop-shadow(0 12px 14px rgba(0,0,0,.45)); }
.echelle .cote { position: absolute; display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--craie-2); white-space: nowrap; }
.echelle .cote i { width: 1px; background: var(--cuivre-clair); align-self: stretch; position: relative; }
.echelle .cote i::before, .echelle .cote i::after { content: ""; position: absolute; left: -4px; width: 9px; height: 1px; background: var(--cuivre-clair); }
.echelle .cote i::before { top: 0; } .echelle .cote i::after { bottom: 0; }
.echelle .commandes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; justify-content: space-between; }
.echelle .filtres { flex-wrap: wrap; overflow: visible; -webkit-mask: none; mask: none; }
.echelle .filtres:empty { display: none; }
.voisines .piste-voisines { display: flex; gap: clamp(20px, 3vw, 44px); overflow-x: auto; padding: 10px var(--marge) 30px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ardoise-4) transparent; }
.voisines .oeuvre-carte { scroll-snap-align: start; width: 240px; }
.voisines .oeuvre-carte .socle-zone { height: 280px; width: 100%; }
.voisines .oeuvre-carte img.oeuvre { max-height: 100%; max-width: 100%; }

/* plein ecran */
.plein-ecran { position: fixed; inset: 0; z-index: 150; background: rgba(10,12,15,.96); display: grid; place-items: center; padding: 40px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.plein-ecran.on { opacity: 1; visibility: visible; transition: opacity .4s; }
.plein-ecran img { max-width: calc(100vw - 80px); max-height: calc(100svh - 80px); width: auto; height: auto; object-fit: contain; }
.plein-ecran .fermer { position: absolute; top: 14px; right: 14px; }

/* page simple */
.page-simple { padding: calc(var(--header-h) + 60px) var(--marge) 100px; }
.page-simple .contenu { max-width: 760px; }
.page-simple h1 { font-size: var(--t-3xl); margin-bottom: 30px; }
.page-simple h2 { font-size: var(--t-xl); margin: 40px 0 12px; }

/* ---------- mode calme ---------- */
html.calme body::after { animation: none; }
html.calme .indice i, html.calme .halo { animation: none; }
html.calme .ouverture { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.oeuvre-absente { display: grid; place-items: center; align-content: center; gap: 8px; background: color-mix(in srgb, var(--ardoise-2) 60%, transparent); border: 1px dashed var(--ardoise-4); }
.oeuvre-absente svg { width: 40%; height: auto; max-height: 60%; }
.salle-zone { position: relative; }
.salle-zone > canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.salle-zone .piste-scroll { position: relative; z-index: 1; }
.salle-zone.salle-h { background: var(--teinte); }

.ligne-panier [data-moins], .ligne-panier [data-plus] { width: 24px; height: 24px; border: 1px solid var(--ardoise-4); border-radius: 50%; color: var(--craie); margin: 0 4px; line-height: 1; }
/* mode calme : tout reste accessible sans epinglage */
html.calme .matieres .piste { height: auto; overflow: visible; }
html.calme .matiere { position: relative; inset: auto; min-height: 100svh; }
html.calme .salle-h .piste-scroll, html.calme .salle-zone .piste-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ardoise-4) transparent; }
@media (max-width: 860px) { .salle-zone.salle-h .piste-scroll { overflow-x: auto; scroll-snap-type: x mandatory; } }

.acq-texte { grid-column: 1 / span 5; display: grid; gap: 16px; align-content: start; }
.acq-texte h2 { font-size: var(--t-2xl); }
.acq-texte .petit { max-width: 48ch; margin: 0; }
.acq-texte .mini { margin: 0; }
.acq-form { grid-column: 7 / span 6; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--ardoise-3); background: color-mix(in srgb, var(--ardoise-2) 55%, transparent); }
.acq-form h3 { font-size: 1.7rem; }
.suite-oeuvres { width: var(--col); margin: 0 auto clamp(40px, 8vh, 80px); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--ardoise-3); border-bottom: 1px solid var(--ardoise-3); }
.suite { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--craie-2); transition: color .3s; }
.suite:hover { color: var(--craie); }
.suite svg { width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease); }
.suite.prec:hover svg { transform: translateX(-4px); } .suite.suiv:hover svg { transform: translateX(4px); }
.suite img { width: 46px; height: 56px; object-fit: contain; flex: none; }
.suite span { display: grid; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.15; min-width: 0; }
.suite.suiv span { text-align: right; }
.suite small { font-family: var(--f-texte); font-size: max(12px, .6875rem); color: var(--graphite); }
@media (max-width: 860px) { .acq-form { grid-column: 1 / -1; } .suite-oeuvres > .mini { display: none; } .suite img { display: none; } .suite span { font-size: 1.05rem; } }
@media (max-width: 860px) {
  .acq-texte { grid-column: 1 / -1; }
  .barre-filtres { padding-top: 10px; padding-bottom: 10px; }
  .barre-filtres .contenu { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 8px; }
  .filtres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
  .filtres::-webkit-scrollbar { display: none; }
  .filtre { white-space: nowrap; flex: none; }
  .vues { justify-content: space-between; }
}

/* eclairage de galerie sous chaque oeuvre : halo sur le mur, ombre au sol */
.oeuvre-carte .socle-zone { isolation: isolate; }
.oeuvre-carte .socle { display: none; }
.oeuvre-carte .halo-mur { position: absolute; z-index: -1; left: 50%; bottom: 8%; width: 150%; height: 115%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 55%, rgba(236,226,206,.10), transparent 70%); pointer-events: none; transition: opacity .8s; }
.oeuvre-carte .ombre-sol { position: absolute; z-index: -1; left: 50%; bottom: -10px; height: 22px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); pointer-events: none; }
.oeuvre-carte .halo-mur { opacity: .75; }
.oeuvre-carte:hover .halo-mur { opacity: 1; }

/* index des trois matieres pendant la sequence epinglee */
.index-matieres { position: absolute; z-index: 5; right: var(--marge); top: 50%; transform: translateY(-50%); display: grid; gap: 6px; }
.index-matieres button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 6px 0; font-size: var(--t-xs); color: var(--graphite); transition: color .4s; }
.index-matieres button::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .5s var(--ease), background .4s; }
.index-matieres button[aria-current="true"] { color: var(--craie); }
.index-matieres button[aria-current="true"]::after { width: 42px; background: var(--cuivre-clair); }
.index-matieres button:hover { color: var(--craie-2); }
.matiere[data-matiere="bronze"] .fond-image img { opacity: .6; }
.matiere .contenu { padding-right: 150px; } /* place de l'index des salles, « Petits formats » compris */
@media (max-width: 860px) { .matiere .contenu { padding-right: 0; } }

/* menu deroulant des salles */
.nav-oeuvres { position: relative; }
.nav-bouton { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-s); color: var(--craie-2); transition: color .3s; padding: 10px 0; }
.nav-bouton svg { width: 10px; height: 8px; transition: transform .4s var(--ease); }
.nav-bouton[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-bouton:hover, .nav-bouton[aria-current="page"], .nav-bouton[aria-expanded="true"] { color: var(--craie); }
.panneau-oeuvres { position: fixed; top: calc(var(--h-entete, var(--header-h)) - 6px); left: 50%; width: min(820px, 92vw); transform: translate(-50%, -8px); opacity: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px; background: color-mix(in srgb, var(--ardoise-0) 94%, transparent); border: 1px solid var(--ardoise-3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .35s, transform .45s var(--ease); }
.panneau-oeuvres.ouvert { opacity: 1; transform: translate(-50%, 0); }
.panneau-oeuvres::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.salle-lien { display: grid; gap: 4px; align-content: start; padding: 10px; border-radius: var(--rayon); transition: background .3s; }
.salle-lien:hover, .salle-lien:focus-visible { background: var(--ardoise-2); }
.salle-lien .vig { position: relative; height: 120px; display: block; }
.salle-lien .vig img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 10px 12px rgba(0,0,0,.55)); transition: transform .6s var(--ease); }
.salle-lien:hover .vig img { transform: translateY(-4px); }
.salle-lien .t { font-family: var(--f-display); font-size: 1.15rem; color: var(--craie); line-height: 1.1; margin-top: 6px; }
.salle-lien .n { font-size: 11px; color: var(--graphite); }
/* menu telephone : une colonne alignee a gauche, le nombre d'oeuvres cale a droite sur la ligne de base */
.menu-plein { align-items: stretch; gap: 0; padding: calc(var(--header-h) + 8px) var(--marge) var(--marge); }
.menu-plein > * { width: 100%; max-width: 560px; }
.menu-plein a.menu-salle { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: clamp(2.1rem, 9.5vw, 4.2rem); line-height: 1.1; border-bottom: 1px solid color-mix(in srgb, var(--ardoise-3) 70%, transparent); }
.menu-plein a.menu-salle small { flex: none; font-family: var(--f-texte); font-size: var(--t-xs); color: var(--graphite); margin: 0; }
.menu-plein .menu-sep { height: 0; margin: 18px 0 6px; }
.menu-plein a.menu-second { display: block; padding: 6px 0; font-size: clamp(1.5rem, 6vw, 2.2rem); color: var(--craie-2); }
.menu-plein .menu-logo, .menu-plein .fermer { width: auto; max-width: none; }
.panneau-oeuvres[hidden] { display: none; }

/* repere de la salle epinglee */
.hud-salle { position: absolute; z-index: 4; left: var(--marge); right: var(--marge); bottom: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; pointer-events: none; }
.hud-salle > * { pointer-events: auto; }
.hud-salle p { margin: 0; display: flex; gap: 14px; align-items: baseline; font-size: var(--t-xs); color: var(--craie-2); min-width: 0; }
.hud-salle p [data-hud-t] { font-family: var(--f-display); font-size: 1.1rem; color: var(--craie); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-salle .outil { border-color: var(--ardoise-4); background: color-mix(in srgb, var(--ardoise-0) 60%, transparent); }
.hud-salle .hud-barre { grid-column: 1 / -1; height: 1px; background: var(--ardoise-3); }
.hud-salle .hud-barre i { display: block; height: 100%; background: var(--cuivre-clair); transform-origin: left; transform: scaleX(0); }

.pied-coord { font-style: normal; line-height: 1.7; }
.introuvable { position: relative; z-index: 3; padding: calc(var(--header-h) + 12px) var(--marge) 0; color: var(--cuivre-clair); font-size: var(--t-s); }
.introuvable + .fiche-entree { padding-top: 24px; }
.pied-coord .reseaux { display: flex; gap: 18px; margin-top: 6px; }
/* aucun debordement horizontal : les couches animees restent dans la page */
main { overflow-x: clip; }
.pastille-matiere > div, .recit .matieres-liste, .recit .texte { min-width: 0; }
.tel { white-space: nowrap; }
.trio .cartel { display: grid; gap: 1px; justify-items: center; min-width: 0; max-width: 100%; }
.trio .cartel strong { font-size: 1.1rem; overflow-wrap: anywhere; }
.trio .cartel .dims-l { font-size: 11px; color: var(--craie-2); }
@media (max-width: 1200px) { .trio .cartel .dims-l { display: none; } }

/* cibles tactiles confortables */
@media (pointer: coarse) {
  .outil { min-width: 44px; height: 44px; }
  .ajout { width: 44px; height: 44px; }
  .filtre { min-height: 40px; padding: 9px 15px; }
  .vignettes-vues button { min-height: 44px; }
  .ligne-panier [data-moins], .ligne-panier [data-plus] { width: 36px; height: 36px; }
}

@media (pointer: coarse) {
  .pied .bas nav { gap: 18px 24px; }
  .pied .bas nav a::before, .pied-coord a::before { content: ""; position: absolute; inset: -10px -8px; }
  .pied-coord { line-height: 2; }
  .pied-coord .reseaux { gap: 26px; margin-top: 10px; }
}

/* evite d'apercevoir le contenu par defaut avant que la page ne soit remplie */
html.attente main { opacity: 0; animation: lp-montrer 0s 2.5s forwards; }
@keyframes lp-montrer { to { opacity: 1; } }

/* sans JavaScript : navigation de secours (l'en-tete est construit en JS) */
.sans-js { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px var(--marge); background: var(--ardoise-0); border-bottom: 1px solid var(--ardoise-3); font-size: var(--t-s); }
.sans-js a { padding: 10px 0; color: var(--craie-2); }
.sans-js a:first-child { color: var(--craie); font-family: var(--f-display); font-size: 1.2rem; margin-right: auto; }
.sans-js-note { padding: 18px var(--marge); color: var(--craie-2); }

/* dialogues ouverts : la page ne defile plus, meme sans Lenis (mode calme) */
html.verrou { overflow: hidden; }

/* menu plein ecran : defilable quand il depasse (telephone en paysage) */
.menu-plein { overflow-y: auto; overscroll-behavior: contain; justify-content: safe center; }
@media (max-height: 520px) {
  .menu-plein { justify-content: flex-start; padding-top: 64px; }
  .panier { grid-template-rows: auto auto auto; overflow-y: auto; overscroll-behavior: contain; }
  .panier .liste { overflow: visible; }
}

/* cibles tactiles : 44 px */
@media (pointer: coarse) {
  .filtre { min-height: 44px; }
  .choix span { padding: 12px 16px; }
  .ligne-panier [data-moins], .ligne-panier [data-plus] { width: 44px; height: 44px; }
  .ligne-panier [data-retirer] { padding: 12px 0; }
  .index-matieres button { padding: 13px 0; }
}

/* page introuvable */
body[data-page="introuvable"] .page-simple .display { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1; margin: 14px 0 22px; text-wrap: balance; }
.actions-introuvable { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
body[data-page="introuvable"] .pied { padding-top: 60px; }
body[data-page="introuvable"] .pied .bas { margin-top: 0; }

/* écrans tactiles : les étiquettes révélées au survol restent visibles */
@media (hover: none) {
  .vignette .legende { opacity: 1; transform: none; }
}
/* mention « Photo à compléter » en contenu généré : décorative, hors du nom des liens */
.oeuvre-absente .mini::after { content: attr(data-txt); }

/* page anglaise : masquee le temps de poser les textes traduits (au plus 1,5 s) */
html.trad-attente body { opacity: 0; animation: lp-montrer 0s 1.5s forwards; }

/* telephone : cibles tactiles de 44 px et etiquette « Bagnolet » du plan lisible */
@media (max-width: 860px) {
  .marque { min-height: 44px; }
  .langues { gap: 0; }
  .langues button { min-width: 44px; height: 44px; padding: 0 4px; }
  .hero-points { flex: 1 1 100%; gap: 0; }
  .hero-pause { width: 44px; height: 44px; margin-right: 0; }
  .hero-point { flex: 1 1 0; max-width: 44px; height: 44px; }
  .lien { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; }
  .lien::after { bottom: calc(50% - .85em); }
  .fil .lien, .fil a { display: inline-block; min-height: 0; }
  .suite { min-height: 44px; }
  .plan text.ici { font-size: 14px; }
}
@media (max-width: 359px) {
  .langues { margin-right: 0; }
}

/* pied de page : le logo officiel */
.pied .pied-logo { flex: none; line-height: 0; }
.pied .pied-logo .marque-logo { height: 96px; }

/* ================= retours de la cliente, novembre 2026 ================= */

/* diaporama de l'accueil : balayage horizontal au doigt, defilement vertical conserve */
.hero-cadre { touch-action: pan-y; }

/* quatrieme salle du parcours : le titre sur deux lignes, a la mesure de sa colonne */
.matiere[data-matiere="petits-formats"] { --accent: #c8b79a; }
.matiere .mot-petits { font-size: clamp(3.4rem, 8.5vw, 9rem); line-height: .86; }

/* fin des oeuvres disponibles : le bloc final est un point d'arret du defilement horizontal (telephone, tablette) */
.piste-h .fin { scroll-snap-align: end; scroll-margin-inline-end: var(--marge); }
@media (max-width: 860px) {
  .piste-h .fin { width: min(420px, calc(100vw - 2 * var(--marge))); }
  .piste-h .fin .actions { gap: 10px; }
}

/* ou voir les oeuvres : l'atelier et les lieux permanents d'abord, l'historique a part */
.lieu p + p { margin-top: 2px; }
.lieu .etat { margin-left: 6px; vertical-align: middle; }
.expos-passees { margin-top: clamp(48px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--ardoise-3); }
.expos-passees h3 { font-size: 1.6rem; margin-bottom: 18px; color: var(--craie-2); }
.liste-passees { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px 32px; }
.expo-passee { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; color: var(--graphite); font-size: var(--t-s); }
.expo-passee img { width: 100%; height: auto; border: 1px solid var(--ardoise-3); filter: grayscale(.4); opacity: .8; }
.expo-passee strong { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; color: var(--craie-2); line-height: 1.15; margin-bottom: 2px; }

/* contact : visites de l'atelier sur rendez-vous */
.atelier .visites { margin: 0; font-size: var(--t-s); color: var(--craie-2); max-width: 44ch; }
.atelier .gauche > p { margin: 0; }

/* autres salles : les quatre autres salles, toujours */
.autres-salles .rang > a { grid-column: span 3; }
.autres-salles .carte-salle h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
@media (max-width: 1100px) { .autres-salles .rang > a { grid-column: span 6; } }
@media (max-width: 600px) { .autres-salles .rang > a { grid-column: 1 / -1; } .carte-salle { min-height: 300px; } }

/* fiche : visionneuse photos + videos */
.visionneuse .vue-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; border-color: var(--ardoise-4); background: color-mix(in srgb, var(--ardoise-0) 70%, transparent); color: var(--craie); }
.visionneuse .vue-nav.prec { left: 10px; } .visionneuse .vue-nav.suiv { right: 10px; }
.visionneuse .vue-nav[hidden] { display: none; }
.visionneuse .plein { z-index: 3; border-color: var(--ardoise-4); background: color-mix(in srgb, var(--ardoise-0) 70%, transparent); color: var(--craie); }
.visionneuse img.vue { cursor: zoom-in; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.visionneuse img.vue[hidden] { display: none; }
.visionneuse .vue-video { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(10px, 2vw, 24px); background: var(--ardoise-0); }
.visionneuse .vue-video[hidden], .visionneuse .vue-video [hidden] { display: none; }
.visionneuse .vue-video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.visionneuse .video-absente { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 24px; border: 1px dashed var(--ardoise-4); color: var(--craie-2); }
.visionneuse .video-absente .lead { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0; }
.visionneuse[data-type="video"] .aide { top: 10px; bottom: auto; }
.vignettes-vues .vig-video { position: relative; background: var(--ardoise-0); color: var(--craie); }
.vignettes-vues .vig-video svg { position: absolute; width: 40%; height: 40%; }
.vignettes-vues .vig-video span { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 11px; text-align: center; color: var(--craie-2); }
@media (pointer: coarse) { .visionneuse .loupe { display: none; } .visionneuse img.vue { cursor: pointer; } }

/* vue agrandie : zoom au pincement ou au double toucher, deplacement, photos suivantes, fermeture visible */
.plein-ecran { display: block; padding: 0; overscroll-behavior: contain; }
.plein-ecran .pe-scene { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.plein-ecran.zoome .pe-scene { cursor: grab; }
.plein-ecran .pe-scene img { max-width: calc(100vw - 32px); max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; transform-origin: center; will-change: transform; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.plein-ecran .fermer { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2; width: 48px; height: 48px; border-color: var(--craie-2); background: rgba(16,19,23,.75); color: var(--craie); }
.plein-ecran .fermer svg { width: 20px; height: 20px; }
.plein-ecran .pe-barre { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--ardoise-3); border-radius: 999px; background: rgba(16,19,23,.8); color: var(--craie-2); font-size: var(--t-xs); }
.plein-ecran .pe-barre .outil { color: var(--craie); }
.plein-ecran .pe-barre .outil[disabled] { opacity: .35; pointer-events: none; }
.plein-ecran .pe-barre .outil[hidden] { display: none; }
.plein-ecran .pe-barre [data-pe-compte] { min-width: 3.2em; text-align: center; }
.plein-ecran .pe-barre [data-pe-compte]:empty { display: none; }
.plein-ecran .pe-sep { width: 1px; height: 20px; background: var(--ardoise-4); margin: 0 4px; }
.plein-ecran .pe-aide { position: absolute; left: 16px; right: 16px; top: max(22px, env(safe-area-inset-top)); margin: 0; padding-right: 64px; color: var(--graphite); pointer-events: none; }
@media (pointer: fine) { .plein-ecran .pe-aide { display: none; } }
.visionneuse .aide { z-index: 3; max-width: calc(100% - 80px); }
.visionneuse .video-absente { max-width: calc(100% - 120px); }

/* A wide photograph must shrink inside a grid column, never overflow into its neighbour. */
.grille-oeuvres .oeuvre-carte, .grille-oeuvres .oeuvre-carte > a,
.grille-oeuvres .socle-zone { min-width: 0; width: 100%; }
.grille-oeuvres .photo-cadre { min-width: 0; max-width: 100%; }
.grille-oeuvres .photo-cadre img.oeuvre { width: 100%; max-width: 100%; object-fit: contain; }
/* Even a landscape artwork must fit completely inside a horizontal-room viewport. */
.piste-h .oeuvre-carte { max-width: calc(100vw - 2 * var(--marge)); }
.piste-h .oeuvre-carte > a, .piste-h .socle-zone { width: 100%; min-width: 0; }
.piste-h .photo-cadre { max-width: 100%; min-width: 0; }
.piste-h .photo-cadre img { max-width: 100%; object-fit: contain; }
