/* Stories (Lezieu, refait le 08/11 d'après le site d'Arnaud Rocca) : les dossiers en plein écran qui passent seuls, la vague courbe, le nom lettre à lettre,
   les chiffres romains et les traits ; l'index sur le rose pâle ; la page d'un dossier sur le clair ; la visionneuse sur le brun.
   Couleurs : --fond (le brun), --texte (le clair), --accent (le rose pâle de l'index). Typo : --serif (Marcellus, à la place d'Arizona Flare), --sans (Albert Sans, à la place d'Arizona Sans). */

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

/* l'accueil : les stories */
.sr-diapo { position: absolute; inset: 0; overflow: hidden; background: var(--fond); touch-action: none; }
.sr-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sr-fondu img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-diapo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .12), rgba(0, 0, 0, .38)); pointer-events: none; }
.sr-titre { position: absolute; z-index: 2; left: 6%; right: 6%; top: 50%; translate: 0 -50%; text-align: center; color: var(--texte); font: 400 clamp(32px, 5cqw, 72px)/1.05 var(--serif); letter-spacing: .015em; text-transform: uppercase; cursor: pointer; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.sr-c { display: inline-block; }
.m-rocca .sr-decouvrir { position: absolute; z-index: 2; left: 50%; bottom: calc(54px + var(--sr-bas)); translate: -50% 0; color: var(--texte); font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; transition: opacity .3s; }
.sr-decouvrir:hover { opacity: .6; }
.sr-num { position: absolute; z-index: 2; bottom: calc(26px + var(--sr-bas)); color: var(--texte); font: 400 14px/1 var(--serif); letter-spacing: .04em; }
.sr-num.g { left: var(--sr-m); } .sr-num.d { right: var(--sr-m); }
.sr-traits { position: absolute; z-index: 2; left: 50%; bottom: calc(24px + var(--sr-bas)); translate: -50% 0; display: flex; gap: 8px; width: min(46%, 520px); }
.m-rocca .sr-traits button { position: relative; flex: 1; height: 16px; }
.sr-traits button::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: color-mix(in srgb, var(--texte) 30%, transparent); }
.sr-traits i { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--texte); transform-origin: 0 50%; transform: scaleX(0); }

/* le haut : les initiales, le chemin, Index et Toutes (lisible sur la photo comme sur le clair) */
.sr-tete { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: baseline; gap: 10px; padding: clamp(18px, 2.3cqw, 33px) var(--sr-m); color: #fff; mix-blend-mode: difference; pointer-events: none; }
.sr-tete > * { pointer-events: auto; }
.m-rocca .sr-logo { font: 400 20px/1 var(--serif); letter-spacing: .02em; }
.sr-fil { font: 400 12px/1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40cqw; pointer-events: none; }
.sr-nav { margin-left: auto; display: flex; gap: 22px; font: 400 14px/1 var(--sans); }
.sr-nav button:hover, .sr-logo:hover { opacity: .6; }

/* les pages */
.sr-page { position: absolute; inset: 0; z-index: 3; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; background: var(--texte); color: var(--fond); }
.sr-page::-webkit-scrollbar { display: none; }
.sr-page.rose { background: var(--accent); }
.sr-index { min-height: var(--H); box-sizing: border-box; display: flex; flex-direction: column; padding: clamp(110px, 10cqw, 150px) var(--sr-m) 24px; }
.sr-index ul { list-style: none; margin: 0 0 auto; padding: 0 9%; }
.m-rocca .sr-ligne { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: end; gap: 20px; width: 100%; padding: 22px 8px 8px; transition: background .3s, color .3s; }
.sr-l-n { font: 400 clamp(20px, 2.1cqw, 30px)/1 var(--serif); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-l-n sup { font-size: .45em; margin-left: .2em; }
.sr-l-t { font: 400 14px/1.2 var(--sans); }
.sr-l-a { font: 400 12px/1.2 var(--serif); }
.sr-ligne i { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.3s cubic-bezier(.76, 0, .24, 1); }
.sr-ligne.vu i, .m-rocca.calme .sr-ligne i { transform: scaleX(1); }
.m-rocca .sr-ligne:hover { background: var(--fond); color: var(--accent); }
.sr-pied { display: flex; justify-content: space-between; gap: 20px; padding-top: 60px; font: 400 11px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.sr-d { padding: clamp(110px, 10cqw, 150px) var(--sr-m) 24px; }
.sr-d-n { margin: 0 0 clamp(30px, 3.5cqw, 50px) 9%; max-width: 16em; font: 400 clamp(36px, 4.2cqw, 60px)/1.02 var(--serif); letter-spacing: .01em; }
.sr-d-i { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 9% clamp(50px, 6cqw, 90px); font: 400 12.5px/1.45 var(--sans); }
.sr-d-i p { margin: 0; max-width: 24em; }
.sr-d-i dl { margin: 0; }
.sr-d-i dt { font: 600 10px/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; }
.sr-d-i dd { margin: 6px 0 0; }
.sr-d-ph { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2cqw, 30px); align-items: start; }
.sr-f { position: relative; margin: 0; }
.sr-f.f0 { grid-column: 1 / -1; } .sr-f.f1 { grid-column: 1 / 4; } .sr-f.f2 { grid-column: 4 / 7; margin-top: 10cqw; } .sr-f.f3 { grid-column: 2 / 6; } .sr-f.f4 { grid-column: 3 / 7; }
.m-rocca .sr-f-ph { display: block; width: 100%; overflow: hidden; }
.sr-f-ph img { width: 100%; height: auto; display: block; transition: scale 1.4s cubic-bezier(.16, 1, .3, 1); }
.sr-f-ph:hover img { scale: 1.03; }
.sr-f figcaption { padding-top: 6px; font: 400 12px/1 var(--serif); opacity: .6; }
.sr-f .sr-x { top: 10px; right: 10px; z-index: 2; }
.m-rocca:not(.calme) .sr-f .sr-f-ph { clip-path: ellipse(160% 0% at 50% 0%); transition: clip-path 1.3s cubic-bezier(.76, 0, .24, 1); }
.m-rocca:not(.calme) .sr-f.vu .sr-f-ph { clip-path: ellipse(160% 150% at 50% 0%); }
.m-rocca:not(.calme) :is(.sr-d-n, .sr-d-i) { opacity: 0; translate: 0 30px; transition: opacity 1s cubic-bezier(.16, 1, .3, 1), translate 1s cubic-bezier(.16, 1, .3, 1); }
.m-rocca:not(.calme) :is(.sr-d-n, .sr-d-i).vu { opacity: 1; translate: 0 0; }
.m-rocca .sr-suiv { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: clamp(80px, 9cqw, 140px) 0 20px; text-align: center; transition: opacity .3s; }
.sr-suiv:hover { opacity: .6; }
.sr-suiv small { font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; }
.sr-suiv span { font: 400 clamp(32px, 4.6cqw, 66px)/1 var(--serif); }

/* l'arrivée : la fine ligne */
.sr-debut { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: var(--fond); cursor: pointer; }
.sr-debut i { width: clamp(90px, 12cqw, 170px); height: 1px; background: var(--texte); opacity: .7; scale: 0 1; }
.m-rocca.en-debut .sr-tete { visibility: hidden; }

/* sur téléphone (et dans l'aperçu téléphone) */
@container (max-width: 620px) {
  .sr-titre { font-size: 30px; }
  .sr-traits { width: 56%; }
  .sr-fil { display: none; }
  .sr-index ul { padding: 0; }
  .m-rocca .sr-ligne { grid-template-columns: minmax(0, 1fr) auto; }
  .sr-l-t { display: none; }
  .sr-d-n { margin-left: 0; }
  .sr-d-i { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 40px; }
  .sr-d-i p { grid-column: 1 / -1; }
  .sr-d-ph { grid-template-columns: 1fr; }
  .sr-f.f0, .sr-f.f1, .sr-f.f2, .sr-f.f3, .sr-f.f4 { grid-column: 1; margin-top: 0; }
  .sr-pied { flex-direction: column; gap: 6px; }
}

/* la visionneuse : sur le brun, la photo qui s'ouvre par une courbe */
.lb.peau-rocca { --srl-f: #271B16; --srl-t: #F7F4F2; background: var(--srl-f); color: var(--srl-t); font-family: var(--srl-s); padding-top: 64px; }
.sr-lb-h { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; align-items: baseline; gap: 10px; padding: 24px 30px; color: var(--srl-t); }
.sr-lb-logo { font: 400 20px/1 var(--srl-d); }
.sr-lb-fil { font: 400 12px/1 var(--srl-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-lb-x { margin-left: auto; padding: 0; background: none; border: 0; color: inherit; font: 400 14px/1 var(--srl-s); cursor: pointer; transition: opacity .25s; }
.sr-lb-x:hover { opacity: .6; }
.lb.peau-rocca :is(.lb-top, .lb-bot) { color: var(--srl-t); font: 400 12px/1.2 var(--srl-s); }
.lb.peau-rocca :is(.lb-top, .lb-bot) button { background: transparent; color: var(--srl-t); border: 1px solid color-mix(in srgb, var(--srl-t) 25%, transparent); border-radius: 99px; font: inherit; transition: background .25s, color .25s; }
.lb.peau-rocca :is(.lb-top, .lb-bot) button:hover, .lb.peau-rocca :is(.lb-top, .lb-bot) :is(button[aria-pressed=true], button.on) { background: var(--srl-t); color: var(--srl-f); }
.lb.peau-rocca .lb-zoom { background: transparent; }
.lb.peau-rocca :is(.lb-name, .lb-pct, .lb-info .lb-name) { font: inherit; color: var(--srl-t); }
.lb.peau-rocca .lb-exif { color: color-mix(in srgb, var(--srl-t) 55%, transparent); }
.lb.peau-rocca .lb-k { color: var(--srl-t); border-color: color-mix(in srgb, var(--srl-t) 30%, transparent); opacity: .6; }
.lb.peau-rocca .lb-x[data-x] { display: none; }
.lb.peau-rocca .lb-x.lb-plein { border-radius: 99px !important; }
.lb.peau-rocca .lb-fant { display: none; }
.lb.peau-rocca .lb-nav { background: transparent; border: 0; border-radius: 0; color: var(--srl-t); -webkit-backdrop-filter: none; backdrop-filter: none; opacity: .55; }
.lb.peau-rocca .lb-nav:hover { background: transparent; opacity: 1; }
.lb.peau-rocca .lb-bot { border-top: 0; }
.lb.peau-rocca .lb-bot .lb-tiroir { background: transparent; color: var(--srl-t); }
.sr-lb-bas { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 30px 22px; }
.sr-lb-g, .sr-lb-d { font: 400 14px/1 var(--srl-d); letter-spacing: .04em; }
.sr-lb-d { justify-self: end; }
.sr-lb-n { max-width: 60vw; padding: 0; background: none; border: 0; color: inherit; font: 400 clamp(18px, 2.4vw, 34px)/1.05 var(--srl-d); text-transform: uppercase; letter-spacing: .015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.lb.lb-blanc.peau-rocca { --srl-f: #F7F4F2; --srl-t: #271B16; }
.lb.lb-noir.peau-rocca { --srl-f: #0D0907; --srl-t: #F7F4F2; }
.lb-dans.peau-rocca .lb-exif { display: none; }
@media (max-width: 1200px) { .lb.peau-rocca .lb-exif { display: none; } }
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) { .sr-lb-h { padding: 18px 16px; } .sr-lb-bas { padding: 10px 16px 14px; } .lb.peau-rocca { padding-top: 54px; } }
/* 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 .sr-lb-h { padding: 18px 16px; }
.device.mobile .sr-lb-bas { padding: 10px 16px 14px; }
.device.mobile .lb.peau-rocca { padding-top: 54px; }

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