/* Structure Générale */
main{
display: flex;
flex-direction: column;
align-items: center; 
margin: 2rem 0 ;
min-height: 60vh;
}

.article-container{
    display: flex;
    justify-content: space-evenly;
    padding: var(--padding-container);
    gap: 1rem;
    max-width : 80%;
    min-width: 60%;
    
}
.separator{
    width: 80%;
    height: 1px;
}
/* Container images */
.article-img-container{
    display: flex;
    gap : 2rem;
    justify-content: center;
    align-items: center;
}

.container-preview{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-img{
    width : 5rem;
    height : 5rem;
    background-size: cover;
    background-position: center;
    border: var(--border-color);
    border-radius: var(--border-radius);
    
}
.first {
    display : flex;
    align-items: flex-end;
    width : 20rem;
    height: 27rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: var(--border-color);
    border-radius: var(--border-radius);

}
/* Container infos */

.article-content{

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
   
        .article-infos{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            min-height: 70%;
            gap: 2rem;
            h1{
                text-align: center;
                font-size: 20px;
                color: var(--text-color);
            } 
            p{
                text-align: center;
                height: 75%;
            }
        }
        .article-date{
            h3{
                font-size: 14px;
                color: var(--secondary-text-color);
            }
            span{
                color: var(--secondary-text-color)
            }
        }

}
/* Bouton changement de photos */


.btn-img-container{
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    width: 100%;
    gap: 5px;
    .btn-change{
        background-color: var(--text-color);
        backdrop-filter: blur(10px);
        opacity: 70%;
        &:hover{
            transform: scale(1.1);
        }

    }
}

/* Boutons admins */
.actions{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Media queries */

@media screen and (max-width: 600px) {
   .article-container{
        flex-direction: column;
        gap: 3rem;
        width: 80%;
        
        .article-content{
            gap: 1.5rem;
            .article-infos{
                gap: 1.5rem
            }
            .actions{
                flex-direction: row;
                span{
                    display:none;
                }
            }
        }
   }
}

