@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: #11151c;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px 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;
}

img {
    object-fit: contain;
}

.logo {
    width: 150px;
}

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

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

input {
    width: 400px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    margin: 10px 0;
    background-color: #252b37;
    color: white;
}

/*---------------------------------FICHE-----------------------------------------*/

#movie-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: 20px;
    margin-right: 20px;
}

.movie-item {
    width: 300px;
    height: 600px;
    background-color: #252b37;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    font-family: 'Kanit', sans-serif;
}

.movie-item h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 15px 0;
    padding: 0 10px;
    color: #fff;
    text-align: center;
    word-wrap: break-word;
}


/*------------------------------BOUTON CHARGER PLUS DE RECHERCHE--------------------------------------------*/

.bouton{
    display: flex;
    justify-content: center;
    padding-top: 40px;
    margin-bottom: 40px;
}

.btn {
    color: #d7101d;
    font-family: 'Ubuntu', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #d7101d;
    padding: 10px 20px;
    font-size: 17px;
    cursor: pointer;
    font-weight: bold;
    background: transparent;
    position: relative;
    transition: all 1s;
    overflow: hidden;
    border-radius: 10px;
}


.btn:hover {
    color: white;
}

.btn::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    top: 0;
    left: -40px;
    transform: skewX(45deg);
    background-color: #d7101d;
    z-index: -1;
    transition: all 1s;
}

.btn:hover::before {
    width: 160%;
}




/*------------------------------BOUTON EN SAVOIR PLUS--------------------------------------------*/


.more-info {
    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;
}

.more-info:hover {
    background-color: #a50e16;
}


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;
}

@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;
    }
}