/* ====== Base / Reset ====== */
* { box-sizing: border-box; margin:0; padding:0 }
:root{
  --bg:#0a0a0c; 
  --bg-2:#131317; 
  --card:#1d1d22;
  --accent:#facc15; /* jaune doré plus moderne */
  --accent-hover:#ffe84d;
  --text:#f5f5f5;
  --muted:#a1a1aa;
  --radius:18px; 
  --radius-lg:28px; 
  --shadow:0 4px 18px rgba(0,0,0,0.6);
}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  padding-top:72px; overflow-x:hidden;
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
}

/* ====== Header ====== */
header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  background:var(--bg-2); box-shadow:0 3px 14px rgba(0, 0, 0, 0.8);
}
.header-content{
  max-width:1400px; margin:auto; padding:18px 24px;
  display:flex; align-items:center; gap:20px; justify-content:space-between;
}
.logo{display:flex; align-items:center; gap:12px; text-decoration:none;}
.logo img{height:38px; width:38px; border-radius:50%; box-shadow:0 2px 8px rgba(0,0,0,.6)}
.brand{color:var(--accent); font-weight:800; font-size:1.05rem; letter-spacing:1px}
.nav-links ul{display:flex; gap:24px; list-style:none}
.nav-links a{color:var(--text); text-decoration:none; font-weight:600; transition:.3s}
.nav-links a.active,.nav-links a:hover{color:var(--accent)}
.menu-toggle{display:none; background:none; border:0; color:var(--text); font-size:28px; cursor:pointer}

/* Search */
.search-form{
  display:flex; align-items:center; gap:8px;
  background:#1b1b1f; border-radius:999px; padding:6px 12px; box-shadow:0 2px 10px rgba(0,0,0,.5);
}
.search-form input{
  background:transparent; border:0; color:var(--text); outline:none; width:200px; font-size:14px;
}
.search-form button{background:transparent; border:0; color:var(--accent); cursor:pointer; font-size:20px; transition:.3s}
.search-form button:hover{color:var(--accent-hover)}

/* Connexion */
.signin-btn{
  background:var(--accent); color:#111; border:0; border-radius:999px;
  padding:8px 18px; font-weight:700; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.6);
  transition:.3s;
}
.signin-btn:hover{background:var(--accent-hover);}

/* ====== Sections ====== */
main{min-height:60vh}
.section{max-width:1400px; margin:60px auto; padding:0 20px}
.section-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin:6px 0 14px;
}
.section h2{
  margin:0; font-size:1rem; color:var(--accent); letter-spacing:.6px;
  border-left:4px solid var(--accent); padding-left:12px; font-weight:800;
}
.section p{
  margin:0; color:var(--text); font-weight:500; font-size:.9rem; max-width:600px;
}

/* ====== Carousels ====== */
.row{position:relative; overflow:hidden;}
.scroller{
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding:6px 4px 12px; scrollbar-width:none; -ms-overflow-style:none;
}
.scroller::-webkit-scrollbar{display:none}

.card{
  scroll-snap-align:start; flex:0 0 auto; width:190px;
  background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
  overflow:hidden; cursor:pointer; position:relative; transition:transform .4s ease, box-shadow .4s ease;
}
.card:hover{transform:scale(1.05) translateY(-6px); box-shadow:0 10px 28px rgba(0,0,0,.8);}
.thumb{width:100%; height:260px; object-fit:cover; display:block; filter:brightness(.92); transition:.3s}
.card:hover .thumb{filter:brightness(1)}
.card-title{
  padding:6px; font-weight:700; font-size:0.8rem; text-align:center; color:var(--text);
}
.badge{position:absolute; top:10px; left:10px; background:var(--accent); color:#111;
  font-weight:800; border-radius:50%; width:32px; height:32px; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,.6)}
.badge-flag{position:absolute; top:10px; right:10px; background:linear-gradient(135deg,#e50914,#b5060d);
  color:#fff; padding:4px 10px; border-radius:8px; font-size:.72rem; font-weight:900; box-shadow:0 2px 6px rgba(0,0,0,.6)}

/* Nav boutons */
.nav-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%; border:0;
  background:rgba(0,0,0,.55); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
  backdrop-filter: blur(4px); transition:.3s;
}
.nav-btn:hover{background:rgba(0,0,0,.75)}
.nav-prev{left:6px} .nav-next{right:6px}

/* ====== Popup ====== */
.overlay{position:fixed; inset:0; background:rgba(0,0,0,.94); display:flex; align-items:center; justify-content:center; z-index:1000; padding:16px}
.modal{
  background:var(--bg-2); width:min(96vw, 760px); border-radius:var(--radius-lg);
  box-shadow:0 20px 60px rgba(0,0,0,.9); overflow:hidden; position:relative;
}
.modal-header{padding:14px 18px 0; display:flex; justify-content:space-between; align-items:start; gap:12px}
.modal-title{font-weight:900; font-size:1.2rem}
.modal-close{position:absolute; top:10px; right:10px; background:var(--accent); color:#111; border:0; width:36px; height:36px; border-radius:50%; cursor:pointer; font-weight:800}
.modal-body{padding:12px 18px 18px}
.modal-desc{color:#ffb3b3; font-weight:600; margin:8px 0 12px}
.modal-player iframe{width:100%; height:380px; border:0; border-radius:12px; box-shadow:var(--shadow)}
.play-btn{display:inline-block; background:var(--accent); color:#111; font-weight:900; border:0; border-radius:10px; padding:10px 16px; cursor:pointer; box-shadow:0 2px 10px rgba(0,0,0,.8); transition:.3s}
.play-btn:hover{background:var(--accent-hover)}

/* ====== Footer ====== */
footer{
  background:var(--bg-2); color:var(--text); text-align:center; padding:34px 20px; margin-top:40px; box-shadow:0 -2px 8px rgba(0,0,0,.6);
}
footer ul{list-style:none; display:flex; font-size:0.75rem; gap:18px; justify-content:center; margin-bottom:12px}
footer a{color:var(--accent); text-decoration:none; font-weight:700; transition:.3s}
footer a:hover{color:var(--accent-hover)}
footer p{margin:0; font-size:0.75rem; color:var(--muted); line-height:1.5; max-width:640px; margin:auto;}

/* ====== Responsive ====== */
@media (max-width:900px){
  .card{width:170px} .thumb{height:220px}
}
@media (max-width:768px){
  .menu-toggle{display:block}
  .nav-links ul{display:none; position:absolute; top:58px; left:16px; right:16px; background:#1d1c1e; padding:12px; border-radius:12px; flex-direction:column; gap:12px}
  .nav-links ul.show{display:flex}
  .search-form input{width:120px;}
  .card{width:42vw; max-width:220px}
  .brand{font-size:0.9rem}
}
@media (max-width:600px){
  body{padding-top:80px}
  .card{width:44vw; max-width:220px}
  .thumb{height:50vw; min-height:140px}
  .modal-player iframe{height:220px}
  .logo img{height:28px; width:28px}
  .brand{font-size:0.8rem}
}

/* TV & grands écrans */
@media screen and (min-width:1920px){
  body{font-size:20px}
  .card{width:240px}
  .modal-player iframe{height:600px}
  .header-content{max-width:1800px}
}
@media screen and (min-width:2560px){
  body{font-size:22px}
  .card{width:300px}
  .modal-player iframe{height:720px}
  .header-content{max-width:2200px}
}
@media screen and (min-width:3840px){
  body{font-size:26px}
  .card{width:360px}
  .modal-player iframe{height:900px}
  .header-content{max-width:3000px}
}
