@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/*-----------------------------------barre de nav-----------------------------------*/

nav {
    background-color:transparent;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #252b37;
}

a {
    color: white;
    text-decoration: none;
    padding: 15px;
    margin-right: 5px;
    font-size: 20px;
    font-family: 'Ubuntu', sans-serif;
}

body {
    background-color: #11151c;
    margin: 0;
}

#loupe {
    width: 20px;
}

#logo {
    width: 150px;
}

.effect:hover {
    color: #d7101d;
    transition: ease-in-out 0.3s;
}

/*-------------------------barre de recherche------------------------------------*/

body {
    background-color: #11151c;
    margin: 0;
}


/*---------------------------------Image de fond flouter*/

#fond {
    width: 100%;  
    height: 100%;  
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed; 
    top: 0;
    left: 0;
    z-index: -12; 
    opacity: 0.7; 
    filter: blur(15px); 
    background-image: initial;
}

img {
    width: 400px;
    margin-top: 5%;
    z-index: 10; 
    position: relative;
}

#movie-details {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    max-width: 1200px;
}

.left-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-container img {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
}

.right-container {
    flex: 3; 
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-container h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 28px;
    margin: 0;
}

.right-container p {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.category-label {
    color: #d7101d; 
    font-weight: bold;
}

.titre {
    display: flex;
    justify-content: left;
    padding-left: 0px;
    font-size-adjust: 1.1;
}

.etoile {
    color: #ffd700;
    font-size: 40px;
    margin-right: 5px;
}

.date {
    margin-top: -20px;
}

footer {
    background-color: #121212;
    color: white;
    padding: 40px 20px;
    font-family: 'Ubuntu', sans-serif;
}



.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container div {
    flex: 1 1 250px;
    min-width: 200px;
}

.footer-about,
.footer-links,
.footer-social,
.footer-contact {
    margin-bottom: 20px;
}

.footer-about h3,
.footer-links h3,
.footer-social h3,
.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-about p,
.footer-contact p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 5px 0;
}

.footer-links ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 14px;
    color: #ccc
}

.viewTrailer {
    background-color: #d7101d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s ease-in-out;
}

.viewTrailer:hover {
    background-color: #a50e16;
}

#teaser-container {
    padding: 0;
    text-align: center;
}

iframe {
    width: 640px;
    height: 360px;
    margin-left: 25%;
    margin-bottom: 5%;
}

@media (max-width: 1024px) {
    #movie-details {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .left-container img {
        max-width: 80%;
    }

    .right-container h1 {
        text-align: center;
    }

    .right-container {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    a {
        font-size: 16px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    #logo {
        width: 120px;
    }

    .viewTrailer {
        font-size: 14px;
        padding: 8px 16px;
    }

    #movie-details {
        padding: 10px;
        gap: 20px;
    }

    .right-container h1 {
        font-size: 22px;
    }

    .right-container p {
        font-size: 14px;
    }
}
