/* ===== Core tokens & base ===== */
:root{
  --gap:16px;
  --bg:#070b10; --panel:#0b1118; --card:#0d1620;
  --muted:#9fb3c7; --text:#eaf3fb; --accent:#41d6ff; --accent-2:#2aa7d3;
  --stroke:#1a2a3a; --yellow:#ffd24d; --red:#e11919; --green:#1bd97b;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--text); font:15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* ===== Topbar réorganisée ===== */
#topbar{ 
  position:sticky; 
  top:0; 
  z-index:100; 
  background:linear-gradient(180deg, rgba(7,11,16,.95), rgba(7,11,16,.90)); 
  backdrop-filter: blur(12px); 
  border-bottom:1px solid var(--stroke); 
  box-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

body.view-frise #topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(7,11,16,.98), rgba(7,11,16,.92)); 
  backdrop-filter: blur(15px);
}

.wrap{ 
  max-width:1400px; 
  margin:0 auto; 
  padding:12px 18px; 
}

/* Ligne principale : Logo + Tabs + Actions */
.topbar-main {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 10px;
}

/* Logo */
.brand { 
  display: flex; 
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 45px;
  width: auto;
  display: block;
}

.mark, h1, .subtitle { 
  display: none; 
}

/* Tabs au centre */
.tabs{ 
  display:flex; 
  gap:8px; 
  flex: 1;
  justify-content: center;
  margin: 0; /* Enlever le margin-top */
}

.tab{ 
  background:#0e1f2d; 
  border:1px solid var(--stroke); 
  color:#cfe6fb; 
  padding:8px 16px; 
  border-radius:999px; 
  font-size:13px; 
  cursor:pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab:hover {
  border-color: var(--accent-2);
}

.tab[aria-selected="true"]{ 
  border-color:var(--accent); 
  box-shadow: inset 0 0 0 1px rgba(65,214,255,.35); 
  color:#fff; 
  background: rgba(65,214,255,0.1);
}

/* Actions à droite */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Supprimez l'ancien #ui-toolbar */
#ui-toolbar { display: none; }

/* Bouton Filtres */
.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filters-toggle:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.filters-toggle .arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  line-height: 1;
}

.filters-toggle[aria-expanded="false"] .arrow {
  transform: rotate(-90deg);
}

/* Menu Export (dropdown) */
.export-dropdown {
  position: relative;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0e1f2d;
  border: 1px solid var(--stroke);
  color: #cfe6fb;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-export:hover {
  border-color: var(--accent);
  background: rgba(65,214,255,0.05);
}

.btn-export[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(65,214,255,0.1);
}

.arrow-down {
  font-size: 10px;
  transition: transform 0.2s;
}

.btn-export[aria-expanded="true"] .arrow-down {
  transform: rotate(180deg);
}

/* Menu déroulant Export */
.export-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0b1118;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  min-width: 220px;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.export-menu:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.export-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: #cfe6fb;
  padding: 12px 16px;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.export-item:last-child {
  border-bottom: none;
}

.export-item:hover {
  background: rgba(65,214,255,0.1);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 1200px) {
  .topbar-main {
    gap: 16px;
  }
  
  .tabs {
    gap: 6px;
  }
  
  .tab {
    padding: 7px 12px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .topbar-main {
    flex-wrap: wrap;
  }
  
  .tabs {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

/* Ancien .btn gardé pour les autres boutons */
.btn{ 
  background:#0e1f2d; 
  border:1px solid var(--stroke); 
  color:#cfe6fb; 
  padding:7px 10px; 
  border-radius:10px; 
  font-size:12px; 
  cursor:pointer; 
}
/* ===== Bouton Filtres (filters-toggle) ===== */

#ui-filters{ display:grid; gap:8px; margin-top:10px; background:rgba(11,17,24,0.95); border:1px solid var(--stroke); border-radius:16px; box-shadow:0 8px 20px rgba(0,0,0,.4); padding:10px; backdrop-filter: blur(8px); }
/* Masquer les filtres quand collapsed */
#ui-filters.collapsed {
  display: none !important;
}
/* Assurer que les filtres restent bien visibles sur la vue Frise */
body.view-frise #ui-filters {
  background: rgba(11,17,24,0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0,0,0,.5);
}
.row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.label{ font-size:10px; color:#cfe6fb; text-transform:uppercase; letter-spacing:.35px; opacity:.9; }
.sel, .txt{ background:#0e1924; color:#eaf3fb; border:1px solid var(--stroke); border-radius:10px; padding:7px 10px; font-size:12px; }
.txt{ min-width:240px; flex:1; }
.count{ font-size:11px; color:#9fb3c7; margin-left:auto; }

main{ max-width:1320px; margin:0 auto; padding:16px 18px; }

/* Vue Tableau en pleine largeur */
body.view-tableau main {
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

body.view-tableau .table-wrap {
  max-width: calc(100vw - 24px);
}
/* Vue Timeline en pleine largeur */
body.view-timeline main {
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

body.view-timeline .tlwrap {
  max-width: calc(100vw - 24px);
}

/* Ajuster le padding-top du main pour la vue Frise */
body.view-frise main {
  padding-top: 20px;
}
section[role="tabpanel"]{ margin-top:12px; }

/* ===== HUD (selection bottom) ===== */
#hud-layer{ position:fixed; left:16px; right:16px; bottom:16px; z-index:1000; pointer-events:none; }
#hud-layer .panel{ pointer-events:auto; background:#111; color:#fff; padding:10px 12px; border-radius:12px; box-shadow:0 6px 24px rgba(0,0,0,.25); display:flex; gap:8px; align-items:center; justify-content:flex-end; }
#hud-layer .panel button{ background:#fff; color:#111; border:none; border-radius:10px; padding:.45rem .7rem; cursor:pointer; }
#hud-layer .panel button:hover{ opacity:.9; }

/* ===== Frise (cards) ===== */
.grid-frise{ display:grid; grid-template-columns: repeat(5,1fr); gap:16px; padding-bottom:64px; }
@media(max-width:1400px){ .grid-frise{ grid-template-columns:repeat(4,1fr);} }
@media(max-width:1200px){ .grid-frise{ grid-template-columns:repeat(3,1fr);} }
@media(max-width:860px){  .grid-frise{ grid-template-columns:repeat(2,1fr);} }
@media(max-width:540px){  .grid-frise{ grid-template-columns:1fr;} }

.card{ position:relative; display:flex; flex-direction:column; background:var(--card); border:1px solid var(--stroke); border-radius:16px; overflow:hidden; box-shadow:0 8px 20px rgba(0,0,0,.32); transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease; }
.card:hover{ transform:translateY(-2px); border-color:#2b465f; }
.card:focus{ outline:2px solid var(--accent); outline-offset:2px; }
.card.selected{ border-color:var(--accent); box-shadow: 0 0 0 2px rgba(65,214,255,.25), 0 8px 22px rgba(65,214,255,.20); }

.poster{ width:100%; aspect-ratio:2/3; object-fit:cover; display:block; cursor:pointer; }
.pill-genre{ position:absolute; top:8px; left:8px; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); padding:4px 9px; border-radius:999px; border:1px solid rgba(255,255,255,.08); font-size:12px; }
.select-box{ position:absolute; top:8px; right:8px; background:rgba(10,18,28,.7); border:1px solid #2a3b4f; border-radius:8px; padding:6px; }
.select-box input{ width:16px; height:16px; }

.meta-block{ padding:8px 10px 10px; display:flex; flex-direction:column; gap:6px; flex:1; min-height:200px; }
.date-line{ font-size:12px; letter-spacing:.3px; text-transform:uppercase; color:#cbd8e5; }
.title{ font-size:15px; font-weight:900; letter-spacing:.2px; line-height:1.2; margin:0; }
.infos{ display:grid; gap:3px; font-size:11px; color:#9fb3c7; }
.cible{ color: var(--yellow); }

.bottom-stack{ margin-top:auto; display:flex; flex-direction:column; }
.est-heading{ margin-top:6px; font-size:11px; letter-spacing:.4px; text-transform:uppercase; text-align:center; color:#cfe6fb; }
.estfr .value{ font-size:18px; font-weight:900; color:#41d6ff; display:block; margin-top:2px; text-align:center; }
.est-sub{ margin-top:6px; margin-bottom:2px; font-size:12px; line-height:1.2; text-transform:uppercase; letter-spacing:.6px; text-align:center; color:var(--muted); }
.nums{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:6px; margin-top:6px; }
.num{ background:#0f1925; border:1px solid #203242; border-radius:10px; padding:6px; text-align:center; }
.num .k{ font-size:9px; color:#9fb3c7; text-transform:uppercase; letter-spacing:.4px; }
.num .v{ font-size:12px; font-weight:900; }

.actions{ margin-top:8px; display:flex; justify-content:center; align-items:center; padding-top:4px; }
.badge-ba{ display:inline-flex; align-items:center; gap:6px; padding:6px 10px; background:var(--red); color:#fff; border-radius:10px; font-weight:800; font-size:12px; text-decoration:none; border:1px solid transparent; }
.badge-ba.disabled{ background:#3a4552; color:#cfd9e3; cursor:default; box-shadow:none; pointer-events:none; border:1px solid #566273; }

/* ===== Popover (hover + pin) ===== */
.card .popover{
  position:absolute; left:10px; right:10px; top:10px;
  display:none;
  background:rgba(10,18,28,.98);
  border:1px solid #234055;
  border-radius:14px;
  padding:12px;
  max-height:55vh;
  overflow:auto;
  z-index:5;
  box-shadow:0 14px 40px rgba(0,0,0,.45);
}
.card.pop-pinned .popover{ display:block; }
.pop-title{ font-size:12px; font-weight:400; color:#eaf3fb; letter-spacing:.2px; margin:0 0 6px 0; }
.pop-heading{ font-size:14px; font-weight:800; color:#eaf3fb; margin:10px 0 6px; }
.syn{ font-size:12px; line-height:1.45; color:#cfe6fb; margin:4px 0 10px; }
.popover .ref{ font-size:10px; color:#ffb347; font-weight: 700; margin-top:8px; }
.pop-close{ position:sticky; top:0; margin:-8px -8px 8px auto; display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:999px; background:#0e1f2d; border:1px solid #2a3b4f; color:#cfe6fb; cursor:pointer; }
.pop-close:hover{ filter:brightness(1.1); }

/* ===== Profile rows - Nouvelles proportions 25/25/15/35 ===== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.32);
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
  
  container-type: inline-size;
  container-name: card;
}

.card:hover { transform: translateY(-2px); border-color: #2b465f; }
.card:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(65,214,255,.25), 0 8px 22px rgba(65,214,255,.20); }

.profile { margin: 10px 0 6px; }

/* Base Flexbox avec nouvelles proportions */
.p-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0c1723;
  border: 1px solid #223341;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 6px 0;
  overflow: hidden;
  min-height: 32px;
}

/* NOUVELLES PROPORTIONS : 30% / 27% / 15% / 28% */
.p-name { 
  flex: 0 0 30%;  /* 30% de la largeur */
  font-size: 11px;
  font-weight: 600;
  color: #cfe6fb;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  min-width: 0;
}

.p-bar { 
  flex: 0 0 27%;  /* 27% de la largeur */
  display: flex;
  align-items: center;
}

.p-bar .bar { 
  width: 100%;
  height: 8px;
  background: #0e1f2d;
  border: 1px solid #29445a;
  border-radius: 4px;
  overflow: hidden;
}

.p-bar .bar-fill { 
  height: 100%;
  background: #41d6ff;
  border-radius: 4px;
}

.pct { 
  flex: 0 0 15%;  /* 15% de la largeur */
  font-size: 11px;
  font-weight: 800;
  color: #eaf6ff;
  white-space: nowrap;
  text-align: right;
  overflow: hidden;
}

.idx-wrap { 
  flex: 0 0 28%;  /* 30% de la largeur - PLUS D'ESPACE */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  
}

.idx { 
  display: block;
  font-size: 11px;
  background: #0e1f2d;
  border: 1px solid #29445a;
  color: #cfe6fb;
  padding: 0px 2px;
  max-width: calc(100% - 8px);
  border-radius: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: auto;
  max-width: 100%;  /* Ne jamais dépasser .idx-wrap */
  min-width: 0;
  box-sizing: border-box;
  flex-shrink: 1; 
}

.idx.good { 
  color: #fff;                    /* Texte blanc */
  background: #3a6c8e;           /* Fond bleu */
  border-color: #5a8cb8;         /* Bordure bleu plus claire */
}

.idx.bad { 
  color: #fff;                    /* Texte blanc */
  background: #8e3a3a;           /* Fond rouge */
  border-color: #b85a5a;         /* Bordure rouge plus claire */
}
/* Container Queries avec nouvelles proportions */

/* Cartes larges (>320px) */
@container card (min-width: 320px) {
  .p-row {
    gap: 8px;
    padding: 8px 12px;
  }
  
  .p-name {
    flex: 0 0 27%;  /* 27-30-15-28 */
    font-size: 11px;
  }
  
  .p-bar {
    flex: 0 0 30%;
  }
  
  .p-bar .bar {
    height: 10px;
  }
  
  .pct {
    flex: 0 0 15%;
    font-size: 11px;
  }
  
  .idx-wrap {
    flex: 0 0 28%;
    justify-content: flex-start;
    overflow: hidden;
  }
  
  .idx {
    font-size: 10px;
    padding: 1px 3px;
    max-width: 100%;  /* Reste dans sa zone */
    flex-shrink: 1;
  }
}

/* Cartes moyennes (250-320px) */
@container card (max-width: 319px) and (min-width: 250px) {
  .p-row {
    gap: 6px;
    padding: 6px 8px;
  }
  
  .p-name {
    flex: 0 0 27%;  /* 27-30-15-28 */
    font-size: 11px;
  }
  
  .p-bar {
    flex: 0 0 30%;
  }
  
  .p-bar .bar {
    height: 8px;
  }
  
  .pct {
    flex: 0 0 15%;
    font-size: 10px;
  }
  
  .idx-wrap {
    flex: 0 0 28%;
    justify-content: flex-start;
    overflow: hidden;
  }
  
  .idx {
    font-size: 10px;
    padding: 1px 2px;
    max-width: 100%;  /* Reste dans sa zone */
  flex-shrink: 1;
  }
}

/* Cartes compactes (200-250px) */
@container card (max-width: 249px) and (min-width: 200px) {
  .p-row {
    gap: 4px;
    padding: 6px;
  }
  
  .p-name {
    flex: 0 0 27%;  /* 25-25-15-35 */
    font-size: 9px;
    line-height: 1.2;
  }
  
  .p-bar {
    flex: 0 0 30%;
  }
  
  .p-bar .bar {
    height: 7px;
  }
  
  .pct {
    flex: 0 0 15%;
    font-size: 9px;
  }
  
  .idx-wrap {
    flex: 0 0 28%;
    justify-content: flex-start;
    overflow: hidden; 
  }
  
  .idx {
    font-size: 9px;
    padding: 0px 2px;
    max-width: 100%;  /* Reste dans sa zone */
  flex-shrink: 1;
  }
}

/* Cartes étroites (150-200px) - Mode vertical */
@container card (max-width: 199px) and (min-width: 150px) {
  .p-row {
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    text-align: center;
    align-items: stretch;
  }
  
  .p-name {
    flex: 0 0 auto;
    font-size: 9px;
    text-align: center;
    white-space: normal;
  }
  
  .p-bar {
    flex: 0 0 auto;
    width: 80%;
    align-self: center;
  }
  
  .p-bar .bar {
    height: 6px;
  }
  
  .pct {
    flex: 0 0 auto;
    font-size: 8px;
    text-align: center;
  }
  
  .idx-wrap {
    flex: 0 0 auto;
    justify-content: center;
    width: 90%; /* Plus large en mode vertical pour les indices */
  }
  
  .idx {
    font-size: 8px;
    padding: 1px 3px;
  }
}

/* Cartes très étroites (<150px) */
@container card (max-width: 149px) {
  .p-row {
    flex-direction: column;
    gap: 3px;
    padding: 4px;
    text-align: center;
    align-items: stretch;
  }
  
  .p-name {
    flex: 0 0 auto;
    font-size: 8px;
    text-align: center;
    line-height: 1.1;
  }
  
  .p-bar {
    flex: 0 0 auto;
    width: 70%;
    align-self: center;
  }
  
  .p-bar .bar {
    height: 5px;
  }
  
  .pct {
    flex: 0 0 auto;
    font-size: 7px;
    text-align: center;
  }
  
  .idx-wrap {
    flex: 0 0 auto;
    justify-content: center;
    width: 85%;
  }
  
  .idx {
    font-size: 7px;
    padding: 0px 2px;
    border-radius: 4px;
  }
}

/* Fallback pour navigateurs sans Container Queries */
@supports not (container-type: inline-size) {
  .p-name { flex: 0 0 25%; }
  .p-bar { flex: 0 0 25%; }
  .pct { flex: 0 0 15%; }
  .idx-wrap { flex: 0 0 35%; }
  
  @media (max-width: 1400px) {
    .p-name { font-size: 10px; }
    .p-bar .bar { height: 8px; }
    .idx { font-size: 8px; }
  }
  
  @media (max-width: 1200px) {
    .p-name { font-size: 10px; }
    .p-bar .bar { height: 8px; }
    .pct { font-size: 9px; }
    .idx { font-size: 8px; }
  }
  
  @media (max-width: 860px) {
    .p-name { font-size: 9px; }
    .p-bar .bar { height: 7px; }
    .pct { font-size: 8px; }
    .idx { font-size: 7px; }
  }
  
  @media (max-width: 540px) {
    .p-row {
      flex-direction: column;
      gap: 4px;
      text-align: center;
      align-items: stretch;
    }
    
    .p-name, .pct, .idx-wrap {
      flex: 0 0 auto;
      text-align: center;
    }
    
    .p-bar {
      flex: 0 0 auto;
      width: 80%;
      align-self: center;
    }
    
    .idx-wrap {
      justify-content: center;
      width: 90%;
    }
  }
}
/* ===== SÉPARATEURS VERTICAUX ET RÉDUCTION COLONNE ESTIMATION ===== */


/* Zone 1 : Sélection + Affiche (isolée à gauche) */
.mv-table--upg thead th.cell-sel,
.mv-table--upg tbody td.cell-sel,
.mv-table--upg thead th.cell-poster,
.mv-table--upg tbody td.cell-poster {
  border-right: 1px solid #e5e5e5;
}

/* Zone 2 : Après Casting (avant Estimation) */
.mv-table--upg thead th.cell-casting,
.mv-table--upg tbody td.cell-casting {
  border-right: 1px solid #e5e5e5;
}

/* Zone 3 : Après Estimation France (avant S1-S8 Parc MV) */
.mv-table--upg thead th.cell-estim,
.mv-table--upg tbody td.cell-estim {
  border-right: 1px solid #e5e5e5;
}

/* Zone 4 : Après S8 Parc MV (avant S1-S8 France) */
/* Ajuster selon le nombre de colonnes - S8 Parc MV est la 16ème colonne */
.mv-table--upg tbody td:nth-child(16),
.mv-table--upg thead th:nth-child(16) {
  border-right: 1px solid #e5e5e5;
}

/* Zone 5 : Avant Bande-Annonce */
.mv-table--upg thead th.cell-ba,
.mv-table--upg tbody td.cell-ba {
  border-left: 1px solid #e5e5e5;
}
/* ===== TABLEAU STYLE APPLE MODERNE ===== */
/* À copier-coller dans core.css pour remplacer toute la section tableau */

.table-wrap {
  padding: 0;
  overflow: auto;
  max-height: calc(100vh - 200px);
  border: none;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.mv-table--upg {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: auto;
  background: #ffffff;
}

/* Header style Apple */
.mv-table--upg thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.mv-table--upg thead th {
  background: #f5f5f7; /* Gris Apple très clair */
  border-bottom: 1px solid #d2d2d7;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1d1d1f;
  padding: 14px 16px;
  text-align: left;
  border-right: none;
  white-space: normal;
  line-height: 1.3;
}

.mv-table--upg thead th:first-child {
  border-top-left-radius: 12px;
}

.mv-table--upg thead th:last-child {
  border-top-right-radius: 12px;
}

/* Boutons de tri plus discrets */
.mv-table--upg thead th .th-btn {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.mv-table--upg thead th .th-btn:hover {
  color: #0071e3; /* Bleu Apple */
}

.mv-table--upg thead th .arrow {
  font-size: 9px;
  opacity: 0.6;
}

/* Lignes du tableau */
.mv-table--upg tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f2f2f2;
  vertical-align: middle;
  font-size: 13px;
  color: #1d1d1f;
  background: #ffffff;
  transition: background 0.15s;
}

/* Hover sur les lignes */
.mv-table--upg tbody tr:hover td {
  background: #fafafa;
}

/* Sélection */
.mv-table--upg tbody tr[aria-selected="true"] td {
  background: #e8f4fd; /* Bleu très clair Apple */
  border-bottom-color: #d0e8f7;
}

/* Ancienne version (fond subtil) */
.mv-table--upg tbody tr.is-old td {
  background: #fff5f5 !important;
  color: #1d1d1f !important;
}

.mv-table--upg tbody tr.is-old:hover td {
  background: #ffeded !important;
}

/* Pill ancienne version */
.cell-date .pill-old {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 600;
  border-radius: 12px;
  background: #ff3b30; /* Rouge Apple */
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Colonnes spécifiques */
.cell-sel {
  width: 44px;
  text-align: center;
}

.cell-poster {
  width: 72px;
}

.thumb {
  width: 54px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cell-title {
  width: 180px;
  max-width: 180px;
}

.cell-title .t {
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
}

/* Réalisateur et Casting - style Apple */
.cell-realisateur,
.cell-casting {
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #6e6e73; /* Gris Apple */
  white-space: normal !important;
  overflow: visible !important;
  min-width: 150px;
  max-width: 200px;
}

/* Estimations - Bleu Apple */
.mv-table--upg .cell-estim {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #0071e3 !important; /* Bleu Apple */
  min-width: 100px !important;
  max-width: 110px !important;
  width: 80px !important;
  white-space: normal !important;
}

/* Exception pour anciennes estimations */
.mv-table--upg tbody tr.is-old .cell-estim {
  color: #ff3b30 !important; /* Rouge Apple */
}

/* S1-S8 Parc MV : Gras, style Apple */
.cell-s {
  font-weight: 600;
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #1d1d1f;
}

/* S1-S8 France : Bleu clair, italique, plus petit */
.cell-gray-italic {
  color: #06c; /* Bleu Apple pour les liens */
  font-style: italic;
  font-size: 11px;
  font-weight: 400;
}

.mv-table--upg tbody tr.is-old .cell-gray-italic {
  color: #0071e3;
}

/* Bande-annonce - Style bouton Apple */
.cell-ba {
  text-align: center;
}

.mv-table--upg .badge-ba,
.ba.mini {
  display: inline-block;
  padding: 5px 12px;
  background: #0071e3; /* Bleu Apple */
  color: #ffffff;
  border-radius: 980px; /* Très arrondi style Apple */
  font-weight: 600;
  font-size: 11px;
  text-decoration: none;
  border: none;
  text-align: center;
  transition: background 0.2s;
}

.mv-table--upg .badge-ba:hover,
.ba.mini:hover {
  background: #0077ed;
}

.mv-table--upg .badge-ba.disabled {
  background: #f5f5f7;
  color: #86868b;
  cursor: default;
  pointer-events: none;
}

/* Checkbox style Apple */
.cell-sel input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #d2d2d7;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s;
}

.cell-sel input[type="checkbox"]:checked {
  background: #0071e3;
  border-color: #0071e3;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M13.5 3.5L6 11 2.5 7.5l1-1L6 9l6.5-6.5z"/></svg>');
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.cell-sel input[type="checkbox"]:hover {
  border-color: #0071e3;
}

/* Responsive */
@media (max-width: 820px) {
  .mv-table--upg {
    min-width: 860px;
  }
}

/* Scrollbar horizontale toujours visible et plus grosse */
.table-wrap::-webkit-scrollbar {
  width: 12px;   /* Scrollbar verticale */
  height: 12px;  /* Scrollbar horizontale - PLUS GROSSE */
}

.table-wrap::-webkit-scrollbar-track {
  background: #f5f5f7;
  border-radius: 6px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: #86868b;  /* Plus visible que #d2d2d7 */
  border-radius: 6px;
  border: 3px solid #ffffff;
  transition: background 0.2s;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: #515154;  /* Encore plus foncé au survol */
}

/* Coins arrondis pour la scrollbar */
.table-wrap::-webkit-scrollbar-corner {
  background: #f5f5f7;
  border-radius: 6px;
}

/* Pour Firefox - scrollbar visible */
.table-wrap {
  scrollbar-width: auto;  /* 'auto' au lieu de 'thin' pour être plus visible */
  scrollbar-color: #86868b #f5f5f7;
}
/* ===== Timeline ===== */
.tlwrap{ 
  overflow:auto; 
  max-height:calc(100vh - 200px);
  border:1px solid var(--stroke); 
  border-radius:12px; 
}
.tl-grid{ border-collapse:separate; border-spacing:0; min-width:1200px; }
.tl-grid thead{ position:sticky; top:0; z-index:15; }
.tl-grid thead th{ background:#0b1118; border-bottom:1px solid #1b2836; text-align:center; }
.tl-grid thead th .wk{ display:flex; flex-direction:column; align-items:center; padding:6px 8px; }
.tl-grid thead th .wk .w1{ font-weight:800; font-size:12px; }
.tl-grid thead th .wk .w2{ font-size:11px; opacity:.9; }
.tl-grid thead th .th{ padding:6px 8px; font-weight:800; }
.stickL{ position:sticky; left:0; background:#0b1118; z-index:10; }
.col-film{ left:0; min-width:260px; max-width:260px; }
.col-date{ left:260px; min-width:140px; max-width:140px; text-align:center; background:#0b1118; font-size:10px; }
.tl-grid tbody td, .tl-grid tbody th{ padding:8px 10px; border-right:1px solid #13202c; border-bottom:1px solid #13202c; z-index:6; }
.tl-grid thead th{ padding:8px 10px; border-right:1px solid #13202c; border-bottom:1px solid #13202c; }
.tl-grid tbody tr:nth-child(even) td, .tl-grid tbody tr:nth-child(even) th.stickL{ background:#0c1621; z-index:10; }
.tl-grid td.hit{ cursor:pointer; text-align:center; }
.tl-grid td.hit .n{ display:inline-block; padding:2px 6px; border-radius:8px; background:#0f1925; color:#41d6ff; font-size:12px; font-weight:800; }
.tl-grid td.hit.on{ background:rgba(65,214,255,.12); }
.tl-footer{ position:sticky; bottom:0; left:0; right:0; z-index:12; background:#0b1118; padding:8px 12px; border-top:1px solid #1b2836; }
.tl-footer .tl-reset{ margin-left:10px; padding:4px 10px; border-radius:8px; background:#163148; color:#eaf3fb; border:1px solid #35506a; cursor:pointer; }
.tl-grid thead th.stickL{ z-index:11; }
.tl-grid tbody td.stickL, .tl-grid tbody th.stickL{ z-index:10; }

/* ===== Selection dock ===== */
.selection-dock{ position:fixed; left:0; right:0; bottom:0; z-index:80; background:linear-gradient(180deg, rgba(11,17,24,.92), rgba(11,17,24,.98)); border-top:1px solid var(--stroke); backdrop-filter:blur(8px); }
.selection-dock__inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 18px; }
.selection-dock strong{ color:var(--text); }
.selection-dock .btn{ padding:8px 14px; border-radius:10px; background:var(--card); color:var(--text); border:1px solid var(--stroke); cursor:pointer; }
.selection-dock .btn:hover{ border-color:var(--accent); }
.selection-dock .btn.danger{ background:#1a1010; border-color:#5a2020; color:#ffd9d9; }
/* Liste des films sélectionnés */
.selected-films-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  max-height: 50px;
  overflow-y: auto;
  padding-right: 4px;
}

.selected-film-tag {
  background: var(--accent);
  color: var(--bg);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Scrollbar pour la liste si nécessaire */
.selected-films-list::-webkit-scrollbar {
  width: 4px;
}

.selected-films-list::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
}

.selected-films-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

/* Responsive : réduire la taille des tags sur mobile */
@media (max-width: 600px) {
  .selected-film-tag {
    font-size: 10px;
    padding: 3px 6px;
    max-width: 120px;
  }
  
  .selected-films-list {
    gap: 4px;
    max-height: 40px;
  }
}
/* ===== Genre pills ===== */
.genre-pills{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; min-height:34px; padding:2px; }
.genre-pill{ background:#0e1924; color:#cfe6fb; border:1px solid var(--stroke); border-radius:20px; padding:6px 12px; font-size:11px; cursor:pointer; transition:all 0.15s ease; white-space:nowrap; user-select:none; }
.genre-pill:hover{ border-color:var(--accent-2); background:#0f1a25; }
.genre-pill:focus{ outline:2px solid var(--accent); outline-offset:2px; }
.genre-pill.active{ background:var(--accent); color:#0b1118; border-color:var(--accent); font-weight:600; }
.genre-pill.active:hover{ background:var(--accent-2); border-color:var(--accent-2); }

@media (max-width: 600px) {
  .genre-pills{ min-height:auto; }
  .genre-pill{ font-size:10px; padding:5px 10px; }
}
/* === Filtre Most Wanted === */
.most-wanted-filter {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.most-wanted-pill {
  background: #0e1924;
  color: #cfe6fb;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
  font-weight: 600;
}
.most-wanted-pill[aria-pressed="false"] {
  color: var(--yellow);
}
.most-wanted-pill:hover {
  border-color: var(--accent-2);
  background: #0f1a25;
}

.most-wanted-pill[aria-pressed="true"] {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  border-color: #ffd700;
}

.most-wanted-pill[aria-pressed="true"]:hover {
  background: linear-gradient(135deg, #ffed4e, #ffd700);
}
/* ===== Utility & legacy cleanup ===== */
#btn-clear-filters{ margin-left:auto; }
#btn-clear, #sel-count, .selection-hud, [data-role="selection-hud"]{ display:none !important; }

/* Export mode */
body.export{ padding:24px; display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; background:#fff; color:#111; }
body.export .fiche{ background:#fff; border:1px solid #e7e7e7; border-radius:12px; padding:16px; }
body.export .fiche h2{ margin:0 0 6px 0; font-size:18px; }
body.export .fiche .meta{ color:#666; font-size:13px; margin:0 0 8px 0; }

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}
@media print{
  .selection-dock{ display:none !important; }
}

/* ===== Timeline Title ===== */
.tl-title{
  margin: 8px 0 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #cfe6fb;
}
/* === Badge Most Wanted === */
.pill-most-wanted {
  position: absolute;
  top: 36px; /* En-dessous du pill-genre */
  left: 8px;
  background: linear-gradient(135deg, #ffd700, #ffed4e); /* Dégradé doré */
  color: #000; /* Police noire */
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.8); /* Bordure dorée */
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Si pas de genre, remonter le badge Most Wanted */
.pill-most-wanted.no-genre {
  top: 8px;
}
.tl-title {
  text-align: center;   /* centre le texte */
  display: block;       /* par sécurité (normalement déjà block) */
  width: 100%;          /* occupe toute la ligne */
}
/* ===== PROGRAMMATION - Vue impression A4 paysage ===== */

.programmation-container {
  background: #fafafa;
  padding: 20px;
  min-height: 100vh;
}

.prog-page {
  width: 297mm;
  height: 210mm;
  background: white;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
  page-break-after: always;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-radius: 3px;
}

/* COVER PAGE */
.prog-cover {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 60px;
}

.prog-cover h1 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  opacity: 0.6;
  text-transform: uppercase;
}

.prog-cover .year {
  font-size: 180px;
  font-weight: 700;
  letter-spacing: -8px;
  background: linear-gradient(135deg, #ffffff 0%, #999999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prog-cover .logo {
  position: absolute;
  bottom: 60px;
  right: 80px;
  font-size: 24px;
  font-weight: 300;
  opacity: 0.4;
  letter-spacing: 2px;
}

/* MONTH PAGE */
.prog-month {
  background: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.prog-month h2 {
  color: #000;
  font-size: 120px;
  font-weight: 300;
  letter-spacing: -4px;
}

.prog-month .logo {
  position: absolute;
  bottom: 60px;
  right: 80px;
  font-size: 18px;
  font-weight: 300;
  opacity: 0.3;
  letter-spacing: 2px;
}

/* FILM PAGE */
.prog-film {
  display: grid;
  grid-template-columns: 45% 55%;
  background: white;
}

.film-left {
  background-size: cover;
  background-position: center;
  position: relative;
}

.film-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 50%);
}

.film-right {
  padding: 45px 50px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.film-header {
  margin-bottom: 25px;
}

.film-meta-line {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.meta-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-date {
  background: #000;
  color: white;
}

.badge-target {
  background: #f5f5f7;
  color: #1d1d1f;
}

.badge-genre {
  background: transparent;
  border: 1.5px solid #d2d2d7;
  color: #6e6e73;
}

.film-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #1d1d1f;
  margin-bottom: 8px;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.film-title.size-1 { font-size: 42px; letter-spacing: -1.5px; }
.film-title.size-2 { font-size: 36px; letter-spacing: -1.2px; }
.film-title.size-3 { font-size: 30px; letter-spacing: -1px; }
.film-title.size-4 { font-size: 26px; letter-spacing: -0.8px; }
.film-title.size-5 { font-size: 22px; letter-spacing: -0.5px; }
.film-title.size-6 { font-size: 19px; letter-spacing: -0.3px; }
.film-title.size-7 { font-size: 16px; letter-spacing: -0.2px; }

/* Casting + Info en ligne horizontale */
.casting-info-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 25px;
  margin-bottom: 20px;
  align-items: start;
}

.casting-column, .info-column {
  display: flex;
  flex-direction: column;
}

.casting-block, .info-block {
  display: flex;
  flex-direction: column;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label-inline {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6e6e73;
  margin-bottom: 4px;
}

.info-value {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

.synopsis-section {
  margin-bottom: 25px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6e6e73;
  margin-bottom: 12px;
}

.synopsis-text {
  font-size: 14px;
  line-height: 1.6;
  color: #1d1d1f;
  font-weight: 400;
}

.film-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.profile-section {
  display: flex;
  flex-direction: column;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-chip {
  background: #f5f5f7;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.chip-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6e6e73;
  margin-bottom: 2px;
}

.chip-value {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
}

.profile-ref {
  font-size: 10px;
  color: #86868b;
  margin-top: 10px;
  font-style: italic;
}

.estimation-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.estimation-number {
  font-size: 48px;
  font-weight: 800;
  color: #000;
  letter-spacing: -2px;
  line-height: 1;
  margin-top: 12px;
}

.estimation-note {
  font-size: 9px;
  color: #86868b;
  text-align: right;
  margin-top: 10px;
  line-height: 1.4;
}

.trailer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
}

.trailer-link:hover {
  background: #333;
  transform: translateX(2px);
}

.trailer-link::before {
  content: '▶';
  font-size: 10px;
}

/* Vue Programmation - ajustements body */
body.view-programmation main {
  max-width: 100%;
  padding: 0;
}

body.view-programmation #topbar {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Print styles */
@media print {
  body {
    background: white;
  }
  
  .prog-page {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    page-break-after: always;
  }
  
  #topbar, #selection-dock {
    display: none !important;
  }
  
  .programmation-container {
    padding: 0;
  }
}
/* Grille de 3 acteurs PETITE */
.casting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.actor-card {
  text-align: center;
}

/* Photos acteurs PETITES (60px hauteur) */
.actor-photo {
  width: 100%;
  aspect-ratio: 2/3;  /* ← Ratio portrait naturel */
  background: #f5f5f7;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.actor-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.actor-name {
  font-size: 9px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* === PATCH FINAL : Bas de carte (TOP 3 + Entrées France) === */

/* --- Structure globale : 50/50 --- */
.film-footer {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% / 50% */
  gap: 30px;
  align-items: stretch;
  width: 100%;
}

/* --- TOP 3 CIBLES --- */
.film-footer .profile-chips {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: stretch;
}

.film-footer .profile-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;    /* centre verticalement */
  align-items: center;        /* centre horizontalement */
  text-align: center;
  min-height: 64px;           /* hauteur égale */
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--chip-bg, #f5f5f5);
}

/* Intitulés dans les cartouches */
.film-footer .chip-label {
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;        /* autorise le retour à la ligne */
  word-break: normal;
  overflow: visible;
  display: flex;
  align-items: center;        /* centre verticalement le texte multi-ligne */
  justify-content: center;    /* centre horizontalement */
  text-align: center;
  height: 100%;
}

/* --- ENTREES FRANCE --- */
.film-footer .estimation-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.film-footer .estimation-section :is(h3, h4, h5, .title) {
  white-space: nowrap;
  font-weight: 600;
  font-size: clamp(12px, 0.95em, 14px); /* ajuste un peu la taille */
  margin-bottom: 4px;
}

.film-footer .estimation-number {
  white-space: nowrap;
  line-height: 1.1;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
}

/* --- Sécurité : empêche les débordements de grille --- */
.film-footer > * {
  min-width: 0;
}
.export-prog-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.btn-export-prog {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 1px solid #667eea;
  font-weight: 600;
}

.btn-export-prog:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.export-prog-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #0b1118;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 1000;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.export-prog-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.export-prog-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  color: #cfe6fb;
  padding: 12px 16px;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
  border-radius: 8px;
  margin: 4px;
}

.export-prog-option:hover {
  background: rgba(65, 214, 255, 0.1);
  color: var(--accent);
}

.export-prog-option:first-child {
  margin-top: 4px;
}

.export-prog-option:last-child {
  margin-bottom: 4px;
}
/* Style gris clair italique pour S1-S8 France */
.cell-gray-italic {
  color: #7cc4ff; /* Bleu clair */
  font-style: italic;
  font-size: 10px; /* Police légèrement plus petite */
  font-weight: 400;
}

/* Pour les anciennes versions (fond rouge), garder lisible */
.mv-table--upg tbody tr.is-old .cell-gray-italic {
  color: #d4d4d4; /* Gris plus clair sur fond rouge */
}
