:root{
  --bg:#ffffff; --text:#111318; --muted:#68707f; --card:#f6f8fb; --line:#e6e8ee;
  --yellow:#FFC107; --yellow-ink:#111318; --radius:14px; --shadow:0 6px 24px rgba(17,19,24,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body {
  margin: 0; 
  font: 16px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text); 
  background: var(--bg); 
  -webkit-font-smoothing: antialiased;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
a.link{color:#1a66ff}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.pad{padding:48px 0}
.center{text-align:center}
.sr-only{position:absolute!important;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden;}
.skip{position:absolute;left:-9999px;top:auto}
.skip:focus{left:12px;top:12px;background:#000;color:#fff;padding:8px 12px;border-radius:8px}

.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.9);backdrop-filter:saturate(150%) blur(8px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;gap:20px;height:64px}
.brand{font-weight:700;letter-spacing:.5px}
.site-nav ul{display:flex;gap:18px;list-style:none;margin:0;padding:0}
.site-nav a{display:inline-block;padding:8px 10px;border-radius:10px}
.site-nav a:hover{background:var(--card)}
.nav-toggle{margin-left:auto;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 12px;display:none}

.hero{position:relative}
.hero picture, .hero img{width:100%;height:52vh;object-fit:cover;display:block}
.hero-copy{position:relative;margin-top:-64px;max-width:1100px;margin-left:auto;margin-right:auto;padding:0 20px}
.hero h1{display:inline-block;background:var(--bg);padding:14px 18px;border-radius:12px;box-shadow:var(--shadow);font-size:clamp(28px,4vw,44px)}
.lead{color:var(--muted);margin:12px 0 10px}
.accent{color:var(--yellow-ink);background:var(--yellow);padding:2px 8px;border-radius:8px}
.cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}

.btn{display:inline-block;background:var(--yellow);color:var(--yellow-ink);padding:10px 16px;border-radius:12px;border:2px solid var(--yellow);font-weight:700;transition:all .2s ease}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,193,7,.3);
}
.btn:active {
  transform: translateY(1px);
}
.btn.ghost{background:#fff;color:var(--text);border-color:var(--line)}
.btn.outline{background:transparent;border:2px solid var(--text);color:var(--text)}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.badges{display:flex;gap:10px;flex-wrap:wrap;padding:0;margin:0;list-style:none}
.badges li{background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 10px}
.ratio-16x9{position:relative;padding-top:56.25%}
.ratio-16x9 iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:12px}
.split{display:grid;grid-template-columns:2fr 1fr;gap:24px}
.info .kv { list-style: none; padding: 0; margin: 0; }
.info .kv li { 
  display: flex; justify-content: space-between; gap: 16px; 
  border-bottom: 1px dashed var(--line); padding: 12px 0; 
}
.info .kv span { color: var(--muted); flex-shrink: 0; }
.info .kv b { text-align: right; }

/* TABLEAU FILMOGRAPHIE */
/* -----------------------------------------
   1. FILMOGRAPHIE : PROPORTIONS DES FILTRES
----------------------------------------- */
.filtres-bar { display: flex; gap: 16px; margin-bottom: 20px; align-items: center; flex-shrink: 0; }
.search-input { flex: 1.2; } /* La recherche prend un peu plus d'une part */
.filtre-selects { display: flex; gap: 12px; flex: 2; } /* Les menus prennent 2 parts (plus d'espace) */
.filtre-selects .select-input { flex: 1; min-width: 0; } /* min-width:0 empêche le texte de déborder */

.search-input, .select-input {
  font-family: inherit; font-size: 14px; font-weight: 600; 
  padding: 12px 16px; border-radius: 12px; 
  background: var(--card); border: 1px solid var(--line); 
  color: var(--text); outline: none; transition: all 0.2s ease;
  width: 100%;
}
.search-input:hover, .search-input:focus, .select-input:hover, .select-input:focus { 
  border-color: var(--yellow); 
}

/* -----------------------------------------
   2. FILMOGRAPHIE : ECRAN VERROUILLÉ (FULLSCREEN)
----------------------------------------- */
/* On bloque la page à 100% de l'écran dynamique (100dvh) et on coupe le scroll global */
.page-filmographie {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden; 
}

.page-filmographie .site-header { flex-shrink: 0; }
.page-filmographie #main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* On réduit un peu les marges vides en haut pour maximiser la taille du tableau */
.page-filmographie .page-hero { padding: 20px 0 10px; flex-shrink: 0; }
.page-filmographie .page-hero h1 { font-size: clamp(24px, 4vw, 36px); }
.page-filmographie .pad { padding: 10px 0 20px; flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* LE TABLEAU MAGIQUE : Il prend 100% de la place restante, et génère son propre scroll */
.page-filmographie .table-wrap {
  flex: 1;
  max-height: none; /* Annule les anciens calculs rigides */
  overflow: auto;
  border: 1px solid var(--line); 
  border-radius: 12px; 
  background: #fff; 
  box-shadow: var(--shadow); 
}

/* Le footer est forcé de rester en bas, sans marge qui pousse */
.page-filmographie .site-footer {
  margin-top: 0;
  padding: 12px 0;
  flex-shrink: 0;
}

/* Mode Sombre pour les nouveaux filtres */
body.dark-mode .search-input, body.dark-mode .select-input {
  background: var(--card) !important; color: var(--text) !important; border-color: var(--line) !important;
}

.page-filmographie .wrap {
  max-width: 1400px !important; /* Plus large que le reste du site */
}

.page-filmographie .table {
  width: 100%;
  min-width: 1200px; /* Empêche le texte de se tasser si on réduit la fenêtre */
}

.page-filmographie .table th, 
.page-filmographie .table td {
  padding: 22px 30px !important; /* Ajoute beaucoup de "vide" élégant autour des mots */
}

/* -----------------------------------------
   3. RESPONSIVE MOBILE (Filtres empilés + Scroll Normal)
----------------------------------------- */
@media (max-width: 700px) {
  .page-filmographie .filtres-bar { flex-direction: column; gap: 10px; margin-bottom: 12px; }
  .page-filmographie .filtre-selects { width: 100%; }
  .page-filmographie .filtre-selects .select-input { flex: 1; padding: 10px; font-size: 0.85rem; }
  .search-input { padding: 10px 14px; }
  
  /* FIX : On annule le verrouillage de l'écran sur mobile */
  .page-filmographie { height: auto; display: block; overflow: visible; }
  .page-filmographie #main { display: block; overflow: visible; flex: none; }
  .page-filmographie .pad { display: block; overflow: visible; flex: none; padding: 20px 0; }
  
  /* Le tableau grandit normalement et repousse le footer vers le bas */
  .page-filmographie .table-wrap { overflow: visible; flex: none; }
  .page-filmographie .wrap { max-width: 100% !important; }
  .page-filmographie .table { min-width: 0; }
  .page-filmographie .table td { padding: 8px 0 !important; }
}

/* FILTRES FILMOGRAPHIE */
.filters { display: flex; flex-direction: row; gap: 16px; margin: 16px 0 24px; }
.filters label { font-size: 0; }
.filters select { font-family: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); box-shadow: 0 4px 12px rgba(0,0,0,0.04); outline: none; cursor: pointer; transition: all 0.2s ease; }
.filters select:hover { border-color: var(--yellow); box-shadow: 0 4px 12px rgba(255,193,7,0.15); }
.filters select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,193,7,.18); }

/* =========================================
   GALERIE MODERNE (Masonry & Overlay)
========================================= */
.gallery-grid { column-count: 3; column-gap: 20px; padding: 20px 0; }
.gallery-item {
  display: block; position: relative; margin-bottom: 20px; border-radius: 20px; overflow: hidden; break-inside: avoid;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; }

.item-overlay {
  position: absolute; inset: 0; background: rgba(255, 193, 7, 0.2); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease;
}
.item-overlay span { background: #fff; color: var(--text); padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; transform: translateY(20px); transition: transform 0.3s ease; }

.gallery-item:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .item-overlay { opacity: 1; }
.gallery-item:hover .item-overlay span { transform: translateY(0); }

/* =========================================
   FIX LIGHTBOX (CLOUÉE À L'ÉCRAN)
========================================= */
.lightbox {
  position: fixed !important; 
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(15px);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999 !important; /* Passe au-dessus de tout le reste */
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox:not([aria-hidden="true"]) { opacity: 1; pointer-events: auto; }

.lb-figure { position: relative; max-width: 90vw; max-height: 85vh; display: flex; flex-direction: column; align-items: center; }
.lb-figure img { max-width: 100%; max-height: 80vh; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.15); border: 8px solid #fff; }

.lb-close, .lb-prev, .lb-next {
  position: absolute; background: #fff !important; color: #111 !important; border: none !important;
  width: 50px; height: 50px; border-radius: 50% !important; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; transition: all 0.2s ease; z-index: 10000; font-size: 24px;
}
.lb-close { top: 30px; right: 30px; }
.lb-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 30px; top: 50%; transform: translateY(-50%); }

.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--yellow) !important; transform: scale(1.1); }

@media (max-width: 700px) {
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-close { top: 20px; right: 20px; }
}

.lb-figure figcaption { color: var(--text) !important; font-weight: 600; margin-top: 20px; font-size: 1.1rem; }

/* Responsive Galerie */
@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
@media (max-width: 500px) { .gallery-grid { column-count: 1; } }

/* BENTO GRID ACCUEIL */
.bento-grid { display: grid; grid-template-columns: 1.8fr 1fr; grid-auto-rows: minmax(auto, auto); gap: 20px; }
.bento-card { 
  background: var(--card); border: none; border-radius: 20px; padding: 24px; 
  box-shadow: 0 8px 30px rgba(17,19,24,.04); display: flex; flex-direction: column; min-width: 0; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) { .bento-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(17,19,24,.08); } }
.bento-card h2 { margin-top: 0; margin-bottom: 16px; font-size: 1.4rem; border-bottom: none; }
.bento-showreel { grid-column: 1 / 2; grid-row: 1 / 2; }
.bento-roles { grid-column: 2 / 3; grid-row: 1 / 3; }
.bento-youtube { grid-column: 1 / 2; grid-row: 2 / 3; }
.bento-awards { grid-column: 1 / 3; grid-row: 3 / 4; }

/* ONGLETS INTELLIGENTS */
.roles-highlight { background: linear-gradient(135deg, #fffcf2, #fff9e6); }
.roles-highlight h2 { color: var(--text); }
.bento-roles, .bento-awards { display: flex; flex-direction: column; }
#role-tabs, #award-tabs { display: flex; flex-direction: column; flex-grow: 1; }

.role-page { display: none; flex-direction: column; justify-content: flex-start; gap: 12px; margin: 0; padding: 0; animation: fadeIn 0.4s ease; }
.role-page.active { display: flex; }
.role-page li { background: #ffffff; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 2px 10px rgba(0,0,0,0.02); border-radius: 12px; padding: 12px 16px; font-size: 0.95rem; line-height: 1.4; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.role-page li:hover { transform: translateX(6px); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.role-pagination { display: flex; justify-content: center; gap: 10px; margin-top: auto; padding-top: 15px; }
.role-tab-btn { background: transparent; border: 2px solid rgba(255, 193, 7, 0.4); color: #333; width: 32px; height: 32px; border-radius: 8px; font-weight: bold; font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.role-tab-btn:hover { border-color: var(--yellow); }
.role-tab-btn.active { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* SLIDER YOUTUBE */
.slider-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.yt-slider-container { display: flex; gap: 16px; width: 100%; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.yt-slider-container::-webkit-scrollbar { display: none; }
.yt-item { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-item iframe { width: 100%; height: 100%; border: none; pointer-events: auto; }
.slider-btn { position: absolute; z-index: 10; background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; padding-bottom: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: all 0.2s ease; }
.slider-btn:hover { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); transform: scale(1.05); }
.prev-btn { left: -15px; }
.next-btn { right: -15px; }

/* CONTACT */
.page-hero { background: linear-gradient(180deg, rgba(255,193,7,.12), transparent 60%); padding: 42px 0 6px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0; }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
.form-card { background: linear-gradient(180deg, #f7f9ff, #f3f6fb); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; margin: 12px 0; }
.field input, .field textarea { width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 18px 14px 14px; font-size: 16px; outline: none; transition: border .15s ease, box-shadow .2s ease; }
.field label { position: absolute; left: 12px; top: 12px; padding: 0 6px; color: var(--muted); background: #fff; transform-origin: left top; transition: all .15s ease; pointer-events: none; }
.field input:focus, .field textarea:focus { border-color: rgba(255,193,7,.9); box-shadow: 0 0 0 4px rgba(255,193,7,.18); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: -8px; transform: scale(.85); color: var(--yellow-ink); border-radius: 6px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin: 8px 0 4px; }
.btn-primary { background: linear-gradient(180deg, #FFD54F, #FFC107); border-color: #FFC107; color: var(--yellow-ink); }
.form-status.ok { color: #0a7f3f; font-weight: 600; }
.form-status.err { color: #b00020; font-weight: 600; }
.agent-card { background: linear-gradient(180deg, #ffffff, #f9fbff); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--line); padding: 18px 0; margin-top: 40px; background: #fff; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.site-footer nav a { margin-right: 12px; }

/* RESPONSIVE MOBILE */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-showreel, .bento-roles, .bento-youtube, .bento-awards { grid-column: 1 / -1; grid-row: auto; }
  .grid, .split, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .gallery { column-count: 2; }
}
@media (max-width: 1024px) { .yt-item { flex: 0 0 calc((100% - 16px) / 2); } }
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; inset: 64px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease; }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; padding: 12px; }
  .hero picture, .hero img { height: auto; object-fit: contain; }
  .filters { justify-content: center; gap: 12px; }
  .filters label { width: 50%; }
  .filters select { width: 100%; }
  .prev-btn { left: -10px; width: 36px; height: 36px; font-size: 22px; }
  .next-btn { right: -10px; width: 36px; height: 36px; font-size: 22px; }
  .yt-item { flex: 0 0 100%; }
  
  /* --- Correction Filmographie Mobile --- */
  .table thead { display: none; }
  .table-wrap { 
    border: 0; 
    background: transparent; 
    box-shadow: none; 
    max-height: none;
  }
  .table tbody tr { display: flex; flex-direction: column; background: var(--bg) !important; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
  .table tbody td { border: 0; padding: 8px 0; display: flex; align-items: flex-start; justify-content: flex-start; }
  .table tbody td::before { content: attr(data-label) " : "; min-width: 120px; color: var(--muted); font-weight: 600; font-size: 0.85rem; flex-shrink: 0; }
  .table tbody td:nth-child(1)::before, .table tbody td:nth-child(2)::before { display: none; }
  .table tbody td:nth-child(2) { font-size: 1.4rem; font-weight: 800; margin-top: -5px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 10px; color: var(--text); }
  .table tbody td:nth-child(1) { font-weight: 700; color: var(--muted); font-size: 0.9rem; padding-bottom: 0; }
  .table tbody td:nth-child(5) { margin-top: 10px; padding: 6px 12px; background: rgba(255, 193, 7, 0.15) !important; border-radius: 8px; display: inline-flex; align-self: flex-start; font-weight: 700; font-size: 0.85rem; }
  .table tbody td:nth-child(5)::before { display: none; }
  .table tbody td:last-child { justify-content: flex-end; margin-top: -38px; }
  .table tbody td:last-child::before { display: none; }
}

@media (max-width: 520px) { .gallery { column-count: 2; } }
@media (max-width: 360px) { .gallery { column-count: 1; } }

/* =========================================
   CORRECTIONS ERGONOMIE MOBILE & DESIGN
========================================= */
.short { margin-bottom: 16px; line-height: 1.6; }
.info { background: var(--card); padding: 24px; border-radius: 16px; border: 1px solid var(--line); }

@media (max-width: 700px) {
  .hero picture, .hero img { height: 280px !important; object-fit: cover !important; object-position: center top !important; }
  .hero-copy {
    margin-top: -40px !important; 
    background: var(--bg) !important; /* OPAQUE */
    backdrop-filter: none !important; /* OPAQUE */
    border-radius: 24px 24px 0 0; position: relative; z-index: 2; padding-top: 30px !important;
  }
  .role-pagination { padding-top: 20px !important; margin-top: 20px !important; border-top: 1px dashed rgba(0, 0, 0, 0.15); gap: 16px !important; }
  .role-tab-btn { width: 44px !important; height: 44px !important; font-size: 1.1rem !important; border-radius: 12px !important; }
}

@media (max-width: 560px) {
  .info .kv li { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; }
  .info .kv span { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
  .info .kv b { font-size: 1.05rem; }
}

@media (max-width: 700px) {
  .cta { display: flex; flex-direction: column; gap: 12px; width: 100%; }
  .cta .btn { width: 100%; text-align: center; }
  .hero-copy {
    padding: 30px 24px 20px 24px !important; width: calc(100% - 20px); margin: -40px auto 0 !important;
    border-radius: 24px; box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
    background: var(--bg) !important; backdrop-filter: none !important;
  }
  .pad { padding: 30px 0 !important; }
  .wrap { padding: 0 24px !important; }
  .role-page li { padding: 14px 16px; margin-bottom: 4px; }
}

@media (min-width: 701px) {
  #role-tabs, #award-tabs { gap: 12px; }
  .role-page { display: flex !important; }
  .role-pagination { display: none !important; }
}

/* =========================================
   MODERNISATION DU HAUT DE PAGE (HERO)
========================================= */
.hero-copy {
  background: var(--bg) !important; /* FIX : OPAQUE */
  backdrop-filter: none !important; /* FIX : OPAQUE */
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.06); padding: 40px 48px !important;
  transform: translateY(-60px); transition: transform 0.3s ease;
}
.hero h1 { background: transparent; padding: 0; box-shadow: none; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.5px; }
.accent { background: linear-gradient(135deg, #FFC107, #FF9800); -webkit-background-clip: text; -webkit-text-fill-color: transparent; padding: 0; font-weight: 800; }
.lead { font-size: 1.15rem; line-height: 1.7; color: #555; margin-bottom: 24px; max-width: 800px; }
.btn { border-radius: 50px !important; padding: 12px 24px !important; font-size: 0.95rem; letter-spacing: 0.3px; text-transform: uppercase; font-weight: 800; }
.cta { gap: 16px; margin-top: 16px; }

@media (max-width: 700px) {
  .hero-copy { padding: 32px 24px !important; transform: translateY(-40px); border-radius: 24px; }
  .accent { display: inline-block; }
  .btn { padding: 14px 24px !important; }
}

/* =========================================
   INDICATEURS DE SCROLL ANIMÉS
========================================= */
.scroll-hint {
  position: fixed; bottom: 40px; z-index: 90; color: var(--yellow);
  display: flex; flex-direction: column; align-items: center; pointer-events: none; opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease; animation: bounceHint 2.5s ease-in-out infinite;
}
.left-hint { left: 30px; }
.right-hint { right: 30px; }
.scroll-hint svg { display: block; }
.chevron-bottom { margin-top: -18px; opacity: 0.6; }
@keyframes bounceHint {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
@media (max-width: 700px) { .scroll-hint { display: none; } }
.scroll-hint.hidden { opacity: 0; transform: translateY(20px); }

/* =========================================
   INDICATEUR DE SCROLL MOBILE
========================================= */
.scroll-hint-mobile {
  display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90;
  flex-direction: column; align-items: center; gap: 4px; pointer-events: none; background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px); padding: 8px 12px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.3);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
@media (max-width: 700px) { .scroll-hint-mobile { display: flex; } }
.double-chevron-mobile { display: flex; flex-direction: column; align-items: center; color: var(--yellow); animation: bounceMobile 2s infinite; }
.chevron-bottom-mobile { margin-top: -16px; opacity: 0.5; }
@keyframes bounceMobile { 0%, 100% { transform: translateY(0); opacity: 0.8; } 50% { transform: translateY(6px); opacity: 1; } }
.scroll-hint-mobile.hidden { opacity: 0; transform: translateX(-50%) translateY(20px); }

/* =========================================
   ZONE DRAG & DROP PREMIUM (ADMIN)
========================================= */
.drop-zone {
  width: 100%; min-height: 220px; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border: 2px dashed var(--yellow); border-radius: var(--radius); background: rgba(255, 193, 7, 0.03);
  cursor: pointer; transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; margin-top: 10px;
}
.drop-zone:hover, .drop-zone--over { background: rgba(255, 193, 7, 0.08); border-style: solid; transform: translateY(-2px); box-shadow: var(--shadow); }
.drop-zone__prompt { color: var(--muted); font-weight: 600; font-size: 1.1rem; line-height: 1.4; }
.drop-zone__prompt span { display: block; font-size: 0.85rem; margin-top: 8px; opacity: 0.7; }
.drop-zone__input { display: none; }
.drop-zone__thumb { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; background-color: #eee; background-size: cover; background-position: center; margin-bottom: 15px; border: 3px solid #fff; box-shadow: var(--shadow); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 15px; padding: 10px 0; }
.page-btn { width: 30px; height: 30px; border-radius: 6px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-weight: 600; transition: 0.2s; }
.page-btn.active { background: #d4af37; color: #fff; border-color: #d4af37; }

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 15px; }
.admin-header-btns { display: flex; gap: 10px; }

@media (max-width: 600px) {
  .admin-header { flex-direction: column; align-items: flex-start; }
  .admin-header-btns { width: 100%; }
  .admin-header-btns .btn { flex: 1; text-align: center; padding: 10px; font-size: 0.85rem; }
}

/* =========================================
   TRANSITIONS DE PAGE FLUIDES
========================================= */
body { animation: pageLoad 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
@keyframes pageLoad { 0% { opacity: 0; } 100% { opacity: 1; } }
body.page-exit { opacity: 0; transform: translateY(-15px); transition: opacity 0.35s ease, transform 0.35s ease; pointer-events: none; }

/* =========================================
   DARK MODE & BOUTON MODERNE
========================================= */
.header-right { display: flex; align-items: center; gap: 15px; margin-left: auto; }

.theme-toggle-modern {
  background: transparent;
  border: 1px solid rgba(136, 136, 136, 0.4);
  color: inherit;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.theme-toggle-modern:hover {
  background: rgba(136, 136, 136, 0.1);
  transform: scale(1.05);
}

body.dark-mode .theme-toggle-modern {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--yellow) !important; 
}

/* =========================================
   DARK MODE (MODE SOMBRE) - LE PATCH ULTIME
========================================= */
body.dark-mode {
  --bg: #0d0f14;
  --text: #f0f2f5;
  --muted: #8b95a5;
  --card: #161922;
  --line: #262a35;
  --shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* 1. En-tête, Menu Mobile, Footer et Hero */
body.dark-mode .site-header { background: rgba(13, 15, 20, 0.85) !important; }
body.dark-mode .site-nav { background: var(--bg) !important; border-color: var(--line) !important; }
body.dark-mode .nav-toggle { background: var(--card) !important; color: var(--text) !important; border-color: var(--line) !important; }
body.dark-mode .hero-copy { background: rgba(22, 25, 34, 0.85) !important; border-color: rgba(255,255,255,0.05) !important; }
body.dark-mode .site-footer { background: var(--bg) !important; color: var(--muted) !important; border-color: var(--line) !important; }
body.dark-mode .site-footer a { color: var(--muted) !important; }

/* 2. Boutons & Filtres */
body.dark-mode .btn.ghost { background: transparent !important; background-image: none !important; color: var(--text) !important; border: 1px solid var(--line) !important; }
body.dark-mode .btn.ghost:hover { background: var(--text) !important; color: var(--bg) !important; }
body.dark-mode .filters select { background: var(--card) !important; color: var(--text) !important; border-color: var(--line) !important; }

/* 3. FLÈCHES CARROUSEL YOUTUBE */
body.dark-mode .slider-btn { background: var(--card) !important; color: var(--text) !important; border-color: var(--line) !important; }
body.dark-mode .slider-btn:hover { background: var(--yellow) !important; color: var(--yellow-ink) !important; }

/* 4. PAGE CONTACT */
body.dark-mode .form-card, body.dark-mode .agent-card { background: var(--card) !important; border-color: var(--line) !important; color: var(--text) !important; }
body.dark-mode .field input, body.dark-mode .field textarea { background: var(--bg) !important; color: var(--text) !important; border-color: var(--line) !important; }
body.dark-mode .field label { background: var(--card) !important; color: var(--muted) !important; }
body.dark-mode .field input:focus + label, body.dark-mode .field textarea:focus + label { color: var(--yellow) !important; }

/* 5. TABLEAUX ET BADGES (FIX DU BLANC) */
body.dark-mode .table-wrap { background: var(--card) !important; border-color: var(--line) !important; }
body.dark-mode .table, body.dark-mode table, body.dark-mode th, body.dark-mode td, body.dark-mode tr { 
  background: var(--card) !important; 
  background-color: var(--card) !important; 
  color: var(--text) !important; 
  border-color: var(--line) !important; 
}
body.dark-mode .table thead th { background: var(--bg) !important; background-color: var(--bg) !important; }
body.dark-mode table tbody tr:hover, body.dark-mode .table tbody tr:hover { background: rgba(255, 255, 255, 0.05) !important; background-color: rgba(255, 255, 255, 0.05) !important; }

/* Fix du bouton "Voir" en bout de ligne */
body.dark-mode .table tbody td:last-child a { background: rgba(255, 193, 7, 0.15) !important; color: var(--yellow) !important; }
body.dark-mode .table tbody td:last-child a:hover { background: var(--yellow) !important; color: var(--yellow-ink) !important; }

body.dark-mode .badges li, body.dark-mode .role-page li, body.dark-mode .roles-highlight, body.dark-mode aside { background: var(--card) !important; color: var(--text) !important; border-color: var(--line) !important; }

/* 6. SÉCURITÉ FORCE BRUTE */
body.dark-mode [style*="background: white"], body.dark-mode [style*="background-color: white"], body.dark-mode [style*="background: #fff"], body.dark-mode [style*="background-color: #fff"] { background: var(--card) !important; color: var(--text) !important; }

/* -----------------------------------------
   FIX ULTIME : LÉGENDES DU TABLEAU FIGÉES
----------------------------------------- */
.table-wrap {
  position: relative; 
}

.table thead, 
.table thead tr,
.table thead th {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important; /* Force l'en-tête à passer par-dessus les lignes */
}

/* Force le fond pour empêcher les lignes de se voir en transparence lors du scroll */
.table thead th {
  background-clip: padding-box !important; 
  background-color: #fdfdfd !important;
}

/* Force le fond en Mode Sombre */
body.dark-mode .table thead th,
body.dark-mode .page-filmographie .table thead th {
  background-color: var(--card) !important;
  border-bottom: 2px solid var(--line) !important;
}

/* =========================================
   FINITIONS PREMIUM : SURVOL & SLIDER (SCROLLBAR)
========================================= */

/* 1. EFFET "ALLUMAGE" DES LIGNES AU SURVOL */
.table tbody tr {
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Survol en mode clair */
.table tbody tr:hover {
  background-color: rgba(255, 193, 7, 0.08) !important; /* Fond jaune ultra léger */
  box-shadow: inset 4px 0 0 var(--yellow) !important; /* Ligne jaune sur le bord gauche */
}

/* Survol en mode sombre */
body.dark-mode .table tbody tr:hover,
body.dark-mode .page-filmographie .table tbody tr:hover {
  background-color: rgba(255, 193, 7, 0.12) !important; /* Fond jaune un peu plus fort sur fond noir */
  box-shadow: inset 4px 0 0 var(--yellow) !important;
}


/* 2. CUSTOMISATION DU SLIDER (BARRE DE DÉFILEMENT DU TABLEAU) */

/* Largeur globale du slider */
.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Le fond (la piste) du slider */
.table-wrap::-webkit-scrollbar-track {
  background: var(--bg); /* S'adapte tout seul au clair/sombre */
  border-radius: 0 12px 12px 0;
}

/* La poignée du slider */
.table-wrap::-webkit-scrollbar-thumb {
  background: var(--muted); /* Gris doux par défaut */
  border-radius: 10px;
  border: 2px solid var(--bg); /* Crée un faux espace autour de la poignée */
  transition: background 0.3s ease;
}

/* La poignée s'allume au survol de la souris */
.table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--yellow);
}

/* Ajustement fin pour le mode sombre (Poignée plus foncée au repos) */
body.dark-mode .table-wrap::-webkit-scrollbar-thumb {
  background: #3a404d; 
  border-color: var(--card);
}
body.dark-mode .table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--yellow);
}
body.dark-mode .table-wrap::-webkit-scrollbar-track {
  background: var(--card);
}
