/* --- 1. Variables et Réinitialisation de Base --- */
:root {
    --primary-color: #004d40; /* Vert foncé/Teal - Évoque la durabilité et le pro */
    --secondary-color: #388e3c; /* Vert Écologie - Pour les accents */
    --accent-color: #2196f3; /* Bleu clair - Pour l'IT et les liens */
    --text-color: #333;
    --light-bg: #f5f5f5; /* Gris très clair */
    --white: #fff;
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3 {
    margin-bottom: 0.5em;
    color: var(--primary-color);
    line-height: 1.2;
}

h2 {
    font-size: 2.2em;
    text-align: center;
}

hr {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border: none;
    margin: 15px auto 40px auto;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}


/* --- 2. Header et Navigation --- */
header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

#main-nav a {
    margin-left: 25px;
    color: var(--text-color);
    font-weight: 500;
}

#main-nav a:hover, .nav-contact {
    color: var(--accent-color);
}

.nav-contact {
    border: 2px solid var(--accent-color);
    padding: 8px 15px;
    border-radius: 5px;
}

.menu-toggle {
    display: none; /* Masqué par défaut sur desktop */
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--primary-color);
}


/* --- 3. Section Hero (Accueil) --- */
.hero {
    background-color: var(--primary-color); 
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay sombre */
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 0.2em;
    color: var(--white);
}

.hero .slogan {
    font-size: 1.8em;
    font-weight: 300;
    color: #c8e6c9; /* Couleur claire pour le contraste */
    margin-bottom: 10px;
}

.hero .tagline {
    font-size: 1.2em;
    margin-bottom: 40px;
    font-weight: 500;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    display: inline-block;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #4caf50;
    color: var(--white);
}


/* --- 4. Mise en Page Générale (Grid) --- */
.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
}

.grid-2, .grid-3 {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


/* --- 5. Section II (Le Groupe) --- */
.content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.content-wrapper .text-block {
    flex: 2;
}

.content-wrapper .image-placeholder {
    flex: 1;
    text-align: center;
    font-size: 5em;
    color: var(--secondary-color);
}

.highlight {
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- 6. Section III (Engagements) --- */
.commitment-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.commitment-card:hover {
    transform: translateY(-5px);
}

.commitment-card i {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.commitment-card h3 {
    color: var(--primary-color);
}


/* --- 7. Section IV (Activités/Structures) --- */
.activities-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.activity-card {
    padding: 30px;
    background: var(--light-bg);
    border-left: 5px solid var(--secondary-color);
    border-radius: 5px;
    transition: background 0.3s;
}

.activity-card.primary-card {
    border-left-color: var(--accent-color);
    background: #e3f2fd; /* Bleu clair pour le pôle IT */
}

.activity-card:hover {
    background: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.activity-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--accent-color);
}

/* --- 8. Section V (Partenaires) --- */
.partner-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.partner-card h3 {
    color: var(--primary-color);
}

.partner-logo {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
}

.partner-logo i {
    margin-right: 10px;
}

.note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: var(--primary-color);
}

/* --- 9. Section VI (Contact) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-info a {
    color: var(--text-color);
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.map-placeholder {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.social-links a {
    margin-right: 15px;
    color: var(--primary-color);
}

.social-links a:hover {
    color: var(--accent-color);
}

.social-feed-placeholder {
    margin-top: 20px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 5px;
    text-align: center;
    border: 1px dashed #ccc;
    font-style: italic;
    color: #666;
}

/* --- 10. Footer --- */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}

footer a {
    color: var(--white);
    text-decoration: underline;
    margin: 0 10px;
}
footer a:hover {
    color: var(--accent-color);
}

/* --- 11. Media Queries (Mobile First) --- */

/* Tablette et Mobile */
@media (max-width: 900px) {
    
    .nav-content {
        padding: 10px 20px;
    }
    
    #main-nav {
        /* Masqué par défaut en mobile */
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 65px; /* Ajuster en fonction de la hauteur du header */
        right: 0;
        left: 0;
        background: var(--white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    #main-nav.active {
        display: flex;
    }

    #main-nav a {
        margin: 10px 20px;
        padding: 10px 0;
        border-bottom: 1px solid var(--light-bg);
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero .slogan {
        font-size: 1.4em;
    }

    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .content-wrapper .image-placeholder {
        margin-top: 30px;
    }
    
    .grid-2, .contact-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: 1fr; /* Une colonne en mobile */
    }

    .contact-info, .social-actu {
        text-align: center;
    }
    
    .social-links {
        margin-top: 20px;
    }
}