/* ==========================================================================
   PrestaBlog - Custom Canaldog Theme
   ========================================================================== */

/* --- Page Listing --- */

#blog_list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}

#blog_list > li {
  padding: 10px;
  box-sizing: border-box;
}

#blog_list.three_article > li {
  width: 33.333%;
}

#blog_list.two_article > li {
  width: 50%;
}

#blog_list.one_article > li {
  width: 100%;
}

/* --- Cartes articles --- */

#blog_list .block_cont {
  background: #fff !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#blog_list li:hover .block_cont {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  background: #fff !important;
}

#blog_list .block_top {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

#blog_list .block_top img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

#blog_list .block_cont:hover .block_top img {
  transform: scale(1.05);
}

#blog_list .block_bas,
#blog_list .blog-grid .block_bas,
#blog_list.three_article .blog-grid .block_bas,
#blog_article_linked #blog_list .blog-grid .block_bas {
  padding: 15px 18px 10px;
  flex: 1;
  height: auto !important;
  min-height: auto !important;
}

#blog_list .block_bas h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
}

#blog_list .block_bas h3 a {
  color: #634d4d !important;
  text-decoration: none;
  transition: color 0.2s;
}

#blog_list .block_bas h3 a:hover {
  color: #e73b2b !important;
}

#blog_list p,
.date_blog-cat {
  color: #999 !important;
}

.date_blog-cat {
  font-size: 12px;
  display: block;
  margin-top: 5px;
}

.categorie_blog {
  color: #e67e22;
  font-weight: 600;
}

.categorie_blog:hover {
  color: #d35400;
}

.prestablog_desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 8px 0;
}

/* --- Bouton Lire la suite --- */

#blog_list .prestablog_more {
  padding: 12px 18px;
  border-top: 1px solid #f0f0f0;
  display: flex !important;
  background-color: transparent !important;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

#blog_list .prestablog_more a {
  height: auto !important;
  padding: 0 !important;
}

#blog_list .prestablog_more a.blog_link {
  display: inline-flex !important;
  align-items: center;
  background: #e73b2b !important;
  color: #fff !important;
  padding: 6px 16px !important;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
  height: auto !important;
  line-height: 1.4;
}

#blog_list .prestablog_more a.blog_link:hover {
  background: #c0392b !important;
  color: #fff !important;
}

#blog_list .prestablog_more a.blog_link i {
  margin-right: 4px;
}

#blog_list .prestablog_more a.comments {
  color: #999 !important;
  font-size: 13px;
  background: none !important;
}

#blog_list .prestablog_more a.comments:hover {
  color: #634d4d !important;
  background: none !important;
}

#blog_list .prestablog_more span {
  float: none !important;
  height: auto !important;
  padding: 0 !important;
  font-size: 13px;
  color: #999;
}

/* --- Titre listing --- */

.blog-listing-wrapper h1 {
  color: #3f3f3f;
  font-family: 'Patrick Hand', cursive;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
  text-align: left;
}

.blog-listing-wrapper h1 small {
  font-family: 'Patrick Hand', cursive;
  font-size: 18px;
  color: #999;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.5px;
}

/* --- Etoiles --- */

.star_content {
  display: inline-flex;
  gap: 2px;
  margin-top: 5px;
}

.icon-star {
  width: 14px;
  height: 14px;
  background: #ddd;
}

.icon-star.checked {
  background: #e67e22;
}

/* --- Pagination --- */

.prestablog_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 25px 0;
  padding: 0;
}

.prestablog_pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  color: #634d4d;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.prestablog_pagination a:hover {
  background: #634d4d;
  color: #fff;
  border-color: #634d4d;
}

.prestablog_pagination span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: #e73b2b !important;
  color: #fff !important;
  border: 1px solid #e73b2b !important;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.prestablog_pagination span.disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: #ccc;
  font-size: 14px;
}

.prestablog_pagination span.more {
  color: #999;
}

/* --- Article unique --- */

#prestablogfront,
#prestablog-fb-comments,
#prestablog-comments,
#prestablog-rating,
time.date span,
.info_blog span {
  background-color: transparent !important;
}

#prestablogfront {
  background: #fff !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0;
  margin-bottom: 0 !important;
}

#prestablogfront h1,
#prestablogfront h2,
#prestablogfront h3,
#prestablogfront h4,
#prestablogfront h5,
#prestablogfront h6,
#prestablogauthor h1,
#prestablogauthor h2,
#prestablogauthor h3 {
  text-align: left !important;
  border-top: none !important;
  border-bottom: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: visible !important;
}

#prestablogfront img.news,
#prestablogfront img.blog-article-image {
  width: 100%;
  height: auto;
  float: none !important;
  margin: 0 0 30px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#prestablogfront h1#prestablog_article {
  color: #3f3f3f !important;
  font-family: 'Patrick Hand', cursive;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 15px;
  letter-spacing: 1px;
  text-align: left;
  border: none !important;
  padding: 0 !important;
}

/* Supprimer la ligne horizontale des pseudo-elements */
time.date::before,
.info_blog::before {
  display: none !important;
}

time.date,
.info_blog {
  text-align: left !important;
  margin: 0 !important;
  overflow: visible !important;
  position: static !important;
}

#prestablogfront time.date {
  background: none;
  padding: 0;
}

time.date span,
.info_blog span {
  background: transparent !important;
  padding: 0 !important;
  color: #634d4d;
  font-size: 14px;
}

#prestablogfront time.date span {
  font-weight: 600;
}

.info_blog {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  background: none;
}

.info_blog a {
  color: #e73b2b;
}

.info_blog a:hover {
  color: #c0392b;
}

.blog-meta {
  background: #f9f7f6;
  border: none;
  border-left: 3px solid #e73b2b;
  border-radius: 0 6px 6px 0;
  padding: 12px 18px;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}

#prestablogfont {
  line-height: 1.8;
  font-size: 16px;
  color: #333 !important;
}

#prestablogfont p,
#prestablogfont ul,
#prestablogfont li {
  color: #333 !important;
  margin-bottom: 18px;
}

#prestablogfont h1,
#prestablogfont h2,
#prestablogfont h3,
#prestablogfont h4,
#prestablogfont h5,
#prestablogfont h6 {
  color: #634d4d !important;
}

#prestablogfont a {
  color: #e73b2b;
}

#prestablogfont a:hover {
  color: #c0392b;
}

/* Images dans le contenu article */
#prestablogfont img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin: 15px 0;
  display: block;
  clear: both;
}

#prestablogfont img.f_left {
  float: left;
  margin: 0 20px 15px 0;
  max-width: 50%;
  clear: left;
  display: inline;
}

#prestablogfont img.f_right {
  float: right;
  margin: 0 0 15px 20px;
  max-width: 50%;
  clear: right;
  display: inline;
}

#prestablogfont p::after {
  content: "";
  display: table;
  clear: both;
}

#prestablogfont h2 {
  font-family: 'Patrick Hand', cursive;
  font-size: 26px;
  margin-top: 35px !important;
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e1e1e1 !important;
  letter-spacing: 1px;
}

#prestablogfont h3 {
  font-family: 'Patrick Hand', cursive;
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 10px;
  letter-spacing: 0.8px;
}

#prestablogfont h4 {
  font-family: 'Patrick Hand', cursive;
  color: #634d4d;
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 10px;
}

#prestablogfont blockquote {
  border-left: 3px solid #e73b2b;
  padding: 10px 20px;
  margin: 20px 0;
  background: #f9f7f6;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #555;
}

/* Clearfix entre sections */
article#prestablogfront + .clearfix {
  margin: 0;
  padding: 0;
  height: 0;
}

/* --- Auteur --- */

#prestablogauthor {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
  overflow: hidden;
  margin-bottom: 30px;
}

#prestablogauthor img.author {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  float: left;
  margin-right: 20px;
}

#prestablogauthor h4 {
  color: #634d4d;
  margin-top: 0;
  font-size: 16px;
}

#prestablogauthor {
  background-color: #f5f5f5 !important;
}

#prestablogauthor a.blog_link {
  color: #e73b2b !important;
}

#prestablogauthor a.blog_link:hover {
  color: #c0392b !important;
}

/* --- Produits et articles lies --- */

#blog_product_linked {
  margin: 30px 0;
}

#blog_product_linked h3,
#blog_article_linked h3 {
  font-family: 'Patrick Hand', cursive;
  color: #3f3f3f;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e73b2b;
}

#blog_product_linked .productslinks {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

#blog_product_linked .productslinks:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#blog_article_linked {
  margin: 30px 0;
}

#blog_article_linked #blog_list .block_cont {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- Sidebar --- */

.block-categories {
  background: #fff !important;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.block-categories .title_block {
  font-family: 'Patrick Hand', cursive;
  color: #3f3f3f !important;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 15px;
  margin: 0;
  border-bottom: 2px solid #e73b2b;
  background: none;
}

.block-categories .block_content {
  padding: 12px 15px;
}

.block-categories a.link_block,
.block-categories a {
  color: #634d4d !important;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.block-categories a:hover {
  color: #e73b2b;
}

#prestablog_lastliste a.btn-primary,
#prestablog_catliste a.btn-primary,
#prestablog_dateliste a.btn-primary,
#prestablog_block_rss a,
.block-categories a.btn-primary {
  background-color: #e73b2b !important;
  border-color: #e73b2b;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
}

#prestablog_lastliste a.btn-primary:hover,
#prestablog_catliste a.btn-primary:hover,
#prestablog_dateliste a.btn-primary:hover,
#prestablog_block_rss a:hover,
.block-categories a.btn-primary:hover {
  background-color: #c0392b !important;
  border-color: #c0392b;
}

/* Derniers articles sidebar */

#prestablog_lastliste img.lastlisteimg {
  border-radius: 6px;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

/* Recherche blog */

.block-categories .button-search {
  background: #e73b2b;
  border-color: #e73b2b;
  color: #fff;
  border-radius: 0 4px 4px 0;
}

.block-categories .button-search:hover {
  background: #c0392b;
}

.block-categories .form-control {
  border-radius: 4px 0 0 4px;
  border-color: #e1e1e1;
}

/* --- Commentaires --- */

#prestablog-comments {
  margin-top: 50px;
  padding: 30px;
  border-top: 3px solid #e73b2b;
  background: #fafafa;
  border-radius: 0 0 8px 8px;
}

#prestablog-comments > h3 {
  font-family: 'Patrick Hand', cursive;
  color: #3f3f3f;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

#prestablog-comments h3 span#toggle-comments {
  cursor: pointer;
}

#prestablog-comments h3 span#toggle-comments:hover {
  color: #e73b2b;
}

#prestablog-comments .comment {
  background: #fff;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-left: 3px solid #e1e1e1;
  transition: border-color 0.2s;
}

#prestablog-comments .comment:hover {
  border-left-color: #e73b2b;
}

#prestablog-comments .comment h4 {
  color: #634d4d;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 5px;
}

#prestablog-comments .comment hr {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 8px 0;
}

#prestablog-comments .comment .date-comment {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

/* Formulaire commentaires */
fieldset#prestablog-comment {
  border: none;
  padding: 0;
  margin: 0;
}

fieldset#prestablog-comment h3 {
  font-family: 'Patrick Hand', cursive;
  font-size: 22px;
  color: #3f3f3f;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

fieldset#prestablog-comment label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #634d4d;
}

fieldset#prestablog-comment input.text,
fieldset#prestablog-comment textarea {
  width: 100%;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

fieldset#prestablog-comment input.text {
  height: 42px;
}

fieldset#prestablog-comment textarea {
  height: 120px;
  resize: vertical;
}

fieldset#prestablog-comment input.text:focus,
fieldset#prestablog-comment textarea:focus {
  border-color: #e73b2b;
  box-shadow: 0 0 0 2px rgba(231, 59, 43, 0.1);
  outline: none;
}

fieldset#prestablog-comment p.text,
fieldset#prestablog-comment p.textarea {
  margin-bottom: 15px;
}

fieldset#prestablog-comment input[type="submit"]#submitComment {
  background: #e73b2b;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

fieldset#prestablog-comment input[type="submit"]#submitComment:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* --- Rating --- */

#prestablog-rating {
  background: none;
  padding: 15px 0;
}

/* --- Social sharing --- */

article#prestablogfront ~ h3 {
  font-family: 'Patrick Hand', cursive;
  color: #3f3f3f;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  margin-bottom: 5px;
  text-align: left;
}

.rrssb-buttons {
  height: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 35px;
  padding: 0;
}

.rrssb-buttons li {
  float: none;
  height: auto;
  margin: 0;
}

.rrssb-buttons li a {
  border-radius: 6px !important;
  min-height: 40px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
}

.rrssb-buttons li a .icon svg {
  width: 18px;
  height: 18px;
}

/* --- Menu categories top : masque --- */

#prestablog_menu_cat {
  display: none !important;
}

/* --- Filtres categories --- */

#categoriesFiltrage {
  margin-bottom: 20px;
}

#categoriesFiltrage a {
  display: inline-block;
  padding: 5px 12px;
  margin: 3px;
  border: 1px solid #e1e1e1;
  border-radius: 20px;
  color: #634d4d;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}

#categoriesFiltrage a:hover,
#categoriesFiltrage a.active {
  background: #e73b2b;
  border-color: #e73b2b;
  color: #fff;
}

/* --- Blog pages : masquer categories produits --- */

body.module-prestablog-blog #right_column {
  display: none !important;
}

body.module-prestablog-blog #center_column {
  width: 75%;
}

/* --- Breadcrumb blog --- */

body.module-prestablog-blog .breadcrumb {
  font-size: 12px;
  color: #999;
  padding: 10px 0;
}

body.module-prestablog-blog .breadcrumb a {
  color: #634d4d;
}

body.module-prestablog-blog .breadcrumb a:hover {
  color: #e73b2b;
}

/* --- Sidebar sticky --- */

body.module-prestablog-blog #left_column .block {
  position: sticky;
  top: 20px;
}

/* --- Responsive --- */

@media (max-width: 991px) {
  #blog_list.three_article > li {
    width: 50%;
  }
}

@media (max-width: 767px) {
  #blog_list.three_article > li,
  #blog_list.two_article > li {
    width: 50%;
  }

  #prestablogfront h1#prestablog_article {
    font-size: 22px;
  }

  body.module-prestablog-blog #center_column {
    width: 100%;
  }
}

@media (max-width: 479px) {
  #blog_list.three_article > li,
  #blog_list.two_article > li {
    width: 100%;
  }

  #blog_list .block_top img {
    height: 180px;
  }

  #prestablogfront h1#prestablog_article {
    font-size: 20px;
  }

  #prestablogauthor img.author {
    float: none;
    margin: 0 auto 15px;
    display: block;
  }
}
