/* ═══════════════════════════════════════════════════════════
   QUE DU FULL — V3 (prototype C) « En direct »
   La story Snap au cœur de l'accueil. Chaque ouverture (pièce,
   story, vidéo) se fait dans un cadre centré, page floutée derrière.
   Base noire et monospace, vêtements détourés, contour rouge et
   papier déchiré en touches.
   ═══════════════════════════════════════════════════════════ */
:root {
  --noir: #000;
  --encre: #f3f2ee;
  --gris: rgba(243, 242, 238, .58);
  --gris-2: rgba(243, 242, 238, .36);
  --ligne: rgba(243, 242, 238, .15);
  --papier: #eeece5;
  --papier-encre: #0d0d0d;
  --papier-gris: rgba(13, 13, 13, .58);
  --papier-ligne: rgba(13, 13, 13, .16);
  --tuile: #e7e6e1;
  --snap: #fffc00;
  --rouge: #e3121b;
  --bleu: #10208a;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --affiche: "Anton", "Arial Narrow", Impact, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --g-gauche: max(16px, env(safe-area-inset-left));
  --g-droite: max(16px, env(safe-area-inset-right));
  --haut-barre: calc(52px + env(safe-area-inset-top));
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noir); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--haut-barre) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--noir); color: var(--encre); font: 400 13px/1.55 var(--mono); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
main, footer { overflow-x: clip; }
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visuel-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--snap); outline-offset: 3px; }
.sur-papier :focus-visible, .carte--piece :focus-visible { outline-color: var(--bleu); }

.evitement { position: fixed; top: 8px; left: 8px; z-index: 300; padding: 12px 16px; background: var(--snap); color: #000; transform: translateY(-160%); transition: transform .2s; }
.evitement:focus { transform: none; }

.etiquette { font-size: 11px; letter-spacing: .08em; text-transform: lowercase; color: var(--gris); }
.petit { font-size: 11.5px; color: var(--gris); }
.lien-simple { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lien-simple:hover { color: var(--snap); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid currentColor; font: 500 13px/1.2 var(--mono); text-transform: lowercase; letter-spacing: .01em; transition: background .25s, color .25s, transform .25s var(--ease); }
.bouton:hover { transform: translateY(-1px); }
.bouton:active { transform: translateY(1px); }
.bouton span { white-space: nowrap; }
.bouton--snap { background: var(--snap); color: #000; border-color: #000; font-weight: 600; }
.bouton--plein { width: 100%; min-height: 54px; font-size: 14px; }
.bouton--blanc { background: var(--encre); color: #000; border-color: var(--encre); }
.fantome { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ═════════ BARRE FIXE ═════════ */
.barre { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--haut-barre); padding: env(safe-area-inset-top) var(--g-droite) 0 calc(var(--g-gauche) - 4px); display: flex; align-items: center; gap: 8px; background: #000; border-bottom: 1px solid var(--ligne); transform: translateY(-101%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.barre.est-visible { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.barre__menu { display: flex; margin-left: auto; }
.barre__menu a { display: inline-flex; align-items: center; height: 44px; padding: 0 8px; font-size: 12px; color: var(--gris); }
.barre__menu a:hover, .barre__menu a.est-actif { color: var(--encre); }
.barre__menu a.est-actif { text-decoration: underline; text-underline-offset: 4px; }
.barre__heure { font-size: 11px; color: var(--gris-2); padding-left: 6px; display: none; font-variant-numeric: tabular-nums; }
@media (min-width: 520px) { .barre__heure { display: inline; } }

/* Bulles (logo + anneau de story) */
.anneau { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.anneau circle, .anneau path { fill: none; stroke-linecap: round; }
.bulle-mini { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.bulle-mini img { width: 34px; height: 34px; border-radius: 50%; }
.bulle-mini .anneau { inset: 1px; width: 42px; height: 42px; }

/* ═════════ 1. EN DIRECT ═════════ */
.live { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 max(18px, env(safe-area-inset-bottom)); isolation: isolate; overflow: hidden; }
.live__fond { position: absolute; z-index: -1; inset: -12%; background: center / cover no-repeat; filter: blur(46px) saturate(1.35); opacity: 0; transform: scale(1.05); transition: opacity 1.2s ease; -webkit-mask-image: radial-gradient(50% 42% at 50% 50%, #000 0%, rgba(0,0,0,.5) 50%, transparent 100%); mask-image: radial-gradient(50% 42% at 50% 50%, #000 0%, rgba(0,0,0,.5) 50%, transparent 100%); }
.live__fond.est-pret { opacity: .36; }
.live::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.tete { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; padding: 10px var(--g-droite) 0 var(--g-gauche); }
.menu { display: flex; flex-direction: column; align-items: flex-start; }
.menu a { display: flex; align-items: center; min-height: 44px; min-width: 96px; font-size: 12.5px; line-height: 1; color: var(--encre); }
.menu a::before { content: ""; width: 0; height: 1px; background: currentColor; margin-right: 0; transition: width .3s var(--ease), margin .3s var(--ease); }
.menu a:hover::before, .menu a:focus-visible::before { width: 10px; margin-right: 6px; }
.tete__logo { display: block; width: 42px; margin-top: 4px; opacity: .95; }
.tete__logo img { width: 100%; height: auto; }
.horloge { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 12.5px; line-height: 1.45; font-variant-numeric: tabular-nums; padding-top: 6px; }
.horloge__ville { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--gris); }
.horloge__heure { font-size: 17px; font-weight: 500; letter-spacing: .02em; }
.horloge__date { color: var(--gris); font-size: 11.5px; }

.live__coeur { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px var(--g-droite) 8px var(--g-gauche); }
.bulle { --b: clamp(160px, 52vw, 236px); position: relative; width: var(--b); height: var(--b); border-radius: 50%; display: grid; place-items: center; transition: transform .45s var(--ease); }
.bulle img { width: 86%; height: 86%; border-radius: 50%; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.bulle:hover { transform: scale(1.03); }
.bulle:active { transform: scale(.97); }
.bulle .anneau { animation: tourne 40s linear infinite; }
.bulle__badge { position: absolute; left: 50%; bottom: 2%; transform: translate(-50%, 35%); padding: 4px 9px 4px 20px; background: var(--rouge); color: #fff; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; border: 2px solid #000; white-space: nowrap; }
.bulle__badge::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; animation: clignote 1.6s ease-in-out infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes clignote { 50% { opacity: .2; } }

.live__etat { margin-top: 26px; font-size: 13px; text-align: center; text-wrap: balance; max-width: 46ch; }
.live__etat .point { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: var(--gris-2); }
.live__etat.est-direct .point { background: var(--rouge); box-shadow: 0 0 0 0 rgba(227, 18, 27, .6); animation: pouls 2s infinite; }
.live__etat b { font-weight: 500; }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(227, 18, 27, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 18, 27, 0); } }
.live__compte { margin-top: 4px; font-size: 11.5px; color: var(--gris); }

.alaune { padding: 10px 0 4px; }
.alaune .etiquette { padding: 0 var(--g-droite) 10px var(--g-gauche); text-align: center; }
.alaune__rang { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px var(--g-droite) 6px var(--g-gauche); scrollbar-width: none; }
.alaune__rang::-webkit-scrollbar { display: none; }
.alaune__rang > :first-child { margin-left: auto; }
.alaune__rang > :last-child { margin-right: auto; }
.hl { flex: none; width: 80px; display: flex; flex-direction: column; align-items: center; gap: 7px; scroll-snap-align: start; padding: 4px 0; }
.hl__rond { position: relative; width: 66px; height: 66px; border-radius: 50%; padding: 3px; border: 2px solid var(--encre); transition: transform .3s var(--ease), border-color .3s; }
.hl__rond img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #1a1a1a; }
.hl__rond--detoure img { object-fit: contain; padding: 14%; background: var(--tuile); }
.hl.est-vu .hl__rond { border-color: var(--gris-2); }
.hl:hover .hl__rond { transform: scale(1.06); }
.hl__titre { font-size: 10.5px; line-height: 1.25; text-align: center; color: var(--encre); max-width: 80px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-transform: lowercase; }

.repli { padding: 18px var(--g-droite) 0 var(--g-gauche); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.repli__cadre { width: min(100%, 416px); height: 692px; max-height: 82svh; border: 1px solid var(--ligne); border-radius: 14px; overflow: hidden; background: #0d0d0d; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.repli__cadre iframe { width: 100%; height: 100%; border: 0; background: #fff; }

.defile { margin-top: 14px; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); overflow: hidden; white-space: nowrap; font-size: 11px; color: var(--gris); }
.defile__piste { display: inline-flex; padding: 9px 0; animation: defile 46s linear infinite; }
.defile__piste span { padding: 0 14px; }
.defile__piste span::after { content: "✦"; margin-left: 28px; color: var(--gris-2); }
@keyframes defile { to { transform: translateX(-50%); } }
.live__suite { align-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; margin-top: 6px; font-size: 11px; color: var(--gris); }
.live__suite svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; animation: flotte 2.4s var(--ease) infinite; }
@keyframes flotte { 50% { transform: translateY(4px); } }

/* ═════════ PAPIER DÉCHIRÉ (fond posé par le script) ═════════ */
.papier { position: absolute; z-index: 0; inset: 0; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); pointer-events: none; }
.papier__feuille { position: absolute; inset: 0; background-color: var(--papier); background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
  linear-gradient(176deg, rgba(255,255,255,.5), rgba(0,0,0,.035) 60%, rgba(255,255,255,.25)); }
.papier__frange { position: absolute; inset: 0; background: #fbfaf6; }
.sur-papier { position: relative; color: var(--papier-encre); }
.sur-papier > *:not(.papier) { position: relative; z-index: 1; }

/* ═════════ 2. NEW DROP ═════════ */
.drop { position: relative; padding-top: 24px; }
.drop__photos { height: clamp(210px, 54vw, 400px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; overflow: hidden; }
.drop__photos img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(1) contrast(1.3) brightness(.7); }
.drop__photos img:nth-child(n+3) { display: none; }
@media (min-width: 900px) { .drop__photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } .drop__photos img:nth-child(n+3) { display: block; } }
.drop__papier { margin-top: -54px; padding: 50px var(--g-droite) 64px var(--g-gauche); }
.tag-noir { display: inline-block; background: #000; color: var(--encre); font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; transform: rotate(-2deg); }
.drop__titre { margin-top: 18px; font: 400 min(calc((100vw - var(--g-gauche) - var(--g-droite)) / 4.68), 250px)/.9 var(--affiche); text-transform: uppercase; white-space: nowrap; }
.drop__compte { margin-top: 10px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.drop__sous { margin-top: 6px; max-width: 34ch; font-size: 12.5px; color: var(--papier-gris); }
.drop__rang { display: flex; gap: 6px; margin: 8px calc(-1 * var(--g-droite)) 0 calc(-1 * var(--g-gauche)); padding: 18px var(--g-droite) 4px var(--g-gauche); scroll-padding-left: var(--g-gauche); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.drop__rang::-webkit-scrollbar { display: none; }
.drop-piece { flex: none; width: min(64vw, 260px); scroll-snap-align: start; display: flex; flex-direction: column; }
.drop-piece__img { height: clamp(250px, 72vw, 340px); display: flex; align-items: center; justify-content: center; padding: 16px 12px; }
.drop-piece__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; min-height: 0; object-fit: contain; filter: url(#contour); transform: rotate(var(--r, 0deg)); transition: transform .5s var(--ease); }
.drop-piece:hover .drop-piece__img img { transform: rotate(0deg) scale(1.03); }
.drop-piece__legende { margin-top: 14px; font-size: 11.5px; line-height: 1.4; padding-right: 8px; }
.drop-piece__legende b { display: block; font-weight: 500; }
.drop-piece__legende span { color: var(--papier-gris); }

/* ═════════ TITRES DE SECTION ═════════ */
.pieces, .videos, .bientot, .contact { padding: 76px var(--g-droite) 0 var(--g-gauche); max-width: 1480px; margin: 0 auto; }
.section-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ligne); }
.titre { font: 400 clamp(46px, 14vw, 128px)/.9 var(--affiche); text-transform: uppercase; letter-spacing: .002em; }
.compteur { font-size: 11.5px; color: var(--gris); text-align: right; padding-bottom: 4px; }

/* ═════════ 3. LES PIÈCES ═════════ */
.filtres { padding: 10px 0 2px; margin: 0 calc(-1 * var(--g-droite)) 0 calc(-1 * var(--g-gauche)); }
.filtres__rang { display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; padding: 0 var(--g-droite) 0 var(--g-gauche); scrollbar-width: none; }
.filtres__rang::-webkit-scrollbar { display: none; }
.puce { position: relative; flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 11px; font-size: 12px; color: var(--gris); white-space: nowrap; text-transform: lowercase; }
.puce::before { content: ""; position: absolute; inset: 5px 0; border: 1px solid var(--ligne); transition: background .2s, border-color .2s; z-index: -1; }
.puce { isolation: isolate; }
.puce sup { font-size: 9.5px; margin-left: 4px; vertical-align: super; line-height: 0; color: var(--gris-2); }
.puce:hover { color: var(--encre); }
.puce:hover::before { border-color: var(--gris); }
.puce[aria-pressed="true"] { color: #000; }
.puce[aria-pressed="true"]::before { background: var(--encre); border-color: var(--encre); }
.puce[aria-pressed="true"] sup { color: rgba(0, 0, 0, .5); }
.puce:disabled { opacity: .32; cursor: default; }
.filtres__rang + .filtres__rang { margin-top: 0; }
.filtres__rang--cats .puce { font-size: 11.5px; }

.filtre-story { margin-top: 10px; }
.filtre-story button { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 14px 4px 4px; border: 1px solid var(--ligne); border-radius: 999px; font-size: 12px; }
.filtre-story button:hover { border-color: var(--gris); }
.filtre-story .hl__rond { width: 44px; height: 44px; padding: 2px; border-color: var(--snap); }
.filtre-story b { font-weight: 500; }

.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; margin-top: 18px; }
@media (min-width: 700px) { .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 14px; } }
@media (min-width: 1060px) { .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 16px; } }
@media (min-width: 1500px) { .grille { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tuile { min-width: 0; animation: monte .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } }
.tuile__bouton { display: block; width: 100%; }
.visuel-boite { position: relative; display: block; }
.visuel { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tuile); display: grid; place-items: center; }
.visuel--detoure img { width: 84%; height: 86%; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .16)); transition: transform .5s var(--ease); }
.visuel--photo { background: #d9d7d0; }
.visuel--photo .visuel__flou { position: absolute; inset: -14%; width: 128%; height: 128%; max-width: none; object-fit: cover; opacity: .7; filter: blur(18px) saturate(.8); }
.visuel--photo .visuel__photo { position: relative; width: 68%; height: auto; max-height: 82%; object-fit: contain; border: 3px solid #fff; box-shadow: 0 14px 28px rgba(0, 0, 0, .35); transform: rotate(var(--r, -1.5deg)); transition: transform .5s var(--ease); }
@media (hover: hover) {
  .tuile__bouton:hover .visuel--detoure img { filter: url(#contour); transform: scale(1.02); }
  .tuile__bouton:hover .visuel--photo .visuel__photo { transform: rotate(0) scale(1.03); }
  .tuile__bouton:hover .legende__nom { text-decoration: underline; text-underline-offset: 3px; }
}
.tuile__bouton:active .visuel { opacity: .85; }
.tags { position: absolute; z-index: 2; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tag { font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 6px; background: #000; color: #fff; }
.tag--rouge { background: var(--rouge); }
.tag--snap { background: var(--snap); color: #000; }
.tag--video { position: absolute; z-index: 2; right: 8px; bottom: 8px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, .78); }
.tag--video svg { width: 10px; height: 10px; fill: #fff; margin-left: 2px; }
.legende { margin-top: 9px; font-size: 11.5px; line-height: 1.42; }
.legende__marque { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.legende__nom { display: block; color: var(--encre); text-transform: lowercase; }
.legende__couleur { color: var(--gris); }
.legende__bas { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; }
.legende__budget { color: var(--encre); font-weight: 500; letter-spacing: .04em; }
.legende__tailles { color: var(--gris); text-align: right; }
.vide { margin-top: 26px; color: var(--gris); }
.note { margin-top: 34px; padding-top: 12px; border-top: 1px solid var(--ligne); font-size: 11.5px; color: var(--gris); max-width: 62ch; }

/* ═════════ 4. VIDÉOS ═════════ */
.videos__rang { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 18px calc(-1 * var(--g-droite)) 0 calc(-1 * var(--g-gauche)); padding: 0 var(--g-droite) 8px var(--g-gauche); scrollbar-width: none; scroll-padding-left: var(--g-gauche); }
.videos__rang::-webkit-scrollbar { display: none; }
.clip { flex: none; width: min(42vw, 220px); scroll-snap-align: start; }
.clip__bouton { display: block; width: 100%; }
.clip__affiche { display: block; position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #121212; }
.clip__affiche img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.clip__affiche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); }
.clip__lecture { position: absolute; z-index: 1; left: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(243, 242, 238, .92); display: grid; place-items: center; }
.clip__lecture svg { width: 14px; height: 14px; fill: #000; margin-left: 3px; }
.clip__bouton:hover .clip__affiche img { transform: scale(1.04); }
.clip .tags { top: 8px; left: 8px; }
.clip__legende { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.4; }
.clip__legende b { display: block; font-weight: 500; text-transform: lowercase; }
.clip__legende span { color: var(--gris); }

/* ═════════ 5. BIENTÔT ═════════ */
.arrivages { margin-top: 4px; }
.arrivage { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ligne); }
.arrivage__img { aspect-ratio: 4 / 5; overflow: hidden; background: #151515; }
.arrivage__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.arrivage__quand { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--snap); }
.arrivage__marque { margin-top: 4px; font: 400 30px/.95 var(--affiche); text-transform: uppercase; }
.arrivage__nom { margin-top: 4px; font-size: 13px; text-transform: lowercase; }
.arrivage__note { margin-top: 6px; font-size: 12px; color: var(--gris); }
.arrivage .lien-simple { font-size: 12px; }
@media (min-width: 900px) {
  .arrivages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; }
  .arrivage { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--ligne); margin-top: -1px; }
  .arrivage__img { aspect-ratio: 4 / 5; }
}

/* ═════════ 6. CONTACT ═════════ */
.contact { padding-bottom: 20px; }
.contact__papier { padding: 52px var(--g-droite) 52px var(--g-gauche); margin: 0 calc(-1 * var(--g-droite)) 0 calc(-1 * var(--g-gauche)); display: grid; gap: 26px; }
.contact__code { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.snapcode { display: block; width: min(52vw, 210px); padding: 10px; background: #fff; border: 1px solid #000; box-shadow: 6px 6px 0 #000; transform: rotate(-2deg); transition: transform .4s var(--ease); }
.snapcode:hover { transform: rotate(0) scale(1.02); }
.snapcode img { width: 100%; height: auto; }
.contact__code .petit, .contact__texte .petit { color: var(--papier-gris); }
.contact__titre { font: 400 clamp(52px, 15vw, 120px)/.92 var(--affiche); text-transform: uppercase; }
.faits { margin-top: 18px; border-top: 1px solid var(--papier-ligne); }
.faits li { padding: 10px 0; border-bottom: 1px solid var(--papier-ligne); font-size: 12.5px; }
.faits b { display: inline-block; min-width: 0; margin-right: 6px; font-weight: 600; text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em; }
.contact__liens { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.contact__liens .bouton { justify-content: center; }
.contact__liens .bouton:not(.bouton--snap) { background: transparent; }
.contact__liens .bouton:not(.bouton--snap):hover { background: #000; color: var(--papier); }
.contact__texte > .petit { margin-top: 12px; }
@media (min-width: 760px) {
  .contact__papier { grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; padding-left: max(48px, var(--g-gauche)); padding-right: max(48px, var(--g-droite)); margin: 0; }
  .contact__liens { flex-direction: row; flex-wrap: wrap; }
}

.partenaires { margin-top: 48px; }
.partenaires .etiquette { padding-bottom: 10px; border-bottom: 1px solid var(--ligne); }
.partenaires__rang { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 700px) { .partenaires__rang { grid-template-columns: 1fr 1fr; } }
.partenaire { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--ligne); text-align: left; width: 100%; min-height: 96px; transition: border-color .2s; }
.partenaire:hover { border-color: var(--gris); }
.partenaire__img { width: 72px; aspect-ratio: 3 / 4; object-fit: cover; background: #151515; }
.partenaire__nom { display: block; font: 400 24px/1 var(--affiche); text-transform: uppercase; }
.partenaire__role { display: block; font-size: 11.5px; color: var(--gris); margin-top: 4px; }
.partenaire__fleche { font-size: 18px; padding: 0 6px; }
.partenaire--vide { border-style: dashed; }
.partenaire--vide .partenaire__img { display: grid; place-items: center; font-size: 22px; color: var(--gris-2); border: 1px dashed var(--ligne); background: none; }

/* ═════════ PIED ═════════ */
.pied { margin-top: 90px; padding: 40px var(--g-droite) max(34px, env(safe-area-inset-bottom)) var(--g-gauche); border-top: 1px solid var(--ligne); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pied__logo { width: 46px; height: auto; margin-bottom: 8px; }
.horloge--pied { flex-direction: row; gap: 10px; align-items: baseline; padding: 0; font-size: 12px; }
.horloge--pied time { font-weight: 500; }

/* ═════════ LE CADRE (ouvertures façon cadre centré, page floutée) ═════════ */
html.verrou, html.verrou body { overflow: hidden; }
.cadre { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
.cadre__flou { position: absolute; inset: 0; background: rgba(0, 0, 0, .52); -webkit-backdrop-filter: blur(18px) saturate(.85); backdrop-filter: blur(18px) saturate(.85); opacity: 0; transition: opacity .35s ease; }
.cadre__carte { position: relative; max-height: 100%; max-width: 100%; opacity: 0; transform: translateY(14px) scale(.95); transition: opacity .3s ease, transform .45s var(--ease); outline: none; }
.cadre.est-ouvert .cadre__flou { opacity: 1; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cadre__flou { background: rgba(0, 0, 0, .86); } }
.cadre.est-ouvert .cadre__carte { opacity: 1; transform: none; }
.cadre.est-glisse .cadre__carte { transition: none; }
.cadre[data-mode="piece"] { padding: max(22px, calc(env(safe-area-inset-top) + 12px)) max(12px, env(safe-area-inset-right)) max(22px, calc(env(safe-area-inset-bottom) + 12px)) max(12px, env(safe-area-inset-left)); }
.x { position: relative; z-index: 3; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.x svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; fill: none; }

/* — Fiche d'une pièce (carte papier) — */
.carte--piece { width: min(100%, 1040px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--papier); color: var(--papier-encre); border: 1px solid #000; box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.fiche__haut { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 50px; padding: 0 4px 0 14px; background: var(--papier); border-bottom: 1px solid var(--papier-ligne); font-size: 11.5px; }
.fiche__num { color: var(--papier-gris); font-variant-numeric: tabular-nums; }
.fiche__num b { color: var(--papier-encre); font-weight: 500; }
.fiche__corps { display: grid; }
.fiche__media { padding: 10px 10px 0; min-width: 0; }
.scene { position: relative; aspect-ratio: 4 / 5; max-height: 42vh; max-height: 42svh; width: 100%; margin: 0 auto; overflow: hidden; background: var(--tuile); display: grid; place-items: center; touch-action: pan-y; }
.scene > img.detoure { width: 86%; height: 88%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .18)); animation: apparait .45s var(--ease); }
.scene--photo { background: #151515; }
.scene__flou { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(22px) brightness(.6); }
.scene__photo { position: relative; max-width: 86%; max-height: 90%; width: auto; height: auto; object-fit: contain; border: 4px solid var(--encre); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); animation: apparait .45s var(--ease); }
.scene video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.scene__erreur { position: absolute; inset: auto 10px 10px; padding: 8px 10px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 11px; }
@keyframes apparait { from { opacity: 0; transform: scale(.97); } }
.vignettes { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.vignettes::-webkit-scrollbar { display: none; }
.vignette { position: relative; flex: none; width: 46px; height: 56px; background: var(--tuile); border: 1px solid transparent; overflow: hidden; display: grid; place-items: center; }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette--detoure img { object-fit: contain; padding: 4px; }
.vignette[aria-current="true"] { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.vignette__type { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 8.5px; line-height: 1; padding: 3px 0; text-align: center; letter-spacing: .04em; }
.vignette--video { background: #111; color: #fff; }
.vignette--video svg { position: absolute; width: 16px; height: 16px; fill: #fff; left: 50%; top: 42%; transform: translate(-50%, -50%); filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }

.fiche__infos { padding: 12px 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.fiche__marque { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--papier-gris); }
.fiche__nom { margin-top: 6px; font: 400 clamp(30px, 8.6vw, 52px)/.95 var(--affiche); text-transform: uppercase; overflow-wrap: break-word; }
.fiche__couleur { margin-top: 8px; font-size: 12.5px; }
.fiche__ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 0; border-top: 1px solid var(--papier-ligne); border-bottom: 1px solid var(--papier-ligne); font-size: 12px; }
.fiche__budget { font-size: 20px; font-weight: 600; letter-spacing: .06em; }
.fiche__budget--unique { white-space: nowrap; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: var(--snap); padding: 4px 8px; border: 1px solid #000; }
.fiche__ligne span { color: var(--papier-gris); }
.fiche__etiquette { margin-top: 12px; font-size: 11px; letter-spacing: .08em; color: var(--papier-gris); }
.tailles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.taille { min-width: 58px; height: 52px; padding: 0 8px; border: 1px solid #000; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.taille b { font-size: 14px; font-weight: 600; }
.taille small { font-size: 9.5px; color: var(--papier-gris); margin-top: 2px; }
.taille--1 small { color: var(--rouge); font-weight: 500; }
.taille--non { border-color: var(--papier-ligne); color: var(--papier-gris); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,.035) 6px 7px); }
.taille--non b { text-decoration: line-through; text-decoration-thickness: 1.5px; font-weight: 400; }
.fiche__action { position: sticky; z-index: 3; bottom: 0; margin: 14px -14px 0; padding: 10px 14px 8px; background: var(--papier); border-top: 1px solid var(--papier-ligne); }
.fiche__aide { margin-top: 6px; font-size: 11px; color: var(--papier-gris); }
.fiche__nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 6px; border-top: 1px solid var(--papier-ligne); }
.fiche__nav button { min-height: 44px; font-size: 12px; padding: 0 2px; }
.fiche__nav button:hover { text-decoration: underline; text-underline-offset: 3px; }
.fiche__glisse { display: none; }
.fiche__rassure { margin-top: 14px; display: grid; gap: 4px; font-size: 11px; color: var(--papier-gris); }
.fiche__rassure li::before { content: "✦ "; color: var(--papier-encre); }
.fiche__story { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 48px; padding: 3px 14px 3px 3px; border: 1px solid var(--papier-ligne); border-radius: 999px; font-size: 11.5px; align-self: flex-start; }
.fiche__story:hover { border-color: #000; }
.fiche__story .hl__rond { width: 40px; height: 40px; padding: 2px; border: 2px solid var(--snap); box-shadow: 0 0 0 1px #000; }
@media (hover: none) { .fiche__glisse { display: block; text-align: center; margin-top: 2px; font-size: 10.5px; color: var(--papier-gris); } }
.fiche__corps.va-gauche { animation: vaGauche .4s var(--ease); }
.fiche__corps.va-droite { animation: vaDroite .4s var(--ease); }
@keyframes vaGauche { from { opacity: 0; transform: translateX(28px); } }
@keyframes vaDroite { from { opacity: 0; transform: translateX(-28px); } }

@media (min-width: 860px) {
  .carte--piece { height: min(88vh, 780px); display: flex; flex-direction: column; overflow: hidden; }
  .fiche__corps { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .fiche__media { padding: 14px; display: flex; flex-direction: column; min-height: 0; }
  .scene { flex: 1; aspect-ratio: auto; max-height: none; height: auto; min-height: 0; }
  .fiche__infos { padding: 26px 30px 22px 18px; overflow-y: auto; }
  .fiche__action { margin: 18px -30px 0 -18px; padding: 12px 30px 10px 18px; }
  .fiche__nom { font-size: 56px; }
}

/* — Story / vidéo (carte portrait 9:16) — */
.carte--story, .carte--video { --largeur: min(100vw - 16px, (100vh - 16px) * 9 / 16, 470px); width: var(--largeur); aspect-ratio: 9 / 16; max-height: 100%; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .14); color: #fff; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@supports (height: 100dvh) {
  .carte--story, .carte--video { --largeur: min(100vw - 16px, (100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 9 / 16, 470px); }
}
.histoire { position: absolute; inset: 0; }
.histoire__media { position: absolute; inset: 0; background: #0b0b0b; }
.histoire__media img, .histoire__media video { width: 100%; height: 100%; object-fit: cover; }
.histoire__media .est-contenu { object-fit: contain; }
.histoire__ombre { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 22%, transparent 70%, rgba(0,0,0,.6) 100%); }
.histoire__barres { position: absolute; z-index: 3; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; }
.histoire__barres span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.histoire__barres i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.histoire__tete { position: absolute; z-index: 4; top: 16px; left: 8px; right: 4px; display: flex; align-items: center; gap: 8px; }
.histoire__avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; border: 1.5px solid #fff; }
.histoire__qui { flex: 1; min-width: 0; font-size: 12px; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.histoire__qui b { font-weight: 600; }
.histoire__qui span { display: block; opacity: .82; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rond { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.rond svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.rond:hover { background: rgba(255, 255, 255, .1); }
.histoire__toucher { position: absolute; z-index: 2; inset: 64px 0 92px; cursor: pointer; }
.histoire__pied { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 12px max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.histoire__pied .bouton { min-height: 48px; }
.histoire__pied .bouton--snap { border-color: var(--snap); }
.histoire__pied .bouton--verre { background: rgba(0, 0, 0, .4); color: #fff; border-color: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.histoire__fleche { position: absolute; z-index: 3; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: none; place-items: center; background: rgba(0, 0, 0, .35); color: #fff; font-size: 18px; line-height: 1; transition: background .2s; }
.histoire__fleche:hover { background: rgba(0, 0, 0, .6); }
.histoire__fleche--g { left: 8px; }
.histoire__fleche--d { right: 8px; }
@media (hover: hover) and (pointer: fine) { .histoire__fleche { display: grid; } }
.histoire__info { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 12px; background: rgba(0, 0, 0, .65); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity .2s; text-align: center; }
.histoire__info.est-visible { opacity: 1; }
.histoire__charge { position: absolute; z-index: 1; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: tourne .8s linear infinite; opacity: 0; transition: opacity .2s .25s; }
.histoire.est-en-charge .histoire__charge { opacity: 1; }
.histoire.est-en-pause .histoire__tete, .histoire.est-en-pause .histoire__pied { opacity: .35; transition: opacity .25s; }
.histoire.est-tenu .histoire__tete, .histoire.est-tenu .histoire__pied, .histoire.est-tenu .histoire__barres, .histoire.est-tenu .histoire__ombre { opacity: 0; transition: opacity .2s; }
.histoire__erreur { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; font-size: 12px; color: var(--gris); }

.carte--video .histoire__toucher { inset: 64px 0 150px; }
.vc__pied { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 12px max(14px, env(safe-area-inset-bottom)); }
.vc__titre { font: 400 26px/.95 var(--affiche); text-transform: uppercase; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.vc__sous { margin-top: 4px; font-size: 11px; opacity: .85; }
.vc__actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.vc__actions .bouton { min-height: 44px; padding: 0 14px; font-size: 12px; }
.vc__actions .bouton--verre { background: rgba(0, 0, 0, .4); color: #fff; border-color: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vc__barre { height: 2.5px; margin-top: 12px; background: rgba(255, 255, 255, .28); border-radius: 2px; overflow: hidden; }
.vc__barre i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.son-coupe .ico-son-on, .son-actif .ico-son-off { display: none; }

/* ═════════ BUREAU ═════════ */
@media (min-width: 900px) {
  :root { --g-gauche: max(36px, env(safe-area-inset-left)); --g-droite: max(36px, env(safe-area-inset-right)); --haut-barre: 60px; }
  body { font-size: 13.5px; }
  .barre { height: 60px; }
  .barre__menu a { font-size: 12.5px; padding: 0 12px; }
  .tete { padding-top: 22px; }
  .menu a { min-height: 30px; font-size: 13px; }
  .tete__logo { width: 54px; }
  .horloge__heure { font-size: 20px; }
  .bulle { --b: clamp(200px, 20vw, 270px); }
  .live__etat { font-size: 13.5px; }
  .hl { width: 92px; }
  .hl__rond { width: 76px; height: 76px; }
  .hl__titre { max-width: 92px; font-size: 11px; }
  .drop__papier { padding-bottom: 80px; }
  .drop__papier > :not(.papier):not(.drop__rang) { max-width: 1480px; }
  .drop__rang { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; overflow: visible; margin: 8px 0 0; padding: 22px 0 4px; }
  .drop-piece { width: auto; min-width: 0; }
  .drop-piece__img { height: 330px; }
  .filtres { position: sticky; z-index: 20; top: var(--haut-barre); background: rgba(0, 0, 0, .96); margin: 0; padding: 8px 0; }
  .filtres__rang { padding: 0; flex-wrap: wrap; overflow: visible; }
  .clip { width: 230px; }
  .videos__rang { margin: 18px 0 0; padding: 0 0 8px; scroll-padding-left: 0; }
}

/* ═════════ MOUVEMENT RÉDUIT ═════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .bulle .anneau { animation: none; }
}
