/*
Theme Name: Watourey Douma
Theme URI: https://watoureydouma.fr
Author: Kasaïs
Description: Thème bloc sur mesure pour l'association de reboisement Watourey Douma (Niamey, Niger). Pages, blog et galerie 100 % éditables dans l'éditeur de blocs.
Version: 2.1.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: watourey-douma
Tags: block-theme, full-site-editing, blog, one-column
*/
/* ==========================================================================
   Watourey Douma : feuille partagée maquette + thème WordPress
   Les classes sont posées sur les blocs via className (méthode Claude to WordPress)
   ========================================================================== */
:root{
  --sand:#FAF7F1;
  --sand-2:#F2ECDF;
  --ink:#2A2320;
  --earth:#C97C3D;
  --earth-dark:#A6632C;
  --earth-light:#E8B98A;
  --leaf:#3A5A3E;
  --indigo:#1B3A4B;
  --card:#FFFFFF;
  --border:#E8E0D2;
  --serif:"Fraunces",Georgia,serif;
  --sans:"Jost","Work Sans",sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;background:var(--sand);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:normal;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5{font-family:var(--serif);text-wrap:balance;hyphens:none;margin:0;font-weight:500;line-height:1.2}
p{margin:0;line-height:1.7}
a{color:inherit}
img{max-width:100%;height:auto;display:block}

/* Neutralisation de l'espacement Gutenberg, à spécificité nulle (voir blocs-gutenberg.md) */
:where(.wp-block-group)>:where(*),:where(.wp-block-buttons){margin-block:0}
figure.wp-block-image,.wp-block-site-logo{margin:0}

.wrap{max-width:1140px;margin:0 auto;padding-inline:24px}

/* ---------- header ---------- */
.site-header-part{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:20}
.site-header{background:var(--sand);border-bottom:1px solid var(--border)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-block:12px}
.brand{display:flex;align-items:center;gap:12px}
.brand-logo img{height:44px;width:auto}
.brand-name{font-family:var(--serif);font-size:1.02rem;letter-spacing:.01em;line-height:1.2}
.brand-name a{text-decoration:none}
.menu{font-size:.86rem;font-weight:500}
.menu ul,.menu .wp-block-navigation__container{list-style:none;display:flex;gap:26px;margin:0;padding:0}
.menu a,.menu .wp-block-navigation-item__content{text-decoration:none;opacity:.72}
.menu a:hover,.menu .wp-block-navigation-item__content:hover{opacity:1}
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open{background-color:var(--sand)!important;color:var(--ink)!important}
@media (max-width:760px){
  .menu .menu-list{display:none}
  .nav-cta{margin-left:auto}
}
@media (max-width:599px){
  .nav{flex-wrap:nowrap}
  .nav .wp-block-buttons.nav-cta{display:none}
}

/* ---------- boutons : la classe est sur le conteneur, le style sur le lien ---------- */
.btn-row{display:flex;gap:12px;flex-wrap:wrap}
.wp-block-button.btn{display:inline-block;background:none;border:0;padding:0;border-radius:0}
.btn .wp-block-button__link{display:inline-block;background:var(--earth);color:#fff;border:none;padding:13px 26px;border-radius:3px;font-family:var(--sans);font-size:.86rem;letter-spacing:.02em;line-height:1.2;font-weight:500;text-decoration:none;cursor:pointer;transition:background .15s}
.btn .wp-block-button__link:hover{background:var(--earth-dark)}
.btn-outline .wp-block-button__link{background:transparent;color:inherit;border:1.5px solid currentColor;padding:11.5px 24px}
.btn-outline .wp-block-button__link:hover{background:rgba(0,0,0,.05)}
.btn-small .wp-block-button__link{padding:9px 18px;font-size:.8rem}

.eyebrow{color:var(--earth);font-size:.74rem;letter-spacing:.15em;text-transform:uppercase;font-weight:600;margin-bottom:14px;display:block;line-height:1.4}
.eyebrow.on-dark{color:var(--earth-light)}
.eyebrow.leaf{color:var(--leaf)}

/* ---------- hero ---------- */
.hero{position:relative;min-height:620px;display:flex;align-items:flex-end;color:#fff;overflow:hidden;padding:0}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;object-position:center 35%}
.hero::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(0deg,rgba(19,16,13,.88) 0%,rgba(19,16,13,.45) 55%,rgba(19,16,13,.35) 100%);pointer-events:none}
.hero-inner{position:relative;z-index:2;padding-block:80px 56px;width:100%}
.hero h1{font-size:clamp(2.1rem,5vw,3.1rem);line-height:1.15;max-width:16ch;margin-bottom:20px}
.hero-lead{max-width:50ch;opacity:.92;font-size:1.05rem;margin-bottom:30px}
.hero .btn-outline .wp-block-button__link{border-color:rgba(255,255,255,.65);color:#fff}

/* ---------- notice ---------- */
.notice{background:var(--sand-2);border-bottom:1px solid var(--border);padding:16px 24px;text-align:center;font-size:.9rem}
.notice strong{color:var(--earth-dark)}

/* ---------- stats ---------- */
.stats-band{background:var(--indigo);color:#fff;padding-block:52px}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center}
.stat-num{font-family:var(--serif);font-size:2.4rem;line-height:1;color:var(--earth-light)}
.stat-label{font-size:.82rem;opacity:.78;margin-top:10px;letter-spacing:.01em;line-height:1.4}
@media (max-width:760px){.stats-grid{grid-template-columns:repeat(2,1fr);row-gap:36px}}

/* ---------- sections ---------- */
.section{padding-block:76px}
.section-head{max-width:620px;margin:0 0 48px}
.section-head.center{margin-inline:auto;text-align:center}
.section-head h2{font-size:clamp(1.6rem,3vw,2.1rem);margin-bottom:14px}
.section-head p{opacity:.75;font-size:1rem}

/* ---------- grille mission (icônes en masques CSS) ---------- */
.icon-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:6px;overflow:hidden}
.icon-card{position:relative;background:var(--card);padding:38px 32px;display:flex;flex-direction:column;gap:14px}
.icon-card::before{content:"";width:44px;height:44px;border-radius:50%;background:var(--sand-2);flex-shrink:0}
.icon-card::after{content:"";position:absolute;top:49px;left:43px;width:22px;height:22px;background:var(--leaf);-webkit-mask:center/contain no-repeat;mask:center/contain no-repeat}
.ic-desert::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M5 10l7-7 7 7M5 17l7 5 7-5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M5 10l7-7 7 7M5 17l7 5 7-5'/%3E%3C/svg%3E")}
.ic-ville::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 4 6 4 9s-1.5 6.3-4 9c-2.5-2.7-4-6-4-9s1.5-6.3 4-9z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 4 6 4 9s-1.5 6.3-4 9c-2.5-2.7-4-6-4-9s1.5-6.3 4-9z'/%3E%3C/svg%3E")}
.ic-communaute::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.4'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M15 20c0-2.2-.8-4.2-2.2-5.6A4.4 4.4 0 0 1 17 13c3 0 5 2.2 5 5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.4'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M15 20c0-2.2-.8-4.2-2.2-5.6A4.4 4.4 0 0 1 17 13c3 0 5 2.2 5 5'/%3E%3C/svg%3E")}
.icon-card h3{font-size:1.08rem}
.icon-card p{font-size:.91rem;opacity:.75}
@media (max-width:760px){.icon-grid{grid-template-columns:1fr}}

/* ---------- constat ---------- */
.constat-section{background:var(--sand-2);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.constat-row{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;padding-block:40px}
.constat-row+.constat-row{border-top:1px solid var(--border)}
.constat-row.reverse .constat-media{order:2}
.constat-media{border-radius:6px;overflow:hidden;aspect-ratio:4/3}
.constat-media img{width:100%;height:100%;object-fit:cover}
.constat-num{font-family:var(--serif);font-size:1rem;color:var(--earth);display:block;margin-bottom:10px;letter-spacing:.04em;line-height:1.4}
.constat-text h3{font-size:1.4rem;margin-bottom:14px}
.constat-text p:not(.constat-num){opacity:.78;font-size:.97rem}
@media (max-width:760px){
  .constat-row,.constat-row.reverse{grid-template-columns:1fr;gap:24px}
  .constat-row.reverse .constat-media{order:0}
}

/* ---------- agir ---------- */
.agir-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.agir-card{background:var(--card);border:1px solid var(--border);border-radius:8px;overflow:hidden;display:flex;flex-direction:column}
.agir-media{aspect-ratio:16/10;overflow:hidden}
.agir-media img{width:100%;height:100%;object-fit:cover}
.agir-body{padding:30px 32px 32px;display:flex;flex-direction:column;gap:14px;flex:1}
.agir-body h3{font-size:1.25rem}
.agir-body p{font-size:.93rem;opacity:.76;flex:1}
.agir-body .btn-row{margin-top:6px}
@media (max-width:760px){.agir-grid{grid-template-columns:1fr}}

/* ---------- témoignage ---------- */
.testi-band{background:var(--leaf);color:#fff;padding-block:68px}
.testi-inner{max-width:720px;margin:0 auto;text-align:center}
.testi-quote{font-family:var(--serif);font-size:clamp(1.3rem,2.6vw,1.65rem);line-height:1.45;font-style:italic;margin-bottom:24px}
.testi-who{font-size:.88rem;opacity:.85}
.testi-who strong{display:block;font-size:.95rem;margin-bottom:2px}

/* ---------- étapes ---------- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.step-num{font-family:var(--serif);font-size:1.6rem;color:var(--earth);margin-bottom:10px;line-height:1.2}
.step h4{font-size:1rem;margin-bottom:8px}
.step p:not(.step-num){font-size:.88rem;opacity:.72}
@media (max-width:760px){.steps{grid-template-columns:1fr 1fr;row-gap:36px}}

/* ---------- CTA finale ---------- */
.cta-band{background:var(--ink);color:var(--sand);padding-block:64px;text-align:center}
.cta-band h2{font-size:clamp(1.5rem,3vw,2rem);margin-bottom:16px;color:var(--sand)}
.cta-band p{max-width:52ch;margin:0 auto 30px;opacity:.8}
.cta-band .btn-row{justify-content:center}
.cta-band .btn-outline .wp-block-button__link{border-color:rgba(255,255,255,.4);color:var(--sand)}

/* ---------- footer ---------- */
.site-footer{background:var(--sand-2);padding-block:56px 28px;border-top:1px solid var(--border)}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;margin-bottom:40px}
.foot-brand .brand-logo img{height:64px;width:auto}
.foot-brand p{margin-top:16px;font-size:.88rem;opacity:.7;max-width:34ch}
.foot-title{font-family:var(--sans);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;opacity:.55;margin-bottom:16px;font-weight:600}
.foot-menu{font-size:.9rem}
.foot-menu ul,.foot-menu .wp-block-navigation__container{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.foot-menu a,.foot-menu .wp-block-navigation-item__content{text-decoration:none}
.foot-address{font-size:.9rem;line-height:1.8;opacity:.75}
.foot-address a{text-decoration:none}
.foot-bottom{padding-top:24px;border-top:1px solid var(--border);font-size:.78rem;opacity:.5;text-align:center}
@media (max-width:760px){.foot-grid{grid-template-columns:1fr;gap:32px}}


.ic-maison::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E")}
.ic-ecole::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E")}
.ic-partage::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E")}

/* ---------- liens de section ---------- */
.section-more{margin-top:40px;justify-content:center}
.constat-row ~ .section-more{margin-top:24px}
.section-head.center + .faq{margin-inline:auto}

/* ---------- en-tête des pages internes ---------- */
.hero-page{min-height:440px}
.hero-page h1{max-width:20ch;font-size:clamp(2rem,4.4vw,2.8rem)}
.hero-page .hero-inner{padding-block:72px 52px}
.page-head{background:var(--sand-2);border-bottom:1px solid var(--border);padding-block:72px 56px}
.page-head h1{font-size:clamp(2rem,4.4vw,2.8rem);line-height:1.15;margin-bottom:16px;max-width:20ch}
.page-head p{max-width:56ch;opacity:.8;font-size:1.05rem}

/* ---------- texte long ---------- */
.prose{max-width:720px;margin-inline:auto}
.prose > * + *{margin-top:18px}
.prose > :first-child{margin-top:0}
.prose h2{font-size:clamp(1.4rem,2.6vw,1.75rem);margin-top:40px}
.prose h3{font-size:1.2rem;margin-top:28px}
.prose p,.prose li{font-size:1.04rem;line-height:1.75}
.prose .lead{font-family:var(--serif);font-size:1.3rem;line-height:1.55}
.prose ul{padding-left:1.2em;margin-block:0}
.prose li + li{margin-top:6px}
.prose li::marker{color:var(--earth)}
.prose strong{font-weight:600}
.prose a{color:var(--earth-dark)}
.constat-text .wp-block-list{padding-left:1.2em;margin:0;display:flex;flex-direction:column;gap:6px}
.constat-text .wp-block-list li{font-size:.95rem;opacity:.85;line-height:1.6}
.split .constat-text{display:flex;flex-direction:column;gap:14px}
.split .constat-text h2{font-size:clamp(1.4rem,2.6vw,1.8rem)}
.split .constat-text .eyebrow{margin-bottom:0}
.split .constat-text p{opacity:.8;font-size:.98rem}
.anchor-block{scroll-margin-top:90px}
.anchor-block + .anchor-block{border-top:1px solid var(--border)}

/* ---------- essences ---------- */
.essence-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.essence-card{background:var(--card);border:1px solid var(--border);border-radius:6px;padding:28px 28px 30px;border-top:3px solid var(--leaf)}
.essence-card h3{font-size:1.2rem}
.essence-latin{font-family:var(--serif);font-style:italic;color:var(--earth-dark);font-size:.92rem;margin:4px 0 12px}
.essence-card p:not(.essence-latin){font-size:.92rem;opacity:.78}
@media (max-width:900px){.essence-grid{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.essence-grid{grid-template-columns:1fr}}

/* ---------- chiffres repères (texte plus long) ---------- */
.facts-band .stat-num{font-size:2rem}
.facts-band .stat-label{max-width:22ch;margin-inline:auto}

/* ---------- FAQ (bloc Détails natif) ---------- */
.faq{max-width:760px;display:flex;flex-direction:column;border-top:1px solid var(--border)}
.faq-item{border-bottom:1px solid var(--border);padding:0}
.faq-item summary{cursor:pointer;list-style:none;padding:22px 40px 22px 0;font-family:var(--serif);font-size:1.12rem;position:relative;line-height:1.35}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";position:absolute;right:4px;top:50%;transform:translateY(-50%);font-family:var(--sans);font-size:1.5rem;color:var(--earth);transition:transform .2s}
.faq-item[open] summary::after{transform:translateY(-50%) rotate(45deg)}
.faq-item p{padding:0 40px 24px 0;opacity:.78;font-size:.98rem}

/* ---------- galerie (bloc Galerie natif) ---------- */
.galerie.wp-block-gallery{display:grid!important;grid-template-columns:repeat(3,1fr);grid-auto-rows:260px;gap:16px!important;margin:0}
.galerie.wp-block-gallery .wp-block-image{width:auto!important;height:100%;margin:0!important;position:relative;border-radius:6px;overflow:hidden}
.galerie.wp-block-gallery .wp-block-image:first-child{grid-column:span 2;grid-row:span 2}
.galerie.wp-block-gallery .wp-block-image:last-child{grid-column:span 2}
.galerie.wp-block-gallery .wp-block-image img{width:100%!important;height:100%!important;object-fit:cover}
.galerie.wp-block-gallery .wp-block-image figcaption{position:absolute;left:0;right:0;bottom:0;margin:0;padding:36px 16px 14px;background:linear-gradient(0deg,rgba(19,16,13,.75),transparent);color:#fff;font-size:.82rem;text-align:left;opacity:0;transition:opacity .2s}
.galerie.wp-block-gallery .wp-block-image:hover figcaption,.galerie.wp-block-gallery .wp-block-image:focus-within figcaption{opacity:1}
@media (max-width:760px){.galerie.wp-block-gallery{grid-template-columns:1fr 1fr;grid-auto-rows:180px}.galerie.wp-block-gallery .wp-block-image figcaption{opacity:1}}

/* ---------- contact ---------- */
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.contact-card{background:var(--card);border:1px solid var(--border);border-radius:6px;padding:30px;display:flex;flex-direction:column;gap:10px}
.contact-card .eyebrow{margin-bottom:0}
.contact-card h3{font-size:1.2rem}
.contact-value{font-family:var(--serif);font-size:1.1rem;color:var(--earth-dark)}
.contact-value a{text-decoration:none}
.contact-card p:last-child{font-size:.9rem;opacity:.75}
.contact-cta{margin-top:36px;justify-content:center}
@media (max-width:760px){.contact-grid{grid-template-columns:1fr}}

/* ---------- cartes d'articles (boucle de requête native) ---------- */
.post-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.post-grid > li{margin:0;display:flex}
.post-card{background:var(--card);border:1px solid var(--border);border-radius:8px;overflow:hidden;display:flex;flex-direction:column;width:100%;transition:transform .2s,box-shadow .2s}
.post-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px -18px rgba(42,35,32,.35)}
.post-card-media{margin:0;aspect-ratio:16/10;overflow:hidden}
.post-card-media a,.post-card-media img{display:block;width:100%;height:100%!important;object-fit:cover}
.post-card-body{padding:22px 24px 26px;display:flex;flex-direction:column;gap:10px;flex:1}
.post-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.76rem}
.post-tag a,.post-tag{color:var(--leaf);text-transform:uppercase;letter-spacing:.1em;font-weight:600;text-decoration:none;font-size:.72rem}
.post-tag .wp-block-post-terms__separator{color:var(--border)}
.post-date{opacity:.6}
.post-card-title{font-size:1.15rem;line-height:1.3}
.post-card-title a{text-decoration:none}
.post-card-title a:hover{color:var(--earth-dark)}
.post-card-excerpt{margin:0}
.post-card-excerpt p{font-size:.9rem;opacity:.75;line-height:1.6}
.post-card-excerpt .wp-block-post-excerpt__more-text{display:none}
@media (max-width:900px){.post-grid{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.post-grid{grid-template-columns:1fr}}

/* filtres de catégories (bloc Catégories natif) */
.cat-filter{list-style:none;margin:0 0 36px;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.cat-filter li{margin:0}
.cat-filter a{display:inline-block;padding:8px 16px;border:1.5px solid var(--border);border-radius:20px;background:var(--card);text-decoration:none;font-size:.85rem}
.cat-filter a:hover,.cat-filter .current-cat a{border-color:var(--leaf);background:var(--leaf);color:#fff}

/* pagination */
.pagination{margin-top:48px;display:flex;justify-content:center;align-items:center;gap:8px;font-size:.9rem}
.pagination a,.pagination .page-numbers{display:inline-flex;min-width:40px;height:40px;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--border);border-radius:3px;text-decoration:none;background:var(--card)}
.pagination .page-numbers.current{background:var(--ink);color:var(--sand);border-color:var(--ink)}
.pagination .page-numbers.dots{border:0;background:none}

/* ---------- article ---------- */
.post-hero{background:var(--sand-2);border-bottom:1px solid var(--border);padding-block:64px 120px;text-align:center}
.post-hero .post-meta{justify-content:center;margin-bottom:18px}
.post-hero h1{font-size:clamp(1.9rem,4.2vw,2.7rem);line-height:1.15;max-width:22ch;margin-inline:auto}
.post-hero .post-date{margin-top:18px;font-size:.88rem}
.post-cover{max-width:960px;margin:-84px auto 0;padding-inline:24px}
.post-cover img{width:100%;aspect-ratio:16/9;height:auto!important;object-fit:cover;border-radius:6px}
.post-body{padding-block:56px 76px}
.post-back{max-width:720px;margin:48px auto 0;padding-top:28px;border-top:1px solid var(--border)}
.post-back a{color:var(--earth-dark);font-weight:500;text-decoration:none}

:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--earth);outline-offset:3px;border-radius:3px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
