/* ============================================================
   BLOG CSS - Zion Roofing
   Palette : #1B5A70 (teal), #222222 (dark), #fff (white)
   Police  : Montserrat
   ============================================================ */

/* -----------------------------------------------------------
   HERO BLOGUE
   ----------------------------------------------------------- */
.blog-hero {
  background-color: #1B5A70;
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
}

.blog-hero h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 15px 0;
  letter-spacing: 2px;
}

.blog-hero h1:before {
  display: none !important;
}

.blog-hero .blog-hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

/* Séparateur diagonal sous le hero (reprend le style .separateurScooter) */
.blog-hero-separator {
  overflow: hidden;
  height: 50px;
  margin-top: 0;
  position: relative;
}

/* -----------------------------------------------------------
   SECTION LISTING
   ----------------------------------------------------------- */
#blog-listing {
  padding: 70px 0 80px;
  background: #fff;
}

#blog-listing .container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* -----------------------------------------------------------
   GRILLE DE CARTES
   ----------------------------------------------------------- */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.blog-card {
  box-sizing: border-box;
  width: calc(33.33% - 30px);
  margin: 0 15px 40px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

/* -----------------------------------------------------------
   IMAGE DE LA CARTE
   ----------------------------------------------------------- */
.blog-card-image-link {
  display: block;
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.04);
}

.blog-card-image-placeholder {
  background-color: #1B5A70;
  opacity: 0.25;
}

/* -----------------------------------------------------------
   CONTENU DE LA CARTE
   ----------------------------------------------------------- */
.blog-card-content {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-card-category {
  display: inline-block;
  background-color: #1B5A70;
  color: #fff!important;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
}

.blog-card-date {
  color: #A6A6A6;
  font-size: 13px;
  font-weight: 400;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #222222;
  text-transform: none;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.blog-card-title:before {
  display: none !important;
}

.blog-card-title a {
  color: #222222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: #1B5A70;
}

.blog-card-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.blog-card-excerpt p {
  margin: 0;
}

/* -----------------------------------------------------------
   BOUTON CARTE
   ----------------------------------------------------------- */
.blog-card-cta {
  margin-top: auto;
}

.btn-blog {
  display: inline-block;
  background-color: #1B5A70;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 24px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.btn-blog:hover {
  background-color: #222222 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* -----------------------------------------------------------
   PAGINATION
   ----------------------------------------------------------- */
.blog-pagination {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  width: 100%;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  border: 2px solid #1B5A70;
  color: #1B5A70;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background-color: #1B5A70;
  color: #fff;
}

.blog-pagination .page-numbers.dots {
  border-color: transparent;
  color: #A6A6A6;
}

/* Aucun article */
.blog-no-posts {
  text-align: center;
  color: #89898C;
  font-size: 18px;
  padding: 60px 0;
  width: 100%;
}

/* -----------------------------------------------------------
   SINGLE POST - HERO
   ----------------------------------------------------------- */
.single  .site-featured-image {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single .site-featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.single .site-featured-image h1 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
}

/* -----------------------------------------------------------
   SINGLE POST - CONTENU
   ----------------------------------------------------------- */
.single-blog-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  box-sizing: border-box;
}

/* Meta : date + catégorie */
.single-blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.single-blog-meta .meta-category {
  display: inline-block;
  background-color: #1B5A70;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.single-blog-meta .meta-category:hover {
  background-color: #222222;
}

.single-blog-meta .meta-date {
  color: #A6A6A6;
  font-size: 14px;
  font-weight: 400;
}

.single-blog-meta .meta-author {
  color: #A6A6A6;
  font-size: 14px;
}

/* Barre décorative sous le titre (reprend le style h2:before du site) */
.single-blog-title-bar {
  background: #1B5A70;
  height: 8px;
  width: 120px;
  margin-bottom: 30px;
  border-radius: 2px;
}

/* Contenu de l'article */
.single-blog-content {
  font-size: 16px;
  line-height: 1.8;
  color: #222222;
}

.single-blog-content h2 {
  font-size: 22px;
  color: #222222;
  font-weight: 700;
  margin: 36px 0 16px;
  text-transform: uppercase;
}

.single-blog-content h2:before {
  background: #1B5A70;
  content: " ";
  display: block;
  height: 6px;
  margin: 0 0 10px 0;
  width: 80px;
}

.single-blog-content h3 {
  font-size: 18px;
  color: #1B5A70;
  font-weight: 600;
  margin: 28px 0 12px;
}

.single-blog-content p {
  margin-bottom: 20px;
}

.single-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0;
}

.single-blog-content ul,
.single-blog-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.single-blog-content ul li,
.single-blog-content ol li {
  margin-bottom: 8px;
  color: #222222;
}

.single-blog-content blockquote {
  border-left: 4px solid #1B5A70;
  padding: 16px 24px;
  margin: 28px 0;
  background: #f5f9fb;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #444;
}

.single-blog-content a {
  color: #1B5A70;
  text-decoration: underline;
}

.single-blog-content a:hover {
  color: #222222;
}

/* -----------------------------------------------------------
   NAVIGATION PREV / NEXT
   ----------------------------------------------------------- */
.single-blog-nav {
display: none;
}

.single-blog-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1B5A70;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s ease;
  max-width: 45%;
}

.single-blog-nav a:hover {
  color: #222222;
}

.single-blog-nav .nav-prev {
  text-align: left;
}

.single-blog-nav .nav-next {
  text-align: right;
  margin-left: auto;
}

.single-blog-nav .nav-label {
  display: block;
  font-size: 11px;
  color: #A6A6A6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 400;
}

.single-blog-nav .nav-title {
  font-size: 14px;
  color: #222222;
  font-weight: 600;
  line-height: 1.4;
}

/* -----------------------------------------------------------
   BOUTON RETOUR AU BLOGUE
   ----------------------------------------------------------- */
.back-to-blog {
  margin-bottom: 36px;
}

.back-to-blog a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1B5A70;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-to-blog a:hover {
  color: #222222;
}

.back-to-blog a::before {
  content: '←';
  font-size: 16px;
}

/* -----------------------------------------------------------
   RESPONSIVE TABLETTE (≤ 1024px)
   ----------------------------------------------------------- */
@media screen and (max-width: 1024px) {

  .blog-card {
    width: calc(50% - 30px);
  }

  .blog-hero h1 {
    font-size: 38px;
  }

  .single-blog-wrapper {
    padding: 40px 20px 60px;
  }

  .single-blog .site-featured-image h1 {
    font-size: 36px;
  }
}
@media only screen and (max-width: 768px) {
  .single .site-featured-image{
    align-items: end;
  }
      .site-featured-image h1 {
        font-size: 40px!important;
    }
}
/* -----------------------------------------------------------
   RESPONSIVE MOBILE (≤ 640px)
   ----------------------------------------------------------- */
@media only screen and (max-width: 640px) {
  .blog-card {
    width: calc(100% - 30px);
  }

  .blog-hero {
    padding: 50px 20px 40px;
  }

  .blog-hero h1 {
    font-size: 28px;
  }

  .blog-hero .blog-hero-sub {
    font-size: 15px;
  }

  .single-blog-wrapper {
    padding: 30px 16px 50px;
  }

  .single-blog .site-featured-image {
    min-height: 280px;
  }

  .single-blog .site-featured-image h1 {
    font-size: 24px;
  }

  .single-blog-nav {
    flex-direction: column;
  }

  .single-blog-nav a {
    max-width: 100%;
  }

  .single-blog-nav .nav-next {
    margin-left: 0;
  }
}
