/* assets/promenade.css -- page /promenade (prototype) */

.walk{
  --walk-ink: #f1ece6;
  --walk-muted: rgba(241,236,230,.66);
  --walk-line: rgba(241,236,230,.16);
  --walk-glass: rgba(14,11,11,.80);
  --walk-accent: #e0343a;
  --walk-gold: #d9b56a;

  position: relative;
  /* La promenade occupe la fenetre moins le header sticky (--header-h est
     mesuree par includes/header.php ; 73px = valeur desktop, avant JS). */
  height: calc(100vh - var(--header-h, 73px));
  height: calc(100dvh - var(--header-h, 73px));
  min-height: 540px;
  overflow: hidden;
  color: var(--walk-ink);
  background: #070606;
}

.walk__canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  user-select: none;
  cursor: grab;
  outline: none;
}
.walk__canvas.is-dragging{ cursor: grabbing; }
.walk__canvas.is-over{ cursor: pointer; }
.walk__canvas:focus-visible{ box-shadow: inset 0 0 0 2px var(--walk-gold); }

/* Panneaux superposes ------------------------------------------------------ */
.walk__panel{
  position: absolute;
  z-index: 2;
  background: var(--walk-glass);
  border: 1px solid var(--walk-line);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(0,0,0,.4);
}

.walk__controls{
  top: 20px;
  left: 20px;
  width: 292px;
  max-height: calc(100% - 150px);
  overflow-y: auto;
  padding: 18px;
}

.walk__title{
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .01em;
}
.walk__lead{
  margin: 8px 0 14px;
  font-size: .86rem;
  color: var(--walk-muted);
}
.walk__lead strong{ color: var(--walk-ink); }

.walk__field{ display: block; margin-bottom: 10px; }
.walk input[type="search"],
.walk select{
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: .9rem;
  color: var(--walk-ink);
  background: rgba(255,255,255,.07);
  border: 1px solid var(--walk-line);
  border-radius: 9px;
}
.walk input[type="search"].is-missing{ border-color: var(--walk-accent); }
.walk select option{ color: #1c1c1c; background: #fff; }
.walk input[type="search"]::placeholder{ color: rgba(241,236,230,.5); }

.walk input:focus-visible,
.walk select:focus-visible,
.walk summary:focus-visible,
.walk a:focus-visible,
.walk__btn:focus-visible{
  outline: 2px solid var(--walk-gold);
  outline-offset: 2px;
}

.walk__check{
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .86rem;
  cursor: pointer;
}
.walk__check input{ margin-top: 3px; accent-color: var(--walk-accent); }
.walk__check small{ display: block; color: var(--walk-muted); }

.walk__fold{ margin-top: 14px; border-top: 1px solid var(--walk-line); padding-top: 12px; }
.walk__fold summary{
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--walk-muted);
}
.walk__help{
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--walk-muted);
}
.walk__help b{ color: var(--walk-ink); font-weight: 600; }

/* Boutons ------------------------------------------------------------------ */
.walk__btn{
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--walk-ink);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--walk-line);
  border-radius: 9px;
  cursor: pointer;
}
.walk__btn:hover{ background: rgba(255,255,255,.16); }

/* Annee en vue ------------------------------------------------------------- */
.walk__year{
  left: 20px;
  bottom: 20px;
  padding: 8px 18px 10px;
  border-left: 3px solid var(--walk-accent);
  border-radius: 4px 14px 14px 4px;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.walk__year::before{
  content: "En vue";
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--walk-accent);
}

/* Voie courante ------------------------------------------------------------ */
.walk__hud{
  right: 20px;
  bottom: 20px;
  width: 292px;
  padding: 12px 16px 14px;
  border-left: 3px solid var(--walk-accent);
  border-radius: 4px 14px 14px 4px;
}
.walk__eyebrow{
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--walk-accent);
}
.walk__lane{
  display: block;
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  color: var(--walk-ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.walk__lane:hover{ text-decoration: underline; }
.walk__lane-meta{ display: block; font-size: .8rem; color: var(--walk-muted); }
.walk__hud-row{ display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.walk__alt{
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--walk-muted);
}
.walk__alt input{ flex: 1; min-width: 0; accent-color: var(--walk-accent); }

/* Notice de l'oeuvre choisie ----------------------------------------------- */
.walk__details{
  top: 20px;
  right: 20px;
  width: 320px;
  max-height: calc(100% - 190px);
  overflow-y: auto;
  padding: 18px 18px 16px;
  border-left: 3px solid var(--walk-accent);
  border-radius: 4px 14px 14px 4px;
}
.walk__details h2{
  margin: 0 34px 4px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
}
.walk__details-artist{ margin: 0 0 12px; font-size: .92rem; }
.walk__details a{ color: var(--walk-gold); }
.walk__details dl{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 6px 10px;
  margin: 0 0 14px;
  font-size: .84rem;
}
.walk__details dt{ color: var(--walk-muted); }
.walk__details dd{ margin: 0; }
.walk__details-credit{ margin: 0 0 12px; font-size: .74rem; color: var(--walk-muted); }
.walk__details-actions{ display: flex; flex-wrap: wrap; gap: 8px; }
.walk__details-actions a,
.walk__details-actions button{
  padding: 8px 12px;
  font: inherit;
  font-size: .84rem;
  color: var(--walk-ink);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--walk-line);
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
}
.walk__details-actions a:first-child{
  color: #1b1408;
  background: var(--walk-gold);
  border-color: var(--walk-gold);
  font-weight: 600;
}
.walk__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--walk-ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.walk__close:hover{ background: rgba(255,255,255,.12); }

/* Plein ecran -------------------------------------------------------------- */
.walk__lightbox{
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4,3,3,.94);
  cursor: zoom-out;
}
.walk__lightbox[hidden]{ display: none; }
.walk__lightbox img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.walk__lightbox-close{ position: absolute; top: 16px; right: 16px; }

.walk__noscript{
  position: absolute;
  inset: auto 20px 50% 20px;
  z-index: 3;
  text-align: center;
}
.walk__noscript a{ color: var(--walk-gold); }

/* Ecrans etroits ----------------------------------------------------------- */
@media (max-width: 760px){
  .walk__controls{
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    padding: 12px 14px;
    max-height: 46%;
  }
  .walk__lead, .walk__fold{ display: none; }
  .walk__title{ font-size: 1.05rem; margin-bottom: 10px; }
  .walk__year{ left: 10px; bottom: 10px; font-size: 1.5rem; padding: 6px 12px 8px; }
  .walk__hud{ right: 10px; bottom: 10px; width: min(250px, calc(100% - 130px)); padding: 10px 12px; }
  .walk__lane{ font-size: 1rem; }
  .walk__alt span{ display: none; }
  /* La notice remonte du bas, par-dessus l'annee et la voie. */
  .walk__details{
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 48%;
    z-index: 3;
  }
}
