
.page-ressources{
    h1{
        width: 80%;
        margin: auto;
        font-weight: 1000;

    }
    .view-ressources{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 5rem;
        width: 80%;
        margin: auto;
        #views-exposed-form-ressources-page-1{
            width: 100%;
            margin: auto;
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            grid-template-rows: repeat(3, 1fr);
            padding: 1rem;
            height: fit-content;
            max-height: 17rem;
            &::before{
                content: 'FILTRER :';
                grid-column: 1;
                grid-row: 1;
                
            }
            .form-item, .form-actions{ margin: 1rem;align-self: end;}
            .form-item-title{
                grid-column: 1 /span 8;
                grid-row: 1;
                margin-top: 3rem;
            }
            .js-form-item-field-site-target-id{
                
                grid-column: 1 /span 2;
                grid-row: 2;
                width: 45%;
            }
            .form-item-field-themes-target-id{
                grid-column: 3 /span 4;
                grid-row: 2;
                width: 45%;
                
            }
            .form-item-field-type-de-ressource-target-id{
                width: 45%;
                grid-column: 5 /span 6;
                grid-row: 2;
            }
            
            .form-select{
                background: white;
                border: solid gray 1px;
                height: 2.5rem;
                padding-left: 1rem;
                padding-right: 1rem;
            }
            #edit-actions{
                grid-column: 7 /span 8;
                grid-row: 2;
                .form-submit{
                    margin: 0;
                }
            }
        }
                     
        article{
            padding-bottom: 0 !important;
        }
        .views-row{
            width: 30%;
            // padding: 1rem;
            display: flex !important;
            flex-direction: column;
            background-color: $white-button;
            margin-bottom: 6rem;
            &:hover{
                transform: scale(1.05);
                transition: 0.3s transform ease, 0.3s box-shadow ease;   
            }
            .node-type-ressource{             
                width: 100%;
                // margin: auto;
                display: flex !important;
                flex-direction: column-reverse;
                padding-top: 0;
                .image-ressource{
                    order: 1;
                    width: auto;
                    margin: auto;
                    margin-left: auto;
                    height: 15rem;
                    margin-left: 0;
                    .field--name-field-image{
                        height: 100%;
                        .field__items{
                            height: 100%;
                            .field__item{
                                height: 100%;
                                img{
                                    height: 100%;
                                    object-fit: cover;
                                    max-width: 100%;
                                    width: 100% !important;
                                }
                            }
                        }
                    }
                    
                }
                .body-content{display: none;}
                .infos-content{
                    display: flex;
                    flex-direction: column;
                    background-color: transparent !important;
                    right: 0;
                    margin-bottom: 0;
                    border: none;
                    margin-left: 0 !important;
                    width: auto;
                    h1{display: none;}
                    h2{
                        order: 2;
                        margin: 0;
                        font-size: 1.2rem;
                        font-weight: 500;
                        line-height: 1.8rem;
                    }
                    .field--name-field-sous-titre {
                        order: 3;
                        font-size: 1rem;
                        padding-top: 0.3rem;
                    }
                    .field--name-field-auteur{
                        order: 4;
                        font-weight: 900;
                        padding-top: 0.5rem;
                        padding-bottom: 1rem;
                        font-size: 0.8rem;
                    }
                
                    .field--name-field-type-de-ressource{
                        order: 1;
                        text-transform: uppercase;
                        font-size: 0.7rem;
                        a{
                            pointer-events: none;
                        }
                    }
                    .field--name-field-site{

                        order: 5;
                        background-color: $gris-violet;
                        color: white;
                        border-radius: 50px;
                        width: fit-content;
                        padding: 0.2rem 0.9rem;
                        margin-top: 1rem;

                        .field__item{
                            display: inline;
                        }         
                        a{
                            color: white;
                            font-weight: 900;
                            font-size: 0.8rem;
                            vertical-align: top;
                        }
                    }
                    ul.links{
                        order: 6;
                        display: none;
                    }
                }
            }
        }
        .pagination{
            width: 100%;
        }
    }
    
}

