/* =========================================================
   CHARTE — variables (palette de la charte graphique)
   ========================================================= */
:root{
  --bleu:#2E4358;   /* titres, structure (25 %) */
  --sauge:#8E9B87;  /* éléments secondaires, décoratif seulement */
  --ocre:#D1A35C;   /* accents sur fond sombre uniquement */
  --creme:#F2E9DA;  /* fonds (60 %) */
  --rouge:#A52E24;  /* accents, liens (5 %) */
  --encre:#1F2D3B;  /* texte courant : bleu assombri */
  --creme-2:#E9DDC8;
  --f-titre:"Fraunces", Georgia, serif;   /* titres : Fraunces (avec le n « bancal ») */
  --f-texte:"DM Sans", system-ui, sans-serif;
  --pad:clamp(20px,4vw,56px);
  --ease:cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--f-texte);color:var(--encre);background:var(--creme);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
img,video,svg{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3,.titre{font-family:var(--f-titre);font-weight:400;letter-spacing:-.02em;line-height:1.05;font-variation-settings:"WONK" 1,"SOFT" 0}
.surtitre{font-family:var(--f-sur,var(--f-titre));font-size:12px;letter-spacing:.22em;text-transform:uppercase;font-weight:500}
.trait{display:block;width:44px;height:3px;background:var(--rouge);margin:14px 0 18px}
.skip{position:absolute;left:-999px;top:8px;background:var(--bleu);color:#fff;padding:10px 16px;z-index:999}
.skip:focus{left:8px}
:focus-visible{outline:2px solid var(--rouge);outline-offset:3px}

/* =========================================================
   EN-TÊTE
   ========================================================= */
.entete{position:fixed;inset:34px 0 auto 0;z-index:50;display:flex;align-items:center;gap:20px;
  padding:16px var(--pad);color:var(--creme);transition:background .4s,color .4s,padding .4s}
.entete.plein{background:rgba(242,233,218,.94);backdrop-filter:blur(10px);color:var(--bleu);padding-block:10px;box-shadow:0 1px 0 rgba(46,67,88,.12)}
.logo{text-decoration:none;display:flex;flex-direction:column;line-height:1}
.logo b{font-family:var(--f-titre);font-weight:700;font-size:21px;letter-spacing:-.02em}
.logo small{font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;margin-top:5px;opacity:.8}
.bandeau{position:fixed;inset:0 0 auto 0;z-index:51;height:34px;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:0 var(--pad);background:#1F2D3B;color:var(--creme);font-size:13px}
.bandeau-infos{opacity:.7}
.bandeau-infos i{font-style:normal;margin:0 8px;opacity:.6}
.statut{display:inline-flex;align-items:center;gap:9px;text-decoration:none;white-space:nowrap}
.statut:hover .texte{text-decoration:underline;text-underline-offset:4px}
.statut .pastille{width:8px;height:8px;border-radius:50%;background:#C46A5E;flex:none}
.statut.ouvert .pastille{background:#4FB36C;box-shadow:0 0 0 4px rgba(79,179,108,.22);animation:pouls 2.4s infinite}
@keyframes pouls{50%{box-shadow:0 0 0 7px rgba(79,179,108,0)}}
.statut strong{font-weight:700}
.statut .detail{opacity:.8}
.nav{margin-left:auto;display:flex;align-items:center;gap:26px}
.nav a{text-decoration:none;font-size:15px;font-weight:500}
.nav a:hover{text-decoration:underline;text-underline-offset:5px}
.btn-menu{font:inherit;font-size:15px;font-weight:500;background:none;border:0;color:inherit;cursor:pointer;display:flex;align-items:center;gap:10px}
.btn-menu i{display:block;width:22px;height:2px;background:currentColor;position:relative}
.btn-menu i::after{content:"";position:absolute;left:0;top:6px;width:22px;height:2px;background:currentColor}

/* Menu plein écran */
.menu{position:fixed;inset:0;z-index:60;background:var(--bleu);color:var(--creme);overflow-y:auto;
  padding:76px var(--pad) clamp(28px,4vh,44px);display:flex;flex-direction:column;gap:clamp(28px,4vh,44px);
  opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s}
.menu.ouvert{opacity:1;visibility:visible}
.menu-fermer{position:absolute;top:22px;right:var(--pad);background:none;border:0;color:inherit;font:500 15px var(--f-texte);cursor:pointer}
/* Tuiles de couleur (palette de la charte) */
.tuiles{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:minmax(150px,26vh);gap:10px}
.tuile{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:clamp(18px,2vw,30px);
  text-decoration:none;border-radius:4px;transition:transform .45s var(--ease),box-shadow .45s;
  transform:translateY(16px);opacity:0}
.menu.ouvert .tuile{transform:none;opacity:1;transition:transform .6s var(--ease),opacity .6s,box-shadow .45s}
.menu.ouvert .tuile:nth-child(2){transition-delay:.04s}.menu.ouvert .tuile:nth-child(3){transition-delay:.08s}
.menu.ouvert .tuile:nth-child(4){transition-delay:.12s}.menu.ouvert .tuile:nth-child(5){transition-delay:.16s}.menu.ouvert .tuile:nth-child(6){transition-delay:.2s}
.menu.ouvert .tuile:hover{transform:translateY(-4px);box-shadow:0 24px 40px -20px rgba(0,0,0,.6);transition-delay:0s}
.t-large{grid-column:span 2}
.t-sur{margin-bottom:auto;padding-right:34px;padding-bottom:14px;font-family:var(--f-texte);font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;font-weight:500;opacity:.85}
.t-titre{font-family:var(--f-titre);font-size:clamp(28px,3.3vw,54px);line-height:1;letter-spacing:-.02em;font-variation-settings:"WONK" 1;max-width:12ch}
.t-sous{font-size:15px;opacity:.85}
.tuile i{position:absolute;top:clamp(12px,1.6vw,22px);right:clamp(16px,1.8vw,26px);font-style:normal;font-size:22px;transition:transform .35s var(--ease)}
.tuile:hover i{transform:translateX(6px)}
.t-rouge{background:var(--rouge);color:var(--creme)}
.t-ocre{background:var(--ocre);color:var(--encre)}
.t-sauge{background:var(--sauge);color:var(--encre)}
.t-creme{background:var(--creme);color:var(--bleu)}
.t-rose{background:#FCDFE4;color:var(--encre)}
.t-ciel{background:#B9CFD6;color:var(--encre)}
.t-affiche{padding-right:46%}
.t-affiche i{display:none}
.t-affiche .t-titre{font-size:clamp(22px,2vw,32px)}
.t-affiche img{position:absolute;right:8%;top:50%;height:78%;width:auto;transform:translateY(-50%) rotate(3deg);
  box-shadow:0 14px 24px -10px rgba(0,0,0,.45);transition:transform .5s var(--ease)}
.t-rose img{transform:translateY(-50%) rotate(-3deg)}
.tuile:hover img{transform:translateY(-50%) rotate(0) scale(1.04)}
/* Liens secondaires : rangée du bas, alignée à gauche */
.menu .petits{display:grid;grid-template-columns:repeat(3,minmax(0,280px));gap:clamp(24px,4vw,70px);
  padding-top:clamp(20px,3vh,32px);border-top:1px solid rgba(242,233,218,.2)}
.menu .petits h3{font-size:12px;letter-spacing:.2em;text-transform:uppercase;font-family:var(--f-texte);font-weight:500;color:#E2BC7E;margin-bottom:12px}
.menu .petits a{display:block;text-decoration:none;opacity:.9;padding:4px 0;font-size:16px}
.menu .petits a:hover{opacity:1;text-decoration:underline;text-underline-offset:4px}
.menu .petits p{opacity:.85;font-size:16px;line-height:1.6;margin-bottom:8px}

/* =========================================================
   1. HÉROS — le cadre qui s'ouvre sur la vidéo
   ========================================================= */
.heros{position:relative;height:350vh;background:var(--bleu)}
.heros-scene{position:sticky;top:0;height:100vh;overflow:hidden;display:grid;place-items:center}
/* le mur du musée derrière le tableau */
.heros-scene::before{content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse at 50% 40%,#3a5269 0%,var(--bleu) 55%,#22323f 100%)}
/* Cadre doré fin, directement au bord du tableau (sans passe-partout).
   Il s'efface quand l'image s'agrandit. */
.cadre{position:relative;z-index:2;width:var(--w);height:var(--h);padding:var(--bg,0px);
  background:linear-gradient(135deg,#E9CF8E 0%,#B8893F 28%,#8C6428 48%,#D9B56A 66%,#A87C36 84%,#E4C783 100%);
  box-shadow:inset 0 0 0 1px rgba(255,236,190,calc(var(--fo,1)*.7)),0 50px 90px -35px rgba(0,0,0,.7);
  transform:translateY(var(--dy,0px));will-change:width,height,transform}
.toile{position:relative;width:100%;height:100%;overflow:hidden;background:#1d2a36}
.toile::after{content:"";position:absolute;inset:0;z-index:5;pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(70,45,10,calc(var(--fo,1)*.8)),inset 0 2px 6px rgba(0,0,0,calc(var(--fo,1)*.35))}
.toile img,.toile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.toile .tableau{z-index:1;transform:scale(calc(1 + var(--p,0)*.12));transform-origin:55% 60%}
.toile .lieu-reel{z-index:2;opacity:var(--lr,0);animation:derive 30s ease-in-out infinite alternate}
.toile video{z-index:3;opacity:var(--lr,0)}
@keyframes derive{from{transform:scale(1.02)}to{transform:scale(1.1) translateX(-2%)}}
.cartel-oeuvre{position:absolute;z-index:3;top:calc(50% + var(--h)/2 + var(--dy,0px) + 14px);left:50%;transform:translateX(-50%);
  color:var(--creme);font-size:13px;opacity:calc(var(--t1) * .8);white-space:nowrap}

/* textes du héros */
.heros-titre{position:absolute;z-index:3;inset:auto var(--pad) 9vh var(--pad);color:var(--creme);
  display:flex;justify-content:space-between;align-items:end;gap:30px;pointer-events:none;opacity:var(--t1)}
.heros-titre h1{font-size:clamp(40px,5vw,78px);max-width:11ch}
.heros-titre p{max-width:30ch;font-size:16px;opacity:.85;text-align:right}
.cartel{position:absolute;z-index:3;left:var(--pad);bottom:6vh;color:var(--creme);opacity:var(--t2);
  transform:translateY(calc((1 - var(--t2))*20px));max-width:520px;text-shadow:0 1px 18px rgba(0,0,0,.45)}
.cartel h2{font-size:clamp(28px,4vw,52px);margin:8px 0 10px}
.cartel a{color:var(--creme);font-weight:500}
.defiler{position:absolute;z-index:3;left:50%;bottom:24px;transform:translateX(-50%);color:var(--creme);font-size:11px;
  letter-spacing:.24em;text-transform:uppercase;opacity:var(--t1);display:flex;flex-direction:column;align-items:center;gap:8px}
.defiler::after{content:"";width:1px;height:34px;background:currentColor;animation:goutte 1.8s infinite}
@keyframes goutte{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}

/* =========================================================
   2. EXPOSITIONS — panneau qui recouvre la vidéo
   Sobre : fond crème, affiches droites, légendes de cartel
   ========================================================= */
.expos{position:relative;z-index:5;margin-top:-100vh;min-height:100vh;background:var(--bleu);color:var(--creme);
  box-shadow:0 -30px 60px rgba(0,0,0,.3);padding:calc(86px + clamp(24px,4vh,48px)) var(--pad) clamp(30px,5vh,56px);
  display:flex;flex-direction:column}
.expos-tete{display:flex;align-items:baseline;justify-content:space-between;gap:20px;
  padding-bottom:clamp(16px,2.5vh,26px);border-bottom:1px solid rgba(242,233,218,.2)}
.expos-tete .surtitre{color:#E2BC7E;order:2}
.expos-tete h2{font-size:clamp(28px,3vw,44px);color:var(--creme)}
.expos-grille{flex:1;display:grid;grid-template-columns:1fr 1fr;align-items:center}
.expo{display:flex;align-items:flex-end;gap:clamp(20px,2.6vw,40px);text-decoration:none;color:var(--creme);
  padding:clamp(24px,4vh,48px) clamp(16px,3vw,48px) 0 0}
.expo + .expo{border-left:1px solid rgba(242,233,218,.2);padding-left:clamp(16px,3vw,48px)}
.expo figure{flex:none;perspective:900px}
.expo figure img{height:min(58vh,600px);width:auto;display:block;transform-origin:50% 60%;
  transform:rotate(var(--rot,-2.5deg)) rotateX(var(--tx,0deg)) rotateY(var(--ty,0deg)) translateY(var(--lift,0px));
  box-shadow:0 2px 4px rgba(0,0,0,.2),0 30px 50px -24px rgba(0,0,0,.6);transition:transform .8s var(--ease)}
.expo + .expo figure img{--rot:2deg}
.expo:hover figure img{--rot:0deg;--lift:-8px;box-shadow:0 4px 8px rgba(0,0,0,.2),0 50px 70px -30px rgba(0,0,0,.7)}
.expo figure img{transition:transform .5s var(--ease),box-shadow .5s}
.expo figure img.suit{transition:transform .12s linear,box-shadow .5s}
.legende-expo{padding-bottom:4px}
.expo .lieu{font-family:var(--f-titre);font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;color:#E2BC7E}
.expo h3{font-size:clamp(26px,2.5vw,40px);color:var(--creme);margin:12px 0 8px}
.expo .sous-titre{font-size:17px;color:var(--creme);opacity:.8;margin:-2px 0 10px}
.expo .dates{font-size:15px;opacity:.75}
.expo .plus{white-space:nowrap;display:inline-flex;gap:10px;margin-top:22px;font-weight:500;color:var(--creme);border-bottom:1px solid currentColor;padding-bottom:3px}
.expo .plus span{transition:transform .3s}
.expo:hover .plus span{transform:translateX(5px)}

/* =========================================================
   SECTIONS GÉNÉRIQUES
   ========================================================= */
.section{position:relative;z-index:5;background:var(--creme);padding:clamp(80px,12vw,160px) var(--pad)}
.intro{display:grid;grid-template-columns:1fr 1.25fr;gap:clamp(30px,6vw,100px);align-items:start}
.intro h2{font-size:clamp(36px,5vw,72px);color:var(--bleu)}
.intro p{font-size:clamp(18px,1.6vw,22px);max-width:40ch}
.intro p + p{margin-top:1em}

/* Les deux musées */
.musees{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,2.4vw,32px);margin-top:clamp(60px,8vw,110px)}
.musee{text-decoration:none;display:block}
.musee .image{aspect-ratio:4/3;overflow:hidden;position:relative}
.musee .image > div{position:absolute;inset:0;transition:transform 1s var(--ease)}
.musee:hover .image > div{transform:scale(1.04)}
.musee .image img{width:100%;height:100%;object-fit:cover}
.musee .legende{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding-top:18px;border-bottom:1px solid rgba(46,67,88,.25);padding-bottom:18px}
.musee h3{font-size:clamp(24px,2.4vw,34px);color:var(--bleu)}
.musee .adresse{font-size:14px;opacity:.75;text-align:right}
.musee p{margin-top:14px;max-width:46ch}

/* Préparer la visite */
.visite{background:var(--creme-2)}
.visite-grille{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:clamp(24px,4vw,60px);margin-top:60px}
.bloc h3{font-size:22px;color:var(--bleu);margin-bottom:16px}
.horaires{width:100%;border-collapse:collapse;font-size:16px}
.horaires td{padding:9px 0;border-bottom:1px solid rgba(46,67,88,.18)}
.horaires td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.horaires tr.auj td{font-weight:700;color:var(--rouge)}
.note{font-size:14px;opacity:.75;margin-top:14px}
.prix{list-style:none}
.prix li{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid rgba(46,67,88,.18)}
.lien-fleche{display:inline-flex;gap:8px;margin-top:20px;color:var(--rouge);font-weight:500;text-decoration:none;border-bottom:1px solid currentColor}
.carte{aspect-ratio:4/3;background:var(--bleu);border-radius:2px;overflow:hidden;position:relative}

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.lettre{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end}
.lettre h2{font-size:clamp(30px,3.6vw,52px);color:var(--bleu)}
.lettre form{display:flex;border-bottom:2px solid var(--bleu)}
.lettre input{flex:1;border:0;background:none;font:inherit;padding:14px 0;color:var(--encre)}
.lettre button{border:0;background:none;font:inherit;font-weight:700;color:var(--rouge);cursor:pointer;padding:0 6px}
.pied{position:relative;z-index:5;background:#1F2D3B;color:var(--creme);padding:80px var(--pad) 40px;font-size:15px}
.pied-grille{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px}
.pied h3{font-family:var(--f-titre);font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--ocre);margin-bottom:14px;font-weight:500}
.pied ul{list-style:none;line-height:2}
.pied a{text-decoration:none;opacity:.85}
.pied a:hover{opacity:1;text-decoration:underline}
.pied .bas{margin-top:70px;padding-top:24px;border-top:1px solid rgba(242,233,218,.15);display:flex;justify-content:space-between;opacity:.6;font-size:13px}


/* =========================================================
   PLACEHOLDERS PICTURAUX (à remplacer par les vraies images)
   ========================================================= */
.ph-paysannes{background:
  radial-gradient(ellipse 60% 40% at 70% 35%,rgba(242,233,218,.55),transparent 70%),
  linear-gradient(180deg,#9fb3c2 0%,#d9c9a3 38%,#c79d55 52%,#9a7a3f 70%,#5f5a3a 100%)}
.ph-vieux{background:
  radial-gradient(ellipse 40% 30% at 30% 30%,rgba(242,233,218,.35),transparent 70%),
  linear-gradient(160deg,#4e5f55 0%,#7b8873 30%,#a8a487 55%,#6c5b45 80%,#3d3328 100%)}
.ph-meb{background:linear-gradient(170deg,#c7d2d6 0%,#e7dcc2 35%,#b69660 55%,#7d8a68 75%,#4b5a45 100%)}
.ph-vm{background:linear-gradient(200deg,#d7ccb6 0%,#a99c80 40%,#6f6553 70%,#3a3329 100%)}
.ph-s1{background:linear-gradient(180deg,#a9b8c0,#e2d3ad 45%,#a7884c 60%,#6a6a44)}
.ph-s2{background:linear-gradient(180deg,#d8e0e2,#9fb0b8 35%,#f2efe6 48%,#7c8a6c 62%,#4a5240)}
.ph-s3{background:radial-gradient(circle at 50% 38%,#e9d6b8 0 17%,transparent 18%),linear-gradient(180deg,#3b3a35,#57503f 60%,#2d2a24)}
.ph-s4{background:linear-gradient(170deg,#f2e9da,#d9c9a3 40%,#b0a07a 70%,#8e9b87)}
.ph-label{position:absolute;right:10px;top:10px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;background:rgba(31,45,59,.55);color:#fff;padding:4px 7px;border-radius:2px;z-index:2}

/* =========================================================
   RESPONSIVE + MOUVEMENT RÉDUIT
   ========================================================= */
@media (max-width:900px){
  .expos-grille{grid-template-columns:1fr}
  .expo{padding:26px 0;align-items:center}
  .expo + .expo{border-left:0;padding-left:0;border-top:1px solid rgba(242,233,218,.2)}
  .expo figure img{height:190px}
  .expo .plus{font-size:15px}
  .expos-tete{flex-direction:column;gap:6px}
  .expos-tete .surtitre{order:0}
  .nav a{display:none}
  .bandeau-infos{display:none}
  .bandeau{font-size:12.5px;justify-content:center}
  .intro,.musees,.visite-grille,.lettre{grid-template-columns:1fr}
  .tuiles{grid-template-columns:1fr 1fr;grid-auto-rows:minmax(130px,auto)}
  .t-large{grid-column:span 2}
  .t-affiche{grid-column:span 2;padding-right:40%}
  .menu .petits{grid-template-columns:1fr 1fr}
  .pied-grille{grid-template-columns:1fr 1fr}
  .heros-titre{flex-direction:column;align-items:flex-start;gap:12px;bottom:12vh}
  .heros-titre h1{font-size:clamp(34px,9vw,48px);max-width:none}
  .heros-titre p{font-size:15px}
  .defiler{bottom:14px}
  .heros-titre p{text-align:left}
}
@media (max-width:560px){
  .logo small{display:none}
  .btn-menu span{display:none}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
  .heros{height:100vh}
  .expos{margin-top:0}
}

/* =========================================================
   ACCUEIL — accroche vers la visite numérique
   ========================================================= */
.bouton{display:inline-flex;align-items:center;gap:12px;background:var(--rouge);color:var(--creme);text-decoration:none;
  font-weight:500;padding:15px 24px;border-radius:2px;transition:background .25s}
.bouton span{transition:transform .3s var(--ease)}
.bouton:hover{background:#8A241C}
.bouton:hover span{transform:translateX(5px)}
.vn-accroche{position:relative;z-index:5;background:var(--bleu);color:var(--creme);display:grid;grid-template-columns:1fr 1.2fr;
  gap:clamp(30px,6vw,90px);align-items:center;padding:clamp(80px,11vw,150px) var(--pad);overflow:hidden}
.vn-texte .surtitre{color:var(--ocre)}
.vn-texte h2{font-size:clamp(36px,4.6vw,66px);margin:14px 0 20px}
.vn-texte p{font-size:clamp(17px,1.4vw,20px);opacity:.85;max-width:36ch;margin-bottom:34px}
.vn-images{position:relative;display:block;height:clamp(300px,36vw,500px)}
.vn-images img{position:absolute;box-shadow:0 30px 60px -25px rgba(0,0,0,.6);transition:transform .9s var(--ease)}
.vn-images img:nth-child(1){height:78%;left:0;top:4%;transform:rotate(-4deg)}
.vn-images img:nth-child(2){height:62%;left:22%;top:30%;z-index:2}
.vn-images img:nth-child(3){height:56%;right:0;top:0;transform:rotate(3deg)}
.vn-images:hover img:nth-child(1){transform:rotate(-6deg) translate(-10px,-6px)}
.vn-images:hover img:nth-child(2){transform:translateY(-8px) scale(1.03)}
.vn-images:hover img:nth-child(3){transform:rotate(5deg) translate(10px,-6px)}
@media (max-width:900px){
  .vn-accroche{grid-template-columns:1fr}
  .vn-images{height:300px}
}

/* =========================================================
   PAGE VISITE NUMÉRIQUE — navigation horizontale
   ========================================================= */
.page-visite{background:#EDE4D3}
.page-visite .entete{background:rgba(237,228,211,.94)}
.hz{position:relative}
.hz-scene{position:sticky;top:0;height:100vh;overflow:hidden}
.hz-piste{display:flex;height:100%;will-change:transform}
.panneau{flex:none;width:100vw;height:100%;display:grid;align-items:center;padding:120px var(--pad) 110px}

/* ouverture */
.ouverture{grid-template-columns:1.1fr 1fr;gap:clamp(30px,5vw,80px)}
.ouverture .surtitre{color:var(--rouge)}
.ouverture h1{font-size:clamp(46px,7vw,112px);color:var(--bleu);margin:16px 0 24px}
.ouverture p{font-size:clamp(17px,1.4vw,21px);max-width:38ch}
.ouverture .consigne{display:inline-flex;align-items:center;gap:14px;margin-top:36px;font-family:var(--f-titre);
  font-size:13px;letter-spacing:.2em;text-transform:uppercase;color:var(--bleu)}
.ouverture .consigne i{display:block;width:60px;height:1px;background:currentColor;position:relative;overflow:hidden}
.ouverture .consigne i::after{content:"";position:absolute;inset:0;background:var(--rouge);animation:glisse 1.8s infinite}
@keyframes glisse{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.ouverture .portrait{justify-self:center;width:100%;max-height:62vh;object-fit:cover;box-shadow:0 40px 70px -30px rgba(31,45,59,.55)}

/* salles */
.salle-v{grid-template-columns:auto minmax(260px,380px);gap:clamp(30px,5vw,80px);justify-content:center}
.salle-v figure{position:relative;justify-self:end}
.salle-v figure img{max-height:min(66vh,680px);max-width:min(58vw,1000px);width:auto;height:auto;
  box-shadow:0 2px 3px rgba(0,0,0,.08),0 40px 70px -30px rgba(31,45,59,.6)}
.salle-v .num{font-family:var(--f-titre);font-size:13px;letter-spacing:.2em;color:var(--rouge)}
.salle-v h2{font-size:clamp(30px,3.2vw,48px);color:var(--bleu);margin:10px 0 8px}
.salle-v .meta{font-size:14px;opacity:.7;margin-bottom:20px}
.salle-v .texte p{max-width:40ch}
.ecouter{margin-top:26px;display:inline-flex;align-items:center;gap:12px;background:none;border:1px solid var(--bleu);color:var(--bleu);
  font:500 15px var(--f-texte);padding:11px 18px 11px 12px;border-radius:99px;cursor:pointer}
.ecouter b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--bleu);color:var(--creme);font-size:11px}
.salle-v .texte,.salle-v figure{opacity:var(--vis,1);transform:translateX(calc((1 - var(--vis,1))*40px));transition:opacity .4s,transform .6s var(--ease)}

/* fin */
.fin-v{justify-items:center;text-align:center}
.fin-v h2{font-size:clamp(38px,5vw,72px);color:var(--bleu);margin:14px 0 18px}
.fin-v .surtitre{color:var(--rouge)}
.fin-v .actions{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;margin-top:30px}
.bouton.clair{background:none;color:var(--bleu);border:1px solid var(--bleu)}
.bouton.clair:hover{background:var(--bleu);color:var(--creme)}

/* barre de navigation de la visite */
.hz-nav{position:fixed;z-index:40;left:0;right:0;bottom:0;display:flex;align-items:center;gap:22px;padding:18px var(--pad);
  background:linear-gradient(to top,rgba(237,228,211,1) 40%,rgba(237,228,211,0))}
.hz-nav .fleche{width:42px;height:42px;border-radius:50%;border:1px solid var(--bleu);background:none;color:var(--bleu);font-size:18px;cursor:pointer;flex:none}
.hz-nav .fleche:hover{background:var(--bleu);color:var(--creme)}
.hz-nav .fleche:disabled{opacity:.25;cursor:default;background:none;color:var(--bleu)}
.hz-etapes{flex:1;display:flex;gap:4px;list-style:none}
.hz-etapes li{flex:1}
.hz-etapes button{width:100%;background:none;border:0;cursor:pointer;text-align:left;font:500 12px var(--f-texte);color:var(--bleu);padding-top:10px;position:relative;opacity:.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hz-etapes button::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:rgba(46,67,88,.18)}
.hz-etapes button::after{content:"";position:absolute;top:0;left:0;height:3px;width:calc(var(--rempli,0)*100%);background:var(--rouge)}
.hz-etapes button.actif{opacity:1}
.hz-compteur{font-family:var(--f-titre);font-size:14px;color:var(--bleu);min-width:60px;text-align:right;font-variant-numeric:tabular-nums}

@media (max-width:900px){
  .hz{height:auto!important}
  .hz-scene{position:relative;height:100svh}
  .hz-piste{overflow-x:auto;scroll-snap-type:x mandatory;transform:none!important;scrollbar-width:none}
  .hz-piste::-webkit-scrollbar{display:none}
  .panneau{scroll-snap-align:start;padding:110px var(--pad) 110px;align-content:center}
  .ouverture,.salle-v{grid-template-columns:1fr;gap:22px}
  .ouverture .portrait{display:none}
  .salle-v figure{justify-self:start}
  .salle-v figure img{max-width:100%;max-height:44svh}
  .salle-v h2{font-size:28px}
  .hz-etapes button{font-size:0;padding-top:6px}
}
@media (prefers-reduced-motion:reduce){
  .hz{height:auto!important}
  .hz-scene{position:relative}
  .hz-piste{overflow-x:auto;transform:none!important}
}
.hz-nav{transition:opacity .3s}
.hz-nav.cache{opacity:0;pointer-events:none}
.page-visite .entete.sombre:not(.plein){background:rgba(46,67,88,.94);backdrop-filter:blur(10px);padding-block:10px;box-shadow:0 1px 0 rgba(242,233,218,.12)}

/* =========================================================
   PAGES D'EXPOSITION
   ========================================================= */
.page-expo .entete{background:rgba(46,67,88,.94);color:var(--creme);backdrop-filter:blur(10px);padding-block:10px}
.ex-tete{background:var(--bleu);color:var(--creme);padding:calc(86px + clamp(40px,7vw,90px)) var(--pad) clamp(60px,8vw,110px);
  display:grid;grid-template-columns:auto 1fr;gap:clamp(30px,6vw,100px);align-items:end}
.ex-tete figure img{height:min(68vh,640px);width:auto;box-shadow:0 2px 4px rgba(0,0,0,.2),0 40px 60px -30px rgba(0,0,0,.7)}
.ex-tete .lieu{font-family:var(--f-titre);font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:#E2BC7E}
.ex-tete h1{font-size:clamp(44px,6vw,96px);margin:16px 0 14px;max-width:12ch}
.ex-tete .sous-titre{font-family:var(--f-titre);font-size:clamp(20px,2vw,28px);opacity:.9;margin-bottom:22px}
.ex-tete .dates{font-size:clamp(17px,1.5vw,21px)}
.ex-tete .dates strong{color:#E2BC7E;font-weight:500}
.ex-tete .chapeau{font-size:clamp(18px,1.5vw,22px);max-width:44ch;margin-top:28px;opacity:.9}

.ex-corps{display:grid;grid-template-columns:1.5fr 1fr;gap:clamp(40px,7vw,120px);padding:clamp(70px,9vw,130px) var(--pad);background:var(--creme)}
.ex-texte h2{font-size:clamp(28px,2.8vw,40px);color:var(--bleu);margin:0 0 20px}
.ex-texte h2:not(:first-child){margin-top:60px}
.ex-texte p{font-size:clamp(17px,1.25vw,19px);max-width:62ch}
.ex-texte p + p{margin-top:1em}
.sens{list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:2px;margin-top:10px}
.sens li{background:var(--creme-2);padding:22px 20px}
.sens b{display:block;font-family:var(--f-titre);color:var(--bleu);font-size:19px;margin-bottom:6px;font-weight:500}
.sens span{font-size:15px;opacity:.85}
.agenda{list-style:none;border-top:1px solid rgba(46,67,88,.2)}
.agenda li{display:grid;grid-template-columns:150px 1fr;gap:24px;padding:22px 0;border-bottom:1px solid rgba(46,67,88,.2)}
.agenda time{font-family:var(--f-titre);color:var(--rouge);font-size:15px;font-weight:500;line-height:1.35}
.agenda time b{display:block;font-size:30px;color:var(--bleu);font-weight:500;letter-spacing:-.02em}
.agenda h3{font-size:20px;color:var(--bleu);margin-bottom:6px;line-height:1.25}
.agenda p{font-size:15px!important;opacity:.85}
.galerie{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:10px}
.galerie img{width:100%;height:auto;box-shadow:0 20px 40px -24px rgba(31,45,59,.5)}

.ex-infos{align-self:start;position:sticky;top:120px;background:var(--bleu);color:var(--creme);padding:clamp(26px,3vw,40px)}
.ex-infos h2{font-size:22px;margin-bottom:6px}
.ex-infos h3{font-family:var(--f-titre);font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:#E2BC7E;margin:26px 0 10px;font-weight:500}
.ex-infos ul{list-style:none;font-size:15px}
.ex-infos li{display:flex;justify-content:space-between;gap:16px;padding:7px 0;border-bottom:1px solid rgba(242,233,218,.15)}
.ex-infos p{font-size:14px;opacity:.85;margin-top:10px}
.ex-infos a{color:var(--creme)}
.ex-infos .bouton{margin-top:26px;width:100%;justify-content:center}
.credits{margin-top:60px;padding-top:24px;border-top:1px solid rgba(46,67,88,.2);font-size:14px;opacity:.8}
.credits dt{font-family:var(--f-titre);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--rouge);margin-top:12px}

.ex-autre{display:grid;grid-template-columns:auto 1fr;gap:clamp(24px,4vw,60px);align-items:center;text-decoration:none;
  background:var(--creme-2);padding:clamp(40px,6vw,80px) var(--pad);color:var(--encre)}
.ex-autre img{height:clamp(180px,22vw,280px);width:auto;box-shadow:0 20px 40px -24px rgba(31,45,59,.5);transition:transform .7s var(--ease)}
.ex-autre:hover img{transform:scale(1.03)}
.ex-autre .surtitre{color:var(--rouge)}
.ex-autre h2{font-size:clamp(30px,3.6vw,52px);color:var(--bleu);margin:10px 0}
.ex-autre .plus{display:inline-flex;gap:10px;margin-top:14px;font-weight:500;color:var(--bleu);border-bottom:1px solid currentColor}

@media (max-width:900px){
  .ex-tete{grid-template-columns:1fr;align-items:start}
  .ex-tete figure img{height:auto;width:62%;max-width:300px}
  .ex-corps{grid-template-columns:1fr}
  .ex-infos{position:static}
  .agenda li{grid-template-columns:1fr;gap:8px}
  .ex-autre{grid-template-columns:1fr}
  .ex-autre img{height:200px}
}
.page-expo .entete,.entete.plein-sombre{background:rgba(46,67,88,.94);color:var(--creme)}

/* Galerie « Dans les salles » */
.salles-galerie{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.2fr;gap:clamp(10px,1.4vw,20px);margin-top:clamp(40px,5vw,70px);align-items:end}
.salles-galerie figure{overflow:hidden}
.salles-galerie img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform 1s var(--ease)}
.salles-galerie figure:nth-child(2) img,.salles-galerie figure:nth-child(3) img{aspect-ratio:3/4}
.salles-galerie figure:hover img{transform:scale(1.04)}
.salles-galerie figcaption{font-size:13px;opacity:.7;margin-top:8px}
.credit-photos{font-size:12px;opacity:.55;margin-top:24px}
@media (max-width:900px){.salles-galerie{grid-template-columns:1fr 1fr}.salles-galerie img{aspect-ratio:4/3!important}}
/* lisibilité de l'en-tête et du cartel sur la photo plein écran */
.heros-scene::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:var(--lr,0);
  background:linear-gradient(to bottom,rgba(20,30,40,.55) 0%,rgba(20,30,40,0) 22%,rgba(20,30,40,0) 55%,rgba(20,30,40,.6) 100%)}

/* Titres en Fraunces : graisse unique, le n « bancal » (WONK) activé */
h1 em,h2 em{font-style:italic;color:inherit}
:is(h1,h2,h3,.titre,.logo b){font-weight:400!important;letter-spacing:-.02em!important;font-variation-settings:"WONK" 1,"SOFT" 0}

/* =========================================================
   EXPOSITIONS PASSÉES — mur d'affiches
   ========================================================= */
.arch-tete{display:block;padding-bottom:clamp(40px,5vw,70px)}
.arch-tete h1{max-width:none}
.arch-tete .chapeau{max-width:56ch}
.filtres{display:flex;flex-wrap:wrap;gap:10px;margin-top:34px}
.filtres button{font:500 14px var(--f-texte);color:var(--creme);background:none;border:1px solid rgba(242,233,218,.45);
  padding:10px 18px;border-radius:99px;cursor:pointer;transition:background .2s,color .2s}
.filtres button:hover{border-color:var(--creme)}
.filtres button[aria-pressed="true"]{background:var(--creme);color:var(--bleu);border-color:var(--creme)}
.filtres .compte{opacity:.6;margin-left:6px}
.mur{background:#26384A;color:var(--creme);padding:clamp(30px,5vw,70px) var(--pad) clamp(70px,9vw,120px)}
.annee{display:grid;grid-template-columns:clamp(90px,12vw,180px) 1fr;gap:clamp(16px,3vw,48px);padding:clamp(26px,3.5vw,44px) 0;
  border-top:1px solid rgba(242,233,218,.14)}
.annee[hidden]{display:none}
.annee h2{font-size:clamp(40px,5.5vw,84px);color:#E2BC7E;position:sticky;top:110px;align-self:start;line-height:.9}
.affiches{display:flex;flex-wrap:wrap;gap:clamp(18px,2.4vw,36px);align-items:flex-end}
.affiche{width:clamp(150px,15vw,220px);background:none;border:0;padding:0;color:inherit;text-align:left;cursor:pointer;font:inherit}
.affiche[hidden]{display:none}
.affiche .cadre-aff{display:block;aspect-ratio:var(--ratio,.71);background:#1d2a36;overflow:hidden;
  box-shadow:0 2px 4px rgba(0,0,0,.25),0 22px 36px -22px rgba(0,0,0,.8);
  transform:rotate(var(--r,0deg));transition:transform .5s var(--ease),box-shadow .5s}
.affiche:nth-child(3n+1) .cadre-aff{--r:-1.5deg}.affiche:nth-child(3n+2) .cadre-aff{--r:1.2deg}.affiche:nth-child(3n) .cadre-aff{--r:-.6deg}
.affiche:hover .cadre-aff,.affiche:focus-visible .cadre-aff{transform:rotate(0) translateY(-8px) scale(1.03);box-shadow:0 4px 8px rgba(0,0,0,.3),0 40px 60px -26px rgba(0,0,0,.9)}
.affiche img{width:100%;height:100%;object-fit:cover;display:block}
.affiche .sans-img{display:grid;place-items:center;height:100%;padding:16px;text-align:center;font-family:var(--f-titre);font-size:22px;line-height:1.1;
  background:repeating-linear-gradient(135deg,#2E4358 0 12px,#2a3e52 12px 24px);color:var(--creme)}
.affiche .lieu-aff{display:block;margin-top:14px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#E2BC7E}
.affiche .titre-aff{display:block;font-family:var(--f-titre);font-size:18px;line-height:1.15;margin-top:4px;font-variation-settings:"WONK" 1}
/* fiche agrandie */
.fiche{border:0;padding:0;background:transparent;max-width:min(980px,94vw);width:100%}
.fiche::backdrop{background:rgba(15,22,30,.82);backdrop-filter:blur(4px)}
.fiche-corps{display:grid;grid-template-columns:auto 1fr;gap:clamp(20px,4vw,50px);background:var(--creme);color:var(--encre);padding:clamp(20px,3vw,40px);border-radius:6px;align-items:start}
.fiche-corps img{max-height:min(74vh,700px);max-width:min(46vw,480px);width:auto;box-shadow:0 20px 40px -20px rgba(0,0,0,.5)}
.fiche .lieu-aff{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--rouge)}
.fiche h2{font-size:clamp(28px,3.2vw,46px);color:var(--bleu);margin:10px 0 8px}
.fiche .dates-aff{opacity:.75;margin-bottom:18px}
.fiche p{max-width:52ch}
.fiche .actions-fiche{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}
.fiche-fermer{position:absolute;top:12px;right:14px;background:var(--bleu);color:var(--creme);border:0;border-radius:99px;width:40px;height:40px;font-size:18px;cursor:pointer}
@media (max-width:900px){
  .annee{grid-template-columns:1fr;gap:14px}
  .annee h2{position:static}
  .affiche{width:calc(50% - 10px)}
  .fiche-corps{grid-template-columns:1fr}
  .fiche-corps img{max-width:70%;max-height:46vh}
}

/* =========================================================
   VISITES GUIDÉES — page « Organiser une visite guidée »
   ========================================================= */
.vg-etapes{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}
.vg-etapes span{border:1px solid rgba(242,233,218,.4);border-radius:99px;padding:8px 16px;font-size:14px}
.vg-etapes b{color:#E2BC7E;font-weight:500;margin-right:6px}
.vg{display:grid;grid-template-columns:1fr minmax(280px,360px);gap:clamp(30px,5vw,80px);padding:clamp(60px,8vw,110px) var(--pad);background:var(--creme)}
.vg-etape{margin-bottom:clamp(50px,6vw,80px)}
.vg-etape > .surtitre{color:var(--rouge)}
.vg-etape > h2{font-size:clamp(28px,3vw,42px);color:var(--bleu);margin:8px 0 24px}
.choix-visites{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.carte-visite{position:relative;display:block;cursor:pointer;background:#fff;border:2px solid transparent;border-radius:8px;padding:22px 20px 20px;
  box-shadow:0 1px 2px rgba(31,45,59,.08),0 10px 24px -16px rgba(31,45,59,.3);transition:border-color .2s,transform .3s var(--ease)}
.carte-visite:hover{transform:translateY(-3px)}
.carte-visite input{position:absolute;opacity:0;pointer-events:none}
.carte-visite:has(input:checked){border-color:var(--rouge)}
.carte-visite:has(input:focus-visible){outline:2px solid var(--rouge);outline-offset:3px}
.carte-visite .coche{position:absolute;top:14px;right:14px;width:24px;height:24px;border-radius:50%;border:2px solid rgba(46,67,88,.3);display:grid;place-items:center;color:#fff;font-size:13px}
.carte-visite:has(input:checked) .coche{background:var(--rouge);border-color:var(--rouge)}
.carte-visite img{width:76px;height:76px;border-radius:50%;object-fit:cover;margin-bottom:14px}
.carte-visite h3{font-size:24px;color:var(--bleu);margin-bottom:4px}
.carte-visite .ou{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--rouge);font-weight:500}
.carte-visite p{font-size:15px;margin:10px 0 14px;line-height:1.5}
.carte-visite .meta-v{display:flex;justify-content:space-between;font-size:14px;border-top:1px solid rgba(46,67,88,.15);padding-top:12px;font-weight:500;color:var(--bleu)}
.choix-moment{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.choix-moment .carte-visite h3{font-size:21px}
.participants{display:grid;gap:10px;max-width:520px}
.ligne-p{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border-radius:8px;padding:14px 18px}
.ligne-p small{display:block;opacity:.7}
.compteur{display:flex;align-items:center;gap:6px}
.compteur button{width:36px;height:36px;border-radius:50%;border:1px solid rgba(46,67,88,.35);background:none;color:var(--bleu);font-size:18px;cursor:pointer}
.compteur button:hover{background:var(--bleu);color:var(--creme)}
.compteur output{min-width:32px;text-align:center;font-family:var(--f-titre);font-size:22px;color:var(--bleu)}
.note-vg{font-size:14px;opacity:.75;margin-top:14px;max-width:60ch}
.recap{position:sticky;top:110px;align-self:start;background:var(--bleu);color:var(--creme);padding:clamp(24px,2.6vw,36px);border-radius:8px}
.recap h2{font-size:24px;margin-bottom:16px}
.recap ul{list-style:none;font-size:15px}
.recap li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid rgba(242,233,218,.15)}
.recap li span:first-child{opacity:.85}
.recap .total{display:flex;justify-content:space-between;align-items:baseline;margin-top:18px}
.recap .total strong{font-family:var(--f-titre);font-size:40px;font-weight:400;color:#E2BC7E}
.recap .alerte{background:rgba(165,46,36,.35);border-radius:6px;padding:10px 12px;font-size:14px;margin-top:14px}
.recap .bouton{width:100%;justify-content:center;margin-top:20px}
.recap .petit{font-size:13px;opacity:.75;margin-top:14px;line-height:1.5}
.recap a{color:var(--creme)}
/* enfants & écoles */
.ecoles{background:var(--creme-2);padding:clamp(70px,9vw,120px) var(--pad)}
.ecoles > .surtitre{color:var(--rouge)}
.ecoles > h2{font-size:clamp(32px,4vw,56px);color:var(--bleu);margin:10px 0 14px}
.ecoles > p{max-width:60ch;font-size:18px}
.ateliers{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px;margin:44px 0 56px}
.atelier{background:var(--creme);border-radius:8px;padding:24px}
.atelier img{width:110px;height:110px;border-radius:50%;object-fit:cover;margin-bottom:16px}
.atelier h3{font-size:24px;color:var(--bleu);margin-bottom:8px}
.atelier .pour{font-weight:500;color:var(--rouge);font-size:15px}
.atelier p{font-size:15px;margin:8px 0 14px}
.atelier .meta-v{font-size:13px;letter-spacing:.06em;text-transform:uppercase;opacity:.8;border-top:1px solid rgba(46,67,88,.15);padding-top:12px}
.formules{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.formule{background:var(--bleu);color:var(--creme);border-radius:8px;padding:clamp(24px,3vw,40px)}
.formule h3{font-size:30px;margin-bottom:6px}
.formule .prix-f{font-family:var(--f-titre);font-size:22px;color:#E2BC7E;margin-bottom:18px}
.formule ul{list-style:none}
.formule li{padding:8px 0 8px 22px;position:relative;border-bottom:1px solid rgba(242,233,218,.12);font-size:15px}
.formule li::before{content:"";position:absolute;left:0;top:16px;width:8px;height:8px;border-radius:50%;background:#E2BC7E}
/* lien vers les visites guidées depuis l'accueil */
.bandeau-groupes{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-top:50px;
  background:var(--bleu);color:var(--creme);padding:clamp(22px,3vw,36px) clamp(22px,3vw,40px);border-radius:6px;text-decoration:none}
.bandeau-groupes h3{font-size:clamp(24px,2.4vw,34px)}
.bandeau-groupes p{opacity:.85;margin-top:4px}
.bandeau-groupes .fl{font-size:28px;transition:transform .35s var(--ease)}
.bandeau-groupes:hover .fl{transform:translateX(8px)}
.lien-archives{color:var(--creme);font-weight:500;text-decoration:none;border-bottom:1px solid currentColor;order:3;margin-left:auto;font-size:15px}
@media (max-width:900px){
  .vg{grid-template-columns:1fr}
  .recap{position:static}
  .choix-moment,.formules{grid-template-columns:1fr}
}
.carte-visite .meta-v{gap:10px}
.carte-visite .meta-v span:last-child,.recap li span:last-child{white-space:nowrap}

/* =========================================================
   PAGES DE CONTENU (musées, soutien, contact, accessibilité)
   ========================================================= */
.ex-tete.avec-photo{grid-template-columns:1fr 1fr;align-items:center}
.ex-tete.avec-photo figure img{height:auto;width:100%;max-height:62vh;object-fit:cover}
.sommaire{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.sommaire a{color:var(--creme);text-decoration:none;border:1px solid rgba(242,233,218,.4);border-radius:99px;padding:8px 16px;font-size:14px}
.sommaire a:hover{background:var(--creme);color:var(--bleu)}
.bloc-page{padding:clamp(60px,8vw,110px) var(--pad);background:var(--creme)}
.bloc-page.alt{background:var(--creme-2)}
.bloc-page.sombre{background:var(--bleu);color:var(--creme)}
.bloc-page > .surtitre{color:var(--rouge)}
.bloc-page.sombre > .surtitre{color:#E2BC7E}
.bloc-page > h2{font-size:clamp(32px,4vw,58px);color:var(--bleu);margin:10px 0 18px;max-width:20ch}
.bloc-page.sombre > h2{color:var(--creme)}
.texte-long{max-width:68ch}
.texte-long p{font-size:clamp(17px,1.2vw,19px)}
.texte-long p + p{margin-top:1em}
.deux-col{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(30px,5vw,80px);align-items:start}
.deux-col figure img{width:100%;height:auto;box-shadow:0 24px 44px -26px rgba(31,45,59,.55)}
figcaption{font-size:13px;opacity:.7;margin-top:8px}
.chapitres{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-top:40px}
.chapitre{background:#fff;border-radius:8px;padding:26px;box-shadow:0 10px 26px -18px rgba(31,45,59,.35)}
.chapitre .num{font-family:var(--f-titre);font-size:44px;color:var(--ocre);line-height:1}
.chapitre h3{font-size:26px;color:var(--bleu);margin:10px 0}
.chapitre p{font-size:15px}
.reperes{list-style:none;border-left:2px solid var(--ocre);margin-top:30px;max-width:760px}
.reperes li{position:relative;padding:0 0 22px 28px}
.reperes li::before{content:"";position:absolute;left:-7px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--creme);border:2px solid var(--ocre)}
.reperes b{display:block;font-family:var(--f-titre);font-size:22px;font-weight:400;color:var(--bleu)}
.bloc-page.sombre .reperes b{color:#E2BC7E}
.oeuvres-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px;margin-top:40px}
.oeuvre-fiche{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 12px 28px -20px rgba(31,45,59,.45)}
.oeuvre-fiche > img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#ddd}
.oeuvre-fiche .corps{padding:20px 22px 22px}
.oeuvre-fiche h3{font-size:24px;color:var(--bleu)}
.oeuvre-fiche .tech{font-size:13px;opacity:.7;margin:4px 0 10px}
.oeuvre-fiche p{font-size:15px}
.oeuvre-fiche details{margin-top:12px;border-top:1px solid rgba(46,67,88,.15);padding-top:10px}
.oeuvre-fiche summary{cursor:pointer;color:var(--rouge);font-weight:500;font-size:15px;list-style:none}
.oeuvre-fiche summary::after{content:" ↓"}
.oeuvre-fiche details[open] summary::after{content:" ↑"}
.oeuvre-fiche details p{margin-top:10px}
.oeuvre-fiche details .note{font-size:12.5px;opacity:.65}
.liste-collections{columns:2 300px;column-gap:50px;margin-top:30px}
.liste-collections div{break-inside:avoid;margin-bottom:22px}
.liste-collections h3{font-size:19px;color:var(--bleu);margin-bottom:4px}
.liste-collections a,.liste-collections span{display:block;font-size:15px;color:var(--encre)}
.membres{columns:3 200px;font-size:15px;margin-top:18px;list-style:none}
.membres li{padding:3px 0;break-inside:avoid}
.encadres{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;margin-top:36px}
.encadre{background:#fff;border-radius:8px;padding:clamp(22px,2.6vw,34px);box-shadow:0 10px 26px -18px rgba(31,45,59,.35)}
.bloc-page.sombre .encadre{background:rgba(242,233,218,.08);box-shadow:none}
.encadre h3{font-size:26px;color:var(--bleu);margin-bottom:10px}
.bloc-page.sombre .encadre h3{color:var(--creme)}
.encadre p,.encadre li{font-size:15px}
.encadre ul{list-style:none;margin:10px 0}
.encadre li{padding:7px 0;border-bottom:1px solid rgba(46,67,88,.12);display:flex;justify-content:space-between;gap:12px}
.bloc-page.sombre .encadre li{border-color:rgba(242,233,218,.15)}
.encadre .bouton{margin-top:16px}
.encadre a{color:inherit}
.code{font-family:"Courier New",monospace;background:rgba(46,67,88,.08);padding:2px 6px;border-radius:3px;font-size:14px}
.a-completer{display:inline-block;background:#FCDFE4;color:#8F1D4A;font-size:12px;font-weight:500;padding:3px 8px;border-radius:3px;margin-left:6px;vertical-align:middle}
.picto{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:15px;margin-right:10px;flex:none}
.picto.non{background:#F4D5D1;color:var(--rouge)}.picto.oui{background:#D6EBDC;color:#2F7A46}.picto.partiel{background:#F5E6C8;color:#8A6420}
.acc-ligne{display:flex;align-items:flex-start;padding:12px 0;border-bottom:1px solid rgba(46,67,88,.12);font-size:16px}
@media (max-width:900px){.deux-col,.ex-tete.avec-photo{grid-template-columns:1fr}}
/* lisibilité des encadrés (boutons, prix, IBAN) */
.deux-col > *,.encadres > *{min-width:0}
.encadre{overflow-wrap:anywhere}
.encadre a.bouton,.encadre a.bouton:visited{color:var(--creme)}
.encadre a.bouton.clair{color:var(--bleu)}
.encadre a.bouton.clair:hover{color:var(--creme)}
.encadre li > span:first-child{flex:1}
.encadre li > span:last-child{white-space:nowrap;font-weight:500}
.code{display:inline-block;white-space:nowrap;margin-top:4px}

/* Page Burnand : portrait du peintre aligné sur le titre, taille mesurée */
.col-peintre{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:start;margin-top:10px}
.col-peintre h2{font-size:clamp(32px,4vw,58px);color:var(--bleu);margin:0 0 24px;max-width:16ch}
.portrait-peintre{justify-self:center;max-width:340px;width:100%;margin-top:8px}
.portrait-peintre img{width:100%;height:auto;max-height:440px;object-fit:contain}

/* Visite numérique : texte de médiation */
.salle-v .texte p + p{margin-top:12px}
.salle-v .a-regarder{font-size:15px;line-height:1.55;border-left:3px solid var(--ocre);padding-left:14px}
.salle-v .a-regarder b{display:block;font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--rouge);font-weight:500;margin-bottom:4px}
.salle-v .texte{max-width:420px}

/* ---- Carte d'accès (Leaflet) ---- */
.carte-osm{aspect-ratio:1/1;border-radius:2px;overflow:hidden;background:#e8e4dc;z-index:0}
.carte-osm .leaflet-control-attribution{font-size:10px}
.pt{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;font:700 12px/1 "DM Sans",sans-serif;box-shadow:0 2px 6px rgba(0,0,0,.3)}
.pt-musee{background:var(--rouge);border:3px solid #fff}
.pt-gare{background:var(--bleu);color:#fff;border:2px solid #fff}
.pt-bus{background:#fff;color:var(--bleu);border:2px solid var(--bleu)}
.pt-p{background:#2f6fb5;color:#fff;border-radius:5px;border:2px solid #fff}
.etiquette-musee{font:600 13px/1.2 "DM Sans",sans-serif;color:var(--bleu);border:0;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.legende-carte{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:8px;font-size:14px;line-height:1.35}
.legende-carte li{display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:start}
.legende-carte .pt{width:20px;height:20px;font-size:11px;box-shadow:none}
.legende-carte .pt-gare svg{width:12px;height:12px}
.legende-carte .pt-musee{border-width:2px}
.carte-osm .leaflet-tile-pane{filter:saturate(.55) contrast(.95)}

/* ---- Soutenir : IBAN bien visible + bloc TWINT ---- */
.iban{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;background:#fff;border-left:4px solid var(--rouge);padding:14px 16px;margin:16px 0 6px;border-radius:2px}
.iban span{flex-basis:100%;font-size:12px;letter-spacing:.14em;text-transform:uppercase;opacity:.7}
.iban b{font:600 clamp(17px,1.8vw,21px)/1.25 "DM Sans",sans-serif;letter-spacing:.05em;font-variant-numeric:tabular-nums;color:var(--bleu);word-break:break-word}
.iban .copier{margin-left:auto;font:500 13px "DM Sans",sans-serif;background:var(--bleu);color:var(--creme);border:0;border-radius:999px;padding:7px 14px;cursor:pointer}
.iban-sombre{background:rgba(242,233,218,.1);border-left-color:var(--ocre)}
.iban-sombre b{color:var(--creme)}
.iban-sombre .copier{background:var(--creme);color:var(--bleu)}
.don-grille{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,380px);gap:clamp(32px,6vw,100px);align-items:center}
.don-qr{margin:0;justify-self:end;width:100%;max-width:380px}
.don-qr img{display:block;width:100%;height:auto;border-radius:16px;box-shadow:0 24px 50px -24px rgba(0,0,0,.6)}
.don-qr figcaption{color:var(--creme);opacity:.8;font-size:14px;margin-top:12px;text-align:center}
@media (max-width:820px){.don-grille{grid-template-columns:1fr}.don-qr{justify-self:center;max-width:300px}}

/* ---- Sélection de la collection ---- */
.col-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:clamp(20px,3vw,36px);margin-top:32px}
.col-oeuvre{margin:0}
.col-img{aspect-ratio:4/5;background:#fff;display:flex;align-items:center;justify-content:center;padding:14px;box-shadow:0 18px 36px -24px rgba(31,45,59,.5)}
.col-img img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.col-oeuvre figcaption{margin-top:12px;display:grid;gap:3px;font-size:14px;line-height:1.4}
.col-oeuvre figcaption b{font-family:"Fraunces",serif;font-weight:400;font-size:19px;color:var(--bleu)}
.col-oeuvre figcaption small{opacity:.7;font-size:12.5px}
.don-grille h2{font-size:clamp(32px,4vw,58px);color:var(--creme);margin:10px 0 18px;max-width:20ch}
.don-grille .surtitre{display:block}
.don-grille .surtitre{color:#E2BC7E}

/* ===== Logo du musée dans l'en-tête ===== */
.entete .logo{flex-direction:row;align-items:center;gap:14px}
.logo-meb{position:relative;display:block;height:44px;aspect-ratio:640/279;flex:none}
.logo-meb img,.logo-meb .lm-noir{position:absolute;inset:0;width:100%;height:100%}
.logo-meb .lm-noir{background:currentColor;-webkit-mask:url(../img/logo/logo-meb-noir.png) center/contain no-repeat;mask:url(../img/logo/logo-meb-noir.png) center/contain no-repeat}
.logo-txt{display:flex;flex-direction:column;line-height:1}
@media (max-width:640px){.logo-meb{height:34px}.entete .logo{gap:10px}}

/* ===== Pages d'approfondissement (textes repris de l'ancien site) ===== */
.texte-long .fig-texte,.fig-texte{margin:30px 0}
.fig-texte img{display:block;max-width:100%;height:auto;max-height:78vh;width:auto;box-shadow:0 2px 4px rgba(0,0,0,.15),0 24px 40px -24px rgba(0,0,0,.45)}
.fig-texte figcaption{font-size:13.5px;opacity:.75;margin-top:10px;line-height:1.45}
.texte-long blockquote{margin:24px 0;padding:4px 0 4px 22px;border-left:3px solid var(--ocre);font-style:italic}
.texte-long h3{margin:34px 0 12px}
.texte-long sup a{text-decoration:none;color:var(--rouge);font-size:.8em;padding:0 1px}
.notes-bas{margin-top:40px;padding-top:18px;border-top:1px solid rgba(46,67,88,.2);font-size:13.5px;line-height:1.5;opacity:.85;list-style:none}
.notes-bas li{margin-bottom:6px}
.notes-bas li a{text-decoration:none;color:var(--rouge);margin-right:4px}
.dates-clefs{list-style:none;padding:0}
.dates-clefs li{padding:8px 0;border-bottom:1px solid rgba(46,67,88,.15)}
.sommaire-oeuvres{display:flex;flex-wrap:wrap;gap:10px 22px}
.sommaire-oeuvres a{color:var(--bleu);font-family:var(--f-titre);font-size:19px;text-decoration:none;border-bottom:1px solid rgba(46,67,88,.3)}
.retour-musee{margin-top:44px}
.retour-musee a,.lien-suite{color:var(--rouge);text-decoration:none;font-weight:500;border-bottom:1px solid currentColor}
.lien-suite{display:inline-block;margin-top:18px}
.entete.plein .logo-meb .lm-noir,.page-visite .entete:not(.sombre) .logo-meb .lm-noir{background:#111}
.logo-meb{height:50px}
@media (max-width:640px){.logo-meb{height:36px}}

.carte-visite .pour{display:block;font-size:14px;color:var(--rouge);margin:-4px 0 8px}
.formule p{font-size:15px;margin:10px 0}

/* Visite numérique sur téléphone : lecture verticale, une œuvre sous l'autre */
@media (max-width:700px){
  .hz{height:auto!important}
  .hz-scene{position:static;height:auto;overflow:visible}
  .hz-piste{display:block;height:auto;overflow:visible;transform:none!important;scroll-snap-type:none}
  .panneau{width:auto;height:auto;display:block;padding:44px var(--pad);border-bottom:1px solid rgba(46,67,88,.14)}
  .ouverture{padding-top:120px;padding-bottom:36px}
  .ouverture h1{font-size:40px}
  .ouverture .consigne{display:none}
  .salle-v figure{margin:0 0 20px}
  .salle-v figure img{width:100%;max-width:100%;max-height:none;height:auto}
  .salle-v .texte,.salle-v figure{opacity:1!important;transform:none!important}
  .salle-v .texte{max-width:none}
  .salle-v .texte p{max-width:none;font-size:17px;line-height:1.6}
  .salle-v h2{font-size:28px}
  .fin-v{padding:56px var(--pad) 64px;border-bottom:0}
  .fin-v h2{font-size:28px;line-height:1.25}
  .hz-nav{display:none}
}

/* ===== Version téléphone : simplifications (déc. 2026) ===== */
.horaires-court{display:none}
.deplier{display:none}
@media (max-width:700px){
  /* accueil : ouverture sur un seul écran, sans animation */
  .heros{height:100svh}
  .expos{margin-top:0;min-height:0}
  .heros .cartel{display:none}
  /* accueil : horaires en une ligne */
  .horaires-court{display:block;font-size:17px;line-height:1.5;margin-top:6px}
  #table-horaires,#note-horaires{display:none}
  /* accueil : images de la visite numérique sans débordement */
  .vn-accroche{overflow:hidden}
  .vn-images{height:230px}
  /* musée : portrait au-dessus, texte en pleine largeur */
  .col-peintre{grid-template-columns:1fr}
  .portrait-peintre{order:-1;justify-self:start;max-width:200px;margin:0 0 6px}
  /* musée : la collection en deux colonnes */
  .col-grille{grid-template-columns:1fr 1fr;gap:18px 14px}
  .col-oeuvre figcaption{font-size:12.5px}
  .col-oeuvre figcaption b{font-size:16px}
  .col-oeuvre figcaption small{font-size:11.5px}
  /* musée : listes longues repliées */
  .pliable:not(.ouvert){max-height:300px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 65%,transparent);mask-image:linear-gradient(#000 65%,transparent)}
  .liste-collections,.membres{columns:1}
  .deplier{display:inline-block;margin-top:10px;background:none;border:1px solid currentColor;color:inherit;border-radius:30px;padding:9px 20px;font:500 14px var(--f-texte);cursor:pointer}
}
