/* Clochu · lecteur vidéo en fenêtre, visionneuse de photos, albums. Commun à tous les thèmes. */
html.ep-locked { overflow: hidden; }
html.ep-locked body { overflow: hidden; }

/* ---------- Vignettes vidéo cliquables ---------- */
.video-load[data-kind="video"] img, figure.ep-video video { transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.video-load[data-kind="video"]:hover img { transform: scale(1.04); opacity: 1; }
.video-load[data-kind="video"] .play, .ep-vplay .play { transition: transform .25s, box-shadow .25s; box-shadow: 0 0 0 0 rgba(255,255,255,.35); }
.video-load[data-kind="video"]:hover .play, .ep-vplay:hover .play { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(255,255,255,.18); }
figure.ep-video.ep-vready { position: relative; }
figure.ep-video.ep-vready video { pointer-events: none; display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; border-radius: var(--radius, 12px); }
.ep-vplay { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16/9; width: 100%; border: 0; padding: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35)); cursor: pointer; border-radius: var(--radius, 12px); }
.ep-vplay .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--accent, #e11d48); }
.ep-vplay .play::after { content: ""; position: absolute; left: 27px; top: 21px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.ep-playall { display: inline-flex; align-items: center; gap: 10px; }
.ep-playall[hidden] { display: none !important; }
.ep-playall .ep-pa-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--accent, #e11d48); color: #fff; display: inline-grid; place-items: center; }
.ep-playall .ep-pa-ic::after { content: ""; margin-left: 3px; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ep-playall .ep-pa-n { opacity: .7; font-weight: 600; }
.section-head .ep-playall { margin-left: auto; margin-right: 16px; }

/* ---------- Lecteur vidéo en fenêtre ---------- */
.epv { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: rgba(6,7,14,.94); color: #fff; opacity: 0; transition: opacity .22s; font-family: var(--font-body, system-ui, sans-serif); }
@supports (backdrop-filter: blur(10px)) { .epv { background: rgba(6,7,14,.86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); } }
.epv.in { opacity: 1; }
.epv-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 60px; }
.epv-count { font-variant-numeric: tabular-nums; font-size: .85rem; letter-spacing: .08em; opacity: .7; white-space: nowrap; }
.epv-title { flex: 1; min-width: 0; font-size: 1.02rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epv-btn { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.epv-btn:hover { background: rgba(255,255,255,.22); transform: scale(1.05); }
.epv-btn:focus-visible, .epv-nav:focus-visible, .epv-item:focus-visible { outline: 3px solid var(--accent, #e11d48); outline-offset: 2px; }
.epv-auto { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; cursor: pointer; white-space: nowrap; user-select: none; opacity: .9; }
.epv-auto input { position: absolute; opacity: 0; pointer-events: none; }
.epv-sw { width: 34px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.25); position: relative; transition: background .2s; }
.epv-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.epv-auto input:checked + .epv-sw { background: var(--accent, #e11d48); }
.epv-auto input:checked + .epv-sw::after { transform: translateX(14px); }
.epv-auto input:focus-visible + .epv-sw { outline: 3px solid #fff; outline-offset: 2px; }
.epv-body { flex: 1; min-height: 0; display: flex; gap: 0; padding: 0 16px 16px; }
.epv-stage { flex: 1; min-width: 0; position: relative; display: grid; place-items: center; }
.epv-frame { width: min(100%, calc((100vh - 110px) * 16 / 9)); aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.96); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.epv.in .epv-frame { transform: none; }
.epv-frame.is-tall { aspect-ratio: 9/16; width: auto; height: min(100%, calc(100vh - 110px)); }
.epv-frame iframe, .epv-frame video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.epv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s; }
.epv-nav:hover { background: var(--accent, #e11d48); }
.epv-nav[disabled] { opacity: 0; pointer-events: none; }
.epv-nav.prev { left: -6px; } .epv-nav.next { right: -6px; }
.epv-list { width: 340px; flex-shrink: 0; margin-left: 18px; display: flex; flex-direction: column; min-height: 0; background: rgba(255,255,255,.05); border-radius: 16px; overflow: hidden; }
.epv-list h3 { margin: 0; padding: 16px 18px 10px; font-size: .95rem; font-weight: 800; letter-spacing: .02em; color: #fff; font-family: inherit; text-transform: none; }
.epv-list h3 span { font-weight: 500; opacity: .6; }
.epv-list ol { list-style: none; margin: 0; padding: 0 8px 10px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.epv-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; transition: background .15s; }
.epv-item:hover { background: rgba(255,255,255,.08); }
.is-current > .epv-item { background: rgba(255,255,255,.12); }
.epv-th { position: relative; width: 120px; aspect-ratio: 16/9; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #1c1d2b; }
.epv-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.epv-th-ph { position: absolute; inset: 0; display: grid; place-items: center; opacity: .6; }
.epv-n { position: absolute; left: 6px; bottom: 6px; font-size: .72rem; font-weight: 800; background: rgba(0,0,0,.65); padding: 1px 7px; border-radius: 99px; }
.is-current .epv-th { box-shadow: 0 0 0 2px var(--accent, #e11d48); }
.epv-it { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.epv-it-t { font-size: .9rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.epv-now { display: none; font-size: .72rem; font-weight: 800; color: var(--accent, #e11d48); text-transform: uppercase; letter-spacing: .08em; }
.is-current .epv-now { display: block; }
.epv-tgl { display: none !important; }
@media (max-width: 899px) and (orientation: landscape) { .epv-tgl { display: grid !important; } }
@media (max-width: 899px) {
  .epv-top { padding: 8px 10px; gap: 8px; min-height: 54px; }
  .epv-auto span:last-child { display: none; }
  .epv-body { flex-direction: column; padding: 0 0 10px; }
  .epv-stage { flex: none; }
  .epv-frame { width: 100%; border-radius: 0; }
  .epv-frame.is-tall { height: min(70vh, 640px); width: auto; border-radius: 12px; }
  .epv-nav { display: none; }
  .epv-list { width: auto; margin: 12px 10px 0; flex: 1; }
  .epv-th { width: 108px; }
}
@media (max-width: 899px) and (orientation: landscape) { .epv-list { display: none; } .epv.list-open .epv-list { display: flex; position: absolute; right: 0; top: 54px; bottom: 0; width: 320px; margin: 0; background: rgba(10,10,20,.96); } }

/* ---------- Visionneuse de photos ---------- */
.eplb { position: fixed; inset: 0; z-index: 1000; color: #fff; background: #07070d; opacity: 0; transition: opacity .25s; overflow: hidden; touch-action: none; font-family: var(--font-body, system-ui, sans-serif); --fade: 1; }
.eplb.in { opacity: var(--fade); }
.eplb-amb { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.5) brightness(.45); transform: scale(1.1); transition: background-image .6s; opacity: .9; }
.eplb.bg-dark .eplb-amb { display: none; }
.eplb.bg-light { background: #f6f6f8; color: #14141c; }
.eplb.bg-light .eplb-amb { filter: blur(70px) saturate(1.3) brightness(1.4); opacity: .55; }
.eplb-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 4; background: rgba(255,255,255,.12); opacity: 0; transition: opacity .3s; }
.eplb.is-playing .eplb-progress { opacity: 1; }
.eplb-progress i { display: block; height: 100%; width: 0; background: var(--accent, #e11d48); }
.eplb-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); transition: opacity .3s; }
.eplb.bg-light .eplb-top { background: linear-gradient(180deg, rgba(255,255,255,.85), transparent); }
.eplb-count { font-variant-numeric: tabular-nums; font-size: .9rem; font-weight: 700; letter-spacing: .06em; padding-left: 6px; }
.eplb-sp { flex: 1; }
.eplb-btn { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.1); color: inherit; cursor: pointer; transition: background .2s, transform .2s; text-decoration: none; }
.eplb.bg-light .eplb-btn { background: rgba(0,0,0,.06); }
.eplb-btn:hover { background: rgba(255,255,255,.24); transform: scale(1.06); }
.eplb-btn:focus-visible, .eplb-nav:focus-visible, .eplb-th:focus-visible { outline: 3px solid var(--accent, #e11d48); outline-offset: 2px; }
.eplb.is-playing .eplb-top .eplb-btn:first-of-type { background: var(--accent, #e11d48); }
.eplb-stage { position: absolute; inset: 64px 0 112px; z-index: 1; overflow: hidden; cursor: grab; }
.eplb-stage:active { cursor: grabbing; }
.eplb-track { display: flex; height: 100%; will-change: transform; transform: translate3d(-100%,0,0); }
.eplb-slide { flex: 0 0 100%; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 70px; transition: transform .25s; }
.eplb-slide img, .eplb-slide video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 90px rgba(0,0,0,.55); user-select: none; -webkit-user-drag: none; transition: transform .3s cubic-bezier(.2,.8,.2,1), filter .4s; transform-origin: center; }
.eplb-slide:not(.is-loaded) img { filter: blur(6px); }
.eplb-slide video { background: #000; }
.eplb.is-zoomed .eplb-stage { cursor: move; }
.eplb-slide.kb img { animation: eplb-kb 9s ease-out forwards; }
@keyframes eplb-kb { from { transform: scale(1); } to { transform: scale(1.07); } }
.eplb-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: inherit; display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s, transform .2s; }
.eplb.bg-light .eplb-nav { background: rgba(0,0,0,.07); }
.eplb-nav:hover { background: var(--accent, #e11d48); color: #fff; transform: translateY(-50%) scale(1.06); }
.eplb-nav.prev { left: 12px; } .eplb-nav.next { right: 12px; }
.eplb-nav[disabled] { opacity: 0; pointer-events: none; }
.eplb-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 92px; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.eplb-cap p { margin: 0; max-width: 760px; padding: 8px 16px; border-radius: 12px; background: rgba(0,0,0,.45); font-size: .98rem; line-height: 1.45; text-align: center; backdrop-filter: blur(8px); }
.eplb.bg-light .eplb-cap p { background: rgba(255,255,255,.8); }
.eplb-strip { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 84px; display: flex; gap: 8px; padding: 12px 50%; overflow-x: auto; scrollbar-width: none; background: linear-gradient(0deg, rgba(0,0,0,.5), transparent); }
.eplb-strip::-webkit-scrollbar { display: none; }
.eplb.bg-light .eplb-strip { background: linear-gradient(0deg, rgba(255,255,255,.85), transparent); }
.eplb-th { flex: 0 0 auto; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .45; transition: opacity .2s, transform .2s, box-shadow .2s; background: #222; position: relative; }
.eplb-th:hover { opacity: .85; }
.eplb-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eplb-th.is-current { opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 3px var(--accent, #e11d48); }
.eplb-th.is-video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.eplb-toast { position: absolute; z-index: 5; left: 50%; top: 76px; transform: translateX(-50%); padding: 8px 16px; border-radius: 99px; background: #fff; color: #111; font-weight: 700; font-size: .9rem; animation: eplb-toast 1.8s; }
@keyframes eplb-toast { 0% { opacity: 0; transform: translate(-50%, -8px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.eplb.is-playing .eplb-strip, .eplb.is-playing .eplb-nav { opacity: 0; transition: opacity .6s; }
.eplb.is-playing:hover .eplb-strip, .eplb.is-playing:hover .eplb-nav:not([disabled]) { opacity: 1; }
@media (max-width: 760px) {
  .eplb-stage { inset: 60px 0 96px; }
  .eplb-slide { padding: 0; }
  .eplb-slide img { border-radius: 0; box-shadow: none; }
  .eplb-nav, .hide-touch { display: none; }
  .eplb-btn { width: 40px; height: 40px; }
  .eplb-cap { bottom: 78px; } .eplb-cap p { font-size: .9rem; }
  .eplb-strip { height: 72px; } .eplb-th { width: 50px; height: 50px; }
}
@media (hover: none) { .hide-touch { display: none; } }
@media (prefers-reduced-motion: reduce) { .eplb-track, .eplb-slide img, .epv-frame { transition: none !important; } .eplb-slide.kb img { animation: none; } }

/* =========================================================
   Albums (pages publiques)
   ========================================================= */
.alb-page { padding-bottom: 60px; }
.alb-sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 44px 0 18px; }
.alb-sec-title h2 { margin: 0; }

/* Album à la une */
.alb-feature { position: relative; display: block; border-radius: calc(var(--radius, 14px) + 6px); overflow: hidden; color: #fff; text-decoration: none; min-height: 420px; margin: 8px 0 36px; isolation: isolate; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.alb-feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.alb-feature:hover > img { transform: scale(1.05); }
.alb-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,6,16,.85) 0%, rgba(5,6,16,.45) 50%, rgba(5,6,16,.05) 100%), linear-gradient(0deg, rgba(5,6,16,.6), transparent 50%); }
.alb-feature-in { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 420px; padding: clamp(24px, 5vw, 56px); max-width: 720px; }
.alb-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #e11d48); }
.alb-feature .alb-kicker { color: #fff; background: var(--accent, #e11d48); padding: 5px 12px; border-radius: 99px; align-self: flex-start; }
.alb-feature h2 { margin: 0; color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.02; }
.alb-feature p { margin: 0; opacity: .9; font-size: 1.05rem; max-width: 560px; }
.alb-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; opacity: .9; }
.alb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.alb-meta svg { width: 16px; height: 16px; }
.alb-feature .alb-go { align-self: flex-start; margin-top: 6px; }
.alb-feature-strip { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; }
.alb-feature-strip img { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 10px 20px rgba(0,0,0,.35); transform: rotate(var(--r, 0deg)); transition: transform .4s; }
.alb-feature:hover .alb-feature-strip img { transform: rotate(0) translateY(-4px); }
@media (max-width: 760px) { .alb-feature, .alb-feature-in { min-height: 360px; } .alb-feature-strip { display: none; } }

/* Cartes d'albums */
.alb-grid { display: grid; gap: 34px 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.alb-card { display: block; color: inherit; text-decoration: none; }
.alb-cover { position: relative; aspect-ratio: 4/3; border-radius: var(--radius, 14px); isolation: isolate; }
.alb-cover::before, .alb-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--light, #e9e9f1); z-index: -1; transition: transform .45s cubic-bezier(.2,.8,.2,1); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.alb-cover::before { transform: rotate(-3deg) translateY(6px) scale(.97); background: color-mix(in srgb, var(--primary, #333) 25%, #fff); }
.alb-cover::after { transform: rotate(2.5deg) translateY(3px) scale(.985); background: color-mix(in srgb, var(--accent, #e11d48) 22%, #fff); }
.alb-card:hover .alb-cover::before { transform: rotate(-7deg) translate(-10px, 10px) scale(.96); }
.alb-card:hover .alb-cover::after { transform: rotate(6deg) translate(10px, 6px) scale(.97); }
.alb-cover-in { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #1b1c28; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.alb-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.alb-card:hover .alb-cover img { transform: scale(1.06); }
.alb-cover-next { opacity: 0; transition: opacity .45s !important; }
.alb-cover-next.on { opacity: 1; }
.alb-cover-empty { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.4); }
.alb-cover-empty svg { width: 48px; height: 48px; }
.alb-count { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; font-weight: 800; backdrop-filter: blur(6px); }
.alb-count svg { width: 14px; height: 14px; }
.alb-card h3 { margin: 18px 0 4px; font-size: 1.2rem; line-height: 1.25; transition: color .2s; }
.alb-card:hover h3 { color: var(--accent, #e11d48); }
.alb-card .alb-meta { opacity: .7; font-size: .85rem; }
.alb-card p.alb-desc { margin: 6px 0 0; font-size: .92rem; opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Grande bannière d'un album */
.alb-hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; min-height: min(70vh, 560px); display: flex; align-items: flex-end; background: var(--dark, #111); }
.alb-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: alb-hero-in 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes alb-hero-in { from { transform: scale(1.12); filter: blur(6px); } to { transform: scale(1); filter: none; } }
.alb-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,6,16,.92) 0%, rgba(5,6,16,.35) 55%, rgba(5,6,16,.25) 100%); }
.alb-hero-in { width: 100%; padding-top: calc(var(--hh, 40px) + 90px); padding-bottom: 46px; }
.alb-back { margin-top: 36px; }
.alb-crumbs { font-size: .85rem; margin-bottom: 14px; opacity: .85; }
.alb-crumbs a { color: #fff; }
.alb-hero h1 { margin: 0 0 14px; color: #fff; font-size: clamp(2.1rem, 5.5vw, 4.2rem); line-height: 1; max-width: 900px; animation: alb-up .9s .15s cubic-bezier(.2,.8,.2,1) both; }
.alb-hero .alb-meta { animation: alb-up .9s .25s cubic-bezier(.2,.8,.2,1) both; }
.alb-hero-desc { max-width: 720px; margin: 16px 0 0; font-size: 1.08rem; opacity: .92; animation: alb-up .9s .32s cubic-bezier(.2,.8,.2,1) both; }
.alb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; animation: alb-up .9s .4s cubic-bezier(.2,.8,.2,1) both; }
.alb-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.alb-actions svg { width: 18px; height: 18px; }
.alb-actions .btn-glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.alb-actions .btn-glass:hover { background: rgba(255,255,255,.26); }
@keyframes alb-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.alb-hero.no-cover { min-height: 0; background: linear-gradient(135deg, var(--dark, #111), var(--primary, #333)); }

/* Photos d'un album : mises en page */
.alb-photos { margin: 40px auto 0; }
.alb-photos a.lightbox { display: block; position: relative; overflow: hidden; color: #fff; border-radius: calc(var(--radius, 12px) * .6); background: color-mix(in srgb, var(--dark, #111) 12%, transparent); }
.alb-photos img, .alb-photos video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .4s; }
.alb-photos a.lightbox:hover img { transform: scale(1.05); }
.alb-photos a.lightbox:focus-visible { outline: 3px solid var(--accent, #e11d48); outline-offset: 3px; }
.alb-it.pre { opacity: 0; transform: translateY(16px); }
.alb-it.pre.vis { opacity: 1; transform: none; transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1); }
.alb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: .88rem; line-height: 1.35; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.alb-photos a.lightbox:hover .alb-cap, .alb-photos a.lightbox:focus-visible .alb-cap, .cap-always .alb-cap { opacity: 1; transform: none; }
.cap-never .alb-cap { display: none; }
.alb-vbadge { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: var(--accent, #e11d48); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.alb-vbadge::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
/* Mosaïque (rangées justifiées) */
.lay-mosaic { display: flex; flex-wrap: wrap; gap: 8px; }
.lay-mosaic::after { content: ""; flex-grow: 999999; }
.lay-mosaic .alb-it { position: relative; flex-grow: var(--r); flex-basis: calc(var(--r) * 230px); }
.lay-mosaic .alb-it > a { height: 100%; }
.lay-mosaic .alb-it > a::before { content: ""; display: block; padding-bottom: calc(100% / var(--r)); }
.lay-mosaic .alb-it img, .lay-mosaic .alb-it video { position: absolute; inset: 0; }
.alb-photos video { pointer-events: none; background: #000; }
@media (max-width: 600px) { .lay-mosaic .alb-it { flex-basis: calc(var(--r) * 140px); } .lay-mosaic { gap: 4px; } }
/* Maçonnerie */
.lay-masonry { columns: 3 280px; column-gap: 14px; }
.lay-masonry .alb-it { break-inside: avoid; margin-bottom: 14px; }
.lay-masonry img { height: auto; }
.lay-masonry video { aspect-ratio: 16/9; height: auto; }
/* Grille carrée */
.lay-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.lay-grid .alb-it a { aspect-ratio: 1; }
/* Récit (éditorial) */
.lay-story { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.lay-story .alb-it:nth-child(3n+1) { grid-column: 1 / -1; }
.lay-story .alb-it a { aspect-ratio: 3/2; }
.lay-story .alb-it:nth-child(3n+1) a { aspect-ratio: 21/9; }
.lay-story .alb-cap { opacity: 1; transform: none; font-size: 1rem; padding: 50px 22px 18px; }
@media (max-width: 700px) { .lay-story { grid-template-columns: 1fr; } .lay-story .alb-it a, .lay-story .alb-it:nth-child(3n+1) a { aspect-ratio: 4/3; } }
/* Carrousel */
.lay-carousel { position: relative; }
.alb-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.alb-rail::-webkit-scrollbar { display: none; }
.lay-carousel .alb-it { flex: 0 0 auto; scroll-snap-align: center; opacity: 1; transform: none; }
.lay-carousel .alb-it a { height: min(68vh, 560px); }
.lay-carousel .alb-it img { width: auto; max-width: 88vw; }
.alb-cnav { position: absolute; top: calc(50% - 26px); z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #111; box-shadow: 0 8px 22px rgba(0,0,0,.25); display: grid; place-items: center; cursor: pointer; transition: opacity .2s, transform .2s; }
.alb-cnav:hover { transform: scale(1.08); }
.alb-cnav[disabled] { opacity: 0; pointer-events: none; }
.alb-cnav.prev { left: 10px; } .alb-cnav.next { right: 10px; }
.alb-cnav svg { width: 22px; height: 22px; }

/* Bas de page d'un album */
.alb-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.alb-nav a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 20px; border-radius: var(--radius, 14px); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: var(--dark, #111); }
.alb-nav a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: transform .8s, opacity .3s; }
.alb-nav a:hover img { transform: scale(1.06); opacity: .7; }
.alb-nav a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }
.alb-nav small { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.alb-nav strong { font-size: 1.15rem; line-height: 1.2; }
.alb-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .alb-nav { grid-template-columns: 1fr; } .alb-nav .next { grid-column: 1; } }
.alb-empty { text-align: center; padding: 60px 20px; opacity: .7; }

/* Section d'accueil : derniers albums */
.alb-home .alb-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
