/* --- RESET & GLOBAL --- */
:root {
    --primary-green: #0e742b;
    --accent-orange: #e2631e;
    --text-dark: #333;
    --text-gray: #666;
    --bg-light: #f9f9f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }
body { background-color: #fff; color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utilitaires */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn-orange {
    background-color: var(--accent-orange);
    color: white;
    padding: 12px 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.3s;
}
.btn-orange:hover { background-color: #c05015; }

.section-padding { padding: 80px 0; }
.text-orange { color: var(--accent-orange); }
.text-green { color: var(--primary-green); }
.bg-light { background-color: var(--bg-light); }

/* --- HEADER --- */
.top-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: #fff; }

/* LOGO IMAGE */
.logo-img { height: 70px; width: auto; }

.contact-info { display: flex; gap: 30px; }
.info-item { display: flex; align-items: center; gap: 15px; }
.icon-box-header { width: 45px; height: 45px; border: 1px solid #ddd; display: flex; justify-content: center; align-items: center; color: var(--accent-orange); font-size: 1.2rem; }
.info-text h4 { font-size: 0.85rem; color: var(--primary-green); margin-bottom: 2px; }
.info-text p { font-size: 0.75rem; color: var(--text-gray); margin: 0; }

/* NAVBAR */
.navbar { background-color: var(--primary-green); padding: 0 5%; display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 20px; }
.nav-links li a { color: #fff; font-size: 0.85rem; padding: 20px 0; display: block; font-weight: 500; text-transform: uppercase; transition: color 0.3s; }
.nav-links li a:hover, .nav-links li a.active { color: var(--accent-orange); }
.nav-btn { background-color: var(--accent-orange); color: white; padding: 20px 30px; font-weight: 600; border: none; cursor: pointer; transition: background 0.3s; }
.nav-btn:hover { background-color: #c05015; }

/* --- HERO --- */
.hero {
    height: 700px;
    background: linear-gradient(rgba(14, 116, 43, 0.4), rgba(14, 116, 43, 0.6)), url('https://www.uneideepourcocody.com/img/back.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: white;
    position: relative;
}
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; max-width: 700px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 600px; margin-bottom: 30px; }

/* Hero pour pages intérieures */
.hero-inner {
    height: 400px;
    background: linear-gradient(rgba(14, 116, 43, 0.7), rgba(14, 116, 43, 0.8)), url('https://www.uneideepourcocody.com/img/vsp.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 5%;
}
.hero-inner h1 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; }
.hero-inner p { font-size: 1.2rem; max-width: 700px; margin: 0 auto; opacity: 0.9; }

/* STATS OVERLAY -> BARRE VALEURS */
.stats-container {
    max-width: 1100px;
    margin: -60px auto 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    padding: 40px 0;
    position: relative;
    z-index: 10;
}
.stat-item { flex: 1; text-align: center; border-right: 1px solid #eee; padding: 0 20px; }
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 2rem; color: var(--accent-orange); margin-bottom: 15px; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: var(--primary-green); text-transform: uppercase; }
.stat-desc { font-size: 0.9rem; color: var(--text-dark); margin-top: 5px; }

/* --- ABOUT SECTION --- */
.about-section { display: flex; gap: 50px; align-items: center; padding: 80px 5%; }
.about-text { flex: 1; }
.about-subtitle { color: var(--accent-orange); font-weight: 600; font-size: 1rem; margin-bottom: 10px; display: block; }
.about-text h2 { font-size: 2.5rem; color: var(--primary-green); margin-bottom: 20px; }
.about-text p { margin-bottom: 30px; color: var(--text-gray); font-size: 0.95rem; text-align: justify; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 4px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); object-fit: cover; height: 400px; }

/* --- SERVICES SECTION (Programme) --- */
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; padding: 0 5%; }
.services-header h2 { font-size: 2.2rem; color: var(--primary-green); max-width: 400px; line-height: 1.2; }
.services-header-right { max-width: 500px; text-align: right; }
.services-header-right p { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 20px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 0 5%; margin-bottom: 80px; }
.service-card { background: #fff; padding: 40px 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s; border-top: 3px solid var(--accent-orange); }
.service-card:hover { transform: translateY(-5px); }
.service-icon { color: var(--accent-orange); font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { color: var(--primary-green); font-size: 1.3rem; margin-bottom: 15px; }
.service-card p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.read-more-link { color: var(--accent-orange); font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; }

/* --- INDUSTRY SECTION (Candidat) --- */
.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 0 5% 80px 5%; align-items: start; }
.industry-intro h2 { font-size: 2.2rem; color: var(--primary-green); margin-bottom: 20px; max-width: 500px; }
.industry-desc { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 30px; text-align: justify; }

.industry-card { background: #fff; padding: 30px; border: 1px solid #eee; margin-bottom: 30px; }
.industry-card:last-child { margin-bottom: 0; }
.industry-icon { color: var(--accent-orange); font-size: 2.5rem; margin-bottom: 15px; }
.industry-card h3 { color: var(--primary-green); margin-bottom: 10px; }
.industry-card p { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 15px; }

/* --- GREEN SECTION (Perspectives) --- */
.green-section { display: flex; background-color: var(--primary-green); color: white; min-height: 600px; }
.green-image-col { flex: 1; background: url('https://www.uneideepourcocody.com/img/ops.jpg') center/cover; position: relative; }
.green-content-col { flex: 1.5; padding: 80px 5%; background-image: linear-gradient(to right, rgba(14, 116, 43, 0.95), rgba(14, 116, 43, 1)); }

.green-subtitle { color: var(--accent-orange); font-weight: 600; margin-bottom: 10px; display: block; }
.green-content-col h2 { font-size: 2.5rem; margin-bottom: 30px; }
.green-intro { font-size: 0.95rem; margin-bottom: 50px; line-height: 1.7; opacity: 0.9; }

.features-row { display: flex; gap: 30px; margin-bottom: 50px; }
.feature-item { flex: 1; }
.feature-icon { font-size: 2rem; color: var(--accent-orange); margin-bottom: 15px; }
.feature-item h4 { font-size: 1.1rem; margin-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.3); padding-bottom: 10px; display: inline-block; width: 100%;}
.feature-item p { font-size: 0.85rem; opacity: 0.8; }
.btn-overlay { background: var(--accent-orange); color: white; padding: 12px 30px; border: none; font-weight: 600; cursor: pointer; }
.btn-overlay:hover { background: #c05015; }

/* --- PROCESS SECTION (Symbole) --- */
.process-section { padding: 80px 5%; text-align: center; }
.process-subtitle { color: var(--accent-orange); font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 10px; }
.process-section h2 { color: var(--primary-green); font-size: 2.2rem; margin-bottom: 20px; }
.process-intro { color: var(--text-gray); max-width: 700px; margin: 0 auto 60px; font-size: 0.9rem; }

.process-steps { display: flex; justify-content: space-between; position: relative; max-width: 1000px; margin: 0 auto; gap: 40px; }
.process-steps::before {
    content: ''; position: absolute; top: 40px; left: 10%; right: 10%; height: 1px; border-top: 2px dashed #ddd; z-index: 0;
}

.step-card { position: relative; z-index: 1; flex: 1; background: #fff; }
.step-icon-box { 
    width: 80px; height: 80px; background: #fef0e9; color: var(--accent-orange); 
    display: flex; align-items: center; justify-content: center; font-size: 2rem; 
    margin: 0 auto 20px; position: relative; border-radius: 50%;
}

.step-card h3 { color: var(--primary-green); font-size: 1.1rem; margin-bottom: 15px; }
.step-card p { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 20px; line-height: 1.6; }

/* --- CTA FOOTER --- */
.cta-footer {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://www.uneideepourcocody.com/img/xcs.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}
.cta-footer h2 { font-size: 2.2rem; margin-bottom: 15px; max-width: 800px; }
.cta-footer p { opacity: 0.9; margin-bottom: 30px; font-size: 1.1rem; }

/* --- MAIN FOOTER --- */
footer { background-color: #052b0f; color: white; padding: 70px 5% 40px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 50px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 25px; font-weight: 700; color: var(--accent-orange); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #ccc; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--accent-orange); }

.footer-contact-item { display: flex; gap: 10px; margin-bottom: 15px; color: #ccc; }
.footer-contact-item i { color: var(--accent-orange); margin-top: 4px; }

/* Styles pour les pages de contenu */
.content-section { padding: 80px 5%; }
.content-section h2 { font-size: 2.2rem; color: var(--primary-green); margin-bottom: 20px; }
.content-section h3 { font-size: 1.5rem; color: var(--primary-green); margin: 30px 0 15px; }
.content-section p { color: var(--text-gray); font-size: 1rem; margin-bottom: 20px; line-height: 1.8; }

/* --- PETITION STYLES --- */
.petition-layout { display: flex; gap: 50px; align-items: flex-start; }
.petition-content { flex: 1.2; }
.petition-form-col { flex: 0.8; }

.petition-content h2 { font-size: 2.2rem; color: var(--primary-green); margin-bottom: 20px; }
.petition-content p { color: var(--text-gray); font-size: 1rem; margin-bottom: 20px; text-align: justify; }
.petition-content ul { margin-bottom: 30px; margin-left: 20px; list-style: disc; color: var(--text-dark); }
.petition-content li { margin-bottom: 10px; }

.counter-box {
    background: white;
    border: 1px solid #eee;
    border-left: 5px solid var(--accent-orange);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.counter-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-green); display: block; }
.counter-label { font-size: 0.9rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; }

.form-card {
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-green);
}
.form-title { font-size: 1.5rem; color: var(--primary-green); margin-bottom: 25px; text-align: center; font-weight: 700; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #444; font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: #fcfcfc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: var(--primary-green); background: #fff; }

.checkbox-wrapper { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; }
.checkbox-wrapper input { margin-top: 5px; }
.checkbox-wrapper label { font-size: 0.85rem; color: var(--text-gray); cursor: pointer; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .navbar, .top-header, .stats-container, .about-section, .services-header, .services-grid, .industry-grid, .green-section, .process-steps, .footer-grid, .petition-layout {
        flex-direction: column; grid-template-columns: 1fr;
    }
    .stats-container, .services-grid, .process-steps { gap: 40px; }
    .stat-item { border: none; border-bottom: 1px solid #eee; padding-bottom: 20px; }
    .services-header-right { text-align: left; margin-top: 20px; }
    .process-steps::before { display: none; }
    .green-image-col { min-height: 300px; }
    .nav-links { display: none; }
    .logo-img { height: 50px; }
    .hero { height: 500px; }
    .hero h1 { font-size: 2rem; }
    .hero-inner { height: 300px; }
    .hero-inner h1 { font-size: 2rem; }
}

/* Ajoutez ces styles à la fin de votre fichier style.css */

/* --- MOBILE MENU TOGGLE BUTTON --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* --- OFF-CANVAS MENU STYLES --- */
.nav-links-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-green);
    display: flex;
    flex-direction: column;
    padding: 80px 0 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    transition: right 0.4s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.nav-links-mobile.active {
    right: 0;
}

.nav-links-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.nav-links-mobile li {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-links-mobile li a {
    display: block;
    padding: 18px 30px;
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-links-mobile li a:hover,
.nav-links-mobile li a.active {
    color: var(--accent-orange);
    background-color: rgba(255,255,255,0.05);
    padding-left: 40px;
}

.nav-btn-mobile {
    margin: 20px 30px 0;
    background-color: var(--accent-orange);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: calc(100% - 60px);
    text-align: center;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.nav-btn-mobile:hover {
    background-color: #c05015;
}

/* Close button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    z-index: 1001;
}

.mobile-menu-close:hover {
    color: var(--accent-orange);
}

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    /* Masquer les infos de contact sur mobile */
    .contact-info {
        display: none;
    }
    
    /* Centrer le logo */
    .top-header {
        justify-content: center;
    }
    
    /* Cacher le menu desktop */
    .nav-links {
        display: none;
    }
    
    .nav-btn {
        display: none;
    }
    
    /* Afficher le bouton toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Ajuster la navbar */
    .navbar {
        justify-content: flex-end;
        padding: 15px 5%;
    }
}

@media (min-width: 901px) {
    /* Masquer le menu mobile sur desktop */
    .nav-links-mobile {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-overlay {
        display: none !important;
    }
}