h2 {
    text-align: center;
    margin-top: 32px;
}

main {
    margin: 5vh 6vw;
}

section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 0 10vw 5vw 10vw;
}

/************************************/
/*             FILTRES              */
/************************************/

.zone-filtre {
    display: grid;
    background-color: #fff;
    border: 2px solid #000;
    grid-column: 1 / 5;
}

.entete-tri {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding: 8px 32px;
}

.entete-tri:hover {
    background-color: #eee;
    cursor: pointer;
}

.afficher {
    display: block;
}

.masquer {
    display: none;
}

form {
    padding: 16px 32px;
    display: none;
}

.zone-filtre h3 {
    margin: 16px 0 8px 0;
}

.tri-select {
    margin-bottom: 24px;
}

/* Chevron */
.chevron {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.barre-gauche,.barre-droite {
    width: 12px;         
    height: 2.5px;       
    background-color: #000;
    transition: transform 0.3s ease-in-out;
}

.barre-gauche {
    transform: rotate(45deg);
}

.barre-droite {
    transform: rotate(-45deg);
}

.chevron.chevron-haut .barre-gauche {
    transform: rotate(-45deg);
}

.chevron.chevron-haut .barre-droite {
    transform: rotate(45deg);
}

/************************************/
/*           CARTES FILMS           */
/************************************/

.zone-affiche {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: #eee;
}

.zone-affiche>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.infos-film {
    background-color: #fff;
    display: grid;
    grid-template-columns: 2fr 1fr;
    border: 1px solid #000;
    text-align: center;
}

.infos-film>div {
    padding: 8px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-titre {
    min-height: 3.5rem;
    grid-column: span 2;
    border-bottom: 1px solid #000;
    font-size: 0.9rem;
}

.case-annee {
    border-right: 1px solid #000;
    font-size: 0.9rem;
}

.case-note {
    font-size: 0.9rem;
}

/************************************/
/*         FILTRAGE GENRES          */
/************************************/

.zone-genres {
    grid-column: 1 / 5;
    padding: 0 32px 32px 32px;
    border-bottom: 1px solid #808080;
}

.genres {
    display: flex;
    flex-wrap: wrap;
}

#aucun-resultat {
    display: none; 
    text-align: center; 
    width: 100%; 
    padding: 50px; 
    font-size: 1.2rem; 
    font-weight: bold;
}

section.catalogue.filtrage-actif a {
    display: none;
}

/************************************/
/*        CARTES RÉALISATEURS       */
/************************************/

.infos-realisateur {
    background-color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    border: 1px solid #000;
    text-align: center;
}

.infos-realisateur > div {
    padding: 8px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-nom {
    min-height: 3.5rem;
    grid-column: span 2;
    border-bottom: 1px solid #000;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.case-naissance {
    border-right: 1px solid #000;
    font-size: 0.8rem;
}

.case-pays {
    font-size: 0.8rem;
    font-weight: bold;
}

