/* ===== BLOG PAGE STYLES ===== */
.page-hero-blog {
  background: var(--blue);
  padding: 2rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero-blog::before,
.page-hero-blog::after {
  content: '';
  position: absolute;
  pointer-events: none;
  
  /* --- TECHNIQUE DU MASQUE (Remplace background-image) --- */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;

  /* --- COULEUR DE L'ICÔNE --- */
  /* On utilise du blanc avec une très faible opacité pour qu'il se mélange au bleu du fond */
  /* Cela crée naturellement une nuance "cohérente" de bleu plus clair */
  background-color: rgba(255, 255, 255, 0.12); 
  
  animation: gear-rotate 40s linear infinite;
}

/* Fraise 1 à GAUCHE */
.page-hero-blog::before {
  left: -100px; 
  bottom: -100px;
  width: 450px; 
  height: 450px;
  -webkit-mask-image: url('../svg/fraise2.svg');
  mask-image: url('../svg/fraise2.svg');
}

/* Fraise 2 à DROITE */
.page-hero-blog::after {
  right: -50px; 
  top: -15%;
  width: 400px; 
  height: 400px;
  -webkit-mask-image: url('../svg/fraise1.svg');
  mask-image: url('../svg/fraise1.svg');
  animation-direction: reverse;
  animation-duration: 60s;
}

/* On garde la même animation */
@keyframes gear-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.page-hero-blog h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.page-hero-blog p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}
.breadcrumb-blog {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.breadcrumb-blog a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb-blog a:hover { color: #fff; }

/* News grid */
.blog-grid-section {
  background: #F4F4F4;
  padding: 4rem 0;
  min-height: 60vh;
}
.article-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(5,32,94,0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
  animation: cardFadeIn 0.5s ease forwards;
  opacity: 0;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.article-card:nth-child(1) { animation-delay: 0s; }
.article-card:nth-child(2) { animation-delay: 0.08s; }
.article-card:nth-child(3) { animation-delay: 0.16s; }
.article-card:nth-child(4) { animation-delay: 0.24s; }
.article-card:nth-child(5) { animation-delay: 0.32s; }
.article-card:nth-child(6) { animation-delay: 0.40s; }
.article-card:nth-child(7) { animation-delay: 0.48s; }
.article-card:nth-child(8) { animation-delay: 0.56s; }
.article-card:nth-child(9) { animation-delay: 0.64s; }

.article-card:hover {
  box-shadow: 0 12px 40px rgba(5,32,94,0.15);
  transform: translateY(-6px);
}
.article-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e9ecef;
  display: block;
}
.article-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.article-cat-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: rgba(5,32,94,0.07);
  padding: 3px 10px;
  border-radius: 50px;
}
.article-date {
  font-size: 0.78rem;
  color: var(--light-dark);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.article-card .card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}
.article-card .card-desc {
  font-size: 0.88rem;
  color: var(--light-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.read-more-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s;
}
.read-more-link:hover { gap: 0.7rem; color: var(--blue); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 5rem 0;
  color: var(--light-dark);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }

/* Pagination */
.pagination-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 0 1rem;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  border: 2px solid #e2e2e2;
  color: var(--dark);
  background: #fff;
}
.page-btn:hover, .page-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.page-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.page-btn.wide { width: auto; padding: 0 1rem; }
.page-info {
  font-size: 0.85rem;
  color: var(--light-dark);
  text-align: center;
  margin-top: 0.5rem;
}

/* Results bar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.results-count {
  font-size: 0.85rem;
  color: var(--light-dark);
}
.results-count strong { color: var(--dark); }

/* Sidebar / newsletter */
.sidebar-box {
  background: var(--blue);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  color: #fff;
  margin-top: 2rem;
}
.sidebar-box h5 { font-weight: 900; margin-bottom: 0.5rem; }
.sidebar-box p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 1.2rem; }
.sidebar-box input[type="email"] {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  border: none;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.sidebar-box button {
  width: 100%;
  background: #fff;
  color: var(--blue);
  border: none;
  padding: 0.65rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.3s;
}
.sidebar-box button:hover { opacity: 0.85; }

/* Footer (reuse from index) */
.site-footer-modern {
  background: var(--blue);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}
.site-footer-modern .footer-brand { color:#fff;font-size:1.4rem;font-weight:900;margin-bottom:1rem;display:block; }
.site-footer-modern .footer-desc { font-size:0.88rem;line-height:1.7;margin-bottom:1.5rem; }
.site-footer-modern .footer-widget h5 { color:#fff;font-size:0.8rem;text-transform:uppercase;letter-spacing:0.12em;font-weight:800;margin-bottom:1.2rem;padding-bottom:0.6rem;border-bottom:2px solid rgba(255,255,255,0.15); }
.site-footer-modern .footer-widget ul { list-style:none;padding:0;margin:0; }
.site-footer-modern .footer-widget ul li { padding:0.35rem 0; }
.site-footer-modern .footer-widget ul li a { color:rgba(255,255,255,0.7);text-decoration:none;font-size:0.9rem;transition:color 0.3s; }
.site-footer-modern .footer-widget ul li a:hover { color:#fff; }
.footer-contact-item { display:flex;align-items:flex-start;gap:0.75rem;margin-bottom:0.75rem;font-size:0.9rem;color:rgba(255,255,255,0.75); }
.footer-contact-item .icon { width:20px;flex-shrink:0;margin-top:2px;color:rgba(255,255,255,0.5); }
.footer-divider { border-color:rgba(255,255,255,0.12);margin:2rem 0 1rem; }
.footer-bottom { font-size:0.8rem;color:rgba(255,255,255,0.45); }