/* ─────────────────────────────────────────────────────────
   PLONGÉE.tv — version « Studio » (style VOD type OCS)
   Sidebar icônes étroite + hero plein cadre + accent orange
   ───────────────────────────────────────────────────────── */

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

:root {
  /* Surfaces */
  --bg:        #0a0a0a;
  --bg-2:      #141414;
  --bg-3:      #1d1d1d;
  --line:      rgba(255, 255, 255, .08);
  --line-2:    rgba(255, 255, 255, .14);
  --line-3:    rgba(255, 255, 255, .22);

  /* Texte */
  --text:      #ffffff;
  --text-2:    #d6d6d6;
  --mute:      #8a8a8a;
  --dim:       #555555;

  /* Accent par défaut : bleu cyan */
  --orange:    #00b4d8;
  --orange-2:  #48cae4;
  --orange-soft: rgba(0, 180, 216, .14);
  --orange-glow: rgba(0, 180, 216, .35);

  /* Layout */
  --side-w:    66px;
  --r-sm:      4px;
  --r-md:      8px;

  /* Type */
  --display:   'Bebas Neue', 'Oswald', sans-serif;
  --body:      'Inter', system-ui, sans-serif;

  --ease:      cubic-bezier(.22, .61, .36, 1);
  --spring:    cubic-bezier(.34, 1.56, .64, 1);
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: clip;
}
section[id] { scroll-margin-top: 24px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
input { font: inherit; }

::selection { background: var(--orange); color: var(--bg); }

/* ═════════════════════════════════════════════
   SIDEBAR — icônes étroite (66px)
   ═════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--side-w);
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 50;
  padding: 16px 0;
  gap: 8px;
}

.side-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.side-logo .mark {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--orange);
  font-weight: 700;
  line-height: 1;
}
.side-logo .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #c2410c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 700;
  font-size: 13px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
}
.side-link {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  transition: color .15s, background .15s;
}
.side-link svg { width: 22px; height: 22px; }
.side-link:hover { color: var(--text); background: var(--bg-2); }
.side-link.active { color: var(--orange); }
.side-link.active::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  background: var(--orange);
  border-radius: 2px;
}
/* Tooltip */
.side-link::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-3);
  color: var(--text);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  border: 1px solid var(--line);
  font-weight: 500;
}
.side-link:hover::after { opacity: 1; }

.side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  width: 100%;
}

/* ═════════════════════════════════════════════
   MAIN — décalé de la sidebar
   ═════════════════════════════════════════════ */
main {
  margin-left: var(--side-w);
  min-height: 100vh;
}

/* ═════════════════════════════════════════════
   HERO — full bleed massive avec titre overlay
   ═════════════════════════════════════════════ */
.hero {
  position: relative;
  height: clamp(560px, 80vh, 760px);
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(.78) contrast(1.05);
}
.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 35%),
    linear-gradient(to right, rgba(10,10,10,.8) 0%, rgba(10,10,10,.1) 50%, rgba(10,10,10,.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 56px 64px;
  max-width: 1320px;
}

.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-kicker::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--orange);
}

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(72px, 11vw, 168px);
  line-height: .85;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
  /* effet "stencil" : ombre orange légère sous le texte */
  text-shadow:
    0 2px 0 rgba(255,111,0,.12),
    0 0 80px rgba(0,0,0,.4);
}
.hero-title em {
  font-style: normal;
  color: var(--orange);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.hero-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid var(--line-2);
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-meta .pill.age {
  background: rgba(255,111,0,.15);
  border-color: rgba(255,111,0,.4);
  color: var(--orange);
}

.hero-desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 22px;
  max-width: 580px;
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-tags a {
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
  transition: border-color .2s, color .2s;
}
.hero-tags a:hover { border-color: var(--orange); color: var(--orange); }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: lowercase;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-watch:hover { background: var(--orange); color: var(--bg); }
.btn-watch::before {
  content: '▶';
  font-size: 12px;
  line-height: 1;
}
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border: 2px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.btn-add:hover { border-color: var(--text); background: rgba(255, 255, 255, .08); }
.btn-add::before {
  content: '+';
  font-size: 18px;
  line-height: 1;
  color: var(--orange);
}

/* ═════════════════════════════════════════════
   SECTIONS
   ═════════════════════════════════════════════ */
.section {
  padding: 56px 56px 16px;
}
.section-head {
  margin-bottom: 22px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.01em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--text);
}

/* ═════════════════════════════════════════════
   ROW (carousel horizontal)
   ═════════════════════════════════════════════ */
.row-wrap { position: relative; }
.row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 16px;
}
.row::-webkit-scrollbar { display: none; }

.row-btn {
  position: absolute;
  top: 0;
  bottom: 16px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, rgba(10,10,10,.95), transparent);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
  z-index: 5;
}
.row-btn.right {
  left: auto;
  right: 0;
  background: linear-gradient(to left, rgba(10,10,10,.95), transparent);
}
.row-btn::after {
  content: '';
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--text);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round'><polyline points='9 18 15 12 9 6'/></svg>");
  background-repeat: no-repeat;
  background-position: 55% 50%;
  transition: transform .15s;
}
.row-btn.left::after { transform: rotate(180deg); }
.row-btn.left:hover::after { transform: rotate(180deg) scale(1.1); }
.row-btn.right:hover::after { transform: scale(1.1); }
.row-wrap:hover .row-btn { opacity: 1; }

/* Card landscape — pour "reprendre votre lecture" */
.card-land {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: var(--text);
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
  border: 2px solid transparent;
  transition: transform .25s var(--ease), border-color .2s;
  cursor: pointer;
}
.card-land:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}
.card-land .thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
}
.card-land .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.card-land:hover .thumb img { transform: scale(1.04); }
.card-land .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,.8));
  pointer-events: none;
}
.card-land .progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--orange);
  z-index: 2;
}
.card-land .runtime {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0, 0, 0, .8);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 3px;
  z-index: 3;
}
.card-land .body { padding: 12px 14px 14px; }
.card-land h3 {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-land .sub {
  font-size: 12px;
  color: var(--mute);
}

/* Card portrait — pour les exclusivités/posters */
.card-port {
  flex: 0 0 200px;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: var(--text);
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
  border: 2px solid transparent;
  transition: transform .25s var(--ease), border-color .2s;
  cursor: pointer;
}
.card-port:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}
.card-port .thumb {
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
}
.card-port .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.card-port:hover .thumb img { transform: scale(1.04); }
.card-port .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,.95));
  pointer-events: none;
}
.card-port .channel {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,.7);
  color: var(--text);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  padding: 3px 7px;
  border-radius: 3px;
  z-index: 2;
  border: 1px solid var(--line-2);
  text-transform: uppercase;
}
.card-port .cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 14px 14px;
  z-index: 2;
}
.card-port .cap h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.card-port .cap .meta {
  font-size: 11px;
  color: var(--text-2);
}

/* Section signature : grand bloc + 2 portraits */
.signature {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.sig-feat {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a05 0%, #0a0a0a 60%);
  border: 2px solid transparent;
  transition: transform .25s, border-color .2s;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sig-feat:hover { transform: translateY(-4px); border-color: var(--orange); }
.sig-feat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,111,0,.5) 0%, transparent 60%);
  filter: blur(40px);
  opacity: .55;
  pointer-events: none;
}
.sig-feat .sig-mark {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  text-align: center;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.sig-feat .sig-mark .big {
  font-size: clamp(48px, 5vw, 96px);
  font-weight: 700;
  color: var(--orange);
  line-height: .85;
  text-shadow: 0 0 50px rgba(255,111,0,.5);
}
.sig-feat .sig-mark .small {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .35em;
  color: var(--text);
  margin-top: 8px;
  text-transform: lowercase;
  font-style: italic;
}

.sig-article {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color .2s, transform .25s;
  text-decoration: none;
  color: var(--text);
}
.sig-article:hover { transform: translateY(-4px); border-color: var(--orange); }
.sig-article .pills {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sig-article .pills span {
  background: rgba(255,111,0,.15);
  border: 1px solid rgba(255,111,0,.3);
  color: var(--orange);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sig-article h3 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.sig-article p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}
.sig-article .read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
  border: 2px solid var(--orange);
  padding: 8px 18px;
  border-radius: var(--r-sm);
  align-self: flex-start;
  text-transform: lowercase;
}
.sig-article .read::before { content: '▶'; font-size: 10px; }
.sig-article:hover .read { background: var(--orange); color: var(--bg); }

.sig-photo {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .25s, border-color .2s;
}
.sig-photo:hover { transform: translateY(-4px); border-color: var(--orange); }
.sig-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* ═════════════════════════════════════════════
   FOOTER (compact)
   ═════════════════════════════════════════════ */
footer {
  margin-top: 80px;
  padding: 48px 56px 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.ft-brand .mark {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -.01em;
  margin-bottom: 12px;
  display: inline-block;
}
.ft-brand p { font-size: 13.5px; color: var(--mute); line-height: 1.55; max-width: 280px; }
.ft-col h4 {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 700;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col ul a { font-size: 13.5px; color: var(--mute); transition: color .15s; }
.ft-col ul a:hover { color: var(--orange); }
.ft-bottom {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .04em;
}

/* ═════════════════════════════════════════════
   PAGE LOGIN
   ═════════════════════════════════════════════ */
.auth-wrap {
  margin-left: var(--side-w);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(255,111,0,.12), transparent 50%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 44px 36px;
}
.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 32px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: -.01em;
}
.auth-card h1 {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.005em;
  text-transform: lowercase;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
  line-height: 1;
}
.auth-card .auth-sub {
  font-size: 14px;
  color: var(--mute);
  text-align: center;
  margin-bottom: 28px;
}
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
  font-weight: 600;
}
.auth-field input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14.5px;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}
.auth-field input:focus { border-color: var(--orange); }
.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 0 22px;
  font-size: 13px;
}
.auth-row label { color: var(--text-2); display: flex; align-items: center; gap: 7px; cursor: pointer; }
.auth-row a { color: var(--orange); font-weight: 600; }
.btn-primary {
  width: 100%;
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: lowercase;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s;
}
.btn-primary:hover { background: var(--orange); color: var(--bg); }
.auth-sep {
  text-align: center;
  margin: 22px 0;
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--mute);
  position: relative;
}
.auth-sep::before, .auth-sep::after {
  content: '';
  position: absolute;
  top: 50%; width: 38%; height: 1px;
  background: var(--line);
}
.auth-sep::before { left: 0; }
.auth-sep::after { right: 0; }
.auth-social { display: flex; gap: 8px; margin-bottom: 20px; }
.btn-soc {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 11px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s;
}
.btn-soc:hover { border-color: var(--orange); }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--mute); }
.auth-foot a { color: var(--orange); font-weight: 600; }

/* ═════════════════════════════════════════════
   PAGE VIDEO
   ═════════════════════════════════════════════ */
.player-section { background: #000; margin-left: var(--side-w); }
.player {
  width: 100%;
  aspect-ratio: 21/9;
  max-height: 78vh;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.player-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.4); }
.player-overlay { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.big-play {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px rgba(255,111,0,.35);
  cursor: pointer;
  transition: transform .2s var(--spring);
}
.big-play:hover { transform: scale(1.06); }
.big-play svg { color: var(--bg); margin-left: 5px; }
.player-info {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.video-container {
  margin-left: var(--side-w);
  padding: 56px 56px 80px;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
}
.vid-title {
  font-family: var(--display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .95;
  margin-bottom: 18px;
  color: var(--text);
}
.vid-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 24px;
  align-items: center;
}
.vid-meta .pill {
  background: rgba(0,0,0,.6);
  border: 1px solid var(--line-2);
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}
.vid-meta .pill.age { background: rgba(255,111,0,.15); border-color: rgba(255,111,0,.4); color: var(--orange); }
.hero-rating { color: var(--orange); font-weight: 700; }

.vid-actions { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: transparent;
  border: 2px solid var(--line-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--r-sm);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  text-transform: lowercase;
}
.action-btn:hover { border-color: var(--orange); color: var(--orange); }
.action-btn.primary { border-color: var(--orange); color: var(--orange); }
.action-btn.primary:hover { background: var(--orange); color: var(--bg); }

.vid-desc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 24px 28px;
  border-radius: var(--r-md);
  margin-bottom: 24px;
}
.vid-desc h3 {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 14px;
}
.vid-desc p { font-size: 15px; line-height: 1.7; color: var(--text-2); }

.vid-credits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.vid-credit {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.vid-credit:nth-child(2n) { border-right: none; }
.vid-credit:nth-last-child(-n+2) { border-bottom: none; }
.vid-credit .lbl {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
  margin-bottom: 4px;
}
.vid-credit .val {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.related-side h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  text-transform: lowercase;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  letter-spacing: -.005em;
}
.related-list { display: flex; flex-direction: column; gap: 4px; }
.related-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 10px;
  border-radius: var(--r-sm);
  align-items: start;
  text-decoration: none;
  color: var(--text);
  transition: background .2s;
  cursor: pointer;
}
.related-item:hover { background: var(--bg-2); }
.related-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  background: var(--bg-3);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb .runtime {
  position: absolute;
  bottom: 4px; right: 4px;
  background: rgba(0,0,0,.8);
  color: var(--text);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 600;
}
.related-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-sub { font-size: 12px; color: var(--mute); }

/* ═════════════════════════════════════════════
   THEMES — Bleu (default) · Clair · Orange
   ═════════════════════════════════════════════ */

/* B · Clair (fond blanc, sidebar reste sombre) */
html.theme-b {
  --bg:      #f6f6f6;
  --bg-2:    #ffffff;
  --bg-3:    #ececec;
  --line:    rgba(10, 10, 10, .10);
  --line-2:  rgba(10, 10, 10, .16);
  --line-3:  rgba(10, 10, 10, .24);
  --text:    #0a0a0a;
  --text-2:  #2a2a2a;
  --mute:    #6b6b6b;
  --dim:     #aaa;
}
/* la sidebar reste sombre pour cohérence brand (pattern Apple Music) */
html.theme-b .sidebar {
  background: #0a0a0a;
  border-right-color: rgba(255,255,255,.08);
}
html.theme-b .sidebar .side-link { color: #8a8a8a; }
html.theme-b .sidebar .side-link:hover { color: #fff; background: #1d1d1d; }
html.theme-b .sidebar .side-link.active { color: var(--orange); }
html.theme-b .sidebar .side-link::after { background: #1d1d1d; color: #fff; border-color: rgba(255,255,255,.1); }
html.theme-b .sidebar .side-link.active::before { background: var(--orange); }
html.theme-b .sidebar .side-logo { border-bottom-color: rgba(255,255,255,.08); }
html.theme-b .sidebar .side-foot { border-top-color: rgba(255,255,255,.08); }
html.theme-b ::selection { background: var(--orange); color: #fff; }
/* hero overlay plus léger en clair */
html.theme-b .hero-img::after {
  background:
    linear-gradient(to top, rgba(246,246,246,1) 0%, rgba(246,246,246,0) 35%),
    linear-gradient(to right, rgba(246,246,246,.7) 0%, rgba(246,246,246,.05) 50%, rgba(246,246,246,.4) 100%) !important;
}
html.theme-b .hero-title {
  color: #0a0a0a;
  text-shadow: 0 2px 0 rgba(0,180,216,.08), 0 0 60px rgba(255,255,255,.4);
}
html.theme-b .hero-meta .pill {
  background: rgba(255,255,255,.85);
  border-color: rgba(10,10,10,.18);
  color: var(--text);
  backdrop-filter: blur(6px);
}
html.theme-b .card-land,
html.theme-b .card-port { background: var(--bg-2); }
html.theme-b .card-land .thumb::after,
html.theme-b .card-port .thumb::after {
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.6));
}
html.theme-b .row-btn.left { background: linear-gradient(to right, rgba(246,246,246,.95), transparent); }
html.theme-b .row-btn.right { background: linear-gradient(to left, rgba(246,246,246,.95), transparent); }
html.theme-b .row-btn::after { background-color: var(--text); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'><polyline points='9 18 15 12 9 6'/></svg>"); }
html.theme-b .sig-feat { background: linear-gradient(135deg, rgba(0,180,216,.08), var(--bg-2) 60%); }
html.theme-b .sig-feat .sig-mark .small { color: var(--text); }
html.theme-b .sig-article { background: var(--bg-2); }
html.theme-b .vid-credits,
html.theme-b .vid-desc,
html.theme-b .auth-card { background: var(--bg-2); }
html.theme-b .auth-field input { background: #fff; }
html.theme-b .player-info { color: var(--mute); }

/* C · Orange (l'ancien défaut, conservé en option) */
html.theme-c {
  --orange:    #ff6f00;
  --orange-2:  #ff8a30;
  --orange-soft: rgba(255, 111, 0, .14);
  --orange-glow: rgba(255, 111, 0, .35);
}
html.theme-c ::selection { background: var(--orange); color: var(--bg); }

/* ═════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .signature { grid-template-columns: 1fr 1fr; }
  .sig-feat { grid-column: 1/-1; }
  footer { grid-template-columns: 1fr 1fr; }
  .video-container { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 720px) {
  :root { --side-w: 50px; }

  .sidebar { padding: 12px 0; gap: 4px; }
  .side-logo { padding: 4px 0 10px; gap: 6px; }
  .side-logo .mark { font-size: 16px; }
  .side-logo .avatar { width: 30px; height: 30px; font-size: 12px; }
  .side-link { width: 38px; height: 38px; }
  .side-link svg { width: 18px; height: 18px; }
  .side-link::after { display: none; }
  .side-link.active::before { right: -8px; height: 18px; }

  /* Hero */
  .hero { height: clamp(440px, 64vh, 580px); }
  .hero-inner { padding: 0 22px 36px; }
  .hero-kicker { font-size: 10.5px; letter-spacing: .15em; margin-bottom: 8px; }
  .hero-title { font-size: clamp(48px, 16vw, 84px); line-height: .85; margin-bottom: 14px; }
  .hero-meta { gap: 8px; font-size: 11px; margin-bottom: 14px; }
  .hero-meta .pill { font-size: 10px; padding: 2px 7px; }
  .hero-desc { font-size: 14px; margin-bottom: 16px; }
  .hero-tags { gap: 6px; margin-bottom: 18px; }
  .hero-tags a { font-size: 12px; padding: 4px 10px; }
  .hero-actions { gap: 8px; flex-wrap: wrap; }
  .btn-watch { padding: 11px 22px; font-size: 13.5px; }
  .btn-add { padding: 11px 18px; font-size: 13.5px; }

  /* Bandeau "Bonjour Olivier" */
  .user-greet { padding: 12px 22px; font-size: 12.5px; }

  /* Sections */
  .section { padding: 36px 22px 12px; }
  .section-head h2 { font-size: 22px; }

  /* Cards en row : reduce taille */
  .row { gap: 10px; padding-bottom: 12px; }
  .card-land { flex: 0 0 220px; }
  .card-land .body { padding: 10px 12px 12px; }
  .card-land h3 { font-size: 13px; }
  .card-port { flex: 0 0 140px; }
  .card-port .cap { padding: 22px 11px 11px; }
  .card-port .cap h3 { font-size: 16px; }

  /* Signature → 1 colonne */
  .signature { grid-template-columns: 1fr; }
  .sig-feat { min-height: 200px; }
  .sig-feat .sig-mark .big { font-size: 56px; }
  .sig-article { padding: 22px; }
  .sig-article h3 { font-size: 24px; }
  .sig-photo img { min-height: 200px; }

  /* Footer */
  footer { grid-template-columns: 1fr; padding: 32px 22px 18px; gap: 24px; }
  .ft-bottom { flex-direction: column; gap: 6px; align-items: flex-start; font-size: 11px; }

  /* Login + video */
  .auth-card { padding: 28px 22px; }
  .auth-card h1 { font-size: 30px; }
  .video-container { padding: 32px 22px; gap: 24px; }
  .vid-title { font-size: 28px; }
  .vid-credits { grid-template-columns: 1fr; }
  .vid-credit { border-right: none !important; }
  .player-section { aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
  /* Très petits écrans */
  .hero-title { font-size: 56px; }
  .card-land { flex: 0 0 200px; }
  .card-port { flex: 0 0 130px; }
}
