/* ==========================================================================
   ComunesPyr – feuille de styles principale
   Couleurs du logo : vert #264639 · olive #748052 · rouge tuile #b94523
   ========================================================================== */

@font-face { font-family: Nunito; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(../fonts/nunito.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(../fonts/nunito-sans.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: italic; font-weight: 200 1000; font-display: swap; src: url(../fonts/nunito-sans-italic.woff2) format("woff2"); }

:root {
	--cp-green: #264639;
	--cp-green-dark: #1b332a;
	--cp-olive: #748052;
	--cp-olive-light: #d8e3b8;
	--cp-rust: #b94523;
	--cp-paper: #f6f3ea;
	--cp-paper-2: #eceee2;
	--cp-ink: #2b2b2b;
	--cp-muted: #5b6a60;
	--cp-line: #d9d3bd;
	--cp-head: Nunito, "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--cp-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--cp-wrap: 1200px;
	--cp-gutter: 40px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--cp-body); font-size: 17px; line-height: 1.65; color: var(--cp-ink); background: #fff; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--cp-green); }
a:hover { color: var(--cp-rust); }
h1, h2, h3, h4, h5, h6 { font-family: var(--cp-head); color: var(--cp-green); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.6rem; font-weight: 800; }
h2 { font-size: 1.9rem; font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cp-rust); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.cp-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 6px; }
.cp-skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.cp-header { position: relative; z-index: 50; background: #fff; }
.cp-header__inner { max-width: var(--cp-wrap); margin: 0 auto; padding: 16px var(--cp-gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cp-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.cp-brand__home { display: block; line-height: 0; }
.cp-brand__logo { width: 215px; }
.cp-brand__poctefa { width: 290px; display: block; }
.cp-home .cp-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }

.cp-nav { display: flex; align-items: center; gap: 10px; }
.cp-menu, .cp-langs { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.cp-menu > li { position: relative; }
.cp-menu > li > a { display: block; padding: 18px 13px; font-family: var(--cp-body); font-weight: 700; font-size: 16px; color: var(--cp-green); text-decoration: none; }
.cp-menu > li > a:hover, .cp-menu > .current-menu-item > a, .cp-menu > .current-menu-ancestor > a, .cp-menu > .current-menu-parent > a { color: var(--cp-rust); }
.cp-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.cp-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px 0; background: #fff; box-shadow: 0 10px 30px rgb(38 70 57 / .15); border-radius: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.cp-menu li:hover > .sub-menu, .cp-menu li:focus-within > .sub-menu, .cp-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.cp-menu .sub-menu a { display: block; padding: 9px 20px; font-size: 14px; font-weight: 700; color: var(--cp-green); text-decoration: none; }
.cp-menu .sub-menu a:hover, .cp-menu .sub-menu .current-menu-item > a { color: var(--cp-rust); background: var(--cp-paper); }
.cp-langs { gap: 2px; margin-left: 10px; }
.cp-langs a { display: block; padding: 6px 5px; font-weight: 700; font-size: 16px; color: var(--cp-green); text-decoration: none; }
.cp-langs .is-current a { color: var(--cp-rust); }

.cp-menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; position: relative; }
.cp-menu-toggle__bars, .cp-menu-toggle__bars::before, .cp-menu-toggle__bars::after { position: absolute; left: 11px; width: 24px; height: 2.5px; background: var(--cp-green); border-radius: 2px; content: ""; }
.cp-menu-toggle__bars { top: 22px; }
.cp-menu-toggle__bars::before { top: -8px; left: 0; }
.cp-menu-toggle__bars::after { top: 8px; left: 0; }

/* Panneau du menu mobile */
.cp-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 200; background: var(--cp-green); color: #fff; padding: 70px 28px 28px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
.cp-panel[hidden] { display: block; visibility: hidden; }
.cp-panel.is-open { transform: none; visibility: visible; }
.cp-panel__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.cp-panel__menu { list-style: none; margin: 0; padding: 0; }
.cp-panel__menu a { display: block; padding: 10px 0; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
.cp-panel__menu .current-menu-item > a, .cp-panel__menu a:hover { color: #f2b8a4; }
.cp-panel__menu .sub-menu { list-style: none; margin: 0 0 6px; padding: 0 0 0 14px; border-left: 2px solid rgb(255 255 255 / .2); }
.cp-panel__menu .sub-menu a { font-size: 15px; padding: 7px 0; }
.cp-langs--panel { margin: 22px 0 0; gap: 10px; }
.cp-langs--panel a { color: #fff; font-size: 16px; }
.cp-langs--panel .is-current a { color: #f2b8a4; }
.cp-panel-overlay { position: fixed; inset: 0; z-index: 150; background: rgb(20 35 28 / .55); }
.cp-panel-overlay[hidden] { display: none; }
body.cp-panel-open { overflow: hidden; }

@media (max-width: 1199px) {
	.cp-brand__logo { width: 160px; }
	.cp-brand__poctefa { width: 215px; }
	.cp-menu > li > a { padding: 16px 7px; font-size: 13.5px; }
	.cp-langs a { font-size: 13.5px; padding: 6px 3px; }
}
@media (max-width: 900px) {
	.cp-brand__poctefa { width: 185px; }
}
@media (max-width: 768px) {
	.cp-header__inner { padding: 12px 20px; }
	.cp-nav { display: none; }
	.cp-menu-toggle { display: block; align-self: flex-start; }
	.cp-brand__logo { width: 150px; }
	.cp-brand__poctefa { width: 205px; }
}

/* ---------- En-têtes avec photo ---------- */
.cp-hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 120px var(--cp-gutter) 100px; background-color: var(--cp-green); color: #fff; text-align: center; overflow: hidden; }
.cp-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--cp-hero-img); background-size: cover; background-position: var(--cp-hero-pos, center); opacity: .85; }
.cp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(38 70 57 / .05), rgb(38 70 57 / .55)); }
.cp-hero__inner { position: relative; z-index: 1; max-width: 900px; }
.cp-hero__eyebrow { margin: 0 0 6px; font-weight: 700; font-size: 14px; letter-spacing: .25em; text-transform: uppercase; }
.cp-hero__title { margin: 0; color: #fff; font-size: clamp(1.7rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 14px rgb(0 0 0 / .6), 0 0 3px rgb(0 0 0 / .35); }
.cp-hero__eyebrow { text-shadow: 0 2px 10px rgb(0 0 0 / .6); }

/* En-tête « photo entière » (champ cp_hero_full) : toute la largeur de la photo, titre en bas */
.cp-hero.cp-hero--full { width: 100%; aspect-ratio: 1600 / 630; min-height: 0; max-height: 620px; padding: 0 20px 3%; align-items: flex-end; }
.cp-hero--full::before { opacity: .93; }
.cp-hero--full::after { background: linear-gradient(0deg, rgb(38 70 57 / 0), rgb(38 70 57 / .35)); }
@media (max-width: 767px) { .cp-hero.cp-hero--full { min-height: 0; padding: 0 16px 3%; } .cp-hero--full .cp-hero__title { font-size: 22px; } }

/* Page d'accueil : grande photo fixe, en-tête transparent au-dessus */
.cp-home-hero { position: relative; height: max(560px, 47vw); display: flex; align-items: center; justify-content: center; padding: 260px var(--cp-gutter) 80px; text-align: center; overflow: hidden; }
.cp-home-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .85) 0, rgb(255 255 255 / .6) 100px, rgb(0 0 0 / .22) 230px, rgb(0 0 0 / .28) 100%), var(--cp-hero-img); background-attachment: scroll, fixed; background-size: 100% 100%, auto max(596px, 50vw); background-position: center top, center top; }
.cp-home-hero__inner { position: relative; z-index: 1; max-width: 860px; }
.cp-home-hero__title { margin: 0; color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800; text-shadow: 0 2px 14px rgb(0 0 0 / .5); }
@media (max-width: 767px) {
	.cp-home-hero { height: auto; min-height: 560px; padding-top: 300px; }
	.cp-home-hero::before { background-attachment: scroll, scroll; background-size: 100% 100%, cover; background-position: center top, 22% 100%; }
	.cp-hero { min-height: 300px; padding: 70px 20px 60px; }
	.cp-hero__title { font-size: 27px; }
}

/* ---------- Contenu des pages ---------- */
.cp-content { padding: 70px var(--cp-gutter) 90px; }
.cp-content > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.cp-content > .alignwide { max-width: var(--cp-wrap); }
.cp-content > .alignfull { max-width: none; margin-left: calc(-1 * var(--cp-gutter)); margin-right: calc(-1 * var(--cp-gutter)); }
.cp-content--narrow > * { max-width: 700px; }
.cp-content--home { padding-top: 0; padding-bottom: 0; }
.cp-content > :first-child { margin-top: 0; }
@media (max-width: 767px) {
	:root { --cp-gutter: 20px; }
	.cp-content { padding: 44px 20px 60px; }
	h1 { font-size: 2rem; }
	h2 { font-size: 1.55rem; }
}

/* Étiquette de section (petites majuscules + icône du logo) */
.cp-label, .is-style-cp-label { display: flex; align-items: center; justify-content: inherit; gap: .45em; margin: 0 0 18px; font-family: var(--cp-head); font-size: 17px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--cp-green); }
.has-text-align-center.is-style-cp-label, .cp-label.has-text-align-center { justify-content: center; }
.cp-label--small { font-size: 13px; }
.cp-icon { display: inline-block; flex: none; height: 1.6em; background-color: currentColor; -webkit-mask: var(--cp-ic) center / contain no-repeat; mask: var(--cp-ic) center / contain no-repeat; }
.cp-icon--pastor { --cp-ic: url(../img/icons/pastor.png); width: .99em; }
.cp-icon--oveja { --cp-ic: url(../img/icons/oveja.png); width: 1.7em; }
.cp-icon--manos { --cp-ic: url(../img/icons/manos.png); width: 2.94em; }
.cp-icon--montanas { --cp-ic: url(../img/icons/montanas.svg); width: 3em; }
.is-style-cp-label.cp-ic-pastor::before, .is-style-cp-label.cp-ic-oveja::before, .is-style-cp-label.cp-ic-manos::before, .is-style-cp-label.cp-ic-montanas::before { content: ""; display: inline-block; height: 1.6em; background-color: currentColor; -webkit-mask: var(--cp-ic) center / contain no-repeat; mask: var(--cp-ic) center / contain no-repeat; }
.is-style-cp-label.cp-ic-pastor::before { --cp-ic: url(../img/icons/pastor.png); width: .99em; }
.is-style-cp-label.cp-ic-oveja::before { --cp-ic: url(../img/icons/oveja.png); width: 1.7em; }
.is-style-cp-label.cp-ic-manos::before { --cp-ic: url(../img/icons/manos.png); width: 2.94em; }
.is-style-cp-label.cp-ic-montanas::before { --cp-ic: url(../img/icons/montanas.svg); width: 3em; }

/* Phrase mise en avant */
.is-style-cp-lead { font-family: var(--cp-head); font-size: 1.55rem; line-height: 1.35; font-weight: 600; color: var(--cp-green); }

/* Sections de couleur (blocs « Groupe » en pleine largeur) */
.cp-section { padding: 80px var(--cp-gutter); }
.cp-section > * { max-width: var(--cp-wrap); margin-left: auto; margin-right: auto; }
.cp-section--paper { background: var(--cp-paper); }
.cp-section--olive { background: var(--cp-olive); color: #fff; }
.cp-section--green { background: var(--cp-green); color: #fff; }
.cp-section--olive h2, .cp-section--olive h3, .cp-section--olive .is-style-cp-label,
.cp-section--green h2, .cp-section--green h3, .cp-section--green .is-style-cp-label { color: #fff; }
@media (max-width: 767px) { .cp-section { padding: 54px 20px; } }

/* Transition « montagnes arrondies » au-dessus d'une section colorée */
.cp-ridge { display: block; width: 100%; height: 70px; fill: currentColor; }
.cp-ridge-top { position: relative; margin-top: 70px !important; }
.cp-ridge-top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 70px; background: inherit; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90 L0 60 C15.7 55.9 69.5 43.6 95 46 C120.5 48.4 154.6 64.8 185 62 C215.4 59.2 263.1 33.9 300 30 C336.9 26.1 359.6 48.9 385 47 C410.4 45.1 434.8 18.6 470 20 C505.2 21.4 562.3 56.3 590 60 C617.7 63.7 641.2 41.4 690 44 C738.8 46.6 750.8 59.7 775 58 C799.2 56.3 875.9 25 905 24 C934.1 23 983.4 48.4 1005 52 C1026.6 55.6 1068.8 35 1090 36 C1111.2 37 1174.8 51 1200 54 L1200 90 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90 L0 60 C15.7 55.9 69.5 43.6 95 46 C120.5 48.4 154.6 64.8 185 62 C215.4 59.2 263.1 33.9 300 30 C336.9 26.1 359.6 48.9 385 47 C410.4 45.1 434.8 18.6 470 20 C505.2 21.4 562.3 56.3 590 60 C617.7 63.7 641.2 41.4 690 44 C738.8 46.6 750.8 59.7 775 58 C799.2 56.3 875.9 25 905 24 C934.1 23 983.4 48.4 1005 52 C1026.6 55.6 1068.8 35 1090 36 C1111.2 37 1174.8 51 1200 54 L1200 90 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
@media (max-width: 767px) { .cp-ridge-top { margin-top: 36px !important; } .cp-ridge-top::before { height: 36px; } }

/* Cartes (actions) */
.cp-cards { gap: 32px !important; }
.cp-card { background: #fff; border-radius: 8px; padding: 12px 12px 22px; box-shadow: 0 6px 24px rgb(0 0 0 / .08); transition: transform .2s, box-shadow .2s; }
.cp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgb(0 0 0 / .14); }
.cp-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.cp-card h3 { margin: 16px 6px 6px; font-size: 1.25rem; }
.cp-card h3 a { color: var(--cp-green); text-decoration: none; }
.cp-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cp-card { position: relative; }
.cp-card p { margin: 0 6px; font-size: 15px; color: var(--cp-ink); }
.cp-section--olive .cp-card p { color: var(--cp-ink); }

/* Fiche du projet */
.cp-fiche { background: var(--cp-green); color: #fff; border-radius: 10px; padding: 34px 34px 30px; }
.cp-fiche h3, .cp-fiche .cp-fiche__title { margin: 0 0 22px; font-family: var(--cp-head); font-size: 14px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--cp-olive-light); }
.cp-fiche p { margin: 0 0 16px; }
.cp-fiche strong { display: block; font-family: var(--cp-head); font-size: 28px; line-height: 1.15; font-weight: 800; }
.cp-fiche small { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.cp-fiche hr { border: 0; border-top: 1px solid rgb(255 255 255 / .2); margin: 20px 0; }

/* Impacts (liste numérotée sur fond vert) */
.cp-impacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 48px; counter-reset: imp; }
.cp-impacts > * { flex: 1 1 280px; max-width: 340px; counter-increment: imp; }
.cp-impacts > *::before { content: counter(imp); display: block; font-family: var(--cp-head); font-size: 46px; line-height: 1; font-weight: 800; color: var(--cp-olive-light); margin-bottom: 12px; }
.cp-impacts h3 { font-size: 18px; color: #fff; padding-top: 12px; border-top: 2px solid var(--cp-rust); margin-bottom: 10px; }
.cp-impacts p { font-size: 15px; line-height: 1.55; opacity: .92; }

/* Listes d'activités (pages « action ») */
.cp-steps { list-style: none; counter-reset: act; padding: 0; margin: 1.4em 0; }
.cp-steps li { counter-increment: act; position: relative; padding-left: 2.4em; margin: 0 0 1em; }
.cp-steps li::before { content: counter(act); position: absolute; left: 0; top: -.1em; font-family: var(--cp-head); font-weight: 800; font-size: 1.7em; line-height: 1.2; color: var(--cp-green); }
.cp-steps strong { color: var(--cp-green); }
@media (min-width: 782px) { .cp-sticky { position: sticky; top: 40px; } }

/* Partenaires */
.cp-partner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding: 34px 0; border-top: 1px solid var(--cp-line); }
.cp-partner:last-child { border-bottom: 1px solid var(--cp-line); }
.cp-partner figure { margin: 0; display: flex; justify-content: center; }
.cp-partner img { max-height: 110px; width: auto; }
.cp-partner h3 { margin-bottom: 4px; font-size: 20px; }
.cp-partner .cp-partner__country { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cp-rust); }
.cp-partner p { font-size: 15px; }
@media (max-width: 767px) { .cp-partner { grid-template-columns: 1fr; gap: 16px; text-align: center; } }

/* Liens « en savoir plus » */
.cp-link, .is-style-cp-link a { font-weight: 700; color: var(--cp-green); text-decoration: none; border-bottom: 2px solid var(--cp-rust); padding-bottom: 1px; }
.cp-link:hover, .is-style-cp-link a:hover { color: var(--cp-rust); }

/* Boutons */
.wp-block-button__link { background: var(--cp-rust); color: #fff; border-radius: 6px; font-weight: 700; padding: 12px 26px; text-decoration: none; }
.wp-block-button__link:hover { background: #9c3a1d; color: #fff; }

/* Images */
.wp-block-image img { border-radius: 6px; }
.wp-block-image figcaption { font-size: 14px; color: var(--cp-muted); margin-top: 8px; }

/* ---------- Actualités ---------- */
.cp-news-grid { max-width: var(--cp-wrap) !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.cp-news-card__link { display: block; height: 100%; text-decoration: none; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 24px rgb(0 0 0 / .08); transition: transform .2s; }
.cp-news-card__link:hover { transform: translateY(-4px); }
.cp-news-card__img { display: block; aspect-ratio: 4 / 3; background: var(--cp-paper); }
.cp-news-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-news-card__text { display: block; padding: 18px 20px 22px; }
.cp-news-card__date { display: block; font-size: 13px; color: var(--cp-muted); margin-bottom: 4px; }
.cp-news-card__title { display: block; font-family: var(--cp-head); font-weight: 700; font-size: 1.2rem; line-height: 1.3; color: var(--cp-green); }
.cp-article { max-width: 760px; margin: 0 auto; padding: 60px 24px 80px; }
.cp-article__cat { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cp-rust); }
.cp-article__date { margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--cp-muted); }
.cp-article__body > p:first-child { font-size: 21px; line-height: 1.5; font-weight: 600; color: var(--cp-green); }
.cp-article__body h2 { font-size: 24px; margin-top: 38px; }
.cp-article__back { display: inline-block; margin-top: 24px; font-weight: 700; color: var(--cp-green); text-decoration: none; border-bottom: 2px solid var(--cp-rust); }
.cp-empty { color: var(--cp-muted); }
.nav-links { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }

/* ---------- Pied de page ---------- */
.cp-footer { position: relative; margin-top: 70px; background: var(--cp-paper-2); color: var(--cp-green); }
.cp-footer__ridge { position: absolute; left: 0; right: 0; bottom: 100%; height: 46px; color: var(--cp-paper-2); }
.cp-footer__inner { max-width: 1120px; margin: 0 auto; padding: 46px var(--cp-gutter) 22px; }
.cp-footer__grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.cp-footer__logos { display: flex; align-items: center; gap: 26px; }
.cp-footer__poctefa { width: 230px; }
.cp-footer__comunespyr { width: 112px; }
.cp-footer__partners .cp-label { margin-bottom: 8px; }
.cp-footer__partners-wide { display: block; width: 100%; max-width: 1000px; }
.cp-footer__partners-narrow { display: none; }
.cp-footer__feder { max-width: 1120px; margin: 22px auto 0; font-size: 13px; line-height: 1.5; text-align: center; }
.cp-footer__bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgb(38 70 57 / .35); font-size: 14px; }
.cp-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cp-legal li::before { content: "|"; margin-right: 14px; opacity: .5; }
.cp-legal a { color: var(--cp-green); text-decoration: none; }
.cp-legal a:hover { color: var(--cp-rust); }
@media (max-width: 1100px) {
	.cp-footer__grid { grid-template-columns: 1fr; gap: 22px; text-align: center; }
	.cp-footer__logos { justify-content: center; }
	.cp-footer__partners .cp-label { justify-content: center; }
}
@media (max-width: 767px) {
	.cp-footer__inner { padding-top: 30px; }
	.cp-footer__poctefa { width: 190px; }
	.cp-footer__comunespyr { width: 90px; }
	.cp-footer__partners-wide { display: none; }
	.cp-footer__partners-narrow { display: block; }
	.cp-footer__partners-narrow img { display: block; margin: 0 auto 10px; }
}

/* Retour en haut */
.cp-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; background: var(--cp-green); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; opacity: 0; visibility: hidden; transition: opacity .2s; }
.cp-to-top.is-visible { opacity: .85; visibility: visible; }
.cp-to-top:hover { opacity: 1; color: #fff; }

/* ==========================================================================
   Blocs du contenu
   ========================================================================== */
.cp-section--tight { padding-top: 10px; }
.cp-section--intro { padding-bottom: 30px; }
.is-style-cp-intro { font-family: var(--cp-head); font-size: 22px; line-height: 1.45; color: var(--cp-green); max-width: 900px; margin-left: auto !important; margin-right: auto !important; }
.cp-cols-gap { gap: 60px !important; }
@media (max-width: 781px) { .cp-cols-gap { gap: 34px !important; } }

/* Photo large avec fondu vers le haut */
.cp-content > .cp-wide-photo { margin: 0 calc(-1 * var(--cp-gutter)); max-width: none; }
.cp-wide-photo img { display: block; width: 100%; height: clamp(260px, 30vw, 420px); object-fit: cover; object-position: center 62%; border-radius: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }

/* Bloc « ComunesPyr » de l'accueil */
.cp-brand { text-align: center; }
.cp-brand-name { font-family: var(--cp-head); font-weight: 800; font-size: 17px; margin: 0 0 22px; }
.cp-brand-name span:first-child { color: var(--cp-green); }
.cp-brand-name span:nth-child(2) { color: var(--cp-rust); }
.cp-brand-name::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 2px; background: var(--cp-rust); margin: 12px auto 0; }
.cp-brand { position: relative; overflow: hidden; }
.cp-brand::after { content: ""; position: absolute; right: -40px; bottom: -30px; width: 520px; height: 280px; opacity: .06; background-color: var(--cp-green); -webkit-mask: url(../img/icons/montanas.svg) center / contain no-repeat; mask: url(../img/icons/montanas.svg) center / contain no-repeat; pointer-events: none; }
.cp-brand > * { position: relative; z-index: 1; }
@media (max-width: 900px) { .cp-brand::after { width: 300px; height: 160px; } }
.cp-brand .is-style-cp-lead { max-width: 880px; margin: 0 auto 34px; font-size: 30px; line-height: 1.4; }
.cp-pillars { display: flex; justify-content: center; gap: 22px; }
.cp-pillar { width: 56px; height: 56px; border-radius: 50%; background: var(--cp-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.cp-pillar:nth-child(2) { background: var(--cp-olive); }
.cp-pillar:nth-child(3) { background: var(--cp-rust); }
@media (max-width: 767px) { .cp-brand .is-style-cp-lead { font-size: 23px; } .cp-pillar { width: 48px; height: 48px; font-size: 13px; } }

/* Fiche du projet : détails */
.cp-fiche .cp-fiche__title { font-size: 14px; letter-spacing: .15em; text-transform: uppercase; color: var(--cp-olive-light); font-weight: 700; }
.cp-fiche__bar { height: 6px; border-radius: 3px; background: rgb(255 255 255 / .2); margin: -4px 0 8px; overflow: hidden; }
.cp-fiche__bar span { display: block; height: 100%; background: var(--cp-rust); border-radius: 3px; }
.cp-fiche .cp-fiche__note { font-size: 13px; opacity: .85; }
.cp-fiche .wp-block-columns { gap: 20px; margin: 0; }
.cp-fiche .cp-fiche__lead { font-size: 15px; line-height: 1.45; }
.cp-fiche .wp-block-separator { border: 0; border-top: 1px solid rgb(255 255 255 / .2); margin: 18px 0; opacity: 1; }
.cp-fiche strong + br { display: none; }

/* Carte de la zone d'intervention */
.cp-map img { border-radius: 10px; box-shadow: 0 6px 24px rgb(0 0 0 / .1); }

/* Cartes : image cliquable */
.cp-card .wp-block-image { margin: 0; }
.cp-card .wp-block-image a { display: block; }

/* Impacts : les blocs « Groupe » enfants */
.cp-section--green .cp-impacts { max-width: 1120px; margin-top: 26px; }

/* Partenaires */
.cp-partners { padding-top: 0; }
.cp-partners > .cp-partner { max-width: 1040px; }
.cp-partner > .wp-block-image { margin: 0; display: flex; justify-content: center; }
.cp-partner > .wp-block-image img { max-height: 110px; width: auto; border-radius: 0; }
.cp-partner .wp-block-group > :last-child { margin-bottom: 0; }
.cp-partner .is-style-cp-link { margin-top: 12px; font-size: 15px; }

/* Pages légales */
.cp-legal-text { padding-top: 10px; }
.cp-legal-text > * { max-width: 860px; }
.cp-legal-text h3 { margin-top: 1.6em; font-size: 1.15rem; }
.cp-legal-text p { font-size: 16px; }

/* Article : liste des actions */
.cp-news-actions { padding-left: 1.2em; }
.cp-news-actions li { margin-bottom: 12px; }
.cp-news-actions a { text-decoration: none; border-bottom: 1px solid var(--cp-rust); }

/* Section actualités de l'accueil */
.cp-section--news { padding-top: 70px; }
.cp-section--news .cp-news-grid { max-width: var(--cp-wrap); }

/* ---------- Formulaires (contact et newsletter) ---------- */
.cp-forms { gap: 40px !important; align-items: stretch !important; }
.cp-form-card { height: 100%; border-radius: 10px; padding: 36px 36px 32px; }
.cp-form-card--contact { background: #fff; box-shadow: 0 6px 30px rgb(38 70 57 / .12); }
.cp-form-card--news { background: var(--cp-green); color: #fff; }
.cp-form-card h2 { font-size: 26px; margin: 0 0 6px; }
.cp-form-card--news h2 { color: #fff; }
.cp-form-card__intro { margin: 0 0 22px; font-size: 15px; }
.cp-form-card--news .cp-form-card__intro { color: var(--cp-olive-light); }
.cp-form-card label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.cp-form-card--contact label { color: var(--cp-green); }
.cp-form-card input[type=text], .cp-form-card input[type=email], .cp-form-card textarea { width: 100%; margin-top: 5px; font: inherit; font-size: 15px; padding: 11px 13px; border-radius: 6px; border: 1px solid #cfd6cc; background: #fff; color: #222; }
.cp-form-card--news input[type=text], .cp-form-card--news input[type=email] { border-color: transparent; }
.cp-form-card textarea { min-height: 150px; resize: vertical; }
.cp-form-card .cp-zip { max-width: 180px; }
.cp-form-card .cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-form-card .cp-req { font-weight: 400; opacity: .75; }
.cp-form-card .cp-accept, .cp-form-card .wpcf7-acceptance label { font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.45; }
.cp-form-card .cp-accept label { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; }
.cp-form-card input[type=checkbox] { accent-color: var(--cp-rust); margin-top: 3px; }
.cp-form-card--news a { color: #fff; }
.cp-nl-langs { border: 0; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cp-nl-langs legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.cp-nl-langs label { position: relative; cursor: pointer; }
.cp-nl-langs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cp-nl-langs span { display: inline-block; padding: 8px 16px; border-radius: 20px; border: 1px solid rgb(255 255 255 / .55); font-size: 14px; font-weight: 400; }
.cp-nl-langs input:checked + span { background: #fff; color: var(--cp-green); font-weight: 700; }
.cp-nl-langs input:focus-visible + span { outline: 2px solid var(--cp-rust); outline-offset: 2px; }
.cp-btn, .wpcf7-submit { font: inherit; font-size: 15px; font-weight: 700; border: 0; border-radius: 6px; padding: 12px 26px; cursor: pointer; background: var(--cp-rust); color: #fff; }
.cp-btn:hover, .wpcf7-submit:hover { background: #9c3a1d; }
.cp-form-card--contact .wpcf7-submit { background: var(--cp-green); }
.cp-form-card--contact .wpcf7-submit:hover { background: var(--cp-green-dark); }
.cp-note { font-size: 12px; opacity: .8; }
.cp-msg { font-size: 14px; padding: 10px 12px; border-radius: 6px; background: rgb(255 255 255 / .12); }
.wpcf7 form .wpcf7-response-output { margin: 14px 0 0; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--cp-olive); background: var(--cp-paper); color: var(--cp-green); }
.wpcf7-not-valid-tip { font-size: 13px; color: var(--cp-rust); }
@media (max-width: 480px) { .cp-form-card { padding: 26px 20px; } .cp-form-card .cp-row { grid-template-columns: 1fr; } }
