﻿/* ═══════════════════════════════════════
   PAGE BLOG — Styles spécifiques
═══════════════════════════════════════ */

/* ─── Hero ─── */
.page-hero {
  background: linear-gradient(135deg, #042C53 0%, #0d4a8a 55%, #185FA5 100%);
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,66,0.08) 0%, transparent 70%);
  top: -180px; right: -100px;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-family: var(--font-body);
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 800;
  color: #fff;
  margin: 14px 0 16px;
  line-height: 1.15;
}

.page-hero__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Section articles ─── */
.section {
  padding: 64px 0;
}

/* ─── Grille articles : 3 colonnes desktop ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ─── Carte article ─── */
.article-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid #e8eef6;
  box-shadow: 0 2px 16px rgba(4,44,83,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(4,44,83,0.13);
  border-color: #c5d8ee;
}

/* ─── Image ─── */
.article-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  flex-shrink: 0;
}

.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card__img {
  transform: scale(1.06);
}

/* ─── Tag en overlay sur l'image ─── */
.article-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--jaune, #F5C842);
  color: var(--bleu-fonce, #042C53);
  padding: 4px 12px;
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.16);
}

/* ─── Corps de la carte ─── */
.article-card__body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.article-card__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #042C53;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__excerpt {
  font-family: var(--font-body);
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ─── Pied de carte : stats + lien ─── */
.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.article-card__stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.article-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.article-card__stat svg { flex-shrink: 0; }

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #185FA5;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: 8px;
  border: 1.5px solid #c5d8ee;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  flex-shrink: 0;
}

.article-card__link:hover {
  background: #185FA5;
  color: #fff;
  border-color: #185FA5;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */

/* Tablette : 2 colonnes */
@media (max-width: 960px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

/* Grand mobile : 2 colonnes serrées */
@media (max-width: 680px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .article-card {
    border-radius: 14px;
  }

  .article-card__body {
    padding: 16px 16px 14px;
    gap: 8px;
  }

  .article-card__title {
    font-size: 14px;
  }

  .article-card__excerpt {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .article-card__stat {
    font-size: 11px;
  }

  .article-card__link {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* Mobile : 1 colonne, carte horizontale */
@media (max-width: 480px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-card {
    flex-direction: row;
    border-radius: 14px;
    min-height: 110px;
    max-height: 130px;
  }

  .article-card__img-wrap {
    width: 110px;
    min-width: 110px;
    aspect-ratio: unset;
    height: 100%;
    flex-shrink: 0;
  }

  .article-card__tag {
    font-size: 9px;
    padding: 3px 8px;
    top: 8px;
    left: 8px;
  }

  .article-card__body {
    padding: 12px 14px;
    gap: 6px;
    justify-content: center;
  }

  .article-card__title {
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .article-card__excerpt {
    display: none;
  }

  .article-card__footer {
    padding-top: 8px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .article-card__stats {
    gap: 8px;
  }

  .article-card__stat {
    font-size: 11px;
  }

  .article-card__link {
    font-size: 11px;
    padding: 4px 10px;
  }

  .section {
    padding: 40px 0;
  }

  .section-header--center { margin-bottom: 28px !important; }
}

/* Très petit mobile */
@media (max-width: 360px) {
  .article-card__img-wrap {
    width: 90px;
    min-width: 90px;
  }

  .article-card__title {
    font-size: 12px;
  }

  .article-card__stats {
    display: none;
  }
}
