/* Héros de l'accueil « îles + Atelier » (v17.39). Écrit à la main ; marche avec templates/universe/_heros-atelier.php et heros-atelier.js.
   Le héros aux îles ; au geste, un anneau d'or s'ouvre depuis le bouton et l'Atelier prend la place du héros.
   Tout est sous .ha-scene (classes « ha- ») pour ne rien croiser du thème. Jetons reliés à ceux du thème (--sr-*). */
.ha-scene{
  --nuit:var(--sr-bg,#03131e);--panneau:var(--sr-panel,#09212d);--or:var(--sr-gold,#d8b571);--or-clair:var(--sr-gold-light,#f5db9e);--encre:var(--sr-ink,#f3ead8);
  --doux:color-mix(in srgb,var(--encre) 76%,transparent);--pale:color-mix(in srgb,var(--encre) 56%,transparent);
  --filet:color-mix(in srgb,var(--or) 18%,transparent);--ombre:color-mix(in srgb,#000 68%,transparent);
  --face:linear-gradient(160deg,color-mix(in srgb,var(--panneau) 86%,var(--or-clair)),color-mix(in srgb,var(--panneau) 78%,var(--nuit)));
  --relief:9px 11px 22px var(--ombre),-4px -4px 12px color-mix(in srgb,var(--or-clair) 5%,transparent),inset 0 1px 0 color-mix(in srgb,var(--or-clair) 22%,transparent),0 0 0 1px color-mix(in srgb,var(--or) 16%,transparent);
  --creux:inset 5px 6px 12px var(--ombre),inset -2px -2px 6px color-mix(in srgb,var(--or-clair) 5%,transparent),0 0 0 1px color-mix(in srgb,var(--or) 14%,transparent);
  --dore:linear-gradient(160deg,var(--or-clair),color-mix(in srgb,var(--or) 88%,var(--nuit)));
  --titre:var(--font-display,Cormorant,"Cormorant Garamond",Georgia,serif);--corps:var(--font-body,DM,"DM Sans",system-ui,sans-serif);
  --ease:cubic-bezier(.23,1,.32,1);--passage:1.15s;--courbe:cubic-bezier(.65,0,.2,1);
  --r1:12px;--r2:20px;--r3:28px;
}

/* 1. La scène et ses deux fonds */
.sr-reference .sr-home-hero.ha-scene,.sr-home-hero.ha-scene{position:relative;display:grid;align-items:center;justify-items:center;place-items:center;
  min-height:calc(100svh - var(--sr-premium-header,var(--sr-header,4.5rem)));height:auto;max-height:none;perspective:none;isolation:isolate;overflow:hidden;text-align:left;
  color:var(--encre);font:400 1rem/1.6 var(--corps)}
.ha-scene *,.ha-scene *::before,.ha-scene *::after{box-sizing:border-box}
.ha-scene [hidden]{display:none!important}
.ha-scene>.ha-heros,.ha-scene>.ha-atelier{grid-area:1/1}
.ha-scene button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ha-scene svg.ha-i{width:1.25em;height:1.25em;fill:currentColor;flex:0 0 auto}
.ha-scene :focus-visible{outline:2px solid var(--or-clair);outline-offset:3px;border-radius:var(--r1)}
.ha-fond{position:absolute;inset:0;z-index:-4;overflow:hidden;-webkit-mask-image:linear-gradient(#000 74%,transparent);mask-image:linear-gradient(#000 74%,transparent)}
.ha-scene .ha-fond img,.ha-scene .ha-fond video{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;border-radius:0}
.ha-scene .ha-fond video{opacity:0;transition:opacity 1.4s ease}.ha-scene .ha-fond video.ha-la{opacity:1}
.ha-scene .ha-iles img,.ha-scene .ha-iles video{object-position:50% 45%;transition:transform 1.5s var(--ease),filter 1.5s ease,opacity 1.4s ease}
.ha-iles::after{content:"";position:absolute;inset:0;background:
  radial-gradient(52% 50% at 50% 52%,color-mix(in srgb,var(--nuit) 88%,transparent),color-mix(in srgb,var(--nuit) 55%,transparent) 55%,transparent 82%),
  linear-gradient(180deg,color-mix(in srgb,var(--nuit) 60%,transparent),transparent 20%)}
.ha-arriere{z-index:-3;clip-path:circle(0 at var(--x,50%) var(--y,62%));transition:clip-path var(--passage) var(--courbe)}
.ha-scene .ha-arriere img{transition:opacity .6s ease}.ha-scene .ha-arriere img.ha-change{opacity:0}
.ha-scene .ha-arriere img.ha-derive{animation:ha-derive 46s ease-in-out infinite alternate}
@keyframes ha-derive{from{transform:scale(1.02)}to{transform:scale(1.1) translate(-1.2%,-.8%)}}
.ha-arriere::after{content:"";position:absolute;inset:0;background:
  linear-gradient(0deg,color-mix(in srgb,var(--nuit) 78%,transparent),transparent 52%),
  linear-gradient(180deg,color-mix(in srgb,var(--nuit) 62%,transparent),transparent 22%)}
.ha-anneau{position:absolute;left:var(--x,50%);top:var(--y,62%);z-index:-2;width:calc(var(--r,150vmax) * 2);height:calc(var(--r,150vmax) * 2);margin:calc(var(--r,150vmax) * -1) 0 0 calc(var(--r,150vmax) * -1);border-radius:50%;pointer-events:none;
  border:2px solid var(--or-clair);box-shadow:0 0 70px 6px color-mix(in srgb,var(--or) 60%,transparent),inset 0 0 70px 6px color-mix(in srgb,var(--or) 45%,transparent);transform:scale(0);opacity:0}
.ha-brumes{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.ha-scene .ha-brumes img{position:absolute;top:50%;width:min(80rem,150%);max-width:none;height:auto;opacity:0;translate:0 -50%;mix-blend-mode:screen;filter:sepia(.35) hue-rotate(175deg) saturate(1.4)}
.ha-brumes img:first-child{right:34%}.ha-brumes img:last-child{left:34%}

/* 2. Le héros */
.ha-heros{display:grid;justify-items:center;text-align:center;width:min(58rem,100% - 2.5rem);padding:2rem 0 3.5rem;transition:opacity .35s ease,transform .5s var(--ease)}
.sr-reference .ha-scene h1,.sr-reference .ha-scene h2{margin:0;padding:0;font-family:var(--titre);font-variant:small-caps;font-weight:500;color:var(--or-clair);text-wrap:balance;letter-spacing:.005em;text-transform:none;
  text-shadow:0 1px 0 rgba(146,118,55,.75),0 .08em .25em rgba(0,0,0,.6)}
.sr-reference .ha-scene h1{font-size:clamp(2rem,10.2vw,5.6rem);line-height:.98;max-width:none}
@media (min-width:761px){.sr-reference .ha-scene h1{font-size:clamp(3rem,6.4vw,5.6rem)}}
.sr-reference .ha-scene .ha-sur{display:flex;align-items:center;gap:.6rem;margin:0 0 .8rem;font:600 .72rem/1.5 var(--corps);font-variant:normal;letter-spacing:.2em;text-transform:uppercase;color:var(--or);text-shadow:0 1px 8px var(--nuit),0 0 2px var(--nuit)}
.sr-reference .ha-scene h1 .ha-sur{justify-content:center;gap:1rem;margin-bottom:1.4rem;color:var(--or-clair)}
.ha-scene h1 .ha-sur::before,.ha-scene h1 .ha-sur::after{content:"";flex:0 1 4.5rem;height:1px;background:linear-gradient(90deg,transparent,var(--or))}
.ha-scene h1 .ha-sur::after{transform:scaleX(-1)}
/* Fleuron sous le titre : deux filets et un losange */
.ha-orn{display:flex;align-items:center;justify-content:center;gap:.7rem;width:min(22rem,70%);margin:1.3rem auto 0}
.ha-orn::before,.ha-orn::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--or) 80%,transparent))}
.ha-orn::after{transform:scaleX(-1)}
.ha-orn i{width:.5rem;height:.5rem;rotate:45deg;background:var(--dore);box-shadow:0 0 0 3px color-mix(in srgb,var(--nuit) 70%,transparent),0 0 0 4px color-mix(in srgb,var(--or) 55%,transparent),0 0 14px color-mix(in srgb,var(--or) 60%,transparent)}
.sr-reference .ha-scene .ha-sous{margin:1.1rem 0 2.2rem;max-width:44rem;font:italic 500 clamp(1.25rem,1.9vw,1.6rem)/1.3 var(--titre);letter-spacing:.01em;color:var(--encre);text-wrap:balance;text-shadow:0 1px 2px var(--nuit),0 0 14px var(--nuit),0 0 30px var(--nuit)}
/* Le bouton : une plaque d'or à double liseré, un médaillon sombre pour le triangle, un halo qui respire */
.ha-scene .ha-bouton{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:1rem;min-height:4.6rem;padding:.45rem 2.4rem .45rem .55rem;border:0;border-radius:999px;color:var(--nuit);
  background:linear-gradient(180deg,color-mix(in srgb,var(--or-clair) 55%,#fff) 0%,var(--or-clair) 34%,var(--or) 62%,color-mix(in srgb,var(--or) 70%,var(--nuit)) 100%);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,#fff 55%,transparent),inset 0 0 0 4px color-mix(in srgb,var(--or) 70%,var(--nuit)),inset 0 0 0 5px color-mix(in srgb,var(--or-clair) 80%,transparent),
    0 0 0 1px color-mix(in srgb,var(--nuit) 80%,transparent),0 0 0 3px color-mix(in srgb,var(--or) 45%,transparent),0 14px 30px color-mix(in srgb,#000 60%,transparent),0 0 46px color-mix(in srgb,var(--or) 34%,transparent);
  transition:transform .16s var(--ease),filter .2s}
.ha-scene .ha-bouton::before{content:"";position:absolute;inset:-1.1rem -1.6rem;z-index:-1;border-radius:999px;background:radial-gradient(closest-side,color-mix(in srgb,var(--or) 42%,transparent),transparent);animation:ha-halo 4.5s ease-in-out infinite alternate;pointer-events:none}
@keyframes ha-halo{from{opacity:.45;transform:scale(.94)}to{opacity:1;transform:scale(1.04)}}
.ha-scene .ha-med{display:grid;place-items:center;width:3.5rem;height:3.5rem;flex:0 0 auto;border-radius:50%;color:var(--or-clair);
  background:radial-gradient(circle at 35% 28%,color-mix(in srgb,var(--panneau) 70%,var(--or)),var(--nuit) 72%);
  box-shadow:inset 0 2px 5px color-mix(in srgb,#000 70%,transparent),0 0 0 1px color-mix(in srgb,var(--or-clair) 75%,transparent),0 0 0 3px color-mix(in srgb,var(--or) 55%,var(--nuit))}
.ha-scene .ha-med svg{width:1.35rem;height:1.35rem;margin-left:.12rem}
.ha-scene .ha-bouton-txt{font:700 clamp(1.3rem,1.7vw,1.55rem)/1 var(--titre);font-variant:small-caps;letter-spacing:.045em;text-shadow:0 1px 0 color-mix(in srgb,#fff 55%,transparent)}
@media (hover:hover){.ha-scene .ha-bouton:hover{filter:brightness(1.07);transform:translateY(-2px)}}
.ha-scene .ha-bouton:active{transform:scale(.97)}
.sr-reference .ha-scene .ha-note{margin:.95rem 0 0;max-width:none;font:400 .84rem/1.5 var(--corps);color:var(--doux);text-shadow:0 1px 8px var(--nuit),0 0 2px var(--nuit)}
.ha-scene .ha-note button{padding:.2rem 0;border:0;background:none;color:var(--or-clair);font-size:.92rem;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--filet)}
.sr-reference .ha-scene .ha-mj{margin:1.7rem 0 0}
.ha-scene .ha-mj button{display:inline-flex;align-items:center;gap:.55rem;min-height:2.75rem;padding:0 1.15rem;border:0;border-radius:999px;font-size:.9rem;color:var(--doux);
  background:color-mix(in srgb,var(--nuit) 46%,transparent);box-shadow:0 0 0 1px var(--filet);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:color .2s,box-shadow .2s,transform .16s var(--ease)}
.ha-scene .ha-mj svg{fill:var(--or)}
.ha-scene .ha-mj button:hover{color:var(--or-clair);box-shadow:0 0 0 1px color-mix(in srgb,var(--or) 55%,transparent)}
.ha-scene .ha-mj button:active{transform:scale(.97)}
.ha-heros.ha-parti{visibility:hidden}
.ha-scene .ha-image{position:absolute;right:1rem;bottom:1rem;z-index:1;display:grid;place-items:center;width:2.75rem;height:2.75rem;padding:0;border:0;border-radius:50%;color:var(--doux);
  background:color-mix(in srgb,var(--nuit) 46%,transparent);box-shadow:0 0 0 1px var(--filet);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:opacity .3s,color .2s}
.ha-scene .ha-image:hover{color:var(--or-clair)}
.ha-scene .ha-image svg{width:1rem;height:1rem}
[data-etat=atelier] .ha-image{opacity:0;pointer-events:none}

/* Titres en or sculpté, nets : le dégradé est dans la lettre ; l'épaisseur vient d'une copie du texte placée dessous (data-t),
   décalée par des ombres franches. Aucun filtre : rien ne bave. Sans background-clip:text, le titre garde l'or clair du thème. */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  /* dessous : le texte lui-meme, en or sombre, avec sa tranche et son ombre */
  .sr-reference .ha-scene .ha-dore[data-t]{position:relative;display:inline-block;padding:0 .04em .06em;font-weight:600;letter-spacing:.012em;color:color-mix(in srgb,var(--or) 42%,var(--nuit));
    text-shadow:0 .014em 0 color-mix(in srgb,var(--or) 42%,var(--nuit)),0 .028em 0 color-mix(in srgb,var(--or) 26%,var(--nuit)),0 .042em 0 color-mix(in srgb,var(--or) 12%,var(--nuit)),
      0 .07em .05em color-mix(in srgb,#000 70%,transparent),0 .16em .34em color-mix(in srgb,#000 75%,transparent),0 0 .9em color-mix(in srgb,var(--nuit) 80%,transparent)}
  /* dessus : la meme ligne, remplie du degrade d'or */
  .sr-reference .ha-scene .ha-dore[data-t]::after{content:attr(data-t);content:attr(data-t) / "";position:absolute;inset:0;padding:inherit;pointer-events:none;text-shadow:none;color:transparent;-webkit-text-fill-color:transparent;
    background:linear-gradient(180deg,color-mix(in srgb,var(--or-clair) 22%,#fff) 12%,var(--or-clair) 40%,color-mix(in srgb,var(--or) 92%,var(--nuit)) 60%,var(--or-clair) 78%,color-mix(in srgb,var(--or-clair) 60%,#fff) 96%);
    background-size:100% 1lh;-webkit-background-clip:text;background-clip:text}
  .sr-reference .ha-scene h1{line-height:1.02}
}
@media (forced-colors:active){.sr-reference .ha-scene .ha-dore[data-t]{color:CanvasText;text-shadow:none}.sr-reference .ha-scene .ha-dore[data-t]::after{display:none}}

/* 3. Le passage : l'anneau s'ouvre, les îles reculent, la brume s'écarte, l'Atelier monte */
[data-etat=atelier] .ha-heros{opacity:0;transform:translateY(-1.5rem) scale(.97);pointer-events:none}
.ha-scene[data-etat=atelier] .ha-iles img,.ha-scene[data-etat=atelier] .ha-iles video{transform:scale(1.45);filter:blur(8px) brightness(.55)}
[data-etat=atelier] .ha-arriere{clip-path:circle(var(--r,150vmax) at var(--x,50%) var(--y,62%))}
[data-etat=atelier] .ha-anneau{animation:ha-anneau var(--passage) var(--courbe) both}
.ha-scene[data-etat=atelier] .ha-brumes img:first-child{animation:ha-brume-g 1.5s ease-out both}
.ha-scene[data-etat=atelier] .ha-brumes img:last-child{animation:ha-brume-d 1.5s ease-out both}
@keyframes ha-anneau{0%{transform:scale(0);opacity:1}72%{opacity:1}100%{transform:scale(1);opacity:0}}
@keyframes ha-brume-g{0%{opacity:0;transform:translateX(16%)}32%{opacity:.7}100%{opacity:0;transform:translateX(-42%)}}
@keyframes ha-brume-d{0%{opacity:0;transform:translateX(-16%)}32%{opacity:.7}100%{opacity:0;transform:translateX(42%)}}
.ha-sans-passage .ha-arriere,.ha-sans-passage .ha-atelier,.ha-sans-passage .ha-heros{transition:none!important}
.ha-scene.ha-sans-passage .ha-anneau,.ha-scene.ha-sans-passage .ha-brumes img{animation:none!important}

/* 4. L'Atelier */
.ha-atelier{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,38rem);gap:clamp(1.5rem,4vw,4rem);align-items:end;width:min(80rem,100% - 2.5rem);padding:1.5rem 0 1.75rem;
  opacity:0;transform:translateY(1.75rem);transition:opacity .4s ease,transform .5s var(--ease)}
[data-etat=atelier] .ha-atelier{opacity:1;transform:none;transition:opacity .6s ease .5s,transform .8s var(--ease) .5s}
.ha-lieu{padding-bottom:1.25rem;text-shadow:0 1px 12px var(--nuit),0 0 2px var(--nuit)}
.sr-reference .ha-scene .ha-nom{font-size:clamp(2.2rem,4.6vw,4.2rem);line-height:1}
.sr-reference .ha-scene .ha-phrase{margin:.9rem 0 0;max-width:26rem;font:italic 400 clamp(1.15rem,1.7vw,1.35rem)/1.35 var(--titre);color:var(--encre)}
.sr-reference .ha-scene .ha-etat{display:flex;align-items:center;gap:.55rem;margin:1.1rem 0 0;min-height:1.4rem;max-width:none;font:400 .84rem/1.5 var(--corps);color:var(--doux)}
.ha-scene .ha-etat:empty{display:none}

.ha-console{min-width:0;padding:clamp(1rem,1.7vw,1.4rem);border-radius:var(--r3);background:color-mix(in srgb,var(--panneau) 72%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  box-shadow:0 0 0 1px var(--filet),0 30px 70px var(--ombre),inset 0 1px 0 color-mix(in srgb,var(--or-clair) 14%,transparent)}
.ha-console-tete{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.ha-modes{display:inline-flex;padding:.25rem;border-radius:999px;box-shadow:var(--creux);background:color-mix(in srgb,var(--nuit) 55%,transparent)}
.ha-scene .ha-modes button{display:inline-flex;align-items:center;gap:.45rem;min-height:2.5rem;padding:0 1.05rem;border:0;border-radius:999px;background:none;box-shadow:none;font-size:.88rem;font-weight:600;color:var(--pale);transition:color .2s,background .3s}
.ha-scene .ha-modes button:hover{color:var(--encre)}
.ha-scene .ha-modes [aria-selected=true],.ha-scene .ha-modes [aria-selected=true]:hover{color:var(--nuit);background:var(--dore);box-shadow:0 4px 10px var(--ombre),inset 0 1px 0 color-mix(in srgb,#fff 55%,transparent)}
.ha-scene .ha-rond{display:grid;place-items:center;width:2.75rem;height:2.75rem;flex:0 0 auto;padding:0;border:0;border-radius:50%;background:var(--face);box-shadow:var(--relief);color:var(--or-clair);transition:transform .16s var(--ease)}
.ha-scene .ha-rond.ha-or{color:var(--nuit);background:var(--dore);box-shadow:0 5px 14px var(--ombre),inset 0 1px 0 color-mix(in srgb,#fff 55%,transparent)}
.ha-scene .ha-rond:active{transform:scale(.94)}

.ha-reglage,.ha-instants{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.9rem;min-height:2.5rem}
.ha-etiquette{margin-right:.2rem;font-size:.68rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--or)}
.ha-scene .ha-puce{display:inline-flex;align-items:center;gap:.4rem;min-height:2.5rem;padding:0 .9rem;border:0;border-radius:999px;background:var(--face);box-shadow:var(--relief);font-size:.84rem;font-weight:400;color:var(--doux);white-space:nowrap;transition:transform .16s var(--ease),color .2s}
.ha-scene .ha-puce svg{width:1.05em;height:1.05em;fill:var(--or)}
.ha-scene .ha-puce:active{transform:scale(.97)}
.ha-scene .ha-puce[aria-pressed=true]{box-shadow:var(--creux),0 0 0 1px color-mix(in srgb,var(--or) 60%,transparent);color:var(--or-clair)}
.ha-scene .ha-puce.ha-fine{margin-left:auto;background:none;box-shadow:0 0 0 1px var(--filet)}
.ha-scene .ha-puce.ha-fine:hover{color:var(--or-clair)}
.ha-tension{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.8rem;flex:1;margin:0}
.ha-scene .ha-tension input{width:100%;margin:0;accent-color:var(--or-clair)}
html.rl body.sr-reference .ha-scene .ha-tension input[type=range]::-webkit-slider-runnable-track{height:1.4rem;border-radius:999px;box-shadow:var(--creux);
  background:linear-gradient(90deg,color-mix(in srgb,var(--or) 46%,transparent) calc(var(--t,0) * 1%),color-mix(in srgb,var(--nuit) 62%,transparent) 0)}
html.rl body.sr-reference .ha-scene .ha-tension input[type=range]::-webkit-slider-thumb{margin-top:-.4rem}
.ha-tension em{font-style:normal;font-size:.76rem;color:var(--pale)}
@media (hover:none){.ha-tension em{display:none}.ha-tension{grid-template-columns:auto minmax(0,1fr)}}

.ha-vignettes{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:.55rem;margin-top:.9rem}
.ha-scene .ha-vignettes button{position:relative;display:block;padding:0;border:0;border-radius:var(--r1);overflow:hidden;background:none;text-align:left;aspect-ratio:2/1;box-shadow:0 6px 14px var(--ombre),0 0 0 1px var(--filet);transition:transform .2s var(--ease),box-shadow .3s}
.ha-scene .ha-vignettes img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;border-radius:0;filter:saturate(.75) brightness(.62);transition:filter .4s,transform .8s var(--ease)}
.ha-vignettes span{position:absolute;inset:auto 0 0 0;padding:1.2rem .6rem .4rem;background:linear-gradient(transparent,color-mix(in srgb,var(--nuit) 92%,transparent));font:500 .98rem/1.1 var(--titre);color:var(--encre)}
.ha-scene .ha-vignettes kbd{position:absolute;top:.35rem;left:.35rem;display:grid;place-items:center;min-width:1.35rem;height:1.35rem;padding:0;border:0;border-radius:6px;background:color-mix(in srgb,var(--nuit) 72%,transparent);box-shadow:0 0 0 1px var(--filet);font:600 .68rem var(--corps);color:var(--or-clair)}
@media (hover:hover){.ha-scene .ha-vignettes button:hover{transform:translateY(-2px)}.ha-scene .ha-vignettes button:hover img{filter:none;transform:scale(1.05)}}
@media (hover:none){.ha-scene .ha-vignettes kbd{display:none}}
.ha-scene .ha-vignettes button:active{transform:scale(.97)}
.ha-scene .ha-vignettes [aria-checked=true]{box-shadow:0 6px 14px var(--ombre),0 0 0 1.5px var(--or-clair),0 0 24px color-mix(in srgb,var(--or) 34%,transparent)}
.ha-scene .ha-vignettes [aria-checked=true] img{filter:none}
.ha-vignettes [aria-checked=true] span{color:var(--or-clair)}

.ha-tuiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-top:.9rem}
.ha-scene .ha-tuile{position:relative;display:grid;grid-template-columns:1.5rem minmax(0,1fr) auto;align-items:center;gap:.7rem;min-height:3.6rem;margin:0;padding:0 1rem;border-radius:var(--r2);overflow:hidden;isolation:isolate;
  background:color-mix(in srgb,var(--nuit) 62%,transparent);box-shadow:var(--creux);font-size:.9rem;font-weight:500;color:var(--pale);cursor:ew-resize;transition:color .2s}
.ha-tuile::before{content:"";position:absolute;inset:0 auto 0 0;z-index:-1;width:calc(var(--n,0) * 1%);border-radius:inherit;
  background:linear-gradient(90deg,color-mix(in srgb,var(--or) 16%,transparent),color-mix(in srgb,var(--or) 46%,transparent));box-shadow:inset -2px 0 0 var(--or-clair);transition:width .12s linear}
.ha-tuile:not(.ha-active)::before{box-shadow:none}
.ha-scene .ha-tuile>svg{width:1.4rem;height:1.4rem;fill:currentColor}
.ha-scene .ha-tuile.ha-active{color:var(--encre)}.ha-scene .ha-tuile.ha-active>svg{fill:var(--or-clair)}
.ha-t-nom{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ha-scene .ha-tuile output{display:block;min-width:1.6rem;padding:0;font:500 1.2rem/1 var(--titre);color:var(--or-clair);text-align:right}
.ha-scene .ha-tuile input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:ew-resize;touch-action:pan-y}
.ha-tuile:has(input:focus-visible){outline:2px solid var(--or-clair);outline-offset:3px}
.ha-scene .ha-tuile.ha-musique{grid-column:1/-1;grid-template-columns:1.5rem minmax(0,1fr) auto 2.5rem}
.ha-tuile.ha-musique::before{width:calc(var(--n,0) * (100% - 3.6rem) / 100)}
.ha-scene .ha-tuile.ha-musique input{width:calc(100% - 3.6rem)}
.ha-tuile.ha-musique .ha-t-nom small{display:block;font-size:.64rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--or)}
.ha-tuile.ha-musique .ha-t-nom b{display:block;overflow:hidden;text-overflow:ellipsis;font:500 1.12rem/1.15 var(--titre)}
.ha-scene .ha-suivant{position:relative;z-index:1;display:grid;place-items:center;width:2.5rem;height:2.5rem;padding:0;border:0;border-radius:50%;background:var(--face);box-shadow:var(--relief);color:var(--or-clair);transition:transform .16s var(--ease)}
.ha-scene .ha-suivant:active{transform:scale(.94)}
.ha-tuiles.ha-change .ha-tuile{animation:ha-monte .45s var(--ease) both;animation-delay:calc(var(--i,0) * 40ms)}
@keyframes ha-monte{from{opacity:0;transform:translateY(.6rem)}}

.ha-transport{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem .6rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--filet)}
.ha-minuterie{display:flex;gap:.35rem}
.ha-scene .ha-minuterie button{min-height:2.5rem;padding:0 .7rem;border:0;border-radius:999px;background:var(--face);box-shadow:var(--relief);font-size:.84rem;font-weight:400;color:var(--doux);white-space:nowrap}
.ha-scene .ha-minuterie button[aria-pressed=true]{box-shadow:var(--creux),0 0 0 1px color-mix(in srgb,var(--or) 60%,transparent);color:var(--or-clair)}
.ha-scene .ha-rond.ha-grand{width:3.25rem;height:3.25rem}
.ha-scene .ha-transport #ha-garder{margin-left:auto}
.sr-reference .ha-scene .ha-console-pied{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.3rem 1.2rem;margin:.9rem 0 0;max-width:none;font:400 .8rem/1.5 var(--corps);color:var(--pale)}
.ha-scene .ha-console-pied a{color:var(--or-clair);text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--filet)}
.ha-scene .ha-console-pied a:hover{text-decoration-color:var(--or)}

@media (max-width:1040px){
  .ha-atelier{grid-template-columns:minmax(0,1fr);gap:1rem;align-items:start;padding-top:13svh}
  .ha-lieu{padding-bottom:0}.sr-reference .ha-scene .ha-phrase{display:none}
  .ha-console{width:min(38rem,100%);margin-inline:auto}
}
@media (max-width:760px){
  .sr-reference .sr-home-hero.ha-scene,.sr-home-hero.ha-scene{min-height:calc(100svh - var(--sr-premium-header,var(--sr-header,4.5rem)) - var(--sr-dock-height,0px))}
  .ha-heros{padding:1.5rem 0 2.5rem}
  .sr-reference .ha-scene h1 .ha-sur{font-size:.64rem;letter-spacing:.16em}
  .sr-reference .ha-scene .ha-sous{margin:.9rem 0 1.7rem}
  .ha-scene .ha-bouton{min-height:4.2rem;padding-right:1.9rem;gap:.8rem}.ha-scene .ha-med{width:3.2rem;height:3.2rem}
  .ha-scene h1 .ha-sur::before,.ha-scene h1 .ha-sur::after{flex-basis:1.5rem}
  .sr-reference .ha-scene .ha-note{max-width:19rem}
  .ha-atelier{width:calc(100% - 1.5rem);padding-top:.5rem;padding-bottom:1rem}
  .ha-lieu{display:flex;flex-direction:column;justify-content:flex-end;min-height:25svh}
  .ha-arriere::after{background:linear-gradient(0deg,var(--nuit) 30%,color-mix(in srgb,var(--nuit) 55%,transparent) 62%,transparent 86%),linear-gradient(180deg,color-mix(in srgb,var(--nuit) 62%,transparent),transparent 16%)}
  .ha-scene .ha-arriere img,.ha-scene .ha-arriere video{height:62%}
  .ha-mj .ha-large{display:none}
  .sr-reference .ha-scene .ha-nom{font-size:2rem}.sr-reference .ha-scene .ha-etat{margin-top:.5rem;font-size:.78rem}
  .ha-console{padding:.8rem;border-radius:var(--r2)}
  .ha-scene .ha-modes button{padding:0 .8rem;font-size:.82rem}
  .ha-reglage{flex-wrap:nowrap;overflow-x:auto;margin-inline:-.8rem;padding:.2rem .8rem;scrollbar-width:none}
  .ha-reglage .ha-puce{flex:0 0 auto}.ha-scene .ha-puce.ha-fine{margin-left:0}
  .ha-tension{min-width:100%}
  .ha-vignettes{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:46%;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:-.8rem;padding:.2rem .8rem .5rem;scrollbar-width:none}
  .ha-vignettes button{scroll-snap-align:start}
  .ha-tuiles{gap:.45rem}
  .ha-scene .ha-tuile{grid-template-columns:1.2rem minmax(0,1fr) auto;gap:.45rem;min-height:3.3rem;padding:0 .7rem;font-size:.8rem}
  .ha-tuile:not(.ha-musique) .ha-t-nom{white-space:normal;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .ha-scene .ha-tuile>svg{width:1.15rem;height:1.15rem}.ha-scene .ha-tuile output{min-width:1.3rem;font-size:1.05rem}
  .ha-scene .ha-tuile.ha-musique{grid-template-columns:1.2rem minmax(0,1fr) auto 2.5rem}
  .ha-instants{flex-wrap:nowrap;overflow-x:auto;margin-inline:-.8rem;padding:.2rem .8rem;scrollbar-width:none}
  .ha-scene .ha-minuterie button{padding:0 .65rem;font-size:.78rem}
  .ha-scene .ha-transport #ha-garder{margin-left:0}
  .ha-scene .ha-image{bottom:.6rem;right:.6rem}
}
@media (prefers-reduced-motion:reduce){
  .ha-scene *,.ha-scene *::before,.ha-scene *::after{animation:none!important;transition-duration:.01ms!important}
}
/* v17.40 — Sons « par moments » : la tuile s'éclaire quand l'extrait passe */
.ha-tuile:not(.ha-musique) .ha-t-nom small{display:block;margin-top:.1rem;font:italic 400 .82em/1 var(--titre);color:var(--pale)}
.ha-scene .ha-tuile>svg{transition:fill .5s,transform .5s var(--ease)}
.ha-scene .ha-tuile.ha-sonne>svg{fill:color-mix(in srgb,var(--or-clair) 55%,#fff);transform:scale(1.2)}
/* Le lieu invité du soir et la porte du Cercle, dans la grille des lieux */
.ha-scene .ha-vignettes em{position:absolute;top:.4rem;left:.4rem;display:inline-flex;align-items:center;gap:.3rem;padding:.24rem .55rem .24rem .42rem;border-radius:999px;background:color-mix(in srgb,var(--nuit) 80%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--or) 45%,transparent);font:600 .6rem/1 var(--corps);letter-spacing:.09em;text-transform:uppercase;color:var(--or-clair)}
.ha-scene .ha-vignettes em svg{width:.7rem;height:.7rem;fill:currentColor}
.ha-scene .ha-vg-cercle{display:grid;align-content:center;justify-items:center;gap:.2rem;aspect-ratio:2/1;padding:.4rem .5rem;border-radius:var(--r1);text-align:center;text-decoration:none;color:var(--or-clair);
  background:radial-gradient(120% 150% at 50% 0%,color-mix(in srgb,var(--or) 18%,transparent),transparent 72%),color-mix(in srgb,var(--panneau) 72%,transparent);box-shadow:0 6px 14px var(--ombre),0 0 0 1px color-mix(in srgb,var(--or) 32%,transparent);transition:transform .2s var(--ease),box-shadow .3s}
.ha-scene .ha-vg-cercle b{font:500 1.08rem/1.1 var(--titre);font-variant:small-caps;letter-spacing:.03em}
.ha-scene .ha-vg-cercle small{font:400 .7rem/1.25 var(--corps);color:var(--pale)}
@media (hover:hover){.ha-scene .ha-vg-cercle:hover{transform:translateY(-2px);box-shadow:0 6px 14px var(--ombre),0 0 0 1px var(--or),0 0 22px color-mix(in srgb,var(--or) 26%,transparent)}}
.ha-scene .ha-vg-cercle:active{transform:scale(.97)}
@media (max-width:760px){.ha-vignettes .ha-vg-cercle{scroll-snap-align:start}.ha-tuile:not(.ha-musique) .ha-t-nom small{display:none}.ha-scene .ha-vignettes em{font-size:.56rem}}
@media (prefers-reduced-motion:reduce){.ha-scene .ha-tuile.ha-sonne>svg{transform:none}}
/* Sur petit écran, la phrase du lieu est masquée ; celle d'un tirage « Surprenez-moi » reste lisible */
@media (max-width:1040px){.sr-reference .ha-scene .ha-phrase.ha-tire{display:block;margin-top:.45rem;max-width:none;font-size:1.02rem;line-height:1.3}}

/* v17.41 (audit du 11/11) — lisibilité des tuiles et commandes à portée sur téléphone.
   1. Le remplissage doré passait sous le texte : « MUSIQUE » (or sur or) et le nom du son devenaient difficiles à lire. Le remplissage reste, plus discret ; le liseré clair marque toujours le niveau. */
.ha-tuile::before{background:linear-gradient(90deg,color-mix(in srgb,var(--or) 9%,transparent),color-mix(in srgb,var(--or) 24%,transparent))}
.ha-scene .ha-tuile .ha-t-nom{text-shadow:0 1px 2px var(--nuit),0 0 6px var(--nuit)}
.ha-tuile.ha-musique .ha-t-nom small{color:var(--or-clair)}
/* 2. Sur téléphone, lecture/pause et minuterie étaient sous la barre du bas : il fallait faire défiler pour mettre en pause.
      La rangée passe juste sous l'en-tête de la console, sur une seule ligne (elle défile de côté, comme les envies). */
@media (max-width:760px){
  .ha-console{display:flex;flex-direction:column}
  .ha-console>*{order:3}.ha-console>.ha-console-tete{order:1}
  .ha-console>.ha-transport{order:2;flex-wrap:nowrap;overflow-x:auto;gap:.5rem;margin:.7rem -.8rem 0;padding:0 .8rem .7rem;border-top:0;border-bottom:1px solid var(--filet);scrollbar-width:none}
  .ha-console>.ha-transport::-webkit-scrollbar{display:none}
  .ha-console>.ha-transport>*{flex:0 0 auto}
  .ha-scene .ha-rond.ha-grand{width:2.75rem;height:2.75rem}
  .ha-lieu{min-height:16svh}
}

/* v17.42 — La table du maître du jeu. Le mode reprenait la console de détente : scènes en carrousel, instants et lecture sous le pli.
   Un maître du jeu a les yeux sur ses joueurs : tout ce qui sert en partie doit être visible d'un coup et tenir sous le doigt.
   0. À tous les formats, lecture/pause en tête de console (c'était déjà le cas sur téléphone depuis la v17.41). */
@media (min-width:761px){
  .ha-console{display:flex;flex-direction:column}
  .ha-console>*{order:3}.ha-console>.ha-console-tete{order:1}
  .ha-console>.ha-transport{order:2;margin-top:.9rem;padding:0 0 .9rem;border-top:0;border-bottom:1px solid var(--filet)}
}
/* 1. Les commandes de table : silence, volume général, plein écran */
.ha-scene .ha-silence[aria-pressed=true]{color:var(--nuit);background:var(--dore);box-shadow:0 4px 12px var(--ombre),inset 0 1px 0 color-mix(in srgb,#fff 55%,transparent);font-weight:600}
.ha-scene .ha-silence[aria-pressed=true] svg{fill:var(--nuit)}
.ha-general{display:flex;align-items:center;gap:.55rem;flex:1 1 7rem;min-width:5.5rem;margin:0;color:var(--or)}
.ha-scene .ha-general input{width:100%;margin:0;accent-color:var(--or-clair)}
html.rl body.sr-reference .ha-scene .ha-general input[type=range]::-webkit-slider-runnable-track{height:1.4rem;border-radius:999px;box-shadow:var(--creux);
  background:linear-gradient(90deg,color-mix(in srgb,var(--or) 46%,transparent) calc(var(--t,0) * 1%),color-mix(in srgb,var(--nuit) 62%,transparent) 0)}
html.rl body.sr-reference .ha-scene .ha-general input[type=range]::-webkit-slider-thumb{margin-top:-.4rem}
.ha-scene .ha-transport #ha-plein svg{width:1.15rem;height:1.15rem}
.sr-reference .ha-scene .ha-aide{margin:1.1rem 0 0;max-width:24rem;font:400 .76rem/1.7 var(--corps);color:var(--pale)}
@media (hover:none),(max-width:1040px){.sr-reference .ha-scene .ha-aide{display:none}}
/* 2. Douze scènes d'un coup d'œil, un mot chacune ; les instants en grille de touches égales */
.ha-scene .ha-vg-table button{aspect-ratio:16/9}
.ha-vg-table span{padding:1rem .5rem .35rem;font-size:.95rem}
[data-mode=mj] .ha-instants{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.45rem;align-items:stretch}
[data-mode=mj] .ha-instants .ha-etiquette{grid-column:1/-1;margin:0}
.ha-scene[data-mode=mj] .ha-instants .ha-puce{justify-content:center;min-height:2.75rem;padding:0 .35rem;overflow:hidden;text-overflow:ellipsis}
.ha-scene[data-mode=mj] .ha-instants .ha-puce[aria-pressed=true]{color:var(--nuit);background:var(--dore);box-shadow:0 4px 12px var(--ombre),inset 0 1px 0 color-mix(in srgb,#fff 55%,transparent)}
/* 3. Écran large : la console s'élargit, scènes à gauche, sons à droite, instants dessous */
@media (min-width:761px){
  [data-mode=mj] .ha-console{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);column-gap:1rem;align-items:start;width:min(52rem,100%);
    grid-template-areas:"tete tete" "transport transport" "reglage reglage" "scenes sons" "instants instants" "pied pied"}
  [data-mode=mj] .ha-console-tete{grid-area:tete}[data-mode=mj] .ha-transport{grid-area:transport}[data-mode=mj] .ha-reglage{grid-area:reglage}
  [data-mode=mj] .ha-vignettes{grid-area:scenes}[data-mode=mj] .ha-tuiles{grid-area:sons}[data-mode=mj] .ha-instants{grid-area:instants}[data-mode=mj] .ha-console-pied{grid-area:pied}
  .ha-scene[data-mode=mj] .ha-tuile{min-height:3.25rem;padding:0 .8rem;gap:.5rem;font-size:.84rem}
  [data-mode=mj] .ha-tuile:not(.ha-musique) .ha-t-nom{white-space:normal;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  [data-mode=mj] .ha-tuile:not(.ha-musique) .ha-t-nom small{display:none}
}
@media (min-width:1041px){[data-mode=mj].ha-scene .ha-atelier{grid-template-columns:minmax(0,1fr) minmax(0,52rem)}}
@media (min-width:761px) and (max-width:1040px){
  [data-mode=mj].ha-scene .ha-atelier{padding-top:1.25rem;gap:.6rem}
  [data-mode=mj] .ha-lieu{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem 1rem;width:min(52rem,100%);margin-inline:auto}
  [data-mode=mj] .ha-lieu .ha-sur{display:none}
  .sr-reference .ha-scene[data-mode=mj] .ha-nom{font-size:2rem}.sr-reference .ha-scene[data-mode=mj] .ha-etat{margin:0}
}
/* Tablette couchée, en Détente aussi : le titre du lieu se range sur une ligne, la console remonte (les tuiles passaient sous le pli) */
@media (min-width:761px) and (max-width:1040px) and (max-height:900px){
  .ha-scene .ha-atelier{padding-top:1.25rem;gap:.6rem}
  .ha-lieu{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem 1rem;width:min(38rem,100%);margin-inline:auto}
  .ha-lieu .ha-sur{display:none}
  .sr-reference .ha-scene .ha-nom{font-size:2rem}.sr-reference .ha-scene .ha-etat{margin:0}
  .ha-scene[data-mode=detente] .ha-vignettes button{aspect-ratio:5/2}
}
/* 4. Téléphone : plus de carrousel. Scènes, tension, instants, puis les réglages fins plus bas */
@media (max-width:760px){
  [data-mode=mj] .ha-console>.ha-vignettes{order:3}[data-mode=mj] .ha-console>.ha-reglage{order:4}[data-mode=mj] .ha-console>.ha-instants{order:5}[data-mode=mj] .ha-console>.ha-tuiles{order:6}[data-mode=mj] .ha-console>.ha-console-pied{order:7}
  [data-mode=mj] .ha-vignettes{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;gap:.4rem;overflow:visible;margin:.7rem 0 0;padding:0}
  .ha-scene .ha-vg-table button{aspect-ratio:4/3}
  .ha-vg-table span{padding:.9rem .3rem .28rem;font-size:.8rem;line-height:1.05}
  [data-mode=mj] .ha-reglage{overflow:visible;margin:.7rem 0 0;padding:0}
  [data-mode=mj] .ha-instants{grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem;overflow:visible;margin:.7rem 0 0;padding:0}
  .ha-scene[data-mode=mj] .ha-instants .ha-puce{font-size:.78rem}
  [data-mode=mj] .ha-lieu{min-height:0;flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;gap:.1rem .7rem}
  [data-mode=mj] .ha-lieu .ha-sur{display:none}
  .sr-reference .ha-scene[data-mode=mj] .ha-nom{font-size:1.45rem}.sr-reference .ha-scene[data-mode=mj] .ha-etat{margin:0;font-size:.74rem}
  [data-mode=mj] .ha-silence span{display:none}.ha-scene[data-mode=mj] .ha-silence{padding:0 .85rem}
  [data-mode=mj] .ha-console>.ha-transport{overflow:visible}
}
/* 5. Plein écran : la table seule, sans l'en-tête du site (bouton, touche F ; d'office sur un téléphone tenu couché) */
html.ha-plein-on{overflow:hidden}
.sr-reference .sr-home-hero.ha-scene.ha-plein,.sr-home-hero.ha-scene.ha-plein{position:fixed;inset:0;z-index:2147483000;width:100%;height:100vh;height:100dvh;min-height:0;overflow:auto;align-items:safe center;background:var(--nuit);overscroll-behavior:contain}
.ha-scene.ha-plein .ha-fond{position:fixed;-webkit-mask-image:none;mask-image:none}
.ha-scene.ha-plein .ha-arriere img,.ha-scene.ha-plein .ha-arriere video{height:100%}
.ha-scene.ha-plein .ha-arriere::after{background:color-mix(in srgb,var(--nuit) 58%,transparent)}
.ha-scene.ha-plein .ha-atelier{grid-template-columns:minmax(0,1fr);width:min(76rem,100% - 1.5rem);gap:0;padding:.75rem 0;align-items:start}
.ha-scene.ha-plein .ha-lieu{display:none}
.ha-scene.ha-plein .ha-console{width:100%;margin:0}
@media (min-width:761px){
  .ha-scene.ha-plein .ha-console{grid-template-areas:"transport tete" "reglage reglage" "scenes sons" "instants instants" "pied pied"}
  .ha-scene.ha-plein .ha-console>.ha-transport{margin-top:0;padding:0;border:0;align-self:center}
  .ha-scene.ha-plein .ha-console-tete{justify-content:flex-end}
}
@media (max-height:560px) and (orientation:landscape){
  .ha-scene.ha-plein .ha-console{padding:.6rem .8rem;border-radius:var(--r2)}.ha-scene.ha-plein .ha-console-pied{display:none}
  .ha-scene.ha-plein .ha-reglage,.ha-scene.ha-plein .ha-vignettes,.ha-scene.ha-plein .ha-tuiles,.ha-scene.ha-plein .ha-instants{margin-top:.55rem}
  .ha-scene.ha-plein .ha-vg-table button{aspect-ratio:2/1}
  /* téléphone couché : les instants passent à droite des scènes (ce qui sert en partie tient sans défiler), les réglages fins dessous */
  .ha-scene.ha-plein .ha-console{grid-template-areas:"transport tete" "reglage reglage" "scenes instants" "sons sons" "pied pied"}
  .ha-scene.ha-plein[data-mode=mj] .ha-instants{grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem}
  .ha-scene.ha-plein[data-mode=mj] .ha-instants .ha-etiquette{display:none}
  .ha-scene.ha-plein[data-mode=mj] .ha-instants .ha-puce{min-height:2.5rem;font-size:.8rem}
  .ha-scene.ha-plein .ha-tuiles{grid-template-columns:repeat(4,minmax(0,1fr))}.ha-scene.ha-plein .ha-tuile.ha-musique{grid-column:span 2}
}
/* petit téléphone : des vignettes un peu moins hautes, pour que les douze instants restent au-dessus de la barre du bas */
@media (max-width:760px) and (max-height:780px){.ha-scene .ha-vg-table button{aspect-ratio:3/2}
  .ha-scene[data-mode=mj] .ha-instants .ha-puce{min-height:2.5rem}[data-mode=mj] .ha-reglage,[data-mode=mj] .ha-instants{margin-top:.45rem}[data-mode=mj] .ha-instants{gap:.35rem}}
/* Portable (écran peu haut), en Détente : six lieux sur deux rangées un peu moins hautes, pour que la musique reste à l écran */
@media (min-width:1041px) and (max-height:800px){.ha-scene[data-mode=detente] .ha-vignettes button{aspect-ratio:5/2}}

/* v17.43 — Combat, instants au choix du maître du jeu, partage du mélange */
/* Combat : à droite de la tension ; allumé, il prend l'or plein (c'est l'état le plus important de la table) */
[data-mode=mj] .ha-reglage{flex-wrap:nowrap}
.ha-scene .ha-combat{flex:0 0 auto;min-height:2.75rem;padding:0 1.05rem;font-weight:600;color:var(--encre)}
.ha-scene .ha-combat[aria-pressed=true]{color:var(--nuit);background:var(--dore);box-shadow:0 4px 12px var(--ombre),inset 0 1px 0 color-mix(in srgb,#fff 55%,transparent),0 0 24px color-mix(in srgb,var(--or) 45%,transparent)}
.ha-scene .ha-combat[aria-pressed=true] svg{fill:var(--nuit)}
/* Instants : l'en-tête porte « Personnaliser » ; en édition, tout le catalogue par famille, les sons retenus cerclés d'or */
.ha-inst-tete{grid-column:1/-1;display:flex;align-items:center;gap:.8rem;min-height:2.5rem;margin-bottom:-.3rem}
.ha-inst-tete em{flex:1;min-width:0;font-style:normal;font-size:.78rem;color:var(--pale);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ha-scene .ha-lien{display:inline-flex;align-items:center;gap:.4rem;flex:0 0 auto;margin-left:auto;min-height:2.5rem;padding:0 .25rem;border:0;border-radius:999px;background:none;box-shadow:none;font-size:.8rem;color:var(--or-clair);text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--filet)}
.ha-scene .ha-lien svg{width:1.05em;height:1.05em;fill:var(--or)}
.ha-scene .ha-lien:hover{text-decoration-color:var(--or)}
.ha-scene .ha-lien[aria-pressed=true]{min-height:2.25rem;padding:0 1rem;font-weight:600;text-decoration:none;color:var(--nuit);background:var(--dore);box-shadow:0 4px 10px var(--ombre),inset 0 1px 0 color-mix(in srgb,#fff 55%,transparent)}
.ha-groupe{grid-column:1/-1;margin-top:.3rem;font:italic 500 1.02rem/1.2 var(--titre);color:var(--doux)}
.ha-scene[data-mode=mj] .ha-edition .ha-puce{color:var(--pale)}
.ha-scene[data-mode=mj] .ha-edition .ha-puce[aria-pressed=true]{color:var(--or-clair);background:var(--face);box-shadow:var(--creux),0 0 0 1.5px var(--or-clair);font-weight:500}
/* Partage : un bouton rond dans la rangée des commandes (à la fin en Détente) */
.ha-scene .ha-transport #ha-partager svg{width:1.15rem;height:1.15rem}
[data-mode=detente] .ha-transport>#ha-partager{order:5}
.ha-scene .ha-console-pied .ha-avis{color:var(--or-clair)}
@media (max-width:760px){
  [data-mode=mj] .ha-tension{min-width:0}
  .ha-scene .ha-combat{padding:0 .85rem}
  .ha-inst-tete em{display:none}
  [data-mode=detente] .ha-transport>#ha-partager{order:0}
}
@media (max-width:760px) and (max-height:780px){.ha-inst-tete{min-height:2rem;margin-bottom:-.2rem}.ha-scene .ha-lien{min-height:2rem}}
/* Téléphone : la rangée des commandes de table tient dans la largeur (le bouton plein écran était rogné) */
@media (max-width:760px){[data-mode=mj] .ha-general{flex:1 1 3rem;min-width:3rem}[data-mode=mj] .ha-general>svg{display:none}[data-mode=mj] .ha-console>.ha-transport{gap:.45rem}}

/* v17.43 — L'image répond au jeu. Ces teintes sont de l'étalonnage de scène (du contenu), pas des couleurs d'interface : la console reste nuit et or. */
.ha-scene{--feu:#ff7a1e;--braise:#b3260c}
/* Tension : l'image se ternit et s'assombrit à mesure que le curseur monte */
.ha-scene[data-mode=mj] .ha-arriere img,.ha-scene[data-mode=mj] .ha-arriere video{filter:saturate(calc(1 - var(--tension,0) * .5)) brightness(calc(1 - var(--tension,0) * .28));transition:opacity .6s ease,filter 1.2s ease}
/* Combat : une lueur de braise monte du bas de l'image, la console prend un liseré de braise */
.ha-arriere::before{content:"";position:absolute;inset:0;z-index:1;opacity:0;pointer-events:none;mix-blend-mode:screen;transition:opacity 1.4s ease;
  background:radial-gradient(120% 95% at 50% 105%,color-mix(in srgb,var(--braise) 70%,transparent),transparent 62%),linear-gradient(0deg,color-mix(in srgb,var(--feu) 22%,transparent),transparent 45%)}
.ha-en-combat .ha-arriere::before{opacity:1;animation:ha-braise 3.2s ease-in-out infinite alternate}
@keyframes ha-braise{from{filter:brightness(.85)}to{filter:brightness(1.2)}}
.ha-en-combat .ha-console{box-shadow:0 0 0 1px color-mix(in srgb,var(--braise) 60%,var(--or)),0 30px 70px var(--ombre),0 0 70px color-mix(in srgb,var(--braise) 26%,transparent),inset 0 1px 0 color-mix(in srgb,var(--or-clair) 14%,transparent)}
/* Instants : un voile passe sur l'image (éclair, feu, halo, éclat de lame, ombre) ; les grands chocs secouent l'image */
.ha-fx{position:absolute;inset:0;z-index:-1;opacity:0;pointer-events:none}
.ha-plein .ha-fx{position:fixed}
.ha-fx[data-fx=eclair]{background:radial-gradient(130% 95% at 50% 0%,color-mix(in srgb,#fff 82%,var(--or-clair)),transparent 72%);animation:ha-fx-eclair 1s ease-out}
@keyframes ha-fx-eclair{0%{opacity:0}5%{opacity:.5}13%{opacity:.1}20%{opacity:.34}100%{opacity:0}}
.ha-fx[data-fx=feu]{mix-blend-mode:screen;background:radial-gradient(95% 85% at 50% 100%,color-mix(in srgb,var(--feu) 80%,transparent),color-mix(in srgb,var(--braise) 40%,transparent) 46%,transparent 76%);animation:ha-fx-feu 1.7s ease-out}
@keyframes ha-fx-feu{0%{opacity:0;transform:scale(.92)}14%{opacity:.8}100%{opacity:0;transform:scale(1.15)}}
.ha-fx[data-fx=magie]{mix-blend-mode:screen;background:radial-gradient(55% 60% at 50% 55%,color-mix(in srgb,var(--or-clair) 72%,transparent),transparent 72%);animation:ha-fx-magie 1.5s ease-out}
@keyframes ha-fx-magie{0%{opacity:0;transform:scale(.55)}24%{opacity:.5}100%{opacity:0;transform:scale(1.55)}}
.ha-fx[data-fx=eclat]{background:linear-gradient(115deg,transparent 43%,color-mix(in srgb,#fff 70%,transparent) 50%,transparent 57%);background-size:320% 100%;animation:ha-fx-eclat .55s ease-out}
@keyframes ha-fx-eclat{0%{opacity:.55;background-position:100% 0}100%{opacity:0;background-position:0 0}}
.ha-fx[data-fx=froid]{background:radial-gradient(100% 100% at 50% 50%,transparent 30%,color-mix(in srgb,#000 88%,transparent));animation:ha-fx-froid 2.4s ease-out}
@keyframes ha-fx-froid{0%{opacity:0}18%{opacity:.9}100%{opacity:0}}
.ha-scene.ha-secoue .ha-arriere{animation:ha-secousse .6s cubic-bezier(.36,.07,.19,.97)}
@keyframes ha-secousse{0%,100%{transform:none}12%{transform:translate(-8px,4px)}26%{transform:translate(7px,-5px)}42%{transform:translate(-5px,-3px)}58%{transform:translate(4px,3px)}78%{transform:translate(-2px,1px)}}
@media (prefers-reduced-motion:reduce){.ha-fx{display:none}.ha-en-combat .ha-arriere::before{animation:none}}

/* v17.43 — Scènes du Cercle : la vignette reste visible, assombrie, avec un cadenas et le mot « Cercle » ; le toucher dit quoi faire dans le pied de la console */
.ha-scene .ha-vignettes .ha-verrou img{filter:saturate(.35) brightness(.38)}
.ha-scene .ha-vignettes .ha-verrou span{color:var(--pale)}
.ha-scene .ha-vignettes .ha-verrou kbd{display:none}
.ha-cadenas{position:absolute;top:.3rem;right:.3rem;z-index:1;display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .45rem .2rem .35rem;border-radius:999px;font-style:normal;background:color-mix(in srgb,var(--nuit) 78%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--or) 40%,transparent);color:var(--or-clair)}
.ha-scene .ha-cadenas svg{width:.72rem;height:.72rem;fill:currentColor}
.ha-cadenas b{font:600 .58rem/1 var(--corps);letter-spacing:.08em;text-transform:uppercase}
@media (max-width:760px){.ha-cadenas b{display:none}.ha-cadenas{padding:.22rem}}

/* v17.43 — Ma séance (Cercle) : les scènes de la partie, numérotées, dans l'ordre ; l'étape en cours est cerclée d'or */
.ha-seance{display:flex;align-items:center;gap:.6rem;min-width:0;margin-top:.8rem;min-height:2.75rem}
.ha-etapes{display:flex;align-items:center;gap:.4rem;flex:1;min-width:0;overflow-x:auto;padding:.25rem .1rem;scrollbar-width:none}
.ha-etapes::-webkit-scrollbar{display:none}
.ha-etapes em{font-style:normal;font-size:.8rem;color:var(--pale);white-space:nowrap}
.ha-etape{display:inline-flex;align-items:center;flex:0 0 auto;border-radius:999px;background:var(--face);box-shadow:var(--relief)}
.ha-scene .ha-etape button{display:inline-flex;align-items:center;gap:.45rem;min-height:2.5rem;padding:0 .9rem 0 .45rem;border:0;border-radius:999px;background:none;box-shadow:none;font-size:.84rem;color:var(--doux);white-space:nowrap}
.ha-etape b{display:grid;place-items:center;width:1.55rem;height:1.55rem;border-radius:50%;box-shadow:var(--creux);font:600 .72rem/1 var(--corps);color:var(--or-clair)}
.ha-etape.ha-ici{box-shadow:var(--creux),0 0 0 1.5px var(--or-clair)}
.ha-scene .ha-etape.ha-ici button{color:var(--or-clair)}
.ha-scene .ha-etape .ha-retire{min-width:2.25rem;padding:0 .55rem 0 0;justify-content:center;color:var(--pale)}
.ha-scene .ha-etape .ha-retire svg{width:.8rem;height:.8rem}
.ha-scene .ha-suite{flex:0 0 auto;min-height:2.75rem;font-weight:600;color:var(--encre)}
.ha-scene .ha-suite svg{order:2}
.ha-scene .ha-seance .ha-lien{margin-left:0}
.ha-inst-tete #ha-seance-ouvrir{margin-left:auto}.ha-inst-tete #ha-seance-ouvrir+#ha-perso{margin-left:0}
@media (min-width:761px){
  [data-mode=mj] .ha-seance{grid-area:seance}
  [data-mode=mj] .ha-console{grid-template-areas:"tete tete" "transport transport" "reglage reglage" "seance seance" "scenes sons" "instants instants" "pied pied"}
  .ha-scene.ha-plein .ha-console{grid-template-areas:"transport tete" "reglage reglage" "seance seance" "scenes sons" "instants instants" "pied pied"}
}
@media (max-height:560px) and (orientation:landscape){.ha-scene.ha-plein .ha-console{grid-template-areas:"transport tete" "reglage reglage" "seance seance" "scenes instants" "sons sons" "pied pied"}}
@media (max-width:760px){[data-mode=mj] .ha-console>.ha-seance{order:3;margin-top:.6rem}.ha-inst-tete{gap:.5rem}}

/* v17.43 — Page dédiée à la table : la table seule, sans onglets ni bouton de fermeture */
.ha-page-table .ha-console-tete{display:none}
.ha-page-table.ha-scene .ha-console>.ha-transport{margin-top:0}
.sr-reference .ha-scene h1.ha-sur{max-width:none}

/* v17.43 — Essai d'un contour décoratif (demande de Sam) : quatre écoinçons d'or aux angles de la table, qui prennent la braise en combat.
   Dessinés par un masque : la couleur vient des jetons. ?cadre=0 dans l'adresse les retire, pour comparer. */
.ha-scene[data-mode=mj]:not(.ha-sans-cadre) .ha-console{position:relative}
.ha-scene[data-mode=mj]:not(.ha-sans-cadre) .ha-console::after{content:"";position:absolute;inset:-.5rem;z-index:1;pointer-events:none;background:var(--dore);opacity:.9;transition:background 1.2s ease;
  --coin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M3 60V22C3 11 11 3 22 3h38' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M11 52V26c0-9 6-15 15-15h26' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M18 10l5 5-5 5-5-5z'/%3E%3Ccircle cx='3' cy='60' r='2.6'/%3E%3Ccircle cx='60' cy='3' r='2.6'/%3E%3C/svg%3E");
  -webkit-mask:var(--coin) top left/3.4rem no-repeat;mask:var(--coin) top left/3.4rem no-repeat}
.ha-scene[data-mode=mj]:not(.ha-sans-cadre) .ha-console::before{content:"";position:absolute;inset:-.5rem;z-index:1;pointer-events:none;background:var(--dore);opacity:.9;transform:rotate(180deg);transition:background 1.2s ease;
  --coin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M3 60V22C3 11 11 3 22 3h38' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M11 52V26c0-9 6-15 15-15h26' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M18 10l5 5-5 5-5-5z'/%3E%3Ccircle cx='3' cy='60' r='2.6'/%3E%3Ccircle cx='60' cy='3' r='2.6'/%3E%3C/svg%3E");
  -webkit-mask:var(--coin) top left/3.4rem no-repeat;mask:var(--coin) top left/3.4rem no-repeat}
.ha-scene.ha-en-combat:not(.ha-sans-cadre) .ha-console::after,.ha-scene.ha-en-combat:not(.ha-sans-cadre) .ha-console::before{background:linear-gradient(160deg,var(--feu),var(--braise))}
@media (max-width:760px){.ha-scene[data-mode=mj]:not(.ha-sans-cadre) .ha-console::after,.ha-scene[data-mode=mj]:not(.ha-sans-cadre) .ha-console::before{inset:-.3rem;-webkit-mask-size:2.4rem;mask-size:2.4rem}}
/* Page de la table : le titre de page reste visible sur téléphone et tablette (il est masqué dans le héros de l accueil) */
.sr-reference .ha-scene.ha-page-table[data-mode=mj] .ha-lieu .ha-sur{display:flex;flex-basis:100%;margin:0 0 .1rem;font-size:.62rem}

/* v17.43 — « Ma séance » et « Personnaliser » : de vraies touches cerclées d'or (elles étaient de simples liens, trop discrets) */
.ha-scene .ha-touche{display:inline-flex;align-items:center;gap:.4rem;flex:0 0 auto;min-height:2.4rem;padding:0 .9rem;border:0;border-radius:999px;background:color-mix(in srgb,var(--or) 9%,transparent);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--or) 55%,transparent),0 4px 10px var(--ombre);font-size:.84rem;font-weight:600;color:var(--or-clair);white-space:nowrap;transition:transform .16s var(--ease),background .2s,box-shadow .2s}
.ha-scene .ha-touche svg{width:1.05em;height:1.05em;fill:var(--or-clair)}
@media (hover:hover){.ha-scene .ha-touche:hover{background:color-mix(in srgb,var(--or) 18%,transparent);box-shadow:0 0 0 1px var(--or),0 4px 10px var(--ombre)}}
.ha-scene .ha-touche:active{transform:scale(.97)}
.ha-scene .ha-touche[aria-pressed=true]{color:var(--nuit);background:var(--dore);box-shadow:0 4px 10px var(--ombre),inset 0 1px 0 color-mix(in srgb,#fff 55%,transparent)}
.ha-inst-tete .ha-touche:first-of-type{margin-left:auto}
.ha-inst-tete{min-height:2.75rem;margin-bottom:.05rem}
@media (max-width:760px){.ha-scene .ha-touche{min-height:2.25rem;padding:0 .7rem;font-size:.78rem}.ha-inst-tete{gap:.4rem}}
/* La fenêtre du Cercle */
.ha-scene .ha-fenetre{width:min(27rem,100vw - 2rem);max-height:calc(100dvh - 2rem);margin:auto;padding:0;border:0;border-radius:var(--r3);overflow:auto;color:var(--encre);
  background:color-mix(in srgb,var(--panneau) 94%,var(--nuit));box-shadow:0 0 0 1px color-mix(in srgb,var(--or) 34%,transparent),0 40px 90px color-mix(in srgb,#000 80%,transparent)}
.ha-scene .ha-fenetre::backdrop{background:color-mix(in srgb,var(--nuit) 72%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.ha-scene .ha-fenetre[open]{animation:ha-fenetre .32s var(--ease)}
@keyframes ha-fenetre{from{opacity:0;transform:translateY(.8rem) scale(.97)}}
.ha-scene .ha-f-image{display:block;width:100%;height:9.5rem;max-width:none;object-fit:cover;border-radius:0;-webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent)}
.ha-f-corps{position:relative;padding:1.5rem 1.5rem 1.4rem}
.ha-f-image+.ha-f-corps{margin-top:-2.6rem}
.ha-scene .ha-f-x{position:absolute;top:.8rem;right:.8rem;width:2.5rem;height:2.5rem}
.ha-f-image+.ha-f-corps .ha-f-x{top:-6rem}
.sr-reference .ha-scene .ha-fenetre h2{margin:.35rem 2.6rem .9rem 0;font-size:clamp(1.55rem,5vw,1.9rem);line-height:1.08}
.ha-scene .ha-fenetre ul{display:grid;gap:.55rem;margin:0 0 1.1rem;padding:0;list-style:none}
.ha-scene .ha-fenetre li{display:grid;grid-template-columns:1.1rem minmax(0,1fr);gap:.6rem;align-items:start;font-size:.94rem;line-height:1.4;color:var(--doux)}
.ha-scene .ha-fenetre li svg{width:1rem;height:1rem;margin-top:.15rem;fill:var(--or)}
.sr-reference .ha-scene .ha-f-prix{margin:0 0 1.1rem;max-width:none;font:500 1.12rem/1.3 var(--titre);color:var(--or-clair)}
.ha-f-gestes{display:grid;gap:.6rem}
.ha-scene .ha-f-oui{display:flex;align-items:center;justify-content:center;min-height:3.1rem;padding:0 1.4rem;border-radius:999px;text-decoration:none;color:var(--nuit);font:700 1.18rem/1 var(--titre);font-variant:small-caps;letter-spacing:.04em;
  background:linear-gradient(180deg,color-mix(in srgb,var(--or-clair) 55%,#fff),var(--or-clair) 38%,var(--or) 70%,color-mix(in srgb,var(--or) 72%,var(--nuit)));box-shadow:inset 0 0 0 1px color-mix(in srgb,#fff 55%,transparent),0 10px 24px var(--ombre),0 0 30px color-mix(in srgb,var(--or) 28%,transparent);transition:transform .16s var(--ease),filter .2s}
@media (hover:hover){.ha-scene .ha-f-oui:hover{filter:brightness(1.06);transform:translateY(-1px)}}
.ha-scene .ha-f-oui:active{transform:scale(.98)}
.ha-scene .ha-f-non{min-height:2.75rem;border:0;border-radius:999px;background:none;box-shadow:none;font-size:.9rem;color:var(--doux);text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--filet)}
.ha-scene .ha-f-non:hover{color:var(--or-clair)}
@media (prefers-reduced-motion:reduce){.ha-scene .ha-fenetre[open]{animation:none}}
.sr-reference .ha-scene .ha-fenetre .ha-etiquette{margin:0;max-width:none;font:600 .68rem/1.4 var(--corps);letter-spacing:.16em;text-transform:uppercase;color:var(--or)}

/* v17.44 — « Préparer ma partie » : une fenêtre à deux onglets remplace les deux touches et les deux modes d'édition de la table */
.ha-scene .ha-fenetre.ha-prep{width:min(46rem,100vw - 1.5rem)}
.sr-reference .ha-scene .ha-prep h2{margin:0 3rem .9rem 0}
.ha-scene .ha-p-onglets{display:flex;width:100%;margin-bottom:1rem}
.ha-scene .ha-p-onglets button{flex:1;justify-content:center;min-height:2.75rem}
.sr-reference .ha-scene .ha-p-aide,.sr-reference .ha-scene .ha-p-vide{margin:0 0 .9rem;max-width:none;font:400 .9rem/1.5 var(--corps);color:var(--doux)}
.sr-reference .ha-scene .ha-p-vide{font-style:italic;color:var(--pale)}
.ha-scene .ha-p-etapes{display:grid;gap:.45rem;margin:0 0 1.2rem;padding:0;list-style:none;counter-reset:none}
.ha-scene .ha-p-etapes li{display:grid;grid-template-columns:1.9rem minmax(0,1fr) auto 2.5rem 2.5rem;align-items:center;gap:.5rem;min-height:3rem;padding:.25rem .35rem .25rem .5rem;border-radius:var(--r2);background:color-mix(in srgb,var(--nuit) 55%,transparent);box-shadow:var(--creux)}
.ha-scene .ha-p-etapes b{display:grid;place-items:center;width:1.9rem;height:1.9rem;border-radius:50%;background:var(--dore);font:700 .82rem/1 var(--corps);color:var(--nuit)}
.ha-scene .ha-p-etapes input{width:100%;min-width:0;min-height:2.5rem;margin:0;padding:0 .7rem;border:0;border-radius:999px;background:color-mix(in srgb,var(--panneau) 80%,transparent);box-shadow:inset 0 0 0 1px var(--filet);font:500 .95rem/1 var(--corps);color:var(--encre)}
.ha-scene .ha-p-etapes input::placeholder{color:var(--pale);opacity:1}
.ha-scene .ha-p-etapes input:focus-visible{outline:2px solid var(--or-clair);outline-offset:2px}
.ha-scene .ha-p-etapes span{font:italic 500 .95rem/1 var(--titre);color:var(--pale);white-space:nowrap}
.ha-scene .ha-p-geste{display:grid;place-items:center;width:2.5rem;height:2.5rem;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;color:var(--doux)}
.ha-scene .ha-p-geste:hover{color:var(--or-clair)}.ha-scene .ha-p-geste svg{width:1rem;height:1rem}
.ha-scene .ha-p-monte svg{transform:rotate(-90deg)}.ha-scene .ha-p-geste[disabled]{opacity:.25;cursor:default}
.ha-scene .ha-p-scenes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;margin:.5rem 0 1.2rem}
.ha-scene .ha-p-scenes button{position:relative;display:block;padding:0;border:0;border-radius:var(--r1);overflow:hidden;aspect-ratio:16/9;background:none;box-shadow:0 0 0 1px var(--filet);transition:transform .16s var(--ease),box-shadow .2s}
.ha-scene .ha-p-scenes img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;border-radius:0;filter:saturate(.8) brightness(.7)}
.ha-scene .ha-p-scenes span{position:absolute;inset:auto 0 0 0;padding:.9rem .45rem .3rem;background:linear-gradient(transparent,color-mix(in srgb,var(--nuit) 92%,transparent));font:500 .9rem/1.1 var(--titre);color:var(--encre);text-align:left}
@media (hover:hover){.ha-scene .ha-p-scenes button:hover{box-shadow:0 0 0 1.5px var(--or-clair)}.ha-scene .ha-p-scenes button:hover img{filter:none}}
.ha-scene .ha-p-scenes button:active{transform:scale(.96)}
.ha-scene .ha-p-sons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;margin-bottom:1.2rem}
.ha-scene .ha-p-sons .ha-puce{justify-content:center;min-height:2.75rem;padding:0 .35rem;overflow:hidden;text-overflow:ellipsis;color:var(--pale)}
.ha-scene .ha-p-sons .ha-puce[aria-pressed=true]{color:var(--or-clair);font-weight:500;box-shadow:var(--creux),0 0 0 1.5px var(--or-clair)}
@media (max-width:600px){
  .ha-scene .ha-p-scenes,.ha-scene .ha-p-sons{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ha-scene .ha-p-etapes li{grid-template-columns:1.7rem minmax(0,1fr) 2.25rem 2.25rem}.ha-scene .ha-p-etapes span{display:none}
  .ha-scene .ha-p-sons .ha-puce{font-size:.78rem}
}

/* v17.45 — Le passage d'une scène à l'autre : la scène qui part s'éloigne dans le flou, la nouvelle se pose, une lueur d'or traverse le décor, le nom du lieu entre.
   Tout se joue sur opacité, échelle et flou (aucune mise en page ne bouge). En mouvement réduit : un fondu simple. */
.ha-scene .ha-arriere .ha-cliche{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;border-radius:0;pointer-events:none;opacity:1;transition:none;animation:none;will-change:opacity,scale}
.ha-scene .ha-arriere .ha-cliche.ha-part{animation:ha-part 1.9s cubic-bezier(.4,0,.2,1) both}
@keyframes ha-part{to{opacity:0;scale:1.09;filter:blur(14px) brightness(1.25)}}
.ha-scene .ha-arriere img.ha-arrive{animation:ha-arrive 2.4s cubic-bezier(.16,1,.3,1) both}
.ha-scene .ha-arriere img.ha-arrive.ha-derive{animation:ha-arrive 2.4s cubic-bezier(.16,1,.3,1) both,ha-derive 46s ease-in-out infinite alternate}
@keyframes ha-arrive{from{scale:1.07}}
.ha-lueur{position:absolute;inset:-10%;pointer-events:none;mix-blend-mode:screen;opacity:0;
  background:radial-gradient(46% 42% at 50% 56%,color-mix(in srgb,var(--or-clair) 46%,transparent),color-mix(in srgb,var(--or) 18%,transparent) 48%,transparent 76%);animation:ha-lueur 1.9s ease-out both}
@keyframes ha-lueur{0%{opacity:0;transform:scale(.55)}30%{opacity:1}100%{opacity:0;transform:scale(1.5)}}
.ha-en-combat .ha-lueur{background:radial-gradient(46% 42% at 50% 56%,color-mix(in srgb,var(--feu) 50%,transparent),color-mix(in srgb,var(--braise) 20%,transparent) 48%,transparent 76%)}
.ha-lieu.ha-entre>*{animation:ha-titre 1.1s cubic-bezier(.16,1,.3,1) both}
.ha-lieu.ha-entre>.ha-nom{animation-delay:.22s}.ha-lieu.ha-entre>.ha-phrase{animation-delay:.42s}
@keyframes ha-titre{from{opacity:0;transform:translateY(.7rem);filter:blur(8px)}}
@media (max-width:760px){@keyframes ha-part{to{opacity:0;scale:1.06}}@keyframes ha-titre{from{opacity:0;transform:translateY(.5rem)}}}
@media (prefers-reduced-motion:reduce){.ha-scene .ha-arriere .ha-cliche.ha-part{animation:ha-part-calme .5s ease both}.ha-lieu.ha-entre>*{animation:none}.ha-lueur{display:none}}
@keyframes ha-part-calme{to{opacity:0}}
/* Sur téléphone, la rangée de la séance prend toute la place : l'étiquette « Ma séance » s'efface, l'étape en cours se lit en entier */
@media (max-width:760px){.ha-seance>.ha-etiquette{display:none}}
html.sr-reduced .ha-scene .ha-arriere .ha-cliche.ha-part{animation:ha-part-calme .5s ease both}html.sr-reduced .ha-lieu.ha-entre>*{animation:none}

/* v17.46 — Héros épuré (demande de Sam : « trop chargé ») : on retire ce qui décore sans rien dire. Plus de filets autour du sur-titre, plus de losange,
   une note d'une ligne, la table du maître du jeu en simple lien, et un voile plus léger pour que les îles respirent. Le bouton reste le seul objet en relief. */
.ha-scene h1 .ha-sur::before,.ha-scene h1 .ha-sur::after{display:none}
.sr-reference .ha-scene h1 .ha-sur{margin-bottom:1.25rem;letter-spacing:.24em;color:color-mix(in srgb,var(--or-clair) 82%,transparent)}
.ha-scene .ha-orn{display:none}
.sr-reference .ha-scene .ha-sous{margin:1.5rem 0 2.4rem;max-width:34rem;font-weight:400}
.sr-reference .ha-scene .ha-note{margin-top:1.1rem;font-size:.8rem;letter-spacing:.03em}
.sr-reference .ha-scene .ha-mj{margin-top:1.1rem}
.ha-scene .ha-mj button,.ha-scene .ha-mj button:hover{min-height:2.75rem;padding:0 .5rem;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;font-size:.86rem;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px;text-decoration-color:color-mix(in srgb,var(--or) 45%,transparent);text-shadow:0 1px 8px var(--nuit),0 0 2px var(--nuit)}
.ha-scene .ha-mj button:hover{text-decoration-color:var(--or-clair)}
.ha-iles::after{background:
  radial-gradient(60% 46% at 50% 50%,color-mix(in srgb,var(--nuit) 74%,transparent),color-mix(in srgb,var(--nuit) 38%,transparent) 58%,transparent 86%),
  linear-gradient(180deg,color-mix(in srgb,var(--nuit) 55%,transparent),transparent 18%)}
@media (max-width:760px){
  .sr-reference .ha-scene h1 .ha-sur{margin-bottom:1rem;letter-spacing:.2em}
  .sr-reference .ha-scene .ha-sous{margin:1.2rem 0 2rem;max-width:20rem}
  .sr-reference .ha-scene .ha-note{max-width:none}
}
