/* =========================================================
   HERO EN HAUT DES ARTICLES (single)
   ========================================================= */

/* Vignettes des archives – remplir le cadre proprement */
/* --- ARCHIVES/LISTES : sécuriser la mise en page des articles --- */
.list-article { position: relative; clear: both; }
.list-article::after { content: ""; display: block; clear: both; }

.list-article-thumb{
  float: none;             /* override thème (évite de “manger” l’article suivant) */
  width: 100%;
  margin: 0 0 14px;
  border-radius: 14px;
  overflow: hidden;
}

/* NB: on cible bien la classe sortie par le template: ldx-archive-thumb */
.list-article-thumb img.ldx-archive-thumb{
  display: block;
  width: 100%;
  height: auto;            /* pas de recadrage brutal */
  object-fit: cover;       /* sans effet si height:auto, mais safe si un style force une hauteur */
}

/* Option: layout propre en 2 colonnes sur desktop */
@media (min-width: 992px){
  .list-article{
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: start;
  }
  .list-article-thumb{ margin: 0; }
}



.post-hero{
  position: relative;
  height: clamp(260px, 45vw, 460px);
  border-radius: 20px;
  overflow: hidden;                 /* masque ce qui dépasse si on passe en cover */
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  margin: 24px auto 32px;
}

/* Afficher TOUTE l'image (aucune coupe) */
.post-hero img{
  width: 100%;
  height: 100%;
  object-fit: contain;              /* montre l'intégralité de l'image */
  background: #f6f8fb;              /* fond léger pour les bandes latérales éventuelles */
  display: block;
}

/* (Si un jour tu préfères remplir et recadrer un peu, remplace ci-dessus par:) */
/*
.post-hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
*/

/* Harmonisation légère des espaces du header d’article */
.single-post .entry-header{
  margin-top: 0;
}
.single-post .entry-title{
  margin-top: 0.2rem;
}

/* Miniature fallback des listes (optionnel) */
.ldx-fallback-thumb{ object-fit: cover; }

/* =========================================================
   SECTION "DERNIÈRES NOUVELLES"
   ========================================================= */

.section-news { padding: 2.5rem 0 3.25rem; }
.section-news .container { max-width: 1200px; margin: 0 auto; }

.news-head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 1.25rem;
}
.news-title{
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800; letter-spacing:.02em;
}
.news-plus{
  width: 38px; height: 38px; border-radius: 999px;
  display:grid; place-items:center; background:#0e1a2b; color:#fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.news-plus span{ font-weight:700; font-size:1.25rem; line-height:1; }
.news-plus:hover{ transform: translateY(-1px); box-shadow:0 8px 18px rgba(0,0,0,.22); }
.news-plus:active{ transform: translateY(0); }

:root{
  /* adapte si besoin à la teinte du menu */
  --news-blue: #0b2a66;
  --news-green: #2bb673;
  --chip: #eef4ff;
  --chip-txt:#0b2a66;
}

/* -------- HERO de la section -------- */
.news-hero{
  display:grid; grid-template-columns: 1fr minmax(360px, .95fr);
  gap: 18px; background:#fff; border-radius:18px; padding:14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08); border:2px solid transparent;
  margin-bottom: 22px;
}
.news-hero .hero-thumb{
  display:block; border-radius:14px; overflow:hidden; aspect-ratio: 16/9;
}
.news-hero .hero-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.hero-body{ display:flex; flex-direction:column; }
.hero-meta{ display:flex; flex-wrap:wrap; gap:.4rem .5rem; align-items:center; margin-bottom:.25rem; }

.date-badge{
  display:inline-flex; align-items:center; gap:.35rem;
  background:#eaf5ec; color:#1b8f3a; padding:.22rem .6rem; border-radius:999px;
  font-weight:700; letter-spacing:.03em; line-height:1;
}
.date-badge .d{ font-size:.95rem; line-height:1; }
.date-badge .m{ font-size:.8rem; opacity:.9; line-height:1; text-transform:uppercase; }
.date-badge .y{ font-size:.8rem; opacity:.8; line-height:1; }
.date-badge .y::before{ content:'·'; margin:0 .25rem; opacity:.5; }

.chip{
  display:inline-block; background:var(--chip); color:var(--chip-txt);
  padding:.22rem .6rem; border-radius:999px; font-weight:700; font-size:.8rem;
}
.chip-pin{ background:#fff2c4; color:#7a4b00; border:1px solid #f3d77a; }

.hero-title{ font-size: clamp(1.15rem, 1.4vw, 1.35rem); margin:.25rem 0 .4rem; font-weight:800; }
.hero-title a{ color:inherit; text-decoration:none; }
.hero-title a:hover{ text-decoration:underline; text-underline-offset:3px; }

.hero-excerpt{ color:#233; opacity:.9; margin-bottom:.6rem; }

.card-actions{
  margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.share-line{ --gap: .35rem; }
.share-line .wpsr-share-icons{ display:flex; gap:var(--gap); align-items:center; }

/* -------- GRID (3 cartes) -------- */
.news-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:18px;
}
.news-card{
  background:#fff; border-radius:18px; overflow:hidden;
  box-shadow:0 8px 28px rgba(0,0,0,.06); border:2px solid transparent;
  display:flex; flex-direction:column;
}
.card-thumb{ display:block; aspect-ratio: 16/10; overflow:hidden; }
.card-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-body{ display:flex; flex-direction:column; padding:14px; gap:.35rem; }
.card-meta{ display:flex; flex-wrap:wrap; gap:.4rem .5rem; align-items:center; }
.card-title{ font-size: clamp(1rem, 1.1vw, 1.05rem); font-weight:800; margin:.2rem 0 .1rem; }
.card-title a{ color:inherit; text-decoration:none; }
.card-title a:hover{ text-decoration:underline; text-underline-offset:3px; }
.card-excerpt{ color:#233; opacity:.9; margin:.15rem 0 .5rem; min-height: 2.8em; }

/* Boutons */
.btn-pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.6rem 1rem; border-radius:999px; font-weight:800;
  border:0; text-decoration:none; white-space:nowrap; line-height:1;
}
.btn-readmore{
  background:#0e1a2b; color:#fff; box-shadow:0 6px 16px rgba(14,26,43,.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-readmore:hover{ transform: translateY(-1px); box-shadow:0 8px 20px rgba(14,26,43,.32); }
.btn-readmore:active{ transform: translateY(0); }

.news-more{ display:flex; justify-content:center; margin-top: 18px; }
.btn-more{
  display:inline-flex; align-items:center; gap:.5rem; padding:.75rem 1.25rem;
  border-radius:999px; background:var(--news-green); color:#fff; font-weight:800;
  box-shadow:0 8px 20px rgba(43,182,115,.35);
  transition: filter .15s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-more:hover{ filter:brightness(1.05); transform: translateY(-1px); }
.btn-more:active{ filter:brightness(1.1); box-shadow:0 0 0 4px rgba(43,182,115,.25) inset; }

/* -------- Hover effets unifiés -------- */
.card-hover{
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card-hover:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(0,0,0,.12);
  border-color: var(--news-blue);
}

/* -------- Responsif -------- */
@media (max-width: 1024px){
  .news-hero{ grid-template-columns: 1fr; }
  .news-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .news-grid{ grid-template-columns: 1fr; }
  .news-plus{ display:none; }
}
