/* Photos (« Galerie ») — page de 980 px de large sur l'ancien site, au lieu de 1031 : l'en-tête est décalé
   de 26 px vers la gauche et « Connexion » se trouve en 934 px. Positions relevées sur latraverse42.fr. */

body.page-photos #page { width: 980px; }
.page-photos .pied { height: 70px; }   /* pied de page plus court sur les pages de 980 px */
.page-photos .menu { left: -25.99px; }
.page-photos .entete-connexion { left: 934.41px; }

.titre-nos { left: 6px; top: 83px; width: 143px; height: 126px; display: flex; align-items: center;
  font-family: 'Playfair Display', serif; font-size: 70px; font-weight: 900; font-variant: small-caps; color: #F5EFE0; }
.titre-photos { left: 146px; top: 99.5px; width: 309px; height: 93px; display: flex; align-items: center;
  font-family: 'PlayfairDisplay-Medium Italic', sans-serif; font-size: 70px; font-weight: 600; font-style: italic;
  color: #E8C46A; }
.separateur-filet { top: 213px; width: 100px; height: 1px; background-color: #c9983a; }
.separateur-filet.gauche { left: 392px; }
.separateur-filet.droite { left: 561.96px; top: 214px; }
.separateur-etoile { left: 514px; top: 198px; height: 31px; font-family: 'DM Mono', sans-serif; font-size: 22px;
  letter-spacing: 0.5em; font-variant: small-caps; color: #C9983A; }

.choix-libelle { left: 20px; top: 232px; width: 425px; height: 29px; white-space: nowrap;
  font-family: 'DM Mono', sans-serif; font-size: 22px; color: #C9983A; }
.choix-spectacle { left: 20px; top: 268px; width: 829px; height: 75px; box-sizing: border-box; margin: 0; padding: 0;
  font-family: 'Cormorant Garamond', sans-serif; font-size: 36px; color: #F5EFE0; background-color: #0e0c0a;
  border: 1px solid rgb(118, 118, 118); border-bottom-color: rgba(245, 239, 224, 0.5); border-radius: 0; }

/* Mosaïque : positions calculées par le serveur (voir src/photos.rs). */
.mosaique { left: 19px; top: 357px; width: 888px; }
.vignette { position: absolute; padding: 6px; width: 210px; }
.vignette i { display: block; width: 210px; height: 175px;
  background-size: cover; background-position: center center; background-repeat: no-repeat; }
.vignette img { display: block; width: 210px; }

/* ===== Visionneuse =====
   Même fond et mêmes flèches dorées que l'ancienne page « PAGE_Photo », mais ouverte par-dessus la galerie. */
#page > .visionneuse { position: fixed; inset: 0;   /* #page > * place tout en absolu : on reprend la main */ z-index: 99990; background-color: #1a1612;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
#page > .visionneuse[hidden] { display: none; }
#page > .visionneuse.ouverte { opacity: 1; }
.visionneuse-photo { max-width: calc(100vw - 160px); max-height: calc(100vh - 100px); object-fit: contain;
  transition: opacity 0.2s ease; user-select: none; -webkit-user-drag: none; touch-action: pinch-zoom; }
.visionneuse-photo.changement { opacity: 0; }
.visionneuse button { position: absolute; border: 0; padding: 0; background-color: transparent;
  background-position: center; background-size: contain; background-repeat: no-repeat;
  opacity: 0.85; transition: opacity 0.2s ease; }
.visionneuse button:hover { opacity: 1; }
.visionneuse-prec, .visionneuse-suiv { top: 50%; width: 44px; height: 44px; margin-top: -22px; }
.visionneuse-prec { left: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M40 22H6M18 9L5 22l13 13' fill='none' stroke='%23c9983a' stroke-width='3.5' stroke-linecap='square'/%3E%3C/svg%3E"); }
.visionneuse-suiv { right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M4 22h34M26 9l13 13-13 13' fill='none' stroke='%23c9983a' stroke-width='3.5' stroke-linecap='square'/%3E%3C/svg%3E"); }
.visionneuse-fermer { top: 18px; right: 22px; width: 30px; height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M4 4l22 22M26 4L4 26' fill='none' stroke='%23c9983a' stroke-width='3'/%3E%3C/svg%3E"); }
.visionneuse-legende { position: absolute; top: 24px; left: 26px; right: 80px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-family: 'DM Mono', sans-serif; font-size: 13px; letter-spacing: 0.3em;
  text-transform: uppercase; color: #c9983a; }

/* ===== Téléphone : titre, choix du spectacle, mosaïque sur deux colonnes ===== */
@media (max-width: 820px) {
  #page > .titre-nos { flex: 0 0 auto; width: auto; height: auto; margin: 22px 0 0 16px; padding-right: 0.2em;
    font-size: 48px; line-height: 1.1; }
  #page > .titre-photos { flex: 0 0 auto; width: auto; height: auto; font-size: 48px; line-height: 1.1; }
  #page > .choix-libelle { width: auto; height: auto; margin-top: 4px; padding: 0 16px; font-size: 17px; }
  #page > .choix-spectacle { flex: 0 0 calc(100% - 32px); width: auto; height: 52px; margin: 8px 16px 16px;
    padding: 0 8px; font-size: 24px; }
  /* Les vignettes passent en colonnes (la place calculée pour l'écran large est ignorée), photos entières. */
  #page > .mosaique { width: auto; height: auto !important; padding: 0 10px; columns: 2; column-gap: 8px; }
  .vignette { position: static; display: block; width: auto; padding: 0 0 8px; break-inside: avoid; }
  .vignette i { width: auto; height: auto; background: none !important; }
  .vignette img { width: 100%; height: auto !important; }

  /* Visionneuse : photo sur toute la largeur, flèches en bas (le glissement du doigt marche aussi). */
  .visionneuse-photo { max-width: 100vw; max-height: calc(100vh - 150px); }
  .visionneuse-prec, .visionneuse-suiv { top: auto; bottom: 26px; margin-top: 0; width: 48px; height: 48px; }
  .visionneuse-prec { left: 24px; }
  .visionneuse-suiv { right: 24px; }
  .visionneuse-fermer { top: 14px; right: 14px; width: 34px; height: 34px; }
  .visionneuse-legende { top: 22px; left: 16px; right: 64px; letter-spacing: 0.15em; }
}
