/* Plein cadre (Lezieu, refait le 08/11 d'après le site d'Oscar Pico) : un dossier par écran en plein cadre, la bulle de verre d'une photo à l'autre,
   le nom en rouleau, le compteur jaune, les petites photos qui suivent la souris ; la page d'un dossier sur le clair ; la visionneuse sur le clair.
   Couleurs : --fond (le clair des pages), --texte (le noir), --accent (le jaune du survol et du compteur). Typo : --serif et --sans (Hanken Grotesk, à la place de Ballinger). */

.m-pico { --op-m: clamp(16px, 1.15cqw, 24px); --op-bas: 0px; --op-clair: #F1F1F1;
  background: var(--fond); color: var(--texte); font-family: var(--sans); user-select: none; -webkit-user-select: none; }
.m-pico button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: inherit; letter-spacing: inherit; }
.m-pico [hidden] { display: none !important; }
.m-pico.apercu { --op-bas: 44px; }

/* l'accueil : un dossier par écran */
.op-diapo { position: absolute; inset: 0; overflow: hidden; background: var(--fond); touch-action: none; cursor: pointer; }
.op-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.op-fondu { overflow: hidden; }
.op-fondu img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.op-voile { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .08) 30%, rgba(0, 0, 0, .14) 70%, rgba(0, 0, 0, .3)); pointer-events: none; }
.op-centre { position: absolute; z-index: 2; left: 5%; right: 5%; top: 39%; display: flex; flex-direction: column; align-items: center; color: var(--op-clair); text-shadow: 0 1px 14px rgba(0, 0, 0, .22); pointer-events: none; }
.op-titre { display: grid; margin: 0; max-width: 100%; overflow: hidden; padding: .06em 0 .02em; pointer-events: auto; }
.op-ligne { grid-area: 1 / 1; display: block; text-align: center; font: 500 88px/1 var(--serif); letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; transition: color .35s; }
.op-ligne.part { pointer-events: none; }
.op-m { display: inline-block; white-space: nowrap; }
.op-c { display: inline-block; }
.m-pico:not(.tel) .op-titre:hover .op-ligne { color: var(--accent); }
.op-infos { align-self: stretch; margin: 14px 0 0 50%; font: 400 14px/1.45 var(--sans); }
.op-desc { margin: 0; max-width: 17em; }
.op-tab { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 20px; margin: 38px 0 0; font: 400 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .02em; }
.op-tab dt, .op-tab dd { margin: 0; }
.op-tab dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* le compteur : un rectangle jaune pour le dossier montré, un trait pour les autres */
.op-compte { position: absolute; z-index: 3; left: 50%; bottom: calc(46px + var(--op-bas)); translate: -50% 0; display: flex; align-items: center; gap: 16px; color: var(--op-clair); font: 400 12px/1 var(--sans); letter-spacing: .04em; cursor: default; }
.op-marques { display: flex; align-items: center; gap: 2px; }
.m-pico .op-marques button { position: relative; width: 7px; height: 16px; }
.op-marques button::before { content: ''; position: absolute; left: 3px; top: 4px; width: 1px; height: 8px; background: var(--op-clair); transition: all .45s cubic-bezier(.76, 0, .24, 1); }
.m-pico .op-marques button.on { width: 20px; }
.op-marques button.on::before { left: 2px; width: 14px; height: 7px; top: 4.5px; background: transparent; box-shadow: inset 0 0 0 1px var(--accent); }
.op-marques button:not(.on):hover::before { background: var(--accent); }
/* sous la souris : les petites photos */
.op-traine { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.op-v { position: absolute; display: block; overflow: hidden; transform-origin: 0 100%; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.op-v img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* le haut : le nom de la galerie, Dossiers et Toutes les photos (blanc sur la photo, noir sur le clair) */
.op-tete { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: baseline; gap: 20px; padding: 16px var(--op-m); color: var(--op-clair); font: 500 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .02em; pointer-events: none; }
.op-tete > * { pointer-events: auto; }
.m-pico:not([data-oppage="accueil"]) .op-tete { color: #fff; mix-blend-mode: difference; }
.m-pico .op-logo { max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-nav { margin-left: auto; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.op-nav i { font-style: normal; margin-right: 4px; }
.m-pico .op-nav button { position: relative; }
.op-nav button > span { transition: opacity .2s; }
.op-nav button::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .2s; }
.op-nav button:hover > span { opacity: 0; }
.op-nav button:hover::after { opacity: 1; }
.op-nav button.on > span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.op-court { display: none; }

/* la page d'un dossier */
.op-page { position: absolute; inset: 0; z-index: 3; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; overflow-anchor: none; scrollbar-width: none; background: var(--fond); color: var(--texte); }
.op-page::-webkit-scrollbar { display: none; }
.op-p { --q: 0; --u: 0; position: relative; padding: 0 var(--op-m) 18px; }
.op-p-intro { position: relative; height: var(--H); }
.m-pico .op-p-carte { position: absolute; left: 50%; top: 38%; translate: -50% -50%; width: clamp(64px, 9cqw, 130px); aspect-ratio: 10 / 9; margin: 0; overflow: hidden; cursor: zoom-in; }
.op-p-carte img { width: 100%; height: 100%; object-fit: cover; display: block; }
.op-p-geant { position: absolute; left: 0; right: 0; bottom: calc(4px + var(--op-bas)); display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-end; column-gap: .3em; margin: 0; font: 500 100px/.86 var(--serif); letter-spacing: -.015em; text-transform: uppercase; }
.op-p-geant.deux { flex-wrap: wrap; row-gap: .02em; }
.op-p-geant:has(.op-m:only-child) { justify-content: center; }
.op-p-geant .op-m { flex: none; overflow: hidden; padding-top: .08em; }
/* le nom en haut à droite : nom, nombre de photos, numéro ; il rapetisse en descendant et reste en haut, derrière les photos */
.op-p-pile { position: sticky; top: 0; z-index: 0; height: 0; }
.op-p-pile-i { position: absolute; right: 0; top: 42px; display: flex; flex-direction: column; align-items: flex-end; max-width: 92%; margin: 0; font: 500 clamp(30px, 6cqw, 104px)/.9 var(--serif); letter-spacing: -.015em; text-align: right; transform-origin: 100% 0; scale: calc(1 - var(--q) * .62); }
.op-p-pile-i span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-p-une-z { position: relative; display: flex; align-items: flex-end; min-height: var(--H); padding: 0 0 clamp(40px, 5cqw, 80px); box-sizing: border-box; }
.op-p-desc { position: absolute; left: 0; bottom: clamp(40px, 5cqw, 80px); z-index: 0; max-width: 21em; margin: 0; font: 400 14px/1.45 var(--sans); opacity: clamp(0, calc(1.6 - var(--u) * 1.8), 1); }
.op-f { position: relative; z-index: 1; margin: 0; }
.m-pico .op-une { width: calc(34% + var(--u) * 66%); margin-left: auto; }
.m-pico .op-f-ph { display: block; width: 100%; overflow: hidden; cursor: zoom-in; }
.op-f-ph img { width: 100%; height: auto; display: block; transition: scale 1.4s cubic-bezier(.16, 1, .3, 1); }
.op-f-ph:hover img { scale: 1.025; }
.op-f figcaption { padding-top: 7px; font: 400 12px/1 var(--sans); letter-spacing: .04em; opacity: .55; }
.op-f .op-x { top: 10px; right: 10px; z-index: 2; }
.op-p-grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.4cqw, 24px); align-items: start; }
.op-f.f0 { grid-column: 1 / 7; } .op-f.f1 { grid-column: 7 / 13; margin-top: 12cqw; } .op-f.f2 { grid-column: 1 / -1; } .op-f.f3 { grid-column: 2 / 7; } .op-f.f4 { grid-column: 8 / 13; margin-top: 6cqw; }
.m-pico:not(.calme) .op-p-grille .op-f .op-f-ph { clip-path: circle(0% at 50% 50%); transition: clip-path 1.3s cubic-bezier(.76, 0, .24, 1); }
.m-pico:not(.calme) .op-p-grille .op-f.vu .op-f-ph { clip-path: circle(75% at 50% 50%); }
/* le dossier suivant : en plein cadre, son nom au milieu */
.m-pico .op-p-suiv { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 14px; width: calc(100% + 2 * var(--op-m)); height: calc(var(--H) * .8); margin: clamp(80px, 9cqw, 140px) calc(-1 * var(--op-m)) 0; overflow: hidden; color: var(--op-clair); text-align: center; }
.op-p-suiv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 1.4s cubic-bezier(.16, 1, .3, 1); }
.op-p-suiv::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.op-p-suiv:hover img { scale: 1.03; }
.op-p-suiv small, .op-p-suiv span { position: relative; z-index: 1; }
.op-p-suiv small { font: 500 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.op-p-suiv span { max-width: 90%; font: 500 clamp(30px, 6.1cqw, 112px)/1 var(--serif); letter-spacing: -.01em; transition: color .35s; }
.op-p-suiv:hover span { color: var(--accent); }
.m-pico:not(.calme) .op-p-suiv img { clip-path: circle(0% at 50% 50%); transition: clip-path 1.4s cubic-bezier(.76, 0, .24, 1), scale 1.4s cubic-bezier(.16, 1, .3, 1); }
.m-pico:not(.calme) .op-p-suiv.vu img { clip-path: circle(75% at 50% 50%); }
.op-pied { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; font: 500 12px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .02em; }
/* le vol : la photo plein cadre qui se pose sur la carte */
.op-vol { position: absolute; z-index: 5; overflow: hidden; pointer-events: none; }
.op-vol img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* l'arrivée : la petite photo au milieu, puis plein cadre */
.op-debut { position: absolute; inset: 0; z-index: 10; background: var(--fond); color: var(--texte); cursor: pointer; }
.op-debut-g, .op-debut-d { position: absolute; top: 50%; translate: 0 -50%; max-width: 38%; font: 500 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-debut-g { left: var(--op-m); } .op-debut-d { right: var(--op-m); }
.op-debut-c { position: absolute; overflow: hidden; }
.op-debut-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-pico.en-debut :is(.op-tete, .op-compte) { visibility: hidden; }

/* sur téléphone (et dans l'aperçu téléphone) */
@container (max-width: 620px) {
  .op-centre { top: 36%; left: 16px; right: 16px; }
  .op-infos { align-self: center; width: min(100%, 300px); margin: 16px 0 0; }
  .op-tab { margin-top: 22px; }
  .op-compte { bottom: calc(30px + var(--op-bas)); }
  .op-long { display: none; } .op-court { display: inline; }
  .op-p-pile-i { font-size: clamp(22px, 7cqw, 34px); top: 40px; }
  .m-pico .op-une { width: calc(60% + var(--u) * 40%); }
  .op-p-desc { position: static; max-width: none; margin: 0 0 18px; }
  .op-p-une-z { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .op-p-grille { grid-template-columns: 1fr; }
  .op-f.f0, .op-f.f1, .op-f.f2, .op-f.f3, .op-f.f4 { grid-column: 1; margin-top: 0; }
  .op-pied { flex-direction: column; gap: 6px; }
}

/* la visionneuse : sur le clair, la photo s'ouvre dans un cercle, le compteur jaune en bas */
.lb.peau-pico { --opl-f: #F7F5F2; --opl-t: #141414; background: var(--opl-f); color: var(--opl-t); font-family: var(--opl-s); padding-top: 50px; }
.op-lb-h { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; align-items: baseline; gap: 16px; padding: 16px 20px; color: var(--opl-t); font: 500 12px/1 var(--opl-s); text-transform: uppercase; letter-spacing: .02em; }
.op-lb-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-lb-x { margin-left: auto; padding: 0; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: opacity .25s; }
.op-lb-x:hover { opacity: .5; }
.lb.peau-pico :is(.lb-top, .lb-bot) { color: var(--opl-t); font: 400 12px/1.2 var(--opl-s); }
.lb.peau-pico :is(.lb-top, .lb-bot) button { background: transparent; color: var(--opl-t); border: 1px solid color-mix(in srgb, var(--opl-t) 22%, transparent); border-radius: 0; font: inherit; transition: background .25s, color .25s; }
.lb.peau-pico :is(.lb-top, .lb-bot) button:hover, .lb.peau-pico :is(.lb-top, .lb-bot) :is(button[aria-pressed=true], button.on) { background: var(--opl-t); color: var(--opl-f); }
.lb.peau-pico .lb-zoom { background: transparent; }
.lb.peau-pico :is(.lb-name, .lb-pct, .lb-info .lb-name) { font: inherit; color: var(--opl-t); }
.lb.peau-pico .lb-exif { color: color-mix(in srgb, var(--opl-t) 55%, transparent); }
.lb.peau-pico .lb-k { color: var(--opl-t); border-color: color-mix(in srgb, var(--opl-t) 30%, transparent); opacity: .6; }
.lb.peau-pico .lb-x[data-x] { display: none; }
.lb.peau-pico .lb-fant { display: none; }
.lb.peau-pico .lb-nav { background: transparent; border: 0; border-radius: 0; color: var(--opl-t); -webkit-backdrop-filter: none; backdrop-filter: none; opacity: .5; }
.lb.peau-pico .lb-nav:hover { background: transparent; opacity: 1; }
.lb.peau-pico .lb-bot { border-top: 0; }
.lb.peau-pico .lb-bot .lb-tiroir { background: transparent; color: var(--opl-t); }
.op-lb-bas { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 12px 20px 20px; font: 400 12px/1 var(--opl-s); letter-spacing: .04em; }
.op-lb-piste { position: relative; display: flex; align-items: center; gap: 2px; height: 16px; }
.op-lb-piste i { position: relative; width: 7px; height: 16px; }
.op-lb-piste i::before { content: ''; position: absolute; left: 3px; top: 4px; width: 1px; height: 8px; background: var(--opl-t); transition: all .45s cubic-bezier(.76, 0, .24, 1); }
.op-lb-piste i.on { width: 20px; }
.op-lb-piste i.on::before { left: 2px; width: 14px; height: 7px; top: 4.5px; background: var(--opl-a); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--opl-t) 35%, transparent); }
.op-lb-piste.ligne { width: min(40vw, 220px); }
.op-lb-piste.ligne::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: color-mix(in srgb, var(--opl-t) 40%, transparent); }
.op-lb-piste.ligne b { position: absolute; top: 4.5px; width: 14px; height: 7px; margin-left: -7px; background: var(--opl-a); transition: left .45s cubic-bezier(.76, 0, .24, 1); }
.lb.lb-blanc.peau-pico { --opl-f: #FFFFFF; --opl-t: #141414; }
.lb.lb-noir.peau-pico { --opl-f: #0E0E0E; --opl-t: #F1F1F1; }
.lb-dans.peau-pico .lb-exif { display: none; }
@media (max-width: 1200px) { .lb.peau-pico .lb-exif { display: none; } }
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) { .op-lb-h { padding: 16px; } .op-lb-bas { padding: 10px 16px 14px; } }
/* 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 .op-lb-h { padding: 16px; }
.device.mobile .op-lb-bas { padding: 10px 16px 14px; }

.device.mobile .op-lb-h { padding: 16px; }
.device.mobile .op-lb-bas { padding: 10px 16px 14px; }
