/* ═══ EXTRAS — logo + visionneuse des réalisations (ajouts hors moteur) ═══ */
.dock-logo { width: 30px; height: 30px; border-radius: 50%; margin-right: 12px; flex: none; display: block; }
.footer-logo { display: block; width: min(340px, 72vw); height: auto; margin: 0 auto 34px; }
.footer-logo.for-light { display: none; }
html:not([data-theme="dark"]) .footer-logo.for-dark { display: none; }
html:not([data-theme="dark"]) .footer-logo.for-light { display: block; }
@media (max-width: 480px) { .dock-logo { width: 26px; height: 26px; margin-right: 8px; } .footer-logo { width: min(260px, 70vw); } }

#collGrid .card { cursor: zoom-in; }
#collGrid .card:focus-visible { outline: 1px solid var(--lime); outline-offset: 6px; }
.card-more {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 7px 12px; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink);
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
  pointer-events: none;
}
#collGrid .card:hover .card-more, #collGrid .card:focus-visible .card-more { opacity: 1; transform: none; }
@media (hover: none) { .card-more { opacity: 1; transform: none; } }

.lb {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column;
  background: rgba(12, 12, 10, 0.96);
  color: #f2f1ec;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
  overscroll-behavior: contain; touch-action: pan-x;
}
.lb.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb-bar { display: flex; align-items: center; gap: 16px; padding: 16px var(--gutter); }
.lb-title { flex: 1; min-width: 0; font-size: 19px; letter-spacing: -0.01em; }
.lb-title .mono { display: block; color: #8f938f; margin-top: 2px; }
.lb-count { color: #8f938f; }
.lb-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid rgba(242,241,236,.28); background: transparent; color: inherit;
  font: 400 20px/1 var(--sans); cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, color .25s, border-color .25s;
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); outline: none; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); }
.lb-fig { flex: 1; min-width: 0; height: 100%; display: grid; place-items: center; }
.lb-fig img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); transition: opacity .3s; }
.lb-fig img.fade { opacity: 0; }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 14px var(--gutter) 18px; overflow-x: auto; }
.lb-thumbs button { flex: none; width: 64px; height: 46px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; opacity: .45; cursor: pointer; background: none; transition: opacity .25s, outline-color .25s; outline: 1px solid transparent; outline-offset: 2px; }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumbs button.on, .lb-thumbs button:hover { opacity: 1; }
.lb-thumbs button.on { outline-color: var(--lime); }
.lb.single .lb-prev, .lb.single .lb-next, .lb.single .lb-thumbs, .lb.single .lb-count { display: none; }
@media (max-width: 700px) {
  .lb-prev, .lb-next { position: absolute; bottom: 82px; z-index: 2; }
  .lb-prev { left: var(--gutter); } .lb-next { right: var(--gutter); }
  .lb-stage { padding: 0 8px; }
  .lb-title { font-size: 16px; }
}

/* ═══ Bouton clair / sombre ═══ */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; flex: none; margin-right: 4px;
  border: 1px solid var(--ink-faint); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.theme-toggle:hover, .theme-toggle:focus-visible { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); outline: none; }
.theme-toggle .ico-moon { display: none; }
html:not([data-theme="dark"]) .theme-toggle .ico-sun { display: none; }
html:not([data-theme="dark"]) .theme-toggle .ico-moon { display: block; }
@media (max-width: 480px) { .theme-toggle { width: 30px; height: 30px; margin-right: 2px; } }
