/* --- 1. Variables et Réinitialisation de Base --- */
:root {
    --primary-color: #1A4D8F; /* Bleu marine/Indigo - Pro et IT */
    --secondary-color: #6AB04C; /* Vert Écologie - Pour l'accent IVB */
    --accent-color: #A3C2E8; /* Orange/Ambre - Pour les CTAs et l'énergie */
    --text-color: #333;
    --light-bg: #F5F5F5;
    --white: #fff;
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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.4em;
    text-align: center;
}

hr {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border: none;
    margin: 15px auto 50px auto;
    border-radius: 2px;
}

.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 5px 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.6em;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

#main-nav a {
    margin-left: 25px;
    color: var(--primary-color);
    font-weight: 500;
}

#main-nav a:hover {
    color: var(--accent-color);
}

.nav-contact {
    border: 2px solid var(--accent-color);
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--accent-color) !important;
}

.nav-contact:hover {
    background: var(--accent-color);
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.7em;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- 3. Section Hero (Accueil) --- */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 180px 0;
    position: relative;
    background-size: cover;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 0.1em;
    color: var(--white);
}

.hero .slogan {
    font-size: 1.6em;
    font-weight: 300;
    color: #e8eaf6;
    margin-bottom: 10px;
}

.hero .tagline {
    font-size: 1.2em;
    margin-bottom: 40px;
    font-weight: 500;
}

.cta-button {
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    display: inline-block;
    transition: background 0.3s;
}

.cta-button:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.cta-button-small {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
    transition: background 0.3s;
}
.cta-button-small:hover {
    background: #4caf50;
    color: var(--white);
}

/* --- 4. Section II (Expertise) --- */
.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
}

.grid-expertise {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.expertise-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid #eee;
    border-top: 4px solid var(--primary-color);
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-color);
}

.expertise-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- 5. Section III (IVB & Durabilité) --- */
.ivb-content-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
}

.ivb-content-wrapper .text-block {
    flex: 2;
}

.ivb-content-wrapper .counter-block {
    flex: 1;
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.co2-counter {
    margin-bottom: 15px;
}

.co2-counter i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

#co2-saved {
    font-size: 3em;
    font-weight: bold;
    color: var(--secondary-color);
    line-height: 1;
}

.counter-unit {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--primary-color);
}

.small-text {
    font-size: 0.9em;
    color: #666;
}

/* --- 6. Section IV (Réalisations) --- */
.grid-realisations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.realisation-card {
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.realisation-card.ivb-focus {
    border-left-color: var(--secondary-color);
}

.card-icon i {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.realisation-card.ivb-focus .card-icon i {
    color: var(--secondary-color);
}

.defi-soluce {
    font-size: 0.95em;
    margin: 15px 0;
}

.defi-soluce strong {
    color: var(--primary-color);
}

.resultat {
    font-weight: bold;
    color: var(--accent-color);
}

.instagram-feed {
    text-align: center;
    padding: 40px;
    background: #f0f4c3; /* Couleur douce pour l'intégration visuelle */
    border-radius: 8px;
}

.feed-placeholder {
    padding: 40px;
    margin: 20px 0;
    background: var(--white);
    border: 1px dashed #ccc;
    font-style: italic;
    color: #666;
}

.feed-placeholder i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* --- 7. Section V (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);
    font-size: 1.2em;
}

.map-placeholder {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--primary-color);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* --- 8. 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);
}

/* --- 9. Media Queries (Mobile First) --- */

@media (max-width: 900px) {
    /* Navigation Mobile */
    .nav-content { padding: 10px 20px; }
    
    #main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        right: 0;
        left: 0;
        background: var(--white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }
    #main-nav.active { display: flex; }
    #main-nav a {
        margin: 5px 20px;
        padding: 10px 0;
        border-bottom: 1px solid var(--light-bg);
        text-align: center;
    }
    .menu-toggle { display: block; }
    
    /* Sections Générales */
    .hero { padding: 120px 0 80px 0; }
    .hero h1 { font-size: 3em; }
    .hero .slogan { font-size: 1.2em; }
    .section-padding { padding: 50px 0; }
    
    /* Section IVB */
    .ivb-content-wrapper { flex-direction: column; }
    .ivb-content-wrapper .text-block, .ivb-content-wrapper .counter-block { width: 100%; }
    
    /* Sections Grille */
    .grid-expertise, .grid-realisations, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info, .social-actu {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}