/* v22o : picture autour du still, sans boîte supplémentaire (layoutMedia inchangé) */
#stage picture{display:contents}
/* ===== site22 (TEST) — propositions bio / son / bas. Paramètres : ?bio=1..3 ?son=1..3 ?bas=1..3 (0 = site21) ===== */
#tstate .sh2,#tall .sh2{display:none}
.bio-tools{display:none}
.bio-portrait{display:none}

/* ---------------- SON ---------------- */
/* son=1 : rond discret (cercle fin, icône seule) */
html[data-son="1"] #sndwrap #tsnd,html[data-son="3"] #sndwrap #tsnd{width:44px;height:44px;min-width:44px;min-height:44px;padding:0!important;border-radius:50%!important;
  border:1px solid #f6efe066!important;background:#14110ea6!important;color:#f6efe0!important;box-shadow:none!important;display:flex;align-items:center;justify-content:center;border-left-width:1px!important}
html[data-son="1"] #sndwrap #tsnd .lb,html[data-son="2"] #sndwrap #tsnd .lb,html[data-son="3"] #sndwrap #tsnd .lb{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
html[data-son="1"] #sndwrap #tsnd[aria-pressed="false"],html[data-son="3"] #sndwrap #tsnd[aria-pressed="false"]{color:#f6efe08c!important;border-color:#f6efe033!important}
/* son=2 : petit rond sombre sans bordure + point doré (la luciole) quand la musique joue */
html[data-son="2"] #sndwrap #tsnd{width:44px;height:44px;min-width:44px;min-height:44px;padding:0!important;border:0!important;border-radius:50%!important;
  background:radial-gradient(circle,#14110ecc 0 17px,transparent 18px)!important;color:#d9b878!important;box-shadow:none!important;display:flex;align-items:center;justify-content:center;position:relative}
html[data-son="2"] #sndwrap #tsnd::after{content:"";position:absolute;right:9px;top:9px;width:5px;height:5px;border-radius:50%;background:#f2d38a;box-shadow:0 0 6px 2px #f2d38a88;animation:luc22 2.6s ease-in-out infinite}
html[data-son="2"] #sndwrap #tsnd[aria-pressed="false"]{color:#f6efe080!important}
html[data-son="2"] #sndwrap #tsnd[aria-pressed="false"]::after{display:none}
@keyframes luc22{0%,100%{opacity:.45}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){html[data-son="2"] #sndwrap #tsnd::after{animation:none}}
/* son=3 : rond discret en haut, à gauche du menu (mobile) ; en bas à droite sur ordinateur */
@media(max-width:700px){
  html[data-son="3"] #sndwrap{top:max(10px,env(safe-area-inset-top));bottom:auto!important;right:calc(max(16px,env(safe-area-inset-right)) + 48px)}
  html[data-son="3"] #sndwrap #tsnd{background:transparent!important}
}

/* ---------------- BAS (barre de visite) — mobile portrait ---------------- */
@media(max-width:700px){
  html[data-bas="1"],html[data-bas="3"]{--band:calc(52px + env(safe-area-inset-bottom))}
  html[data-bas="2"]{--band:calc(104px + env(safe-area-inset-bottom))}
  html[data-bas="1"] .shade-b,html[data-bas="3"] .shade-b{height:96px!important}
  html[data-bas="2"] .shade-b{display:none}
  html[data-bas="1"] #tourbar,html[data-bas="2"] #tourbar,html[data-bas="3"] #tourbar{left:0!important;right:0!important;bottom:0!important;transform:none!important;max-width:none!important;
    box-sizing:border-box;z-index:7;gap:0!important;background:none;border:0;padding:0 max(12px,env(safe-area-inset-left)) env(safe-area-inset-bottom)!important}
  html:not([data-bas="0"]) #tourbar #twhere{background:none!important;box-shadow:none!important;border:0!important;padding:0!important;min-width:0!important}
  html:not([data-bas="0"]) #tourbar #twhere .k{color:#f6efe0!important}
  html:not([data-bas="0"]) .tctl{background:none!important;border:0!important;flex-wrap:nowrap!important;row-gap:0!important}
  html:not([data-bas="0"]) .tctl::after{display:none!important}
  html:not([data-bas="0"]) #tp .ring{display:none!important}
  html:not([data-bas="0"]) #tp,html:not([data-bas="0"]) #trs,html:not([data-bas="0"]) #tall{min-height:44px!important;margin:0!important;padding:0 10px!important;display:inline-flex!important;align-items:center;gap:7px;
    font:11px/1 var(--sans)!important;letter-spacing:.12em!important;text-transform:uppercase;color:#f6efe0e6!important;background:none!important;border:0!important;text-shadow:none!important;box-shadow:none!important;white-space:nowrap;flex:0 0 auto!important;width:auto!important;order:0!important}
  html:not([data-bas="0"]) #tall{color:var(--acc,#d9b878)!important}
  html:not([data-bas="0"]) #tp::before,html:not([data-bas="0"]) #trs::before,html:not([data-bas="0"]) #tall::before,html:not([data-bas="0"]) #tall::after{display:none!important}
  html:not([data-bas="0"]) #tp .prog{display:none!important}
  html:not([data-bas="0"]) #tstate .lg,html:not([data-bas="0"]) #tall .lg,html:not([data-bas="0"]) #trs .lg{display:none!important}
  html:not([data-bas="0"]) #tstate .sh2,html:not([data-bas="0"]) #tall .sh2,html:not([data-bas="0"]) #trs .sh{display:inline!important}
  html:not([data-bas="0"]) #tall .arr{width:18px}
  html:not([data-bas="0"]) #tp .ico{transform:scale(.75)}
  /* séparateurs fins entre les commandes */
  html:not([data-bas="0"]) #trs,html:not([data-bas="0"]) #tall:not([hidden]){position:relative}
  html:not([data-bas="0"]) #trs::after,html:not([data-bas="0"]) #tall:not([hidden])::before{content:""!important;display:block!important;position:absolute!important;left:0;top:15px;bottom:15px;width:1px;background:#f6efe040!important;right:auto!important;height:auto!important}
  html:not([data-bas="0"]) #trs::after{left:0}
  /* progression de l'arrêt : un filet doré en haut de la barre (remplace l'anneau) */
  html:not([data-bas="0"]) #tourbar::before{content:"";position:absolute;left:0;top:0;height:1px;width:calc(var(--p,0)*100%);background:#d9b878b3}
  html:not([data-bas="0"]) #tourbar:not([data-state="playing"])::before{opacity:.35}

  /* bas=1 : UNE ligne fine tout en bas (compteur · pause · entrée · [œuvres]) + son à droite */
  html[data-bas="1"] #tourbar{height:var(--band);flex-direction:row!important;align-items:center!important;padding-right:calc(max(12px,env(safe-area-inset-right)) + 52px)!important;
    background:linear-gradient(#0d0b0900,#0d0b09b3 40%,#0d0b09e0)!important}
  html[data-bas="1"] #tourbar #twhere{flex:0 0 auto;padding-right:8px!important}
  html[data-bas="1"].at-artist #tourbar #twhere{display:none!important}
  html[data-bas="1"] #twhere .k{font-size:calc(17px*var(--fs))!important}
  html[data-bas="1"] #sndwrap,html[data-bas="2"] #sndwrap{bottom:calc(4px + env(safe-area-inset-bottom))!important}
  html[data-son="3"][data-bas="1"] #tourbar,html[data-son="3"][data-bas="3"] #tourbar{padding-right:max(12px,env(safe-area-inset-right))!important}

}
/* Téléphone en paysage : même ligne fine pour toutes les variantes */
@media(max-height:500px) and (orientation:landscape){

  html:not([data-bas="0"]){--band:calc(52px + env(safe-area-inset-bottom))}
  html:not([data-bas="0"]) .shade-b{height:96px!important}
  html:not([data-bas="0"]) #tourbar,html[data-bas="2"] #tourbar,html[data-bas="3"] #tourbar{left:0!important;right:0!important;bottom:0!important;transform:none!important;max-width:none!important;
    box-sizing:border-box;z-index:7;gap:0!important;background:none;border:0;padding:0 max(12px,env(safe-area-inset-left)) env(safe-area-inset-bottom)!important}
  html:not([data-bas="0"]) #tourbar #twhere{background:none!important;box-shadow:none!important;border:0!important;padding:0!important;min-width:0!important}
  html:not([data-bas="0"]) #tourbar #twhere .k{color:#f6efe0!important}
  html:not([data-bas="0"]) .tctl{background:none!important;border:0!important;flex-wrap:nowrap!important;row-gap:0!important}
  html:not([data-bas="0"]) .tctl::after{display:none!important}
  html:not([data-bas="0"]) #tp .ring{display:none!important}
  html:not([data-bas="0"]) #tp,html:not([data-bas="0"]) #trs,html:not([data-bas="0"]) #tall{min-height:44px!important;margin:0!important;padding:0 10px!important;display:inline-flex!important;align-items:center;gap:7px;
    font:11px/1 var(--sans)!important;letter-spacing:.12em!important;text-transform:uppercase;color:#f6efe0e6!important;background:none!important;border:0!important;text-shadow:none!important;box-shadow:none!important;white-space:nowrap;flex:0 0 auto!important;width:auto!important;order:0!important}
  html:not([data-bas="0"]) #tall{color:var(--acc,#d9b878)!important}
  html:not([data-bas="0"]) #tp::before,html:not([data-bas="0"]) #trs::before,html:not([data-bas="0"]) #tall::before,html:not([data-bas="0"]) #tall::after{display:none!important}
  html:not([data-bas="0"]) #tp .prog{display:none!important}
  html:not([data-bas="0"]) #tstate .lg,html:not([data-bas="0"]) #tall .lg,html:not([data-bas="0"]) #trs .lg{display:none!important}
  html:not([data-bas="0"]) #tstate .sh2,html:not([data-bas="0"]) #tall .sh2,html:not([data-bas="0"]) #trs .sh{display:inline!important}
  html:not([data-bas="0"]) #tall .arr{width:18px}
  html:not([data-bas="0"]) #tp .ico{transform:scale(.75)}
  /* séparateurs fins entre les commandes */
  html:not([data-bas="0"]) #trs,html:not([data-bas="0"]) #tall:not([hidden]){position:relative}
  html:not([data-bas="0"]) #trs::after,html:not([data-bas="0"]) #tall:not([hidden])::before{content:""!important;display:block!important;position:absolute!important;left:0;top:15px;bottom:15px;width:1px;background:#f6efe040!important;right:auto!important;height:auto!important}
  html:not([data-bas="0"]) #trs::after{left:0}
  /* progression de l'arrêt : un filet doré en haut de la barre (remplace l'anneau) */
  html:not([data-bas="0"]) #tourbar::before{content:"";position:absolute;left:0;top:0;height:1px;width:calc(var(--p,0)*100%);background:#d9b878b3}
  html:not([data-bas="0"]) #tourbar:not([data-state="playing"])::before{opacity:.35}

  /* bas=1 : UNE ligne fine tout en bas (compteur · pause · entrée · [œuvres]) + son à droite */
  html:not([data-bas="0"]) #tourbar{height:var(--band);flex-direction:row!important;align-items:center!important;padding-right:calc(max(12px,env(safe-area-inset-right)) + 52px)!important;
    background:linear-gradient(#0d0b0900,#0d0b09b3 40%,#0d0b09e0)!important}
  html:not([data-bas="0"]) #tourbar #twhere{flex:0 0 auto;padding-right:8px!important}
  html:not([data-bas="0"]).at-artist #tourbar #twhere{display:none!important}
  html:not([data-bas="0"]) #twhere .k{font-size:calc(17px*var(--fs))!important}
  html:not([data-bas="0"]) #sndwrap,html[data-bas="2"] #sndwrap{bottom:calc(4px + env(safe-area-inset-bottom))!important}
  html[data-son="3"]:not([data-bas="0"]) #tourbar{padding-right:max(12px,env(safe-area-inset-right))!important}

  /* paysage : pas de compteur en haut ni de socle, la ligne fine suffit */
  html[data-bas="3"] #tourbar #twhere{position:static!important;display:flex!important;text-shadow:none!important}
  html[data-son="3"] #sndwrap{top:auto!important;bottom:calc(4px + env(safe-area-inset-bottom))!important;right:max(12px,env(safe-area-inset-right))!important}
  html[data-son="3"] #sndwrap #tsnd{background:#14110ea6!important}
}
@media(max-width:700px){
  /* bas=2 : SOCLE plein (la scène s'arrête au-dessus) — ligne 1 : où l'on est + son ; ligne 2 : commandes réparties */
  html[data-bas="2"] #tourbar{height:var(--band);background:#14110e!important;border-top:1px solid #d9b87833!important;flex-direction:column!important;align-items:stretch!important;justify-content:center;gap:2px!important}
  html[data-bas="2"] #tourbar #twhere{height:44px;display:flex!important;align-items:flex-start!important;justify-content:center;padding-left:10px!important;align-self:flex-start;width:auto!important}
  html[data-bas="2"] #twhere .k{font-size:calc(18px*var(--fs))!important}
  html[data-bas="2"] .tctl{justify-content:space-between}
  html[data-bas="2"] #sndwrap{bottom:calc(52px + env(safe-area-inset-bottom))!important}
  html[data-bas="2"][data-son="3"] #sndwrap{bottom:auto!important}
  html[data-bas="2"] #stage{background:#14110e}

  /* bas=3 : compteur EN HAUT (sous les vignettes) ; en bas, seulement les commandes, centrées */
  html[data-bas="3"] #tourbar{height:var(--band);flex-direction:row!important;align-items:center!important;justify-content:center!important;
    background:linear-gradient(#0d0b0900,#0d0b09b3 40%,#0d0b09e0)!important;padding-right:calc(max(12px,env(safe-area-inset-right)) + 52px)!important;padding-left:calc(max(12px,env(safe-area-inset-left)) + 52px)!important}
  html[data-bas="3"][data-son="3"] #tourbar{padding-left:max(12px,env(safe-area-inset-left))!important}
  html[data-bas="3"] #tourbar #twhere{position:fixed!important;left:0;right:0;top:calc(var(--hdr,130px) + 4px);display:flex!important;justify-content:center;align-items:center!important;pointer-events:none;text-shadow:0 1px 8px #000c!important}
  html[data-bas="3"] #twhere .k{font-size:calc(15px*var(--fs))!important;letter-spacing:.12em!important}
  html[data-bas="3"].panel-open #tourbar #twhere{display:none!important}
  html[data-bas="3"] #sndwrap{bottom:calc(4px + env(safe-area-inset-bottom))!important}

  /* panneau ouvert : la barre garde sa place, le texte s'arrête au-dessus (plus aucune superposition) */
  html:not([data-bas="0"]).panel-open #tourbar{background:#14110ef7!important;border-top:1px solid #d9b87833!important}
  html:not([data-bas="0"]).panel-open #panel{bottom:var(--band)!important;height:auto!important;padding-bottom:28px!important}
  html:not([data-bas="0"]).panel-open #sndwrap{z-index:9}
}

html #tall#tall[hidden]{display:none!important}
/* ---------------- BIO ---------------- */
html[data-bio="1"] .bio-tools,html[data-bio="2"] .bio-tools,html[data-bio="3"] .bio-tools{display:block;position:sticky;bottom:-28px;margin:0 -40px -28px;padding:26px 0 10px;text-align:center;
  background:linear-gradient(#f6efe000,#f6efe0 55%);transition:opacity .35s;pointer-events:none}
html[data-bio] #panel.end .bio-more{visibility:hidden}
html[data-bio]:not([data-bio="0"]) #panel{padding-bottom:28px!important}
.bio-more{all:unset;pointer-events:auto;cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;font:11px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-acc,#7a3b2a);border-bottom:1px solid currentColor}
.bio-more:focus-visible{outline:2px solid var(--ink-acc,#7a3b2a);outline-offset:2px}
.bio-more .t-more,.bio-more .t-less{display:none}
.bio-more svg{animation:bob22 1.8s ease-in-out infinite}
@keyframes bob22{0%,100%{transform:translateY(0)}50%{transform:translateY(3px)}}
@media(prefers-reduced-motion:reduce){.bio-more svg{animation:none}}
/* Ordinateur : la scène glisse à gauche pour que la photo reste entière à côté de la bio */
@media(min-width:701px){
  html[data-bio]:not([data-bio="0"]).panel-open.at-artist #stage > *{transform:translateX(max(-60px,calc((100vw - 177.78vh) / 2)))}
  html[data-bio]:not([data-bio="0"]) #stage > *{transition:transform .6s}
  html[data-bio]:not([data-bio="0"]) #stage{transition:transform .6s}
  html[data-bio="2"] .bio-portrait{display:block;height:200px;margin:0 0 22px;background:url(img/artiste_portrait.webp) 50% 22%/cover;box-shadow:0 0 0 1px #2a211826}
}
@media(max-width:700px){
  html[data-bio]:not([data-bio="0"]) #panel{left:0!important;right:0!important;width:auto!important;padding:20px 22px 28px!important;box-sizing:border-box;bottom:var(--band,0px);height:auto!important;
    border-top:1px solid #2a21181f;box-shadow:0 -10px 30px #0006;transform:translateY(calc(100% + 140px));background:#f6efe0!important}
  html[data-bio]:not([data-bio="0"]) #panel.on{transform:none}
  html[data-bio]:not([data-bio="0"]) .bio-tools{margin:0 -22px -28px}
  html[data-bio]:not([data-bio="0"]) #panel h2{font-size:calc(26px*var(--fs))!important;margin-bottom:10px!important;margin-right:56px!important}
  html[data-bio]:not([data-bio="0"]) #x{top:6px!important;right:6px!important}
  html[data-bio]:not([data-bio="0"]) #stage{transition:transform .6s ease}

  /* bio=1 : la photo en haut (scène réduite), le texte dans une feuille qui commence sous la photo */
  html[data-bio="1"] #panel{top:55%!important}
  html[data-bio="1"].panel-open.at-artist #stage{transform:translateY(-4.6%) scale(.8);transform-origin:50% 0}
  html[data-bio="1"].panel-open #thumbs,html[data-bio="3"].panel-open #thumbs{opacity:0!important;pointer-events:none!important}

  /* bio=2 : la bio prend l'écran (sous l'en-tête) mais commence par le portrait de l'artiste */
  html[data-bio="2"] #panel{top:var(--hdr,84px)!important}
  html[data-bio="2"] .bio-portrait{display:block;height:min(36vh,300px);margin:-20px -22px 18px;background:url(img/artiste_portrait.webp) 50% 22%/cover}

  /* bio=3 (défaut site22b) : la feuille colle au bord bas de la photo (aucun vide) ; un toucher l'ouvre EN ENTIER,
     et la bio dépliée commence par la photo de l'artiste, collée au texte */
  html[data-bio="3"][data-bio] #panel#panel{top:var(--bio-top,62%)!important;bottom:var(--band,0px)!important;height:auto!important;overflow:hidden!important;
    padding:14px 22px 28px!important;border-top:0!important;box-shadow:0 -6px 18px #0005;cursor:pointer;transition:transform .6s,top .45s ease}
  html[data-bio="3"][data-bio] #panel#panel.full{top:var(--hdr-seul,64px)!important;overflow:auto!important;cursor:auto;padding-top:0!important}
  html[data-bio="3"].panel-open.at-artist #stage{transform:translateY(calc(-1 * var(--bio-lift,0px)))}
  html[data-bio="3"] #panel .eyebrow{margin-top:0!important}
  html[data-bio="3"] #panel:not(.full) .eyebrow{margin:0 0 6px!important}
  html[data-bio="3"] #panel.full .bio-portrait{display:none!important}
  html[data-bio="3"] #panel:not(.full) .bio-portrait{display:none}
  html[data-bio="3"] #panel.full #x{background:#f6efe0e6;border-radius:50%;top:10px!important;right:10px!important;position:absolute!important;z-index:2}
  html[data-bio="3"] .bio-tools{position:absolute;left:0;right:0;bottom:0;margin:0!important;padding:40px 0 6px}
  html[data-bio="3"] #panel.full .bio-tools{position:sticky;bottom:-28px;margin:0 -22px -28px!important}
  html[data-bio="3"] #panel.end .bio-more{visibility:visible}
  html[data-bio="3"] .bio-more .t-scroll{display:none}
  html[data-bio="3"] #panel:not(.full) .bio-more .t-more{display:inline}
  html[data-bio="3"] #panel.full .bio-more .t-less{display:inline}
  html[data-bio="3"] #panel:not(.full) .bio-more svg{transform:rotate(180deg);animation:none}
}
/* l'étiquette d'aperçu ne doit gêner aucune variante (test) */
@media(max-width:700px){html:not([data-bas="0"]) #tag{top:calc(max(10px,env(safe-area-inset-top)) + 40px)!important;bottom:auto!important;right:8px!important;left:auto!important}}

@media(min-width:701px) and (min-height:501px){
  html:not([data-bas="0"]) #tourbar{max-width:calc(50vw - 10.6vh - 70px)!important}
  html:not([data-bas="0"]) .tctl{flex-wrap:wrap!important;row-gap:2px}
  html:not([data-bio="0"]).panel-open #tourbar{max-width:calc(50vw - 10.6vh - 130px)!important}
  html:not([data-son="0"]).panel-open #sndwrap{right:calc(min(440px,92vw) + 16px)!important}
}
/* Téléphone en paysage, bio ouverte : bio sur la moitié droite, la scène glisse à gauche (photo visible), le son reste hors de la bio */
@media(max-height:500px) and (orientation:landscape){
  html[data-bio]:not([data-bio="0"]) #panel#panel{width:50vw!important;top:0!important;height:100%!important;padding:18px 26px 28px!important;box-shadow:-10px 0 30px #0006}
  html[data-bio]:not([data-bio="0"]) #panel#panel{left:auto!important;right:0!important;bottom:0!important;border-top:0!important;transform:translateX(102%)}
  html[data-bio]:not([data-bio="0"]) #panel#panel.on{transform:none}
  html[data-bas="3"] #tourbar#tourbar{justify-content:flex-start!important;padding-left:max(12px,env(safe-area-inset-left))!important}
  html[data-bio="3"][data-bio] #panel#panel#panel{height:100%!important;overflow:auto!important}
  html[data-bio="3"] .bio-more .t-more,html[data-bio="3"] .bio-more .t-less{display:none!important}
  html[data-bio="3"] .bio-more .t-scroll{display:inline!important}
  html[data-bio="3"] .bio-tools{position:sticky!important;margin:0 -26px -28px!important}
  html:not([data-bas="0"]).at-artist #trs .sh{display:none!important}
  html:not([data-bas="0"]).at-artist #trs{padding:0 12px!important;min-width:44px;justify-content:center}
  html:not([data-bio="0"]) .bio-tools{margin:0 -26px -28px!important}
  html:not([data-bio="0"]).panel-open.at-artist #stage{transform:translate(-25vw,-8px) scale(.9)!important;transform-origin:50% 0}
  html:not([data-bio="0"]).panel-open #sndwrap{right:calc(50vw + 12px)!important}
  html:not([data-bio="0"]).panel-open #tourbar{max-width:calc(50vw - 64px)!important;padding-right:12px!important}
  html:not([data-bio="0"]).panel-open header nav{visibility:hidden}
  html[data-bio="2"] .bio-portrait{height:150px}
}

@media(min-width:701px) and (min-height:501px){html:not([data-bio="0"]) #panel{padding-top:28px!important}}
@media(max-height:500px) and (orientation:landscape){html[data-bio="3"] .bio-portrait{display:none!important} html[data-bio="3"] #panel#panel#panel{cursor:auto}}

/* ===== site22 : page d'accueil lisible — ?accueil=1..4 (0 = comme site21) ===== */
html[data-accueil="4"] #stage{transition:transform 1.1s cubic-bezier(.4,0,.2,1);transform-origin:50% 0}
@media(max-width:700px) and (orientation:portrait){
  html[data-accueil]:not([data-accueil="0"]) #intro .eyebrow{margin-bottom:12px}
  html[data-accueil]:not([data-accueil="0"]) #intro .eyebrow::before{margin-bottom:10px}
  html[data-accueil]:not([data-accueil="0"]) #intro h1{margin-bottom:14px}
  html[data-accueil]:not([data-accueil="0"]) #intro p.copy{margin:0 0 20px;font-size:calc(16px*var(--fs))}
  html[data-accueil]:not([data-accueil="0"]) #intro .hint{margin-top:10px}
  /* 1 — Texte en bas, dans la zone sombre sous le tableau, dégradé doux */
  html[data-accueil="1"] #intro{justify-content:flex-end;padding-bottom:max(26px,calc(env(safe-area-inset-bottom) + 16px));
    background:linear-gradient(180deg,#0d0b0900 0%,#0d0b0900 44%,#0d0b09a6 54%,#0d0b09eb 64%,#0d0b09 100%)}
  /* 2 — Titre en haut sous l'en-tête, invitation en bas : le tableau éclairé reste libre au centre */
  html[data-accueil="2"] #intro{justify-content:flex-start;padding-top:calc(var(--hdr,64px) + 4px);padding-bottom:max(26px,calc(env(safe-area-inset-bottom) + 16px));
    background:linear-gradient(180deg,#0d0b09f2 0%,#0d0b09d9 calc(var(--hdr,64px) + 120px),#0d0b0900 36%,#0d0b0900 60%,#0d0b09c7 70%,#0d0b09f5 80%,#0d0b09 100%)}
  html[data-accueil="2"][data-accueil="2"] #intro p.copy{margin-top:auto}
  /* 3 — Cartel crème rectangulaire (comme une étiquette de musée) posé en bas */
  html[data-accueil="3"] #intro{inset:auto 14px max(14px,env(safe-area-inset-bottom)) 14px;padding:20px 20px 16px;justify-content:flex-start;
    background:#f6efe0;border-top:3px solid var(--gold);box-shadow:0 10px 40px #000a;border-radius:0}
  /* 4 — Scène recadrée : le tableau remonte, le texte se pose sur le parquet sombre */
  html[data-accueil="4"].intro-on #stage{transform:translateY(-35%) scale(1.35)}
  html[data-accueil="4"] #intro{justify-content:flex-end;padding-bottom:max(26px,calc(env(safe-area-inset-bottom) + 16px));
    background:linear-gradient(180deg,#0d0b0900 0%,#0d0b0900 50%,#0d0b0999 58%,#0d0b09e0 68%,#0d0b09f5 100%)}
}
/* Cartel crème : couleurs d'encre (téléphone et ordinateur) */
@media not ((max-height:500px) and (orientation:landscape)){
  html[data-accueil="3"] #intro .eyebrow{color:#6b4f1a!important}
  html[data-accueil="3"] #intro .eyebrow::before{background:#6b4f1a}
  html[data-accueil="3"] #intro h1{color:#1f1812}
  html[data-accueil="3"] #intro h1 em{color:#7a5418}
  html[data-accueil="3"] #intro p.copy{color:#3a2f24}
  html[data-accueil="3"] #intro #enter{color:#1f1812;border-bottom-color:#7a5418}
  html[data-accueil="3"] #intro #enter:hover{color:#7a5418}
  html[data-accueil="3"] #intro #enter:focus-visible{outline-color:#7a5418}
  html[data-accueil="3"] #intro .hint{color:#5a4b3c}
}
/* Ordinateur */
@media(min-width:701px) and (min-height:501px){
  html[data-accueil="1"] #intro{justify-content:flex-end;padding-bottom:13vh;background:linear-gradient(0deg,#0d0b09f2 0%,#0d0b09b3 38%,#0d0b0900 70%),radial-gradient(ellipse at 20% 80%,#0d0b09b3,#0d0b0900 60%)}
  html[data-accueil="2"] #intro{justify-content:flex-start;padding-top:calc(var(--hdr,84px) + 5vh);background:linear-gradient(90deg,#0d0b09e6 0%,#0d0b09a6 34%,#0d0b0900 58%)}
  html[data-accueil="3"] #intro{inset:auto auto 10vh 6vw;width:min(440px,33vw);padding:30px 34px 24px;justify-content:flex-start;background:#f6efe0;border-top:3px solid var(--gold);box-shadow:0 16px 60px #000b}
  html[data-accueil="3"] #intro h1{font-size:calc(clamp(40px,4.6vw,72px)*var(--fs))}
  html[data-accueil="3"] #intro p.copy{font-size:calc(18px*var(--fs))}
  html[data-accueil="4"].intro-on #stage{transform:translateX(12vw) scale(1.12);transform-origin:70% 45%}
  html[data-accueil="4"] #intro{background:linear-gradient(90deg,#0d0b09f2 0%,#0d0b09c7 30%,#0d0b0900 55%)}
}

/* ===== site22 : lumière de l'accueil (accueil=2) — ?lumiere=0..5 (0 = voiles d'origine) ===== */
html{--t0:.95;--t1:.85;--b1:.78;--b2:.96;--b3:1;--vl:0;--d0:.9;--d1:.65;--sh:1;--fx:none}
html[data-lumiere="1"]{--t0:.82;--t1:.62;--b1:.55;--b2:.78;--b3:.88;--vl:.35;--d0:.8;--d1:.5;--sh:.9;--fx:none}
html[data-lumiere="2"]{--t0:.68;--t1:.45;--b1:.42;--b2:.64;--b3:.76;--vl:.45;--d0:.7;--d1:.4;--sh:.8;--fx:brightness(1.06)}
html[data-lumiere="3"]{--t0:.55;--t1:.32;--b1:.32;--b2:.5;--b3:.62;--vl:.55;--d0:.6;--d1:.3;--sh:.7;--fx:brightness(1.12) sepia(.06)}
html[data-lumiere="4"]{--t0:.42;--t1:.2;--b1:.2;--b2:.38;--b3:.5;--vl:.6;--d0:.5;--d1:.22;--sh:.6;--fx:brightness(1.18) sepia(.08)}
html[data-lumiere="5"]{--t0:.3;--t1:.1;--b1:.1;--b2:.26;--b3:.38;--vl:.62;--d0:.4;--d1:.15;--sh:.5;--fx:brightness(1.26) sepia(.1) saturate(1.05)}
html #stage{transition:transform 1.1s cubic-bezier(.4,0,.2,1),filter 1.1s ease}
html[data-accueil="2"]:not([data-lumiere="0"]).intro-on #stage{filter:var(--fx)}
html[data-accueil="2"]:not([data-lumiere="0"]).intro-on .shade{opacity:var(--sh)}
@media(max-width:700px) and (orientation:portrait){
  html[data-accueil="2"]:not([data-lumiere="0"]) #intro{background:
    radial-gradient(78% 150px at 24% calc(var(--hdr,64px) + 62px),rgb(13 11 9/var(--vl)),rgb(13 11 9/0)),
    radial-gradient(95% 200px at 30% calc(100% - 130px),rgb(13 11 9/var(--vl)),rgb(13 11 9/0)),
    linear-gradient(180deg,rgb(13 11 9/var(--t0)) 0%,rgb(13 11 9/var(--t1)) calc(var(--hdr,64px) + 120px),rgb(13 11 9/0) 36%,rgb(13 11 9/0) 60%,rgb(13 11 9/var(--b1)) 70%,rgb(13 11 9/var(--b2)) 80%,rgb(13 11 9/var(--b3)) 100%)}
}
@media(min-width:701px) and (min-height:501px){
  html[data-accueil="2"]:not([data-lumiere="0"]) #intro{background:
    radial-gradient(38vw 40vh at 18% 40%,rgb(13 11 9/var(--vl)),rgb(13 11 9/0)),
    linear-gradient(90deg,rgb(13 11 9/var(--d0)) 0%,rgb(13 11 9/var(--d1)) 34%,rgb(13 11 9/0) 58%)}
}

/* site22c : bio ouverte = texte seul (photo masquée), Kaizen 19/11 09:01 */
@media(max-width:700px) and (orientation:portrait){
  html[data-bio="3"][data-bio] #panel#panel.full{padding-top:20px!important;box-shadow:0 -1px 0 #2a211833}
  html[data-bio="3"] #panel.full .eyebrow,html[data-bio="3"] #panel.full h2{margin-right:56px!important}
  html[data-bio="3"] #panel.full #x{position:fixed!important;top:calc(var(--hdr-seul,64px) + 8px)!important;right:8px!important;width:44px;height:44px;background:#efe6d3;border:1px solid #2a211833;z-index:3}
}
/* croix de fermeture toujours visible quand la bio défile (paysage et ordinateur) */
@media(max-height:500px) and (orientation:landscape){html[data-bio]:not([data-bio="0"]) #panel #x{position:fixed!important;top:8px!important;right:max(8px,env(safe-area-inset-right))!important;background:#efe6d3;border:1px solid #2a211833;z-index:3}}
@media(min-width:701px) and (min-height:501px){html[data-bio]:not([data-bio="0"]) #panel #x{position:fixed!important;top:calc(var(--hdr,84px) + 12px)!important;right:16px!important;background:#efe6d3;border:1px solid #2a211833;z-index:3}}
/* site22c : œuvres sans liseré — ni bordure, ni contour, ni arrondi, fond sombre derrière l'image */
.card .im,#lb .pic,#thumbs .th{background:transparent}
.card .im{background:#14110e;border:0;outline:0;border-radius:0}
.card img,#lb img,#thumbs .th img{border:0!important;outline:0;border-radius:0!important;background:#0b0907}
.card img{backface-visibility:hidden}
/* site22c : grande vue mobile — la zone image garde sa hauteur (l'image ne passe plus sous la barre « Retour » ni sur la fiche) */
@media(max-width:900px){#lb .pic{flex:0 0 auto}}

/* ===== site22d : lumière 31..33 (entre 3 et plus clair, surtout sol et fond) ===== */
html[data-lumiere="31"]{--t0:.55;--t1:.32;--b1:.24;--b2:.4;--b3:.5;--vl:.6;--d0:.58;--d1:.28;--sh:.7;--fx:brightness(1.15) sepia(.06)}
html[data-lumiere="32"]{--t0:.55;--t1:.32;--b1:.17;--b2:.31;--b3:.4;--vl:.64;--d0:.56;--d1:.26;--sh:.7;--fx:brightness(1.19) sepia(.07)}
html[data-lumiere="33"]{--t0:.52;--t1:.3;--b1:.1;--b2:.22;--b3:.3;--vl:.68;--d0:.54;--d1:.24;--sh:.68;--fx:brightness(1.23) sepia(.08)}

/* ===== site22d : titre de l'accueil sur ordinateur — ?titre=1|2 (0 = taille d'origine) ===== */
@media(min-width:701px) and (min-height:501px){
  html[data-titre="1"] #intro h1{font-size:calc(clamp(44px,4.2vw,76px)*var(--fs));margin-bottom:20px}
  html[data-titre="2"] #intro h1{font-size:calc(clamp(38px,3.3vw,60px)*var(--fs));margin-bottom:18px}
  html[data-titre="1"] #intro p.copy,html[data-titre="2"] #intro p.copy{font-size:calc(18px*var(--fs))}
}

/* ===== site22d : paragraphe de l'accueil — ?texte=1..3 (0 = d'origine). Mots inchangés. ===== */
html[data-texte]:not([data-texte="0"]) #intro p.copy .br0{display:none}
/* 1 — une phrase par ligne, taille ajustée pour que chaque phrase tienne sur sa ligne */
html[data-texte="1"] #intro p.copy .s,html[data-texte="3"] #intro p.copy .s{display:block;white-space:nowrap}
html[data-texte="1"] #intro p.copy,html[data-texte="3"] #intro p.copy{font-size:var(--copy-fit,inherit)!important;max-width:none}
/* 2 — retours contrôlés : on ne coupe qu'entre deux groupes de mots, lignes équilibrées */
html[data-texte="2"] #intro p.copy{text-wrap:balance}
html[data-texte="2"] #intro p.copy .s1,html[data-texte="2"] #intro p.copy .s2,html[data-texte="2"] #intro p.copy .c{white-space:nowrap}
/* 3 — une phrase par ligne, la luciole en italique (forme de cartel) */
html[data-texte="3"] #intro p.copy .s3{font-style:italic;margin-top:.25em;color:#f6ecd9}
/* site22d : téléphones courts (≤ 700 px de haut) — l'invitation reste sous le cadre */
@media(max-width:700px) and (orientation:portrait) and (max-height:700px){
  html[data-accueil="2"] #intro .hint{display:none}
  html[data-accueil="2"] #intro p.copy{margin-bottom:12px!important;line-height:1.4}
  html[data-accueil="2"] #intro h1{font-size:clamp(30px,9vw,40px)}
  html[data-accueil="2"] #intro .eyebrow{margin-bottom:8px!important}
}
/* site22d : téléphone en paysage — la scène glisse à droite (cadre libre), le texte reste dans la colonne de gauche */
@media(max-height:500px) and (orientation:landscape){
  html[data-accueil="2"].intro-on #stage{transform-origin:0 50%;transform:scale(1.2)}
  html[data-accueil="2"] #intro{justify-content:center;padding-top:calc(var(--hdr,56px) - 4px);padding-bottom:8px}
  html[data-accueil="2"] #intro p.copy{max-width:calc(52vw - 9vw);font-size:calc(14px*var(--fs))}
  html[data-accueil="2"] #intro h1{margin-bottom:4px}
  html[data-accueil="2"] #intro .eyebrow{margin-bottom:6px}
  html[data-accueil="2"] #intro .eyebrow::before{display:none}
}

/* ===== site22d : fiche d'œuvre sur un seul écran — ?fiche=1..3 (0 = d'origine, avec défilement) ===== */
html:not([data-fiche="0"]) #lb#lb{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;height:100vh;height:100dvh;overflow:hidden;flex-direction:initial}
html:not([data-fiche="0"]) #lb .ov-bar{position:relative;grid-column:1/-1}
html:not([data-fiche="0"]) #lb .ov-bar{padding-right:72px}
html:not([data-fiche="0"]) #lb#lb .pic{min-height:0;padding:10px 14px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
html:not([data-fiche="0"]) #lb#lb .pic img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
html:not([data-fiche="0"]) #lb#lb .info{overflow:hidden;min-height:0;font-size:calc(16px*var(--ffs,1));padding:calc(14px*var(--ffs,1)) 18px max(12px,env(safe-area-inset-bottom))}
html:not([data-fiche="0"]) #lb .info .ey{font-size:calc(11px*var(--ffs,1))}
html:not([data-fiche="0"]) #lb .info h3{font-size:calc(26px*var(--ffs,1)*var(--fs,1));margin:4px 0 6px;line-height:1.15}
html:not([data-fiche="0"]) #lb .info h3 .an{font:calc(14px*var(--ffs,1)) var(--sans);font-style:normal;letter-spacing:.08em;opacity:.8;margin-left:6px;white-space:nowrap}
html:not([data-fiche="0"]) #lb .info .meta{font:calc(13px*var(--ffs,1))/1.45 var(--sans);letter-spacing:.02em;margin:0 0 calc(10px*var(--ffs,1))}
html:not([data-fiche="0"]) #lb .info .desc{font-size:calc(15px*var(--ffs,1));line-height:1.45;margin:0 0 10px}
html:not([data-fiche="0"]) #lb .info .cartel{display:none}
html:not([data-fiche="0"]) #lb .fnav{display:flex;align-items:stretch;gap:8px;margin:0}
html:not([data-fiche="0"]) #lb .fnav button{all:unset;box-sizing:border-box;cursor:pointer;min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;font:12px var(--sans);letter-spacing:.08em;text-transform:uppercase;border:1px solid currentColor;border-radius:0}
html:not([data-fiche="0"]) #lb .fnav .fv,html:not([data-fiche="0"]) #lb .fnav .fv0{flex:1 1 auto}
html:not([data-fiche="0"]) #lb .fnav .fv{border-color:transparent;text-decoration:underline;text-underline-offset:4px;text-transform:none;letter-spacing:.02em;font-size:13px}
html:not([data-fiche="0"]) #lb .fnav button:focus-visible,html:not([data-fiche="0"]) #lb .pa:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
html:not([data-fiche="0"]) #lb .pa{all:unset;box-sizing:border-box;cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;display:none;align-items:center;justify-content:center;background:#0b0907b3;color:#f3ead8;border:1px solid #f3ead833;z-index:2}
html:not([data-fiche="0"]) #lb .pa-p{left:10px}html:not([data-fiche="0"]) #lb .pa-n{right:10px}
@media(hover:hover) and (pointer:fine){html:not([data-fiche="0"]) #lb .pa:hover{background:#0b0907;color:var(--gold)}}
body:has(#lb.on) #sndwrap{top:max(6px,env(safe-area-inset-top));bottom:auto}
html[data-fiche="0"] body:has(#lb.on) #sndwrap{top:auto;bottom:max(16px,env(safe-area-inset-bottom))}

/* 1 — cartel sombre compact sous le tableau */
html[data-fiche="1"] #lb#lb .info,html[data-fiche="2"] #lb#lb .info{background:#0b0907;color:#f3ead8;border-top:1px solid #d9b87833}
html[data-fiche="1"] #lb .info .ey,html[data-fiche="2"] #lb .info .ey{color:var(--gold)}
html[data-fiche="1"] #lb .info .meta,html[data-fiche="2"] #lb .info .meta{color:#f3ead8cc}
html[data-fiche="1"] #lb .fnav button,html[data-fiche="2"] #lb .fnav button{color:#f3ead8;border-color:#f3ead855}
/* 2 — cartel posé en bas de l'image (mobile), flèches sur les côtés */
@media(max-width:800px) and (orientation:portrait){
  html[data-fiche="2"] #lb#lb{grid-template-rows:auto minmax(0,1fr)}
  html[data-fiche="2"] #lb#lb .pic{grid-row:2;grid-column:1;padding:0}
  html[data-fiche="2"] #lb#lb .info{grid-row:2;grid-column:1;align-self:end;z-index:3;background:linear-gradient(180deg,#0b090700,#0b0907d9 28%,#0b0907f2);border-top:0;padding-top:calc(34px*var(--ffs,1))}
  html[data-fiche="2"] #lb .pa{display:flex;top:42%}
  html[data-fiche="2"] #lb .fnav .fa{display:none}
}
/* 3 — cartel crème de musée (lignes Style / Technique / Année) */
html[data-fiche="3"] #lb#lb .info{background:#f6efe0;color:#1f1812}
html[data-fiche="3"] #lb .info .meta{display:none}
html[data-fiche="3"] #lb .info .cartel{display:block;margin:0 0 calc(10px*var(--ffs,1))}
html[data-fiche="3"] #lb .info .cartel .row{padding:calc(6px*var(--ffs,1)) 0;font-size:calc(13px*var(--ffs,1))}
html[data-fiche="3"] #lb .info .cartel dd{font-size:calc(15px*var(--ffs,1))}
html[data-fiche="3"] #lb .info h3 .an{display:none}
html[data-fiche="3"] #lb .info .ey{color:#6b4f1a}
html[data-fiche="3"] #lb .fnav button{color:#1f1812;border-color:#1f181266}

/* Ordinateur et paysage : tableau à gauche (le plus grand possible), cartel à droite, flèches à côté du tableau */
@media(min-width:801px),(max-height:500px) and (orientation:landscape){
  html:not([data-fiche="0"]) #lb#lb{grid-template-columns:minmax(0,1fr) min(340px,36vw);grid-template-rows:auto minmax(0,1fr)}
  html:not([data-fiche="0"]) #lb#lb .pic{grid-row:2;grid-column:1;padding:18px 72px}
  html:not([data-fiche="0"]) #lb#lb .info{grid-row:2;grid-column:2;display:flex;flex-direction:column;justify-content:center;padding:24px 26px;border-top:0;border-left:1px solid #d9b87833}
  html:not([data-fiche="0"]) #lb .pa{display:flex}
  html:not([data-fiche="0"]) #lb .fnav .fa{display:none}
  html:not([data-fiche="0"]) #lb .info h3{font-size:calc(30px*var(--ffs,1)*var(--fs,1))}
}
@media(max-height:500px) and (orientation:landscape){
  html:not([data-fiche="0"]) #lb#lb .pic{padding:8px 64px}
  html:not([data-fiche="0"]) #lb#lb .info{padding:12px 18px;justify-content:center}
  html:not([data-fiche="0"]) #lb .ov-bar{min-height:48px;padding-top:2px;padding-bottom:2px}
  html:not([data-fiche="0"]) #lb .info h3{font-size:calc(22px*var(--ffs,1)*var(--fs,1))}
}
@media(max-width:800px) and (orientation:portrait){
  html[data-fiche="1"] #lb .pa,html[data-fiche="3"] #lb .pa{display:none}
}

/* ===== site22d : indication de clic dans « Toutes les œuvres » — ?indice=1..3 ===== */
.card .vf,.card .zb{display:none}
.card .im{position:relative}
/* 1 — « Voir la fiche → » sous chaque vignette */
html[data-indice="1"] .card .vf{display:inline-flex;align-items:center;gap:8px;min-height:44px;font:11px var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--gold);border-bottom:1px solid #d9b87866;margin-top:2px}
@media(hover:hover) and (pointer:fine){html[data-indice="1"] .card:hover .vf{color:#f3ead8;border-bottom-color:currentColor}}
/* 2 — petite icône « agrandir » dans le coin de chaque vignette */
html[data-indice="2"] .card .zb{display:flex;position:absolute;right:8px;bottom:8px;width:36px;height:36px;align-items:center;justify-content:center;background:#0b0907bf;color:#f3ead8;border:1px solid #f3ead840}
/* 3 — phrase d'aide mise en avant sous le titre de la page */
html[data-indice="3"] #works .sub{display:inline-flex;align-items:center;gap:10px;color:var(--gold);font:12px var(--sans);letter-spacing:.14em;text-transform:uppercase;border-left:2px solid var(--gold);padding:6px 0 6px 12px}
html:not([data-indice="0"]):not([data-indice="3"]) #works .sub{color:#f3ead8b3}
html:not([data-indice="0"]) .card:focus-visible{outline:2px solid var(--gold);outline-offset:6px}
@media(max-width:380px){html:not([data-fiche="0"]) #lb .fnav .fl{display:none}}
/* site22d : ordinateur — l'aide et le texte restent dans la zone sombre de gauche */
@media(min-width:701px) and (min-height:501px){
  html[data-accueil="2"] #intro .hint{max-width:min(30rem,32vw);color:#f3ead8e0}
  html[data-accueil="2"] #intro p.copy{max-width:min(34rem,36vw)}
}
html:not([data-fiche="0"]) #lb#lb{background:#0b0907}

/* ===== site22e : ordinateur — retour à la disposition d'origine (texte centré à gauche, posé vers le banc et le parquet), lumière éclaircie, titre=1 ===== */
@media(min-width:701px) and (min-height:501px){
  html[data-accueil="2"] #intro{justify-content:center;padding-top:calc(var(--hdr,84px) + 9vh);padding-bottom:0}
  html[data-accueil="2"]:not([data-lumiere="0"]) #intro#intro{
    background:radial-gradient(36vw 46vh at 21% 60%,rgb(13 11 9/var(--vl)),rgb(13 11 9/0)),linear-gradient(90deg,rgb(13 11 9/var(--d0)) 0%,rgb(13 11 9/var(--d1)) 34%,rgb(13 11 9/0) 58%)}
}
@media(min-width:701px) and (min-height:501px){
  /* texte d'origine sur 2 lignes sur ordinateur */
  html[data-texte] #intro p.copy .s{display:inline!important;white-space:normal!important}
  html[data-texte] #intro p.copy .br0{display:inline!important}
  html[data-texte] #intro p.copy{font-size:calc(18px*var(--fs))!important}
  html[data-accueil="2"]:not([data-lumiere="0"]) #intro#intro{
    background:radial-gradient(40vw 52vh at 22% 58%,rgb(13 11 9/calc(var(--vl) + .18)),rgb(13 11 9/0)),linear-gradient(90deg,rgb(13 11 9/var(--d0)) 0%,rgb(13 11 9/var(--d1)) 34%,rgb(13 11 9/0) 58%)}
}
/* site22e : bouton son visible dès que la visite démarre, même si « muet » était mémorisé (avant : caché → impossible de remettre le son) */
html.music-visit #sndwrap{display:block}
/* état muet bien lisible : barre diagonale sur le rond */
html:not([data-son="0"]) #sndwrap #tsnd[aria-pressed="false"]::before{display:block!important;content:"";position:absolute;left:50%;top:7px;bottom:7px;width:1.5px;background:currentColor;transform:rotate(-45deg);border:0;margin:0}
/* site22 : à l'atelier, la bio s'ouvre deux fois plus vite (ouverture seulement ; la fermeture garde .6s) */
html.at-artist #panel.on,html[data-bio="3"][data-bio].at-artist #panel#panel.on{transition-duration:.3s,.25s}
html.panel-open.at-artist #stage,html.panel-open.at-artist #stage > *{transition-duration:.3s!important}

/* ===== site22 : lien « Les œuvres » toujours visible sur mobile (?menu=1..3, défaut 1) ===== */
#nw{display:none}
@media(max-width:700px){
  html[data-menu]:not([data-menu="0"]) header{gap:4px}
  html[data-menu]:not([data-menu="0"]) .mark{min-width:0}
  html[data-menu]:not([data-menu="0"]) #nw{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:7px;min-height:44px;min-width:44px;padding:0 8px;margin-left:auto;
    font:500 11px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#f3ead8;white-space:nowrap;flex:0 0 auto}
  html[data-menu]:not([data-menu="0"]) #nw .t{padding:3px 0;border-bottom:1px solid #d9b87899}
  html[data-menu]:not([data-menu="0"]) #nw:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
  html[data-menu]:not([data-menu="0"]) #nav-toggle{margin-left:0}
  #nw .gi,#nw .n{display:none}
  html[data-menu="2"] #nw .n{display:inline;letter-spacing:.06em;color:#d9b878}
  html[data-menu="3"] #nw .gi{display:block;color:#d9b878}
  html[data-menu="3"] #nw .t{border-bottom:0;padding:0}
  /* bio ouverte : comme le menu */
  html:not([data-bio="0"]).panel-open #nw{visibility:hidden}
}

/* ===== site22 : styles du titre « Suivre la lumière. » (?h1=1..7, 0 = actuel) ===== */
#intro h1 .l1,#intro h1 .l2{display:inline}
/* 1 — sérif légère, sans accent de couleur (Cormorant Garamond Light) */
html[data-h1="1"] #intro h1{font-family:'Cormorant Garamond',Georgia,serif!important;font-weight:300;letter-spacing:-.005em;line-height:.98}
html[data-h1="1"] #intro h1 .l1,html[data-h1="1"] #intro h1 .l2{font-size:1.16em}
html[data-h1="1"] #intro h1 em{color:inherit;font-style:italic;font-weight:300}
/* 2 — capitales gravées espacées (Marcellus SC, comme les plaques) */
html[data-h1="2"] #intro h1{font-family:'Marcellus SC',Georgia,serif!important;letter-spacing:.16em;line-height:1.12;text-transform:uppercase}
html[data-h1="2"] #intro h1 .l1,html[data-h1="2"] #intro h1 .l2{font-size:.74em}
html[data-h1="2"] #intro h1 em{font-style:normal}
/* 3 — « lumière » écrit à la plume (Pinyon Script) */
html[data-h1="3"] #intro h1 em{font-family:'Pinyon Script',cursive!important;font-style:normal;font-size:1.72em;line-height:.7;letter-spacing:0;margin-left:.06em;padding-right:.04em;vertical-align:-.04em}
html[data-h1="3"] #intro h1 .l2{display:inline-block;margin-top:-.08em}
/* 4 — lignes décalées, filet (éditorial) */
html[data-h1="4"] #intro h1 .l1{font-style:italic}
html[data-h1="4"] #intro h1 .l2{display:inline-block;margin-left:1.15em;position:relative}
html[data-h1="4"] #intro h1 .l2::before{content:"";position:absolute;left:-1.0em;top:.62em;width:.8em;height:1px;background:#d9b878}
html[data-h1="4"] #intro h1 em{font-style:normal}
/* 5 — halo doux sur le mot */
html[data-h1="5"] #intro h1 em{color:#f7e2ad;text-shadow:0 0 .28em #ffd88a66,0 0 .9em #ffcf7a40}
/* 6 — couleur des tableaux : rouge coquelicot éclairci (pris de « Coquelicot », #b34c44 → #f08a72 pour le contraste) */
html[data-h1="6"] #intro h1 em{color:#f08a72}
/* 7 — capitales gravées (h1=2, Marcellus SC) + halo doux de h1=5 sur « lumière » */
html[data-h1="7"] #intro h1{font-family:'Marcellus SC',Georgia,serif!important;letter-spacing:.16em;line-height:1.12;text-transform:uppercase}
html[data-h1="7"] #intro h1 .l1,html[data-h1="7"] #intro h1 .l2{font-size:.74em}
html[data-h1="7"] #intro h1 em{font-style:normal;color:#f7e2ad;text-shadow:0 0 .28em #ffd88a66,0 0 .9em #ffcf7a40}
html[data-h1="3"] #intro h1{padding-bottom:.24em}

/* ===== site22 (Kaizen 11:11) : barre du bas sans chevauchement, « L’artiste » rouvre la bio ===== */
#tall .sh3,#nw .t2{display:none}
html:not([data-bas="0"]).at-artist #tourbar #twhere{display:flex!important;align-items:center}
#twhere .tbio{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;padding:0 4px 0 0;white-space:nowrap;color:#f6efe0}
#twhere .tbio .ar{display:inline-flex;color:#d9b878;transition:transform .25s}
#twhere .tbio.op .ar{transform:rotate(180deg)}
#twhere .tbio:focus-visible{outline:2px solid #d9b878;outline-offset:2px}
@media(hover:hover) and (pointer:fine){#twhere .tbio:hover{color:#fff}#twhere .tbio:hover .ar{transform:translateY(-2px)}#twhere .tbio.op:hover .ar{transform:rotate(180deg) translateY(-2px)}}
@media(min-width:701px) and (min-height:501px){#tourbar #twhere .tbio{font-size:inherit}}
/* paliers de resserrement (posés par __fitBars seulement si ça chevauche) */
#tourbar.f1 #tall .lg,#tourbar.f1 #tall .sh2{display:none!important}#tourbar.f1 #tall .sh3{display:inline!important}
#tourbar.f2 #tp,#tourbar.f2 #trs,#tourbar.f2 #tall{padding:0 6px!important;letter-spacing:.08em!important}#tourbar.f2 #twhere{padding-right:2px!important}
#tourbar.f3 #trs .sh,#tourbar.f3 #trs .lg{display:none!important}#tourbar.f3 #trs{min-width:44px;justify-content:center}
#tourbar.f4 #tall .arr{display:none!important}
#tourbar.f5 #tstate{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}#tourbar.f5 #tp{min-width:44px;justify-content:center}
#tourbar.f6 #twhere .k{font-size:14px!important}
header.h1 #nw{letter-spacing:.08em!important;padding:0 6px!important}
header.h2 #nw .t{display:none!important}header.h2 #nw .t2{display:inline!important;padding:3px 0;border-bottom:1px solid #d9b87899}
html[data-menu="3"] header.h2 #nw .t2{border-bottom:0}
header.h3 .mark .brand-one{font-size:13.5px!important}header.h3 .mark{gap:7px!important}
header.h4{padding-left:10px!important;padding-right:6px!important}
@media(max-height:500px) and (orientation:landscape){html[data-h1="3"] #intro h1{padding-bottom:.42em}}


/* ===== site22 : sélecteur FR / EN (pas une pilule, style galerie) ===== */
.lang-sw{display:inline-flex;align-items:center;flex:0 0 auto;margin:0;padding:0;border:0;background:none;gap:0}
.lang-sw button{all:unset;cursor:pointer;box-sizing:border-box;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font:11px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:#f3ead8a8}
.lang-sw button[aria-pressed="true"]{color:#f3ead8;box-shadow:inset 0 -1px 0 #d9b87899}
.lang-sw .sep{color:#d9b87880;font:11px/1 var(--sans);padding:0 2px;pointer-events:none}
.lang-sw button:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
@media(hover:hover) and (pointer:fine){.lang-sw button:hover{color:#fff}}
/* accueil mobile : en bas à droite, hors du flux, pour ne pas remonter le texte sur le mur clair */
.lang-home{margin:2px 0 0;align-self:flex-start}
@media(min-width:701px) and (min-height:501px){
  .lang-home{display:none!important} /* sur ordinateur, le sélecteur est dans le menu d'en-tête */
  #site-nav .lang-sw{margin-left:8px}
}
@media(max-width:700px){
  #site-nav .lang-sw{margin:6px 0 2px;padding-top:8px;border-top:1px solid #d9b87833;align-self:flex-start}
}
/* fiche : titre original conservé sous la traduction */
.card .to,#lb .to{display:block;font-size:.62em;font-style:italic;font-weight:400;letter-spacing:.02em;color:#cbb99acc;margin-top:.15em}
#lb h3 .to{margin-top:.2em}


/* ===== site22 v22n : titres des tableaux en Marcellus SC (même police que h1=7 et les plaques), sans italique ===== */
.card .t,
#lb .info h3{
  font-family:'Marcellus SC',Georgia,serif;
  font-style:normal;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.08em;
  line-height:1.22;
}
.card .t{font-size:calc(16.5px*var(--fs));font-style:normal}
#lb .info h3{font-style:normal}
html:not([data-fiche="0"]) #lb .info h3{font-size:calc(22px*var(--ffs,1)*var(--fs,1));font-style:normal}
@media(min-width:901px){
  html:not([data-fiche="0"]) #lb .info h3{font-size:calc(22px*var(--ffs,1)*var(--fs,1))}
}
@media(max-height:500px) and (orientation:landscape){
  html:not([data-fiche="0"]) #lb .info h3{font-size:calc(20px*var(--ffs,1)*var(--fs,1))}
}
/* année, technique, dimensions : police actuelle, discrète */
#lb .info h3 .an{font-family:var(--sans);font-style:normal;text-transform:none;letter-spacing:.08em}
.card .s{font-style:normal}
/* titre original sous la traduction : même famille, plus petit, discret */
.card .to,#lb .to{
  display:block;
  font-family:'Marcellus SC',Georgia,serif;
  font-style:normal;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.68em;
  color:#cbb99acc;
  margin-top:.2em;
}

/* ===== site22 v22r : attente = le trait de progression existant reste plein et respire si le suivant n’est pas prêt. ===== */
#tourbar.attente-on::before,
#tourbar.attente-on #tp .prog i{animation:att-trait 2s ease-in-out infinite}
@keyframes att-trait{0%,100%{opacity:.55}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){
  #tourbar.attente-on::before,
  #tourbar.attente-on #tp .prog i{animation:none!important;opacity:1}
}
