/* ========== BLOG / HOME (grille d'articles) ========== */
:root{
  --bg:#0c0c0e;
  --panel:#131416;
  --ink:#e7e7ea;
  --muted:#9aa0a6;
  --gold:#e1b866; /* or doux */
  --gold-2:#f4d181;
  --ring: rgba(225,184,102,.35);
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Conteneur principal */
.archive-header,
.archive-wrap{ 
  max-width: 1080px; 
  margin: 0 auto;
  padding: 14px 18px;
}

/* Titre de page */
.archive-header{
  padding-top: 22px;
}
.archive-header .page-title{
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 4px;
  color: var(--gold);
  letter-spacing:.3px;
  text-shadow: 0 1px 0 rgba(0,0,0,.3);
}
.archive-description{
  margin: 6px 0 12px;
  color: var(--muted);
}

/* Grille d’articles */
.posts-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/*  ≥ 768px → 2 colonnes */
@media (min-width:768px){
  .posts-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/*  ≥ 1200px → 3 colonnes */
@media (min-width:1200px){
  .posts-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Carte */
.posts-grid article{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)) , var(--panel);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
}
.posts-grid article:hover{
  transform: translateY(-4px);
  border-color: var(--ring);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

/* Vignette (ratio 3:2 – recadrage propre) */
.posts-grid .post-thumb{
  display:block;
  aspect-ratio: 3 / 2;
  overflow:hidden;
  background:#0a0a0a;
}
.posts-grid .post-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transition: transform .5s ease, filter .5s ease;
}
.posts-grid article:hover .post-thumb img{
  transform: scale(1.03);
  filter: saturate(1.08);
}

/* Corps de la carte */
.posts-grid .card-body{
  padding: 14px 16px 16px;
}

/* Meta: catégories */
.posts-grid .card-meta{
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.posts-grid .card-meta a{
  color: var(--gold);
  text-decoration: none;
  background: rgba(225,184,102,.12);
  border: 1px solid rgba(225,184,102,.28);
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 6px;
}

/* Titre article */
.posts-grid .entry-title{
  font-size: clamp(18px, 2.1vw, 22px);
  line-height:1.25;
  margin: 0 0 8px;
  letter-spacing:.2px;
}
.posts-grid .entry-title a{
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(90deg,var(--gold) 0,var(--gold-2) 100%) bottom left/0 2px no-repeat;
  transition: background-size .3s ease, color .2s ease;
}
.posts-grid article:hover .entry-title a{
  color:#fff;
  background-size: 100% 2px;
}

/* Extrait */
.posts-grid .entry-excerpt{
  color: #c7c9cf;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Pied de carte */
.posts-grid .card-footer{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.date-badge{
  font-size:12.5px;
  color: var(--muted);
  border:1px dashed rgba(255,255,255,.18);
  padding: 6px 10px;
  border-radius: 10px;
}

/* Bouton Lire */
.btn-read{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:600;
  font-size: 13.5px;
  color:#131416;
  background: radial-gradient(120% 120% at 10% 10%, var(--gold-2), var(--gold));
  border:1px solid rgba(0,0,0,.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-read:hover{ transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 12px 26px rgba(0,0,0,.35); }

/* Pagination */
.archive-pagination{
  margin: 28px auto 22px;
  display:flex; gap:10px; justify-content:center;
}
.archive-pagination a,
.archive-pagination span{
  min-width:38px; text-align:center;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  color: var(--ink);
  text-decoration:none;
  background: #131416;
}
.archive-pagination .current{
  background: linear-gradient(90deg,var(--gold),var(--gold-2));
  color:#131416; border-color: transparent; font-weight:700;
}

/* Optionnel : mettre le tout premier article en “large” (mise en avant) */
.posts-grid > article:first-child{
  grid-column: 1 / -1;
  display:grid; grid-template-columns: 1.15fr 1fr;
}
@media (max-width:900px){
  .posts-grid > article:first-child{
    display:block; grid-column:auto;
  }
}
.posts-grid > article:first-child .post-thumb{ aspect-ratio: 16 / 9; }
