/* Album (Lezieu, refait le 08/11 d'après Hearst Exhibit 2026) : l'arrivée sur le noir, les couvertures de magazine, la page qui se tourne,
   le grand nom sur fond sombre, la grille éparse numérotée sur blanc, la bande, le menu, la visionneuse (vignettes, photo sur blanc, panneau noir).
   Couleurs de la mise en page : --fond (le blanc de la grille), --texte (le noir), --accent (le gris rosé du grand nom). Typo : --serif (Bodoni Moda) pour les titres, --sans le reste. */

.m-album { --al-noir: #0B0A0A; --al-gris: #232222; --al-m: 20px; --al-bas: 0px;
  background: var(--al-noir); color: #fff; font-family: var(--sans); user-select: none; -webkit-user-select: none; }
.m-album button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: inherit; letter-spacing: inherit; text-transform: inherit; }
.m-album [hidden] { display: none !important; }
.m-album.apercu { --al-bas: 44px; }
.al-c { display: inline-block; }
.al-mot { display: inline-block; white-space: nowrap; }
.al-vues { position: absolute; inset: 0; overflow: hidden; }
.al-vue { position: absolute; inset: 0; background: var(--fond); }

/* l'accueil et le menu : les couvertures sur le noir */
.al-accueil { position: absolute; inset: 0; background: var(--al-noir); color: #fff; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: clamp(26px, 3.4cqw, 50px); }
.al-acc-t { position: absolute; top: clamp(18px, 2.4cqw, 34px); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: opacity .3s; }
.al-acc-n { font: 400 clamp(15px, 1.3cqw, 19px)/1.2 var(--sans); letter-spacing: -.02em; max-width: 80%; }
.al-acc-t small { font: 400 11px/1.2 var(--sans); opacity: .5; letter-spacing: .03em; }
.al-couvs { display: flex; gap: clamp(22px, 5.5cqw, 80px); overflow-x: auto; padding: 24px clamp(20px, 4cqw, 60px) 40px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.al-couvs::-webkit-scrollbar { display: none; }
.al-couv:first-child { margin-left: auto; }
.al-couv:last-child { margin-right: auto; }
.m-album .al-couv { position: relative; flex: none; width: clamp(150px, 19.5cqw, 300px); aspect-ratio: 3 / 4; overflow: hidden; scroll-snap-align: center; box-shadow: 0 28px 60px rgba(0, 0, 0, .5); transition: scale .7s cubic-bezier(.16, 1, .3, 1), opacity .45s, translate 1.1s cubic-bezier(.16, 1, .3, 1); }
.al-couv-ph img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.al-couv-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .38), transparent 30%, transparent 62%, rgba(0, 0, 0, .5)); }
.al-couv-t { position: absolute; left: 5%; right: 5%; top: 3.5%; color: #fff; font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .07em; line-height: .9; text-align: center; overflow: hidden; text-wrap: balance; }
.al-couv-b { position: absolute; left: 7%; right: 7%; bottom: 6%; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; color: #fff; }
.al-couv-b i { font: italic 400 clamp(10px, 1.05cqw, 15px)/1.15 var(--serif); max-width: 70%; }
.al-couv-b b { font: 400 clamp(17px, 1.9cqw, 28px)/1 var(--serif); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.al-couvs:hover .al-couv:not(:hover) { opacity: .45; }
.m-album .al-couv:hover { scale: 1.03; }
.m-album .al-tout { align-self: center; font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .5); opacity: .75; transition: opacity .25s; }
.al-tout:hover { opacity: 1; }
.al-tout small { opacity: .6; margin-left: 4px; }
.choisi .al-couv:not(.elu) { opacity: 0 !important; transition: opacity .45s; }
.choisi :is(.al-acc-t, .al-tout, .al-menu-x) { opacity: 0; transition: opacity .3s; }
.choisi .al-couv.elu { scale: 1.05; }
.al-bienvenue { position: absolute; z-index: 3; left: 6%; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: .2em; color: #fff; pointer-events: none; max-width: 44%; }
.al-bienvenue > span { font: 400 clamp(30px, 4.6cqw, 70px)/1 var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.al-bienvenue b { font: italic 400 clamp(20px, 2.8cqw, 42px)/1.08 var(--serif); margin-left: 1.4em; }
.al-menu { position: absolute; inset: 0; z-index: 7; background: var(--al-noir); }
.m-album .al-menu-x { position: absolute; z-index: 2; top: 15px; right: var(--al-m); font: 400 17px/1.2 var(--sans); letter-spacing: -.02em; color: #fff; transition: opacity .3s; }

/* un dossier : le grand nom sur le sombre, puis la grille éparse sur le blanc */
.al-page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; background: var(--fond); color: var(--texte); }
.al-page::-webkit-scrollbar { display: none; }
.al-une { position: relative; height: calc(var(--H) * .8); background: var(--al-gris); display: grid; place-items: center; overflow: hidden; }
.al-defile { position: absolute; top: 16px; left: 0; right: 0; text-align: center; font: 500 11px/1 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: var(--accent); }
.al-titre { margin: 0; width: 92%; text-align: center; font-family: var(--serif); font-weight: 400; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; line-height: .92; text-wrap: balance; overflow: hidden; padding-left: .12em; }
.al-une-s { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font: 400 11px/1 var(--sans); letter-spacing: .04em; color: var(--accent); opacity: .8; }
.al-grille { position: relative; background: var(--fond); }
.al-f { position: absolute; margin: 0; }
.m-album .al-ph { display: block; width: 100%; height: 100%; }
.al-ph img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.al-f figcaption { position: absolute; left: calc(100% + 8px); top: 0; font: 400 12.5px/1 var(--sans); letter-spacing: .03em; white-space: nowrap; }
.al-f figcaption.g { left: auto; right: calc(100% + 8px); }
.al-f figcaption.b { left: 0; top: calc(100% + 7px); }
.al-f .al-x, .al-bf .al-x { top: 8px; right: 8px; z-index: 2; }
.m-album:not(.calme) .al-f .al-ph { filter: blur(18px); opacity: .3; scale: 1.03; transition: filter 1.1s cubic-bezier(.16, 1, .3, 1), opacity 1.1s, scale 1.5s cubic-bezier(.16, 1, .3, 1); }
.m-album:not(.calme) .al-f.vu .al-ph { filter: none; opacity: 1; scale: 1; }
@media (hover: hover) { .m-album .al-ph { cursor: none; } }

/* la bande : toutes les photos à la même hauteur, côte à côte */
.al-bande { position: absolute; inset: 0; background: var(--fond); color: var(--texte); display: flex; align-items: center; overflow: hidden; touch-action: pan-y; }
.al-bande-r { display: flex; align-items: flex-end; padding: 0 var(--al-m); will-change: transform; }
.al-bf { position: relative; margin: 0; flex: none; }
.al-bf figcaption { position: absolute; left: 0; bottom: calc(100% + 8px); font: 400 12.5px/1 var(--sans); letter-spacing: .03em; }

/* le haut (Vue, le nom, Menu), les boutons plus grand / plus petit */
.al-tete { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 52px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--al-m); color: var(--texte); background: color-mix(in srgb, var(--fond) 88%, transparent); translate: 0 -100%; transition: translate .6s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.al-tete.vu { translate: 0 0; pointer-events: auto; }
.m-album .al-tete button { font: 400 17px/1 var(--sans); letter-spacing: -.02em; }
.m-album .al-vue-b { justify-self: start; display: flex; align-items: center; gap: 10px; }
.al-vue-b i { width: 10px; height: 10px; background: radial-gradient(circle, currentColor 1.4px, transparent 1.6px) 0 0 / 5px 5px; }
.m-album .al-tete .al-logo { font: 400 21px/1 var(--serif); text-transform: uppercase; letter-spacing: .14em; max-width: 46cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-album .al-tete [data-almenu] { justify-self: end; }
.al-zoom { position: absolute; z-index: 5; left: 50%; bottom: calc(18px + var(--al-bas)); translate: -50% 0; display: flex; gap: 4px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.al-zoom.vu { opacity: 1; pointer-events: auto; }
.m-album .al-zoom button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--texte); background: var(--fond); color: var(--texte); font: 300 17px/1 var(--sans); transition: background .2s, color .2s; }
.m-album .al-zoom button:hover { background: var(--texte); color: var(--fond); }

/* la souris sur une photo : un rond qui inverse les couleurs, un « + » */
.al-souris { position: absolute; left: 0; top: 0; z-index: 6; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; -webkit-backdrop-filter: invert(1); backdrop-filter: invert(1); pointer-events: none; display: grid; place-items: center; opacity: 0; scale: .3; transition: opacity .25s, scale .35s cubic-bezier(.16, 1, .3, 1); }
.al-souris.vu { opacity: 1; scale: 1; }
.al-souris i { font: 300 24px/1 var(--sans); font-style: normal; color: #fff; mix-blend-mode: difference; }

/* la page qui se tourne : le rabat (le dos du papier) et son ombre */
.al-pli { position: absolute; z-index: 8; pointer-events: none; filter: drop-shadow(-12px 10px 18px rgba(0, 0, 0, .35)); }
.al-pli-f { position: absolute; inset: 0; }
.al-pli-f i { position: absolute; left: 0; top: 0; width: 6000px; height: 6000px; transform-origin: 0 0;
  background: linear-gradient(90deg, #b9b2a7 0, #e9e4dc 14px, #faf8f4 150px, #f3efe9 700px, #dcd6cc 1800px); }
.al-copie { z-index: 4; }

/* l'arrivée */
.al-debut { position: absolute; inset: 0; z-index: 10; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.al-debut-t { margin: 0; max-width: 82%; text-align: center; font: 400 clamp(34px, 5.8cqw, 86px)/1 var(--serif); text-transform: uppercase; letter-spacing: .04em; color: #DCD7D7; position: relative; z-index: 1; }
.al-debut small { position: absolute; bottom: 46px; font: 400 10px/1.3 var(--sans); letter-spacing: .03em; opacity: .55; }
.al-rond { position: absolute; bottom: 22px; width: 10px; height: 10px; border: 1px solid rgba(255, 255, 255, .7); border-right-color: transparent; border-radius: 50%; animation: al-tourne 1s linear infinite; }
@keyframes al-tourne { to { rotate: 360deg; } }
.al-papiers { position: absolute; inset: 0; perspective: 900px; pointer-events: none; z-index: 2; }
.al-papiers img { position: absolute; left: 0; top: 0; width: clamp(56px, 7cqw, 110px); aspect-ratio: .78; max-width: none; object-fit: cover; display: block; backface-visibility: visible; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.m-album.en-debut :is(.al-tete, .al-zoom) { visibility: hidden; }

/* sur téléphone (et dans l'aperçu téléphone) */
@container (max-width: 620px) {
  .m-album { --al-m: 10px; }
  .m-album .al-couv { width: 62cqw; }
  .al-couv-b i { font-size: 12px; }
  .al-couv-b b { font-size: 22px; }
  .al-tete { height: 46px; }
  .m-album .al-tete button { font-size: 15px; }
  .m-album .al-tete .al-logo { font-size: 16px; max-width: 40cqw; }
  .al-f figcaption { font-size: 10.5px; }
  .al-bienvenue { left: 6%; right: 6%; top: 7%; translate: 0 0; max-width: none; align-items: center; text-align: center; }
  .al-bienvenue b { margin-left: 0; }
  .choisi .al-couv.elu { scale: .9; }
}

/* la visionneuse, habillée comme leur page d'une photo : vignettes à gauche, photo sur blanc, panneau noir à droite */
.lb.peau-album { --alp: min(440px, 30%); --alv: 64px; background: #fff; color: #000; font-family: var(--all-s); padding-left: var(--alv); padding-right: var(--alp); }
.lb.peau-album :is(.lb-top, .lb-bot) { color: #000; font: 400 13px/1.2 var(--all-s); }
.lb.peau-album :is(.lb-top, .lb-bot) button { background: transparent; color: #000; border: 1px solid rgba(0, 0, 0, .18); border-radius: 0; font: inherit; transition: background .2s, color .2s; }
.lb.peau-album :is(.lb-top, .lb-bot) button:hover { background: #000; color: #fff; }
.lb.peau-album :is(.lb-top, .lb-bot) :is(button[aria-pressed=true], button.on) { background: #000; color: #fff; }
.lb.peau-album .lb-zoom { background: transparent; }
.lb.peau-album :is(.lb-name, .lb-pct, .lb-info .lb-name) { font: inherit; color: #000; }
.lb.peau-album .lb-exif { color: rgba(0, 0, 0, .5); }
.lb.peau-album .lb-k { color: #000; border-color: rgba(0, 0, 0, .3); opacity: .6; }
.lb.peau-album .lb-x[data-x] { display: none; }
.lb.peau-album .lb-x.lb-plein { border-radius: 0 !important; }
.lb.peau-album .lb-fant { display: none; }
.lb.peau-album .lb-nav { background: transparent; color: #000; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: .6; transition: opacity .2s; }
.lb.peau-album .lb-nav:hover { background: transparent; opacity: 1; }
.lb.peau-album .lb-bot { border-top: 0; }
.lb.peau-album .lb-bot .lb-tiroir { background: transparent; color: #000; border: 0; }
.lb.peau-album .lb-bot :is(.lba, .lbd) { background: transparent; border: 1px solid rgba(0, 0, 0, .2); color: #000; border-radius: 0; }
.lb.peau-album .lb-bot :is(.lba, .lbd).on { background: #000; border-color: #000; color: #fff; opacity: 1; }
.al-lb-v { position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: var(--alv); overflow-y: auto; scrollbar-width: none; background: #fff; display: flex; flex-direction: column; }
.al-lb-v::-webkit-scrollbar { display: none; }
.al-lb-v button { flex: none; width: 100%; aspect-ratio: .75; padding: 0; border: 0; background: #ececec; opacity: .4; cursor: pointer; transition: opacity .25s; }
.al-lb-v button:hover, .al-lb-v button.on { opacity: 1; }
.al-lb-v img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-lb-p { position: absolute; z-index: 3; right: 0; top: 0; bottom: 0; width: var(--alp); box-sizing: border-box; container-type: inline-size; background: #000; color: #fff; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.al-lb-n { font: 400 13px/1 var(--all-s); letter-spacing: .03em; }
.al-lb-g { margin-top: 18px; font: 400 16px/1.25 var(--all-s); letter-spacing: -.02em; }
.al-lb-c { font: 400 15px/1.2 var(--all-d); text-transform: uppercase; letter-spacing: .03em; opacity: .8; }
.al-lb-nom { margin-top: auto; font: 400 clamp(22px, 12cqw, 52px)/1 var(--all-d); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: break-word; }
.al-lb-x { position: absolute; top: 20px; right: 22px; width: 20px; height: 20px; padding: 0; background: none; border: 0; cursor: pointer; }
.al-lb-x i { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #fff; rotate: 45deg; }
.al-lb-x i + i { rotate: -45deg; }
.al-lb-feuille { position: absolute; z-index: 2; object-fit: fill; pointer-events: none; max-width: none; }
.lb.peau-album .al-pli { z-index: 3; }
.lb.lb-noir.peau-album, .lb.lb-noir.peau-album .al-lb-v { background: #111; }
.lb.lb-noir.peau-album :is(.lb-top, .lb-bot, .lb-top button, .lb-bot button, .lb-name, .lb-pct, .lb-nav) { color: #fff; }
.lb.lb-noir.peau-album :is(.lb-top, .lb-bot) button { border-color: rgba(255, 255, 255, .25); }
.lb-dans.peau-album .lb-exif { display: none; }
@media (max-width: 1200px) { .lb.peau-album .lb-exif { display: none; } }
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
  .lb.peau-album { --alv: 0px; padding: 64px 0 0; }
  .al-lb-v { display: none; }
  .al-lb-p { left: 0; right: 0; bottom: auto; width: auto; height: 64px; flex-direction: row; align-items: center; gap: 12px; padding: 0 52px 0 14px; }
  .al-lb-g, .al-lb-c { display: none; }
  .al-lb-nom { margin: 0; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .al-lb-x { top: 22px; right: 16px; }
}
/* l'aperçu téléphone de la Mise en page (.device.mobile) : les mêmes règles qu'un vrai téléphone (15/11) */
.device.mobile .lb.peau-album { --alv: 0px; padding: 64px 0 0; }
.device.mobile .al-lb-v { display: none; }
.device.mobile .al-lb-p { left: 0; right: 0; bottom: auto; width: auto; height: 64px; flex-direction: row; align-items: center; gap: 12px; padding: 0 52px 0 14px; }
.device.mobile .al-lb-g, .device.mobile .al-lb-c { display: none; }
.device.mobile .al-lb-nom { margin: 0; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.device.mobile .al-lb-x { top: 22px; right: 16px; }

.device.mobile .lb.peau-album { --alv: 0px; padding: 64px 0 0; }
.device.mobile .al-lb-v { display: none; }
.device.mobile .al-lb-p { left: 0; right: 0; bottom: auto; width: auto; height: 64px; flex-direction: row; align-items: center; gap: 12px; padding: 0 52px 0 14px; }
.device.mobile :is(.al-lb-g, .al-lb-c) { display: none; }
.device.mobile .al-lb-nom { margin: 0; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.device.mobile .al-lb-x { top: 22px; right: 16px; }
