@font-face {
  font-family: 'FEAR Logo';
  src: url('fonts/FEARLogo-Regular.woff2') format('woff2'),
       url('fonts/FEARLogo-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.burger span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background-image: linear-gradient(90deg,rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%), url('medias/background.webp');
background-size:cover;
background-position:center;
  color: #fff;
  overflow-x: hidden;
  max-width: 100vw;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Header */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  transition: background-color 0.4s ease;
  background-color: transparent;
}
#header.scrolled {
  background-color: rgba(0, 0, 0, 0.85);
}
#header .logo {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-right: 40px;
  user-select: none;
  font-family:'FEAR Logo', sans-serif;
  color:rgb(131,16,16);
}
#header nav {
  display: flex;
  gap: 25px;
  font-weight: 600;
}
#header nav a:hover {
  color: #e50914;
}

/* Hero section */
#hero {
  position: relative;
  width: 100%;
  max-height: 100vh;
  overflow: hidden;
  transition: max-height 0.6s ease;
background-color:black;
  aspect-ratio: 16 / 9;


}
#hero.shrink {
  max-height: 35vh;
transition: max-height 0.6s ease;
}
#hero video,
#poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
  mask-image: linear-gradient(to right, transparent, black 60%, black 10%);
}
#poster {
  background: url('medias/PP.webp') center center / cover no-repeat;
  z-index: 2;
}
#poster.hidden {
  opacity: 0;
}

/* Texte dans hero */
#hero .title {
  position: absolute;
  top: 50%;
  left: 50px;
  transform: translateY(-50%);
  z-index: 11;
  font-size: 2.8rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  transition: all 0.6s ease;
}

h1 {
  font-family: 'FEAR logo', sans-serif;
}
#hero.shrink .title {
  top: 20px;
  left: 20px;
  font-size: 1.5rem;
  transform: none;
}
.subtitle {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 20px;
  max-width: 90%;
  font-family: 'Cinzel', serif;
}

/* Boutons dans hero */
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn.play {
  background-color: #e50914;
  color: white;
}
.btn.play:hover {
  background-color: #f6121d;
}
.btn.like {
  background-color: #333;
  color: white;
}
.btn.like:hover {
  background-color: #555;
}
.btn.dislike {
  background-color: #222;
  color: #888;
  cursor: default;
  pointer-events: none;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  z-index: 2;
}

/* Sections catégorie */
section.category {
  position: relative;
  margin-bottom: 40px;
  padding: 2% 3%;
}
section.category h2 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.8rem;
  font-family: 'Cinzel', serif;
}

/* Scroll container et items */

.scroll-container {
  display: flex;
  gap: 2%;
  overflow: visible;
scroll-behavior:smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-left: 3vw;
  margin-left: -3vw;
  margin-right:-3vw;
  padding-right:3vw;
}
.scroll-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.item {
  aspect-ratio: 16 / 9;
  width: 18%;
  min-width: 200px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: visible;
  background: transparent;
z-index:10;
box-shadow:0 0 50px 1px black;
}
.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
z-index:1;
}
.item:hover {
  transform: scale(1.2);
  z-index: 100;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 50px 5px rgba(255, 129, 177, 0.8);
}

/* Infos des items */
.info {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 10px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.item:hover .info {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 15px 50px 0px rgba(255, 129, 177, 0.8); 
}
.info h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}
.date {
  font-size: 0.75rem;
  color: #ccc;
  white-space: nowrap;
}
.info p {
  font-size: 0.85rem;
}
.info-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

/* Flèches scroll */
.arrow-left, .arrow-right {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  font-size: 4rem;
  cursor: pointer;
  user-select: none;
  z-index: 1000;
  color: #fff;
}

.arrow-left {
  left: 1rem;

}

.arrow-right {
  right: 1rem;
}

.category {
  position: relative;
  z-index: 1;
  transition: z-index 0.3s ease;
}

.category.hovered {
  z-index: 102; /* Met la catégorie au dessus */
}

.title .seasons {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 8px 0 6px 0;
  color: #e50914; /* couleur rouge Netflix */
}

.title .synopsis {
  font-size: 1rem;
  max-width: 400px;
  color: #ddd;
  margin-bottom: 20px;
  line-height: 1.4;
}

.saisons {
  font-size: 0.75rem;
  color: #ccc;
  margin: 0.2rem 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  padding: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
 text-align: center;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #ccc;
  font-family: 'Cinzel', serif;
}

.footer-column a {
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
  color: #e50914;
}

.logo-column {
  text-align: center;
}

.logo-column img {
  max-height: 20vw;
  object-fit: contain;
}
.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
  font-family: 'Cinzel', serif;
}

@media (max-width: 768px) {

  .scroll-container {
    display: block;
    overflow-x: visible;
	padding:10%;
  }

  .item {
    width: 100%;
    margin-bottom: 1rem;
  }

  .item .info {
    display: none;
  }

  .item.expanded .info {
    display: block ;
  }



#hero.shrink {
  max-height: none;
}

  #hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow: visible;
background-color:transparent;
padding-top:60px;
  }

#poster {
position:absolute;
max-width:100vw;
}
#hero {
margin-bottom:10%;
}

  #hero video,
  #hero {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    mask-image: none;
  }

  .hero-overlay {
    display: none;
  }

  /* Texte en dessous */
  #hero .title {
    position: static;
    transform: none;
    text-align: center;
    margin: 20px 0 10px 0;
    padding: 0 10px;
    font-size: 1.2rem;
background-color:transparent;
    opacity: 1;
    top: auto;
    scale: 1;
    transition: none;
  }

  #hero.shrink .title {
    transform: none;
    opacity: 1;
    scale: 1;
  }

  #hero .subtitle,
  #hero .seasons,
  #hero .synopsis,
  #hero .hero-buttons {
    text-align: center;
    max-width: 90%;
    margin: 5px auto;
    font-size: 0.6rem;
    transform: none !important;
    opacity: 1 !important;
    scale: 1 !important;
    top: auto !important;
    transition: none !important;
  }

  .hero-buttons {
    justify-content: center;
    scale: 0.6;
  }

  .arrow-left,
  .arrow-right {
    display: none;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    background-color: #000; 
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    z-index: 1000;
  }

  #nav-menu.show {
    display: flex;
  }

  .burger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 18px;
    z-index: 1100;
  }
  .burger span {
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
  }

  #header nav {
    display: none;
  }
	
  #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background-color: transparent;
    transition: background-color 0.3s ease;
  }

  #header.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
  }
	  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 1.5rem;
  }

}
