@import url("variables.css");
#fond{
    width: 100%;
    height: 700px;
    background-color: blue;
    position: relative;
}

#info-film{
    position: absolute;
    display: flex;
    align-items: end;
    flex-direction: column;
    gap: 30px;
    right: 100px;
    bottom: 150px;
    width: 50%;
}

#info-film h1{
    color: white;
    font-size: 42px;
    font-weight: 600;
    text-align: right;
    text-transform: uppercase;
}
#info-film p{
    color: white;
    font-size: 14px;
    text-align: right;

}
#info-film a{
    color: black;
    background-color: var(--light);
    padding: 7px 0px;
    border-radius: 30px;
    width: 200px;
    margin-right: 0;
    text-align: center;
}

/*Nouveautés*/

#nouveautés-lg, #nouveautés-sm{
    width: 100%;
    height: 350px;
    padding: 50px 0;
}
.lg{
    display: block;
}
.sm{
    display: none;
}
#nouv-center{
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    max-width: 1150px;
}
.titre{
    font-size: 20px;
    color: white;
}

#ressources{
    width: 100%;
    padding: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card{
    width: 130px;
    height: auto;
    
}

.card img {
    width: 100%;
    height: 180px;
    background-color: blue;
    object-fit: cover;
}

#container-selection{
    width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 70px 0;
}
#ressources-selection{
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
}
#texte-selection{
    text-align: center;
}
.titre-selection{
   text-align: center;
}
@media (max-width: 1235px){
    #ressources{
        width: 100%;
        height: 300px;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        justify-content: left;
        padding-left: 20px;
        display: flex;
    }
    .card{
        flex: 0 0 auto;
        width: 130px ;
        box-sizing: border-box;
    }
}
@media (max-width: 1000px){
    #fond{
        margin-top: 30px;
        aspect-ratio: 16/9;
        height: auto;
    }
    #info-film{
        bottom: 50%;
        transform: translateY(50%);
        width: 500px;
    }
    .lg{
        display: none;
    }
    .sm{
        display: block;
    }
    #container-selection{
        width: 90%;
        margin: auto;
    }
    #ressources-selection{
        justify-content:center;
    }
}

@media (max-width: 740px){
    #info-film{
        right: 50px;
        gap: 20px;
    }
    #info-film h1{
        font-size:36px;
    }
    #info-film p{
        font-size: 12px;
    }
}
@media (max-width: 630px){
    #info-film{
        width: 350px;
    }
    #info-film h1{
        font-size:32px;
    }
    #ressources{
        height: 250px;
    }
    .card{
        width: 100px;
    }
    .card img{
        height: 140px;
    }
    .card p {
        font-size: 12px;
    }
    
}
@media (max-width: 520px){
    #info-film{
        right: 30px;
        gap: 15px;
        width: 300px;
    }
    #info-film h1{
        font-size: 28px;
    }
    #info-film p{
        font-size: 10px;
    }
    #info-film a{
        width: 150px;
        font-size: 14px;
    }
}

@media (max-width: 420px){
    #info-film{
        gap: 10px;
    }
    #info-film h1{
        font-size: 24px;
    }
    #info-film a{
        width: 120px;
        padding: 4px 0;
        font-size: 12px;
        margin-top: 5px;
    }
}