/*
 Theme Name:   Astra Child
 Template:     astra
*/

@import url("../astra/style.css");

/* --- Titre principal du blog --- */
.blog-title {
  margin-top: 7rem; /* espace sous le menu */
  font-size: 2rem;
  text-align: center;
  font-weight: bold;
  color: #1f3149;
  margin-bottom: 2rem;
}

/* --- Section blog --- */
.blog-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Grille d’articles --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* --- Carte article --- */
.blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}

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

/* Image mise en avant */
.blog-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Contenu */
.blog-card-content {
  padding: 1rem;
}

/* Catégorie */
.blog-category {
  font-size: 0.8rem;
  color: #c10058;
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

/* Date */
.blog-card-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

/* Titre */
.blog-card-title {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #1f3149;
}

.blog-card-title a {
  text-decoration: none;
  color: inherit;
}

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

/* Extrait */
.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
  margin: 0.5rem 0 1rem;
}

/* Lien lire la suite */
.blog-card-link {
  text-decoration: none;
  color: #c10058;
  font-weight: bold;
  font-size: 0.9rem;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* Pagination */
.blog-pagination {
  text-align: center;
  margin-top: 2rem;
}

.blog-pagination a {
  margin: 0 0.3rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: #1f3149;
  color: #fff;
  text-decoration: none;
}

.blog-pagination a:hover {
  background: #c10058;
}

/* --- Titre du blog élégant --- */
.blog-title {
  text-align: center !important;
  display: block;
  width: 100%;
  margin: 7rem auto 1rem auto; /* espace sous le menu */
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f3149;
  position: relative;
}

/* Ligne fine sous le titre */
.blog-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #c10058; /* couleur accent */
  margin: 0.8rem auto 0;
  border-radius: 3px;
}

/* --- Grille des articles subtile --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem; /* espace subtil entre les blocs */
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 3rem; /* espace avant le footer */
}

/* --- Carte article --- */
.blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* --- Espacement footer --- */
.blog-pagination {
  text-align: center;
  margin: 2rem 0 4rem; /* espace subtil avant le footer */
}
/* --- Titre du blog centré et élégant --- */
.blog-title {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin: 7rem auto 1rem auto !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  color: #1f3149 !important;
  position: relative;
}

.blog-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #c10058;
  margin: 0.8rem auto 0;
  border-radius: 3px;
}

/* --- Grille des articles --- */
.blog-grid {
  gap: 2.5rem !important; /* espace subtil entre les blocs */
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding-bottom: 3rem !important; /* espace avant le footer */
}

/* --- Carte article --- */
.blog-card {
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.blog-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1) !important;
}

/* --- Pagination avec espace avant footer --- */
.blog-pagination {
  text-align: center !important;
  margin: 2rem 0 4rem !important; 
}

/* === Styles pour le shortcode [articles_categorie] === */

/* Grille responsive */
.categorie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Carte article */
.categorie-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.categorie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Image */
.categorie-thumb {
  display: block;
  overflow: hidden;
}

.categorie-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.categorie-card:hover .categorie-img {
  transform: scale(1.05);
}

/* Contenu */
.categorie-content {
  padding: 1rem;
  flex: 1; /* pousse le bouton en bas si besoin */
  display: flex;
  flex-direction: column;
}

/* Catégorie */
.categorie-category {
  font-size: 0.75rem;
  color: #c10058;
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

/* Date */
.categorie-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

/* Titre */
.categorie-title {
  font-size: 1.15rem;
  margin: 0.5rem 0;
  color: #1f3149;
  line-height: 1.3;
  flex-shrink: 0;
}

.categorie-title a {
  text-decoration: none;
  color: inherit;
}

.categorie-title a:hover {
  color: #c10058;
}

/* Extrait */
.categorie-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin: 0.5rem 0 1rem;
  flex-grow: 1; /* occupe l’espace restant */
}

/* Bouton Lire la suite */
.categorie-link {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: #c10058;
  padding: 8px 14px;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.categorie-link:hover {
  background: #a60046;
  transform: translateY(-2px);
}

/* === Responsive mobile === */
@media (max-width: 640px) {
  .categorie-img {
    height: 160px;
  }
  .categorie-title {
    font-size: 1rem;
  }
  .categorie-excerpt {
    font-size: 0.9rem;
  }
}

/* === Footer alignement extremes === */
@media (min-width: 922px) {
  .site-primary-footer-wrap .ast-builder-grid-row {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 2rem !important;
  }
  .site-footer-primary-section-1 {
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .site-footer-primary-section-1 .ast-header-html,
  .site-footer-primary-section-1 .ast-builder-html-element,
  .site-footer-primary-section-1 p {
    text-align: left !important;
    margin: 0 !important;
  }
  .site-footer-primary-section-2 {
    justify-content: center !important;
  }
  .site-footer-primary-section-2 .footer-bar-navigation,
  .site-footer-primary-section-2 .footer-navigation,
  .site-footer-primary-section-2 .footer-nav-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .site-footer-primary-section-2 #astra-footer-menu {
    flex-wrap: nowrap !important;
    justify-content: center !important;
    white-space: nowrap;
  }
  .site-footer-primary-section-3 {
    justify-content: flex-end !important;
    text-align: right !important;
  }
  .site-footer-primary-section-3 .ast-footer-copyright,
  .site-footer-primary-section-3 .ast-footer-copyright p {
    text-align: right !important;
    margin: 0 !important;
  }
}
/* === FIN footer alignement === */