/* ============================================================
   BLANCHOUD PHOTOGRAPHY — SILENCE PACK v1.0 (CSS)
   NOTE : le fichier CSS original du pack étant introuvable, cette
   feuille a été écrite d'après les classes attendues par
   silence-pack.js, dans le langage graphique du site
   (ivoire #F6F1E6 · noir #1A1814 · or #B8956A · Cormorant).
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   1 · L'IMAGE QUI SE MÉRITE — l'œuvre offerte à l'immobilité
   ────────────────────────────────────────────────────────── */

.bp-silence-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;                 /* au-dessus de tout, sous le grain */
  background: #0D0C0A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(1.5rem, 5vh, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.4s ease;
}

.bp-silence-overlay.bp-visible {
  opacity: 1;
  pointer-events: auto;
}

.bp-silence-overlay img {
  max-width: min(86vw, 1100px);
  max-height: 72svh;
  object-fit: contain;
  box-shadow: 0 40px 110px -30px rgba(0, 0, 0, 0.9);
}

.bp-silence-titre {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: var(--ivoire-ombre, #e9e1d0);
  text-align: center;
}

.bp-silence-note {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or, #B8956A);
  text-align: center;
}

/* ──────────────────────────────────────────────────────────
   3 · LA RÉVÉLATION ARGENTIQUE (bp-revelation)
   Présent pour la complétude du pack — NON UTILISÉ sur ce site :
   la galerie possède déjà son bain de révélateur (develop-print).
   ────────────────────────────────────────────────────────── */

img.bp-revelation {
  opacity: 0;
  filter: blur(10px) brightness(2.2) contrast(0.2) sepia(0.45);
  transition: opacity 1.8s ease, filter 2.4s cubic-bezier(0.3, 0.3, 0.15, 1);
}

img.bp-revelation.bp-developed {
  opacity: 1;
  filter: none;
}

/* ──────────────────────────────────────────────────────────
   4 · LA LUMIÈRE DE NEUCHÂTEL — voile horaire très léger
   Cohabitation : sous le grain (9999), au-dessus du contenu.
   ────────────────────────────────────────────────────────── */

html[data-bp-light] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8990;
  opacity: 0;
  transition: opacity 3s ease;
}

html[data-bp-light="aube"] body::before {
  background: linear-gradient(180deg, rgba(214, 189, 156, 0.10), transparent 55%);
  opacity: 1;
}

html[data-bp-light="crepuscule"] body::before {
  background: linear-gradient(180deg, rgba(184, 149, 106, 0.12), rgba(26, 24, 20, 0.07));
  opacity: 1;
}

html[data-bp-light="nuit"] body::before {
  background: rgba(13, 12, 10, 0.22);
  opacity: 1;
}

/* En mode sombre, la teinte nuit s'efface presque (lisibilité) */
html[data-theme="dark"][data-bp-light="nuit"] body::before {
  background: rgba(13, 12, 10, 0.15);
}

.bp-lumiere-legende {
  position: fixed;
  /* encoche / home indicator iPhone : safe-area respectée */
  left: calc(clamp(0.8rem, 2vw, 1.6rem) + env(safe-area-inset-left, 0px));
  bottom: calc(clamp(0.7rem, 2vh, 1.2rem) + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--page-fg, #1A1814);
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 720px) {
  .bp-lumiere-legende { display: none; }
}

/* ──────────────────────────────────────────────────────────
   2 · PASSEPORT D'ŒUVRE — réservé (CSS seul, aucun HTML posé)
   5 · CIMETIÈRE DES IMAGES — réservé (CSS seul, aucun HTML posé)
   Les styles originaux du pack n'ont pas été retrouvés ; ces
   sections seront écrites quand les modules seront activés.
   ────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────
   Accessibilité
   ────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .bp-silence-overlay,
  html[data-bp-light] body::before,
  img.bp-revelation {
    transition: none;
  }
}
