/**
 * @file
 * Subtheme specific CSS.
 */

 .logo a{
    display: inline-block; /* Nécessaire pour que le lien prenne en compte la taille du background */
    width: 100%;
    height: 150px;
    background-image: url('../images/flux.png');
    background-size: contain; /* Ajuste la taille du background à 50px x 120px */
    background-repeat: no-repeat; /* Empêche la répétition de l'image */
    text-indent: -9999px; /* Cache le texte du lien pour ne laisser visible que l'image */
    overflow: hidden;
    margin:auto;
    background-position: center;
 }

 .block-post{
    background-color: #ffffff;
    border-radius: 8px;
    border:1px solid rgba(0, 0, 0, 0.2);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px 0px;
    margin-bottom:15px;
 }
 .view-id-flux .block-post .infos{
    display: flex;
    justify-content: space-between;
    padding: 10px 8px 8px 8px;
 }
 .view-id-flux .block-post .infos .user{
    font-weight:700;
 }
 .view-id-flux .block-post .infos .posted_date{
    color: #68696b;
    font-size: 0.733em;
 }

 .view-id-flux .medias .list-group-item{
    border:0px;
    padding:0px;
 }

 .view-id-flux .medias img,
 .view-id-flux .medias video{
    width:100%;
 }

 .view-id-flux .block-post .infos_bar{
    display: flex;
    justify-content: space-between;
    padding: 0px 10px 5px 10px;
}

 .comments{
    padding:15px;
    display:none;
 }
 .comments.expended{
    display:block;
 }
 .comments nav .pagination{
    display:none;
 }
 .comment .card-body{
    padding:0px 10px 10px 10px;
 }

.comment .field--name-user-picture img{
    border-radius:50%;
    width:50px;
    height:50px;
    border:1px solid #84b44e;
}
.comment .comment__author{
    font-size:12px;
}
.comment .comment__author a{
    text-decoration:none;
    color:#000000;
}

.comment{
    flex-wrap:wrap;
}
.comment_date{
    width: 100%;
    text-align: right;
}

.comment .post-links {
    padding: 0 0 0.25em 0;
    position: absolute;
    bottom: 0;
    right: 0;
    width:90px;
}
.comments .comment-delete,
.comments .comment-edit,
.comments .comment-reply{
    align-self:end;
}
.comments .comment-delete a::before,
.comments .comment-edit a::before 
.comments .comment-reply a::before  {
    content: '';
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(1px, 1px, 1px, 1px);   /* Cache complètement le texte pour l'accessibilité */
    overflow: hidden;
  }
  
.comments .comment-delete a,
.comments .comment-edit a,
.comments .comment-reply a{
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('../images/icon_trash.svg');
    background-size: cover;
    position: relative;
    color: transparent;   
}
.comments .comment-edit a{
    background-image: url('../images/icon_edit.svg');
}

.comments .comment-reply a{
    background-image: url('../images/icon_reply.svg');
}
.comments .comment_content .card-body.post-content{
    padding:6px 6px 0px 10px;
}

.comments .card{
    background-color:#84b44e;
    color:#ffffff;
    border-color:#ffffff;
}
.comments .comment__content:before,
.comments .comment__content:after {
    content:none;
}

.comments .btn-primary {
    background-color: #84b44e;
    border-color: #6c973b;
}
  
#user-login-form .btn-primary{
    width:100%;
    border-radius:30px;
}

.btn-primary{
    background-color:#84b44e!important;
    border-color:#b2c69c!important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #bceb86!important;
}
.btn-primary:focus{
    box-shadow: rgba(156, 226, 86, 0.5) 0px 0px 0px 4px!important;
}

/**************************************
 *
 *  Bootstarp grid manques
 *
 **************************************/
 @media (max-width:575px) {
    .col-sm-2 {
        flex: 0 0 auto;
        width: 16.66666667%;
    }
    .col-sm-10 {
        flex: 0 0 auto;
        width: 83.33333333%;
    }
 }

/**************************************
 *
 *  DESKTOP
 *
 **************************************/


 @media (min-width:320px)  { /* smartphones, iPhone, portrait 480x320 phones */ 
    body.page-user-login{
        background-image: url('../images/background.jpg')!important;
        background-size:cover!important;
        background-repeat: no-repeat!important;
        height: 100vh;
    }
    .page-user-login #page{
        border-radius:20px;
        box-shadow: #68696b 0px 0px 15px;
        position: absolute;
        width: 90%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 10px;
    }

}
@media (min-width:481px)  { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ 

    .page-user-login #page{
        border-radius:20px;
        box-shadow: #68696b 0px 0px 15px;
        position: absolute;
        width: 400px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 10px;
    }
}
@media (min-width:641px)  { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ 

}
@media (min-width:961px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }
