/*
Theme Name: GARDE Madagascar
Theme URI: https://gardemadagascar.org/
Author: GARDE Madagascar
Description: Thème à blocs pour GARDE Madagascar : sept pages éditables et identité visuelle de l’association.
Version: 2.4.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: garde-madagascar
*/

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --green: #079739;
  --green-dark: #056b2c;
  --green-soft: #eaf9ed;
  --blue: #1389ef;
  --yellow: #ffb714;
  --red: #ff3658;
  --ink: #163526;
  --muted: #5d7167;
  --cream: #fffaf0;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 90, 42, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  line-height: 1.68;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .7rem 1rem; border-radius: 12px; color: #fff; background: var(--green-dark); }
.skip-link:focus { top: 1rem; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.eyebrow { margin: 0 0 .7rem; color: var(--green-dark); font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: "Baloo 2", sans-serif; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.55rem, 7vw, 5.3rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.35rem); }
h3 { font-size: 1.45rem; }
p { margin: .65rem 0 0; }
.lead { max-width: 68ch; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.25rem); }
.section { padding: 88px 0; }
.section-soft { background: var(--green-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.section-head p { max-width: 55ch; color: var(--muted); }

.language-bar { background: #0e3a26; color: #fff; }
.language-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem .75rem; min-height: 40px; padding-block: .2rem; }
.language-links, .social-links { display: flex; align-items: center; gap: .25rem; }
.language-links { flex-wrap: wrap; }
.language-links a { display: inline-flex; align-items: center; min-height: 32px; padding: .25rem .75rem; border-radius: 7px; color: rgba(255,255,255,.82); font-size: .84rem; font-weight: 700; text-decoration: none; }
.language-links a:hover, .language-links a:focus-visible { color: #fff; text-decoration: underline; }
.language-links a[aria-current="page"] { color: #0e3a26; background: #ffcf53; }
.social-links a { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 7px; color: #fff; text-decoration: none; }
.social-links a:hover, .social-links a:focus-visible { color: #0e3a26; background: #ffcf53; }
.social-links a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.social-links svg { display: block; width: 19px; height: 19px; fill: currentColor; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(7,151,57,.13); background: rgba(255,250,240,.94); backdrop-filter: blur(14px); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-family: "Baloo 2", sans-serif; font-weight: 800; line-height: 1; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { display: grid; font-size: 1.12rem; }
.brand small { color: var(--green); font-family: "Nunito", sans-serif; font-size: .68rem; letter-spacing: .12em; }
.nav-links { display: flex; align-items: center; gap: 1.05rem; }
.nav-links a { border-radius: 8px; color: #355446; font-size: .9rem; font-weight: 800; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green); }
.nav-donate { padding: .7rem 1rem; color: #fff !important; background: var(--red); box-shadow: 0 9px 20px rgba(255,54,88,.24); }
.menu-toggle { display: none; border: 0; border-radius: 14px; padding: .75rem; color: var(--ink); background: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,.08); cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 3px; margin: 4px 0; border-radius: 2px; background: currentColor; }

.hero { position: relative; overflow: hidden; padding: 78px 0 92px; background: linear-gradient(140deg, #fffdf7 0%, #eaf9ed 58%, #fff3cd 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; opacity: .17; }
.hero::before { width: 340px; height: 340px; right: -100px; top: -120px; background: var(--blue); }
.hero::after { width: 270px; height: 270px; left: -100px; bottom: -150px; background: var(--yellow); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 4rem; }
.hero h1 span { color: var(--green); }
.hero-copy .lead { margin-top: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: 999px; padding: .78rem 1.35rem; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--green); box-shadow: 0 12px 25px rgba(7,151,57,.25); }
.btn-secondary { border: 2px solid rgba(7,151,57,.18); color: var(--green-dark); background: #fff; }
.btn-red { color: #fff; background: var(--red); box-shadow: 0 12px 25px rgba(255,54,88,.23); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.logo-orbit { display: grid; width: min(390px, 100%); aspect-ratio: 1; place-items: center; border: 14px solid rgba(255,255,255,.72); border-radius: 50%; background: #fff; box-shadow: var(--shadow); transform: rotate(2deg); }
.logo-orbit img { width: 84%; }
.bubble { position: absolute; display: grid; width: 68px; height: 68px; place-items: center; border: 5px solid #fff; border-radius: 50%; color: #fff; font-size: 1.55rem; font-weight: 900; box-shadow: 0 10px 25px rgba(0,0,0,.15); }
.bubble.one { left: 0; top: 20%; background: var(--blue); }
.bubble.two { right: 1%; top: 7%; background: var(--red); }
.bubble.three { right: 0; bottom: 12%; background: var(--yellow); }

.trust-strip { position: relative; z-index: 2; margin-top: -32px; }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border-radius: 24px; background: rgba(7,151,57,.12); box-shadow: var(--shadow); }
.trust-item { padding: 1.2rem 1.4rem; background: #fff; text-align: center; }
.trust-item strong { display: block; color: var(--green-dark); font-family: "Baloo 2"; font-size: 1.15rem; }
.trust-item span { color: var(--muted); font-size: .92rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { position: relative; overflow: hidden; min-height: 100%; border: 1px solid rgba(7,151,57,.1); border-radius: var(--radius); padding: 1.65rem; background: #fff; box-shadow: 0 10px 28px rgba(22,53,38,.06); }
.card::after { content: ""; position: absolute; width: 82px; height: 82px; right: -32px; bottom: -34px; border-radius: 50%; background: var(--accent, var(--green)); opacity: .1; }
.card-icon { display: grid; width: 54px; height: 54px; margin-bottom: 1.2rem; place-items: center; border-radius: 17px; color: #fff; background: var(--accent, var(--green)); font-size: 1.5rem; }
.card p { color: var(--muted); }
.card ul { padding-left: 1.15rem; color: var(--muted); }
.card li { margin: .25rem 0; }
.card.blue { --accent: var(--blue); }
.card.yellow { --accent: var(--yellow); }
.card.red { --accent: var(--red); }
.card.green { --accent: var(--green); }

.vision { overflow: hidden; border-radius: 36px; padding: clamp(2rem, 6vw, 4.6rem); color: #fff; background: var(--green-dark); box-shadow: var(--shadow); }
.vision p { max-width: 46ch; color: rgba(255,255,255,.82); }
.vision-words { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.vision-words span { border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: .55rem .95rem; color: var(--ink); background: var(--yellow); font-weight: 900; }
.vision-link { display: inline-block; margin-top: 1.7rem; color: #fff; font-weight: 900; text-underline-offset: .2em; }
.vision-link:hover { color: var(--yellow); }

.page-hero { padding: 68px 0 72px; background: linear-gradient(135deg, var(--green-soft), #fff7d9); }
.page-hero .container { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.page-hero h1 { max-width: 13ch; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-hero .lead { max-width: 62ch; }
.mini-logo { width: 145px; filter: drop-shadow(0 14px 18px rgba(7,151,57,.15)); }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
.story-panel { border-radius: var(--radius); padding: 2rem; background: #fff; box-shadow: var(--shadow); }
.story-panel.highlight { color: #fff; background: var(--green-dark); }
.story-panel.highlight p { color: rgba(255,255,255,.82); }
.quote { margin: 1.1rem 0 0; color: var(--green-dark); font-family: "Baloo 2"; font-size: 1.6rem; font-weight: 800; line-height: 1.25; }
.manifesto { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
#notre-vision { scroll-margin-top: 82px; }
.manifesto-heading { position: sticky; top: 112px; }
.manifesto-heading h2 { max-width: 13ch; }
.manifesto-heading > p:last-child { max-width: 30ch; color: var(--green-dark); font-weight: 800; }
.manifesto-body { border-left: 5px solid var(--green); padding-left: clamp(1.2rem, 3vw, 2.5rem); }
.manifesto-body p { margin: 0 0 1.3rem; color: #2a4637; font-size: 1.05rem; line-height: 1.8; }
.manifesto-body .manifesto-final { margin: 2rem 0 0; color: var(--green-dark); font-family: "Baloo 2", sans-serif; font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800; line-height: 1.25; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.value { border-top: 7px solid var(--accent, var(--green)); border-radius: 22px; padding: 1.4rem; background: #fff; box-shadow: 0 9px 25px rgba(22,53,38,.06); }
.value p { color: var(--muted); }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; counter-reset: process; }
.process div { position: relative; border-radius: 20px; padding: 1.35rem 1rem; text-align: center; background: #fff; box-shadow: 0 9px 25px rgba(22,53,38,.06); font-weight: 900; }
.process div::before { counter-increment: process; content: counter(process); display: grid; width: 34px; height: 34px; margin: 0 auto .65rem; place-items: center; border-radius: 50%; color: #fff; background: var(--green); }

.program { display: grid; grid-template-columns: 86px 1fr; gap: 1.3rem; border-radius: 30px; padding: 2rem; background: #fff; box-shadow: var(--shadow); }
.program + .program { margin-top: 1.2rem; }
.program-icon { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 22px; color: #fff; background: var(--accent, var(--green)); font-size: 2rem; }
.program h2 { font-size: 2rem; }
.program .tagline { color: var(--green-dark); font-weight: 900; }
.program-purpose { max-width: 78ch; margin-top: .65rem; color: var(--muted); }
.check-list { columns: 2; padding-left: 1.2rem; color: var(--muted); }
.check-list li { break-inside: avoid; margin-bottom: .32rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { border-radius: 24px; padding: 1.6rem; background: #fff; box-shadow: 0 9px 25px rgba(22,53,38,.06); }
.step-number { display: grid; width: 46px; height: 46px; margin-bottom: 1rem; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-family: "Baloo 2"; font-size: 1.35rem; font-weight: 800; }
.privacy-note { border-left: 8px solid var(--yellow); border-radius: 22px; padding: 1.5rem 1.7rem; background: #fff; box-shadow: var(--shadow); }

.news-feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: center; border-radius: 32px; padding: 2rem; background: #fff; box-shadow: var(--shadow); }
.news-art { display: grid; min-height: 290px; place-items: center; border-radius: 26px; color: #fff; background: linear-gradient(145deg, var(--blue), var(--green)); font-size: 5rem; }
.empty-news { padding: 2rem 0 .5rem; color: var(--muted); }

.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.support-card { border-radius: 28px; padding: 2rem; background: #fff; box-shadow: var(--shadow); }
.support-card.featured { color: #fff; background: var(--green-dark); }
.support-card.featured p, .support-card.featured li { color: rgba(255,255,255,.82); }
.support-card ul { padding-left: 1.2rem; color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; }
.contact-aside { border-radius: 30px; padding: 2rem; color: #fff; background: var(--green-dark); }
.contact-aside ul { padding-left: 1.15rem; color: rgba(255,255,255,.84); }
.contact-aside a { color: var(--yellow); font-weight: 900; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-radius: 30px; padding: 2rem; background: #fff; box-shadow: var(--shadow); }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 900; }
.field input, .field select, .field textarea { width: 100%; border: 2px solid #dce9df; border-radius: 15px; padding: .8rem .9rem; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(19,137,239,.18); border-color: var(--blue); }
.field textarea { min-height: 145px; resize: vertical; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.form-status { grid-column: 1 / -1; display: none; border-radius: 14px; padding: .8rem 1rem; color: var(--green-dark); background: var(--green-soft); font-weight: 800; }
.form-status.visible { display: block; }

.cta { padding: 70px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; overflow: hidden; border-radius: 34px; padding: clamp(2rem,5vw,4rem); color: #fff; background: linear-gradient(120deg, var(--green-dark), var(--green)); }
.cta-inner p { max-width: 55ch; color: rgba(255,255,255,.82); }
.cta-inner .btn { flex: 0 0 auto; }

.site-footer { padding: 56px 0 24px; color: rgba(255,255,255,.78); background: #092c1c; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .8fr 1.35fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; color: #fff; font-family: "Baloo 2"; font-size: 1.35rem; font-weight: 800; }
.footer-brand img { width: 74px; }
.footer-links { display: grid; align-content: start; gap: .48rem; }
.footer-links strong { margin-bottom: .4rem; color: #fff; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-utility { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2.4rem; border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.1rem; }
.footer-utility .language-links { gap: .15rem; }
.footer-utility .language-links a { min-height: 36px; }
.footer-bottom { margin-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; font-size: .88rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 82px 0 auto; display: none; max-height: calc(100vh - 82px); overflow: auto; padding: 1rem 20px 1.5rem; background: #fffaf0; box-shadow: 0 18px 30px rgba(0,0,0,.1); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: .7rem; font-size: 1rem; }
  .nav-donate { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { min-height: 340px; }
  .logo-orbit { width: 320px; }
  .card-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-heading { position: static; }
  .manifesto-heading h2 { max-width: none; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .language-inner { align-items: flex-start; flex-direction: column; gap: .15rem; padding-block: .35rem; }
  .language-links { width: 100%; gap: .15rem; }
  .language-links a { min-height: 30px; padding-inline: .55rem; }
  .section { padding: 64px 0; }
  .section-head, .cta-inner { align-items: flex-start; flex-direction: column; }
  .brand span { display: none; }
  .brand img { width: 52px; height: 52px; }
  .hero { padding-top: 52px; }
  .hero-visual { min-height: 290px; }
  .logo-orbit { width: 255px; border-width: 9px; }
  .bubble { width: 52px; height: 52px; border-width: 3px; font-size: 1.15rem; }
  .trust-inner { grid-template-columns: 1fr; }
  .card-grid, .content-grid, .values-grid, .support-grid, .news-feature, .footer-grid { grid-template-columns: 1fr; }
  .page-hero .container { grid-template-columns: 1fr; }
  .mini-logo { display: none; }
  .program { grid-template-columns: 1fr; padding: 1.45rem; }
  .check-list { columns: 1; }
  .steps, .process { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 1.35rem; }
  .field.full, .form-note, .form-status { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* Photographies fournies pour présenter les domaines d'action. */
.hero-visual { min-height: 420px; }
.hero-photo, .page-photo { position: relative; overflow: hidden; margin: 0; border: 8px solid #fff; border-radius: 34px; background: #dff2e4; box-shadow: 0 22px 55px rgba(7,72,38,.2); }
.hero-photo { width: min(100%, 440px); aspect-ratio: 1.12; transform: rotate(1.5deg); }
.hero-photo img, .page-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { object-position: center; }
.hero-photo figcaption, .page-photo figcaption { position: absolute; right: .7rem; bottom: .7rem; border-radius: 999px; padding: .25rem .65rem; color: #fff; background: rgba(9,44,28,.78); font-size: .72rem; line-height: 1.3; }
.page-hero.has-photo .container { grid-template-columns: minmax(0,1fr) minmax(230px,320px); }
.page-photo { width: 100%; aspect-ratio: 4/3; transform: rotate(1deg); }
.page-hero.has-photo .lead { max-width: 60ch; }
@media (max-width: 700px) {
  .hero-visual { min-height: auto; }
  .hero-photo { width: min(100%, 430px); aspect-ratio: 4/3; }
  .page-hero.has-photo .container { grid-template-columns: 1fr; }
  .page-photo { max-width: 420px; aspect-ratio: 4/3; }
}


/* WordPress block wrappers, navigation and editing controls. */
.wp-site-blocks > *, .wp-block-post-content > *, .wp-block-group > * { margin-block-start: 0; }
.wp-block-post-content { margin: 0; }
.wp-block-group.container { max-width: none; }
.wp-block-site-logo { margin: 0; flex: 0 0 auto; }
.wp-block-site-logo img { width: 58px; height: 58px; object-fit: contain; }
.brand-block { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.brand-text { display: grid; align-content: center; }
.brand-text a { display: grid; color: var(--ink); text-decoration: none; }
.brand-text strong { font-family: "Baloo 2",sans-serif; font-size: 1.12rem; font-weight: 800; line-height: 1.1; }
.brand-text small { margin-top: .12rem; color: var(--green); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-text .wp-block-site-title { margin: 0; font-family: "Baloo 2",sans-serif; font-size: 1.12rem; font-weight: 800; line-height: 1.1; }
.brand-text .wp-block-site-title a { text-decoration: none; }
.brand-text .wp-block-site-tagline { margin: .12rem 0 0; color: var(--green); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.wp-block-navigation.nav-links { margin: 0; gap: 1.05rem; }
.wp-block-navigation.nav-links .wp-block-navigation-item__content { border-radius: 8px; color: #355446; font-size: .9rem; font-weight: 800; text-decoration: none; }
.wp-block-navigation.nav-links .wp-block-navigation-item__content:hover { color: var(--green); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; background: var(--cream); color: var(--ink); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content a { font-size: 1.05rem; }
.wp-block-image.mini-logo { width: 145px; margin: 0; }
.wp-block-image.mini-logo img { width: 100%; height: auto; }
.logo-orbit .wp-block-image { width: 84%; margin: 0; }
.logo-orbit .wp-block-image img { width: 100%; height: auto; }
.trust-item h3 { color: var(--green-dark); font-size: 1.15rem; }
.trust-item p { color: var(--muted); font-size: .92rem; }
.card-icon, .program-icon, .step-number, .news-art, .bubble { margin-top: 0; line-height: 1; }
.vision-words .vision-word { margin: 0; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: .55rem .95rem; color: var(--ink); background: var(--yellow); font-weight: 900; }
.vision .eyebrow, .cta .eyebrow, .story-panel.highlight .eyebrow, .contact-aside .eyebrow, .support-card.featured .eyebrow { color: #ffcf53; }
.vision-link-wrap { margin-top: 1.7rem; }
.vision-link-wrap a { color: #fff; font-weight: 900; text-underline-offset: .2em; }
.process .process-item { position: relative; margin: 0; border-radius: 20px; padding: 1.35rem 1rem; text-align: center; background: #fff; box-shadow: 0 9px 25px rgba(22,53,38,.06); font-weight: 900; }
.process .process-item::before { counter-increment: process; content: counter(process); display: grid; width: 34px; height: 34px; margin: 0 auto .65rem; place-items: center; border-radius: 50%; color: #fff; background: var(--green); }
.program.accent-blue, .value.accent-blue { --accent: var(--blue); }
.program.accent-red, .value.accent-red { --accent: var(--red); }
.program.accent-yellow, .value.accent-yellow { --accent: var(--yellow); }
.program.accent-green, .value.accent-green { --accent: var(--green); }
.support-card.wide { grid-column: 1 / -1; }
.wp-block-buttons.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.wp-block-button.garde-btn .wp-block-button__link { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border-radius: 999px; padding: .78rem 1.35rem; font-weight: 900; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.wp-block-button.garde-btn .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.garde-btn-primary .wp-block-button__link { color: #fff; background: var(--green); box-shadow: 0 12px 25px rgba(7,151,57,.25); }
.wp-block-button.garde-btn-secondary .wp-block-button__link { border: 2px solid rgba(7,151,57,.18); color: var(--green-dark); background: #fff; }
.wp-block-button.garde-btn-red .wp-block-button__link { color: #fff; background: var(--red); box-shadow: 0 12px 25px rgba(255,54,88,.23); }
.cta-inner .wp-block-buttons { flex: 0 0 auto; }
.contact-form .form-status { display: none; }
.contact-form .form-status.visible { display: block; }
.contact-form .form-status.error { color: #8b1730; background: #ffe8ed; }
.garde-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer .footer-grid { align-items: start; }
.site-footer .footer-links .wp-block-page-list { display: grid; gap: .48rem; padding: 0; margin: 0; list-style: none; }
.site-footer .footer-links .wp-block-pages-list__item { margin: 0; }
.site-footer .footer-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer .footer-links a:hover { color: var(--yellow); }
@media (max-width: 980px) {
  .wp-block-navigation.nav-links { position: static; display: flex; max-height: none; padding: 0; background: transparent; box-shadow: none; }
}
@media (max-width: 700px) {
  .brand-text { display: none; }
  .wp-block-image.mini-logo { display: none; }
  .support-card.wide { grid-column: auto; }
}

/* Contact details displayed in the global footer on every page */
.footer-contact span { color: rgba(255,255,255,.78); line-height: 1.6; }
.footer-contact a { overflow-wrap: anywhere; }


/* Bureau de GARDE Madagascar */
.garde-board-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;margin-top:2rem}
.garde-board-card{overflow:hidden;border:1px solid rgba(7,151,57,.12);border-radius:24px;padding:0 0 1.35rem;background:#fff;box-shadow:0 10px 28px rgba(22,53,38,.07);text-align:center}
.garde-board-card figure{height:300px;margin:0;overflow:hidden;background:#edf4ef}
.garde-board-card figure img{width:100%;height:100%;object-fit:cover;object-position:center 25%;display:block}
.garde-board-card h3{margin:.35rem 1rem 0;font-size:1.12rem;line-height:1.35}
.garde-board-role{display:inline-block;margin:1rem 0 0;padding:.35rem .8rem;border-radius:999px;color:#087b35;background:#e8f7ec;font-size:.82rem;font-weight:900;letter-spacing:.02em}
.garde-board-note{margin-top:1.4rem;padding:1rem 1.25rem;border-left:4px solid var(--yellow);border-radius:12px;background:#fff}
.president-word-panel{max-width:900px;margin:0 auto;padding:clamp(1.6rem,4vw,3rem);border-radius:28px;color:#fff;background:var(--green-dark);box-shadow:var(--shadow)}
.president-word-panel h2{max-width:22ch;color:#fff;font-size:clamp(1.8rem,4vw,2.7rem)}
.president-word-panel>p:not(.eyebrow):not(.president-signature){color:rgba(255,255,255,.9);font-size:1.05rem;line-height:1.8}
.president-word-panel .eyebrow{color:var(--yellow)}
.president-signature{margin-top:1.4rem;color:#fff;line-height:1.6}
@media(max-width:800px){.garde-board-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.garde-board-card figure{height:260px}}
@media(max-width:520px){.garde-board-grid{grid-template-columns:1fr}.garde-board-card figure{height:340px}}

/* Bureau : portraits buste compacts pour une page plus légère */
.garde-board-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.5rem}
.garde-board-card{padding:1.15rem .75rem 1.1rem;border-radius:18px;box-shadow:0 6px 18px rgba(22,53,38,.055)}
.garde-board-card figure{width:132px;height:132px;margin:0 auto .25rem;overflow:hidden;border-radius:50%;background:#edf4ef}
.garde-board-card figure img{width:100%;height:100%;object-fit:cover;object-position:center 22%;display:block}
.garde-board-role{margin:.65rem 0 0;padding:.3rem .72rem;font-size:.78rem}
.garde-board-card h3{margin:.35rem .35rem 0;font-size:1rem;line-height:1.3}
.garde-board-note{margin-top:1rem;padding:.8rem 1rem}
@media(max-width:800px){.garde-board-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.garde-board-card figure{width:118px;height:118px}}
@media(max-width:520px){.garde-board-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.garde-board-card{padding:.9rem .45rem .85rem;border-radius:16px}.garde-board-card figure{width:100px;height:100px}.garde-board-card h3{font-size:.9rem}.garde-board-role{font-size:.72rem;padding:.28rem .6rem}}


/* Portraits compacts du bureau — règles finales */
.garde-board-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.5rem}
.garde-board-card{min-width:0;padding:1rem .65rem;border:1px solid rgba(7,151,57,.12);border-radius:18px;background:#fff;text-align:center;box-shadow:0 6px 18px rgba(22,53,38,.055)}
.garde-board-card figure{width:116px;height:116px;margin:0 auto .25rem;overflow:hidden;border-radius:50%;background:#edf4ef}
.garde-board-card figure img{width:100%;height:100%;object-fit:cover;object-position:center 22%;display:block}
.garde-board-role{display:inline-block;margin:.6rem 0 0;padding:.28rem .65rem;border-radius:999px;color:#087b35;background:#e8f7ec;font-size:.76rem;font-weight:900}
.garde-board-card h3{margin:.35rem .25rem 0;font-size:.96rem;line-height:1.3;overflow-wrap:anywhere}
.garde-board-note{margin-top:1rem;padding:.8rem 1rem;border-left:4px solid var(--yellow);border-radius:12px;background:#fff}
@media(max-width:800px){.garde-board-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.garde-board-card figure{width:108px;height:108px}}
@media(max-width:520px){.garde-board-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.garde-board-card{padding:.85rem .4rem}.garde-board-card figure{width:92px;height:92px}.garde-board-card h3{font-size:.88rem}}
