/* Page « Le carnet de route » : le module Divi « Blog » (mode pleine largeur) remis en grille.
   Le premier article est mis en avant sur toute la largeur. Le module choisit seul les
   articles (les plus récents d'abord) : rien à mettre à jour ici quand Hadrien publie. */

body.lha-page .lha .lha-carnet .et_pb_ajax_pagination_container{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px;
}
body.lha-page .lha .lha-carnet .et_pb_ajax_pagination_container > div{grid-column:1/-1}
/* pagination vide (une seule page d'articles) : on la masque */
body.lha-page .lha .lha-carnet .et_pb_ajax_pagination_container > div:not(:has(a)){display:none}

/* ---------- une carte ---------- */
body.lha-page .lha .lha-carnet .et_pb_post{
  display:flex; flex-direction:column; margin:0; padding:0;
  background:var(--lha-raised); border:1px solid var(--lha-border);
  border-radius:var(--lha-r-lg); overflow:hidden;
}
body.lha-page .lha .lha-carnet .entry-featured-image-url{display:block;margin:0;order:0}
body.lha-page .lha .lha-carnet .entry-featured-image-url img{
  display:block; width:100%; aspect-ratio:3/2; object-fit:cover; background:var(--lha-sunken);
}
body.lha-page .lha .lha-carnet .post-meta{
  order:1; margin:0; padding:20px 22px 0;
  font:400 14px/1.5 var(--lha-sans); color:var(--lha-muted);
}
body.lha-page .lha .lha-carnet .entry-title{
  order:2; margin:0; padding:6px 22px 0;
  font:600 22px/1.25 var(--lha-display); letter-spacing:-.01em;
}
body.lha-page .lha .lha-carnet .entry-title a{color:var(--lha-ink);text-decoration:none}
body.lha-page .lha .lha-carnet .entry-title a:hover{color:var(--lha-accent-h);text-decoration:underline}
body.lha-page .lha .lha-carnet .post-content{order:3;padding:10px 22px 24px}
body.lha-page .lha .lha-carnet .post-content p{font-size:16px;line-height:1.6;color:var(--lha-muted)}
/* « lire plus » : le titre et la photo mènent déjà à l'article */
body.lha-page .lha .lha-carnet .more-link{display:none}

/* ---------- le plus récent, en grand ---------- */
body.lha-page .lha .lha-carnet .et_pb_post:first-child{grid-column:1/-1}
body.lha-page .lha .lha-carnet .et_pb_post:first-child .entry-title{font-size:clamp(26px,2.8vw,34px);line-height:1.15}
body.lha-page .lha .lha-carnet .et_pb_post:first-child .post-content p{font-size:17px}
@media (min-width:981px){
  body.lha-page .lha .lha-carnet .et_pb_post.has-post-thumbnail:first-child{
    display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
    grid-template-rows:1fr auto auto auto 1fr;
  }
  body.lha-page .lha .lha-carnet .et_pb_post.has-post-thumbnail:first-child .entry-featured-image-url{grid-column:1;grid-row:1/6}
  body.lha-page .lha .lha-carnet .et_pb_post.has-post-thumbnail:first-child .entry-featured-image-url img{height:100%;aspect-ratio:auto;min-height:340px}
  body.lha-page .lha .lha-carnet .et_pb_post.has-post-thumbnail:first-child .post-meta{grid-column:2;grid-row:2;padding:0 40px}
  body.lha-page .lha .lha-carnet .et_pb_post.has-post-thumbnail:first-child .entry-title{grid-column:2;grid-row:3;padding:8px 40px 0}
  body.lha-page .lha .lha-carnet .et_pb_post.has-post-thumbnail:first-child .post-content{grid-column:2;grid-row:4;padding:14px 40px 0}
}

/* ---------- pagination (« Entrées précédentes ») ---------- */
body.lha-page .lha .lha-carnet .pagination{padding:8px 0 0}
body.lha-page .lha .lha-carnet .pagination a{
  display:inline-flex; align-items:center; min-height:44px;
  font:600 16px/1.2 var(--lha-sans); color:var(--lha-accent);
}

/* ---------- tablette et mobile ---------- */
@media (max-width:980px){
  body.lha-page .lha .lha-carnet .et_pb_ajax_pagination_container{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  body.lha-page .lha .lha-carnet .et_pb_ajax_pagination_container{grid-template-columns:minmax(0,1fr);gap:16px}
  body.lha-page .lha .lha-carnet .post-meta{padding:16px 18px 0}
  body.lha-page .lha .lha-carnet .entry-title{padding:4px 18px 0}
  body.lha-page .lha .lha-carnet .post-content{padding:8px 18px 20px}
}
