@charset "UTF-8";

/* =========================================================
   WHAT-EYE-SAW - GALERIES / SÉRIES PLEIN ÉCRAN
   Feuille commune aux pages index-*.html du dossier GALERIES
   ========================================================= */

:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-editorial: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --accent-amber: #ffbf00;
  --cta-size: clamp(60px, 6vw, 90px);
  --panel-width: 760px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #000;
}

body {
  overflow: hidden;
  touch-action: none;
  cursor: none;
  color: #fff;
  font-family: var(--font-editorial);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   EN-TÊTE ET LOGO
   ========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  padding: 0 clamp(16px, 4vw, 40px);
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.site-header.ready {
  opacity: 1;
}

.site-title {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  user-select: none;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.logo-fixed {
  position: fixed;
  top: clamp(16px, 3vw, 28px);
  left: clamp(20px, 4vw, 40px);
  z-index: 10;
  display: inline-block;
  font-family: var(--font-editorial);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: 0.04em;
  pointer-events: auto;
  transition: opacity 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.logo-fixed .eye {
  color: var(--accent-amber);
}

/* =========================
   IMAGES DE FOND
   ========================= */

.bg-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.bg {
  position: absolute;
  inset: 0;

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transition: opacity 1.4s ease;
}

.bg.is-active {
  opacity: 1;
}

/* Utiliser class="show-entire-image" sur body pour éviter tout recadrage. */
body.show-entire-image .bg {
  background-size: contain;
}

/* =========================
   PANNEAU D’INTRODUCTION
   ========================= */

.gallery-intro {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  cursor: default;
}

.gallery-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-intro-content {
  width: min(var(--panel-width), 100%);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.gallery-intro h1 {
  margin: 0 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
}

.gallery-intro p,
.gallery-intro blockquote {
  max-width: 680px;
  margin: 0 auto 1rem;
  font-family: var(--font-ui);
  font-size: clamp(0.98rem, 1.8vw, 1.16rem);
  line-height: 1.6;
}

.gallery-intro blockquote {
  padding: 0.15rem 0 0.15rem 1.1rem;
  text-align: left;
  font-family: var(--font-editorial);
  font-style: italic;
  border-left: 2px solid rgba(255, 255, 255, 0.55);
}

.gallery-intro cite {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-style: normal;
  opacity: 0.78;
}

.gallery-intro hr {
  width: min(180px, 40%);
  margin: 1.5rem auto;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
}

.gallery-navigation {
  margin-top: 1.35rem !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  opacity: 0.86;
}

.gallery-intro-button,
.gallery-info-button {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--font-ui);
  cursor: pointer !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.gallery-intro-button {
  margin-top: 1rem;
  padding: 0.75rem 1.4rem;
  font-size: 1rem;
}

.gallery-intro-button:hover,
.gallery-intro-button:focus-visible,
.gallery-info-button:hover,
.gallery-info-button:focus-visible {
  background: #fff;
  color: #111;
}

.gallery-intro-button:focus-visible,
.gallery-info-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.25);
  outline-offset: 4px;
}

/* =========================
   BOUTON INFO
   ========================= */

.gallery-info-button {
  position: fixed;
  right: 1.25rem;
  bottom: 2.1rem;
  z-index: 1100;
  padding: 0.62rem 1rem;
  font-size: 0.9rem;
}

.gallery-info-button.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================
   BOUTON CENTRAL MOBILE / SORTIE
   ========================= */

.round-cta {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cta-size);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.75);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  cursor: pointer !important;
  opacity: 0;
  isolation: isolate;
  transform: translate(-50%, -50%) scale(0.9);
  transition: background 0.3s ease, transform 0.45s ease, opacity 0.6s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), 0 0 28px rgba(255, 255, 255, 0.55);
}

.round-cta.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.round-cta:hover {
  background: rgba(40, 40, 40, 0.9);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 38px rgba(255, 255, 255, 0.85);
}

.round-cta:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.2);
  outline-offset: 4px;
}

.btn-text,
.cta-label {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.cta-counter {
  margin-top: 0.4em;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
}

.arrow {
  font-size: 1.2rem;
  line-height: 1;
  color: #fff;
  opacity: 0.85;
}

.round-cta:hover .arrow {
  opacity: 1;
}

/* =========================
   INDICATION TEMPORAIRE
   ========================= */

.hint {
  position: fixed;
  top: 25%;
  left: 50%;
  z-index: 25;
  font-size: clamp(14px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.6s ease;
  background: rgba(0, 80, 150, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hint.show {
  opacity: 1;
}

.hint span {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
}

.hint.blink span::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 160, 255, 0.95);
  border-radius: inherit;
  box-shadow: 0 0 8px rgba(0, 160, 255, 0.95), 0 0 18px rgba(0, 160, 255, 0.8), 0 0 36px rgba(0, 200, 255, 0.6);
  opacity: 0;
  animation: neonFrameBlink 0.6s ease-in-out 3;
}

.hint.fadeout {
  animation: hintVanish 0.4s ease forwards;
}

/* =========================
   PIED DE PAGE
   ========================= */

.vision-footer {
  position: fixed;
  bottom: 0;
  z-index: 30;
  width: 100%;
  padding: 0.4rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* =========================
   ANIMATIONS ET RESPONSIVE
   ========================= */

@keyframes neonFrameBlink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes hintVanish {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 700px) {
  .gallery-intro {
    align-items: flex-start;
    padding: 4.5rem 1rem 1rem;
  }

  .gallery-intro-content {
    max-height: calc(100vh - 5.5rem);
    padding: 1.15rem;
  }

  .gallery-intro h1 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .gallery-intro p,
  .gallery-intro blockquote {
    font-size: 0.96rem;
  }

  .gallery-info-button {
    right: 0.75rem;
    bottom: 1.75rem;
  }
}

/* Ordre d’affichage général */

.gallery-intro {
  z-index: 1000;
}

.gallery-info-button {
  z-index: 1100;
}

.slide-scale {
  z-index: 1200;
}

.round-cta {
  z-index: 1300;
}

/* Ordre smartphone */
@media (max-width: 700px) {
  .gallery-intro {
    z-index: 1000;
  }

  .gallery-info-button {
    z-index: 1100;
  }

  .slide-scale {
    z-index: 1200;
  }

  .round-cta {
    z-index: 1300;
  }
}