/* COMMENTAIRES */

#liste-commentaires {
    padding: .1px 0 0; /* firefix (parent + padding-top:0) + (child with margin-top) « bug » */
}

.commentbloc,
.linkbloc {
    position: relative;
    z-index: 1;
    color: #444;
    margin: 20px auto;
    padding: 0;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.commentbloc {
    border-bottom: 1px solid #eee;
    margin: 0 0 25px 0;
    padding: 0;
    display: flex;
}

.commentbloc .comm-side-icon {
    flex: 0 0 160px;
    text-align: center;
}

.commentbloc:not(:last-of-type) .comm-side-icon::after {
    content: "";
    background-color: rgba(0, 0, 0, .05);
    display: block;
    width: 6px;
    height: 20%;
    height: calc(100% - 101px);
    position: relative;
    margin: 0 auto;
    top: 10px;
}
.commentbloc .comm-side-icon img {
    display: block;
    margin: 5px auto 10px;
    border-radius: 48px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
    width: 48px;
}
.commentbloc .comm-main-frame {
    position: relative;
    padding-bottom: 25px;
    flex: 1;
    min-width: 0;
}

.comm-main-frame::after,
.linkbloc::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 8px 17px 0 rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out 0s;
    z-index: -1;
}

.commentbloc:hover .comm-main-frame::after,
.linkbloc:hover::after {
  opacity: 1;
}

.commentbloc:hover,
.linkbloc:hover {
    color: #333;
    z-index: 10;
}

.linkbloc .link-header,
.linkbloc .link-content,
.linkbloc .link-footer,
.commentbloc .comm-header,
.commentbloc .comm-comment {
    padding: 15px;
}

.commentbloc .comm-header,
.linkbloc .link-header {
    display: flex;
    align-items: center;
    padding-right: 40px;
    border-bottom: 1px solid #eee;
}

.commentbloc .comm-header {
    padding: 5px 40px 10px 5px;
    border-bottom: 0;
}

.commentbloc .reply {
    cursor: pointer;
}

.commentbloc .webpage a,
.commentbloc .email a,
.commentbloc .reply {
    vertical-align: middle;
    text-decoration: none;
    display: inline-block;
    width: 20px;
    height: 20px;
    overflow: hidden;
    opacity: .1;
}

.commentbloc .webpage a::before,
.commentbloc .email a::before,
.commentbloc .reply::before {
    font-size: 20px;
    color: rgba(0, 0, 0, .5);
}

.commentbloc .reply::before {     content: "\e920"; }
.commentbloc .email a::before {   content: "\e91e"; }
.commentbloc .webpage a::before { content: "\e901"; }

.commentbloc:hover .webpage a,
.commentbloc:hover .email a,
.commentbloc:hover .reply {
    opacity: 1;
}

.commentbloc .author {
    font-weight: bold;
}

.commentbloc .author a,
.commentbloc .author a:hover,
.commentbloc:hover .author a {
    color: inherit;
    text-decoration: none;
}

.commentbloc .comm-header .link-article,
.linkbloc .date {
    flex: 1 1 auto;
    text-align: right;
    color: gray;
    font-style: italic;
}

.commentbloc .comm-side-icon .date {
    color: gray;
    display: block;
    font-size: .8em;
}

.commentbloc .comm-side-icon .date span {
    display: block;
}
.commentbloc .comm-edit-hidden-bloc {
    opacity: 0;
    height: 0;
    overflow: hidden;
    clear: both;
}

.commentbloc a {
    color: inherit;
    transition: color 0.3s ease-in-out 0s;
}

/* com options button */
.comm-options,
.link-options {
    z-index: 1;
    position: absolute;
    right: 0;
    top: 0;
    padding: 10px;
}
.comm-options {
    padding: 15px;
}

.comm-options::before,
.link-options::before {
    content: "\e924";
    font-size: 1.7em;
    cursor: pointer;
}

.comm-options > ul,
.link-options > ul {
    right: 9999px;
    position: absolute;
    top: -10px;
    background: white;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    border-radius: 3px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: top .2s .3s ease-in, opacity .2s .3s ease-in, right ease-out 0s .5s;
}

.comm-options:hover ul,
.link-options:hover ul {
    right: 5px;
    opacity: 1;
    top: 5px;
    transition: top .2s ease-in .05s, opacity .2s ease-in .05s, right 0s ease-out .05s;
}

.comm-options > ul > li,
.link-options > ul > li {
    line-height: 35px;
    padding: 0 100px 0 40px;
    cursor: pointer;
    white-space: nowrap;
}

.link-options > ul > li:hover,
.comm-options > ul > li:hover {
    background: #f5f5f5;
}

.commentbloc .comm-content {
    padding: 15px 5px;
}

/* desactivated comments */
.privatebloc .comm-main-frame {
    background: rgba(0, 0, 0, .03);
}
.privatebloc .comm-side-icon {
    filter: saturate(0) contrast(0.6) opacity(.6);
}

.privatebloc h3, .privatebloc h3 a {
    font-style: italic;
}

.privatebloc a, .privatebloc:hover a {
    color: black;
}

/* Commentbloc on Hover */
.commentbloc:hover a {
    color: #45a6ff;
}

/* Commentbloc on Edit */
.commentbloc.foreground .comm-edit-hidden-bloc {
    transition: opacity 1s cubic-bezier(0.175, 0.885, 0.32, 1);
    opacity: 1;
    height: auto;
}

.form-commentaire .formatbut {
    border: 1px solid silver;
}

.commentbloc.foreground .cl-edit { /* hide edit button if already on edit */
    display: none;
}

/* textarea field in comments */
.form-commentaire .field {
    margin-top: 30px;
}

.form-commentaire textarea.text {
    border-left: 1px solid silver;
    border-right: 1px solid silver;
}
/*.form-commentaire textarea.text:not(:invalid) {
	border-bottom: 1px solid silver;
}*/

.form-commentaire .infos {
    margin: 15px auto 0;
    max-width: 480px;
}

.form-commentaire .infos > span {
    display: flex;
    padding-top: 15px;
}


.form-commentaire span > input.text {
    flex: 1;
    padding: 0 0 0 1px;
}

.form-commentaire label:not(.activercomm) {
    padding: 0;
    width: 28px;
    height: 28px;
    overflow: hidden;
    color: rgba(0, 0, 0, .5)
}

.form-commentaire label:not(.activercomm)::before {
    font-size: 1.4em;
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
}

.form-commentaire label[for^="auteur"]::before  { content: "\e930"; }
.form-commentaire label[for^="email"]::before   { content: "\e91e"; }
.form-commentaire label[for^="webpage"]::before { content: "\e901"; }

.form-commentaire label.activercomm {
    text-align: left;
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    margin-top: 15px;
    padding-left: 24px;
}


/* New Comment */
#post-nv-commentaire {
    margin-top: 35px;
}

/* ajax loading animation */
.ajaxloading .comm-main-frame::before {
    content: "";
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, .5);
}
.ajaxloading .comm-main-frame::after {
    content: "";
    z-index: +1;
    height: 20px;
    width: 20px;
    border: 4px solid rgba(0, 0, 0, .1);
    border-top-color: rgba(0, 0, 0, .5);
    border-radius: 50%;
    animation: spinnerLoading 0.6s infinite linear;
    top: calc(50% - 15px);
    box-shadow: none;
    left: calc(50% - 15px);
}


/* Ajax removing comment animation */
.deleteFadeOut {
    opacity: 1;
    animation: disapear .6s;
    -webkit-animation: disapear .6s;
}
