
#ressources{
    background-color: #f6f7f3;

    main{
        @media(max-width: 810px){
            display: flex;
            flex-direction: column-reverse;
        }
    }
    .layout-content{
        // padding-top: 1rem;

        .content_container{
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 2rem;

            #block-quartiers-de-demain-titredepage{
                margin-top: 3rem;
                margin-left: 15%;
                margin-bottom: 1rem;
                width: 65%;
                @media(max-width: 810px){
                    display: flex;
                    margin:auto;
                    margin-top: 13rem;
                    margin-bottom: 1rem;
                }
                h1{
                    width: fit-content;
                    margin: auto;
                    text-transform: none;
                    color: black;
                    font-size: 2rem;
                    font-family: "gilroy-medium"
                }
                
                
            }
            .views-element-container{
                margin-left: 20%;
                width: 70%;
                @media(max-width: 810px){
                    margin-left: 0%;
                    width: 90%;
                } 
                h3{
                    &::before{
                        content:"";
                        display: block;
                        border-bottom: solid 2px $blue_QDD;
                        // width: 80% ;
                        margin: auto;
                    }
                    text-align: center;
                    div{
                        .field_name{
                            h2{
                                margin-bottom: 0.6rem;
                                a{
                                    font-family: "gilroy-light";
                                    color: $blue_QDD;
                                    font-size: 1.2rem;
                                    pointer-events: none;
                                }
                            }
                        }
                        .field_description{
                            margin-left: 10%;
                            margin-right: 10%;
                            font-family: "gilroy-light";
                            p{
                                margin-top: 0.6rem;
                            }
                        }
                    }
                    .type-Kit-de-communication{
                        background-color: $blue_QDD;
                        .field_name h2 {
                            margin: 0;
                            a{
                                color: white;
                            }
                        }
                        
                    }
                    
                }
                h3:has(div.type-Kit-de-communication){
                    display: none;
                    margin-bottom: 0;
                    .field_name{
                        padding-top: 1rem;
                    }
                }
                button.voir-plus{
                    background-color: transparent;
                    color: $blue_QDD;
                    border: solid $blue_QDD 0.5px;
                    padding: 0.3rem;
                    display: flex;
                    margin: auto;
                }
                .view-rows-wrapper{
                    display: flex;
                    flex-direction: row;
                    flex-wrap: wrap;
                    
                    
                    .views-row{
                        font-size: 0.5rem;
                        margin-bottom: 1rem;
                        @media(max-width: 810px){
                            font-size: 0.8rem;
                        }
                        .views-field-title-1,
                        .views-field-field-sous-titre-1,
                        .views-field-views-conditional-field-1{
                            font-family: "gilroy-medium";
                            color: $blue_QDD;
                            font-size: 00.6rem;
                            margin-bottom: 0;
                            @media(max-width: 810px){
                                font-size: 1rem;
                            }
                        } 
                        .views-field-body-1{
                            font-family: "gilroy-light";
                            p{
                                font-size: 0.5rem;
                                @media(max-width: 810px){
                                    font-size: 0.8rem;
                                }
                            }    
                        }
                        .views-field-field-mots-clefs{
                            margin-top: 0.5rem;
                            display: flex;
                            flex-direction: row !important;
                            a{
                                border: solid 1px $blue_QDD;
                                margin-right: 0.2rem;
                                padding: 0.1rem 0.2rem;
                                font-size: 0.4rem;
                                font-family: "gilroy-semibold";
                                color: $blue_QDD;
                                @media(max-width: 810px){
                                    font-size: 0.8rem;
                                }
                            
                            }

                        }  
                        .views-field-field-site{
                            margin-top: 0.5rem;
                            div {
                                a {
                                    position: relative;
                                    padding-left: 20px; // Ajuster selon la taille de l'icône
                                    &:before {
                                        content: "";
                                        position: absolute;
                                        left: 0;
                                        top: 50%;
                                        transform: translateY(-50%);
                                        width: 1em;
                                        height: 1em;
                                        background-image: url("../img/map_pointer.svg");
                                        background-size: contain;
                                        background-repeat: no-repeat;
                                    }
                                    color: $red_QDD;
                                    font-family: "gilroy-semibold";
                                }
                            }
                        }  
                        .views-field-field-liens{
                            margin-top: 0.5rem;

                        }
                        .views-field-field-documents{
                            margin-top: 0.5rem;

                        }
                        
                        .views-field-field-date-ressource{

                        }
                        

                    }
                    &.type-Documentation-générale{
                        
                        .views-row{
                            width: 22%;
                            padding: 0.5rem;

                            @media(max-width: 810px){
                                width: 50%;
                            }
                            h2{margin-bottom: 0.2rem;}
                            .views-field-field-date-ressource{
                                padding-top: 0.3rem;
                            }
                            .views-field-body-1 p{
                                margin-top: 0.2rem;
                                margin-bottom: 0.2rem;
                            }
                            .views-field-field-documents a,
                            .views-field-field-liens a{

                                display: inline-flex;
                                align-items: center;
                                color: white;
                                background: black;
                                text-transform: uppercase;
                                font-size: 0.4rem;
                                padding: 0.1rem 0.5rem;
                                padding-right: 0rem;
                                &::after{
                                    display: inline-flex;
                                    content: url("../img/noun-arrow-to-right.svg");
                                    padding-right: 0.1rem;
                                    padding-left: 0.1rem;
                                    height: 25px;
                                }
                            }

                        }
                    }
                    &.type-Podcast{
                        .views-row{
                            width: 50%;
                            height: fit-content;
                            display: grid;
                            grid-template-columns: 1fr 1.2fr;
                            grid-template-rows: repeat(5 1fr);
                            margin-top: 1rem;
                            @media(max-width: 810px){
                                width: 100%;
                                // grid-template-columns: 1fr 2fr;
                                display: flex;
                                flex-direction: column;
                            }
                            .views-field-field-images,
                            .views-field-field-video   {
                               grid-column: 1;
                               grid-row: 1 /span 5;
                               padding: 0 1rem 1rem 1rem;
                               @media(max-width: 810px){
                                padding: 0 0 1rem 0;
                                }
                               iframe{
                                    width: 100%;
                                    height: auto;
                                    aspect-ratio: 1 / 1;
                                    border-radius: 9px;
                                    @media(max-width: 810px){
                                        width: auto;
                                        height: 100%;
                                    }
                                }
                                img{
                                    width: 100%;
                                    height: auto;
                                    aspect-ratio: 1 / 1;
                                    object-fit: cover;
                                    border-radius: 9px;
                                }
                            }
                            .views-field-title-1{
                                margin-top: 0;
                            }
                            .views-field-title-1,
                            .views-field-field-sous-titre-1,
                            .views-field-field-author,
                            .views-field-field-date-ressource,
                            .views-field-body-1,
                            .views-field-field-mots-clefs,
                            .views-field-field-site,
                            .views-field-field-documents,
                            .views-field-field-liens{
                               grid-column: 2;
                               
                            }
                            .views-field-field-liens{
                                display: none;
                            }
                    
                        }
                       
                    }
                    &.type-Vidéos{
                        .views-row{
                            width: 43%;
                            margin: 1rem;
                            justify-content: space-between;
                            @media(max-width: 810px){
                                width: 100%;
                            }
                            img{
                                max-width: 100%;
                                height: auto;
                                object-fit: cover;
                                border-radius: 9px;
                            }
                            iframe{
                                border-radius: 9px;
                            }
                            .views-field-title-1{margin-top: 1rem;}
                            .views-field-field-liens{
                                display: none;
                            }
                            
                        }
                    }
                    &.type-Kit-de-communication{
                        display: none;
                        width: 100%;
                        background-color: $blue_QDD;
                    }
                    &.type-Mission-photo{
                        justify-content: space-between;
                        .views-row{
                            width: 18%;
                            // margin: 0.5rem;
                            justify-content: space-between;
                            @media(max-width: 810px){
                                width: 100%;
                            }
                            img{
                                max-width: 100%;
                                height: auto;
                                object-fit: cover;
                                border-radius: 9px;
                            }
                            iframe{
                                border-radius: 9px;
                            }
                            .views-field-title-1{margin-top: 1rem;}
                            .views-field-body-1,
                            .views-field-field-liens,
                            .views-field-field-sous-titre-1,
                            .views-field-field-documents,
                            .views-field-views-conditional-field{
                                display: none;
                            }
                            .views-field-views-conditional-field-1{
                                h2{
                                    font-family: "gilroy-medium";
                                    color: $blue_QDD;
                                    font-size: 00.6rem;
                                    margin-bottom: 0;
                                    @media(max-width: 810px){
                                        font-size: 1rem;
                                    }
                                }
                            } 
                            
                            
                        }
                    }
                    &.type-Les-Perspectives-Quartiers-de-demain{
                        
                        .views-row{
                            width: 22%;
                            padding: 0.5rem;

                            @media(max-width: 810px){
                                width: 50%;
                            }
                            h2{margin-bottom: 0.2rem;}
                            .views-field-field-date-ressource{
                                padding-top: 0.3rem;
                            }
                            .views-field-body-1 p{
                                margin-top: 0.2rem;
                                margin-bottom: 0.2rem;
                            }
                            .views-field-field-documents a,
                            .views-field-field-liens a{

                                display: inline-flex;
                                align-items: center;
                                color: white;
                                background: black;
                                text-transform: uppercase;
                                font-size: 0.4rem;
                                padding: 0.1rem 0.5rem;
                                padding-right: 0rem;
                                &::after{
                                    display: inline-flex;
                                    content: url("../img/noun-arrow-to-right.svg");
                                    padding-right: 0.1rem;
                                    padding-left: 0.1rem;
                                    height: 25px;
                                }
                            }
                            .views-field-field-liens{
                                
                            }

                        }
                    }
                    &.type-Les-Webinaires-Quartiers-de-demain{
                        .views-row{
                            width: 43%;
                            margin: 1rem;
                            justify-content: space-between;
                            @media(max-width: 810px){
                                width: 100%;
                            }
                            img{
                                max-width: 100%;
                                height: auto;
                                object-fit: cover;
                                border-radius: 9px;
                            }
                            iframe{
                                border-radius: 9px;
                            }
                            .views-field-title-1{margin-top: 1rem;}
                            .views-field-field-liens{
                                display: none;
                            }
                            
                        }
                    }

                }
                // }
                
            }
            
        }
    }
}


.type-documentation{
    .views-field-body-1,
    .views-field-field-images,
    .views-field-field-video {
        display: none;
    }
}



