/* reset */
* {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  /* ---- debug responsive ----   border: 1px solid red !important; */
}

*,
::before,
::after {
  box-sizing: border-box;
}

:root {
  --black: #252525;
  --white: #FFFBF2;
  --gray: #ABABAB;
  --red: #F44949;
  --bezier: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sm: 1.5rem;
  --font-md: 1.8rem;
  --font-lg: 2.0rem;
}

html {
  font-size: 62.5%;
  font-family: 'DM Sans', sans-serif;
  font-weight: 200;
  background: var(--white);
  color: var(--black);
  scroll-behavior: smooth;
}

input {
  outline: none;
}

section {
  padding: 6rem 2%;
}

h1 {
  font-family: 'Playwrite CU Guides';
  font-size: 4rem;
}

a {
  color: var(--black);
}

/* header / nav */

header {
  position: fixed;
  z-index: 999;
  top: 1rem;
  width: 96%;
  left: 50%;
  transform: translateX(-50%);
}

.navigation-header a{
  padding: 0 1rem 0 1rem;
  border-radius: 20px;
  background-color: var(--white);
}

header > .logo {
  font-size: 2.4rem;
  font-weight: 400;
}

header > .logo {
  text-decoration: none;
  color: var(--black);
}

nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* selectors */

nav .selectors-container {
  display: flex;
  gap: .7rem;
}

nav a {
  white-space: nowrap;
}

.selectors-container :is(a) {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2.8rem;
  height: 3.2rem;
  border: 1px solid var(--black);
  border-radius: 50rem;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--black);
  background: var(--white);
}

.selectors-container :is(a).active {
  background: var(--gray);
  color: var(--white);
  border: 1px solid transparent;
}

nav .selectors-container .back {
  padding: 0;
  aspect-ratio: 1;
}

nav .selectors-container .back svg {
  fill: var(--black);
}

/* search bar */

.search-container {
  position: relative;
}

.searchbar {
  display: flex;
  align-items: center;
  border-radius: 50rem;
  padding: .5rem 2.8rem .5rem .5rem;
  border: 1px solid var(--black);
  width: 32rem;
  transition: var(--bezier);
  background: var(--white);
}

.searchbar input[type="search"] {
  width: 100%;
}

.search-icon {
    color: var(--gray);
    margin-right: 1rem;
    flex-shrink: 0;
}

.searchbar input[type="search"]::placeholder {
    color: var(--gray);
    width: 100%;
}

.list-search {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid var(--gray);
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    transition: 0.2s;
    border-bottom: 1px solid var(--gray);

}

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

.search-item:hover {
    background-color: var(--gray);
}

.search-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.search-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.search-item-info span {
    font-size: 12px;
}

.no-results {
    padding: 15px;
    text-align: center;
}

/* Carousel */

.carousel-wrapper {
  position: relative;
  display: flex;
  gap: .7rem;
  align-items: center;
}

.carousel-wrapper button {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-wrapper button svg {
  width: 100%;
  height: 100%;
}

.carousel-wrapper .carousel-content {
  display: flex;
  gap: 10px;
  overflow: scroll;
  scroll-behavior: smooth;
  padding-bottom: 15px;
}

.carousel-wrapper :is(.carousel-item, button) {
  cursor: pointer;
}

.carousel-wrapper .carousel-content div {
  flex: 0 0 250px;
}

.carousel-wrapper .carousel-content img {
  display: block;
  width: 250px;
  height: 375px;
  object-fit: cover;
}

.carousel-hero {
  display: flex;
  align-items: center;
}

.carousel-hero .carousel-content, .media-card{
  flex-grow: 1;
  display: flex;
  align-items: center;
  perspective: 100rem;
  overflow: scroll;
  scrollbar-width: none;
  overflow-x: hidden; /* rend impossible à scroller horizontalement le carousel hero*/
  padding: 50px 0;
  scroll-behavior: smooth;
}

.carousel-hero .carousel-content > div {
    transform-style: preserve-3d;
}

.carousel-hero button {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
}

.carousel-hero svg {
  width: 100%;
  height: 100%;
}

.carousel-hero img, .media-visual img {
  width: auto;
  height: 50rem;
  box-shadow: 5px 5px 15px 5px var(--gray);
}


.carousel-hero .carousel-item {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  scroll-snap-align: start;
  transform-style: preserve-3d;
}

.carousel-item p{
  font-size: 1.6rem;
}

.poster-3d-container {
  transform: rotateY(-17deg);
}

/* hero banner */

#hero-banner {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 6rem;
}

#hero-banner > h1:first-child {
  text-align: center;
}

#hero-banner .description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  width: 50%;
  font-size: 1.6rem;
}

#hero-banner .description a {
  color: var(--black);
  text-decoration: underline;
}

/**/

#soon-home,
#favoris-home,
#film-home,
#tv-home,
.category-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.container-carousel-classic {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

#soon-home .carousel-content {
  gap: 15rem;
}

#soon-home .carousel-content img {
  width: 49.5rem;
  height: 27.5rem;
  object-fit: cover;
}

#soon-home::after,
#soon-home::before {
  position: absolute;
  left: 0;
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gray);
}

#soon-home .lines-container {
  position: absolute;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 17.5rem;
  right: 17.5rem;
  height: 100%;
}

.lines-container .line {
  position: relative;
  display: block;
  width: 1px;
  height: 100%;
  background: var(--gray);
}


#soon-home::before {
  top: 0;
}

#soon-home::after {
  bottom: 0;
}

@media (max-width: 900px) {

}

/* Pages FILM Info */

.editorial-wrapper {
    width: 100%;
    max-width: 1100px;
    margin : 0 auto;
}

.media-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.media-visual {
    position: relative;
    width: 100%;
}

.media-data {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.script-heading {
    font-family: 'Playwrite CU Guides';
    margin-bottom: 0.5rem;
}

.synopsis-section > p, .release-info > p, #film-director-name {
    font-size: 1.6rem;
}

.sub-heading {
    font-size: 2rem;
    padding-bottom: 0.2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.data-header {
    /* display: flex; */
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    position: relative;
}

.rating-badge {
    width: 7rem;
    height: 7rem;
    border: 1px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-value {
    font-size: 1.25rem;
    color: var(--black);
}

.release-info {
    font-size: 0.75rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.synopsis-section {
    margin-top: 0.5rem;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--black);
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--red);
    margin: 1rem 0;
}

.btn-icon svg {
    width: 2.4rem;
    height: 2.4rem;
}

.footer-column ul li {
    font-size: 1.6rem;
    font-style: underline;
    list-style: disc;
    text-decoration: underline;
}

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 2%;
    display: flex;
    justify-content: center;
}

.site-footer a, .site-footer p {
    font-size: 1.6rem;
}

.site-footer a {
    color: var(--white);
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    width: 100%;
    max-width: 1200px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* DM Sans - Regular */
@font-face {
  font-family: 'DM Sans';
  src: url('./public/fonts/DMSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* DM Sans - Light */
@font-face {
  font-family: 'DM Sans';
  src: url('./public/fonts/DMSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

/* DM Sans - ExtraLight */
@font-face {
  font-family: 'DM Sans';
  src: url('./public/fonts/DMSans-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

/* Playwrite CU Guides */
@font-face {
  font-family: 'Playwrite CU Guides';
  src: url('./public/fonts/PlaywriteCUGuides-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}