/* Globe (Lezieu, refait le 06/11 d'après Mark Clennon) : le mur de photos, le menu des dossiers, l'étiquette qui suit la souris, la page d'un dossier.
   Couleurs de la mise en page : --fond (les joints du mur, le texte de la page d'un dossier), --texte (le texte sur le mur), --accent (le fond gris de la page d'un dossier) ;
   typo : --serif (--b-fd) partout, comme sur le site. */

.m-mur { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.m-mur.tire { cursor: grabbing; }
.mu-mur { position: absolute; inset: 0; overflow: hidden; }
.mu-case { position: absolute; left: 0; top: 0; margin: 0; box-sizing: border-box; transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden; }
.mu-case img { display: block; width: 100%; height: 100%; object-fit: cover; background: color-mix(in srgb, var(--texte) 8%, var(--fond)); pointer-events: none; }
.mu-case .mu-x { top: 12px; right: 12px; }

/* en haut : le titre de la galerie à gauche, « Dossiers + » à droite, sa liste dessous */
.mu-haut { position: absolute; z-index: 6; left: clamp(16px, 2cqw, 30px); right: clamp(16px, 2.2cqw, 30px); top: clamp(12px, 1.4cqw, 22px); display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  color: var(--texte); font-family: var(--serif); pointer-events: none; transition: color .6s; text-shadow: 0 1px 14px rgba(0, 0, 0, .28); }
.m-mur.en-page .mu-haut { text-shadow: none; }
.mu-nom { font: 400 clamp(26px, 2.8cqw, 44px)/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-transform: var(--b-tt, none); }
.mu-retour { pointer-events: auto; background: none; border: 0; padding: 4px 0; color: inherit; font: 400 clamp(17px, 1.4cqw, 20px)/1 var(--serif); cursor: pointer; }
.mu-retour span { display: inline-block; transition: translate .25s; }
.mu-retour:hover span { translate: -4px 0; }
.m-mur.en-page .mu-nom { display: none; }
.mu-menu { pointer-events: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.mu-menu > button, .mu-plus { background: none; border: 0; padding: 4px 0; color: inherit; font: 400 clamp(17px, 1.4cqw, 20px)/1 var(--serif); cursor: pointer; text-transform: uppercase; white-space: nowrap; }
.mu-plus i { display: inline-block; position: relative; width: .62em; height: .62em; margin-left: .25em; vertical-align: .04em; transition: rotate .4s cubic-bezier(.16, 1, .3, 1); }
.mu-plus i::before, .mu-plus i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 100%; height: 1px; background: currentColor; translate: -50% -50%; }
.mu-plus i::after { rotate: 90deg; }
.mu-plus[aria-expanded=true] i { rotate: 45deg; }
.mu-liste { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mu-liste[hidden] { display: none; }
.mu-liste button { background: none; border: 0; padding: 2px 0; color: inherit; font: 400 clamp(14px, 1.1cqw, 16px)/1.1 var(--serif); text-transform: uppercase; cursor: pointer; text-align: right; max-width: 40cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.mu-liste button:hover { opacity: 1; text-decoration: underline 1px; text-underline-offset: 4px; }
.mu-liste:not([hidden]) button { animation: mu-entre .5s cubic-bezier(.16, 1, .3, 1) backwards; }
.mu-liste button:nth-child(2) { animation-delay: 40ms; } .mu-liste button:nth-child(3) { animation-delay: 80ms; } .mu-liste button:nth-child(n+4) { animation-delay: 120ms; }
@keyframes mu-entre { from { opacity: 0; translate: 0 -6px; } }

/* le dossier de la photo survolée, qui suit la souris */
.mu-etiq { position: absolute; z-index: 5; left: 0; top: 0; display: flex; align-items: center; gap: 7px; pointer-events: none; color: var(--texte); font: 400 14px/1.1 var(--serif); white-space: nowrap; opacity: 0; transition: opacity .3s; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.mu-etiq.vu { opacity: 1; }
.mu-etiq i { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.m-mur.tire .mu-etiq { opacity: 0; }

/* la page d'un dossier : fond gris, son nom à gauche, ses photos en quinconce */
.mu-page { position: absolute; inset: 0; z-index: 4; overflow-y: auto; overflow-x: hidden; overscroll-behavior: auto; scrollbar-width: none; background: var(--accent); color: var(--fond); cursor: auto; touch-action: pan-y; }
.mu-page::-webkit-scrollbar { display: none; }
.mu-page[hidden] { display: none; }
.m-mur.en-page .mu-haut { color: var(--fond); }
.m-mur.en-page { cursor: auto; }
.mu-titre { position: absolute; z-index: 1; left: 2cqw; top: calc(var(--H, 800px) * .45); max-width: 46cqw; margin: 0; font: 400 clamp(26px, 2.78cqw, 44px)/1.05 var(--serif); letter-spacing: -.01em; text-transform: var(--b-tt, none); text-wrap: balance; }
.mu-photos { position: relative; }
.mu-bloc { position: absolute; }
.mu-voir { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: color-mix(in srgb, var(--fond) 8%, transparent); cursor: pointer; }
.mu-voir img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mu-suite { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2cqw; padding: 0 6cqw; }
.mu-suite p { grid-column: 2; grid-row: 1; margin: 0; display: grid; justify-items: center; gap: 6px; }
.mu-suite small { font: 400 clamp(13px, 1.1cqw, 16px)/1 var(--serif); text-transform: uppercase; }
.mu-suite b { font: 400 clamp(30px, 3.3cqw, 48px)/1 var(--serif); text-transform: uppercase; }
.mu-carte { position: relative; grid-row: 1; justify-self: center; width: min(24cqw, 350px); aspect-ratio: 350 / 455; padding: 0; border: 0; background: color-mix(in srgb, var(--fond) 10%, transparent); cursor: pointer; overflow: hidden; }
.mu-carte:first-of-type { grid-column: 1; } .mu-carte:last-of-type:not(:first-of-type) { grid-column: 3; }
.mu-carte:only-of-type { grid-column: 3; }   /* un seul autre dossier : c'est le suivant, à droite */
.mu-carte img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .9s cubic-bezier(.16, 1, .3, 1); }
.mu-carte:hover img { scale: 1.04; }
.mu-carte span { position: absolute; left: 8%; right: 8%; top: 50%; translate: 0 -50%; text-align: center; color: #fff; font: 400 clamp(18px, 2.2cqw, 32px)/1.05 var(--serif); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); text-wrap: balance; }
.mu-bloc .mu-x { top: 10px; right: 10px; }

/* sur téléphone : le titre en haut, les photos l'une sous l'autre, « À suivre » au-dessus des dossiers */
@container (max-width: 620px) {
  .mu-titre { top: 64px; left: 5cqw; max-width: 90cqw; font-size: clamp(24px, 7.4cqw, 32px); }
  .mu-suite { grid-template-columns: 1fr 1fr; padding: 0 5cqw; gap: 18px 4cqw; }
  .mu-suite p { grid-column: 1 / -1; }
  .mu-carte { grid-row: 2; width: 100%; }
  .mu-carte:first-of-type { grid-column: 1; } .mu-carte:last-of-type:not(:first-of-type) { grid-column: 2; }
  .mu-carte:only-of-type { grid-column: 1 / -1; width: 70%; }
  .mu-carte span { font-size: 17px; }
  .mu-etiq { display: none; }
  .mu-liste button { max-width: 72cqw; }
}

/* la photo qui vole du mur à la visionneuse (et retour) */
.mu-vol { position: fixed; z-index: 9999; object-fit: cover; pointer-events: none; margin: 0; max-width: none; }
.tz .m-mur .mu-haut, .tz .m-mur .mu-etiq { display: none; }
