/* Variables */
:root {
    --primary-color: #f1c40f; /* Jaune Soleil */
    --secondary-color: #27ae60; /* Vert Énergie */
    --dark-color: #2c3e50; /* Bleu Panneau */
    --light-color: #f4f4f4;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Reset */
* {
    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-color);
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.section-title {
    text-align: center;
    margin: 60px 0 40px;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--primary-color); color: var(--dark-color); }
.btn-primary:hover { background: #d4ac0d; }
.btn-secondary { background: var(--secondary-color); color: var(--white); }
.btn-secondary:hover { background: #1e8449; }

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo span span { color: var(--secondary-color); }

.nav-links { display: flex; }
.nav-links li { margin-left: 30px; }
.nav-links a:hover { color: var(--secondary-color); }

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; max-width: 800px; margin-inline: auto; }
.hero-btns .btn { margin: 0 10px; }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-card:hover { transform: translateY(-10px); }
.service-card i { font-size: 3rem; color: var(--secondary-color); margin-bottom: 20px; }

/* Features */
.features { background: var(--light-color); padding: 80px 0; }
.features-img img { width: 100%; border-radius: 10px; }
.features-text h2 { margin-bottom: 20px; }
.features-text ul li { margin-bottom: 15px; font-size: 1.1rem; }
.features-text i { color: var(--secondary-color); margin-right: 10px; }

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
}

.project-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(39, 174, 96, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay { opacity: 1; }
.project-item:hover img { transform: scale(1.1); }

/* Contact */
.contact { padding-bottom: 80px; }
.contact-info h3 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 15px; }
.contact-info i { color: var(--secondary-color); margin-right: 10px; }

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

/* Mobile Nav */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: var(--dark-color); margin: 5px; transition: var(--transition); }

@media screen and (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    .nav-links li { margin: 20px 0; }
    .burger { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
}

.nav-active { transform: translateX(0%); }
