/* Photo du bandeau d'Actus & photos (voile : .page-head--photo, core/css/layout.css).
   Limitée à la rubrique : la feuille reste chargée quand on change de page. */
[data-route="news"] .page-head--photo { --ph-photo: url('/assets/heroes/actus.webp'); --ph-photo-sm: url('/assets/heroes/actus-1000.webp'); --ph-pos: center 35%; --ph-pos-sm: 62% center; }
/* ============================================================
   ACTUS — albums en polaroïds, visionneuse
   Chargée à l'arrivée sur /actus (core/lazy-assets.js) ; filtres, fenêtre
   large et lien de retour génériques dans core/css/ui.css
   ============================================================ */

/* ---------- Albums : piles de polaroïds ---------- */
.albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; padding: 14px 8px 4px; }
.album { position: relative; display: block; width: 100%; aspect-ratio: 5 / 5.4; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; animation: fun-drop .7s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--n, 0) * .12s); }
.album-photo { position: absolute; inset: 0; background: #fff; padding: 10px 10px 54px; border-radius: 6px; box-shadow: 0 6px 18px rgba(14, 12, 12, .14); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.album-photo .ph-img { border-radius: 3px; aspect-ratio: auto; height: 100%; }
.album-photo--back { transform: rotate(-7deg) translate(-6px, 6px); }
.album-photo--mid { transform: rotate(5deg) translate(8px, 2px); }
.album-photo--top { transform: rotate(-1.5deg); }
.album:hover .album-photo--back, .album:focus-visible .album-photo--back { transform: rotate(-13deg) translate(-34px, 10px); }
.album:hover .album-photo--mid, .album:focus-visible .album-photo--mid { transform: rotate(11deg) translate(36px, 4px); }
.album:hover .album-photo--top, .album:focus-visible .album-photo--top { transform: rotate(0) translateY(-8px); }
.album:focus-visible { outline: none; }
.album:focus-visible .album-photo--top { outline: 3px solid var(--c-blue); outline-offset: 3px; }
.album-caption { position: absolute; left: 14px; right: 14px; bottom: 10px; font-family: var(--f-display); font-weight: 800; font-size: 19px; line-height: 1.1; }
.album-caption small { display: block; font-family: var(--f-body); font-size: 13px; font-weight: 700; color: var(--c-mute); }
.album-tape { position: absolute; top: -10px; left: 50%; width: 74px; height: 22px; background: rgba(254, 202, 0, .55); transform: translateX(-50%) rotate(-4deg); border-radius: 3px; z-index: 4; }
.album-count { position: absolute; right: 8px; top: 8px; z-index: 4; font-weight: 800; font-size: 12.5px; background: var(--c-black); color: #fff; border-radius: var(--r-pill); padding: 1px 9px; }
.album-note { font-size: 14px; color: var(--c-mute); margin-top: 34px; }

/* ---------- Visionneuse ---------- */
.viewer-desc { margin-top: 0; color: var(--c-mute); }
.viewer { display: grid; gap: 10px; }
.viewer-main { position: relative; border-radius: 16px; overflow: hidden; background: var(--c-bg); touch-action: pan-y; user-select: none; }
.viewer-photo { margin: 0; animation: viewer-slide .35s ease-out; }
.viewer-photo .ph-img { border-radius: 0; aspect-ratio: 16 / 10; max-height: min(58vh, 520px); width: 100%; }
.viewer-photo .ph-img img { object-fit: contain; background: var(--c-black); }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 26px; font-weight: 800; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.viewer-nav:hover { background: var(--c-yellow); }
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }
.viewer-cap { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 0; }
.viewer-cap span { font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.viewer-cap b { color: var(--c-mute); white-space: nowrap; }
.viewer-thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; }
.viewer-thumbs button { flex: 0 0 auto; width: 88px; border: 3px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; background: none; cursor: pointer; transition: transform .2s; }
.viewer-thumbs button[aria-current="true"] { border-color: var(--c-black); transform: translateY(-3px); }
.viewer-thumbs .ph-img { border-radius: 6px; }
@keyframes viewer-slide { from { opacity: 0; transform: translateX(var(--dir, 0)); } }

@media (max-width: 860px) { .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .albums { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 14px 24px 4px; gap: 36px; }
  .album { max-width: 280px; }
  .viewer-nav { width: 40px; height: 40px; font-size: 22px; }
  .viewer-thumbs button { width: 66px; }
}
