body{
    margin: 0;
    background-image: url(../Image/background.jpeg);
}

#search{
    background: #ffffff;
    width: 700px;
    max-width: 90%;
    height: 40px;
    border-radius: 20px;
    color: rgb(0, 0, 0);
    transition: all 0.51s ease;
    text-align: center;
}

#search:hover{
    transform: scale(1.06);
}

#btn-search{
    background-color: rgb(218, 35, 35);
    border: none;
    color: white;
    border-radius: 12px;
    margin-top: 5%;
    width: 200px;
    height: 40px;
    font-weight: bold;
}

#btn-search:hover{
    background-color: rgb(189, 40, 40);
}

#btn-search:active{
    background-color: rgb(150, 77, 77);
}

header{
    padding: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

form{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

#contenu{
    display: grid;
    grid-template-columns: auto auto auto;
    background-color: rgba(31, 34, 34, 0.671);
    width: 75%;
    height: auto;
    gap: 30px;
    border-radius: 20px;
    padding: 20px;
}

.img-film{
    grid-column: 1;
    border-radius: 20px;
    max-width: 100%;
    height: auto;
}

.info{
    grid-column: 2;
}

.Plot{
    grid-column: 3;
}

footer{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    bottom: 0;
}

.by{
    color: white;
    font-weight: bold;
    background-color: rgba(31, 34, 34, 0.671);
    font-size: 2em;
    padding: 10px;
    border-radius: 15px;
    text-align: center;
}

/* Tablette */
@media all and (max-width: 1006px) {
    #contenu{
        grid-template-columns: auto auto;
        width: 85%;
    }
    .img-film{
        grid-column: 1;
        grid-row: 1 / 3;
        width: 200px;
    }
    .info{
        grid-column: 2;
    }
    .Plot{
        grid-column: 2;
    }
}

/* Mobile */
@media all and (max-width: 642px) {
    #contenu{
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 90%;
        gap: 15px;
        padding: 15px;
    }
    .img-film{
        width: 180px;
    }
    .info{
        text-align: center;
    }
    .Plot{
        text-align: center;
        margin-bottom: 5px;
    }
    #btn-search{
        width: 150px;
        height: 35px;
    }
    .by{
        font-size: 1.3em;
    }
}

@media all and (max-width: 380px) {
    #search{
        width: 95%;
    }
    #btn-search{
        width: 130px;
        height: 32px;
        font-size: 0.9em;
    }
    .img-film{
        width: 150px;
    }
}