* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

header {
    position: relative;
    color: white;
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: color 2.5s; /* Transition de 0,5 seconde pour la couleur du texte */
    background: rgba(189, 8, 8, 0.33);
}

header li{
    list-style: none;
}

header a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

header:hover{
    color: rgb(175, 7, 7);
}

.navbar {
    width: 100%;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a{
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar .links {
    display: flex;
    gap: 2rem;
}

.navbar .toggle_btn {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.toggle_btn:hover {
    scale: .05;
    color: var(--bg-color);
}

.action_btn {
    background-color: orange;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: scale 0.2 ease;
}

.action_btn:hover {
    scale: 1.05;
    color: white;
}

.action_btn:active {
    scale: 0.95;
}

.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown_menu.open {
    height: 240px;
}

.dropdown_menu li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown_menu .action_btn {
    width: 100%;
    display: flex;
    justify-content: center;
} 

footer {
    background: rgba(189, 8, 8, 0.33);
    padding: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer h1 {
    color: white;
    font-size: 1rem;
}

footer .bxl-youtube {
    font-size: 2rem;
}

footer p {
    color: white;
}

footer p a {
    color: white;
}

footer a:hover {
    color: black;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 120px;
    background: rgba(251, 250, 250, 0.554);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    margin-left: -2.5rem;
    box-shadow: 0 0 20px rgb(175, 7, 7);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    scale: 1.2;
    color: rgb(175, 7, 7);
}



@media (max-width: 992px) {
    .navbar .links,
    .navbar .action_btn {
        display: none;
    }

    .navbar .toggle_btn {
        display: block;
    }

    .dropdown_menu {
        display: block;
    }
}

@media (max-width: 576px) {
    .dropdown_menu {
        left: 2rem;
        width: unset;
    }

}


html {
    background-color: black;
    scroll-behavior: smooth;
}

:root {
    --text-color: white;
    --sec-text-color: black;
    --third-text-color: orange;
    --bg-color: #ffa600;
    --footer-bg: rgb(100, 61, 136);
}

span {
    color: rgb(100, 61, 136);
}


section {
    min-width: 100vh;
    padding: 10rem 9% 2rem;
}

.login {
    font-size: 24px;
    text-decoration: none;
}

section#home { 
    display: flex;
    padding: 0 9%;
    background-image: url('src/img/blaack.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
}

.home-content {
    max-width: 30rem;
    position: relative;
    left: 47rem;
    top: 9rem;
    display: inline-block;

}

.home-content .heading {
    font-size: 3rem;
    letter-spacing: 0.1rem;
    color: rgb(175, 7, 7);
    margin-bottom: 2rem;
}

.home-content .heading h1 {
    font-family: Montserrat;
}

.home-content p {
    font-size: 1rem;
    font-family: Montserrat;
    max-width: 25rem;
    color: var(--text-color);
}

.home-content .buttons {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.home-content .watch {
    position: relative;
    color: white;
    background-color: red;
    padding: 7px 15px;
    border: red;
    margin-right: 1rem;
    width: 105px;
    height: 40px;
    border-radius: 30px;
    font-size: 1rem;
}

.home-content .playlist {
    position: relative;
    color: white;
    background-color: gray;
    font-size: 0.8rem;
    padding: 7px 15px;
    border: gray;
    width: 105px;
    height: 40px;
    border-radius: 30px;
}

.info-movie h2 {
    color: rgb(175, 7, 7);
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.info-movie h3 {
    color: gray;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.info-movie p{
    margin-top: 1rem;
    color: #959595;
    font-family: Montserrat;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.watch:hover {
    scale: 1.1;
}

.playlist:hover {
    scale: 1.1;
}


.input__container {
    position: relative;
    background: rgba(255, 255, 255, 0.664);
    padding: 5px 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 22px;
    max-width: 3500px;
    transition: transform 400ms;
    transform-style: preserve-3d;
    perspective: 800px;
  }
  
  .shadow__input {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    z-index: -1;
    filter: blur(30px);
    border-radius: 20px;
    background-color: #999cff;
    background-image: radial-gradient(at 85% 51%, hsla(60,60%,61%,1) 0px, transparent 50%),
      radial-gradient(at 74% 68%, hsla(235,69%,77%,1) 0px, transparent 50%),
      radial-gradient(at 64% 79%, hsla(284,72%,73%,1) 0px, transparent 50%),
      radial-gradient(at 75% 16%, hsla(283,60%,72%,1) 0px, transparent 50%),
      radial-gradient(at 90% 65%, hsla(153,70%,64%,1) 0px, transparent 50%),
      radial-gradient(at 91% 83%, hsla(283,74%,69%,1) 0px, transparent 50%),
      radial-gradient(at 72% 91%, hsla(213,75%,75%,1) 0px, transparent 50%);
  }
  
  .input__button__shadow {
    cursor: pointer;
    border: none;
    background: none;
    transition: transform 400ms, background 400ms;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    padding: 5px;
  }
  
  .input__button__shadow:hover {
    background: rgba(255, 255, 255, 0.411);
  }
  
  .input__search {
    width: 100%;
    border-radius: 20px;
    outline: none;
    border: none;
    padding: 5px 20px;
    position: relative;
    text-align: center;
  }


section#trending-videos { 
    display: grid;
    padding: 0 9%;
    height: 200vh;
    grid-template-columns: repeat(3, 1fr); 
    grid-gap: 20px; 
    margin-top: 4rem;
}

.trending-videos .video-card {
    border: 1px solid #ddd;
    padding: 10px;
}

.video-card img {
    margin-bottom: 0.5rem;
    border-radius: 20px;
}

.video-card:hover {
    scale: 1.1;
    animation: 1s;
}

.video-card canvas {
    border-radius: 20px;
    box-shadow: 0 0 30px hsla(283,74%,69%,1);    
}

.video-card h2 {
    color: white;
    font-size: 1.2rem;
}

.video-card p {
    color: gray;
    font-size: 0.8rem;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.home2-content .home2-heading {
    text-align: left;
    color: white;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 3rem;
}

.home2-content p{
    letter-spacing: 0.1rem;
    color: white;
    font-size: 2rem;
    font-style: oblique;
    margin-bottom: 5rem;
}


section#genres {
    padding: 0 9%;
    height: 120vh;
    background-color: wheat;
}

#genres select {
    font-size: 1rem;
    border-radius: 20px;
    text-align: center;
    border: 10px;
}

#genres h2 {
    padding-top: 2rem;
    font-size: 24px;
    margin-bottom: 10px;
}

#genres a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

#videos {
    padding: 16px;
}

#genre-videos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.video-card2 {
    flex: calc(33.33% - 10px);
    margin-bottom: 20px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    box-sizing: border-box; 
    margin: 5px;
}

@media (max-width: 768px) {
    .video-card2 {
        flex: calc(50% - 10px); 
    }
}

#genre-videos .video-card2 img {
    max-width: 100%; 
}

#genre-videos .video-card2 h2 {
    font-size: 12px;
    max-width: 20rem;
}

#genre-videos .video-card2 p {
    font-size: 10px;
    color: #888;
    margin: 0;
}

section#about-section {
    padding: 0 9%;
    height: 120vh;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content {
    display: block;
    margin-left: 2rem;
}

.about-content h1{
    color: rgb(175, 7, 7);
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 1rem;
}

.about-content h2 {
    font-size: 1.6rem;
    color: rgb(175, 7, 7);
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 15px;
    color: white;
    margin-bottom: 1rem;
    margin-top: 1rem;
    letter-spacing: 0.6px;
}

.about-content li {
    color: white;
}

.about-content ul {
    color: white;
    margin-bottom: 1rem;
}

#canvas {
    display: block;
}
/* Contact */


section#contact {
    display: flex;
    align-items: center;
    padding: 0 9%;
    background-color: black;
    height: 100vh;
    justify-content: space-between;
}

.contact-content {
    max-width: 60rem;
}

.contact-content h1 {
    color: rgb(175, 7, 7);
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.form-container {
    width: 400px;
    background: linear-gradient(#212121, #212121) padding-box,
                linear-gradient(145deg, transparent 35%,#e81cff, #40c9ff) border-box;
    border: 2px solid transparent;
    padding: 32px 24px;
    font-size: 14px;
    font-family: inherit;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    border-radius: 16px;
  }
  
  .form-container button:active {
    scale: 0.95;
  }
  
  .form-container .form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .form-container .form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .form-container .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #717171;
    font-weight: 600;
    font-size: 12px;
  }
  
  .form-container .form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    background-color: transparent;
    border: 1px solid #414141;
  }
  
  .form-container .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    resize: none;
    color: #fff;
    height: 96px;
    border: 1px solid #414141;
    background-color: transparent;
    font-family: inherit;
  }
  
  .form-container .form-group input::placeholder {
    opacity: 0.5;
  }
  
  .form-container .form-group input:focus {
    outline: none;
    border-color: #e81cff;
  }
  
  .form-container .form-group textarea:focus {
    outline: none;
    border-color: #e81cff;
  }
  
  .form-container .form-submit-btn {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    align-self: flex-start;
    font-family: inherit;
    color: white;
    font-weight: 600;
    width: 40%;
    background: #313131;
    border: 1px solid #414141;
    padding: 12px 16px;
    font-size: inherit;
    gap: 8px;
    margin-top: 8px;
    cursor: pointer;
    border-radius: 6px;
  }
  
  .form-container .form-submit-btn:hover {
    background-color: rgb(100, 61, 136);
    border-color: rgb(100, 61, 136)ff;
  }
