* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary:         #2d5016;
    --primary-dark:    #1e3a0e;
    --secondary:       #6b9e3e;
    --secondary-light: #8dbd58;
    --accent:          #d4a017;
    --text-primary:    #1a2410;
    --text-secondary:  #4a5e30;
    --text-muted:      #5a6a4a;
    --bg-white:        #fff;
    --bg-light:        #f4f7ef;
    --bg-green-pale:   #eaf2de;
    --bg-hero:         #2d5016;
    --border:          #d6e4c0;
    --shadow-sm:  0 2px 8px rgba(45,80,22,.08);
    --shadow-md:  0 6px 24px rgba(45,80,22,.14);
    --shadow-lg:  0 16px 48px rgba(45,80,22,.18);
    --radius:     12px;
    --radius-sm:  8px;
}
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--text-primary); background: var(--bg-light); font-size: 15px; }

/* ════════════════════════════════════════════════════
   UTILITY CLASSES (CSP COMPLIANCE)
   ════════════════════════════════════════════════════ */
.text-center { text-align: center !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dark-green { color: #075e54 !important; }
.bg-white { background: var(--bg-white) !important; }
.bg-light { background: var(--bg-light) !important; }
.bg-green-pale { background: var(--bg-green-pale) !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-none, .hidden { display: none !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mt-10 { margin-top: 10px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.py-40 { padding-top: 40px !important; padding-bottom: 40px !important; }
.py-60 { padding-top: 60px !important; padding-bottom: 60px !important; }
.gap-10 { gap: 10px !important; }
.max-w-600 { max-width: 600px !important; }
.max-w-800 { max-width: 800px !important; }
.max-w-900 { max-width: 900px !important; }
.fs-large { font-size: 1.2rem !important; }
.fs-small { font-size: 13px !important; }
.fs-xsmall { font-size: 11px !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.convention-img-size { width: 450px; height: 150px; object-fit: contain; }

/* ════════════════════════════════════════════════════
   HEADER CANONIQUE
   ════════════════════════════════════════════════════ */
header{position:sticky;top:0;z-index:1000;background:var(--bg-white);border-bottom:1px solid var(--border);box-shadow:var(--shadow-sm);padding:.75rem 0}
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.header-content{display:flex;justify-content:space-between;align-items:center}
.logo{display:flex;align-items:center;gap:16px;text-decoration:none;color:inherit;flex-shrink:0;transition:opacity .3s}
.logo:hover{opacity:.8}
.logo-image{width:80px;height:80px;border-radius:8px;overflow:hidden;border:2px solid var(--primary);background:var(--bg-light);display:flex;align-items:center;justify-content:center}
.logo-image img{width:100%;height:100%;object-fit:cover}
.logo-fb{font-weight:800;font-size:1rem;color:var(--primary);letter-spacing:-1px;display:none}
.logo-text h1{font-family:'Lora',serif;font-size:1.5rem;font-weight:700;color:var(--primary);line-height:1.2;display:block}
.logo-brand{font-family:'Lora',serif;font-size:1.5rem;font-weight:700;color:var(--primary);line-height:1.2;display:block}
.logo-text p{font-size:.75rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:1px;margin-top:2px}

.nav-main{display:flex;align-items:center;gap:4px;margin-left:auto}
.nav-main ul{display:flex;list-style:none;gap:2px}
.nav-main a{color:var(--text-secondary);text-decoration:none;font-weight:500;font-size:14px;padding:8px 13px;border-radius:6px;transition:all .2s}
.nav-main a:hover,.nav-main a[aria-current="page"]{color:var(--primary);background:var(--bg-green-pale)}
.nav-main a[aria-current="page"]{font-weight:600}

/* Language Switcher */
.header-lang { display: flex; align-items: center; gap: 8px; margin-left: 20px; font-weight: 600; font-size: 13px; border-left: 1px solid var(--border); padding-left: 20px; }
.lang-link { text-decoration: none; color: var(--text-muted); transition: color 0.2s; padding: 4px 8px; border-radius: 4px; }
.lang-link:hover { color: var(--primary); background: var(--bg-green-pale); }
.lang-link.active { color: var(--primary); background: var(--bg-green-pale); }
.lang-sep { color: var(--border); font-weight: 300; }

/* Social Brand Colors & Spacing */
.header-social { display: flex; gap: 12px; margin-left: 40px; }
.header-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; transition: all 0.2s; text-decoration: none; }
.header-social a svg { width: 18px; height: 18px; }
.header-social a[title="Facebook"] { color: #1877F2; }
.header-social a[title="Twitter/X"] { color: #000000; }
.header-social a[title="YouTube"] { color: #FF0000; }
.header-social a:hover { background: var(--bg-green-pale); transform: translateY(-2px); }

.hamburger{display:none;flex-direction:column;justify-content:space-around;width:30px;height:26px;background:none;border:none;cursor:pointer;padding:0;z-index:1100;margin-left:auto}
.hamburger span{display:block;width:100%;height:2.5px;background:var(--primary);border-radius:3px;transition:all .3s}
.hamburger.open span:nth-child(1){transform:translateY(9px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}

/* ════════════════════════════════════════════════════
   PAGE BANNER
   ════════════════════════════════════════════════════ */
.page-banner { 
    background: linear-gradient(rgba(45, 80, 22, 0.78), rgba(26, 48, 9, 0.85)), url('/images/hero.jpg') center/cover no-repeat;
    padding: 44px 24px 36px; 
    text-align: center; 
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
}

.page-banner-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.page-banner h1 {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(2.2rem, 6vw, 3.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.page-banner p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem) !important;
    opacity: 0.95;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 650px;
    margin: 0 auto;
}
.highlight { color: #ffd700 !important; font-weight: 800; }
.page-banner .highlight { color: #ffd700 !important; font-weight: 800; }

.section-subtitle { font-size: 15px; color: var(--text-secondary); line-height: 1.6; max-width: 800px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-content p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }
.about-signature { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }
.about-signature strong { color: var(--text-primary); display: block; margin-bottom: 2px; }
.about-image { 
    border-radius: 8px; 
    box-shadow: var(--shadow-md); 
    background: var(--secondary); 
    height: 350px; 
    position: relative; 
    overflow: hidden;
}

/* Slideshow */
.slideshow-container { width: 100%; height: 100%; position: relative; overflow: hidden; }
.slideshow-track { display: flex; height: 100%; width: max-content; animation: slidescroll 35s linear infinite; }
.slideshow-track:hover { animation-play-state: paused; }
.slide-item { width: 420px; height: 100%; flex-shrink: 0; cursor: pointer; position: relative; }
.slide-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); color: white; padding: 16px 12px 10px; font-size: 13px; text-align: center; }
@keyframes slidescroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Lightbox */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 2000; justify-content: center; align-items: center; }
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90%; max-height: 90%; position: relative; }
.lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: white; font-size: 40px; cursor: pointer; z-index: 2001; background: rgba(0,0,0,0.5); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 40px; cursor: pointer; background: rgba(0,0,0,0.5); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; user-select: none; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: white; background: rgba(0,0,0,0.7); padding: 10px 20px; border-radius: 6px; text-align: center; }
.lightbox-counter { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: white; background: rgba(0,0,0,0.7); padding: 8px 16px; border-radius: 6px; font-size: 14px; }

/* Sections */
.section-white { background: var(--bg-white); padding: 80px 24px; }
.section-light { background: var(--bg-light); padding: 80px 24px; }
.section-header { margin-bottom: 48px; text-align: center; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--primary); margin-bottom: 16px; }
.section-label { color: var(--secondary); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }

/* But Blocks */
.buts-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1160px; margin: 0 auto; }
.but-block { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 28px 28px; background: var(--bg-white); border-radius: var(--radius); border: 1px solid var(--border); position: relative; transition: all 0.3s ease; overflow: hidden; }
.but-block:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.but-icon { width: 56px; height: 56px; background: var(--bg-green-pale); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.but-icon svg { width: 28px; height: 28px; stroke: var(--secondary); stroke-width: 2; fill: none; }
.but-content { width: 100%; }
.but-title { font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.but-lead { font-size: 12px; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.but-text { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 20px; }
.but-link { display: inline-flex; align-items: center; gap: 6px; color: var(--secondary); font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.but-link:hover { color: var(--primary); gap: 10px; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 14px; }

/* Utilities */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary); color: white; padding: 8px 16px; z-index: 9999; }
.skip-link:focus { top: 0; }
.wave-divider { line-height: 0; }
.wave-divider svg { width: 100%; height: 36px; }

/* Footer */
footer { background: #1e2a16; color: rgba(255,255,255,.78); padding: 40px 0; }
.ftr-bottom { text-align: center; color: rgba(255,255,255,.45); font-size: 12px; margin-top: 20px; }
.ftr-bottom p { color: rgba(255,255,255,.5); font-size: 11px; }

/* Form Error/Success */
.form-error { display: none; color: #e74c3c; font-size: 12px; margin-top: 4px; }
#formSuccess { display:none; padding:16px; background:#d4edda; color:#155724; border-radius:6px; margin-top:12px; }
#formError   { display:none; padding:16px; background:#f8d7da; color:#721c24; border-radius:6px; margin-top:12px; }

/* Responsive */
@media (max-width: 768px) {
    .buts-list, .contact-grid, .about-grid { grid-template-columns: 1fr; }
    .hamburger { display: flex; }
    .nav-main { display: none; }
    .nav-main.open { display: flex; }
}

/* ════════════════════════════════════════════════════
   DONATION PAGE
   ════════════════════════════════════════════════════ */
.don-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; padding: 40px 0; }
.steps-indicator { display: flex; align-items: center; margin-bottom: 30px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.step.active { color: var(--primary); font-weight: 700; }
.step-num { width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; }
.step-connector { flex: 1; height: 2px; background: var(--border); margin: 0 10px; }
.card-section { background: white; border: 1px solid var(--border); padding: 30px; border-radius: 12px; margin-bottom: 20px; }
.don-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.don-tab { flex: 1; padding: 10px; border: 1px solid var(--border); background: var(--bg-light); cursor: pointer; border-radius: 6px; }
.don-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.amount-grid, .amount-grid-3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.amount-btn { padding: 15px 5px; border: 1px solid var(--border); border-radius: 6px; background: white; cursor: pointer; }
.amount-btn.selected { border-color: var(--primary); background: var(--bg-green-pale); font-weight: 700; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.pay-panel { display: none; }
.pay-panel.active { display: block; }
.btn-submit { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 16px; margin-top: 20px; }

.recap-amount { font-size: 2.5rem; font-weight: 800; color: var(--primary); text-align: center; }
.fiscal-note { text-align: center; font-size: 13px; color: var(--secondary); font-weight: 600; margin-top: 8px; }
.form-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.civilite-group { display: flex; gap: 20px; margin-top: 8px; }
.civ-option { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 15px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-row.single-col { grid-template-columns: 1fr; }
.form-input, .form-select { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; }
.err-msg { display: none; color: #e74c3c; font-size: 11px; margin-top: 4px; }
.required-star { color: var(--accent); }
.rgpd-notice { margin-top: 20px; padding: 15px; background: var(--bg-light); border-radius: 8px; font-size: 12px; color: var(--text-muted); }

.pay-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.pay-tab { flex: 1; padding: 12px; border: 1.5px solid var(--border); background: var(--bg-light); cursor: pointer; border-radius: 8px; font-weight: 600; }
.pay-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

.s-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.s-card-hdr { background: var(--bg-green-pale); padding: 15px; border-bottom: 1px solid var(--border); }
.s-card-hdr h4 { margin: 0; color: var(--primary); }
.s-card-body { padding: 20px; }

/* Custom components for inline removal */
.contrepartie-box { display: flex; gap: 15px; background: var(--bg-green-pale); padding: 20px; border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--border); align-items: center; }
.contrepartie-img { font-size: 2.5rem; }
.contrepartie-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.contrepartie-text strong { display: block; color: var(--primary); margin-bottom: 5px; }

.impact-teaser { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px dashed var(--secondary); padding: 15px; border-radius: 8px; margin-top: 15px; }
.impact-teaser .ico { font-size: 1.2rem; }
.impact-teaser span:not(.ico) { font-size: 13px; color: var(--text-secondary); font-style: italic; }

.rgpd-consent-row { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; }
.rgpd-checkbox { margin-top: 3px; accent-color: var(--secondary); width: 16px; height: 16px; flex-shrink: 0; }
.rgpd-label { font-size: 13px; color: var(--text-muted); line-height: 1.5; cursor: pointer; }

.card-element-container { padding: 12px; border: 1.5px solid var(--border); border-radius: 8px; background: white; }
.paypal-container { text-align: center; padding: 20px; }
.mobile-money-box { background: #e9f7ef; padding: 20px; border-radius: 10px; border: 1px solid #25d366; }
.whatsapp-btn { display: block; text-align: center; background: #25d366; color: white; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 700; }

.form-error-box { display: none; color: red; margin-top: 10px; font-size: 14px; font-weight: 600; }
.form-success-box { display: none; text-align: center; padding: 40px; }

.fiscal-card { background: var(--bg-green-pale); padding: 15px; border-radius: 8px; margin-top: 15px; }
.fiscal-card h4 { font-size: 12px; text-transform: uppercase; margin-bottom: 10px; }
.fiscal-card p { font-size: 11px; line-height: 1.4; }

@media (max-width: 768px) {
    .don-layout { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
    .form-row { grid-template-columns: 1fr; }
}
