/* Votre maison : quatre restaurants fictifs, un par un au défilement (sites.js).
   Les maquettes elles-mêmes (maisons.html, maisons.css et leurs polices) ne sont chargées qu'à l'approche de la section. */

/* PC : le texte du chapitre en en-tête, puis la scène sur toute la largeur */
.site-layout{display:block}
@media(min-width:1100px){
  .site-copy{display:grid;grid-template-columns:1.05fr .95fr;column-gap:5vw;align-items:end}
  .site-copy>.site-eyebrow{grid-area:1/1;justify-self:start}
  .site-copy>h2{grid-area:2/1/4/2;margin:0;font-size:clamp(62px,6.2vw,112px)}
  .site-copy>.site-lead{grid-area:2/2;margin:0 0 26px}
  .site-copy>.button{grid-area:3/2;justify-self:start}
  .site-process{grid-area:4/1/5/3;display:grid;grid-template-columns:repeat(3,1fr);column-gap:36px;max-width:none;margin:52px 0 0;border-top:0}
  .site-process li{border-top:1px solid #1c191733;border-bottom:0}
}
.site-track{height:400svh;min-width:0}

/* Scène épinglée : le bandeau d'identité et le choix du restaurant, puis l'ordinateur et le téléphone */
.site-stage{position:sticky;top:0;height:100svh;display:grid;grid-template:"brief" auto "scene" minmax(0,1fr) "picker" auto/minmax(0,1fr);align-content:center;gap:14px;padding:14px 0 84px;--local:0}
.site-brief{grid-area:brief;margin:0;flex-wrap:nowrap;min-width:0}
.resto-scene{grid-area:scene;position:relative;align-self:center;justify-self:center;container-type:inline-size;
  aspect-ratio:9/19.2;height:100%;max-width:100%}
.resto-picker{grid-area:picker}
@media(min-width:900px){
  .site-stage{grid-template:"brief picker" auto "scene scene" minmax(0,1fr)/minmax(0,1fr) auto;column-gap:24px;padding:18px 0 86px}
  .resto-scene{aspect-ratio:100/55;height:auto;width:min(100%,calc((100svh - 190px)/.55))}
}
/* Écrans peu hauts : le bandeau d'identité cède sa place au site */
@media(min-width:900px) and (max-height:760px){.site-brief{display:none}.site-stage{grid-template-areas:". picker" "scene scene"}.resto-scene{width:min(100%,calc((100svh - 130px)/.55))}}
@media(max-width:899px) and (max-height:700px){.site-brief{display:none}}

/* Bandeau d'identité : la salle, puis les couleurs et la typo qu'on en tire */
.brief-mood{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brief-photo{width:58px;height:38px;border-radius:6px;flex:none;background:#141210 center/cover;border:1px solid #1c191726;transition:background-image .5s}
.brief-arrow{color:var(--muted);font-size:14px}
.brief-font{font:400 22px/1 var(--display);min-width:34px;text-align:center}

/* Choix direct d'un restaurant ; le bouton actif se remplit avec le défilement */
.resto-picker{display:flex;align-items:center;justify-content:flex-end;gap:12px 18px;flex-wrap:wrap}
.resto-count{margin:0;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.resto-count b{font-size:15px;color:var(--ink)}
.resto-buttons{display:flex;gap:8px;flex-wrap:wrap}
.resto-buttons button{position:relative;overflow:hidden;min-height:44px;padding:10px 16px;border:1px solid #1c191744;border-radius:999px;background:transparent;color:var(--ink);font-size:14px;transition:background .3s,color .3s}
.resto-buttons button[aria-pressed=true]{background:var(--ink);color:var(--ground)}
.resto-buttons button[aria-pressed=true]:after{content:'';position:absolute;left:16px;right:16px;bottom:7px;height:2px;border-radius:2px;background:var(--signal);transform-origin:left;scale:var(--local) 1}
@media(hover:hover){.resto-buttons button:hover{background:var(--ink);color:var(--ground)}}

/* Téléphone et tablette : le téléphone seul, en grand ; bandeau sur une ligne, sélecteur en barre segmentée */
@media(max-width:899px){
  .site-brief{gap:9px;padding:9px 12px}
  .brief-label{font-size:9.5px;white-space:nowrap}
  .brief-photo{width:44px;height:30px}
  .brief-swatches i{width:16px;height:16px}
  .brief-font{font-size:18px;min-width:0}
  .resto-picker{display:grid;justify-content:stretch;gap:8px}
  .resto-count{text-align:center;font-size:12px}
  .resto-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:3px;border:1px solid #1c191733;border-radius:999px}
  .resto-buttons button{min-height:40px;padding:6px 0;border:0;font-size:12.5px;white-space:nowrap}
  .resto-buttons button[aria-pressed=true]:after{left:22%;right:22%;bottom:5px}
}

/* Sans mouvement : le chapitre reprend un flux normal, les boutons suffisent ; chaque site se parcourt à la main. */
.motion-off .site-track{height:auto}
.motion-off .site-stage{position:relative;height:auto;padding-block:30px}
.motion-off .resto-scene{height:auto;width:min(100%,1100px)}
.motion-off .brief-photo{transition:none}
@media(max-width:899px){.motion-off .resto-scene{width:min(100%,380px)}}
@media(prefers-reduced-motion:reduce){
  .site-track{height:auto}
  .site-stage{position:relative;height:auto;padding-block:30px}
  .resto-scene{height:auto;width:min(100%,1100px)}
  .brief-photo{transition:none}
}
@media(prefers-reduced-motion:reduce) and (max-width:899px){.resto-scene{width:min(100%,380px)}}
