/* ───────────────────────────────────────────────────────────
   BOBINE — système visuel « studio »
   Thème sombre, typographie Inter, un accent violet, cartes arrondies.
   ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  --bg: #0a0b0f;
  --surface: #111319;
  --surface-2: #171a22;
  --surface-3: #1e222c;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);
  --text: #eceef4;
  --text-2: #a4aabb;
  --mute: #6c7284;
  --accent: #7062ff;
  --accent-hi: #9a90ff;
  --accent-soft: rgba(112, 98, 255, 0.14);
  --grad: linear-gradient(135deg, #8b7fff 0%, #6a5af9 55%, #4f8cff 100%);
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.12);
  --err: #ff6b6b;
  --err-soft: rgba(255, 107, 107, 0.12);
  --warn: #f5b84b;
  --screen: #000;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --ring: 0 0 0 3px rgba(112, 98, 255, 0.35);
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* halo discret en haut de page */
body::before {
  content: '';
  position: fixed;
  inset: -20vh 0 auto;
  height: 70vh;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, rgba(112, 98, 255, 0.13), transparent 70%);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--sans); font-weight: 650; letter-spacing: -0.022em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(20px, 2.4vw, 24px); }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
h1 em, h2 em, h3 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p { margin: 0; }
::selection { background: rgba(112, 98, 255, 0.45); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--ring); }

.mono { font-size: 12.5px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.rule, .hair { border: 0; border-top: 1px solid var(--border); margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Boutons : <a class="btn"><span>Libellé</span><i><b>→</b></i></a> ── */
.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 16px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: 500 14px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn > span { display: inline-flex; align-items: center; gap: 8px; }
.btn > i { font-style: normal; display: inline-grid; place-items: center; opacity: 0.6; }
.btn > i b { font-weight: 500; font-size: 0.95em; display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.2); }
.btn:hover > i b { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--text); color: #0b0c10; border-color: transparent; }
.btn--ink:hover { background: #fff; border-color: transparent; }
.btn--ink > i { opacity: 0.55; }
.btn--accent {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px -8px rgba(112, 98, 255, 0.65);
}
.btn--accent:hover { filter: brightness(1.08); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px -8px rgba(112, 98, 255, 0.85); }
.btn--accent > i { opacity: 0.85; }
.btn--danger { color: var(--err); border-color: rgba(255, 107, 107, 0.3); background: var(--err-soft); }
.btn--danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.btn--sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn--lg { --h: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* lien texte */
.link {
  appearance: none;
  border: 0;
  background: none;
  padding: 2px 0;
  cursor: pointer;
  color: var(--text-2);
  font: 500 13.5px/1.3 var(--sans);
  text-decoration: none;
  transition: color 0.15s;
}
.link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-2); }
.link--danger { color: var(--err); }
.link--danger:hover { color: #ff8f8f; }

/* bouton icône */
.ibtn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-2);
  font: 500 14px/1 var(--sans);
  font-variant-emoji: text;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ibtn:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-2); }
.ibtn--play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 11px; padding-left: 2px; }
.ibtn--play:hover { background: var(--accent-hi); color: #fff; }
.ibtn[disabled] { opacity: 0.3; pointer-events: none; }

/* puces */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font: 500 12.5px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.is-on { background: var(--text); border-color: var(--text); color: #0b0c10; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font: 500 11.5px/1 var(--sans);
  white-space: nowrap;
}
.tag--accent { background: var(--accent-soft); color: var(--accent-hi); }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--mute { background: rgba(255, 255, 255, 0.04); color: var(--mute); }

/* ── Champs ── */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > label,
.label { font: 500 13px/1.2 var(--sans); color: var(--text-2); }
.field small { color: var(--mute); font-size: 12.5px; }
.input,
.select,
.textarea {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: 400 14.5px/1.4 var(--sans);
  padding: 0 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input::placeholder,
.textarea::placeholder { color: var(--mute); }
.input:hover,
.select:hover,
.textarea:hover { border-color: rgba(255, 255, 255, 0.2); }
.input:focus,
.select:focus,
.textarea:focus { border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.input--title { height: 52px; font-size: 18px; font-weight: 550; letter-spacing: -0.01em; padding: 0 14px; }
.textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a4aabb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.select option { background: var(--surface-2); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check:hover { color: var(--text); }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex: none; }
.file {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 6px 12px 6px 6px;
  border: 1px dashed var(--border-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  font-size: 13.5px;
  transition: border-color 0.15s;
}
.file:hover { border-color: var(--accent); }
.file input { display: none; }
.file b { flex: none; font: 500 13px/1 var(--sans); padding: 9px 12px; border-radius: 7px; background: var(--surface-3); color: var(--text); border: 1px solid var(--border-2); }

/* ── Barre supérieure ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar__in { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 650 17px/1 var(--sans); letter-spacing: -0.02em; color: var(--text); }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font: 500 14px/1 var(--sans);
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.is-on { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.search { position: relative; width: 260px; }
.search input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 0 34px 0 34px;
  font: 400 14px var(--sans);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search input::placeholder { color: var(--mute); }
.search input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.search svg { position: absolute; left: 11px; top: 10.5px; width: 15px; height: 15px; color: var(--mute); }
.search kbd { position: absolute; right: 8px; top: 8px; font: 500 11px/1 var(--sans); padding: 4px 6px; border-radius: 5px; border: 1px solid var(--border-2); color: var(--mute); }

/* ── En-tête de page ── */
.phead { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding: 40px 0 28px; }
.phead .kicker { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; color: var(--accent-hi); font-size: 13px; font-weight: 550; }
.phead__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.lede { max-width: 640px; color: var(--text-2); font-size: 15.5px; margin-top: 10px; }

.section { padding: 32px 0; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__head h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.section__head .count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text-2); font: 600 12px/1 var(--sans); }

/* ── Chiffres clés ── */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ledger > div { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.ledger .mono { font-size: 13px; }
.ledger b { display: block; font: 650 28px/1 var(--sans); letter-spacing: -0.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.ledger b small { font-size: 16px; color: var(--mute); }

/* ── Cartes de formation ── */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.poster {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s;
}
.poster:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(112, 98, 255, 0.15); }
.poster__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.poster__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.poster:hover .poster__img img { transform: scale(1.04); }
.poster__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 45%); pointer-events: none; }
.poster__img .play {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding-left: 2px;
  border-radius: 50%;
  background: #fff;
  color: #0b0c10;
  font-size: 12px;
  font-variant-emoji: text;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(8px) scale(0.9);
  opacity: 0;
  transition: all 0.25s var(--ease);
}
.poster:hover .play { transform: none; opacity: 1; }
.poster h3 { order: 1; padding: 16px 16px 0; font-size: 16.5px; }
.poster p { order: 2; padding: 6px 16px 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster__meta { order: 3; margin-top: auto; display: flex; gap: 10px; padding: 14px 16px 16px; color: var(--mute); }
.poster__meta span { display: inline-flex; align-items: center; gap: 6px; }
.poster__meta span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* espace réservé : dégradé + initiale (teinte variable) */
.ph {
  --h: 248;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 0% 0%, hsl(var(--h) 80% 62% / 0.55), transparent 60%),
    linear-gradient(135deg, hsl(var(--h) 55% 30%), hsl(calc(var(--h) + 40) 50% 14%));
  font: 700 64px/1 var(--sans);
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.92);
}
.ph--sm { font-size: 22px; }
:is(.posters, .reel) > :nth-child(5n + 2) .ph { --h: 200; }
:is(.posters, .reel) > :nth-child(5n + 3) .ph { --h: 290; }
:is(.posters, .reel) > :nth-child(5n + 4) .ph { --h: 165; }
:is(.posters, .reel) > :nth-child(5n + 5) .ph { --h: 330; }

/* vue liste du catalogue */
.posters.is-list { grid-template-columns: 1fr; gap: 10px; }
.posters.is-list .poster {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  grid-template-areas: 'img title meta' 'img desc meta';
  grid-template-rows: auto 1fr;
  column-gap: 18px;
  padding: 10px;
  border-radius: var(--r);
}
.posters.is-list .poster:hover { transform: none; }
.posters.is-list .poster__img { grid-area: img; border-radius: 8px; }
.posters.is-list .poster h3 { grid-area: title; padding: 8px 0 0; }
.posters.is-list .poster p { grid-area: desc; padding: 4px 0 0; }
.posters.is-list .poster__meta { grid-area: meta; align-self: center; padding: 0 8px; }
.posters.is-list .ph { font-size: 32px; }
.posters.is-list .play { display: none; }

/* ── Listes de vidéos ── */
.reel { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.reel li {
  display: grid;
  grid-template-columns: 28px 120px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.reel li:first-child { border-top: 0; }
.reel li:hover { background: var(--surface-2); }
.reel li.is-current { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.reel .n { font: 500 13px/1 var(--sans); color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.reel li.is-seen .n { color: var(--ok); }
.reel li.is-seen .n::before { content: '✓ '; }
.reel .th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.reel .th img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.reel .ti { min-width: 0; }
.reel .ti a { text-decoration: none; font-size: 14.5px; font-weight: 550; letter-spacing: -0.005em; }
.reel .ti a:hover { color: var(--accent-hi); }
.reel .ti .muted { font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel .du { font: 500 12.5px var(--sans); color: var(--text-2); font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); }
.reel .du:empty { display: none; }
.reel .act { display: flex; gap: 6px; align-items: center; }
.reel .act form { margin: 0; }

/* ── Notifications ── */
.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 12px 14px 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: drop 0.35s var(--ease);
}
.notice::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); }
.notice--ok { border-color: rgba(61, 220, 151, 0.3); }
.notice--ok::before { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.notice--error { border-color: rgba(255, 107, 107, 0.35); color: #ffb3b3; }
.notice--error::before { background: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.notice--share { border-color: rgba(112, 98, 255, 0.4); flex-wrap: wrap; }
.notice--share::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.notice .close { margin-left: auto; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.copyline { display: flex; flex: 1 1 320px; min-width: 0; height: 38px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--bg); overflow: hidden; }
.copyline input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; font: 400 12.5px var(--mono); color: var(--text-2); outline: none; }
.copyline button { flex: none; border: 0; border-left: 1px solid var(--border-2); background: var(--surface-3); color: var(--text); padding: 0 14px; font: 500 13px var(--sans); cursor: pointer; transition: background 0.15s; }
.copyline button:hover { background: var(--accent); }

/* ── Grilles utilitaires ── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 17px; margin-bottom: 14px; }
.panel .label { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.empty { padding: 60px 24px; text-align: center; border: 1px dashed var(--border-2); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.015); }
.empty h3 { font-size: 19px; margin-bottom: 8px; }
.empty p { color: var(--text-2); margin-bottom: 22px; }
.empty p:last-child { margin-bottom: 0; }

/* ── Fiche formation ── */
.hero-f { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; padding: 36px 0 40px; border-bottom: 1px solid var(--border); }
.hero-f__img { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.hero-f__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-f__img .ph { font-size: 120px; }
.hero-f h1 { font-size: clamp(28px, 4vw, 44px); margin: 14px 0 14px; letter-spacing: -0.03em; }
.hero-f .desc { color: var(--text-2); font-size: 15.5px; white-space: pre-line; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.facts > div { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.facts b { display: block; font: 650 22px/1.1 var(--sans); letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }

.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.docs li:first-child { border-top: 0; }
.docs .ext { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-hi); font: 700 10px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; }
.docs a { text-decoration: none; font-weight: 550; font-size: 14px; }
.docs a:hover { color: var(--accent-hi); }
.docs .grow { flex: 1; min-width: 0; }
.docs .grow > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs .grow .mono { font-size: 12px; margin-top: 2px; }
#documents .docs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px 16px; }

.sharelist { list-style: none; margin: 0; padding: 0; }
.sharelist li { padding: 12px 0; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.sharelist li:first-child { border-top: 0; padding-top: 0; }
.sharelist .copyline { height: 34px; }
.sharelist .copyline input { font-size: 12px; }

/* ── Lecteur ── */
.theatre { display: grid; grid-template-columns: minmax(0, 1fr) 340px; margin-top: 20px; background: var(--screen); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.screen { position: relative; background: var(--screen); display: flex; flex-direction: column; }
.screen video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.transport { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; background: #0d0e13; border-top: 1px solid var(--border); flex: 1; align-content: flex-start; }
.transport .chip { background: rgba(255, 255, 255, 0.04); }
.transport .chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.transport .sep { width: 1px; height: 18px; background: var(--border-2); margin: 0 6px; }
.transport .grow { flex: 1; }
.transport .resume { color: var(--accent-hi); font-size: 12.5px; }
.playlist { background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; max-height: 100%; }
.playlist header { padding: 16px 18px 14px; border-bottom: 1px solid var(--border); }
.playlist header b { display: block; font: 600 15px/1.3 var(--sans); margin-top: 4px; }
.playlist ol { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 1; }
.playlist li a { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 9px; text-decoration: none; font-size: 13.5px; color: var(--text-2); transition: background 0.15s, color 0.15s; }
.playlist li a:hover { background: var(--surface-2); color: var(--text); }
.playlist li .n { font: 500 12px var(--sans); color: var(--mute); font-variant-numeric: tabular-nums; }
.playlist li .d { font: 500 12px var(--sans); color: var(--mute); font-variant-numeric: tabular-nums; }
.playlist li.is-current a { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(112, 98, 255, 0.35); }
.playlist li.is-current .n { color: var(--accent-hi); }
.playlist li.is-seen .n::after { content: ' ✓'; color: var(--ok); }
.theatre.no-list { grid-template-columns: 1fr; }
.vhead { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding: 28px 0 0; }
.vhead h1 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.025em; }

/* ── Navigateur de fichiers ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font: 500 13px var(--sans); margin-bottom: 16px; }
.crumbs a { text-decoration: none; padding: 5px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.crumbs a:hover { color: var(--text); border-color: var(--border-2); }
.files { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.files li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.files li:first-child { border-top: 0; }
.files li:hover { background: var(--surface-2); }
.files li a { text-decoration: none; font-weight: 550; }
.files li a:hover { color: var(--accent-hi); }
.files .glyph { font: 400 16px var(--sans); color: var(--mute); text-align: center; }

/* ── Sections du programme ── */
.sec + .sec { margin-top: 34px; }
.sec__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 0 2px 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.sec__title { flex: 1; min-width: 0; }
.sec__title .mono { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.sec__title h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-top: 3px; }
.sec__head .act { display: flex; gap: 6px; }
.sec__head .act form { margin: 0; }
.sec-add { margin-top: 30px; gap: 12px; }
.sec-label { margin: 26px 2px 10px; font: 600 15px var(--sans); }
.sec-label:first-of-type { margin-top: 0; }
.select--sm { height: 32px; width: 150px; font-size: 13px; padding-left: 10px; border-radius: 8px; background-position: right 10px center; }
.playlist li.sec { padding: 14px 12px 6px; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }
.playlist li.sec:first-child { padding-top: 6px; }

/* ── Dépôt ── */
.drop {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 300px;
  padding: 40px;
  border: 1.5px dashed var(--border-2);
  border-radius: 20px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(112, 98, 255, 0.1), transparent 70%), var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.drop:hover { border-color: rgba(112, 98, 255, 0.5); }
.drop.is-over { border-color: var(--accent); background-color: var(--accent-soft); }
.drop h2 { font-size: 24px; }
.drop p { color: var(--text-2); margin: 8px 0 22px; }
.drop input { display: none; }
.drop--sm { min-height: 0; padding: 14px 16px; margin-top: 10px; border-radius: var(--r-lg); background: transparent; font: 500 13.5px var(--sans); color: var(--text-2); }
.drop--sm b { color: var(--accent-hi); margin-right: 4px; }
.drop--sm u { color: var(--accent-hi); text-underline-offset: 3px; }
.drop--sm + .queue { margin-top: 10px; }
.queue { list-style: none; margin: 20px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.queue li { display: grid; grid-template-columns: 1fr 140px 150px; gap: 18px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); }
.queue li:first-child { border-top: 0; }
.queue .name { font-weight: 550; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue .bar { height: 6px; border-radius: 999px; background: var(--surface-3); position: relative; overflow: hidden; }
.queue .bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--grad); transition: width 0.2s; }
.queue li.is-done .bar span { background: var(--ok); }
.queue li.is-error .bar span { background: var(--err); width: 100% !important; }
.queue li.is-busy .bar span { background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, var(--accent-hi) 8px 16px); background-size: 200% 100%; animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: -22px 0; } }
.queue .st { font: 500 12.5px var(--sans); color: var(--text-2); text-align: right; }
.queue li.is-done .st { color: var(--ok); }
.queue li.is-error .st { color: var(--err); }

/* ── Tableaux ── */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 600 11.5px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); padding: 12px 16px; background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 16px; border-top: 1px solid var(--border); vertical-align: middle; font-size: 14px; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table td.num { font: 600 14px var(--sans); font-variant-numeric: tabular-nums; color: var(--text-2); }
.table td a:hover { color: var(--accent-hi); }
.table .actions { display: flex; gap: 14px; justify-content: flex-end; align-items: center; }
.table form { margin: 0; display: inline; }
.table tr.is-off td { opacity: 0.45; }

/* ── Fenêtre modale ── */
dialog.sheet {
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
}
dialog.sheet::backdrop { background: rgba(4, 5, 8, 0.7); backdrop-filter: blur(6px); }
dialog.sheet[open] { animation: pop 0.25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.sheet header { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.sheet header .mono { font-weight: 600; font-size: 14px; }
.sheet .body { padding: 22px 22px 4px; }
.sheet footer { display: flex; justify-content: flex-end; gap: 12px; align-items: center; padding: 6px 22px 22px; }
.choice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--border-2); border-radius: 11px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 8px 4px; border-radius: 8px; text-align: center; font: 500 13px var(--sans); color: var(--text-2); transition: background 0.15s, color 0.15s; }
.choice label:hover span { color: var(--text); }
.choice input:checked + span { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--border-2); }
.choice input:focus-visible + span { box-shadow: var(--ring); }

/* ── Pied de page ── */
.foot { margin-top: 80px; border-top: 1px solid var(--border); padding-top: 22px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 20px; color: var(--mute); font-weight: 400; }

/* ═══════════ PAGE D'ACCUEIL ═══════════ */
.landing .topbar { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: absolute; left: 0; right: 0; }
.landing .topbar__in { height: 72px; }
.lp-nav { display: flex; align-items: center; gap: 22px; }
.lp-hero { padding: 140px 0 40px; text-align: center; }
.lp-badge { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 6px; border: 1px solid var(--border-2); border-radius: 999px; background: rgba(255, 255, 255, 0.03); color: var(--text-2); font-size: 13px; font-weight: 500; animation: fade 0.8s both; }
.lp-badge b { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hi); font-size: 12px; font-weight: 600; }
.lp-title { margin: 24px auto 0; max-width: 900px; font-size: clamp(38px, 6.6vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; animation: fade 0.8s 0.05s both; }
.lp-hero .lede { margin: 22px auto 0; max-width: 620px; font-size: clamp(16px, 1.6vw, 18.5px); animation: fade 0.8s 0.12s both; }
.lp-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; animation: fade 0.8s 0.18s both; }
.lp-note { margin-top: 16px; color: var(--mute); font-size: 13px; animation: fade 0.8s 0.22s both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* capture d'écran stylisée du produit */
.lp-shot { position: relative; margin: 64px auto 0; max-width: 1060px; animation: fade 1s 0.3s both; }
.lp-shot::before { content: ''; position: absolute; inset: 10% 8% -6%; background: var(--grad); filter: blur(90px); opacity: 0.28; z-index: -1; border-radius: 50%; }
.lp-win { border: 1px solid var(--border-2); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05); text-align: left; }
.lp-win__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.lp-win__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.lp-win__bar span { margin: 0 auto; padding: 4px 40px; border-radius: 7px; background: var(--bg); color: var(--mute); font-size: 12px; }
.lp-win__body { display: grid; grid-template-columns: 1fr 300px; }
.lp-screen { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(70% 90% at 30% 20%, rgba(139, 127, 255, 0.55), transparent 60%), radial-gradient(60% 80% at 90% 90%, rgba(79, 140, 255, 0.45), transparent 60%), #0c0d18; display: grid; place-items: center; }
.lp-screen .big-play { display: grid; place-items: center; width: 72px; height: 72px; padding-left: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: #0b0c10; font-size: 22px; font-variant-emoji: text; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1); }
.lp-screen .cap { position: absolute; left: 20px; bottom: 44px; }
.lp-screen .cap small { display: block; color: rgba(255, 255, 255, 0.7); font-size: 12px; }
.lp-screen .cap b { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.lp-screen .prog { position: absolute; left: 20px; right: 20px; bottom: 20px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); }
.lp-screen .prog::before { content: ''; position: absolute; inset: 0 62% 0 0; border-radius: inherit; background: #fff; }
.lp-list { border-left: 1px solid var(--border); padding: 10px; }
.lp-list header { padding: 8px 10px 12px; }
.lp-list header small { color: var(--mute); font-size: 12px; }
.lp-list header b { display: block; font-size: 14px; font-weight: 600; }
.lp-item { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; font-size: 13px; color: var(--text-2); }
.lp-item.is-on { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(112, 98, 255, 0.3); }
.lp-item i { aspect-ratio: 16 / 9; border-radius: 6px; background: linear-gradient(135deg, hsl(var(--h, 248) 55% 40%), hsl(calc(var(--h, 248) + 40) 50% 18%)); }
.lp-item small { display: block; color: var(--mute); font-size: 11.5px; }

.lp-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 70px 0 0; }
.lp-logos span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); font-size: 13.5px; font-weight: 500; background: rgba(255, 255, 255, 0.02); }
.lp-logos span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.lp-section { padding: 110px 0 0; }
.lp-section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.lp-section__head .eyebrow { color: var(--accent-hi); font-size: 13.5px; font-weight: 600; }
.lp-section__head h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.035em; }
.lp-section__head p { margin-top: 14px; color: var(--text-2); font-size: 16px; }
.lp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-feat { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.25s var(--ease); }
.lp-feat:hover { border-color: var(--border-2); transform: translateY(-2px); }
.lp-feat .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-hi); box-shadow: inset 0 0 0 1px rgba(112, 98, 255, 0.25); }
.lp-feat .ico svg { width: 21px; height: 21px; }
.lp-feat h3 { margin: 18px 0 8px; font-size: 17px; }
.lp-feat p { color: var(--text-2); font-size: 14.5px; }

.lp-end { position: relative; margin-top: 110px; padding: 64px 32px; text-align: center; border: 1px solid var(--border-2); border-radius: 24px; overflow: hidden; background: radial-gradient(70% 120% at 50% 0%, rgba(112, 98, 255, 0.28), transparent 70%), var(--surface); }
.lp-end h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; letter-spacing: -0.035em; }
.lp-end p { margin: 14px auto 28px; max-width: 520px; color: var(--text-2); font-size: 16px; }

/* ═══════════ CONNEXION ═══════════ */
.login { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 40px var(--gutter); overflow: hidden; }
.login::before { content: ''; position: absolute; width: 720px; height: 720px; left: 50%; top: 50%; transform: translate(-50%, -62%); background: var(--grad); filter: blur(140px); opacity: 0.22; border-radius: 50%; z-index: -1; }
.login__card { width: min(420px, 100%); padding: 34px 32px 30px; background: rgba(17, 19, 25, 0.86); border: 1px solid var(--border-2); border-radius: 20px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); animation: pop 0.4s var(--ease); }
.login__card .brand { margin-bottom: 28px; }
.login__card h1 { font-size: 26px; letter-spacing: -0.03em; }
.login__card .sub { margin: 6px 0 26px; color: var(--text-2); font-size: 14.5px; }
.login__card .btn { margin-top: 6px; }
.login__note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--mute); font-size: 13px; line-height: 1.6; }
.login__back { position: absolute; top: 22px; left: var(--gutter); }
.login__err { margin-bottom: 20px; padding: 11px 14px; border: 1px solid rgba(255, 107, 107, 0.35); border-radius: 10px; background: var(--err-soft); color: #ffb3b3; font-size: 14px; }
.pw { position: relative; }
.pw .input { padding-right: 80px; }
.pw button { position: absolute; right: 12px; bottom: 11px; font-size: 13px; }

/* ═══════════ PAGES PARTAGÉES ═══════════ */
.sharebar .topbar__in { justify-content: space-between; }
.sharebar .mono { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hi); font-size: 12.5px; }
.sharebar .mono::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hi); }

.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.err-page .code { font: 800 clamp(96px, 18vw, 180px)/0.9 var(--sans); letter-spacing: -0.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-page h1 { font-size: 30px; margin: 22px 0 12px; }
.err-page p { color: var(--text-2); margin-bottom: 28px; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1080px) {
  .theatre { grid-template-columns: 1fr; }
  .playlist { border-left: 0; border-top: 1px solid var(--border); max-height: 380px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .search { width: 200px; }
  .lp-win__body { grid-template-columns: 1fr; }
  .lp-list { display: none; }
}
@media (max-width: 900px) {
  .topbar__in { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 12px; }
  .landing .topbar__in { padding-top: 0; flex-wrap: nowrap; height: 64px; }
  .nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--border); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .search { flex: 1; width: auto; margin-left: auto; max-width: 340px; }
  .search kbd { display: none; }
  .hero-f { grid-template-columns: 1fr; gap: 26px; }
  .lp-hero { padding-top: 110px; }
  .lp-feats { grid-template-columns: 1fr 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .phead { grid-template-columns: 1fr; padding-top: 28px; }
  .phead__actions { justify-content: flex-start; }
  .reel li { grid-template-columns: 96px 1fr auto; gap: 12px; padding: 10px 12px; }
  .reel .n,
  .reel .du,
  .reel .act .hide-sm { display: none; }
  .posters { grid-template-columns: 1fr; gap: 16px; }
  .posters.is-list .poster { grid-template-columns: 100px 1fr; grid-template-areas: 'img title' 'img desc'; }
  .posters.is-list .poster__meta { display: none; }
  .queue li { grid-template-columns: 1fr; gap: 8px; }
  .queue .st { text-align: left; }
  .facts b { font-size: 19px; }
  .theatre { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-left: 0; border-right: 0; border-radius: 0; }
  .choice { grid-template-columns: repeat(2, 1fr); }
  .foot { flex-direction: column; gap: 6px; }
  .table .hide-sm { display: none; }
  .lp-feats { grid-template-columns: 1fr; }
  .lp-nav .link { display: none; }
  .lp-badge { height: auto; min-height: 32px; padding: 5px 12px 5px 5px; font-size: 12px; text-align: left; border-radius: 16px; }
  .lp-shot { margin-top: 44px; }
  .lp-screen .cap { display: none; }
  .lp-screen .big-play { width: 54px; height: 54px; font-size: 17px; }
  .lp-end { padding: 48px 20px; }
  .login__card { padding: 28px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

[hidden] { display: none !important; }
