/* Plongée (Lezieu, refaite le 08/11 d'après 24/7 Artists) : l'accueil aux sillons et aux taches de pixels, la couleur qui monte en barres d'une partie à l'autre,
   les dossiers (éparpillées, fiches, grille de tuiles en 3D), le tunnel du pied, la barre blanche, le menu, la page d'un dossier, la visionneuse.
   Couleurs de la mise en page : --fond (l'aubergine presque noire), --texte, --accent (la première couleur vive) ; les autres couleurs vives sont celles du site.
   Typo : --sans (Figtree, à la place de Gellix) partout. */

.m-247 { --pg-encre: #231E25; --pg-rose: #F25CE6; --cols: 7; --pg-m: 12px; --pg-bas: 0px;
  --pg-h1: clamp(52px, 9.9cqw, 150px); --pg-h2: clamp(38px, 5.6cqw, 84px);
  background: var(--fond); color: var(--texte); font-family: var(--sans); user-select: none; -webkit-user-select: none; }
.m-247 button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: inherit; letter-spacing: inherit; }
.m-247 [hidden] { display: none !important; }
.m-247.apercu { --pg-bas: 44px; }
.pg-page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.pg-page::-webkit-scrollbar { display: none; }
.pg-h1 { margin: 0; font: 500 var(--pg-h1)/.94 var(--sans); letter-spacing: -.058em; }
.pg-h2 { margin: 0; font: 500 var(--pg-h2)/.98 var(--sans); letter-spacing: -.05em; }
.pg-c { display: inline-block; }
.pg-mot { display: inline-block; white-space: nowrap; overflow: hidden; padding: .1em .02em .1em 0; margin: -.1em 0; vertical-align: top; }

/* les couleurs : celle de chaque partie, de ses barres, des pastilles */
.m-247 :is([data-c="fond"], .c-fond) { --c: var(--fond); --pg-t: var(--texte); }
.m-247 :is([data-c="accent"], .c-accent) { --c: var(--accent); }
.m-247 :is([data-c="creme"], .c-creme) { --c: #FFF0D4; }
.m-247 :is([data-c="vert"], .c-vert) { --c: #ABF139; }
.m-247 :is([data-c="jaune"], .c-jaune) { --c: #FFB800; }
.m-247 :is([data-c="violet"], .c-violet) { --c: #A47CFF; }
.m-247 :is([data-c="saumon"], .c-saumon) { --c: #FF9F85; }
.pg-sec { --pg-t: var(--pg-encre); position: relative; z-index: 0; overflow-x: clip; background-color: var(--c); color: var(--pg-t); }
.pg-sec:not([data-c="fond"]) { background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--cols) - 1px), rgba(35, 30, 37, .12) calc(100% / var(--cols) - 1px) calc(100% / var(--cols))); }
.pg-eq { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--H); display: flex; pointer-events: none; }
.pg-eq i { flex: 1; background: var(--c); transform-origin: 50% 100%; transform: scaleY(0); margin-right: -.5px; }
.pg-colle { position: sticky; top: 0; height: var(--H); overflow: hidden; }

/* les petites pièces : la pastille, le bouton rose aux coins en escalier, l'ovale */
.pg-pastille { display: inline-flex; align-items: center; border: 1px solid currentColor; border-radius: 99px; padding: 3px 9px 2px; font: 500 11.5px/1.15 var(--sans); letter-spacing: 0; white-space: nowrap; }
:is(.m-247, .lb.peau-pg) .pg-pixel { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px 9px; background: var(--pg-rose, #F25CE6); color: #231E25; font: 500 12.5px/1 var(--sans, sans-serif); letter-spacing: -.01em; white-space: nowrap; border: 0; border-radius: 0; cursor: pointer;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px), 0 6px, 3px 6px, 3px 3px, 6px 3px);
  transition: background .2s, padding .25s cubic-bezier(.16, 1, .3, 1); }
:is(.m-247, .lb.peau-pg) .pg-pixel:hover { background: #231E25; color: var(--pg-rose, #F25CE6); padding-left: 20px; padding-right: 20px; }
.m-247 .pg-ovale { border: 1px solid currentColor; border-radius: 99px; padding: 5px 12px 4px; font: 500 12px/1 var(--sans); transition: background .2s, color .2s; }
.m-247 .pg-ovale:hover { background: #231E25; color: #fff; }

/* la barre blanche en bas à gauche, le menu en haut à droite */
.pg-barre { position: absolute; z-index: 8; left: var(--pg-m); bottom: calc(var(--pg-m) + var(--pg-bas)); display: flex; align-items: stretch; height: 48px; max-width: calc(100% - 2 * var(--pg-m)); background: #fff; color: #231E25; border: 1px solid #231E25; }
.pg-barre > * + * { border-left: 1px solid #231E25; }
.m-247 .pg-ecu { display: grid; place-items: center; width: 48px; flex: none; }
.pg-rond { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; font: 500 9.5px/1 var(--sans); letter-spacing: 0; }
.pg-rond i { width: 100%; height: 1px; background: currentColor; margin: 2px 0; }
.pg-rond.seul :is(i, span:last-child) { display: none; }
.m-247 .pg-nom { display: flex; align-items: center; padding: 0 16px; font: 600 21px/1 var(--sans); letter-spacing: -.055em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18em; min-width: 0; }
.pg-info { display: flex; align-items: center; padding: 0 16px; font: 400 10.5px/1.25 var(--sans); white-space: nowrap; }
.pg-cel { display: flex; align-items: center; padding: 0 8px; }
.m-247 .pg-burger { position: absolute; z-index: 8; top: var(--pg-m); right: var(--pg-m); width: 42px; height: 42px; background: #fff; border: 1px solid #231E25; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.pg-burger i { display: block; width: 18px; height: 1.5px; background: #231E25; transition: rotate .35s, translate .35s, opacity .2s; }
.pg-burger.ouvert i:first-child { translate: 0 5.5px; rotate: 45deg; }
.pg-burger.ouvert i:nth-child(2) { opacity: 0; }
.pg-burger.ouvert i:last-child { translate: 0 -5.5px; rotate: -45deg; }
.pg-menu { position: absolute; inset: 0; z-index: 7; color: #231E25; }
.pg-menu-eq { position: absolute; inset: 0; display: flex; }
.pg-menu-eq i { flex: 1; background: #A47CFF; transform-origin: 50% 100%; margin-right: -.5px; box-shadow: inset -1px 0 rgba(35, 30, 37, .16); }
.pg-menu-c { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4cqw; padding: 76px clamp(16px, 4cqw, 60px) 90px; }
.pg-menu-l { display: flex; flex-direction: column; align-items: flex-start; max-height: 100%; overflow-y: auto; scrollbar-width: none; font: 500 clamp(30px, 4.3cqw, 62px)/1.04 var(--sans); letter-spacing: -.05em; }
.m-247 .pg-menu-l button { display: flex; align-items: flex-start; gap: .3em; text-align: left; transition: opacity .25s, translate .4s cubic-bezier(.16, 1, .3, 1); }
.pg-menu-l .pg-pastille { margin-top: .5em; font-size: 11px; }
.pg-menu-l:hover button:not(:hover) { opacity: .4; }
.pg-menu-l button:hover { translate: .12em 0; }
.pg-menu-ph { width: min(28cqw, 380px); aspect-ratio: 4 / 5; }
.pg-menu-ph img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }

/* l'accueil : les sillons, les taches de pixels, le nom en très grand */
.pg-hero { position: relative; z-index: 0; height: var(--H); overflow: hidden; background: var(--fond); color: var(--texte); }
.pg-sillons { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: color-mix(in srgb, var(--texte, #fff) 8%, transparent); stroke-width: 1; pointer-events: none; }
.pg-sillons circle { vector-effect: non-scaling-stroke; }
.pg-traces { position: absolute; inset: 0; pointer-events: none; }
.pg-tache { position: absolute; background-size: cover; background-position: center; }
.pg-hero-t { position: absolute; z-index: 2; left: var(--pg-m); bottom: calc(84px + var(--pg-bas)); max-width: 86%; color: var(--texte); pointer-events: none; }

/* le nombre de photos et de dossiers, les mots qui glissent */
.pg-ch { height: calc(var(--H) * 1.7); }
.pg-ch .pg-colle { display: grid; place-items: center; text-align: center; }
.pg-ch-t { display: flex; flex-direction: column; align-items: center; }
.pg-ch-t span { display: block; white-space: nowrap; }
.pg-ch-s { position: absolute; right: 5cqw; bottom: 24%; margin: 0; max-width: 16em; font: 400 13px/1.35 var(--sans); }

/* la galerie en une phrase : la photo qui grandit en pixels, les dossiers en pastilles */
.pg-in { padding: clamp(70px, 9cqw, 130px) var(--pg-m) clamp(110px, 12cqw, 180px); }
.pg-in > .pg-pastille { position: relative; }
.pg-une { position: relative; width: min(54cqw, 780px); aspect-ratio: 4 / 3; margin: clamp(50px, 6cqw, 90px) auto clamp(60px, 8cqw, 120px); }
.m-247 .pg-une-ph { position: absolute; inset: 0; display: block; }
.pg-une-ph img, .pg-cote img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.m-247 .pg-cote { position: absolute; width: 24%; aspect-ratio: 1; z-index: 1; }
.pg-cote.c0 { left: -15%; top: 46%; }
.pg-cote.c1 { right: -13%; top: 16%; width: 30%; }
.pg-phrase { max-width: 21em; margin: 0 auto; font: 500 clamp(24px, 2.6cqw, 40px)/1.22 var(--sans); letter-spacing: -.035em; }
.m-247 .pg-pil { display: inline; padding: 0 .28em .04em; border-radius: 99px; background: var(--c); color: #231E25; outline: 1px solid rgba(35, 30, 37, .4); outline-offset: -1px; transition: background .2s, color .2s; }
.m-247 .pg-pil:hover { background: #231E25; color: var(--c); }

/* les dossiers : la tête commune (pastille, nom, nombre, bouton) */
.pg-d-t { position: absolute; z-index: 3; left: var(--pg-m); bottom: calc(84px + var(--pg-bas)); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 48%; }
.pg-d-t .pg-h2, .pg-gr-carte .pg-h2 { max-width: 11em; overflow-wrap: break-word; }
.pg-d-n { margin: 0; font: 400 14px/1.3 var(--sans); }
/* éparpillées : les photos montent en biais, à des vitesses différentes */
.pg-ep { height: calc(var(--H) * 2.3); }
.pg-cartes { position: absolute; inset: 0; }
.m-247 .pg-carte { position: absolute; left: var(--x); top: 0; width: calc(13.5cqw * var(--s)); aspect-ratio: var(--ar); padding: 6px 6px 20px; border: 1px solid currentColor; rotate: var(--r); box-sizing: content-box; transition: rotate .5s cubic-bezier(.16, 1, .3, 1), scale .5s cubic-bezier(.16, 1, .3, 1), background .3s; }
.pg-carte img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.pg-carte span { position: absolute; left: 6px; bottom: 4px; font: 500 10px/1 var(--sans); }
.pg-carte.loin { opacity: .5; filter: blur(1.5px); }
.m-247 .pg-carte:hover { rotate: 0deg; scale: 1.06; z-index: 2; background: var(--c); opacity: 1; filter: none; }
/* fiches : une à une, numérotées ; les lignes qui ondulent derrière */
.pg-fi { height: calc(var(--H) * (1.25 + var(--n) * .6)); --mat: #A47CFF; }
.pg-fi[data-c="violet"] { --mat: #FFB800; }
.pg-ondes { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(35, 30, 37, .4); stroke-width: 1; pointer-events: none; }
.pg-ondes path { vector-effect: non-scaling-stroke; }
.pg-fiches { position: absolute; right: 7cqw; top: 50%; translate: 0 -50%; width: min(34cqw, 500px); aspect-ratio: .92; }
.m-247 .pg-fiche { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; color: #231E25; border: 1px solid #231E25; text-align: left; will-change: transform; }
.pg-fiche-h { display: flex; align-items: stretch; border-bottom: 1px solid #231E25; font: 500 11.5px/1 var(--sans); }
.pg-fiche-h b { display: grid; place-items: center; min-width: 34px; padding: 9px 6px; border-right: 1px solid #231E25; font-weight: 500; }
.pg-fiche-h span { align-self: center; padding: 0 14px; font: 600 clamp(16px, 1.5cqw, 22px)/1.1 var(--sans); letter-spacing: -.045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pg-fiche-ph { flex: 1; min-height: 0; padding: 14px; background: var(--mat); }
.pg-fiche-ph img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: scale .6s cubic-bezier(.16, 1, .3, 1); }
.pg-fiche:hover .pg-fiche-ph img { scale: 1.03; }
/* la grille : les tuiles se soulèvent (côtés roses) et plongent au loin ; dessous, le fond sombre et les photos du dossier */
.pg-gr { height: calc(var(--H) * 2.4); }
.pg-gr-fond { position: absolute; inset: 0; background: var(--fond); overflow: hidden; }
.pg-gr-num { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font: 500 62cqw/.8 var(--sans); letter-spacing: -.07em; color: transparent; background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--texte) 9%, transparent) 0 1px, transparent 1px 6px); -webkit-background-clip: text; background-clip: text; pointer-events: none; }
.m-247 .pg-gr-ph { position: absolute; overflow: hidden; pointer-events: none; }
.pg-gr-ph img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: scale .6s cubic-bezier(.16, 1, .3, 1); }
.m-247 .pg-gr-ph.libre { pointer-events: auto; }
.pg-gr-ph.libre:hover img { scale: 1.06; }
.pg-tuiles { position: absolute; inset: 0; pointer-events: none; perspective-origin: 50% 50%; }
.pg-tu { --d: 0px; position: absolute; background: var(--c); box-shadow: inset 0 0 0 .5px rgba(35, 30, 37, .6); transform-style: preserve-3d; }
.pg-tu i { position: absolute; background: var(--pg-rose); box-shadow: inset 0 0 0 .5px rgba(35, 30, 37, .45); }
.pg-tu .g { left: 0; top: 0; height: 100%; width: var(--d); transform-origin: 0 50%; transform: rotateY(90deg); }
.pg-tu .d { right: 0; top: 0; height: 100%; width: var(--d); transform-origin: 100% 50%; transform: rotateY(-90deg); background: #D53BCB; }
.pg-tu .h { left: 0; top: 0; width: 100%; height: var(--d); transform-origin: 50% 0; transform: rotateX(-90deg); background: #FF8EF3; }
.pg-tu .b { left: 0; bottom: 0; width: 100%; height: var(--d); transform-origin: 50% 100%; transform: rotateX(90deg); background: #E24AD7; }
.pg-gr-carte { position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%; width: calc(100cqw / 8 * 2); min-height: calc(100cqw / 8 * 2); box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; background: #fff; color: #231E25; border: 1px solid #231E25; }
.pg-gr-carte .pg-h2 { font-size: clamp(30px, 3.4cqw, 52px); padding-bottom: 10px; border-bottom: 1px solid #231E25; width: 100%; }
.pg-gr-carte .pg-pixel { margin-top: auto; }
.m-247.calme .pg-tuiles { display: none; }
.m-247.calme .pg-gr-ph { pointer-events: auto; }

/* « Toutes les photos » en très grand */
.pg-to { height: var(--H); }
.m-247 .pg-to-b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; text-align: center; padding: 0 var(--pg-m); }
.pg-to-b .pg-h1 { transition: letter-spacing .6s cubic-bezier(.16, 1, .3, 1); }
.pg-to-b:hover .pg-h1 { letter-spacing: -.04em; }

/* le pied : le tunnel, les photos qui arrivent vers nous */
.pg-pied { display: flex; flex-direction: column; min-height: var(--H); }
.pg-tunnel { position: relative; flex: 1; min-height: calc(var(--H) - 90px); overflow: hidden; display: grid; place-items: center; }
.pg-tunnel-l { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: color-mix(in srgb, var(--texte) 14%, transparent); stroke-width: 1; pointer-events: none; }
.pg-tunnel-l * { vector-effect: non-scaling-stroke; }
.pg-vols { position: absolute; inset: 0; pointer-events: none; }
.pg-vols img { position: absolute; left: 50%; top: 50%; width: clamp(80px, 9cqw, 140px); aspect-ratio: .8; max-width: none; object-fit: cover; display: block; opacity: 0; animation: pg-vol 9s cubic-bezier(.55, 0, .9, .6) infinite; }
@keyframes pg-vol {
  0% { transform: translate(-50%, -50%) scale(.1); opacity: 0; }
  14% { opacity: 1; }
  86% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.6); opacity: 0; }
}
.m-247.calme .pg-vols { display: none; }
.pg-pied-c { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; padding: 0 var(--pg-m); }
.pg-pied-c .pg-h2 { max-width: 12em; }
.pg-copy { display: flex; justify-content: flex-end; gap: 2em; margin: 0; padding: 14px var(--pg-m) calc(18px + var(--pg-bas)); font: 400 11px/1.3 var(--sans); opacity: .55; }

/* la page d'un dossier */
.pg-entete { min-height: var(--H); box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; padding: 90px var(--pg-m) clamp(80px, 9cqw, 130px); }
.m-247 .pg-retour { position: absolute; left: var(--pg-m); top: var(--pg-m); padding: 13px 16px 12px; background: #fff; color: #231E25; border: 1px solid #231E25; font: 500 12.5px/1 var(--sans); transition: background .2s; }
.m-247 .pg-retour:hover { background: var(--pg-rose); }
.pg-g-titre { max-width: 12em; }
.pg-photos { padding: 0 0 clamp(80px, 9cqw, 140px); }
.pg-ph { display: grid; border-top: 1px solid color-mix(in srgb, var(--texte) 14%, transparent); }
.pg-ph.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-ph.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-ph.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-f { position: relative; margin: 0; aspect-ratio: 1; padding: clamp(10px, 1.4cqw, 20px); border-right: 1px solid color-mix(in srgb, var(--texte) 14%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--texte) 14%, transparent); box-sizing: border-box; }
.m-247 .pg-f-ph { display: block; width: 100%; height: 100%;
  box-shadow: 0 0 0 var(--pg-rose), 0 0 0 var(--pg-rose), 0 0 0 var(--pg-rose), 0 0 0 var(--pg-rose), 0 0 0 var(--pg-rose), 0 0 0 var(--pg-rose), 0 0 0 var(--pg-rose), 0 0 0 var(--pg-rose);
  transition: translate .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s cubic-bezier(.16, 1, .3, 1); }
.m-247 .pg-f-ph:hover { translate: -8px -8px;
  box-shadow: 1px 1px 0 var(--pg-rose), 2px 2px 0 var(--pg-rose), 3px 3px 0 var(--pg-rose), 4px 4px 0 var(--pg-rose), 5px 5px 0 #E24AD7, 6px 6px 0 #E24AD7, 7px 7px 0 #D53BCB, 8px 8px 0 #D53BCB; }
.pg-f-ph img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.pg-f figcaption { position: absolute; left: clamp(10px, 1.4cqw, 20px); bottom: 2px; font: 500 9.5px/1 var(--sans); opacity: .5; }
.pg-f .pg-x { top: calc(clamp(10px, 1.4cqw, 20px) + 6px); right: calc(clamp(10px, 1.4cqw, 20px) + 6px); z-index: 2; }
.m-247:not(.calme) :is(.pg-f, .pg-suiv):not(.vu) :is(.pg-f-ph, .pg-suiv-ph) { clip-path: polygon(50% 50%, 50% 50%, 50% 50%); }
.pg-suite { height: calc(var(--H) * .92); }
.m-247 .pg-suiv { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 0 var(--pg-m) 40px; text-align: left; }
.pg-suiv .pg-h1 { max-width: 58%; }
.pg-suiv-ph { position: absolute; right: 7cqw; top: 50%; translate: 0 -50%; width: min(26cqw, 380px); aspect-ratio: 4 / 5; }
.pg-suiv-ph img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }

/* ce qui arrive doucement (une fois vu) */
.m-247:not(.calme) :is(.pg-phrase, .pg-d-t, .pg-gr-carte, .pg-pied-c) { opacity: 0; translate: 0 40px; transition: opacity .9s cubic-bezier(.16, 1, .3, 1), translate .9s cubic-bezier(.16, 1, .3, 1); }
.m-247:not(.calme) .pg-gr-carte { translate: -50% calc(-50% + 40px); }
.m-247:not(.calme) :is(.pg-phrase, .pg-d-t, .pg-pied-c).vu { opacity: 1; translate: 0 0; }
.m-247:not(.calme) .pg-gr-carte.vu { opacity: 1; translate: -50% -50%; }

/* le passage d'une page à l'autre : la couleur monte en barres */
.pg-voile { position: absolute; inset: 0; z-index: 9; display: flex; pointer-events: none; visibility: hidden; }
.pg-voile i { flex: 1; background: var(--c, var(--fond)); transform: scaleY(0); margin-right: -.5px; }

/* sur téléphone (et dans l'aperçu téléphone) */
@container (max-width: 620px) {
  .m-247 { --cols: 4; --pg-h1: 46px; --pg-h2: 36px; --pg-m: 10px; }
  .pg-barre { height: 44px; }
  .m-247 .pg-ecu { width: 44px; }
  .m-247 .pg-nom { font-size: 18px; padding: 0 12px; max-width: 9em; }
  .pg-info, .pg-barre .pg-cel:has(.pg-ovale) { display: none; }
  .pg-hero-t { bottom: calc(72px + var(--pg-bas)); max-width: 94%; }
  .pg-ch-s { right: auto; left: 50%; translate: -50% 0; bottom: 16%; text-align: center; }
  .pg-une { width: 78cqw; }
  .pg-cote.c0 { left: -6%; top: 70%; }
  .pg-cote.c1 { right: -6%; top: -10%; }
  .pg-d-t { max-width: 92%; bottom: calc(70px + var(--pg-bas)); }
  .m-247 .pg-carte { width: calc(30cqw * var(--s)); }
  .pg-fiches { right: auto; left: 50%; top: 9%; translate: -50% 0; width: 74cqw; }
  .pg-gr-carte { width: calc(100cqw / 4 * 3); min-height: calc(100cqw / 4 * 2.4); }
  .pg-menu-c { grid-template-columns: 1fr; }
  .pg-menu-ph { display: none; }
  .pg-f figcaption { display: none; }
  .pg-suiv .pg-h1 { max-width: 100%; }
  .pg-suiv-ph { top: 12%; translate: 0 0; width: 40cqw; }
  .m-247 .pg-suiv { justify-content: flex-end; padding-bottom: 90px; }
  .pg-copy { flex-direction: column; align-items: flex-end; gap: 4px; padding-bottom: calc(66px + var(--pg-bas)); }
}

/* la visionneuse, habillée comme le site */
.lb.peau-pg { background: var(--pgl-f); color: var(--pgl-t); font-family: var(--pgl-s); grid-template-rows: auto minmax(0, 1fr) auto auto; }
.lb.peau-pg > .pg-sillons { z-index: -1; stroke: color-mix(in srgb, var(--pgl-t) 8%, transparent); }
.lb.peau-pg :is(.lb-top, .lb-bot) { color: var(--pgl-t); font: 500 12px/1.2 var(--pgl-s); }
.lb.peau-pg .lb-top { padding: 12px 66px 8px 12px; }
.lb.peau-pg :is(.lb-top, .lb-bot) button { background: #fff; color: #231E25; border: 1px solid #231E25; border-radius: 0; font: inherit; transition: background .2s; }
.lb.peau-pg :is(.lb-top, .lb-bot) button:hover { background: #F25CE6; color: #231E25; }
.lb.peau-pg :is(.lb-top, .lb-bot) :is(button[aria-pressed=true], button.on) { background: #F25CE6; color: #231E25; }
.lb.peau-pg .lb-zoom { background: transparent; gap: 0; }
.lb.peau-pg .lb-zoom > * + * { margin-left: -1px; }
.lb.peau-pg .lb-pct { background: #fff; color: #231E25; border: 1px solid #231E25; padding: 0 8px; align-self: stretch; display: inline-flex; align-items: center; }
.lb.peau-pg :is(.lb-name, .lb-info .lb-name) { font: inherit; color: var(--pgl-t); }
.lb.peau-pg .lb-exif { color: color-mix(in srgb, var(--pgl-t) 55%, transparent); }
.lb.peau-pg .lb-k { color: var(--pgl-t); border-color: color-mix(in srgb, var(--pgl-t) 35%, transparent); opacity: .6; }
.lb.peau-pg .lb-x[data-x] { display: none; }
.lb.peau-pg .lb-x.lb-plein { border-radius: 0 !important; }
.lb.peau-pg .lb-fant { display: none; }
.lb.peau-pg .lb-nav { width: 44px; height: 44px; border: 1px solid #231E25; border-radius: 0; background: #fff; color: #231E25; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; transition: background .2s; }
.lb.peau-pg .lb-nav:hover { background: #F25CE6; }
.lb.peau-pg .lb-nav.prev { left: 12px; }
.lb.peau-pg .lb-nav.next { right: 12px; }
.lb.peau-pg .lb-bot { border-top: 0; }
.lb.peau-pg .lb-bot .lb-tiroir { background: transparent; color: var(--pgl-t); border: 0; }
.lb.peau-pg .lb-bot .lb-tiroir:hover { background: transparent; color: var(--pgl-t); }
.lb.peau-pg .lb-bot :is(.lba, .lbd) { background: #fff; border: 1px solid #231E25; color: #231E25; border-radius: 0; }
.lb.peau-pg .lb-bot :is(.lba, .lbd).on { background: #F25CE6; border-color: #231E25; color: #231E25; opacity: 1; }
.pg-lb-x { position: absolute; z-index: 5; top: 12px; right: 12px; width: 42px; height: 42px; padding: 0; background: #fff; border: 1px solid #231E25; cursor: pointer; transition: background .2s; }
.pg-lb-x:hover { background: #F25CE6; }
.pg-lb-x i { position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; margin-top: -.75px; background: #231E25; rotate: 45deg; }
.pg-lb-x i + i { rotate: -45deg; }
.pg-lb-bas { position: relative; z-index: 1; justify-self: start; display: flex; align-items: stretch; height: 44px; max-width: calc(100% - 24px); margin: 10px 12px 12px; background: #fff; color: #231E25; border: 1px solid #231E25; }
.pg-lb-n { display: flex; }
.pg-lb-n b { display: grid; place-items: center; min-width: 42px; border-right: 1px solid #231E25; font: 500 12px/1 var(--pgl-s); }
.pg-lb-dos { min-width: 0; padding: 0 16px; background: none; border: 0; color: inherit; cursor: pointer; font: 600 18px/1 var(--pgl-s); letter-spacing: -.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s; }
.pg-lb-dos:hover { background: #FFF0D4; }
.pg-lb-c { display: flex; align-items: center; padding: 0 8px; border-left: 1px solid #231E25; }
.pg-lb-eq { position: absolute; inset: 0; z-index: 30; display: flex; pointer-events: none; }
.pg-lb-eq i { flex: 1; background: var(--pgl-f); transform: scaleY(0); transform-origin: 50% 0; margin-right: -.5px; }
.lb.lb-blanc.peau-pg { --pgl-f: #FFFDF8 !important; --pgl-t: #231E25 !important; }
.lb.lb-noir.peau-pg { --pgl-f: #0E0C0F !important; --pgl-t: #FFFFFF !important; }
.lb-dans.peau-pg .lb-exif { display: none; }
@media (max-width: 1200px) { .lb.peau-pg .lb-exif { display: none; } }
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
  .lb.peau-pg .lb-top { padding: 10px 60px 6px 10px; }
  .lb.peau-pg .lb-nav { width: 38px; height: 38px; }
  .lb.peau-pg .lb-nav.prev { left: 8px; } .lb.peau-pg .lb-nav.next { right: 8px; }
  .pg-lb-x { top: 10px; right: 10px; width: 38px; height: 38px; }
  .pg-lb-dos { font-size: 15px; padding: 0 12px; }
  .lb.peau-pg .lb-info { display: none; }
  .lb.peau-pg .lb-meta { gap: 6px; }
  .lb.peau-pg .lb-top button { padding: 6px 8px; font-size: 11.5px; }
}
/* 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-pg .lb-top { padding: 10px 60px 6px 10px; }
.device.mobile .lb.peau-pg .lb-nav { width: 38px; height: 38px; }
.device.mobile .lb.peau-pg .lb-nav.prev { left: 8px; }
.device.mobile .lb.peau-pg .lb-nav.next { right: 8px; }
.device.mobile .pg-lb-x { top: 10px; right: 10px; width: 38px; height: 38px; }
.device.mobile .pg-lb-dos { font-size: 15px; padding: 0 12px; }
.device.mobile .lb.peau-pg .lb-info { display: none; }
.device.mobile .lb.peau-pg .lb-meta { gap: 6px; }
.device.mobile .lb.peau-pg .lb-top button { padding: 6px 8px; font-size: 11.5px; }

.device.mobile .lb.peau-pg .lb-top { padding: 10px 60px 6px 10px; }
.device.mobile .lb.peau-pg .lb-nav { width: 38px; height: 38px; }
.device.mobile .pg-lb-x { top: 10px; right: 10px; width: 38px; height: 38px; }
.device.mobile .pg-lb-dos { font-size: 15px; padding: 0 12px; }
.device.mobile .lb.peau-pg .lb-info { display: none; }
.device.mobile .lb.peau-pg .lb-meta { gap: 6px; }
.device.mobile .lb.peau-pg .lb-top button { padding: 6px 8px; font-size: 11.5px; }
