/*! Styles pour le blog */

/* Layout spécifique pour la page blog */
.blog-featured-layout {
  margin-bottom: var(--wp--custom--spacer-l);
}

/* Style pour l'article principal */
.featured-post-card {
  width: 95%;
}

.featured-post-card figure {
  box-shadow: var(--wp--custom--shadow-right-theme) !important;
  border-radius: var(--wp--custom--radius-fluid);
  transition: transform 0.3s ease;
  aspect-ratio: 16 / 9;
  height: 350px !important;
}

.featured-post-card:hover figure {
  transform: translateY(-5px);
}

.featured-post-card figure a,
.featured-post-card figure a img {
  width: 100% !important;
  border-radius: var(--wp--custom--radius-fluid);
}

.featured-post-card figure a img,
.secondary-articles-query ul li img {
  top: 0;
}

/* Tailles de police pour l'article principal */
.featured-post-card .wp-block-post-terms {
  font-size: 1rem; /* 16px */
}

.featured-post-card .wp-block-post-terms a {
  color: var(--wp--custom--theme-500);
  text-decoration: none;
}

.featured-post-card .wp-block-post-title {
  font-size: 1.75rem; /* 28px */
}

.featured-post-card .wp-block-post-title a {
  color: var(--wp--custom--false-black);
  text-decoration: none;
}

.featured-post-card .wp-block-post-date {
  font-size: 1.25rem; /* 20px */
}

/* Style pour les articles secondaires */
.secondary-articles-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  margin-right: var(--wp--custom--spacer-s) !important;
}

.secondary-articles-query,
.secondary-articles-query ul {
  height: 100%;
}

.secondary-articles-query ul li {
  height: calc(100% / 3);
  margin-top: 0;
}

.secondary-post-card {
  border-bottom: 1px solid var(--wp--custom--border-100);
  margin-bottom: var(--wp--custom--spacer-s);
  padding-bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--wp--custom--spacer-xs);
}

.secondary-post-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.secondary-post-card-image {
  border-radius: var(--wp--custom--radius-fluid);
  height: 175px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: 50%;
  flex: 0 0 50%;
}

.secondary-post-card-content {
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 50%;
  flex: 0 0 50%;
}

.secondary-post-card-content > * {
  margin-top: 0;
}

.secondary-post-card-content > .taxonomy-category {
  margin-bottom: 0.5rem;
}

.secondary-post-card-content > .wp-block-post-title {
  margin-bottom: 1rem;
}

/* Tailles de police pour les articles secondaires */
.secondary-post-card .wp-block-post-terms {
  font-size: 0.625rem; /* 10px */
}

.secondary-post-card .wp-block-post-terms a {
  color: var(--wp--custom--theme-500);
  text-decoration: none;
}

.secondary-post-card .wp-block-post-title {
  font-size: 1.35rem; /* 21.6px */
}

.secondary-post-card .wp-block-post-title a {
  color: var(--wp--custom--false-black);
  text-decoration: none;
}

.secondary-post-card .wp-block-post-date {
  font-size: 0.875rem; /* 14px */
}

.secondary-post-image {
  object-fit: contain;
  overflow: hidden;
}

.secondary-post-image img {
  box-shadow: var(--wp--custom--shadow-soft);
}

/* Style pour les cartes d'articles */
.post-card {
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

/* Styles pour les images des autres articles */
.post-card .wp-block-post-featured-image img {
  box-shadow: var(--wp--custom--shadow-soft);
}

/* Style pour la mise en page inversée */
.blog-featured-layout-reversed .featured-post-card figure {
  box-shadow: var(--wp--custom--shadow-right-theme) !important;
}

/* Styles responsifs */
@media (max-width: 1024px) {
  .blog-featured-layout {
    flex-wrap: wrap;
  }
  
  .featured-article-column,
  .secondary-articles-column {
    flex-basis: 100% !important;
  }
  
  .secondary-articles-column {
    margin-top: var(--wp--custom--spacer-m);
  }
  
  .wp-block-post-template.is-flex-container.columns-3 > li {
    width: calc(50% - var(--wp--custom--spacer-s));
  }
}

@media (max-width: 768px) {
  .wp-block-post-template.is-flex-container.columns-3 > li {
    width: 100%;
  }
	
	.blog-featured-layout {
		gap: 48px;
	}
  
  .featured-post-image img {
    box-shadow: var(--wp--custom--shadow-soft) !important;
  }
  
  .secondary-post-card {
    flex-direction: column;
  }
	
  .secondary-articles-query ul li {
	height: max-content;
	  margin-bottom: 48px;
  }
  
  .secondary-post-card-image {
    width: 100%;
    margin-bottom: var(--wp--custom--spacer-s);
  }
  
	.secondary-post-card-content {
		width: 100%;
	}
	
  .secondary-post-image img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .wp-block-query-pagination {
    flex-direction: column;
    gap: var(--wp--custom--spacer-xs);
  }
}