/* Le vestiaire : la salle carrelée en 3D, l'idée en grand au début, puis le nom du t-shirt qui passe devant nous. */
[data-scene="vestiaire"] { --ease: cubic-bezier(0.16, 1, 0.3, 1); }
.vestiaire-scroll { position: relative; height: 1300vh; }
[data-scene="vestiaire"] .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #050505; }
[data-scene="vestiaire"] canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
[data-scene="vestiaire"] .held canvas { cursor: grabbing; }
[data-scene="vestiaire"] .tap canvas { cursor: pointer; }   /* the black tee at the start: a tap brings it to us */
[data-scene="vestiaire"] .head { position: absolute; left: var(--pad, clamp(20px, 4vw, 72px)); top: 50%; translate: 0 -50%; z-index: 2; pointer-events: none; max-width: 40rem; }
/* once the 3D view draws the title itself (inverted only where it crosses the tee: js/titre-inverse.js), the page's copy stays for screen readers only */
[data-scene="vestiaire"] .head.drawn { opacity: 0 !important; }
[data-scene="vestiaire"] .head p { margin: 0; font-size: clamp(12px, .95vw, 15px); letter-spacing: .3em; text-transform: uppercase; color: #b4b4b4; }
[data-scene="vestiaire"] .head h1 { margin: .2em 0 0; font-weight: 600; font-size: clamp(56px, 8.6vw, 168px); line-height: .88; text-transform: uppercase; }
[data-scene="vestiaire"] .head .lead { margin-top: 1.2em; font-size: clamp(17px, 1.5vw, 26px); letter-spacing: .01em; text-transform: none; color: #dcdcdc; line-height: 1.42; }
[data-scene="vestiaire"] .legende { position: absolute; right: var(--pad, clamp(20px, 4vw, 72px)); bottom: clamp(70px, 12vh, 130px); z-index: 2; pointer-events: none; text-align: right; }
/* its copy over the mirror inverts with it (js: cut to the mirror's outline) */
[data-scene="vestiaire"] .legende.inv { mix-blend-mode: difference; }
/* the words follow the spin (js sets --c0..--c2 from the turn): no timer, they rise at the tee's own pace */
[data-scene="vestiaire"] .legende p { margin: 0; text-transform: uppercase; opacity: var(--k, 0); translate: 0 calc((1 - var(--k, 0)) * 14px); }
[data-scene="vestiaire"] .legende .no { --k: var(--c0, 0); } [data-scene="vestiaire"] .legende .nom { --k: var(--c1, 0); } [data-scene="vestiaire"] .legende .dos { --k: var(--c2, 0); }
[data-scene="vestiaire"] .legende .no { font-size: clamp(12px, .95vw, 15px); letter-spacing: .3em; color: #b4b4b4; }
[data-scene="vestiaire"] .legende .nom { font-weight: 600; font-size: clamp(40px, 5vw, 96px); line-height: .9; margin-top: .1em; }
[data-scene="vestiaire"] .legende .dos { font-size: clamp(12px, .95vw, 15px); letter-spacing: .3em; color: #b4b4b4; margin-top: .9em; }
[data-scene="vestiaire"] .geste { position: absolute; left: 50%; bottom: clamp(70px, 12vh, 130px); translate: -50% 0; z-index: 2; pointer-events: none; margin: 0;
  font-size: clamp(12px, .95vw, 15px); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7); opacity: 0; transition: opacity .6s; }
[data-scene="vestiaire"] .geste.on { opacity: 1; }
@media (max-width: 760px) { [data-scene="vestiaire"] .geste { display: none; }
  /* phone: the title, its words and the tee's name a size down, held inside the screen */
  [data-scene="vestiaire"] .head { top: 12%; translate: 0 0; right: var(--pad, 20px); }
  [data-scene="vestiaire"] .head h1 { font-size: clamp(40px, 12vw, 52px); }
  [data-scene="vestiaire"] .head .lead { font-size: 16px; margin-top: .9em; }
  [data-scene="vestiaire"] .head p, [data-scene="vestiaire"] .legende .no, [data-scene="vestiaire"] .legende .dos { font-size: 11px; letter-spacing: .14em; }
  [data-scene="vestiaire"] .legende .nom { font-size: clamp(32px, 10vw, 40px); } }
@media (prefers-reduced-motion: reduce) { [data-scene="vestiaire"] .legende p, [data-scene="vestiaire"] .geste { transition: none; } }
/* the worn photos: "Cliquez pour le voir porté" (only for the tees that have some), and the photos over the room, black and white frame */
[data-scene="vestiaire"] .geste .porte { display: none; }
[data-scene="vestiaire"] .geste.avec-porte .porte { display: inline; }
[data-scene="vestiaire"] .porte-box { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-rows: 1fr auto; gap: 18px; padding: clamp(20px, 5vh, 56px) var(--pad, clamp(20px, 4vw, 72px)); background: rgba(5,5,5,.94); }
[data-scene="vestiaire"] .porte-box[hidden] { display: none; }
[data-scene="vestiaire"] .porte-box .photos { display: flex; gap: clamp(10px, 2vw, 28px); justify-content: center; align-items: center; min-height: 0; }
[data-scene="vestiaire"] .porte-box .vide { width: min(48%, 42vh); aspect-ratio: 4 / 5; border: 1px solid rgba(255,255,255,.25); }
[data-scene="vestiaire"] .porte-box img { max-height: 100%; max-width: 48%; object-fit: contain; display: block; }
[data-scene="vestiaire"] .porte-box .legende-porte { margin: 0; text-align: center; font-size: clamp(12px, .95vw, 15px); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7); }
[data-scene="vestiaire"] .porte-box button { position: absolute; top: clamp(16px, 3vh, 32px); right: var(--pad, clamp(20px, 4vw, 72px)); background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; font: inherit; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; padding: 9px 16px; cursor: pointer; }
[data-scene="vestiaire"] .porte-box button:hover, [data-scene="vestiaire"] .porte-box button:focus-visible { background: #fff; color: #000; }
@media (max-width: 760px) { [data-scene="vestiaire"] .porte-box .photos { flex-direction: column; } [data-scene="vestiaire"] .porte-box img { max-width: 100%; max-height: 48%; } }
/* on the black tee at the start: what to do, click or scroll; it breathes, and leaves as soon as the tee starts to light up */
[data-scene="vestiaire"] .cta { position: absolute; left: 50%; top: 54%; translate: -50% -50%; z-index: 2; pointer-events: none; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; transition: opacity .5s; }
[data-scene="vestiaire"] .cta span { line-height: 1.9; font-size: clamp(12px, 1vw, 16px); letter-spacing: .32em; text-transform: uppercase; color: #fff; animation: cta-souffle 2.2s ease-in-out infinite; }
[data-scene="vestiaire"] .cta i { width: 1px; height: 34px; background: linear-gradient(#fff, rgba(255,255,255,0)); transform-origin: top; animation: cta-trait 2.2s cubic-bezier(.65,0,.35,1) infinite; }
/* on a narrow screen the tee is narrower: the words smaller and closer together */
@media (max-width: 760px) { [data-scene="vestiaire"] .cta span { font-size: 11px; letter-spacing: .14em; } }
@keyframes cta-souffle { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes cta-trait { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { [data-scene="vestiaire"] .cta span, [data-scene="vestiaire"] .cta i { animation: none; } }
