/**
 * EDS - Fichier CSS dédié aux COMMENTAIRES.
 * Chargé dans le template.tpl.php
 *
 * @file
 */

/*** FORM ***/

a.comments-button {
  display: inline-block;
  margin-bottom: 30px;
  padding: 30px 0 0 70px;
  background-repeat: no-repeat;
  background-position: left top;
  font-family: 'Helvetica Neue bold', Helvetica, Arial, sans-serif;
}
a.comments-button span { color: #ababab; }
#comments { display: none; clear: both; }
#comments form.comment-form { margin-bottom: 70px; }
#comments > form.comment-form { display: none; }
#comments h2.title {
  margin-bottom: 30px;
  padding: 0 20px;
  background-repeat: no-repeat;
  background-position: 95% center;
  line-height: 80px;
  font-family: 'Trebuchet bold', Helvetica, Arial, sans-serif;
  font-size: 1.5em;
  color: #fff;
  -webkit-transition: background .3s ease-in;
  -moz-transition: background .3s ease-in;
  -o-transition: background .3s ease-in;
  transition: background .3s ease-in;
}
#comments h2.title.off { background-image: url('../../images/common/fleche-slider-off.png'); }
#comments h2.title.on { background-image: url('../../images/common/fleche-slider-on.png'); }
#comments h2.title:hover { cursor: pointer; }
#comments .comment-form label { margin-bottom: 5px; }
#comments .comment-form .description { font-size: 0.7em; color: #ababab; }
#comments .comment-form .left { float: left; width: 49%; }
#comments .comment-form .left .form-item { margin-bottom: 10px; }
#comments .comment-form .left .form-item input { width: 100%; }
#comments .indented .comment-form .form-item-subject { display: none; }
#comments .comment-form .field-name-comment-body { float: right; width: 49%; }
#comments .comment-form .field-name-comment-body textarea { height: 170px; font-size: 1em; }
#comments .comment-form .form-actions { clear: both; margin: 0; padding-top: 20px; }

/*** LIST ***/

#comments article { margin-bottom: 40px; padding-top: 30px; border-top: 3px solid #f2f1f0; line-height: 1.5em; }
#comments .indented { margin-left: 50px; }
#comments .indented article,
#comments article:first-of-type { padding-top: 0; border-top: none; }
#comments article h3 { margin-bottom: 0; font-size: 1em; font-weight: bold; }
#comments .indented article h3 { display: none; }
#comments article .submitted { display: block; }
#comments article .field-name-comment-body p { margin-bottom: 0; }
#comments article .links { margin-right: 0; }
#comments article .links li { padding-right: 10px; }
#comments article .links li.last { padding-right: 0; }
#comments article .links li a {
  padding-left: 20px;
  background: url('../../images/conferences/fleche-puce.png') left .25em no-repeat;
  background: url('../../images/conferences/fleche-puce.svg') left .25em no-repeat;
  line-height: 1.5;
  text-transform: capitalize;
}

/* Preview */
#comments article.comment-preview { padding: 1em; background-color: #f2f1f0; }
#comments article.comment-preview .field-name-comment-body { float: none; width: 100%; }

/**
 * RESPONSIVE
 */

/*--------- <= 640px ---------*/

@media only screen and (max-width: 640px) {

  #comments .comment-form .left,
  #comments .comment-form .field-name-comment-body { float: none; width: 100%; }

}

/*--------- <= 480px ---------*/

@media only screen and (max-width: 480px) {  /* eq. 384px */

  #comments h2.title { font-size: 1.3em !important; }
  #comments h2.title.on, #comments h2.title.off {
    background-size: 45px 24px;
  }

}
