/* --- VARIABLES GLOBALES --- */
:root {
    --primary: #2c5530;
    --secondary: #4a7c59;
    --accent: #8fb996;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

h1, h2, h3 { margin-bottom: 1rem; color: var(--primary); }
h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; margin-top: 2rem; }
p { margin-bottom: 1rem; }

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.logo {
    height: 75px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav li {
    margin: 0 0.75rem;
    position: relative;
}

nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    color: var(--dark);
}

nav a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
}

/* --- SOUS-MENU (DROPDOWN) --- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-top: 3px solid var(--primary);
    list-style: none;
}

.dropdown-content li { margin: 0; width: 100%; }
.dropdown-content a {
    padding: 10px 20px;
    display: block;
    color: var(--dark);
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

nav li:hover .dropdown-content { display: block; }

/* --- BOUTONS --- */
nav a.btn-nav {
    background-color: var(--accent);
    color: var(--dark) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

nav a.btn-nav:hover { background-color: #a8d5b5; transform: translateY(-1px); }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: var(--dark);
    border-radius: 4px;
    font-weight: 600;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: white;
}

/* --- SECTIONS & GRILLES --- */
section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    color: white;
}

.stat-number { font-size: 3rem; font-weight: bold; }

/* --- VIDEOS --- */
.hero-video {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; }

/* --- FOOTER --- */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 { color: var(--accent); margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section a { color: var(--light-gray); }

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

/* --- MOBILE --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    nav ul.active { display: flex; }
    nav li { margin: 0.5rem 0; width: 100%; text-align: center; }
    .dropdown-content { position: static; box-shadow: none; width: 100%; }
}

/* Style pour le sélecteur de langue dans le header */
.dropbtn {
    font-weight: bold;
    color: var(--dark);
    cursor: pointer;
}

/* On ajuste la largeur du menu de langue pour qu'il soit compact */
li.dropdown .dropdown-content[style*="min-width: 80px"] {
    min-width: 80px !important;
    text-align: center;
}

/* Style pour les langues du footer */
.footer-languages a {
    color: var(--light-gray) !important;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-languages a:hover {
    opacity: 1;
    text-decoration: underline;
}