/* LEEDZ — espace contenus. Noir profond, images d'abord, verre, très peu de texte. */
:root {
  --bg: #000; --bg2: #0f0f11; --bg3: #19191c; --bg4: #232327;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.13);
  --fg: #f5f5f2; --mut: #8e8e93; --mut2: #58585d;
  --acc: #fff; --acc-ink: #000; --ok: #fff; --no: #fff; --warn: #fff;
  --glass: rgba(30,30,33,.58); --glass-line: rgba(255,255,255,.09);
  --r-xl: 28px; --r-l: 22px; --r: 16px; --r-s: 12px;
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --gut: max(18px, env(safe-area-inset-left));
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img { display: block; }
::selection { background: var(--acc); color: var(--acc-ink); }
.mut { color: var(--mut); }
.hide { display: none !important; }
.glass { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
.logo-mark { display: block; color: var(--fg); }
.logo-mark svg { display: block; width: 100%; height: 100%; fill: currentColor; stroke: none; }
.brandlogo { display: block; object-fit: contain; }
.brandlogo.mono { filter: brightness(0) invert(1); }
.brandlogo.tile { border-radius: 22%; background: #fff; }

/* ── Navigation flottante ── */
.nav { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: calc(64px + var(--safe-t)); padding: var(--safe-t) var(--gut) 0;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0)); transition: background .3s; }
.nav > * { pointer-events: auto; }
.nav .mark { justify-self: center; width: 70px; height: 19px; opacity: .95; }
.circ { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s var(--spring), background .2s; }
.circ:active { transform: scale(.9); }
.circ svg { width: 20px; height: 20px; }
.circ.hidden { visibility: hidden; }

/* ── Pages ── */
.page { max-width: 1440px; margin: 0 auto; padding: calc(84px + var(--safe-t)) var(--gut) calc(130px + var(--safe-b)); }
.view { animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeIn { from { opacity: 0; } }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin: 6px 0 34px; }
.head .brandlogo { max-height: 84px; max-width: min(320px, 66vw); }
.head .brandlogo.tile { width: 84px; height: 84px; }
.head h1 { margin: 0; font: 700 clamp(30px, 6vw, 52px)/1 var(--display); letter-spacing: -.035em; }
.head .sub { color: var(--mut); font-size: 14px; }

/* ── Cartes établissements (verticales) ── */
.sgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; }
.scard { position: relative; display: block; aspect-ratio: 3/4; border-radius: var(--r-xl); overflow: hidden; background: var(--bg3); isolation: isolate;
  transition: transform .45s var(--ease); }
.scard:active { transform: scale(.975); }
.scard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform 1s var(--ease); }
.scard > img.ok { opacity: 1; }
.scard:hover > img { transform: scale(1.04); }
.scard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.78)); z-index: 1; }
.scard .cap { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; }
.scard .cap .brandlogo { max-height: 46px; max-width: 72%; }
.scard .cap .brandlogo.tile { width: 46px; height: 46px; }
.scard .cap b { display: block; font: 700 26px/1.02 var(--display); letter-spacing: -.03em; }
.dot { position: absolute; z-index: 3; top: 16px; right: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(255,255,255,.22); }
.arrow { position: absolute; z-index: 3; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.arrow svg { width: 16px; height: 16px; }

/* ── Cartes dossiers (date géante) ── */
.dgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(340px, 470px)); justify-content: center; }
.dcard { position: relative; display: block; aspect-ratio: 16/11; border-radius: var(--r-xl); overflow: hidden; background: var(--bg3); isolation: isolate; transition: transform .45s var(--ease); }
.dcard:active { transform: scale(.975); }
.dcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform 1s var(--ease); }
.dcard > img.ok { opacity: 1; }
.dcard:hover > img { transform: scale(1.04); }
.dcard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 35%, rgba(0,0,0,.55)); }
.dcard .pill { position: absolute; z-index: 2; top: 14px; left: 14px; }
.dcard .big { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 6px; }
.dcard .big small { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); margin: 0 0 2px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard .big b { display: block; font: 800 clamp(52px, 8vw, 84px)/.92 var(--display); letter-spacing: -.055em; color: rgba(255,255,255,.94);
  text-shadow: 0 6px 40px rgba(0,0,0,.35); white-space: nowrap; }
.dcard .big b span { color: rgba(255,255,255,.45); }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: #fff; }
.pill i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
.pill svg { width: 14px; height: 14px; }

/* ── Dossier : couverture en tête ── */
.hero { position: relative; height: clamp(340px, 58vh, 620px); margin: 0 0 6px; overflow: hidden; background: #000; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; transform: scale(1.02); }
.hero > img.ok { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, #000 100%); }
.hero .in { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut) 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hero h1 { margin: 0; font: 800 clamp(44px, 9vw, 96px)/.92 var(--display); letter-spacing: -.055em; }
.hero h1 span { color: rgba(255,255,255,.4); }
.hero .t { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.75); margin: 0 0 6px 3px; }
.hero .who { display: flex; align-items: center; gap: 10px; margin: 0 0 12px 2px; }
.hero .who .brandlogo { max-height: 28px; max-width: 160px; }
.hero .who .brandlogo.tile { width: 28px; height: 28px; }
.sec { max-width: 1440px; margin: 0 auto; padding: 8px var(--gut) calc(130px + var(--safe-b)); }
.filters { display: flex; gap: 6px; margin: 4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--mut); background: var(--bg3); white-space: nowrap; transition: background .2s, color .2s; }
.filters button svg { width: 14px; height: 14px; }
.filters button.on { background: var(--fg); color: #000; }

/* ── Dock flottant (sous-dossiers + actions) ── */
.dock { position: fixed; z-index: 45; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 99px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55); animation: dockIn .5s var(--spring) both; max-width: calc(100vw - 24px); }
@keyframes dockIn { from { opacity: 0; transform: translate(-50%, 30px) scale(.9); } }
.dock button { position: relative; height: 48px; min-width: 48px; padding: 0 16px; border-radius: 99px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 650; color: rgba(255,255,255,.72); transition: background .3s var(--ease), color .2s, transform .2s var(--spring); white-space: nowrap; }
.dock button:active { transform: scale(.92); }
.dock button svg { width: 21px; height: 21px; }
.dock button.on { background: #fff; color: #000; }
.dock button.act { padding: 0; width: 48px; }
.dock button.acc { background: var(--acc); color: var(--acc-ink); }
.dock button em { font-style: normal; font-size: 12px; opacity: .55; font-weight: 600; }
.dock .sep { width: 1px; height: 26px; background: var(--glass-line); margin: 0 4px; }
.dock .badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 9px; background: var(--acc); color: var(--acc-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }

/* ── Mosaïque (photos, vidéos, rushs) ── */
.mgrid { display: flex; gap: var(--mg); align-items: flex-start; --mg: 10px; }
.mcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--mg); }
.tile { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg3); cursor: zoom-in; content-visibility: auto; contain-intrinsic-size: auto 300px; }
.tile > img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .6s var(--ease), filter .3s; }
.tile > img.ok { opacity: 1; }
.tile:hover > img { transform: scale(1.03); }
.tile.rej > img { filter: grayscale(1) brightness(.4); }
.tile.vid { cursor: pointer; }
.tile .tb { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; opacity: 0; transform: translateY(4px); transition: .2s var(--ease); }
.tile:hover .tb { opacity: 1; transform: none; }
.tb button, .mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,20,22,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .2s var(--spring), background .2s; }
.tb button:hover { transform: scale(1.1); }
.tb button svg, .mark svg { width: 17px; height: 17px; }
.tb .k.on, .mark.k { background: var(--ok); color: #000; }
.tb .k.on svg, .mark.k svg { fill: currentColor; }
.tb .r.on { background: var(--no); color: #000; }
.tile .mark { position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; animation: pop .45s var(--spring); }
.tile .mark svg { width: 14px; height: 14px; }
.tile .dur { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; }
.tile .play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20,20,22,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .3s var(--spring), background .3s; }
.tile .play svg { width: 22px; height: 22px; margin-left: 3px; }
.tile:hover .play { transform: scale(1.1); background: rgba(255,255,255,.9); color: #000; }
.tile .st { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.tile .st svg { width: 14px; height: 14px; stroke-width: 2.4; }
.tile .st.ok { background: var(--ok); color: #000; }
.tile .st.wait { background: rgba(0,0,0,.45); backdrop-filter: blur(10px); }
.tile .st.wait::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.tile .st.ch { background: var(--warn); color: #000; }
.tile .newdot { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.tile .pick { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); display: grid; place-items: center; background: rgba(0,0,0,.25); transition: .2s var(--spring); }
.tile .pick svg { width: 14px; height: 14px; opacity: 0; stroke-width: 2.6; }
.tile.picked .pick { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); transform: scale(1.08); }
.tile.picked .pick svg { opacity: 1; }
.tile.picked { box-shadow: inset 0 0 0 3px var(--acc); }
.tile.picked > img { transform: scale(.94); border-radius: 10px; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.tname { font-size: 13px; color: var(--mut); padding: 8px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; color: var(--mut); padding: 90px 20px; }
.empty b { display: block; color: var(--fg); font: 700 22px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.files { margin-top: 30px; display: grid; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: var(--r); background: var(--bg2); }
.file-row .grow { flex: 1; min-width: 0; }
.file-row b { display: block; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 99px;
  background: var(--bg3); font-weight: 620; font-size: 14.5px; white-space: nowrap; transition: transform .15s var(--ease), background .2s, opacity .2s; border: 0; }
.btn:hover { background: var(--bg4); }
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; }
.btn-acc { background: var(--fg); color: #000; }
.btn-acc:hover { background: #fff; }
.btn-gold { background: var(--acc); color: var(--acc-ink); }
.btn-ok { background: var(--ok); color: #000; }
.btn-ok:hover { background: #fff; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg3); }
.btn-big { height: 54px; padding: 0 24px; font-size: 16px; }
.btn-icon { width: 44px; padding: 0; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ── Feuille / menu ── */
.sheet-bg { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.5); animation: fadeIn .2s; }
.sheet { position: fixed; z-index: 151; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%); width: min(380px, calc(100vw - 20px)); padding: 8px; border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: sheetIn .32s var(--spring); }
@keyframes sheetIn { from { opacity: 0; transform: translate(-50%, 24px) scale(.96); } }
.sheet button { display: flex; width: 100%; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; text-align: left; transition: background .2s; }
.sheet button:hover { background: rgba(255,255,255,.07); }
.sheet button .ic { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.sheet button b { display: block; font-weight: 650; }
.sheet button small { display: block; color: var(--mut); font-size: 13px; }
.sheet button[disabled] { opacity: .35; pointer-events: none; }

/* ── Visionneuse photo ── */
.lb { position: fixed; inset: 0; z-index: 100; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; }
.lb-stage { position: absolute; inset: 0; overflow: hidden; }
.lb-track { position: absolute; inset: 0; display: flex; will-change: transform; }
.lb-slide { position: relative; flex: none; width: 100%; height: 100%; }
.lb-slide img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; padding: calc(70px + var(--safe-t)) 3vw calc(100px + var(--safe-b)); object-fit: contain; }
.lb-slide img.hi { opacity: 0; transition: opacity .18s; }
.lb-slide img.hi.ok { opacity: 1; }
.lb-slide.rej img { filter: grayscale(.9) brightness(.5); }
.lb-top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(12px + var(--safe-t)) var(--gut) 12px;
  background: linear-gradient(rgba(0,0,0,.6), transparent); }
.lb-count { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; padding: 0 14px; height: 36px; border-radius: 99px; display: inline-flex; align-items: center; }
.lb-nav { position: absolute; top: 50%; z-index: 4; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lb-nav.l { left: 20px; } .lb-nav.r { right: 20px; }
.lb .dock { animation: none; }
.dock .k.on { background: var(--ok); color: #000; } .dock .k.on svg { fill: currentColor; }
.dock .r.on { background: var(--no); color: #000; }

/* ── Tri façon cartes ── */
.tri { position: fixed; inset: 0; z-index: 100; background: radial-gradient(120% 80% at 50% 0%, #17171a, #000 70%); display: flex; flex-direction: column; animation: fadeIn .3s; user-select: none; -webkit-user-select: none; }
.tri-top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t)) var(--gut) 6px; }
.tri-prog { height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; margin: 6px var(--gut) 0; overflow: hidden; }
.tri-prog i { display: block; height: 100%; background: #fff; width: 0; transition: width .4s var(--ease); }
.tri-stats { display: flex; gap: 8px; }
.tri-stats span { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tri-stats svg { width: 14px; height: 14px; }
.tri-stats .k { color: var(--ok); } .tri-stats .k svg { fill: currentColor; } .tri-stats .r { color: var(--no); }
.deck { position: relative; flex: 1; margin: 16px auto 8px; width: min(92vw, 620px); }
.tcard { position: absolute; inset: 0; border-radius: var(--r-xl); overflow: hidden; background: #111; box-shadow: 0 30px 70px rgba(0,0,0,.6);
  touch-action: none; will-change: transform; cursor: grab; }
.tcard:active { cursor: grabbing; }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.tcard img.bg { inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(34px) brightness(.4); }
.tcard.under { transform: scale(.94) translateY(16px); filter: brightness(.55); transition: transform .35s var(--ease), filter .35s; }
.tcard .stamp { position: absolute; top: 26px; z-index: 3; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; opacity: 0; }
.tcard .stamp svg { width: 36px; height: 36px; stroke-width: 2.4; }
.tcard .stamp.k { left: 24px; background: var(--ok); color: #000; } .tcard .stamp.k svg { fill: currentColor; }
.tcard .stamp.r { right: 24px; background: var(--no); color: #000; }
.tri-bot { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 10px 0 calc(24px + var(--safe-b)); }
.rbtn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); transition: transform .25s var(--spring), background .2s, color .2s; }
.rbtn:active { transform: scale(.88); }
.rbtn svg { width: 24px; height: 24px; }
.rbtn.big { width: 74px; height: 74px; } .rbtn.big svg { width: 32px; height: 32px; }
.rbtn.k { color: var(--ok); } .rbtn.r { color: var(--no); }
.rbtn.k:hover { background: rgba(255,255,255,.16); } .rbtn.r:hover { background: rgba(255,255,255,.15); }
.tri-done { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; animation: viewIn .5s var(--ease); }
.tri-done h2 { font: 800 34px/1 var(--display); letter-spacing: -.04em; margin: 22px 0 8px; }
.tri-done p { color: var(--mut); margin: 0 0 28px; }
.tri-done .acts { display: flex; flex-direction: column; gap: 10px; width: min(340px, 86vw); margin: 0 auto; }
.bigcheck { width: 92px; height: 92px; margin: 0 auto; display: block; }
.bigcheck circle { fill: none; stroke: #fff; stroke-width: 2; animation: draw .6s var(--ease) forwards; }
.bigcheck path { fill: none; stroke: #fff; stroke-width: 2.4; animation: draw .4s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Lecteur vidéo + commentaires ── */
.vp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.vp-main { min-width: 0; }
.player { position: relative; background: #000; border-radius: var(--r-l); overflow: hidden; }
.player video { display: block; width: 100%; max-height: 74vh; background: #000; }
.markers { position: relative; height: 22px; margin: 12px 4px 0; }
.markers .rail { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line2); border-radius: 2px; }
.markers .head { position: absolute; top: 10px; height: 2px; left: 0; background: var(--fg); border-radius: 2px; }
.markers button { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--acc); border: 2px solid var(--bg); transition: transform .2s var(--spring); }
.markers button:hover { transform: scale(1.35); }
.markers button.res { background: var(--mut2); }
.vp-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 16px 2px 4px; flex-wrap: wrap; }
.vp-title h1 { font: 700 26px/1.1 var(--display); margin: 0; letter-spacing: -.025em; word-break: break-word; }
.vp-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.approved-box { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 18px; border-radius: 99px; background: rgba(255,255,255,.12); color: var(--ok); font-weight: 650; animation: viewIn .4s var(--ease); }
.approved-box.ch { background: rgba(255,255,255,.12); color: var(--warn); }
.approved-box .sp { flex: 1; }
.approved-box button { color: var(--mut); font-weight: 550; font-size: 13px; padding: 0 12px; height: 38px; border-radius: 99px; }
.approved-box button:hover { background: rgba(255,255,255,.06); }
.side { background: var(--bg2); border-radius: var(--r-l); display: flex; flex-direction: column; max-height: calc(100dvh - 120px); position: sticky; top: 90px; overflow: hidden; }
.side-h { padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.clist { flex: 1; overflow-y: auto; padding: 0 8px 6px; min-height: 120px; }
.cm { padding: 10px; border-radius: 14px; transition: background .2s; animation: viewIn .35s var(--ease); }
.cm:hover { background: var(--bg3); }
.cm-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mut); margin-bottom: 4px; }
.tc { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.14); color: var(--acc); }
.tc:hover { background: var(--acc); color: var(--acc-ink); }
.cm p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.cm.res p { color: var(--mut); }
.cm .res-tag { color: var(--ok); }
.cm .res-tag svg { width: 14px; height: 14px; stroke-width: 2.4; }
.cm .del { margin-left: auto; opacity: 0; color: var(--mut); padding: 2px; }
.cm:hover .del { opacity: 1; }
.cm .del svg { width: 15px; height: 15px; }
.composer { padding: 10px; }
.composer .box { background: var(--bg); border: 1px solid var(--line2); border-radius: 18px; padding: 10px 12px; transition: border-color .2s; }
.composer .box:focus-within { border-color: var(--fg); }
.composer textarea { width: 100%; border: 0; outline: 0; background: none; resize: none; min-height: 44px; max-height: 160px; }
.composer .row { display: flex; align-items: center; gap: 8px; }
.composer .row .sp { flex: 1; }
.composer label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mut); cursor: pointer; font-variant-numeric: tabular-nums; }
.composer input[type=checkbox] { accent-color: var(--acc); }
.send { width: 36px; height: 36px; border-radius: 50%; background: var(--fg); color: #000; display: grid; place-items: center; transition: transform .2s var(--spring), opacity .2s; }
.send svg { width: 18px; height: 18px; stroke-width: 2.2; }
.send[disabled] { opacity: .25; }
.vp-nav { display: flex; justify-content: space-between; margin-top: 22px; gap: 10px; }

/* ── Toasts, éclats, confettis ── */
.toasts { position: fixed; left: 50%; top: calc(16px + var(--safe-t)); transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 99px; background: rgba(245,245,242,.96); color: #111; font-weight: 650; font-size: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45); transform: translateY(-20px) scale(.9); opacity: 0; transition: .45s var(--spring); max-width: 92vw; }
.toast.in { transform: none; opacity: 1; }
.toast-err { background: #fff; padding-left: 18px; }
.toast-check svg { width: 24px; height: 24px; }
.toast-check circle { fill: #111; stroke: none; }
.toast-check path { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 16; stroke-dashoffset: 16; animation: draw .35s .15s var(--ease) forwards; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 400; pointer-events: none; }
.burst { position: fixed; z-index: 350; pointer-events: none; transform: translate(-50%, -50%); animation: burst .75s var(--ease) forwards; }
.burst svg { width: 96px; height: 96px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.5)); }
.burst-keep { color: var(--ok); } .burst-keep svg { fill: currentColor; }
.burst-reject { color: var(--no); } .burst-check { color: #fff; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 35% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -70%) scale(1); opacity: 0; } }
.skel { background: linear-gradient(90deg, var(--bg2), var(--bg3), var(--bg2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-xl); }
@keyframes sk { to { background-position: -200% 0; } }
.loader { position: fixed; top: 0; left: 0; height: 2px; background: #fff; z-index: 500; width: 0; opacity: 0; transition: width .3s, opacity .3s; }
.loader.on { width: 70%; opacity: 1; transition: width 3s cubic-bezier(.1,.6,.2,1), opacity .2s; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 6px; border-radius: 16px; background: #1c1c20; border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0,0,0,.55); z-index: 50; animation: menuIn .22s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--bg3); color: var(--mut); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip-new { background: var(--acc); color: var(--acc-ink); }
.chip-ok { background: rgba(255,255,255,.14); color: var(--ok); }
.chip-warn { background: rgba(255,255,255,.14); color: var(--warn); }
.chip-no { background: rgba(255,255,255,.13); color: var(--no); }

@media (max-width: 860px) {
  .vp { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .lb-nav { display: none; }
}
@media (max-width: 640px) {
  .page { padding-top: calc(74px + var(--safe-t)); }
  .sgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .scard { border-radius: var(--r-l); }
  .scard .cap { left: 14px; right: 14px; bottom: 14px; }
  .scard .cap b { font-size: 19px; }
  .scard .cap .brandlogo { max-height: 34px; }
  .sgrid.solo { grid-template-columns: 1fr; }
  .sgrid.solo .scard { aspect-ratio: 4/5; }
  .dgrid { grid-template-columns: 1fr; gap: 12px; }
  .dcard { border-radius: var(--r-l); aspect-ratio: 4/3.2; }
  .mgrid { --mg: 6px; }
  .tile { border-radius: 12px; }
  .tile .tb { display: none; }
  .tile .play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .dock button { padding: 0 13px; height: 46px; font-size: 13.5px; }
  .dock button.act { width: 46px; }
  .dock button .lbl { display: none; }
  .dock button.on .lbl { display: inline; }
  .vp-title h1 { font-size: 21px; }
  .player { border-radius: 0; margin: 0 calc(-1 * var(--gut)); }
  .vp-acts .btn { flex: 1; }
  .head { margin-bottom: 26px; }
}
@media (hover: none) { .tile:hover > img, .scard:hover > img, .dcard:hover > img { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* ═════════ Admin ═════════ */
.adm { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100dvh; }
.adm-side { border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; background: #0c0c0e; }
.adm-side .brand { padding: 4px 10px 18px; display: block; }
.adm-side .cl { text-align: left; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--mut); transition: background .15s, color .15s; }
.adm-side .cl:hover { background: var(--bg2); color: var(--fg); }
.adm-side .cl.on { background: var(--bg3); color: var(--fg); }
.adm-side .cl b { flex: 1; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-side .cl i { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--acc); color: var(--acc-ink); }
.adm-side .foot { margin-top: auto; padding: 14px 10px 4px; font-size: 12.5px; color: var(--mut2); line-height: 1.6; }
.bar { height: 4px; border-radius: 4px; background: var(--bg3); overflow: hidden; margin: 6px 0; }
.bar i { display: block; height: 100%; background: var(--acc); }
.adm-main { min-width: 0; padding: 26px 32px 80px; }
.adm-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-h h1 { font-size: 28px; margin: 0; letter-spacing: -.02em; font-weight: 650; }
.adm-h .sp { flex: 1; }
.linkbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg2); margin-bottom: 22px; max-width: 760px; }
.linkbox code { flex: 1; font: 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--acc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { padding: 10px 14px; color: var(--mut); font-weight: 560; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 6px; align-items: center; }
.tabs button.on { color: var(--fg); border-color: var(--acc); }
.tabs button i { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--acc); color: var(--acc-ink); }
.space-sec { margin-bottom: 30px; }
.space-sec > header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.space-sec > header h3 { margin: 0; font-size: 17px; font-weight: 620; flex: 1; }
.crow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); margin-bottom: 6px; cursor: pointer; transition: border-color .2s, background .2s; }
.crow:hover { border-color: var(--line2); background: #151518; }
.crow .th { width: 64px; height: 44px; border-radius: 7px; background: var(--bg3) center/cover; }
.crow b { font-weight: 580; }
.crow .meta { color: var(--mut); font-size: 13px; }
.crow .chips { margin: 0; justify-content: flex-end; }
.kind { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--bg3); color: var(--mut); margin-right: 6px; }
.kind.photos { color: #fff; } .kind.videos { color: var(--acc); } .kind.rushes { color: #fff; }
.drop { border: 1.5px dashed var(--line2); border-radius: var(--r); padding: 28px; text-align: center; color: var(--mut); transition: border-color .2s, background .2s; margin-bottom: 18px; cursor: pointer; }
.drop.over { border-color: var(--acc); background: rgba(255,255,255,.06); color: var(--fg); }
.drop b { color: var(--fg); display: block; font-size: 16px; margin-bottom: 4px; }
.upq { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); margin-bottom: 18px; overflow: hidden; }
.upq-h { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.upq-h .bar { flex: 1; height: 6px; }
.upq-list { max-height: 240px; overflow-y: auto; }
.upi { display: grid; grid-template-columns: minmax(0, 1fr) 140px 90px; gap: 12px; align-items: center; padding: 7px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.upi span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upi .bar { margin: 0; }
.upi.done .bar i { background: var(--ok); }
.upi.err { color: var(--no); }
.agrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.acard { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); position: relative; }
.acard .th { aspect-ratio: 4/3; background: var(--bg3) center/cover; position: relative; }
.acard .th .st { position: absolute; left: 8px; top: 8px; }
.acard .del { position: absolute; right: 6px; top: 6px; opacity: 0; background: rgba(0,0,0,.6); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transition: opacity .2s; }
.acard:hover .del { opacity: 1; }
.acard .del svg { width: 15px; height: 15px; }
.acard .inf { padding: 8px 10px 10px; font-size: 12.5px; }
.acard .inf b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.acard .chips { margin-top: 6px; gap: 4px; }
.acard .chip { font-size: 11px; padding: 2px 7px; }
.feed { max-width: 820px; }
.ev { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); align-items: start; }
.ev .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--bg3); display: grid; place-items: center; color: var(--mut); }
.ev .ic svg { width: 15px; height: 15px; }
.ev .ic.ok { color: var(--ok); background: rgba(255,255,255,.12); } .ev .ic.acc { color: var(--acc); background: rgba(255,255,255,.12); } .ev .ic.warn { color: var(--warn); background: rgba(255,255,255,.12); }
.ev small { color: var(--mut); display: block; font-size: 12.5px; }
.ev q { color: var(--mut); font-style: italic; }
.ev time { color: var(--mut2); font-size: 12.5px; white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 12.5px; color: var(--mut); font-weight: 550; }
.input { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); outline: 0; transition: border-color .2s; width: 100%; }
.input:focus { border-color: var(--acc); }
textarea.input { height: auto; padding: 10px 12px; min-height: 80px; }
.modal-bg { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; }
.modal { width: min(460px, 100%); background: #151518; border: 1px solid var(--line2); border-radius: 18px; padding: 22px; animation: menuIn .25s var(--ease); }
.modal h2 { margin: 0 0 16px; font-size: 20px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kinds button { padding: 12px 8px; border-radius: 11px; border: 1px solid var(--line2); font-weight: 580; font-size: 14px; transition: .2s; }
.kinds button.on { border-color: var(--acc); background: rgba(255,255,255,.1); color: var(--acc); }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login form { width: min(360px, 100%); text-align: center; }
.login .brand { font-size: 18px; display: block; margin-bottom: 30px; }
.cmt-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.cmt-row input { accent-color: var(--ok); width: 18px; height: 18px; margin-top: 2px; }
.cmt-row.res p { color: var(--mut); text-decoration: line-through; }
.cmt-row p { margin: 3px 0 0; white-space: pre-wrap; }
@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .adm-side .brand, .adm-side .foot { display: none; }
  .adm-side .cl { flex: none; }
  .adm-main { padding: 18px 14px 80px; }
  .crow { grid-template-columns: 54px minmax(0, 1fr); }
  .crow .chips { grid-column: 1 / -1; justify-content: flex-start; }
  .upi { grid-template-columns: minmax(0, 1fr) 80px; }
  .upi .sz { display: none; }
}
/* Admin : logos, couverture, déplacement */
.logochip { height: 44px; min-width: 44px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px dashed var(--line2); transition: border-color .2s, background .2s; }
.logochip:hover { border-color: var(--fg); background: var(--bg2); }
.logochip:has(img) { border-style: solid; border-color: transparent; }
.logoprev { height: 120px; border-radius: 16px; background: #000; border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 16px; }
.acard.is-cover { box-shadow: 0 0 0 2px var(--acc); }
.acard .tools-a { position: absolute; right: 6px; top: 6px; display: flex; gap: 6px; opacity: 0; transition: opacity .2s; }
.acard:hover .tools-a { opacity: 1; }
.acard .tools-a button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); }
.acard .tools-a button svg { width: 15px; height: 15px; }
.acard .tools-a .cov.on { background: var(--acc); color: var(--acc-ink); opacity: 1; }
.acard .mv { margin-top: 8px; width: 100%; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 12px; color: var(--mut); padding: 0 6px; }
.tabs button em { font-size: 12px; }
@media (hover: none) { .acard .tools-a { opacity: 1; } }
/* Vidéo en préparation */
.prep { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(0,0,0,.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); font-weight: 650; font-size: 15px; }
.prep i, .prep-ring i { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin 1s linear infinite; }
.player:has(.prep) { min-height: 40vh; }
.player:has(.prep) video { min-height: 40vh; }
.tile .prep-ring { display: grid; place-items: center; }
.tile .prep-ring i { width: 22px; height: 22px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═════ Refonte « Panora » : navigation, cartes, zoom, barre du bas ═════ */
@keyframes viewIn { from { opacity: 0; } }
.view { animation: viewIn .3s ease both; }
.nav { display: flex; align-items: center; gap: 12px; grid-template-columns: none; background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,0)); }
.nav .ttl { flex: 1; min-width: 0; font: 700 23px/1.1 var(--display); letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.nav .navlogo { max-height: 30px; max-width: 190px; }
.nav .navlogo.tile { width: 30px; height: 30px; }
.bell { position: relative; }
.bell .dot { top: 9px; right: 10px; width: 8px; height: 8px; box-shadow: none; }
.page { padding-top: calc(78px + var(--safe-t)); }

.plist { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }
.pcard { position: relative; display: block; aspect-ratio: 16 / 10.4; border-radius: var(--r-xl); overflow: hidden; background: var(--bg3); isolation: isolate;
  transition: transform .35s var(--ease); -webkit-touch-callout: none; }
.pcard:active { transform: scale(.98); }
.pcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.pcard > img.ok { opacity: 1; }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.3)); }
.pcard .pill { position: absolute; z-index: 2; top: 16px; left: 16px; height: 32px; padding: 0 13px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.pcard .pill svg { width: 15px; height: 15px; }
.pcard .dot { z-index: 2; top: 20px; right: 20px; width: 10px; height: 10px; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.18); }
.pcard .word { position: absolute; z-index: 2; left: 0; right: 0; bottom: -.17em; text-align: center; white-space: nowrap;
  font: 800 100px/.9 var(--display); letter-spacing: -.05em; color: transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.72) 55%, rgba(255,255,255,.38) 100%);
  -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 6px 26px rgba(0,0,0,.28)); transition: opacity .2s; }
.pcard.zooming .word, .pcard.zooming .pill, .pcard.zooming .dot { opacity: 0; }
.zoomer { position: fixed; z-index: 90; overflow: hidden; border-radius: var(--r-xl); pointer-events: none; background: #000; will-change: left, top, width, height; }
.zoomer img { width: 100%; height: 100%; object-fit: cover; }

/* Barre du bas : un indicateur blanc glisse sous l'onglet actif */
.dock { gap: 2px; }
.tabs-d { position: relative; display: flex; gap: 2px; }
.tabs-d .ind { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 99px; background: #fff; z-index: 0;
  transition: transform .5s var(--spring), width .5s var(--spring); }
.tabs-d button { z-index: 1; background: transparent !important; }
.tabs-d button.on { color: #000; }
.dock .act { transition: width .3s var(--ease), opacity .2s, margin .3s, transform .2s var(--spring), background .3s; }
.dock .act.gone { width: 0; min-width: 0; opacity: 0; margin: 0 -1px; pointer-events: none; overflow: hidden; }
.dock .act.on { background: #fff; color: #000; }
.dock .badge.hide { display: none; }

/* Notifications */
.sheet.top { top: calc(68px + var(--safe-t)); bottom: auto; left: auto; right: var(--gut); transform: none; animation: sheetTop .3s var(--spring); }
@keyframes sheetTop { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.sheet button img.ic { border-radius: 12px; }
.sheet-sep { display: block; height: 1px; background: var(--glass-line); margin: 6px 10px; }

@media (max-width: 640px) {
  .page { padding-top: calc(72px + var(--safe-t)); }
  .plist { gap: 12px; }
  .pcard { border-radius: 24px; aspect-ratio: 16 / 11; }
  .tabs-d button .lbl { display: none; }
  .tabs-d button.on .lbl { display: inline; }
  .sheet.top { left: 10px; right: 10px; width: auto; }
}
@media (min-width: 1100px) { .plist { max-width: 820px; } }
.spcover { height: 40px; padding: 0 12px 0 8px; gap: 8px; font-size: 13.5px; }
.spcover .sw { width: 26px; height: 26px; border-radius: 7px; background: var(--bg3) center/cover; }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 56vh; overflow-y: auto; }
.pickgrid button { aspect-ratio: 1; border-radius: 12px; background: var(--bg3) center/cover; transition: transform .2s var(--spring), box-shadow .2s; }
.pickgrid button:hover { transform: scale(1.04); }
.pickgrid button.on { box-shadow: 0 0 0 3px #fff; }
.modal:has(.pickgrid) { width: min(640px, 100%); }
.hero::after { inset: 0 0 -2px 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 48%, #000 94%); }
.hero > img { transform: none; }
.pcard .word { left: 50%; right: auto; width: max-content; max-width: none; transform: translateX(-50%); }
@media (min-width: 1100px) { .plist { max-width: 680px; } }
.spcard { width: 168px; height: 52px; border-radius: 12px; background: var(--bg3) center/cover; position: relative; overflow: hidden; flex: none; border: 1px solid var(--line2); }
.spcard > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 650;
  background: rgba(0,0,0,.45); backdrop-filter: blur(2px); transition: background .2s; }
.spcard:hover > span { background: rgba(0,0,0,.25); }
.spcard svg { width: 14px; height: 14px; }
.lbzoom { position: fixed; z-index: 120; object-fit: cover; pointer-events: none; will-change: left, top, width, height; }
.lb .lb-top, .lb .dock, .lb .lb-nav { transition: opacity .2s; }
.cardprev { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; background: var(--bg3) center/cover; overflow: hidden; margin-bottom: 12px; }
.cardprev b { position: absolute; left: 0; right: 0; bottom: -.12em; text-align: center; font: 800 46px/.9 var(--display); letter-spacing: -.045em; white-space: nowrap; overflow: hidden;
  color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.45)); -webkit-background-clip: text; background-clip: text; }
.dropimg { padding: 18px; margin-bottom: 14px; }
.spcard.over { box-shadow: 0 0 0 2px #fff; }
.spcard.over > span { background: rgba(0,0,0,.2); }
.modal-bg { overflow-y: auto; }
.modal:has(.cardprev) .pickgrid { max-height: 30vh; }
.sec { position: relative; }
.leaving { will-change: opacity; }
/* Logo de l'établissement centré en haut */
.nav .circ-sp { display: none; }
.nav.centered { display: grid; grid-template-columns: 44px 1fr 44px; }
.nav.centered .circ-sp { display: block; width: 44px; }
.nav.centered .ttl { justify-content: center; text-align: center; }
.nav.centered .navlogo { max-height: 34px; max-width: min(220px, 56vw); }
/* Pas de barre de défilement sur téléphone et tablette */
@media (hover: none), (max-width: 860px) {
  html, body { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

.lb:not(.zooming) { animation: fadeIn .2s ease-out; }
/* Titre de l'espace (Photos / Reels / Rushs) sous le logo */
.nav.centered .ttl { flex-direction: column; gap: 2px; line-height: 1; }
.nav .sub { font: 650 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.nav.centered:has(.navlogo) .navlogo { max-height: 26px; }
.nav.centered .ttl:not(:has(.navlogo)) .sub { font-size: 15px; letter-spacing: .1em; color: #fff; }
/* Zoom arrière : la carte reçoit l'image qui revient */
.pcard.landing > img { opacity: 0 !important; }
.hero { box-shadow: 0 2px 0 #000; z-index: 1; }
/* En-tête du dossier : photo floutée, titre géant au centre */
.hero > img { transition: filter .7s ease, transform .7s ease; opacity: 1 !important; }
.hero.blurred > img { filter: blur(18px) brightness(.72); transform: scale(1.08); }
.htitle { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; pointer-events: none; padding-bottom: 6%; }
.htitle span { font: 800 clamp(64px, 19vw, 190px)/.9 var(--display); letter-spacing: -.055em; color: transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.7) 60%, rgba(255,255,255,.45) 100%);
  -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 8px 30px rgba(0,0,0,.25)); opacity: 0; transition: opacity .5s ease .1s; }
.hero.blurred .htitle span { opacity: 1; }
/* Plus de fondu depuis le noir sur les images : elles s'affichent dès qu'elles sont prêtes */
.pcard > img, .tile > img, .scard > img, .dcard > img, .card-img img { opacity: 1 !important; }
.zoomer { background: transparent; }
/* Aucune transition d'opacité sur les images de cartes/vignettes : elles sont là ou pas, jamais à moitié noires */
.pcard > img, .tile > img, .scard > img, .dcard > img, .hero > img { transition-property: transform, filter !important; }
/* Flou léger, titre jamais rogné, date et titre centrés sous le grand titre */
.hero.blurred > img { filter: blur(5px) brightness(.84); transform: scale(1.03); }
.htitle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px 16px 0; text-align: center; }
.htitle span { padding: 0 .08em; font-size: clamp(56px, 17vw, 170px); }
.hero .in { display: none; }
.hsub { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .5s ease .15s, transform .5s ease .15s; }
.hero.blurred .hsub { opacity: 1; transform: none; }
.hsub b { font: 800 26px/1 var(--display); letter-spacing: -.03em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hsub b i { font-style: normal; color: rgba(255,255,255,.55); }
.hsub small { font: 650 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.8); text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.pcard .word { padding: 0 .06em; }
/* Zoom : flou immédiat (pas de transition), date et titre masqués seulement pendant l'arrivée, texte en vol */
.hero > img { transition: none !important; }
.hero.blurred > img { filter: blur(5px) brightness(.84); transform: scale(1.03); }
.htitle span, .hsub { opacity: 1; transform: none; transition: none; }
.hero.entering .htitle span, .hero.entering .hsub { opacity: 0; }
.flytext { position: fixed; z-index: 95; pointer-events: none; transform-origin: center; display: block; box-sizing: border-box; }
.pcard .word { transition: none; }
.pcard.zooming .word { opacity: 0; }

/* Barre du bas : même rythme que les zooms (pas de rebond) */
.dock { animation: dockIn .44s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dockIn { from { opacity: 0; transform: translate(-50%, 16px); } }
/* Image qui vole : dégradé de l'en-tête et texte en vol, découpés par le même cadre */
.zoomer { overflow: hidden; }
.zoomer .vig { position: absolute; inset: 0 0 -2px 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 48%, #000 94%); }
.zoomer .flyin { position: absolute; display: block; box-sizing: border-box; transform-origin: center; pointer-events: none; z-index: 2; }
.zoomer img { position: absolute; inset: 0; }
.zoomer .cvig { position: absolute; inset: 0; pointer-events: none; opacity: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.3)); }
/* Rafraîchissement : aucune carte vide, l'écran apparaît d'un bloc quand ses images sont prêtes */
body.booting #app, body.booting #nav, body.booting .dock { visibility: hidden; }
/* Titres des cartes (établissements, dates) centrés dans la carte */
.pcard .word { top: 50%; bottom: auto; left: 50%; right: auto; transform: translate(-50%, -50%); }
/* Le logo du haut et la barre du bas restent toujours au-dessus de l'image qui vole */
.zoomer { z-index: 39; }
.zoomer .zt { position: absolute; inset: auto; padding-top: 60px; transform-origin: center; z-index: 1; pointer-events: none; }
.zoomer .zt span { opacity: 1; }
.dock.fresh .ind, .dock.fresh .act { transition: none !important; }
/* Ordinateur : la vidéo au centre de l'écran, à son format exact ; les commentaires à droite */
@media (min-width: 861px) {
  .vp { --ar: 1.7778; --side: 360px;
    grid-template-columns: minmax(var(--side), 1fr) min(calc(var(--ar) * (100dvh - 300px)), calc(100vw - 2 * var(--gut) - 2 * (var(--side) + 22px))) minmax(var(--side), 1fr); }
  .vp-main { grid-column: 2; }
  .vp .side { grid-column: 3; width: 100%; max-width: 380px; }
  .vp .player video { max-height: none; height: auto; }
}
/* Tri : la carte suit le format de la photo, l'image la remplit entièrement */
.tcard img { object-fit: cover; }
/* Le retour se fait par notre glissement : le navigateur ne lance pas le sien au trackpad */
html, body { overscroll-behavior-x: none; }
/* Cartes des dates : titre de la prestation à droite, même pastille que les compteurs */
.pcard .pill.tag { left: auto; right: 16px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; font-weight: 650; }
/* Fermeture au doigt : la barre d'outils s'efface pendant le geste */
.lb.dragging > :not(.lb-stage), .reel.dragging > :not(.reel-stage) { opacity: 0 !important; transition: opacity .15s; }
.lb-slide, .reel-stage { transform-origin: 50% 50%; will-change: transform; }

/* Vidéo plein écran façon TikTok */
.reel { position: fixed; inset: 0; z-index: 100; background: #000; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.reel-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.reel-stage video, .reel-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.reel-poster.gone { visibility: hidden; }
.reel-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + var(--safe-t)) var(--gut) 0; pointer-events: none; }
.reel-top > * { pointer-events: auto; }
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.reel::before { top: 0; height: 120px; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0)); }
.reel::after { bottom: 0; height: 260px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.6)); }
.reel-side { position: absolute; z-index: 3; right: 10px; bottom: calc(96px + var(--safe-b)); display: flex; flex-direction: column; gap: 18px; align-items: center; }
.ra { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; background: none; min-width: 58px; }
.ra .ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .2s var(--spring), background .2s; }
.ra .ic svg { width: 26px; height: 26px; }
.ra:active .ic { transform: scale(.9); }
.ra small { font: 650 12px/1 var(--display); text-shadow: 0 1px 6px rgba(0,0,0,.6); min-height: 12px; }
.ra.like.on .ic { background: #fff; color: #000; }
.ra.like.on .ic svg { fill: currentColor; }
.reel-info { position: absolute; z-index: 3; left: var(--gut); right: 92px; bottom: calc(40px + var(--safe-b)); display: flex; flex-direction: column; gap: 6px; text-shadow: 0 1px 8px rgba(0,0,0,.6); pointer-events: none; }
.reel-info b { font: 750 18px/1.15 var(--display); letter-spacing: -.01em; }
.reel-info small { font-size: 13px; color: rgba(255,255,255,.8); }
.reel-prog { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(6px + var(--safe-b)); height: 26px; display: flex; align-items: center; padding: 0 var(--gut); cursor: pointer; touch-action: none; }
.reel-prog .track { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); transition: height .15s; }
.reel.seeking .reel-prog .track, .reel-prog:hover .track { height: 6px; }
.reel-prog .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: #fff; }
.reel-prog .marks i { position: absolute; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
.reel-time { position: absolute; z-index: 4; left: 50%; bottom: calc(44px + var(--safe-b)); transform: translateX(-50%); font: 700 22px/1 var(--display); font-variant-numeric: tabular-nums; text-shadow: 0 2px 12px rgba(0,0,0,.6); opacity: 0; pointer-events: none; }
.reel.seeking .reel-time { opacity: 1; }
.reel-pause { position: absolute; z-index: 2; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; opacity: 0; pointer-events: none; transform: scale(.8); transition: opacity .18s, transform .18s; }
.reel-pause svg { width: 34px; height: 34px; margin-left: 4px; }
.reel.paused .reel-pause { opacity: 1; transform: none; }
.reel-mute { position: absolute; z-index: 4; left: 50%; top: calc(70px + var(--safe-t)); transform: translateX(-50%); height: 36px; padding: 0 16px; border-radius: 99px; color: #fff; font: 650 13px/1 var(--display); }
.reel-mute.hide { display: none; }
.reel-sheet { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: min(62vh, 560px); display: flex; flex-direction: column; background: #111114; border-radius: 22px 22px 0 0; padding: 6px 12px calc(8px + var(--safe-b)); transform: translateY(102%); transition: transform .32s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.reel.sheet-on .reel-sheet { transform: none; }
.reel-sheet .sh-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 10px; font: 700 16px/1 var(--display); }
.reel-sheet .circ.x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.reel-sheet .circ.x svg { width: 18px; height: 18px; }
.reel-sheet .clist { flex: 1; overflow-y: auto; padding: 0; min-height: 0; }
.reel-sheet .ask { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; margin: 6px 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-weight: 650; font-size: 14px; }
.reel-sheet .ask svg { width: 16px; height: 16px; }
.reel-sheet .composer { padding: 6px 0 0; }
.reel-sheet .composer .tc { font: 650 12.5px/1 var(--display); color: var(--mut); font-variant-numeric: tabular-nums; }
@media (min-width: 861px) {
  /* ordinateur : la vidéo au centre, les actions à sa droite, les commentaires en panneau à droite */
  .reel-side { right: auto; left: calc(50% + min(28vw, (100vh - 40px) * .28) + 18px); bottom: 110px; }
  .reel-info { left: 50%; transform: translateX(-50%); width: min(560px, 60vw); right: auto; text-align: center; align-items: center; }
  .reel-prog { left: 50%; right: auto; width: min(640px, 60vw); transform: translateX(-50%); }
  .reel-sheet { left: auto; top: 0; bottom: 0; width: 400px; height: auto; border-radius: 22px 0 0 22px; transform: translateX(102%); padding-top: 16px; }
  .reel.sheet-on .reel-sheet { transform: none; }
}
.reel-stage.fill video, .reel-stage.fill .reel-poster { object-fit: cover; }
@media (min-width: 861px) {
  /* ordinateur : la vidéo garde une marge symétrique pour la colonne d'actions, et se décale quand les commentaires s'ouvrent */
  .reel-stage { inset: 70px 120px 70px 120px; transition: right .32s cubic-bezier(.2,.8,.2,1), left .32s cubic-bezier(.2,.8,.2,1); }
  .reel-side { left: auto; right: 28px; bottom: 120px; transition: right .32s cubic-bezier(.2,.8,.2,1); }
  .reel-info { bottom: 40px; }
  .reel-prog { bottom: 10px; }
  .reel.sheet-on .reel-stage { left: 40px; right: 540px; }
  .reel.sheet-on .reel-side { right: 424px; }
  .reel.sheet-on .reel-info, .reel.sheet-on .reel-prog { left: calc(50% - 200px); }
}
/* Espace téléchargements */
.dl-wrap { position: fixed; z-index: 170; right: 16px; bottom: calc(96px + var(--safe-b)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.dl-wrap > * { pointer-events: auto; }
.dl-panel { width: min(360px, calc(100vw - 32px)); max-height: 52vh; overflow: hidden; display: flex; flex-direction: column; border-radius: 20px; padding: 6px; transform-origin: 100% 100%;
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1); background: rgba(22,22,26,.82); }
.dl-wrap:not(.open) .dl-panel { opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; }
.dl-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 8px 12px; font: 700 15px/1 var(--display); }
.dl-min { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.dl-min svg { width: 16px; height: 16px; }
.dl-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 0 2px 4px; }
.dl-row { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.06); animation: dlIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes dlIn { from { opacity: 0; transform: translateY(8px); } }
.dl-top { display: flex; align-items: center; gap: 10px; }
.dl-top b { flex: 1; min-width: 0; font: 650 14px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-pct { font: 750 15px/1 var(--display); font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.dl-x { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--mut); }
.dl-x svg { width: 14px; height: 14px; }
.dl-bar { position: relative; height: 6px; margin: 10px 0 8px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.dl-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: #fff; }
.dl-row:not(.ok):not(.err):not(.wait) .dl-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.0) 30%, rgba(0,0,0,.18) 50%, transparent 70%); background-size: 200% 100%; animation: dlShine 1.1s linear infinite; }
@keyframes dlShine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.dl-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.dl-bot small { color: var(--mut); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dl-btn { height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.12); color: #fff; font: 650 13px/1 var(--display); }
.dl-btn.main { background: #fff; color: #000; }
.dl-ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; animation: pop .45s var(--spring); }
.dl-ok svg { width: 15px; height: 15px; stroke-width: 2.6; }
.dl-row.err .dl-bar i { background: var(--no); }
.dl-pill { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 6px; border-radius: 99px; color: #fff; font: 700 14px/1 var(--display); font-variant-numeric: tabular-nums; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.dl-wrap.open .dl-pill { display: none; }
.dl-pill .ring { --p: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.dl-pill .ring > span { width: 26px; height: 26px; border-radius: 50%; display: grid !important; place-items: center; background: #1a1a1e; }
.dl-pill .ring svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .dl-wrap { left: 12px; right: 12px; align-items: stretch; } .dl-panel { width: auto; } .dl-pill { align-self: flex-end; } }
/* Sélection multiple */
.pick-tool.on { background: #fff; color: #000; }
.tile .pick { display: none !important; }
body.picking .mgrid .tile::after { content: ""; position: absolute; z-index: 4; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.95); background: rgba(0,0,0,.28); box-shadow: 0 2px 10px rgba(0,0,0,.3); transition: background .2s, transform .25s var(--spring); }
body.picking .mgrid .tile.picked::after { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; transform: scale(1.08); }
body.picking .mgrid .tile .tb, body.picking .mgrid .tile .play { opacity: 0; pointer-events: none; }
body.picking .mgrid .tile.picked { box-shadow: inset 0 0 0 3px #fff; }
body.picking .mgrid .tile.picked > img { transform: scale(.94); border-radius: 10px; }
body.picking > .dock { opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .25s; }
.selbar { position: fixed; z-index: 46; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px;
  border-radius: 99px; width: min(460px, calc(100vw - 24px)); box-shadow: 0 20px 50px rgba(0,0,0,.55); animation: dockIn .3s cubic-bezier(.2,.8,.2,1) both; }
.sb-all { height: 44px; padding: 0 16px; border-radius: 99px; background: rgba(255,255,255,.1); color: #fff; font: 650 14px/1 var(--display); flex: none; }
.sb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sb-info b { font: 700 14px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-info small { font-size: 12px; color: var(--mut); }
.sb-dl { height: 44px; padding: 0 18px 0 14px; border-radius: 99px; background: #fff; color: #000; display: flex; align-items: center; gap: 8px; font: 700 14px/1 var(--display); flex: none; transition: opacity .2s; }
.sb-dl svg { width: 18px; height: 18px; }
.sb-dl:disabled { opacity: .35; }
.secwrap { will-change: clip-path; }
/* Ordinateur : établissements et dates en grille horizontale, centrée dans l'écran (1 carte = au centre, 2 = côte à côte au centre…) */
@media (min-width: 861px) {
  .plist { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; gap: 22px;
    max-width: 1500px; padding: 0 var(--gut) 40px; min-height: calc(100dvh - 78px - var(--safe-t)); box-sizing: border-box; }
  .plist > .pcard { flex: 0 1 calc((100% - 44px) / 3); max-width: 440px; min-width: 300px; }
  .plist > .empty { flex: 1 1 100%; }
}
@media (min-width: 861px) and (max-width: 1099px) {
  .plist > .pcard { flex-basis: calc((100% - 22px) / 2); }
}
@media (min-width: 861px) {
  /* pages de cartes : elles tiennent pile dans l'écran (pas de petit défilement qui décale le centrage) */
  .page:has(> .plist) { padding-bottom: 0; }
  .plist { padding-bottom: 0; min-height: calc(100dvh - 78px - var(--safe-t)); }
}
@media (min-width: 861px) { .plist { padding-bottom: 32px; } }

/* ═════ Admin : visuel et épuré, même esprit que l'espace client ═════ */
.ad-bar { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: calc(64px + var(--safe-t)); padding: var(--safe-t) var(--gut) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,0)); }
.ad-bar > :first-child { justify-self: start; }
.ad-acts { justify-self: end; display: flex; gap: 8px; }
.ad-brand img { height: 20px; filter: invert(1); display: block; }
.ad-mid { display: flex; align-items: center; justify-content: center; min-width: 0; }
.ad-mid .ad-logo { max-height: 30px; max-width: 220px; }
.ad-title { font: 700 20px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.ad-title.sm { font-size: 15px; color: rgba(255,255,255,.8); }
.ad-bar .circ.on { background: #fff; color: #000; }
.ad-page { padding: calc(84px + var(--safe-t)) var(--gut) 120px; max-width: 1500px; margin: 0 auto; }

/* Accueil : cartes clients */
.ad-grid { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 22px; min-height: calc(100dvh - 84px - 120px - var(--safe-t)); }
.ad-card { position: relative; flex: 0 1 calc((100% - 44px) / 3); max-width: 420px; min-width: 280px; aspect-ratio: 16 / 11; border-radius: 26px; overflow: hidden;
  background: var(--bg3); isolation: isolate; transition: transform .35s var(--ease); display: block; }
.ad-card:hover { transform: translateY(-3px); }
.ad-card:active { transform: scale(.98); }
.ad-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-card .ph, .ad-date .ph { position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 10%, #2a2a30, #0d0d10); }
.ad-card .shade, .ad-date .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05) 35%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.65)); }
.ad-card .mid { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding: 18%; }
.ad-card .mid .brandlogo { max-width: 100%; max-height: 90px; filter: drop-shadow(0 4px 20px rgba(0,0,0,.4)); }
.ad-card .word, .ad-date .word { font: 800 38px/.95 var(--display); letter-spacing: -.045em; text-align: center; color: #fff; text-shadow: 0 6px 26px rgba(0,0,0,.35); }
.ad-card .pills { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; justify-content: flex-end; }
.ad-card .pill, .ad-date .pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; font: 650 12.5px/1 var(--display); color: #fff;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); }
.ad-card .pill svg, .ad-date .pill svg { width: 14px; height: 14px; }
.ad-card .pill.hot { background: #fff; color: #000; border-color: #fff; }
.ad-card .name { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; text-align: center; font: 650 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.ad-card.add, .ad-date.add { background: transparent; border: 1.5px dashed rgba(255,255,255,.22); display: grid; place-items: center; color: rgba(255,255,255,.6); cursor: pointer; }
.ad-card.add:hover, .ad-date.add:hover { border-color: #fff; color: #fff; }
.ad-card.add svg { width: 38px; height: 38px; }

/* Menus et onglets en icônes */
.ad-menu { position: fixed; z-index: 160; min-width: 220px; padding: 6px; border-radius: 18px; background: rgba(24,24,28,.9); animation: menuIn .2s var(--ease); }
.ad-menu button { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px; border-radius: 12px; color: #fff; font: 600 14px/1 var(--display); text-align: left; }
.ad-menu button:hover { background: rgba(255,255,255,.08); }
.ad-menu button.danger { color: var(--no); }
.ad-menu svg { width: 18px; height: 18px; }
.ad-store { padding: 12px; display: grid; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 4px; }
.ad-store .row { display: flex; align-items: center; gap: 8px; }
.ad-store .row svg { width: 18px; height: 18px; }
.ad-store b { font: 700 16px/1 var(--display); }
.ad-store small { color: var(--mut); font-size: 12.5px; }
.ad-store .bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; }
.ad-store .bar i { display: block; height: 100%; background: #fff; }
.ad-seg { display: flex; gap: 4px; padding: 5px; border-radius: 99px; width: max-content; margin: 0 auto 28px; }
.ad-seg button { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; color: rgba(255,255,255,.75); font: 650 14px/1 var(--display); transition: background .25s, color .25s; }
.ad-seg button svg { width: 18px; height: 18px; }
.ad-seg button.on { background: #fff; color: #000; }
.ad-seg button i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #fff; color: #000; font-size: 11px; display: grid; place-items: center; }
.ad-seg button.on i { background: #000; color: #fff; }
.ad-seg button em { font-style: normal; font-size: 12px; opacity: .55; }

/* Fiche client : établissements et leurs dates */
.ad-space { margin-bottom: 40px; }
.ad-space header { display: flex; align-items: center; gap: 6px; margin: 0 2px 14px; }
.ad-sphead { display: flex; align-items: center; height: 40px; padding: 0 6px; border-radius: 12px; }
.ad-sphead:hover { background: rgba(255,255,255,.06); }
.ad-sphead .brandlogo { max-height: 30px; max-width: 200px; }
.ad-sphead b { font: 750 22px/1 var(--display); letter-spacing: -.02em; }
.ad-space .sp { flex: 1; }
.mini { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.6); }
.mini:hover { background: rgba(255,255,255,.08); color: #fff; }
.mini svg { width: 17px; height: 17px; }
.ad-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ad-date { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--bg3); isolation: isolate; display: block; transition: transform .3s var(--ease); }
.ad-date:hover { transform: translateY(-2px); }
.ad-date > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-date .word { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%); font-size: 40px; }
.ad-date .tag { position: absolute; z-index: 2; top: 12px; right: 12px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-date .empty-tag { position: absolute; z-index: 2; top: 12px; left: 12px; opacity: .7; }
.ad-date .stats { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.ad-date .stats > span, .ad-tile .stats > span { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 99px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 650 11.5px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.ad-date .stats svg, .ad-tile .stats svg { width: 13px; height: 13px; }
.ad-date .stats .ok, .ad-tile .stats .ok { background: rgba(255,255,255,.92); color: #000; }
.ad-date .stats .hot, .ad-tile .stats .hot { background: #fff; color: #000; }
.ad-date.add svg { width: 30px; height: 30px; }
.ad-addspace { display: grid; place-items: center; width: 100%; height: 64px; border-radius: 18px; border: 1.5px dashed rgba(255,255,255,.18); color: rgba(255,255,255,.55); }
.ad-addspace:hover { border-color: #fff; color: #fff; }
.ad-addspace svg { width: 24px; height: 24px; }

/* Activité / commentaires */
.ad-feed { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.ad-feed .ev { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); }
.ad-feed .ev .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.ad-feed .ev .ic svg { width: 18px; height: 18px; }
.ad-feed .ev .ic.ok, .ad-feed .ev .ic.acc { background: #fff; color: #000; }
.ad-feed .ev small { color: var(--mut); font-size: 12px; }
.ad-feed .ev small a { color: #fff; }
.ad-feed .ev time { color: var(--mut); font-size: 12px; white-space: nowrap; }
.ad-feed .ev p { margin: 0 0 4px; }
.ad-feed .ev q { quotes: "« " " »"; }
.ad-feed .cm.res { opacity: .45; }
.ad-done { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.3); color: transparent; transition: .2s; }
.ad-done svg { width: 18px; height: 18px; stroke-width: 2.4; }
.ad-done.on { background: #fff; border-color: #fff; color: #000; }
.empty .big { display: grid; place-items: center; margin-bottom: 10px; }
.empty .big svg { width: 34px; height: 34px; opacity: .5; }

/* Dossier : bandeau photo + vignettes */
.ad-hero { position: relative; height: 260px; border-radius: 28px; overflow: hidden; margin-bottom: 22px; background: var(--bg3); isolation: isolate; }
.ad-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.8); transform: scale(1.03); }
.ad-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.55)); }
.ad-hero .txt { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.ad-hero .txt b { font: 800 clamp(40px, 6vw, 72px)/.95 var(--display); letter-spacing: -.045em; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.ad-hero .txt b i { font-style: normal; color: rgba(255,255,255,.55); }
.ad-hero .txt small { font: 650 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.ad-hero .txt small.sp { color: rgba(255,255,255,.6); }
.ad-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ad-tile { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--bg3); isolation: isolate; }
.ad-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.ad-tile:hover > img { transform: scale(1.04); }
.ad-tile.add { background: transparent; border: 1.5px dashed rgba(255,255,255,.22); display: grid; place-items: center; color: rgba(255,255,255,.6); }
.ad-tile.add:hover { border-color: #fff; color: #fff; }
.ad-tile.add svg { width: 30px; height: 30px; }
.ad-tile.cover { box-shadow: inset 0 0 0 3px #fff; }
.ad-tile .kind { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.ad-tile .kind svg { width: 18px; height: 18px; margin-left: 2px; }
.ad-tile .dur { position: absolute; z-index: 2; left: 8px; top: 8px; height: 22px; padding: 0 7px; border-radius: 99px; background: rgba(0,0,0,.5); font: 650 11px/22px var(--display); }
.ad-tile .covmark { position: absolute; z-index: 3; left: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; }
.ad-tile .covmark svg { width: 14px; height: 14px; fill: currentColor; }
.ad-tile .stats { position: absolute; z-index: 2; right: 8px; bottom: 8px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 80%; }
.ad-tile .stats .no { background: rgba(0,0,0,.6); color: var(--no); }
.ad-tile .stats .warn { background: rgba(0,0,0,.6); }
.ad-tile .tools { position: absolute; z-index: 4; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.ad-tile:hover .tools { opacity: 1; transform: none; }
.ad-tile .tools button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); color: #fff; }
.ad-tile .tools button:hover { background: #fff; color: #000; }
.ad-tile .tools button.on { background: #fff; color: #000; }
.ad-tile .tools svg { width: 15px; height: 15px; }
.ad-tile .nm { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 11.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .2s; }
.ad-tile:hover .nm { opacity: 1; }
.ad-tile:hover .stats { opacity: 0; }
.ad-tile .busy { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.4); }
.ad-tile .busy i { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin 1s linear infinite; }
.ad-tile .err { position: absolute; z-index: 3; left: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--no); color: #000; }
.ad-tile .err svg { width: 13px; height: 13px; }
.ad-dropall { position: fixed; z-index: 150; inset: 12px; border-radius: 28px; border: 2px dashed #fff; background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.ad-dropall.on { opacity: 1; }
.ad-dropall div { display: flex; flex-direction: column; align-items: center; gap: 12px; font: 750 28px/1 var(--display); }
.ad-dropall svg { width: 44px; height: 44px; }

/* Envois : panneau flottant */
.ad-up { position: fixed; z-index: 120; right: 16px; bottom: calc(16px + var(--safe-b)); width: min(380px, calc(100vw - 32px)); border-radius: 20px; background: rgba(22,22,26,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 50px rgba(0,0,0,.5); overflow: hidden; animation: dlIn .3s var(--ease); }
.ad-up-h { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; color: #fff; }
.ad-up-h > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ad-up-h b { font: 750 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.ad-up-h small { color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums; }
.ad-up-h .x { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--mut); }
.ad-up-h .x svg { width: 14px; height: 14px; }
.ad-up .ring { --p: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.15) 0); }
.ad-up .ring > span { width: 31px; height: 31px; border-radius: 50%; display: grid !important; place-items: center; background: #1a1a1e; }
.ad-up .ring svg { width: 15px; height: 15px; }
.ad-up-list { max-height: 40vh; overflow-y: auto; padding: 0 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.ad-up-list .upi { display: grid; grid-template-columns: 1fr 70px 38px; gap: 8px; align-items: center; font-size: 12px; }
.ad-up-list .upi span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.85); }
.ad-up-list .bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.ad-up-list .bar i { display: block; height: 100%; background: #fff; }
.ad-up-list .sz { text-align: right; color: var(--mut); font-variant-numeric: tabular-nums; }
.ad-up-list .upi.err .sz { color: var(--no); }

@media (max-width: 860px) {
  .ad-card { flex-basis: 100%; min-width: 0; }
  .ad-seg .lbl { display: none; }
  .ad-seg button.on .lbl { display: inline; }
  .ad-hero { height: 200px; border-radius: 22px; }
  .ad-assets { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .ad-tile .tools { opacity: 1; transform: none; }
  .ad-tile .stats { display: none; }
  .ad-dates { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .ad-date .word { font-size: 30px; }
}
@media (min-width: 861px) and (max-width: 1099px) { .ad-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 860px) {
  .ad-tile .tools { opacity: 0; transform: translateY(-4px); pointer-events: none; }
  .ad-tile.show .tools { opacity: 1; transform: none; pointer-events: auto; }
  .ad-tile.show .nm { opacity: 1; }
  .ad-bar .ad-title.sm { display: none; }
  .ad-title { max-width: 38vw; font-size: 17px; }
  .ad-tile .tools { flex-wrap: wrap; justify-content: flex-end; left: 8px; }
}
@media (max-width: 860px) {
  .ad-date .word { font-size: 26px; top: 44%; }
  .ad-date .stats { flex-wrap: nowrap; overflow: hidden; }
  .ad-date .stats > span:nth-child(n+3) { display: none; }
  .ad-date .tag { font-size: 11px; height: 24px; padding: 0 8px; top: 8px; right: 8px; }
}
@media (max-width: 520px) { .ad-bar .ad-mid { display: none; } }
/* Cartes « + » : icône et texte court */
.ad-card.add, .ad-date.add, .ad-tile.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ad-card.add small, .ad-date.add small, .ad-tile.add small, .ad-addspace small { font: 650 13px/1.2 var(--display); letter-spacing: .01em; text-align: center; padding: 0 10px; }
.ad-addspace { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ad-card.add .plus, .ad-date.add .plus, .ad-addspace .plus, .ad-tile.add .plus { display: flex; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.ad-card.add:hover .plus, .ad-date.add:hover .plus, .ad-addspace:hover .plus { transform: rotate(90deg) scale(1.08); }
.ad-tile.add:hover .plus { transform: translateY(-3px); }
.ad-card.add, .ad-date.add, .ad-tile.add, .ad-addspace { transition: border-color .25s, color .25s, background .25s, transform .3s var(--ease); }
.ad-card.add:hover, .ad-date.add:hover, .ad-tile.add:hover, .ad-addspace:hover { background: rgba(255,255,255,.04); }
/* Onglets : la pastille blanche glisse en douceur */
.ad-seg button { transition: background .3s cubic-bezier(.2,.8,.2,1), color .3s, transform .2s; }
.ad-seg button:active { transform: scale(.96); }
.ad-bar .circ { transition: transform .2s var(--spring), background .25s, color .25s; }
.ad-bar .circ:active { transform: scale(.92); }
/* Téléphone : la barre du bas affiche le nom de chaque onglet (Photos, Reels, Rushs) au lieu des icônes */
@media (max-width: 640px) {
  .tabs-d button .lbl { display: inline !important; }
  .tabs-d button > span:first-child { display: none !important; }
  .tabs-d button { padding: 0 14px; font-size: 14px; font-weight: 650; }
}
