/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header et Navigation */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo .tagline {
    color: #f0f0f0;
    font-size: 0.85rem;
    margin-top: -5px;
}

/* Menu principal (desktop) */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover {
    color: #ffd700;
}

/* Bouton hamburger - caché sur desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation hamburger */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ----------------------------
   VERSION MOBILE
----------------------------- */
@media (max-width: 768px) {
    /* Cacher le menu principal */
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px; /* ajuster selon la hauteur du header */
        right: 10px;
        flex-direction: column;
        background: #1e3c72;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        width: 220px;
        padding: 1rem;
        z-index: 999;
    }

    /* Afficher le menu quand actif */
    .nav-menu.active {
        display: flex;
    }

    /* Liens du menu mobile */
    .nav-menu a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        color: #fff;
        text-align: center;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-menu a:hover {
        color: #ffd700;
    }

    /* Afficher le bouton hamburger */
    .menu-toggle {
        display: flex;
    }
}

/* Section Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="rgba(255,255,255,0.1)"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

/* Boutons */
.btn-primary {
    display: inline-block;
    background: #ffd700;
    color: #333;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    animation: fadeInUp 1.4s ease;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    display: inline-block;
    background: #6c757d;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-devis {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.btn-devis:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.fade-out {
    animation: fadeOut 0.3s ease;
}

/* Titres de section */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Section Services */
.services {
    padding: 5rem 0;
    background: #f8f9fa;
}

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

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #1e3c72;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Section Produits */
.produits {
    padding: 5rem 0;
    background: #fff;
}

.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.produit-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.produit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.produit-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.produit-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.produit-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.produit-header .type {
    font-size: 0.95rem;
    opacity: 0.9;
}

.produit-body {
    padding: 2rem;
}

.caracteristiques {
    margin-bottom: 2rem;
}

.caracteristiques h4 {
    color: #1e3c72;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.caracteristiques ul {
    list-style: none;
    padding: 0;
}

.caracteristiques li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.caracteristiques li:last-child {
    border-bottom: none;
}

.caracteristiques .label {
    font-weight: 600;
    color: #555;
}

.caracteristiques .value {
    color: #764ba2;
    font-weight: 500;
}

.produit-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.produit-actions .btn-devis {
    flex: 1;
    text-align: center;
    margin: 0;
}

/* Section Travaux Réalisés Moderne */
.travaux {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Onglets de navigation */
.travaux-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: #fff;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}
.tab-btn.energie.active {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: #fff;
    border-color: transparent;
}
/* Contenu des onglets */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Hero de projet */
.projet-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.projet-hero.energie {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
}


.projet-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.projet-hero-content {
    position: relative;
    z-index: 1;
}

.projet-hero h3 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.projet-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

/* Grille de projets */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* Carte de projet */
.projet-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.projet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.projet-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    color: #fff;
    position: relative;
}

.projet-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.projet-header h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.projet-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Corps du projet */
.projet-body {
    padding: 2rem;
}

.projet-stat {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.projet-details {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.projet-details li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
    line-height: 1.6;
}

.projet-details li:last-child {
    border-bottom: none;
}

.projet-details strong {
    color: #1e3c72;
}

.projet-partenaires {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    color: #555;
    font-size: 0.95rem;
}

.projet-partenaires strong {
    color: #667eea;
}

/* Badges de zones */
.projet-zones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.zone-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Section À Propos */
.apropos {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.apropos-content {
    max-width: 900px;
    margin: 0 auto;
}

.apropos-text h3 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.apropos-text p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat h4 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-size: 1rem;
}

/* Animation fluide Nos Partenaires */
.partenaires {
    padding: 5rem 0;
    background: #f8f9fa;
}

.partenaires-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.partenaires-track {
    display: flex;
    width: calc(250px * 18);
    animation: scroll 40s linear infinite;
}

.partenaire-logo {
    flex: 0 0 auto;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.partenaire-logo img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    filter: none;
    opacity: 0.9;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.partenaire-logo img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Section Contact */
.contact {
    padding: 5rem 0;
    background: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
    color: #1e3c72;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item .icon {
    font-size: 2rem;
    min-width: 40px;
}

.info-item h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

/* Options de contact rapide */
.contact-options {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-option {
    flex: 1;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.contact-option.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.contact-option.email {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Formulaire */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
}

/* Modal Devis */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: #1e3c72;
    font-size: 1.8rem;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.devis-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.devis-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.devis-option:hover {
    border-color: #667eea;
    background: #f8f9fa;
    transform: translateX(10px);
}

.devis-option-icon {
    font-size: 2.5rem;
}

.devis-option-content h4 {
    color: #1e3c72;
    margin-bottom: 0.3rem;
}

.devis-option-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p {
    color: #e0e0e0;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Menu hamburger visible sur mobile */
    .menu-toggle {
        display: flex;
    }
    
    /* Menu caché par défaut sur mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto;
    }
    
    /* Menu ouvert */
    .nav-menu.active {
        right: 0;
    }
    
    /* Items du menu mobile */
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 1.2rem 0;
        width: 100%;
        font-size: 1.1rem;
    }
    
    /* Overlay sombre quand le menu est ouvert */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    /* Empêcher le scroll quand le menu est ouvert */
    body.menu-open {
        overflow: hidden;
    }
    
    .hero {
        margin-top: 70px;
        min-height: 80vh;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .produits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .produit-actions {
        flex-direction: column;
    }
    
    .contact-options {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .travaux-grid {
        grid-template-columns: 1fr;
    }
    
    .partenaires-track {
        animation: scroll 30s linear infinite;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo .tagline {
        font-size: 0.7rem;
    }
    
    .nav-menu {
        width: 85%;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .service-card,
    .travail-card {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-primary,
    .btn-devis {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}