/* En-tête, modèle 8 : ligne de tête posée dans l'affiche 1, puis pastille « Réserver » et pilote (ordinateur),
   barre basse permanente (téléphone), index des six affiches en guise de menu. */

/* Ligne de tête de l'affiche 1 */
.tete {
  grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 4; height: 72px;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; column-gap: clamp(16px, 2vw, 40px);
}
.logo { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--nuit); }
.logo__chaise { width: 36px; height: 36px; flex: none; color: var(--chaise); }
.logo__mot { fill: currentColor; }
.logo__mot--1 { width: 309px; height: 16px; }
.logo__mot--2 { display: none; width: 114px; height: 24px; }
.tete__nav { display: flex; justify-content: space-evenly; align-items: center; }
.tete__nav a, .tete__tel {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600; font-size: 16px;
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 2px no-repeat; transition: background-size .2s;
}
.tete__nav a:hover, .tete__tel:hover, .tete__nav a[aria-current] { background-size: 100% 2px; }
.tete__tel { font-variant-numeric: proportional-nums; white-space: nowrap; }
.tete__resa {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; width: 124px; border-radius: 2px;
  background: var(--nuit); color: var(--soleil); font: 400 19px/1 var(--rozha); text-decoration: none;
}
.tete__resa:hover { background: var(--chaise); }
.tete__resa:focus-visible { outline-color: var(--nuit); }

@media (max-width: 1023px) {
  .tete { height: 64px; grid-template-columns: auto 1fr auto; }
  .tete__nav, .tete__resa { display: none; }
  .logo { gap: 8px; }
  .logo__chaise { width: 30px; height: 30px; }
  .logo__mot--1 { display: none; }
  .logo__mot--2 { display: block; }
  .tete__tel { grid-column: 3; font-size: 16px; min-height: 48px; }
}

/* Pastille et pilote : ordinateur, dès que l'affiche 1 est passée. Deux livrées selon l'affiche dessous. */
.pastille, .pilote { position: fixed; z-index: 30; }
.pastille {
  top: calc(var(--demobar-offset, 0px) + 24px); right: 24px; width: 128px; height: 64px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center; font: 400 19px/1 var(--rozha); text-decoration: none;
}
.pilote { left: 24px; bottom: 24px; display: flex; gap: 4px; }
.pilote__index {
  display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px 0 16px; border: 0; border-radius: 2px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
}
.pilote__index > svg { width: 30px; height: 30px; flex: none; }
.pilote__pas { width: 48px; height: 64px; border: 0; border-radius: 2px; display: grid; place-items: center; }
.pilote__pas svg { width: 22px; height: 22px; }
.pilote__pas--haut svg { transform: rotate(180deg); }
.pastille, .pilote__index, .pilote__pas { background-color: var(--nuit); color: var(--soleil); transition: background-color .25s, color .25s; }
[data-livree="soleil"] .pastille, [data-livree="soleil"] .pilote__index, [data-livree="soleil"] .pilote__pas,
[data-livree="soleil"].pastille { background-color: var(--soleil); color: var(--nuit); }
.pastille:focus-visible, .pilote button:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; }
[data-livree="soleil"] .pastille:focus-visible, [data-livree="soleil"] .pilote button:focus-visible { outline-color: var(--nuit); }
.pilote__pas:disabled { opacity: .45; cursor: default; }

.pastille, .pilote { opacity: 0; visibility: hidden; transform: scale(.6); transition: opacity .3s, transform .3s cubic-bezier(.2, .9, .3, 1.2), visibility 0s .3s, background-color .25s, color .25s; }
.pastille { transform-origin: 100% 0; } .pilote { transform-origin: 0 100%; }
.est-defile .pastille, .est-defile .pilote, .mur-ouvert .pilote { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s cubic-bezier(.2, .9, .3, 1.2), visibility 0s, background-color .25s, color .25s; }
.mur-ouvert .pastille { opacity: 0; visibility: hidden; }

.mots { display: inline-grid; }
.mots > span { grid-area: 1 / 1; transition: opacity .2s; }
.mots > span + span, [aria-expanded="true"] .mots > span:first-child { opacity: 0; }
[aria-expanded="true"] .mots > span + span { opacity: 1; }
.pilote__index .mots { padding-left: 12px; border-left: 2px solid currentColor; }

/* Barre basse du téléphone : pleine, jamais de flou. */
.barre { display: none; }
@media (max-width: 1023px) {
  .pastille, .pilote { display: none; }
  .barre {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px;
    height: var(--barre); padding: 0 max(10px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-left));
    background: var(--nuit); color: var(--blanc); border-top: 2px solid var(--soleil);
  }
  .barre__chaise { width: 44px; height: 48px; display: grid; place-items: center; color: var(--soleil); flex: none; }
  .barre__chaise svg { width: 32px; height: 32px; }
  .barre__index {
    flex: 1; min-width: 0; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; background: none; color: var(--blanc); font-weight: 600; font-size: 14px; white-space: nowrap; gap: 8px;
  }
  .barre__index [data-compteur] { overflow: hidden; text-overflow: clip; }
  .barre__index .mots { color: var(--soleil); }
  .barre__chevron { width: 18px; height: 18px; flex: none; color: var(--soleil); transform: rotate(180deg); transition: transform .3s; }
  .barre__index[aria-expanded="true"] .barre__chevron { transform: none; }
  .barre__resa {
    flex: none; display: grid; place-items: center; width: 96px; height: 48px; border-radius: 2px;
    background: var(--soleil); color: var(--nuit); font: 400 18px/1 var(--rozha); text-decoration: none;
  }
  .barre :focus-visible { outline-color: var(--soleil); }
}
@media (max-width: 370px) { .barre__index [data-compteur] { display: none; } }

/* L'index : le mur des six affiches */
.mur {
  position: fixed; z-index: 25; left: 0; right: 0; top: var(--demobar-offset, 0px); bottom: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: 32px max(var(--marge), env(safe-area-inset-right)) 112px max(var(--marge), env(safe-area-inset-left));
  background: var(--nuit); color: var(--blanc); overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  border-top: 4px solid var(--soleil);
}
.mur[hidden] { display: none; }
.mur.est-ouvert { transform: none; }
.mur__affiches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gout); }
.vignette {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; aspect-ratio: 2 / 3; min-height: 88px;
  padding: 16px; border-radius: 2px; text-decoration: none; overflow: hidden; transition: transform .2s;
}
.vignette b { font: 400 22px/1 var(--rozha); }
.vignette span { font-weight: 600; font-size: 15px; }
.vignette::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; top: 14%; right: 12%; }
.vignette:hover { transform: translateY(-6px); }
.vignette[aria-current] { outline: 3px solid var(--soleil); outline-offset: 5px; }
.vignette:focus-visible { outline: 3px solid var(--blanc); outline-offset: 5px; }
.v1 { background: var(--soleil); color: var(--nuit); } .v1::before { background: var(--blanc); }
.v2 { background: var(--chaise); color: var(--blanc); } .v2::before { background: var(--soleil); top: 40%; }
.v3 { background: var(--tomate); color: var(--blanc); } .v3::before { background: var(--blanc); width: 30%; top: 8%; right: 35%; }
.v4 { background: #06203f; color: var(--soleil); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .25); } .v4::before { background: var(--blanc); width: 28%; right: 36%; }
.v5 { background: var(--blanc); color: var(--nuit); } .v5::before { border-radius: 0; width: 34%; aspect-ratio: 1; border: 3px solid var(--chaise); top: 16%; right: 16%; }
.v6 { background: var(--soleil); color: var(--nuit); } .v6::before { border-radius: 0; background: var(--blanc); width: 70%; aspect-ratio: 3 / 2; top: 18%; right: 15%; }
.mur__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 20px; border-top: 2px solid rgb(255 255 255 / .3); }
.mur__tel { display: inline-flex; align-items: center; min-height: 48px; font: 400 22px/1 var(--rozha); color: var(--soleil); text-decoration: none; }
.mur__pied p { flex: 1; font-weight: 600; font-size: 16px; }
.mur__resa { display: grid; place-items: center; height: 48px; padding: 0 28px; border-radius: 2px; background: var(--soleil); color: var(--nuit); font: 400 19px/1 var(--rozha); text-decoration: none; }
.mur a:focus-visible { outline-color: var(--blanc); }
@media (max-width: 1023px) {
  .mur { bottom: var(--barre); padding: 20px var(--marge) 20px; gap: 20px; }
  .mur__affiches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .vignette { aspect-ratio: auto; height: clamp(96px, 17svh, 150px); padding: 12px; }
  .vignette b { font-size: 20px; }
  .vignette span { font-size: 14px; }
  .vignette::before { width: 30%; top: 10px; right: 10px; }
  .v2::before { top: 10px; } .v3::before, .v4::before { width: 24%; right: 12px; } .v6::before { width: 44%; }
  .mur__pied { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mur__resa { display: none; }
}
@media (max-width: 1023px) and (max-height: 480px) { .mur__affiches { grid-template-columns: repeat(6, minmax(0, 1fr)); } .vignette { height: 96px; } }
html.mur-ouvert .affiches { overflow: hidden; }
