/* agnelli.org — pages de liste du blog. Couleurs : palette du thème Twenty Twenty-Four. */
.ag-blog{padding:var(--wp--preset--spacing--50) var(--wp--preset--spacing--30) var(--wp--preset--spacing--60)}
.ag-entete{text-align:center;margin-bottom:var(--wp--preset--spacing--40)}
.ag-titre{font-size:clamp(2.2rem,5vw,3.4rem);line-height:1.05;margin:0}
.ag-sous-titre{color:var(--wp--preset--color--contrast-2);margin:.7rem auto 1.5rem;max-width:42ch}
.ag-sous-titre p{margin:0}
.ag-retour{margin:0 0 .6rem;font-size:.9rem}
.ag-retour a{color:var(--wp--preset--color--contrast-2);text-decoration:none}
.ag-retour a:hover{color:var(--wp--preset--color--accent-3)}

.ag-themes{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;padding:0;margin:0}
.ag-themes li{margin:0}
.ag-themes a{display:inline-block;padding:.38rem .95rem;border:1px solid #d9d5cc;border-radius:999px;background:var(--wp--preset--color--base-2);color:var(--wp--preset--color--contrast);text-decoration:none;font-size:.9rem;transition:background .15s,color .15s,border-color .15s}
.ag-themes a:hover,.ag-themes .current-cat a{background:var(--wp--preset--color--contrast);border-color:var(--wp--preset--color--contrast);color:var(--wp--preset--color--base-2)}

.ag-billets .wp-block-post-template{gap:1.5rem;margin:0;padding:0}
.ag-billets .wp-block-post-template>li{display:flex;margin:0}
.ag-carte{display:flex;flex-direction:column;width:100%;background:var(--wp--preset--color--base-2);border:1px solid #e6e2d9;border-radius:16px;overflow:hidden;transition:transform .2s,box-shadow .2s}
.ag-carte:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(17,17,17,.08)}
.ag-carte:not(:has(.wp-block-post-featured-image)){border-top:4px solid var(--wp--preset--color--accent-2)}
.ag-carte .wp-block-post-featured-image{margin:0}
.ag-carte .wp-block-post-featured-image a,.ag-carte .wp-block-post-featured-image img{display:block;width:100%;height:100%;object-fit:cover}
.ag-corps{display:flex;flex-direction:column;gap:.55rem;flex:1;padding:1.25rem 1.4rem 1.4rem}
.ag-kicker{font-size:.74rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.ag-kicker a{color:var(--wp--preset--color--accent-3);text-decoration:none}
.ag-titre-billet{font-size:1.35rem;line-height:1.2;margin:0}
.ag-titre-billet a{text-decoration:none}
.ag-titre-billet a:hover{color:var(--wp--preset--color--accent-3)}
.ag-extrait{margin:0;color:var(--wp--preset--color--contrast-2);font-size:.95rem;line-height:1.5}
.ag-extrait p{margin:0}
.ag-extrait .wp-block-post-excerpt__more-text{display:none}
.ag-date{margin-top:auto;padding-top:.3rem;font-size:.82rem;color:var(--wp--preset--color--contrast-2)}

/* le billet le plus récent, en grand, sur la première page du blog */
body.blog:not(.paged) .ag-billets .wp-block-post-template>li:first-child{grid-column:1/-1}
@media (min-width:782px){
  body.blog:not(.paged) .ag-billets li:first-child .ag-carte:has(.wp-block-post-featured-image){display:grid;grid-template-columns:1.35fr 1fr}
  body.blog:not(.paged) .ag-billets li:first-child .ag-corps{justify-content:center;padding:2rem 2.4rem}
  body.blog:not(.paged) .ag-billets li:first-child .ag-titre-billet{font-size:clamp(1.6rem,2.6vw,2.2rem)}
  body.blog:not(.paged) .ag-billets li:first-child .ag-extrait{font-size:1.05rem}
}
@media (max-width:1000px){.ag-billets .wp-block-post-template.is-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.ag-billets .wp-block-post-template.is-layout-grid{grid-template-columns:1fr}}

.ag-pages{margin-top:var(--wp--preset--spacing--40)}
@media (prefers-reduced-motion:reduce){.ag-carte{transition:none}.ag-carte:hover{transform:none}}
