/* Glissement (Lezieu, refait le 08/11 d'après Telha Clarke) : l'arrivée par tranches, la couverture qui grandit, les dossiers entre crochets, le bouton noir qui suit,
   « Toutes les photos » au milieu des photos qui passent, les dossiers de côté sur la photo sombre, le pied et sa bande noire, la page d'un dossier (grille ou liste),
   le dossier suivant qui grandit, la visionneuse sur blanc. Couleurs : --fond (le blanc), --texte (le noir), --accent (le gris des étiquettes).
   Typo : --sans (Inter Tight, à la place d'Europa Grotesk) pour tout ; --serif (Archivo large et gras) pour le nom en très grand. */

.m-glis { --gl-m: clamp(16px, 1.4cqw, 20px); --gl-bas: 0px;
  background: var(--fond); color: var(--texte); font: 400 16px/1.15 var(--sans); letter-spacing: -.01em; user-select: none; -webkit-user-select: none; }
.m-glis button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: inherit; letter-spacing: inherit; }
.m-glis [hidden] { display: none !important; }
.m-glis.apercu { --gl-bas: 44px; }
.gl-page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.gl-page::-webkit-scrollbar { display: none; }
.gl-gris { color: var(--accent); }
.gl-colle { position: sticky; top: 0; height: var(--H); overflow: hidden; }

/* le haut : le nom, les dossiers, l'heure, Toutes les photos (lisible sur le blanc comme sur les photos) */
.gl-tete { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: clamp(20px, 3cqw, 44px); padding: 20px var(--gl-m); color: #fff; mix-blend-mode: difference; pointer-events: none; }
.gl-tete > * { pointer-events: auto; }
.m-glis .gl-logo { font: 800 15px/1 var(--serif); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; max-width: 24cqw; overflow: hidden; text-overflow: ellipsis; }
.gl-nav { display: flex; gap: .3em; min-width: 0; overflow: hidden; white-space: nowrap; }
.gl-nav button, .gl-tout-b, .gl-pied-l button { transition: opacity .25s; }
.gl-nav button:hover, .m-glis .gl-tout-b:hover, .gl-pied-l button:hover { opacity: .4; }
.gl-heure { white-space: nowrap; }
.gl-heure b { font-weight: 400; opacity: .55; margin-right: .7em; }

/* la couverture qui grandit */
.gl-couv { height: calc(var(--H) * 2.2); }
.gl-couv-ph { position: absolute; inset: 0; clip-path: inset(19% 35%); cursor: pointer; }
.gl-couv-ph img { width: 100%; height: 100%; object-fit: cover; display: block; scale: 1.18; }
.gl-defile, .gl-couv-t { position: absolute; z-index: 2; bottom: calc(18px + var(--gl-bas)); color: #fff; mix-blend-mode: difference; }
.gl-defile { left: var(--gl-m); }
.gl-couv-t { right: var(--gl-m); margin: 0; width: min(340px, 42%); font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }

/* le début de la page, la ligne « Dossiers » */
.gl-intro { padding: clamp(80px, 10cqw, 150px) var(--gl-m) clamp(110px, 12cqw, 170px); }
.gl-intro-h { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: clamp(70px, 9cqw, 140px); }
.gl-intro-ph img { width: clamp(90px, 9cqw, 140px); aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.gl-intro-h p { margin: 0; max-width: 28em; font-size: 13px; line-height: 1.35; }
.gl-grand { margin: 0 auto; max-width: 17em; text-align: center; font-size: clamp(30px, 3.4cqw, 50px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.gl-sel { display: flex; justify-content: space-between; padding: 0 var(--gl-m) 30px; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }

/* un dossier : son nom entre crochets qui s'écartent, ses photos à des vitesses différentes */
.gl-p { position: relative; height: calc(var(--H) * 1.25); display: grid; place-items: center; }
.m-glis .gl-cro { position: relative; z-index: 2; display: flex; justify-content: center; width: 100%; font-size: clamp(32px, 3.6cqw, 54px); line-height: 1.05; letter-spacing: -.03em; }
.gl-cro-t { max-width: calc(100% - 4em - 2 * var(--gl-m)); text-align: center; text-wrap: balance; }
.gl-b { position: absolute; top: 50%; translate: 0 -52%; font-weight: 300; }
.gl-b.g { left: calc(var(--gl-m) + (1 - var(--e, 0)) * (50% - var(--gl-m) - var(--tw, 300px) / 2 - .7em)); }
.gl-b.d { right: calc(var(--gl-m) + (1 - var(--e, 0)) * (50% - var(--gl-m) - var(--tw, 300px) / 2 - .7em)); }
.gl-p-ph { position: absolute; z-index: 1; }
.gl-p-ph button { display: block; width: 100%; }
.gl-p-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: filter .4s; }
.gl-p-ph.h { left: 39%; top: 4%; width: clamp(150px, 16cqw, 240px); }
.gl-p-ph.b { left: 45%; bottom: 4%; width: clamp(140px, 13cqw, 200px); }
.gl-p-ph.c { right: 9%; top: 58%; width: clamp(80px, 8cqw, 120px); }
.gl-p-ph.c img { aspect-ratio: 3 / 4; }
.gl-p:has(.gl-cro:hover) .gl-p-ph img { filter: brightness(.9); }

/* « Toutes les photos » au milieu des photos qui passent */
.gl-tous { position: relative; height: calc(var(--H) * 1.4); display: grid; place-items: center; overflow: hidden; }
.m-glis .gl-tous-t { position: relative; z-index: 2; font-size: clamp(36px, 4.2cqw, 60px); letter-spacing: -.035em; }
.gl-tous-t sup { font-size: .5em; letter-spacing: 0; margin-left: .1em; }
.gl-vol { position: absolute; width: clamp(70px, 8.5cqw, 130px); }
.gl-vol img { width: 100%; aspect-ratio: .8; object-fit: cover; display: block; }
.gl-vol.v0 { left: 33%; top: 6%; } .gl-vol.v1 { left: 70%; top: 14%; } .gl-vol.v2 { left: 8%; top: 22%; } .gl-vol.v3 { left: 54%; top: 30%; width: clamp(110px, 12cqw, 180px); }
.gl-vol.v4 { left: 20%; top: 52%; } .gl-vol.v5 { left: 82%; top: 50%; } .gl-vol.v6 { left: 40%; top: 66%; width: clamp(60px, 6cqw, 90px); } .gl-vol.v7 { left: 62%; top: 74%; }
.gl-vol.v8 { left: 4%; top: 78%; } .gl-vol.v9 { left: 88%; top: 84%; }

/* les dossiers de côté sur la grande photo sombre */
.gl-noir { height: calc(var(--H) * 2.6); background: #000; color: #fff; }
.gl-noir-ph { position: absolute; inset: 0; }
.gl-noir-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-noir-ph::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.gl-mots { position: absolute; z-index: 2; top: 30%; left: 0; display: flex; gap: 2.2em; white-space: nowrap; font-size: clamp(26px, 2.6cqw, 38px); letter-spacing: -.025em; will-change: translate; }
.gl-mots button { color: rgba(255, 255, 255, .35); transition: color .45s; }
.gl-mots button.on, .gl-mots button:hover { color: #fff; }
.gl-noir-t { position: absolute; z-index: 2; right: 22%; top: 47%; margin: 0; max-width: 20em; font-size: 13px; line-height: 1.35; }

/* le pied et le nom en très grand sur la bande noire */
.gl-pied-c { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; padding: clamp(110px, 12cqw, 170px) var(--gl-m) 60px; }
.gl-pied-g { margin: 0; font-size: clamp(26px, 2.5cqw, 36px); line-height: 1.1; letter-spacing: -.03em; color: var(--accent); }
.gl-pied-g button { color: var(--texte); }
.gl-pied-l { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gl-pied-n { margin: 0; line-height: 1.4; }
.gl-bande { background: var(--texte); color: var(--fond); padding: 12px var(--gl-m) calc(14px + var(--gl-bas)); overflow: hidden; }
.gl-bande-t { display: block; font: 800 20cqw/.86 var(--serif); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }

/* la page d'un dossier */
.gl-d-t { padding: clamp(110px, 10cqw, 150px) var(--gl-m) 40px; }
.gl-titre { margin: 0 0 clamp(30px, 3.5cqw, 50px); font-size: clamp(40px, 4.2cqw, 60px); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.gl-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.gl-meta div { display: flex; gap: 10px; min-width: 0; }
.gl-meta dt { color: var(--accent); }
.gl-meta dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-d-ph { padding: 0 var(--gl-m) clamp(110px, 10cqw, 150px); }
.gl-f { position: relative; margin: 0; }
.gl-f.une { margin-bottom: clamp(30px, 3cqw, 46px); }
.m-glis .gl-f-ph { display: block; width: 100%; overflow: hidden; }
.gl-f-ph img { width: 100%; height: auto; display: block; transition: scale 1.2s cubic-bezier(.16, 1, .3, 1); }
.gl-f-ph:hover img { scale: 1.03; }
.gl-f figcaption { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 8px; font-size: 14px; }
.gl-f figcaption span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-f .gl-x { top: 10px; right: 10px; z-index: 2; }
.gl-rang { display: grid; align-items: start; gap: 10px; margin-bottom: clamp(30px, 3cqw, 46px); }
.gl-rang.n1 { grid-template-columns: 1fr; }
.gl-rang.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gl-rang.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-glis:not(.calme) .gl-f .gl-f-ph { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.16, 1, .3, 1); }
.m-glis:not(.calme) .gl-f.vu .gl-f-ph { clip-path: inset(0 0 0 0); }
.gl-liste { border-top: 1px solid var(--texte); }
.gl-l { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr) 110px; align-items: center; gap: 20px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--texte) 14%, transparent); font-size: clamp(17px, 1.5cqw, 22px); letter-spacing: -.02em; cursor: pointer; transition: padding .45s cubic-bezier(.16, 1, .3, 1); }
.gl-l:hover { padding-left: 14px; }
.gl-l > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-l-ph { position: relative; }
.gl-l-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gl-l .gl-x { top: 4px; right: 4px; z-index: 2; }
.m-glis:not(.calme) :is(.gl-titre, .gl-meta, .gl-grand, .gl-intro-h, .gl-pied-c) { opacity: 0; translate: 0 30px; transition: opacity 1s cubic-bezier(.16, 1, .3, 1), translate 1s cubic-bezier(.16, 1, .3, 1); }
.m-glis:not(.calme) :is(.gl-titre, .gl-meta, .gl-grand, .gl-intro-h, .gl-pied-c).vu { opacity: 1; translate: 0 0; }

/* le dossier suivant : sa photo grandit jusqu'à remplir la page */
.gl-suite { height: calc(var(--H) * 2); cursor: pointer; }
.gl-suite-ph { position: absolute; inset: 0; clip-path: inset(30% 37%); }
.gl-suite-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-suite-l { position: absolute; z-index: 2; top: 17%; left: 0; right: 0; text-align: center; color: var(--accent); }
.gl-suite-t { position: absolute; z-index: 2; left: 0; right: 0; bottom: 17%; margin: 0; text-align: center; font-size: clamp(32px, 3.6cqw, 54px); letter-spacing: -.03em; color: #fff; mix-blend-mode: difference; }
.gl-suite-d { position: absolute; z-index: 3; left: 50%; bottom: calc(24px + var(--gl-bas)); translate: -50% 0; padding: 8px 14px; border-radius: 99px; background: #000; color: #fff; font-size: 13px; opacity: 0; transition: opacity .4s; }
.gl-suite.plein .gl-suite-d { opacity: 1; }

/* le bouton noir qui suit le dossier en cours ; Grille / Liste ; la photo qui suit la souris sur la liste */
.m-glis .gl-pilule, .gl-vue-b { position: absolute; z-index: 6; left: 50%; bottom: calc(24px + var(--gl-bas)); translate: -50% 0; display: flex; align-items: center; gap: 10px; max-width: 90%; padding: 6px 6px 6px 14px; border-radius: 99px; background: #000; color: #fff; font-size: 13px; white-space: nowrap; }
.gl-pil-n { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gl-pilule i { flex: none; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.gl-pilule > span:last-child { flex: none; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); transition: background .25s; }
.gl-pilule:hover > span:last-child { background: rgba(255, 255, 255, .3); }
.gl-vue-b { padding: 4px; gap: 2px; transition: opacity .35s; }
.gl-vue-b.cache { opacity: 0; pointer-events: none; }
.m-glis .gl-vue-b button { padding: 5px 12px; border-radius: 99px; transition: background .25s, color .25s; }
.m-glis .gl-vue-b button.on { background: #fff; color: #000; }
.gl-apercu { position: absolute; left: 0; top: 0; z-index: 7; width: clamp(160px, 18cqw, 260px); aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; scale: .85; transition: opacity .25s, scale .4s cubic-bezier(.16, 1, .3, 1); }
.gl-apercu.vu { opacity: 1; scale: 1; }
.gl-apercu img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* l'arrivée : le nom par tranches sur le noir */
.gl-debut { position: absolute; inset: 0; z-index: 10; background: #000; color: #fff; cursor: pointer; overflow: hidden; }
.gl-debut-h { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; padding: 4px var(--gl-m); line-height: 1.12; }
.gl-debut-h b { font-weight: 400; }
.gl-debut-n { position: absolute; left: var(--gl-m); right: var(--gl-m); top: 46%; translate: 0 -50%; display: grid; font: 800 10cqw/.9 var(--serif); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; text-align: center; }
.gl-tr { grid-area: 1 / 1; display: block; justify-self: center; }
.m-glis.en-debut :is(.gl-tete, .gl-pilule) { visibility: hidden; }

/* sur téléphone (et dans l'aperçu téléphone) */
@container (max-width: 620px) {
  .gl-tete { grid-template-columns: minmax(0, 1fr) auto; }
  .gl-nav, .gl-heure { display: none; }
  .m-glis .gl-logo { max-width: 50cqw; }
  .gl-couv-t { width: 52%; font-size: 15px; }
  .gl-intro-h { grid-template-columns: 1fr; }
  .gl-p-ph.h { left: 30%; width: 40cqw; }
  .gl-p-ph.b { left: 40%; width: 36cqw; }
  .gl-p-ph.c { right: 4%; width: 18cqw; }
  .gl-vol { width: 18cqw; }
  .gl-mots { top: 26%; }
  .gl-noir-t { right: auto; left: var(--gl-m); top: 56%; }
  .gl-pied-c { grid-template-columns: 1fr; }
  .gl-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gl-f figcaption { grid-template-columns: auto 1fr; }
  .gl-f figcaption span:last-child { display: none; }
  .gl-l { grid-template-columns: 44px minmax(0, 1fr) 80px; }
  .gl-l > span:nth-child(3) { display: none; }
}

/* la visionneuse : sur blanc, la photo qui s'ouvre du milieu, le bouton noir en bas */
.lb.peau-glis { --gll-f: #FFFFFF; --gll-t: #000000; background: var(--gll-f); color: var(--gll-t); font-family: var(--gll-s); padding-top: 52px; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.gl-lb-h { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px 20px; color: var(--gll-t); font: 400 16px/1.15 var(--gll-s); letter-spacing: -.01em; }
.gl-lb-logo { font: 800 15px/1 var(--gll-d); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-lb-d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.gl-lb-x { justify-self: end; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; transition: opacity .25s; }
.gl-lb-x:hover { opacity: .4; }
.lb.peau-glis :is(.lb-top, .lb-bot) { color: var(--gll-t); font: 400 13px/1.2 var(--gll-s); }
.lb.peau-glis :is(.lb-top, .lb-bot) button { background: transparent; color: var(--gll-t); border: 0; border-radius: 99px; font: inherit; transition: opacity .25s, background .25s; }
.lb.peau-glis :is(.lb-top, .lb-bot) button:hover { background: transparent; opacity: .45; }
.lb.peau-glis :is(.lb-top, .lb-bot) :is(button[aria-pressed=true], button.on) { background: var(--gll-t); color: var(--gll-f); opacity: 1; }
.lb.peau-glis .lb-zoom { background: transparent; }
.lb.peau-glis :is(.lb-name, .lb-pct, .lb-info .lb-name) { font: inherit; color: var(--gll-t); }
.lb.peau-glis .lb-exif { color: #9aa09c; }
.lb.peau-glis .lb-k { color: var(--gll-t); border-color: rgba(0, 0, 0, .25); opacity: .6; }
.lb.peau-glis .lb-x[data-x] { display: none; }
.lb.peau-glis .lb-x.lb-plein { border-radius: 99px !important; }
.lb.peau-glis .lb-fant { display: none; }
.lb.peau-glis .lb-nav { display: none; }
.lb.peau-glis .lb-bot { border-top: 0; }
.lb.peau-glis .lb-bot .lb-tiroir { background: transparent; color: var(--gll-t); border: 0; }
.lb.peau-glis .lb-bot :is(.lba, .lbd) { background: transparent; border: 1px solid #CACFCB; color: var(--gll-t); border-radius: 99px; }
.lb.peau-glis .lb-bot :is(.lba, .lbd).on { background: var(--gll-t); border-color: var(--gll-t); color: var(--gll-f); opacity: 1; }
.gl-lb-bas { justify-self: center; display: flex; align-items: center; gap: 12px; margin: 12px 0 18px; padding: 8px 8px; border-radius: 99px; background: var(--gll-t); color: var(--gll-f); font: 400 13px/1 var(--gll-s); }
.gl-lb-bas button { padding: 4px 10px; border-radius: 99px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; transition: background .25s; }
.gl-lb-bas button:hover { background: color-mix(in srgb, var(--gll-f) 18%, transparent); }
.gl-lb-bas i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.lb.lb-noir.peau-glis { --gll-f: #000000; --gll-t: #FFFFFF; }
.lb-dans.peau-glis .lb-exif { display: none; }
@media (max-width: 1200px) { .lb.peau-glis .lb-exif { display: none; } }
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) { .gl-lb-logo { display: none; } .gl-lb-h { grid-template-columns: 1fr auto; padding: 14px; } .lb.peau-glis { padding-top: 46px; } }
/* 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 .gl-lb-logo { display: none; }
.device.mobile .gl-lb-h { grid-template-columns: 1fr auto; padding: 14px; }
.device.mobile .lb.peau-glis { padding-top: 46px; }

.device.mobile .gl-lb-logo { display: none; }
.device.mobile .gl-lb-h { grid-template-columns: 1fr auto; padding: 14px; }
.device.mobile .lb.peau-glis { padding-top: 46px; }
