/* ========================================
   VARIABLES CSS - Modifiez ici pour changer le thème
   ======================================== */
:root{
  /* Couleurs */
  --text: #e9eef7;
  --muted: #b9c4d7;
  --brand: #ffffff;
  --border: #27364f;
  --btn: #ffffff;
  --btn-text: #000000;
  --bg-1: #070b12;
  --bg-2: #0a1422;
  
  /* Espacements */
  --overlap: 140px;
  --nav-padding-x: 40px;
  --nav-padding-y: 18px;
  --nav-gap: 32px;
  --nav-links-gap: 8px;
  
  /* Header */
  --header-bg: rgba(7, 11, 18, 0.8);
  --header-border: rgba(255, 255, 255, 0.05);
  
  /* Tuiles */
  --tile-w: 320px;
  --tile-h: 180px;
  --tile-radius: 14px;
  
  /* Hero */
  --hero-max-width: 1200px;
  --hero-content-max-width: 800px;
  
  /* Sections */
  --section-padding-left: 100px;
  --section-padding-top: 48px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  color: var(--text);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header{
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.nav{
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  padding: var(--nav-padding-y) var(--nav-padding-x);
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.brand{
  font-weight: 800;
  color: var(--brand);
  font-size: 22px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font-family: "Sora", sans-serif;
}

.brand:hover{
  opacity: 0.9;
  transform: scale(1.02);
}

.navlinks{
  display: flex;
  gap: var(--nav-links-gap);
  align-items: center;
}

.navlinks a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.navlinks a::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 8px;
}

.navlinks a:hover{
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.navlinks a:hover::before{
  opacity: 1;
}

.navlinks a:active{
  transform: translateY(0);
}

.spacer{
  flex: 1;
  min-width: 20px;
}

.search-bar{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 20, 34, 0.6);
  margin-left: auto;
  transition: all 0.25s ease;
  position: relative;
  overflow: visible;
  min-width: 400px;
  max-width: 600px;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.search-bar:hover{
  background: rgba(10, 20, 34, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
}

.search-bar:focus-within{
  background: rgba(10, 20, 34, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
  transform: scale(1.01);
  backdrop-filter: blur(20px) saturate(180%);
}

.search-bar .search-icon{
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  stroke-width: 2;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.search-bar:focus-within .search-icon{
  stroke: var(--text);
  transform: scale(1.1);
}

.search-bar input{
  flex: 1;
  min-width: 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  outline: none;
  font-weight: 400;
  letter-spacing: 0.1px;
}

.search-bar input::placeholder{
  color: var(--muted);
  opacity: 0.8;
}

/* Container de recherche avec suggestions */
.search-container{
  position: relative;
  min-width: 400px;
  max-width: 600px;
}

/* Suggestions de recherche */
.search-suggestions{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 20, 34, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 4px;
}

.search-suggestions::-webkit-scrollbar{
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track{
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb{
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover{
  background: rgba(255, 255, 255, 0.3);
}

.search-suggestion-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.search-suggestion-item:hover{
  background: rgba(255, 255, 255, 0.08);
}

.search-suggestion-item img{
  width: 46px;
  height: 69px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.suggestion-placeholder{
  width: 46px;
  height: 69px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  flex-shrink: 0;
}

.suggestion-info{
  flex: 1;
  min-width: 0;
}

.suggestion-title{
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.suggestion-meta{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.suggestion-type{
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.search-btn{
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(39, 54, 79, 0.8);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s ease;
  margin: 0;
  padding: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.search-btn::before{
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-btn::after{
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.8);
}

.search-btn:hover{
  background: rgba(39, 54, 79, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-btn:hover::before{
  opacity: 1;
}

.search-btn:focus,
.search-btn:focus-visible{
  outline: none;
  background: rgba(39, 54, 79, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-btn:focus::after,
.search-btn:focus-visible::after{
  opacity: 1;
  transform: scale(1);
}

.search-btn:active{
  transform: scale(0.95);
  background: rgba(39, 54, 79, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.search-btn svg{
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  position: relative;
  z-index: 1;
}

.search-bar:focus-within .search-btn{
  background: rgba(39, 54, 79, 1);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero{
  position: relative;
  min-height: 92vh;
  max-width: var(--hero-max-width);
  margin: auto;
  padding: 0 20px;
  display: grid;
  align-items: center;
  z-index: 1;
  transition: opacity .5s ease;
  overflow: visible;
}

.hero.is-hidden{
  opacity: 0;
}

.hero.is-hidden .hero-indicators,
.hero .hero-indicators{
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}

.hero-bg{
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.6s ease;
}

.hero-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.85));
}

.hero-content{
  max-width: var(--hero-content-max-width);
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(14,24,40,.55), rgba(14,24,40,.32));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(2px);
}

.hero .hero-fader{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

.hero-indicators{
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 12px;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: auto;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto;
}

.hero-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5) !important;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  outline: none;
  flex-shrink: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hero-dot:hover{
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.hero-dot.active{
  background: rgba(138, 43, 226, 1);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(138, 43, 226, 0.8);
}

/* Hero Content Elements */
.eyebrow{
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .3em;
  font-size: 12px;
  margin-bottom: 4px;
}

.meta{
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.meta .badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.35);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 800;
  color: #e9eef7;
  backdrop-filter: saturate(1.2) blur(2px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.title{
  margin: 4px 0 8px;
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 800;
  line-height: 1.02;
}

.desc{
  color: var(--muted);
  margin: 6px 0 18px;
  line-height: 1.6;
  max-width: 60ch;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(14px, 1.8vw, 16px);
}

.cta{
  background: var(--btn);
  color: var(--btn-text);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  transform: translateZ(0);
  backface-visibility: hidden;
  cursor: pointer;
  border: none;
  transition: .3s;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.cta:hover{
  transform: translateY(-2px) scale(1.01);
  box-shadow: none;
}

/* ========================================
   HERO PROGRESS BAR
   ======================================== */
.hero-progress{
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  height: 7px;
  border-radius: 3.5px;
  z-index: 50;
  pointer-events: none;
}

.hero-progress .progress-segment{
  width: 40px;
  height: 7px;
  background: rgba(100, 100, 100, 0.6);
  border-radius: 3.5px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
}

.hero-progress .progress-segment:hover{
  background: rgba(150, 150, 150, 0.8);
  transform: scaleY(1.3);
}

.hero-progress .progress-segment.active{
  width: 60px;
}

.hero-progress .progress-segment::before{
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--brand);
  border-radius: 3.5px;
  transition: width 0.05s linear;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content{
  position: relative;
  margin-top: calc(var(--overlap) * -1);
  padding-top: calc(var(--overlap) - 155px);
  background: linear-gradient(180deg, var(--bg-2), #08111d 60%, #07101a 100%);
}

.movies-section{
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: var(--section-padding-top);
  padding-bottom: 20px;
  padding-left: var(--section-padding-left);
  padding-right: 0;
  position: relative;
}

.movies-section + .movies-section{
  padding-top: 20px;
}

.movies-section + .movies-section .scroll-btn{
  top: calc(20px + 40px + 16px + (var(--tile-h) / 2));
}

.movies-section h2{
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   MOVIE ROWS & TILES
   ======================================== */
.row{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 80px 28px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  position: relative;
  z-index: 1;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.row::-webkit-scrollbar{
  display: none;
}

.tile{
  flex: 0 0 var(--tile-w);
  width: var(--tile-w);
  height: var(--tile-h);
  position: relative;
  overflow: hidden;
  border-radius: var(--tile-radius);
  background: #0c1626;
  scroll-snap-align: start;
  transition: transform .35s ease;
}

.tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .45s ease;
}

.tile::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.70) 100%);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  pointer-events: none;
}

.tile .info{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tile .title{
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile .meta{
  display: flex;
  gap: 6px;
  align-items: center;
  color: #cfd6e3;
  font-size: 12px;
}

.tile .genre{
  display: none;
}

.badge-type{
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  background: linear-gradient(180deg, #3c4a63, #1d2638);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
}

.badge-adult{
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  background: #e11d48;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: .4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2) inset;
}

.play{
  display: none !important;
}

.tile:hover{
  transform: translateY(-4px) scale(1.02);
}

.tile:hover img{
  transform: scale(1.06);
}

/* ========================================
   TOP 10 STYLE (Style Netflix amélioré)
   ======================================== */
.top10-section{
  position: relative;
  padding-top: 50px;
  padding-bottom: 30px;
}

.top10-section h2{
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--text);
  letter-spacing: -0.3px;
  font-family: "Sora", sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 1px;
}

.top10-row{
  gap: 14px;
  padding: 12px 80px 28px 0;
  display: flex;
  align-items: flex-start;
  position: relative;
  min-height: 450px;
}

.top10-tile{
  flex: 0 0 300px;
  width: 300px;
  height: 450px;
  aspect-ratio: 2/3;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: #0a0f1a;
  cursor: pointer;
  isolation: isolate;
  contain: layout style paint;
  clip-path: inset(0);
}

.top10-tile:hover{
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 8;
  clip-path: inset(0);
}

.top10-tile:hover .top10-rank{
  clip-path: inset(0);
  overflow: hidden;
}

.top10-tile:hover .top10-rank::before,
.top10-tile:hover .top10-rank::after{
  clip-path: inset(0);
  overflow: hidden;
}

.top10-tile img{
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.top10-tile:hover img{
  transform: scale(1.05);
}

.top10-rank{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  z-index: 12;
  pointer-events: none;
  font-family: "Sora", sans-serif;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  clip-path: inset(0);
  contain: strict;
}

.top10-rank::before{
  content: attr(data-rank);
  font-size: 180px;
  font-weight: 900;
  color: rgba(233, 238, 247, 0.08);
  text-shadow: none;
  letter-spacing: -10px;
  line-height: 0.8;
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Sora", sans-serif;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  clip-path: inset(0);
  z-index: 1;
}

.top10-rank-shadow{
  position: absolute;
  left: 24px;
  top: 26px;
  font-size: 72px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: -2px;
  font-family: "Sora", sans-serif;
  z-index: 2;
  filter: blur(6px);
  pointer-events: none;
}

.top10-rank-text{
  position: absolute;
  left: 24px;
  top: 24px;
  font-size: 72px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, var(--text) 50%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  font-family: "Sora", sans-serif;
  z-index: 3;
  pointer-events: none;
}

.top10-tile::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.top10-tile .info{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 18px 18px;
  z-index: 3;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.top10-tile .title{
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.2px;
}

.top10-tile .meta{
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

/* Position des flèches pour le Top 10 - Positionné dynamiquement par JavaScript */
.top10-section .scroll-btn{
  position: absolute;
  width: 56px;
  height: 56px;
  z-index: 10;
  /* Position calculée dynamiquement par JavaScript */
}

.top10-section .scroll-btn svg{
  width: 24px;
  height: 24px;
}

.top10-section .scroll-btn.left{
  left: calc(var(--section-padding-left) - 20px);
}

.top10-section .scroll-btn.right{
  right: 20px;
}

/* ========================================
   SCROLL BUTTONS
   ======================================== */
.scroll-btn{
  position: absolute;
  top: calc(var(--section-padding-top) + 40px + 16px + (var(--tile-h) / 2));
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  outline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scroll-btn.left{
  left: calc(var(--section-padding-left) - 10px);
}

.scroll-btn.right{
  right: 20px;
}

.scroll-btn.hidden{
  opacity: 0 !important;
  pointer-events: none;
}

.movies-section:hover .scroll-btn:not(.hidden){
  opacity: 1;
}

.scroll-btn:hover:not(.hidden){
  background: rgba(0, 0, 0, 0.5);
}

.scroll-btn:active:not(.hidden){
  background: rgba(0, 0, 0, 0.4);
}

.scroll-btn[disabled]{
  opacity: .35;
  cursor: not-allowed;
}

.scroll-btn svg{
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s ease;
}

.scroll-btn.left svg{
  transform: rotate(0deg);
}

.scroll-btn.right svg{
  transform: rotate(0deg);
}

.scroll-btn:hover:not(.hidden) svg{
  transform: scale(1.1);
}

.scroll-btn.left:hover:not(.hidden) svg{
  transform: scale(1.1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Menu hamburger pour mobile */
.menu-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
  position: relative;
}

.menu-toggle span{
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1){
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2){
  opacity: 0;
}

.menu-toggle.active span:nth-child(3){
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px){
  :root{
    --nav-padding-x: 24px;
    --section-padding-left: 40px;
    --tile-w: 280px;
    --tile-h: 158px;
  }
  
  .search-container{
    min-width: 250px;
    max-width: 350px;
    flex: 0 1 auto;
  }
  
  .search-bar{
    min-width: 250px;
    max-width: 350px;
    padding: 9px 14px;
  }
  
  .search-bar input{
    font-size: 13px;
  }
  
  .search-bar input::placeholder{
    font-size: 13px;
  }
  
  .search-bar .search-icon{
    width: 16px;
    height: 16px;
  }
  
  .hero-progress{
    display: none;
  }
  
  .hero-content{
    padding: 24px;
  }
  
  .title{
    font-size: clamp(32px, 5vw, 64px);
  }
  
  .desc{
    font-size: clamp(13px, 1.5vw, 15px);
  }
  
  .top10-tile{
    flex: 0 0 250px;
    width: 250px;
    height: 375px;
  }
  
  .top10-row{
    min-height: 375px;
  }
}

/* Mobiles (jusqu'à 768px) */
@media (max-width: 768px){
  :root{
    --nav-padding-x: 16px;
    --nav-padding-y: 14px;
    --section-padding-left: 20px;
    --section-padding-top: 32px;
    --tile-w: 200px;
    --tile-h: 112px;
    --overlap: 100px;
  }
  
  /* Navigation mobile */
  .menu-toggle{
    display: flex;
  }
  
  .navlinks{
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(7, 11, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    gap: 8px;
    transition: left 0.3s ease;
    z-index: 99;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }
  
  .navlinks.active{
    left: 0;
  }
  
  .navlinks a{
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .spacer{
    flex: 0;
  }
  
  .search-container{
    min-width: 0;
    max-width: 100%;
    flex: 1;
    margin-left: 12px;
  }
  
  .search-bar{
    min-width: 0;
    max-width: 100%;
    padding: 8px 12px;
  }
  
  .search-bar input{
    font-size: 13px;
  }
  
  .search-bar input::placeholder{
    font-size: 13px;
  }
  
  .brand{
    font-size: 18px;
  }
  
  /* Hero section mobile */
  .hero{
    min-height: 70vh;
    padding: 0 16px;
  }
  
  .hero-content{
    padding: 20px;
    max-width: 100%;
  }
  
  .eyebrow{
    font-size: 10px;
    margin-bottom: 6px;
  }
  
  .meta{
    font-size: 12px;
    gap: 4px;
    margin-bottom: 8px;
  }
  
  .meta .badge{
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .title{
    font-size: clamp(24px, 8vw, 40px);
    margin: 6px 0 10px;
  }
  
  .desc{
    font-size: 14px;
    margin: 8px 0 16px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  
  .cta{
    padding: 10px 18px;
    font-size: 13px;
  }
  
  .hero-progress{
    display: none;
  }
  
  /* Sections mobile */
  .content{
    margin-top: calc(var(--overlap) * -1);
    padding-top: calc(var(--overlap) - 100px);
  }
  
  .movies-section{
    padding-top: var(--section-padding-top);
    padding-left: var(--section-padding-left);
    padding-right: 0;
  }
  
  .movies-section h2{
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .row{
    gap: 12px;
    padding: 8px 60px 20px 0;
  }
  
  .scroll-btn{
    width: 36px;
    height: 36px;
    top: calc(var(--section-padding-top) + 30px + 12px + (var(--tile-h) / 2));
  }
  
  .scroll-btn.left{
    left: 10px;
  }
  
  .scroll-btn.right{
    right: 10px;
  }
  
  .scroll-btn svg{
    width: 16px;
    height: 16px;
  }
  
  /* Top 10 mobile */
  .top10-section{
    padding-top: 40px;
    padding-bottom: 24px;
  }
  
  .top10-section h2{
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .top10-row{
    gap: 12px;
    padding: 8px 60px 20px 0;
    min-height: 300px;
  }
  
  .top10-tile{
    flex: 0 0 180px;
    width: 180px;
    height: 270px;
  }
  
  .top10-rank::before{
    font-size: 120px;
    letter-spacing: -6px;
  }
  
  .top10-rank-shadow{
    font-size: 48px;
    left: 16px;
    top: 18px;
  }
  
  .top10-rank-text{
    font-size: 48px;
    left: 16px;
    top: 16px;
  }
  
  .top10-tile .info{
    padding: 16px 12px 12px;
  }
  
  .top10-tile .title{
    font-size: 14px;
  }
  
  .top10-tile .meta{
    font-size: 11px;
  }
  
  .top10-section .scroll-btn{
    width: 36px;
    height: 36px;
    top: calc(40px + 30px + 12px + (270px / 2));
  }
  
  .top10-section .scroll-btn.left{
    left: 10px;
  }
  
  .top10-section .scroll-btn.right{
    right: 10px;
  }
  
  .top10-section .scroll-btn svg{
    width: 16px;
    height: 16px;
  }
  
  /* Masquer les métadonnées sur mobile - garder seulement le titre */
  .tile .meta{
    display: none;
  }
  
  .tile .genre{
    display: none;
  }
  
  /* Réduire la taille des titres sur mobile */
  .tile .title{
    font-size: 12px;
    line-height: 1.3;
  }
  
  /* Suggestions de recherche mobile */
  .search-suggestions{
    max-height: 300px;
    border-radius: 10px;
  }
  
  .search-suggestion-item{
    padding: 10px 12px;
    gap: 10px;
  }
  
  .search-suggestion-item img{
    width: 40px;
    height: 60px;
  }
  
  .suggestion-placeholder{
    width: 40px;
    height: 60px;
  }
  
  .suggestion-title{
    font-size: 13px;
  }
  
  .suggestion-meta{
    font-size: 11px;
  }
}

/* Petits mobiles (jusqu'à 480px) */
@media (max-width: 480px){
  :root{
    --tile-w: 160px;
    --tile-h: 90px;
    --section-padding-left: 16px;
  }
  
  .nav{
    gap: 12px;
  }
  
  .brand{
    font-size: 16px;
  }
  
  .search-bar{
    padding: 6px 10px;
  }
  
  .search-bar input{
    font-size: 12px;
  }
  
  .hero{
    min-height: 60vh;
  }
  
  .hero-content{
    padding: 16px;
  }
  
  .title{
    font-size: clamp(20px, 7vw, 32px);
  }
  
  .desc{
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .meta .badge{
    padding: 5px 8px;
    font-size: 10px;
  }
  
  .row{
    gap: 10px;
    padding: 6px 50px 16px 0;
  }
  
  .top10-tile{
    flex: 0 0 150px;
    width: 150px;
    height: 225px;
  }
  
  .top10-row{
    min-height: 225px;
  }
  
  .top10-rank::before{
    font-size: 100px;
  }
  
  .top10-rank-shadow,
  .top10-rank-text{
    font-size: 40px;
    left: 12px;
    top: 14px;
  }
  
  .movies-section h2{
    font-size: 18px;
  }
  
  /* Masquer les métadonnées sur très petits mobiles - garder seulement le titre */
  .tile .meta{
    display: none;
  }
  
  .tile .genre{
    display: none;
  }
  
  /* Réduire encore plus la taille des titres sur très petits mobiles */
  .tile .title{
    font-size: 11px;
    line-height: 1.2;
  }
}
