/* ================================================= */
/* Variables CSS globales (Charte Eden Services)     */
/* ================================================= */
:root {
    --primary-color: #28a745;
    --primary-dark: #1e8e3a;
    --primary-deep: #115c27;
    --secondary-color: #007bff;
    --secondary-dark: #0056b3;
    --accent-color: #ffc107;
    --accent-dark: #e0a800;
    --text-color-dark: #1f2937;
    --text-color-light: #ffffff;
    --muted: #5b6672;
    --bg-light: #f8f9fa;
    --bg-dark: #1f2937;
    --card-bg: #ffffff;
    --header-height: 80px;
    --container-max-width: 1200px;
    --transition-speed: 0.3s ease;
}

/* ================================================= */
/* Base & Reset                                      */
/* ================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-height); }

body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-image: url('../images/bc2.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    z-index: 1;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.88);
    z-index: -1;
}

img { max-width: 100%; }
ul { list-style: none; }
.container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; }

section h3 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.01em;
}

/* ================================================= */
/* Boutons & Liens                                   */
/* ================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 50px; text-decoration: none;
    font-weight: 700; font-size: 1rem; transition: all var(--transition-speed);
    text-align: center; white-space: nowrap; cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color); color: var(--text-color-light);
    border: 2px solid var(--primary-color); box-shadow: 0 4px 14px rgba(40, 167, 69, 0.35);
}
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.8); }
.btn-light:hover { background: #fff; color: var(--primary-deep); transform: translateY(-2px); }
.btn-dark { background: var(--bg-dark); color: #fff; border: 2px solid var(--bg-dark); }
.btn-dark:hover { background: #000; border-color: #000; transform: translateY(-2px); }
.btn-don {
    background-color: var(--accent-color); color: var(--text-color-dark);
    border: 2px solid var(--accent-color); padding: 8px 20px; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.25);
}
.btn-don:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); transform: scale(1.03); }

.link-more {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
    color: var(--primary-dark); font-weight: 700; text-decoration: none; transition: gap var(--transition-speed), color var(--transition-speed);
}
.link-more:hover { color: var(--secondary-color); gap: 14px; }

/* ================================================= */
/* Barre du haut (adresse, contact, langue)          */
/* ================================================= */
.top-bar { background: var(--primary-deep); color: #d9efe0; font-size: 0.88rem; }
.top-bar-container { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.top-info { display: flex; gap: 6px 24px; flex-wrap: wrap; align-items: center; }
.top-info a, .top-social a { color: inherit; text-decoration: none; transition: color var(--transition-speed); }
.top-info a:hover, .top-social a:hover { color: var(--accent-color); }
.top-info i { color: var(--accent-color); margin-right: 6px; }
.top-right { display: flex; align-items: center; gap: 22px; }
.top-social { display: flex; gap: 14px; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 50px; }
.lang-switch i { color: var(--accent-color); margin-right: 4px; }
.lang-btn { border: 0; background: transparent; color: #fff; font: 700 0.8rem 'Roboto', sans-serif; padding: 4px 11px; border-radius: 50px; cursor: pointer; transition: all var(--transition-speed); }
.lang-btn:hover { background: rgba(255,255,255,.15); }
.lang-btn.active { background: var(--accent-color); color: var(--text-color-dark); }

/* ================================================= */
/* En-tête                                           */
/* ================================================= */
header {
    background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    padding: 0 30px; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky; top: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center; height: var(--header-height);
}
header .logo img { height: 48px; width: auto; display: block; }

.burger-menu {
    display: none; background: #f8fafc; border: 1px solid #e5e9f0; border-radius: 8px; padding: 8px;
    color: var(--text-color-dark); cursor: pointer; z-index: 1100; transition: all var(--transition-speed);
}
.burger-menu:hover, .burger-menu.active { background-color: rgba(40, 167, 69, 0.1); color: var(--primary-color); border-color: var(--primary-color); }

.main-nav ul { display: flex; align-items: center; gap: 20px; }
.main-nav ul li a {
    color: var(--text-color-dark); text-decoration: none; font-weight: 500; font-size: 1rem;
    padding: 6px 0; position: relative; transition: color var(--transition-speed);
}
.main-nav ul li a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
    background-color: var(--primary-color); transition: width var(--transition-speed);
}
.main-nav ul li a:hover::after, .main-nav ul li a.active::after { width: 100%; }
.main-nav ul li a:hover, .main-nav ul li a.active { color: var(--primary-color); }
.main-nav ul li a.btn-don::after { display: none; }
.main-nav ul li a.btn-don:hover { color: var(--text-color-dark); }

/* ================================================= */
/* Hero + carousel d'arrière-plan                    */
/* ================================================= */
.hero {
    position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--text-color-light); background: var(--primary-deep);
    overflow: hidden; padding-bottom: 90px;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transform: scale(1); transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; animation: ken-burns 9s ease-out forwards; z-index: 1; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(180deg, rgba(8, 40, 20, 0.55), rgba(8, 40, 20, 0.82));
}
.hero-content { position: relative; z-index: 3; max-width: 880px; padding: 0 20px; }
.hero-content h2 {
    font-size: clamp(2.2rem, 5.2vw, 4rem); margin-bottom: 20px; line-height: 1.12; font-weight: 900;
    letter-spacing: -0.015em; text-shadow: 0 4px 14px rgba(0,0,0,0.4); animation: slideInUp 1s ease-out;
}
.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem); margin: 0 auto 35px; max-width: 700px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4); animation: fadeIn 1.2s ease-out 0.3s backwards;
}
.hero-buttons { display: flex; gap: 15px; justify-content: center; animation: fadeIn 1.5s ease-out 0.6s backwards; }

.hero-dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.hero-dots button {
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent;
    cursor: pointer; padding: 0; transition: all var(--transition-speed);
}
.hero-dots button.active { background: var(--accent-color); border-color: var(--accent-color); width: 32px; border-radius: 8px; }

/* ================================================= */
/* Résultats : cercle avec le nombre, texte dessous  */
/* ================================================= */
.results { position: relative; z-index: 4; margin-top: -30px; padding-bottom: 20px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; }
.stat {
    background: var(--card-bg); border-radius: 20px; padding: 32px 18px 26px; text-align: center;
    box-shadow: 0 14px 34px rgba(17, 92, 39, 0.16); border-bottom: 5px solid var(--accent-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.stat:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(17, 92, 39, 0.24); }
.stat-circle {
    width: 136px; height: 136px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 25%, var(--primary-color), var(--primary-deep));
    box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--accent-color);
}
.stat-circle strong { font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 0.97rem; color: var(--muted); line-height: 1.45; font-weight: 500; }

/* ================================================= */
/* Impact social                                     */
/* ================================================= */
.about { padding: 90px 0; background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(5px); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about h3 { margin-bottom: 20px; color: var(--primary-dark); }
.about p { font-size: 1.1rem; line-height: 1.75; max-width: 62ch; }
.pillars li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #e3e8e5; }
.pillars li:first-child { padding-top: 0; }
.pillars li:last-child { border-bottom: 0; }
.pillars i {
    flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(40, 167, 69, 0.12); color: var(--primary-dark); font-size: 1.2rem;
}
.pillars h4 { font-size: 1.15rem; margin-bottom: 2px; }
.pillars p { font-size: 0.97rem; color: var(--muted); margin: 0; }

/* ================================================= */
/* Vision                                            */
/* ================================================= */
.vision { padding: 90px 0; background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark)); color: #fff; }
.vision h3 { margin-bottom: 30px; color: var(--accent-color); }
.vision blockquote { position: relative; max-width: 980px; padding-left: 28px; border-left: 5px solid var(--accent-color); }
.vision blockquote i { position: absolute; top: -6px; right: 0; font-size: 3.5rem; color: rgba(255,255,255,.12); }
.vision blockquote p { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 500; line-height: 1.5; }

/* ================================================= */
/* Mission                                           */
/* ================================================= */
.mission { padding: 90px 0; background-color: rgba(248, 249, 250, 0.9); backdrop-filter: blur(5px); }
.mission h3 { margin-bottom: 40px; color: var(--text-color-dark); }
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mission-item {
    display: flex; gap: 18px; align-items: flex-start; background: var(--card-bg); padding: 28px;
    border-radius: 16px; border: 1px solid #e3e8e5; transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.mission-item:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.09); }
.mission-item i {
    flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--primary-color); color: #fff; font-size: 1.1rem;
}
.mission-item p { font-size: 1.02rem; }

/* ================================================= */
/* Valeurs                                           */
/* ================================================= */
.values { padding: 80px 0; background-color: var(--bg-dark); color: #fff; }
.values h3 { margin-bottom: 40px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.value { border-top: 3px solid var(--accent-color); padding-top: 20px; }
.value i { display: block; font-size: 1.7rem; color: var(--accent-color); margin-bottom: 12px; }
.value h4 { font-size: 1.2rem; font-weight: 700; }

/* ================================================= */
/* Programmes (ex-section produits)                  */
/* ================================================= */
.products {
    padding: 90px 0; background-color: var(--primary-deep); color: var(--text-color-light);
    position: relative; background-repeat: no-repeat; background-position: center; background-size: cover;
}
.products::before { content: ''; position: absolute; inset: 0; background-color: rgba(10, 52, 26, 0.93); z-index: 0; }
.products .container { position: relative; z-index: 1; }
.products h3 { margin-bottom: 45px; color: var(--accent-color); }
.program-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.program-item {
    grid-column: span 2; background: var(--card-bg); color: var(--text-color-dark); padding: 30px 26px;
    border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); border-top: 5px solid var(--primary-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.program-item:nth-child(4), .program-item:nth-child(5) { grid-column: span 3; }
.program-item:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.program-item i { display: block; font-size: 1.9rem; color: var(--primary-color); margin-bottom: 16px; }
.program-item h4 { font-size: 1.25rem; line-height: 1.3; color: var(--primary-dark); font-weight: 700; }
.program-item p { margin-top: 8px; color: var(--muted); }

/* ================================================= */
/* Appel à l'action                                  */
/* ================================================= */
.cta { background: var(--accent-color); padding: 50px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); max-width: 720px; color: var(--text-color-dark); }

/* ================================================= */
/* Partenaires                                       */
/* ================================================= */
.partners { padding: 90px 0; background-color: rgba(248, 249, 250, 0.9); text-align: center; backdrop-filter: blur(5px); }
.partners h3 { margin-bottom: 15px; }
.partners p { max-width: 650px; margin: 0 auto 40px; font-size: 1.1rem; color: #6b7280; }
.partners-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 35px; }
.partners-logos img {
    max-height: 65px; width: auto; filter: grayscale(100%); opacity: 0.55;
    transition: filter var(--transition-speed), opacity var(--transition-speed), transform var(--transition-speed);
}
.partners-logos img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.08); }

/* ================================================= */
/* Footer                                            */
/* ================================================= */
footer { background-color: var(--bg-dark); color: var(--text-color-light); padding: 70px 0 30px; }
.ed-info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 45px;
    border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 30px;
}
.ed-info-item h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; color: var(--accent-color); }
.ed-info-item p { font-size: 0.95rem; color: #d1d5db; line-height: 1.5; overflow-wrap: anywhere; }
.ed-info-item a { color: #60a5fa; text-decoration: none; transition: color var(--transition-speed); }
.ed-info-item a:hover { color: #93c5fd; text-decoration: underline; }
.footer-bottom { text-align: center; font-size: 0.9rem; color: #9ca3af; }

/* ================================================= */
/* Animations                                        */
/* ================================================= */
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ================================================= */
/* Responsive                                        */
/* ================================================= */
@media (max-width: 1024px) {
    header { padding: 0 20px; }
    .burger-menu { display: inline-flex; align-items: center; justify-content: center; }
    .main-nav {
        display: none; position: absolute; top: var(--header-height); left: 0; width: 100%;
        background-color: rgba(255,255,255,.98); backdrop-filter: blur(12px);
        box-shadow: 0 15px 30px rgba(0,0,0,.12); padding: 20px; border-bottom: 1px solid #e5e9f0;
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
    .main-nav ul li a {
        display: block; padding: 12px 16px; border-radius: 10px; background-color: #f8fafc;
        border: 1px solid #e5e9f0; text-align: left;
    }
    .main-nav ul li a::after { display: none; }
    .main-nav ul li a:hover, .main-nav ul li a.active { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
    .main-nav ul li .btn-don { width: 100%; margin-top: 5px; justify-content: flex-start; }
    .main-nav ul li .btn-don:hover { background-color: var(--accent-dark); color: var(--text-color-dark); }

    .about-grid, .mission-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .program-grid { grid-template-columns: 1fr 1fr; }
    .program-item, .program-item:nth-child(4), .program-item:nth-child(5) { grid-column: auto; }
    .ed-info-grid { grid-template-columns: 1fr; gap: 25px; }
    .ed-info-item { padding-left: 12px; border-left: 3px solid var(--primary-color); }
}

@media (max-width: 900px) {
    .top-mail, .top-social { display: none; }
}

@media (max-width: 768px) {
    .hero { min-height: 78vh; }
    .hero-content { text-align: left; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { justify-content: flex-start; padding-left: 20px; }
    .hero-dots { justify-content: flex-start; margin-top: 28px; }
    .about, .mission, .products, .partners, .vision { padding: 60px 0; }
    .results-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .stat { padding: 24px 12px 20px; }
    .stat-circle { width: 112px; height: 112px; }
    .stat-circle strong { font-size: 1.45rem; }
    .stat span { font-size: .88rem; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .top-bar-container { justify-content: space-between; }
    .top-info { font-size: .8rem; }
}

@media (max-width: 520px) {
    .values-grid, .program-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body.no-scroll { overflow: hidden; }