/* site18 — visite automatique, vignettes, fiches, échelle typographique par variante. */

/* Échelle : B et C ont un œil plus petit que A, on compense légèrement. */
#intro h1{font-size:calc(clamp(42px,7vw,104px)*var(--fs));letter-spacing:-.005em}
#intro p.copy{font-size:calc(20px*var(--fs))}
#panel h2{font-size:calc(30px*var(--fs))}
#panel p,#panel li{font-size:calc(16px*var(--fs))}
#works h2{font-size:calc(42px*var(--fs))}
.card .t{font-size:calc(21px*var(--fs))}
#lb .info h3{font-size:calc(32px*var(--fs))}
.eyebrow{letter-spacing:var(--ls-cap)}
body{font-kerning:normal;text-rendering:optimizeLegibility}

/* Arrivée : bouton et phrase d'aide */
#intro .hint{font:13px/1.5 var(--sans);color:#f3ead8b3;margin:16px 0 0;max-width:30rem}

/* Ancienne rangée de points remplacée par les vignettes */
#steps{display:none}

/* Fondu des sauts directs */
#stage img.ghost{z-index:2;opacity:1;transition:opacity .5s ease;pointer-events:none}
#stage video{transition:opacity .5s ease}
@media(prefers-reduced-motion:reduce){#stage video{transition:none}}

/* ---------- Vignettes en haut (centrées dans l'en-tête sur grand écran) ---------- */
#thumbs{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:14px;
  opacity:0;pointer-events:none;transition:opacity .6s;max-width:calc(100vw - 24px);box-sizing:border-box}
#thumbs.on{opacity:1;pointer-events:auto}
#thumbs .th{all:unset;cursor:pointer;display:block;position:relative;line-height:0;opacity:.62;transition:opacity .25s;touch-action:manipulation;flex:0 0 auto}
#thumbs .th img{height:40px;width:auto;display:block;box-shadow:0 1px 4px #000a}
#thumbs .th-a{margin-left:12px}
#thumbs .th-a::before{content:"";position:absolute;left:-14px;top:6px;bottom:6px;width:1px;background:#d9b87866}
#thumbs .th::after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:1px;background:transparent;transition:background .25s}
#thumbs .th.cur{opacity:1}
#thumbs .th.cur::after{background:var(--gold)}
#thumbs .th:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(hover:hover) and (pointer:fine){#thumbs .th:hover{opacity:1}}
/* Écrans moyens : sous l'en-tête, pour ne pas toucher le nom ni le menu. */
@media(max-width:1199px){
  #thumbs{top:100%;transform:translate(-50%,6px);padding:9px 12px 12px;background:#0d0b099e}
}
#tag{top:auto;left:auto;right:14px;bottom:10px;transform:none}

/* ---------- Pause / lecture ---------- */
#tourbar{position:fixed;z-index:4;left:40px;bottom:max(32px,env(safe-area-inset-bottom));opacity:0;pointer-events:none;transition:opacity .6s}
#tourbar.on{opacity:1;pointer-events:auto}
#tp{all:unset;cursor:pointer;display:flex;align-items:center;gap:14px;padding:6px 22px 6px 6px;background:#0d0b09c2;border:1px solid #d9b87840;border-radius:40px;color:var(--cream);touch-action:manipulation}
#tp:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#tp .ring{position:relative;width:48px;height:48px;flex:0 0 48px}
#tp svg{position:absolute;inset:0;transform:rotate(-90deg)}
#tp .rbg{fill:none;stroke:#f3ead833;stroke-width:2}
#tp .rfg{fill:none;stroke:var(--gold);stroke-width:2;stroke-dasharray:131.95;stroke-dashoffset:131.95}
#tp .ico{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
#tourbar[data-state="playing"] #tp .ico{width:12px;height:14px;border-left:4px solid var(--cream);border-right:4px solid var(--cream);box-sizing:border-box}
#tourbar[data-state="paused"] #tp .ico,#tourbar[data-state="idle"] #tp .ico{width:0;height:0;border-style:solid;border-width:8px 0 8px 13px;border-color:transparent transparent transparent var(--cream);margin-left:2px}
#tourbar[data-state="ended"] #tp .ico{width:14px;height:14px;border:2px solid var(--cream);border-top-color:transparent;border-radius:50%;box-sizing:border-box}
#tp .tl{display:flex;flex-direction:column;gap:3px;min-width:0}
#tstate{font:500 12px/1.2 var(--sans);letter-spacing:var(--ls-cap);text-transform:uppercase;color:#fff;white-space:nowrap}
#twhere{font:calc(15px*var(--fs))/1.25 var(--serif);color:#f3ead8d9;white-space:nowrap}
#twhere:empty{display:none}
#twhere i{color:var(--gold)}
@media(hover:hover) and (pointer:fine){#tp:hover{border-color:var(--gold)}}

/* ---------- Page Les œuvres et fiche ---------- */
.card .t{font-style:italic;margin-top:14px}
.card .s{font:13px var(--sans);color:#f3ead8a6;margin-top:5px;letter-spacing:.01em}
#lb dl{margin:0}
#lb dd{margin:0;text-align:right;font:calc(16px*var(--fs))/1.35 var(--serif);font-variant-numeric:oldstyle-nums}
#lb .row{align-items:baseline}
#lb .k{font:11px var(--sans);letter-spacing:var(--ls-cap)}

/* ---------- Mobile ---------- */
@media(max-width:700px){
  #thumbs{top:100%;transform:translate(-50%,2px);gap:10px;padding:8px 10px 12px;max-width:calc(100vw - 16px)}
  #thumbs .th img{height:36px}
  #thumbs .th::after{bottom:-6px}
  #thumbs .th-a{margin-left:8px}
  #thumbs .th-a::before{left:-10px}
  #tourbar{left:50%;transform:translateX(-50%);bottom:max(18px,env(safe-area-inset-bottom))}
  #tp{gap:12px;padding-right:18px}
  #twhere{font-size:calc(14px*var(--fs))}
  #tag{left:auto;right:56px;bottom:auto;top:calc(max(10px,env(safe-area-inset-top)) + 13px);transform:none;font-size:9px}
  #intro .hint{font-size:12.5px;margin-top:12px}
}
@media(prefers-reduced-motion:reduce){#thumbs,#tourbar,#stage img.ghost{transition:none}}
