.layout-sidebar-first{



    #block-reha-phase1{
        border: solid $yellow-puca 1px;
        font-weight: 800;
        padding: 1rem;
        width: 80%;
        @media(max-width:891px){
            width: 100%;
        }
        h2{
            margin-top: 0;
            margin-bottom: 0;
            text-transform: lowercase;
            font-weight: 1000;
            line-height: 1rem;
            font-size:1.5rem ;
    
        }

        p{
            font-size: 1.5rem;
            line-height: 1.8rem;
            margin-top: 0.8rem;
        }

        footer{
            @extend %buttonwithborder;
            width: fit-content;
        }
    }

   
}

////// tiroirs fichers

aside.layout-sidebar-second{
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 4px;
    z-index: 100;
    padding-left: 2rem;
    transform: translateX(0%);
    transition: transform 0.35s;
    &.close {
        transform: translateX(85%); /* Par défaut ouvert */
        transition: transform 0.35s;
        &:hover{
            background-color: $yellow-puca;
        }
    }

    h2{
        transform: translateX(-48%) translateY(25vh) rotate(-90deg);
        text-transform: uppercase;
        font-weight: 400;
        cursor: pointer;
        padding-top: 2rem;
        padding-bottom: 2rem;
        text-align: start;
        &::before{
            content: url('../../dist/images/noun-arrow-1569918-black.svg');
            display: inline-block;
            transform: translateY(5px) rotate(90deg);
        }

    }
    h2.__close{
        &::before{
            content: url('../../dist/images/noun-arrow-1569918-black-left.svg');
            display: inline-block;
            transform: translateY(2px) rotate(90deg);
          
        }
    }

    .view-current-user-doc-profile{

        margin: 0 6rem ;
        display: flex;
        flex-direction: column;

        header{box-shadow: none;}
        
        .view-curent-user-site-dossier{
            width: fit-content;
            margin-bottom: 2rem;
            .views-field-title{
                font-size: 2rem;
                font-weight: 900;
                display: flex;
                flex-direction: column-reverse;
                margin-bottom: 3rem;
                &::after{
                    content: url(../images/noun-cross-1151731.svg);
                    cursor: pointer;
                    width: fit-content;
                    display: block;
                    align-self: flex-end;
                }
            }
        }

        .profile--type--collaborateur{
            &::before{
                content:  '' ;
                display: block;
                width: 80%;
                margin-top: 0.6rem;
                margin-bottom: 1rem;
                border-bottom: black solid 1px;
            }
            .field--name-field-fichiers, 
            .field--type-file{
                &:hover{
                    background-color: white !important;
                }
                border: none;
                .field__items{
                    
                    .field__item{
                        text-transform: uppercase;
                        padding-bottom: 0rem;
                        padding-left: 0.6rem;
                        padding-right: 0.6rem;
                        border: solid black 1px;
                        margin-bottom: 1rem;
                        background-color: rgb(255, 255, 255);
                        font-size: 0.9rem;
                        width: fit-content;
    
                        &:hover{
                            background-color: $yellow-puca;
                        }
                    }
                }
    
            }
            

        }
        .field--name-field-dossier-de-pilotage,
        .field--name-field-dossier-evenement,
        .paragraph--type--dossier{
            text-transform: uppercase;
            display: flex;
            flex-direction: column;
            > div:nth-child(1){
                display: flex;
                align-items: center;
                flex-direction: row;
               
                .field__item{
                    .paragraph--type--dossier{
                        padding-left: 10%;
                        .field--name-field-fichiers{
                            text-transform: none;
                            border: none;
                            padding-left: 10%;
                            span:nth-of-type(2){
                                display: none;
                            }
                        }
                    }
                }
            }

            > div:nth-child(1)::before{
                content: url('../../dist/images/noun-file-6880430.svg');
                display: inline-flex;
                width: 40px;
                height: auto;
                padding-right: 1rem;         
                align-items: center;
            }

        }
    }  

    footer.view-footer{
        margin-top: 3rem;
        text-transform: uppercase;
        border: solid black 1px;
        background-color: $white-button;
        font-size: 0.9rem;
        width: fit-content;
        font-weight: 400;
        padding-top: 0;
        align-self: left;
        margin-left: 1rem;
       

        @media (max-width:891px) {
            font-size: 1rem;
            }
            p{margin: 0;
            padding: 0.3rem;}
        :hover{
            background-color: $yellow-puca;
        }
        p{
            padding-left: 0.6rem;
            padding-right: 0.6rem;
        }
    } 
}

.field--name-field-dossier-de-pilotage > div:nth-child(2) > div:nth-child(1) > div:nth-child(2){
    &:hover{
        background-color: none !important;
    }
}