/*
Theme Name: COOP-KDI — Coopérative de cacao
Theme URI: https://example.ci/coop-kdi
Author: Timité Oumar
Author URI: https://example.ci
Description: Thème vitrine pour une coopérative agricole de cacao : 15 pages créées automatiquement (accueil, coopérative, gouvernance, producteurs, cacao, traçabilité, durabilité, protection de l'enfance, services, actualités, galerie, FAQ, contact, espace membre, mentions légales). Conçu pour fonctionner avec l'extension « Gestion Coopérative Agricole » : le bouton « Espace membre » pointe automatiquement vers la page de connexion du module de gestion.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coop-kdi
Tags: coopérative, agriculture, cacao, vitrine, responsive
*/

/* ==========================================================================
   COOP-KDI — site vitrine d'une coopérative de cacao
   Feuille de style unique, sans dépendance externe.
   ========================================================================== */

:root {
	--vert: #1f7a4c;
	--vert-fonce: #103d26;
	--vert-clair: #e9f4ed;
	--cacao: #5d3919;
	--cacao-clair: #f6efe6;
	--or: #d99f2b;
	--creme: #fdfaf5;
	--encre: #14201a;
	--gris: #64756c;
	--bord: #e4e9e5;
	--blanc: #ffffff;
	--r: 16px;
	--r-sm: 10px;
	--ombre: 0 2px 6px rgba(16, 34, 24, .05), 0 18px 40px rgba(16, 34, 24, .07);
	--ombre-sm: 0 1px 3px rgba(16, 34, 24, .08);
	--police: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	--titre: Georgia, "Times New Roman", serif;
	--max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--police);
	color: var(--encre);
	background: var(--creme);
	line-height: 1.65;
	font-size: 16.5px;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--vert); }

h1, h2, h3, h4 { font-family: var(--titre); line-height: 1.2; margin: 0 0 .5em; color: var(--vert-fonce); }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }

.conteneur { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section-alt { background: var(--blanc); }
.section-vert { background: linear-gradient(160deg, var(--vert-fonce), #0b2d1c); color: #d9e9e0; }
.section-vert h2, .section-vert h3 { color: #fff; }
.section-cacao { background: var(--cacao-clair); }
.centre { text-align: center; }
.mesure { max-width: 720px; margin-left: auto; margin-right: auto; }

.surtitre {
	display: inline-block;
	font-family: var(--police);
	font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
	color: var(--vert); background: var(--vert-clair);
	padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
}
.section-vert .surtitre { background: rgba(255, 255, 255, .12); color: #9fe0bb; }
.chapo { font-size: 1.08rem; color: var(--gris); }
.section-vert .chapo { color: #b9d3c5; }

/* ---------------------------------------------------------------- Boutons */
.btn {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 13px 24px; border-radius: 999px;
	font-weight: 600; font-size: 15px; text-decoration: none;
	border: 1.5px solid transparent; cursor: pointer;
	transition: transform .12s, background .18s, color .18s, box-shadow .18s;
	font-family: var(--police);
}
.btn:active { transform: translateY(1px); }
.btn-primaire { background: var(--vert); color: #fff; box-shadow: 0 6px 18px rgba(31, 122, 76, .28); }
.btn-primaire:hover { background: var(--vert-fonce); }
.btn-secondaire { background: transparent; color: var(--vert-fonce); border-color: var(--bord); }
.btn-secondaire:hover { border-color: var(--vert); background: var(--vert-clair); }
.btn-or { background: var(--or); color: #3a2a06; }
.btn-or:hover { background: #c58f24; }
.btn-clair { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-clair:hover { background: rgba(255, 255, 255, .24); }

/* ------------------------------------------------------------ En-tête/nav */
.entete {
	position: sticky; top: 0; z-index: 100;
	background: rgba(253, 250, 245, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--bord);
}
.entete-inner { display: flex; align-items: center; gap: 18px; padding: 12px 22px; max-width: var(--max); margin: 0 auto; }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(140deg, var(--vert), var(--vert-fonce)); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 24px; height: 24px; }
.logo-texte strong { display: block; font-family: var(--titre); font-size: 17px; color: var(--vert-fonce); line-height: 1.1; }
.logo-texte span { font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--gris); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 3px; }
.nav a {
	padding: 9px 11px; border-radius: 9px; font-size: 14.3px;
	color: var(--encre); text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--vert-clair); color: var(--vert-fonce); }
.nav a.actif { color: var(--vert); font-weight: 600; background: var(--vert-clair); }
.nav .btn { margin-left: 8px; padding: 10px 18px; }

.nav-plus { position: relative; }
.nav-plus > button {
	background: none; border: 0; font: inherit; font-size: 14.5px; cursor: pointer;
	padding: 9px 13px; border-radius: 9px; color: var(--encre); display: flex; align-items: center; gap: 5px;
}
.nav-plus > button:hover { background: var(--vert-clair); }
.nav-menu {
	position: absolute; top: calc(100% + 6px); right: 0; min-width: 232px;
	background: #fff; border: 1px solid var(--bord); border-radius: var(--r-sm);
	box-shadow: var(--ombre); padding: 6px; display: none; flex-direction: column;
}
.nav-menu.ouvert { display: flex; }
.nav-menu a { padding: 9px 12px; font-size: 14px; }

.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--bord); border-radius: 10px; width: 42px; height: 42px; place-items: center; cursor: pointer; }
.burger svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------- Héro */
.hero {
	position: relative; overflow: hidden;
	background: linear-gradient(155deg, var(--vert-fonce) 0%, #0b2d1c 55%, #1a1008 100%);
	color: #e6f1ea;
	padding: 92px 0 96px;
}
.hero::after {
	content: ''; position: absolute; inset: 0;
	background: radial-gradient(60% 55% at 80% 15%, rgba(217, 159, 43, .22), transparent 60%),
		radial-gradient(50% 50% at 10% 90%, rgba(31, 122, 76, .35), transparent 60%);
	pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.12rem; color: #bcd6c8; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-illu svg { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); }

.hero-chiffres { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-chiffres div strong { display: block; font-family: var(--titre); font-size: 1.9rem; color: var(--or); line-height: 1; }
.hero-chiffres div span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px; color: #9db8ab; }

/* Bandeau de page interne */
.banniere {
	background: linear-gradient(150deg, var(--vert-fonce), #0d3320);
	color: #dcece3; padding: 62px 0 58px; position: relative; overflow: hidden;
}
.banniere::after {
	content: ''; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
	border-radius: 50%; background: radial-gradient(circle, rgba(217, 159, 43, .25), transparent 65%);
}
.banniere h1 { color: #fff; margin-bottom: 10px; }
.banniere p { color: #b6d0c2; max-width: 46em; margin: 0; }
.fil { font-size: 13px; color: #8fae9d; margin-bottom: 14px; }
.fil a { color: #b6d0c2; text-decoration: none; }
.fil a:hover { color: #fff; }

/* ------------------------------------------------------------- Grilles */
.grille { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.deux-col > *, .grille > *, .chiffres > *, .galerie > *, .etapes > * { min-width: 0; }

.carte {
	background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--r);
	padding: 26px 24px; box-shadow: var(--ombre-sm);
	transition: transform .15s, box-shadow .2s, border-color .2s;
}
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); border-color: #cfe0d6; }
.carte h3 { margin-bottom: .35em; }
.carte p:last-child { margin-bottom: 0; }
.carte-ico {
	width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
	background: var(--vert-clair); color: var(--vert); margin-bottom: 15px;
}
.carte-ico svg { width: 23px; height: 23px; }
.carte-or .carte-ico { background: #fdf3dd; color: #a97a13; }
.carte-cacao .carte-ico { background: var(--cacao-clair); color: var(--cacao); }

.section-vert .carte { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #cfe2d7; }
.section-vert .carte:hover { background: rgba(255, 255, 255, .1); }
.section-vert .carte-ico { background: rgba(255, 255, 255, .12); color: #9fe0bb; }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.chiffre { text-align: center; padding: 26px 16px; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--r); }
.chiffre strong { display: block; font-family: var(--titre); font-size: 2.3rem; color: var(--vert); line-height: 1; }
.chiffre span { font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--gris); }
.section-vert .chiffre { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.section-vert .chiffre strong { color: var(--or); }
.section-vert .chiffre span { color: #a9c6b7; }

/* Frise / étapes */
.frise { position: relative; padding-left: 34px; }
.frise::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--vert), var(--or)); }
.frise-item { position: relative; padding-bottom: 30px; }
.frise-item:last-child { padding-bottom: 0; }
.frise-item::before {
	content: ''; position: absolute; left: -28px; top: 6px; width: 12px; height: 12px;
	border-radius: 50%; background: var(--blanc); border: 3px solid var(--vert);
}
.frise-item h3 { margin-bottom: .2em; }
.frise-date { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--or); }

.etapes { counter-reset: etape; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.etape { position: relative; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--r); padding: 30px 22px 22px; }
.etape::before {
	counter-increment: etape; content: counter(etape);
	position: absolute; top: -16px; left: 22px;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--vert); color: #fff; display: grid; place-items: center;
	font-weight: 700; font-size: 15px;
}

/* Listes à puces vertes */
.liste-check { list-style: none; padding: 0; margin: 0; }
.liste-check li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.liste-check li::before {
	content: ''; position: absolute; left: 0; top: 7px; width: 17px; height: 17px; border-radius: 50%;
	background: var(--vert-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section-vert .liste-check li::before { background-color: rgba(255, 255, 255, .14); }

/* Tableau */
.tableau-wrap { overflow-x: auto; border: 1px solid var(--bord); border-radius: var(--r); background: var(--blanc); }
table.tableau { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.tableau th, table.tableau td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--bord); }
table.tableau th { background: var(--vert-clair); color: var(--vert-fonce); font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; }
table.tableau tbody tr:last-child td { border-bottom: 0; }
table.tableau tbody tr:hover { background: #f8faf9; }

/* Accordéon */
.accordeon { border: 1px solid var(--bord); border-radius: var(--r); overflow: hidden; background: var(--blanc); }
.accordeon-item + .accordeon-item { border-top: 1px solid var(--bord); }
.accordeon button {
	width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
	padding: 18px 22px; font: inherit; font-weight: 600; color: var(--vert-fonce);
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordeon button:hover { background: #f7faf8; }
.accordeon button::after { content: '+'; font-size: 21px; color: var(--vert); flex-shrink: 0; }
.accordeon button[aria-expanded="true"]::after { content: '−'; }
.accordeon-contenu { padding: 0 22px 20px; color: var(--gris); display: none; }
.accordeon-contenu.ouvert { display: block; }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.galerie figure { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--bord); background: var(--blanc); }
.galerie .vignette { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.galerie figcaption { padding: 13px 16px; font-size: 14px; color: var(--gris); border-top: 1px solid var(--bord); }

/* Articles / actualités */
.article { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.article .vignette { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.article-corps { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.article-meta { font-size: 12.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--or); font-weight: 700; margin-bottom: 8px; }
.article h3 { font-size: 1.12rem; }
.article p { color: var(--gris); font-size: 15px; flex: 1; }
.lien-fleche { color: var(--vert); font-weight: 600; text-decoration: none; font-size: 14.5px; }
.lien-fleche::after { content: ' →'; }
.lien-fleche:hover { text-decoration: underline; }

/* Témoignages */
.citation { background: var(--blanc); border: 1px solid var(--bord); border-left: 4px solid var(--or); border-radius: var(--r); padding: 26px 26px 22px; }
.citation p { font-style: italic; color: #3c4a43; }
.citation footer { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.citation .pastille { width: 42px; height: 42px; border-radius: 50%; background: var(--vert-clair); color: var(--vert-fonce); display: grid; place-items: center; font-weight: 700; }
.citation cite { font-style: normal; font-weight: 600; display: block; font-size: 14.5px; }
.citation small { color: var(--gris); font-size: 13px; }

/* Formulaire */
.formulaire { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ-large { grid-column: 1 / -1; }
.champ label { font-size: 13px; font-weight: 600; color: var(--gris); }
.champ input, .champ select, .champ textarea {
	padding: 12px 14px; border: 1px solid var(--bord); border-radius: var(--r-sm);
	font: inherit; font-size: 15px; background: var(--blanc); color: var(--encre);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
	outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(31, 122, 76, .13);
}
.note-form { font-size: 13px; color: var(--gris); }

/* Encadré appel à l'action */
.cta {
	background: linear-gradient(140deg, var(--vert), var(--vert-fonce));
	color: #fff; border-radius: 22px; padding: 48px 42px;
	display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { color: #c6e0d2; margin: 0; }

/* Pied de page */
.pied { background: #0c2318; color: #9db8ab; padding: 62px 0 26px; font-size: 14.5px; }
.pied h4 { color: #fff; font-family: var(--police); font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px; }
.pied a { color: #9db8ab; text-decoration: none; }
.pied a:hover { color: #fff; }
.pied-grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 9px; }
.pied-bas { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 42px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.pied-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.pied-logo .logo-mark { background: rgba(255, 255, 255, .1); }
.pied-logo strong { color: #fff; font-family: var(--titre); font-size: 17px; }

/* Divers */
.ruban { background: var(--vert-fonce); color: #cfe4d8; font-size: 13.5px; padding: 8px 0; text-align: center; }
.ruban a { color: var(--or); text-decoration: none; font-weight: 600; }
.badge-certif { display: inline-flex; align-items: center; gap: 8px; background: var(--blanc); border: 1px solid var(--bord); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--vert-fonce); }
.badge-certif .point { width: 9px; height: 9px; border-radius: 50%; background: var(--vert); }

.carte-plate { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--r); padding: 24px; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.mt32 { margin-top: 32px; }
.mt48 { margin-top: 48px; }

/* ------------------------------------------------------------- Réactivité */
@media (max-width: 1240px) {
	.nav a:not(.btn) { padding: 8px 8px; font-size: 13.6px; }
	.nav-plus > button { padding: 8px 8px; font-size: 13.6px; }
	.nav .btn { padding: 9px 14px; font-size: 13.6px; }
	.logo-texte span { display: none; }
}

@media (max-width: 1024px) {
	.hero-inner, .deux-col { grid-template-columns: 1fr; }
	.hero-illu { order: -1; max-width: 340px; margin: 0 auto; }
	.g3, .g4 { grid-template-columns: repeat(2, 1fr); }
	.pied-grille { grid-template-columns: 1fr 1fr; }
	.burger { display: grid; }
	.nav {
		position: fixed; inset: 0 0 auto 0; top: 66px;
		background: #fff; border-bottom: 1px solid var(--bord);
		flex-direction: column; align-items: stretch; gap: 2px;
		padding: 14px 18px 22px; display: none;
		box-shadow: var(--ombre); max-height: calc(100vh - 66px); overflow-y: auto;
	}
	.nav.ouvert { display: flex; }
	.nav .btn { margin: 10px 0 0; justify-content: center; }
	.nav-plus > button { width: 100%; justify-content: space-between; }
	.nav-menu { position: static; box-shadow: none; border: 0; padding-left: 12px; }
}

@media (max-width: 620px) {
	.section { padding: 54px 0; }
	.g2, .g3, .g4, .formulaire { grid-template-columns: 1fr; }
	.pied-grille { grid-template-columns: 1fr; }
	.cta { padding: 34px 24px; }
	.hero { padding: 46px 0 54px; }
	.hero-illu { max-width: 200px; }
	.hero-chiffres { gap: 20px; }
	.ruban { font-size: 12.5px; }
}

@media print {
	.entete, .pied, .burger, .cta { display: none; }
	body { background: #fff; }
}

/* ------------------------------------------------------ Maillage interne */
.maillage { border-top: 1px solid var(--bord); background: var(--blanc); padding: 34px 0 38px; }
.maillage-paires { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.maillage-lien {
	display: flex; flex-direction: column; gap: 4px;
	border: 1px solid var(--bord); border-radius: var(--r);
	padding: 16px 20px; text-decoration: none; background: var(--creme);
	transition: border-color .18s, transform .12s, box-shadow .18s;
}
.maillage-lien:hover { border-color: var(--vert); transform: translateY(-2px); box-shadow: var(--ombre-sm); }
.maillage-suiv { text-align: right; align-items: flex-end; }
.maillage-sens { font-size: 12px; text-transform: uppercase; letter-spacing: .9px; color: var(--or); font-weight: 700; }
.maillage-lien strong { font-family: var(--titre); font-size: 1.1rem; color: var(--vert-fonce); }
.maillage-connexes { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 22px; }
.maillage-titre { font-size: 12px; text-transform: uppercase; letter-spacing: .9px; color: var(--gris); font-weight: 700; margin-right: 4px; }
.maillage-connexes a {
	font-size: 14px; text-decoration: none; color: var(--vert-fonce);
	background: var(--vert-clair); border-radius: 999px; padding: 7px 15px;
}
.maillage-connexes a:hover { background: var(--vert); color: #fff; }
@media (max-width: 620px) {
	.maillage-paires { grid-template-columns: 1fr; }
	.maillage-suiv { text-align: left; align-items: flex-start; }
}
