/* LeBigo, site vitrine. Une grille, une largeur, un rythme. */

:root {
  --text: #1B1A17;
  --text-2: #6E6A62;
  --text-3: #9A968E;
  --border: rgba(0, 0, 0, .1);
  --accent: #5B54E8;
  --accent-tint: #EEEDFB;
  --page: #fff;
  --surface: #fff;
  --nav-bg: rgba(255, 255, 255, .9);
  --tint-start: #f8f7ff;
  --native-bg: #1b1a24;
  --shadow: rgba(0, 0, 0, .22);
  --menu-shadow: rgba(0, 0, 0, .12);
  --font: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1080px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --text: #F4F3F0;
  --text-2: #AAA7AE;
  --text-3: #7E7B84;
  --border: rgba(255, 255, 255, .11);
  --accent: #8883FF;
  --accent-tint: rgba(111, 104, 255, .17);
  --page: #18171C;
  --surface: #211F26;
  --nav-bg: rgba(24, 23, 28, .9);
  --tint-start: #201E29;
  --native-bg: #111015;
  --shadow: rgba(0, 0, 0, .58);
  --menu-shadow: rgba(0, 0, 0, .38);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #F4F3F0;
    --text-2: #AAA7AE;
    --text-3: #7E7B84;
    --border: rgba(255, 255, 255, .11);
    --accent: #8883FF;
    --accent-tint: rgba(111, 104, 255, .17);
    --page: #18171C;
    --surface: #211F26;
    --nav-bg: rgba(24, 23, 28, .9);
    --tint-start: #201E29;
    --native-bg: #111015;
    --shadow: rgba(0, 0, 0, .58);
    --menu-shadow: rgba(0, 0, 0, .38);
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

section[id] { scroll-margin-top: 80px; }

body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--page);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

img { display: block; width: 100%; height: auto; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

h1, h2 { line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
h3 { line-height: 1.18; letter-spacing: -.02em; font-size: 1.25rem; }

p { color: var(--text-2); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 700; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.lede { font-size: 1.08rem; max-width: 36em; margin: 0 auto 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.025em;
}
.nav__brand:hover { text-decoration: none; }
.nav__brand-mark { width: 34px; height: 34px; border-radius: 7px; }
.nav__end { display: flex; align-items: center; gap: 22px; }
.nav__links { display: flex; gap: 24px; }
.nav__links a {
  color: var(--text-2);
  font-weight: 600;
  font-size: .9rem;
}
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__cta {
  font-weight: 700;
  font-size: .88rem;
  color: #fff;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav__cta:hover { color: #fff; text-decoration: none; opacity: .9; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 24px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero-rotate {
  display: inline-block;
  color: var(--accent);
  transition: opacity .35s ease, transform .35s ease;
}
.hero-rotate.is-out { opacity: 0; transform: translateY(10px); }
.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
}
.button:hover { text-decoration: none; }
.button--primary { color: #fff; background: var(--accent); }
.button--primary:hover { color: #fff; opacity: .9; }
.button--secondary { color: var(--text); border: 1px solid var(--border); background: var(--surface); }
.button--secondary:hover { color: var(--accent); border-color: var(--accent); }
/* ---------- Platform pillars ---------- */
.platform { padding-top: 96px; }
.platform h2 { max-width: 20em; margin-left: auto; margin-right: auto; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
  text-align: left;
}
.pillar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pillar:hover {
  color: var(--text);
  border-color: rgba(91, 84, 232, .45);
  box-shadow: 0 16px 40px -28px rgba(40, 34, 130, .5);
  transform: translateY(-3px);
  text-decoration: none;
}
.pillar__number {
  margin-bottom: 38px;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--accent);
}
.pillar strong { margin-bottom: 7px; font-size: 1.12rem; }
.pillar > span:last-child { font-size: .91rem; line-height: 1.45; color: var(--text-2); }

/* ---------- Shared shot ---------- */
.shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 16px 40px -24px var(--shadow);
}

/* ---------- Blocks ---------- */
.block { padding: 72px 0 16px; }
.block--tight { padding: 48px 0 8px; }
.block__item { padding: 64px 0 0; }
.block__item:first-child { padding-top: 0; }

/* ---------- Product chapters ---------- */
.chapter { padding-top: 104px; }
.chapter--tint {
  margin-top: 88px;
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--tint-start) 0%, var(--page) 100%);
  border-top: 1px solid rgba(91, 84, 232, .1);
}
.chapter--tint + .chapter { padding-top: 88px; }
.feature-tags { margin-bottom: 30px; }
.feature-tags span { background: var(--accent-tint); border-color: transparent; color: var(--accent); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}
.benefit-grid--two { grid-template-columns: repeat(2, 1fr); }
.benefit {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.benefit .eyebrow { margin-bottom: 26px; }
.benefit h3 { margin-bottom: 8px; }
.benefit p:last-child { font-size: .92rem; }
.collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
  text-align: left;
}
.collab-card {
  min-height: 330px;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.collab-card--accent {
  background: var(--accent);
  border-color: var(--accent);
}
.collab-card__kicker {
  margin-bottom: 48px;
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
}
.collab-card h3 { margin: 0 0 10px; font-size: 1.45rem; }
.collab-card p { max-width: 34em; }
.collab-card--accent h3,
.collab-card--accent .collab-card__kicker { color: #fff; }
.collab-card--accent > p { color: rgba(255, 255, 255, .78); }
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 32px;
}
.mini-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-tint);
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--accent);
}
.collab-card--accent .mini-tags span { background: rgba(255, 255, 255, .14); color: #fff; }
.collab-shot { margin-top: 18px; }
.work-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  font-size: .9rem;
  color: var(--text-2);
}
.work-flow span { display: inline-flex; align-items: center; gap: 7px; }
.work-flow b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--mono);
  font-size: .68rem;
}
.work-flow i { color: var(--text-3); font-style: normal; }
.native-telephony {
  margin-top: 88px;
  padding: 96px 0;
  background: var(--native-bg);
}
.native-telephony h2 { color: #fff; }
.native-telephony .lede { color: rgba(255, 255, 255, .66); }
.native-telephony .shot { border-color: rgba(255, 255, 255, .14); }

/* ---------- Phones ---------- */
.phones {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.phones figure { flex: 0 0 180px; text-align: center; }
.phones img {
  border-radius: 22px;
  border: 1px solid var(--border);
}
.phones figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-2);
}

/* ---------- Tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 24px;
}
.tags span {
  font-family: var(--mono);
  font-size: .8rem;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.note { font-size: .95rem; color: var(--text-3); margin-bottom: 10px; }
.downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.downloads > a,
.downloads .dl-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 124px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  padding: 20px 18px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.downloads > a:hover,
.downloads .dl-main:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* Le Mac se télécharge à deux temps : la tuile prend le paquet universel, celui
   qui marche partout, donc le bon choix par défaut, et la flèche ouvre les deux
   variantes pour qui sait ce qu'il a sous le capot. C'est un <details> : il
   s'ouvre au clavier, il se referme à Échap, et il fonctionne sans JavaScript. */
.dl-split { position: relative; display: flex; }
/* Symétrique : la place prise par la flèche est rendue à gauche, sinon l'icône
   et le mot « Mac » sont visiblement décalés à côté des autres tuiles. */
.dl-split .dl-main { padding-right: 30px; padding-left: 30px; }
.dl-pick { position: absolute; top: 8px; right: 8px; }
.dl-pick > summary {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--text-3);
  cursor: pointer;
  list-style: none;
}
.dl-pick > summary::-webkit-details-marker { display: none; }
.dl-pick > summary:hover,
.dl-pick[open] > summary { color: var(--accent); background: var(--accent-tint); }
.dl-pick > summary svg { width: 15px; height: 15px; transition: transform .18s ease; }
.dl-pick[open] > summary svg { transform: rotate(180deg); }
.dl-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 10px);
  /* Ancré à DROITE de la tuile, pas centré dessus : centré, il sortait de l'écran
     sur un téléphone (le menu est deux fois plus large que la tuile). Ancré à
     droite il s'étend vers la gauche, du côté où il y a toujours de la place. */
  right: 0;
  width: 262px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px var(--menu-shadow);
}
.dl-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.dl-menu a span {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-3);
}
.dl-menu a:hover { background: var(--accent-tint); color: var(--accent); text-decoration: none; }
.dl-menu a:hover span { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .dl-pick > summary svg { transition: none; }
}
.downloads img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}
:root[data-theme="dark"] .download-icon--monochrome {
  filter: brightness(0) invert(1);
  opacity: .92;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .download-icon--monochrome {
    filter: brightness(0) invert(1);
    opacity: .92;
  }
}

.note em {
  font-style: normal;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
}

/* ---------- About / footer ---------- */
.block#a-propos p { max-width: 40em; margin: 0 auto 14px; }
.final-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.footer { border-top: 1px solid var(--border); padding: 24px 0 32px; }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-3);
}
.footer a { color: var(--text-2); }
.footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: .7rem;
}
.theme-easter-egg {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: var(--text-3);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: .42;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}
.theme-easter-egg:hover,
.theme-easter-egg:focus-visible { color: var(--accent); opacity: 1; transform: rotate(8deg); }
.theme-easter-egg svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-easter-egg__moon { display: none; }
.theme-easter-egg[data-current-theme="dark"] .theme-easter-egg__sun { display: none; }
.theme-easter-egg[data-current-theme="dark"] .theme-easter-egg__moon { display: block; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 1;
  transform: translateY(8px);
  transition: transform .3s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
}

@media (max-width: 820px) {
  .benefit-grid, .benefit-grid--two, .collab-grid { grid-template-columns: 1fr; }
  .collab-card { min-height: 0; }
}

@media (max-width: 720px) {
  .nav__cta { font-size: .8rem; padding: 7px 12px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 48px; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar { min-height: 0; padding: 18px; }
  .chapter { padding-top: 80px; }
  .chapter--tint { margin-top: 64px; padding: 72px 0 60px; }
  .chapter--tint + .chapter { padding-top: 68px; }
  .native-telephony { margin-top: 64px; padding: 72px 0; }
  .collab-card { min-height: 0; padding: 24px; }
  .work-flow { flex-wrap: wrap; gap: 10px; }
  .phones figure { flex-basis: 150px; }
}

@media (max-width: 440px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
}

/* ---------- Page Fonctionnalités ----------
   Même vocabulaire que l'accueil : les cartes SONT les .benefit de la page
   d'accueil, dans leur .benefit-grid. Ce bloc n'ajoute que ce que l'accueil
   n'a pas : une colonne de sommaire collante et le rythme vertical d'une page
   qui enchaîne douze chapitres au lieu d'en montrer cinq. */
.hero--page { padding: 64px 0 8px; }
.hero--page h1 { margin-bottom: 16px; }

.feat-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 16px;
  text-align: left;
}

.toc {
  position: sticky;
  top: 88px;
  align-self: start;
}
.toc__title {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
}
.toc__nav { display: flex; flex-direction: column; gap: 2px; }
.toc__nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-2);
}
.toc__nav a:hover { color: var(--text); background: var(--accent-tint); text-decoration: none; }
.toc__nav a i {
  font-style: normal;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-3);
}
.toc__nav a.is-active { color: var(--accent); background: var(--accent-tint); }
.toc__nav a.is-active i { color: var(--accent); }

/* Le décalage d'ancre sous la barre collante vient de la règle section[id]
   plus haut : plus spécifique que cette classe, elle gagnerait de toute façon. */
.feat { padding: 8px 0 60px; }
.feat:first-child { padding-top: 0; }
.feat h2 { max-width: 20em; }
.feat .lede { max-width: 44em; margin-left: 0; margin-bottom: 0; }
.feat .benefit-grid { margin-top: 26px; }
.feat--cta {
  padding-top: 44px;
  padding-bottom: 72px;
  border-top: 1px solid var(--border);
}
.feat--cta .final-actions { justify-content: flex-start; }

.nav__links a.is-current { color: var(--text); }

@media (max-width: 960px) {
  /* Le sommaire passe sous la barre de nav en rail horizontal : une colonne de
     douze entrées mangerait le premier écran d'un téléphone. */
  .feat-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc {
    position: sticky;
    top: 64px;
    z-index: 10;
    margin: 0 -24px 26px;
    padding: 10px 24px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .toc__title { display: none; }
  .toc__nav {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .toc__nav::-webkit-scrollbar { display: none; }
  .toc__nav a {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .82rem;
    white-space: nowrap;
  }
  .toc__nav a i { display: none; }
  .toc__nav a.is-active { border-color: transparent; }
}

@media (max-width: 720px) {
  .feat-layout { width: calc(100% - 32px); }
  .toc { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .feat { padding-bottom: 48px; }
}

/* ---------- Captures, par fonctionnalité ---------- */
/* Une carte qui a sa capture porte une pastille. Elle reste discrète tant
   qu'on ne s'approche pas : la page se lit d'abord, les écrans viennent à la
   demande. Les images ne sont PAS dans le flux — 111 captures en ligne, c'est
   quinze mégaoctets ; elles sont chargées à l'ouverture de l'aperçu. */
.benefit { position: relative; }
.peek {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--text-3);
  background: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  opacity: .55;
  transition: opacity .16s ease, color .16s ease, border-color .16s ease, background-color .16s ease;
}
.benefit:hover .peek { opacity: 1; }
.peek:hover,
.peek:focus-visible {
  opacity: 1;
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-tint);
}
.peek svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit h3 { padding-right: 38px; }

/* L'aperçu qui sort de la pastille. Confort, pas contenu : le clic ouvre la
   visionneuse, qui, elle, marche au clavier et sur téléphone. */
.toc-peek {
  position: fixed;
  z-index: 30;
  width: 420px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 22px 50px -18px var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}
.toc-peek.is-open { opacity: 1; transform: none; }
.toc-peek img { border-radius: 7px; }
@media (max-width: 1180px), (pointer: coarse) {
  .toc-peek { display: none; }
}

/* ---------- Visionneuse ---------- */
/* CENTRÉE ET BORNÉE. Un <dialog> modal se centre avec `inset: 0; margin: auto`,
   et il faut le lui redire : une hauteur maximale seule le laissait collé en
   haut. La borne de largeur compte autant — sur un écran ultra-large, une
   capture étalée sur 90 % de la fenêtre est illisible, alors qu'elle a été
   prise à 1280 px de large. */
.viewer {
  position: fixed;
  inset: 0;
  width: min(1120px, 92vw);
  max-width: none;
  height: max-content;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}
.viewer::backdrop { background: rgba(12, 11, 16, .84); backdrop-filter: blur(6px); }
.viewer[open] { display: flex; align-items: center; gap: 12px; }
.viewer__frame {
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: center;
}
.viewer__frame img {
  width: auto;
  max-width: 100%;
  /* Jamais plus haute que ça : au-delà, on n'agrandit plus une capture, on
     l'étire, et la page derrière disparaît sous une image géante. */
  max-height: min(64vh, 700px);
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px -30px #000;
}
.viewer__frame figcaption {
  margin-top: 16px;
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
}
.viewer__nav,
.viewer__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.viewer__nav:hover,
.viewer__close:hover { background: rgba(255, 255, 255, .24); }
.viewer__nav svg,
.viewer__close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.viewer__close { position: fixed; top: 22px; right: 26px; }
@media (max-width: 720px) {
  /* Les deux flèches mangeraient la moitié de la largeur : la capture prend
     tout, et on navigue par balayage. */
  .viewer { width: 94vw; }
  .viewer__nav { position: fixed; bottom: 24px; }
  .viewer__nav--prev { left: 24px; }
  .viewer__nav--next { right: 24px; }
  .viewer__frame img { max-height: 62vh; }
  .viewer__frame figcaption { margin-bottom: 78px; }
}