/* Virginia de Zan : blanc d'atelier, une seule voix typographique fine, rien d'autre que les toiles. */
:root{
  --paper:#f7f6f3;
  --ink:#1c1a18;
  --soft:#8a847c;
  --line:#e2dfd9;
  --on-image:#fbfaf7;
  --rose:#a8706c;         /* rose poudré foncé, pour les titres d'œuvres */
  --f-display:'Italiana','Didot','Bodoni 72',Georgia,serif;
  --f-body:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  --gutter:clamp(16px,3.2vw,44px);
  color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 14px/1.6 var(--f-body);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,h4,p{margin:0}
:focus-visible{outline:1px solid currentColor;outline-offset:4px}

/* En-tête : le nom à gauche, l'icône du menu à droite */
.top{position:fixed;z-index:45;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:baseline;gap:16px;
  padding:calc(22px + env(safe-area-inset-top,0px)) var(--gutter) 18px;transition:color .5s ease}
.top .name{font:400 26px/1 var(--f-display);letter-spacing:.01em}
.top.light{color:var(--on-image)}
.top.solid{background:var(--paper)}
.top .name{white-space:nowrap}
@media(max-width:600px){.top .name{font-size:21px}}

.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;padding:28px var(--gutter) calc(28px + env(safe-area-inset-bottom,0px));font-size:11.5px;color:var(--soft);border-top:1px solid var(--line)}
/* mention de l'exposition dans le pied de page : petit cartouche rose, comme l'onglet */
.foot{align-items:center}
.foot a[href="exposition.html"]{display:inline-block;background:var(--rose);color:var(--on-image);font-weight:500;font-size:12px;letter-spacing:.03em;line-height:1.3;padding:8px 15px;border-radius:2px;transition:background .3s}
.foot a[href="exposition.html"]:hover{background:#94605c}

@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

[hidden]{display:none!important}

/* Fondu entre les pages */
body{animation:pagein .55s ease both}
@keyframes pagein{from{opacity:0}to{opacity:1}}
html.leaving body{opacity:0;transition:opacity .32s ease}

/* Onglet Exposition : vertical, collé au bord gauche ; au survol il s'élargit vers la droite en vignette */
.expo-flag{position:fixed;z-index:40;left:0;top:calc(76px + env(safe-area-inset-top,0px));width:40px;height:176px;overflow:hidden;
  background:var(--rose);color:var(--on-image);box-shadow:6px 8px 24px -12px rgba(60,30,28,.5);
  transition:width .55s cubic-bezier(.65,0,.25,1),height .55s cubic-bezier(.65,0,.25,1)}
.expo-flag .bar{position:absolute;left:0;top:0;width:40px;height:176px;display:flex;align-items:center;justify-content:center;transition:opacity .2s}
.expo-flag .bar b{writing-mode:vertical-rl;transform:rotate(180deg);font:400 21px/1 var(--f-display);letter-spacing:.04em;white-space:nowrap}
.expo-flag .card{position:absolute;left:0;top:0;width:360px;height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;
  background-size:cover;background-position:center;opacity:0;transition:opacity .3s ease}
.expo-flag .card::before{content:"";position:absolute;inset:0;background:rgba(118,74,70,.42)}
.expo-flag .card>*{position:relative}
.expo-flag .card small{font:400 24px/1 var(--f-display);letter-spacing:.03em}
.expo-flag .card b{font:400 38px/1.05 var(--f-display);margin-top:6px}
.expo-flag .card em{font:400 22px/1.1 var(--f-display);font-style:normal}
.expo-flag .card i{font-style:normal;font-size:12px;margin-top:10px}
.expo-flag:hover,.expo-flag:focus-visible{width:360px;height:240px}
.expo-flag:hover .bar,.expo-flag:focus-visible .bar{opacity:0}
.expo-flag:hover .card,.expo-flag:focus-visible .card{opacity:1;transition-delay:.2s}
/* quelques secondes après l'arrivée : l'onglet se déploie un instant, avec un rebond souple, pour attirer l'œil */
.expo-flag.nudge{animation:nudge 1.5s cubic-bezier(.3,0,.3,1)}
@keyframes nudge{0%{width:40px}22%{width:66px}38%{width:46px}52%{width:58px}66%{width:42px}80%{width:49px}100%{width:40px}}
@media(max-width:600px){.expo-flag.nudge{animation-name:nudge-s}}
@keyframes nudge-s{0%{width:24px}22%{width:42px}38%{width:28px}52%{width:36px}66%{width:25px}80%{width:30px}100%{width:24px}}
@media(max-width:600px){.expo-flag{top:auto;bottom:calc(96px + env(safe-area-inset-bottom,0px));width:24px;height:128px}.expo-flag .bar{width:24px;height:128px}.expo-flag .bar b{font-size:15px}}
@media(hover:none){.expo-flag:hover{width:40px;height:176px}.expo-flag:hover .bar{opacity:1}.expo-flag:hover .card{opacity:0}}
@media(hover:none) and (max-width:600px){.expo-flag:hover{width:24px;height:128px}}

/* Menu : icône à trois traits et panneau à droite */
.top .burger{width:44px;height:36px;margin-right:-10px;background:none;border:0;cursor:pointer;color:inherit;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:6px;padding:0 10px}
.top .burger span{display:block;height:1px;background:currentColor;width:24px;transition:transform .4s,opacity .3s,width .3s}
.top .burger span:nth-child(2){width:18px}
.top .burger:hover span:nth-child(2){width:24px}
.menu-veil{position:fixed;inset:0;z-index:60;background:rgba(28,22,20,.3);opacity:0;pointer-events:none;transition:opacity .7s ease}
.menu-panel{position:fixed;z-index:61;top:0;right:0;bottom:0;width:max(33.333vw,340px);max-width:100vw;background:var(--paper);color:var(--ink);
  transform:translateX(100%);visibility:hidden;transition:transform .75s cubic-bezier(.76,0,.24,1),visibility 0s linear .75s;display:flex;flex-direction:column;gap:clamp(28px,5vh,48px);
  padding:calc(86px + env(safe-area-inset-top,0px)) clamp(28px,4vw,56px) calc(32px + env(safe-area-inset-bottom,0px));overflow-y:auto;box-shadow:-20px 0 60px -20px rgba(28,22,20,.3)}
.menu-open .menu-veil{opacity:1;pointer-events:auto}
.menu-open .menu-panel{transform:none;visibility:visible;transition:transform .9s cubic-bezier(.22,1,.36,1),visibility 0s}
/* contenu du menu : fondu rapide, en léger décalé, une fois le panneau presque arrivé */
.menu-panel .m-links a,.menu-panel .m-expo,.menu-panel .m-lang,.menu-panel .m-close{opacity:0;transform:translateX(18px);transition:opacity .2s ease,transform .2s ease,color .6s ease}
.menu-open .menu-panel .m-links a,.menu-open .menu-panel .m-expo,.menu-open .menu-panel .m-lang,.menu-open .menu-panel .m-close{opacity:1;transform:none;transition:opacity .35s ease,transform .5s cubic-bezier(.22,1,.36,1),color .6s ease}
.menu-open .menu-panel .m-close{transition-delay:.25s}
.menu-open .menu-panel .m-links a:nth-child(1){transition-delay:.3s,.3s,0s}
.menu-open .menu-panel .m-links a:nth-child(2){transition-delay:.36s,.36s,0s}
.menu-open .menu-panel .m-links a:nth-child(3){transition-delay:.42s,.42s,0s}
.menu-open .menu-panel .m-expo{transition-delay:.5s}
.menu-open .menu-panel .m-lang{transition-delay:.56s}
.menu-open body{overflow:hidden}
.m-close{position:absolute;top:calc(22px + env(safe-area-inset-top,0px));right:clamp(20px,3vw,40px);background:none;border:0;padding:8px;cursor:pointer;color:var(--ink)}
.m-links{display:flex;flex-direction:column;gap:4px}
.m-links a{font:400 clamp(44px,4.6vw,68px)/1.12 var(--f-display);color:var(--ink)}
.m-links a:hover,.m-links a[aria-current="page"]{color:var(--rose)}
.m-expo{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;aspect-ratio:3/2;width:100%;
  background-size:cover;background-position:center;color:var(--on-image);overflow:hidden}
.m-expo::before{content:"";position:absolute;inset:0;background:rgba(118,74,70,.42);transition:background .4s}
.m-expo:hover::before{background:rgba(118,74,70,.3)}
.m-expo>*{position:relative}
.m-expo small{font-size:11px;letter-spacing:.26em;text-transform:uppercase}
.m-expo b{font:400 clamp(30px,2.6vw,40px)/1.05 var(--f-display);margin-top:6px}
.m-expo em{font:400 20px/1.1 var(--f-display);font-style:normal}
.m-expo i{font-style:normal;font-size:12px;margin-top:10px}
.m-lang{margin-top:auto;display:flex;align-items:baseline;gap:18px;font-size:13px;border-top:1px solid var(--line);padding-top:18px}
.m-lang span{color:var(--soft);margin-right:auto;font-size:12px}
.m-lang button{background:none;border:0;padding:0;font:inherit;color:var(--soft);cursor:pointer}
.m-lang button[aria-pressed="true"]{color:var(--ink);text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
@media(max-width:600px){.menu-panel{width:100vw}}
