

:root {
  --maison-ember: #B1230A;
  --maison-ember-glow: #CE2B37;
  --maison-muted: #5f5f5f;
  --maison-panel: #141414;
}

.viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Le header et le menu du site passent au-dessus du viewer plein ecran (z-index 1000) pour
   que la navigation SENTEKIA reste accessible depuis cette page. */
body:has(.viewer) .ep-header { z-index: 1001; }
body:has(.viewer) .ep-menu-overlay { z-index: 1002; }
body:has(.viewer) { overflow: hidden; }
@media (max-width: 768px) {
  body:has(.viewer) .ep-mark { display: none; }
}

.viewer-static-page {
  position: fixed;
  z-index: 4;
  inset: 0;
  display: block;
  overflow-x: hidden;
  overflow-y: hidden;
  color: #fff;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.viewer-static-page::-webkit-scrollbar { width: 0; height: 0; }
.viewer-static-page-inner {
  width: 100%;
  height: 100%;
  padding: 48px 0 32px;
}
.viewer-static-page h1 {
  margin: 0 0 20px;
  font-family: var(--display, 'Inter', sans-serif);
  font-size: clamp(46px, 13vw, 96px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #fff;
}
.viewer-static-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.25vw, 72px);
  height: 100%;
  min-height: 0;
}
.viewer-static-media {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: visible;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.viewer-static-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
}
.viewer-static-media img.unavailable { opacity: 0; }
.viewer-static-content {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: calc(clamp(46px, 13vw, 96px) * 1.1 + 20px) 8px 140px 0;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.viewer-static-content::-webkit-scrollbar { width: 0; height: 0; }
.viewer-static-content.has-overflow {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 96px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 96px), transparent 100%);
}
.viewer-static-content.has-overflow.is-scrolled:not(.is-at-bottom) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 72px, #000 calc(100% - 96px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 72px, #000 calc(100% - 96px), transparent 100%);
}
.viewer-static-content.has-overflow.is-scrolled.is-at-bottom {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 72px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 72px, #000 100%);
}
.viewer-static-copy {
  color: #b8b6ae;
  font-family: var(--display, 'Inter', sans-serif);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.62;
}
.viewer-static-copy p { margin: 0 0 20px; }
.viewer-static-copy strong { color: #fff; }
/* Paragraphe d'ouverture : l'italique Fraunces du site */
.viewer-static-copy .viewer-static-lead {
  font-family: var(--editorial, 'Fraunces', Georgia, serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.4;
  color: #f1ece4;
}
.viewer-static-copy .viewer-static-lead strong { font-family: inherit; font-style: italic; font-weight: 600; }
.viewer-static-inline-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 36px 0 44px;
  overflow: hidden;
  border-radius: 3px;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.viewer-static-inline-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.viewer-static-inline-media:hover img { transform: scale(1.02); }

.viewer-static-copy .reveal-line {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
}
.viewer-static-copy .reveal-line.is-revealed { opacity: 1; transform: translateY(0); }
.viewer-static-copy .reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.viewer-static-copy .reveal-word.is-in { opacity: 1; transform: translateY(0); }
.viewer-static-copy .reveal-word.is-scrambling {
  opacity: 1;
  transform: translateY(0);
  font-family: var(--display, 'Inter', sans-serif);
  color: var(--maison-ember-glow);
}
@media (prefers-reduced-motion: reduce) {
  .viewer-static-copy .reveal-line,
  .viewer-static-copy .reveal-word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) and (max-width: 1100px) {
  .viewer-static-copy .reveal-line { transform: translateY(40px); transition-duration: .7s; }
  .viewer-static-copy .reveal-word { transform: translateY(20px); transition-duration: .4s; }
}

.viewer-static-copy section { margin-top: 0; }
.viewer-static-copy h2,
.viewer-static-copy h3 {
  margin: 0 0 18px;
  font-family: var(--display, 'Inter', sans-serif);
  font-weight: 800;
}
.viewer-static-reason + .viewer-static-reason { margin-top: 30px; }
.viewer-static-reason h3 { margin: 0 0 7px; text-transform: none; }
.viewer-static-reason p { margin-bottom: 0; }
.viewer-static-copy h2 { font-size: 24px; line-height: 1.05; }
.viewer-static-copy h3 { margin-top: 30px; font-size: 16px; line-height: 1.15; }
.viewer-static-copy .viewer-static-pill + h3 { margin-top: 72px; }
.viewer-static-copy strong {
  font-family: var(--display, 'Inter', sans-serif);
  font-weight: 700;
}

.viewer-static-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 38px;
  margin-top: 14px;
  padding: 10px 24px;
  border: 1px solid rgba(206, 43, 55, 0.6);
  border-radius: 0;
  background: linear-gradient(135deg, var(--maison-ember-glow) 0%, var(--maison-ember) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 18px rgba(177, 35, 10, .4);
  color: #fff !important;
  font-family: var(--display, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.viewer-static-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .38s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.viewer-static-pill:hover::before,
.viewer-static-pill:focus-visible::before { clip-path: inset(0 0 0 0); }
.viewer-static-pill-label { position: relative; z-index: 1; color: #fff !important; transition: color .2s ease; }
.viewer-static-pill:hover,
.viewer-static-pill:focus-visible { box-shadow: 0 6px 24px rgba(206, 43, 55, .65); transform: translateY(-2px); }
.viewer-static-pill:hover .viewer-static-pill-label,
.viewer-static-pill:focus-visible .viewer-static-pill-label { color: var(--maison-ember-glow) !important; }
.viewer-static-pill:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(177, 35, 10, .4); }
.viewer-static-pill:focus-visible { outline: 1px solid var(--maison-ember-glow); outline-offset: 3px; }

@media (max-width: 900px) {
  /* Correction du 25/09/2026 (retour mobile reel) : l'image restait "bloquee" en haut d'un
     panneau fixe (.viewer-static-page en overflow:hidden) pendant que seul le texte defilait
     dans sa propre mini-fenetre de ~200px de haut -- illisible. L'image fait maintenant partie
     du flux normal de la page et remonte hors ecran avec le reste au scroll, comme un article. */
  .viewer-static-page { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .viewer-static-page-inner { height: auto; min-height: 100%; }
  .viewer-static-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .viewer-static-media { position: relative; height: auto; }
  /* overflow-x/y visible ET overscroll-behavior:auto : sinon la colonne reste un conteneur de scroll
     (overflow-x:hidden force overflow-y en auto) avec overscroll-behavior:contain, qui bloque le
     geste tactile sur le texte au lieu de le passer au panneau parent. */
  .viewer-static-content { height: auto; overflow: visible; overscroll-behavior: auto; padding-top: 24px; padding-bottom: 64px; }
}

.static-image-mask {
  position: fixed;
  z-index: 7;
  display: block;
  pointer-events: none;
  opacity: 0;
}
.viewer-fluid-canvas {
  position: fixed;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  will-change: opacity;
}
.viewer-static-fluid-canvas { z-index: 999; }
