/*
Theme Name: Mon Theme
Author: Youssef
Version: 1.0
Description: Theme WordPress personnalisé
*/

/* =========================
   GLOBAL
========================= */

body {
  background-color: #efefef;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}

/* =========================
   HOME PAGE POSTS
========================= */

.home-page .main-post {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 18px;
  margin-bottom: 25px;
  min-height: 130px;
  border-radius: 4px;
}

.home-page .post-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
}

.home-page .post-title a {
  text-decoration: none;
  color: #5b88b2;
}

.home-page .post-title a:hover {
  color: #3d6f9e;
}

.home-page .post-author,
.home-page .post-date {
  font-size: 12px;
  color: #999;
  display: inline-block;
  margin-bottom: 10px;
}

.home-page .post-author a,
.home-page .post-date a {
  color: #7d9bb8;
  text-decoration: none;
}

.home-page .post-author a:hover,
.home-page .post-date a:hover {
  text-decoration: underline;
}

.home-page .main-post hr {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 14px 0;
}

.home-page .post-categories {
  margin: 0;
  font-size: 13px;
  color: #999;
}

.home-page .post-categories a {
  color: #7d9bb8;
  text-decoration: none;
}

.home-page .post-categories a:hover {
  text-decoration: underline;
}


.home-page .post-tags {
  margin: 0;
  font-size: 13px;
  color: #999;
}

.home-page .post-tags a {
  color: #7d9bb8;
  text-decoration: none;
}

.home-page .post-tags a:hover {
  text-decoration: underline;
}

/* =========================
   SINGLE POST
========================= */

 .post-page .main-post {
  position: relative;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #d8d8d8dd;
  

 }


 .post-page .main-post .post-edit-link {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    background-color: #EEE;
    border-radius: 0 0 0 10px;
  }
    
.post-page .main-post .post-edit-link  i {
    
    margin-left: 5px;
    color: #337ab7;
}

.post-page .main-post h3 {
  margin: 0 0 10px;
  font-weight: bold;
  color: #777;
  letter-spacing: -1px;
}

.post-page .main-post .post-author,
.post-page .main-post .post-date,
.post-page .main-post .post-comments {
  font-size: 12px;
}

.post-page .main-post img {
  display: block;
  margin: 10px 0 10px;
}

.post-page .main-post .post-content {
  line-height: 1.7;
  color: #888;
}

.post-page .main-post i {
  color: #999;
}

.post-page .post-pagination {
  margin: 0 auto 30px;
  overflow: hidden;
  text-align: center;
  
}

.post-page .post-pagination a,
.post-pagination span {
  padding: 10px 20px;
  background-color: #FFF;
  border-radius: 5px;

  -webkit-transition: all .4s ease-in-out;
  -moz-transition: all .4s ease-in-out;
  -o-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
}

.post-page .post-pagination a:first-child,
.post-pagination span:first-child {
  margin-right: 110px;
}
.post-page .post-pagination a:last-child,
.post-pagination span:last-child {
  margin-left: 110px;
  
}
.post-page .post-pagination span {
  opacity: .5;
  cursor: not-allowed;
}


.post-page .post-pagination a:hover {
  background-color: #333;
  color: #FFF;
  text-decoration: none;
}





/* Footer */
  .footer {
      background-color: #111; /* ou bg-dark Bootstrap */
      color: #fff;
  }

  .footer a {
      color: #7d9bb8;
      text-decoration: none;
      margin-left: 15px;
  }

  .footer a:hover {
      color: #fff;
      text-decoration: underline;
  }

/* End Footer */

/* Flexbox global pour body */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.navbar-nav .dropdown-menu {
    background-color: #111; /* même que le footer ou navbar */
    border: none;
    min-width: 180px;
}

.navbar-nav .dropdown-item {
    color: #7d9bb8;
    padding: 8px 20px;
}

.navbar-nav .dropdown-item:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* Start Comments List */

.comment-list,
.comment-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Comment principal */
.comment-list > .comment {
  background-color: #FFF;
  padding: 10px;
  border: 1px solid #DDD;
  margin-bottom: 10px;
}

/* Réponse niveau 1 */
.comment-list > .comment > .children > .comment {
  padding: 10px;
  background-color: #EEE;
  margin-top: 10px;
  border: 1px solid #CCC;
}

/* Réponse niveau 2 */
.comment-list > .comment > .children > .comment > .children > .comment {
  padding: 10px;
  background-color: #DDD;
  margin-top: 10px;
  border: 1px solid #AAA;
}



.comments-area {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 40px;
    border-radius: 10px;
}

.comments-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-list li {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.comment-list .comment-author {
    font-weight: bold;
    color: #222;
}

.comment-list .comment-meta {
    font-size: 0.85em;
    color: #999;
}

.comment-form {
    margin-top: 30px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.comment-form input[type="submit"] {
    background-color: #b01d1d;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comment-form input[type="submit"]:hover {
    background-color: #8a1414;
}

.no-comments {
    color: #666;
    font-style: italic;
}