/* Variables */
:root {
    --primary-color: #003366; /* Bleu Foncé Puisségur */
    --secondary-color: #3399CC; /* Bleu Clair Solutions */
    --accent-color: #FFB800; /* Jaune Solaire */
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --dark-overlay: rgba(0, 0, 0, 0.6);
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px; /* Ajuster selon le logo */
}

/* Navigation */
#navbar ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

#navbar a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1rem;
}

#navbar a:hover, #navbar a.active {
    color: var(--secondary-color);
}

#navbar a.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

#navbar a.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('../assets/images/hero.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px; /* Header height */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,51,102,0.85) 0%, rgba(51,153,204,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e6a600;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 184, 0, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Section Common */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.separator {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Services */
#services {
    background-color: var(--light-bg);
}

.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;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card.highlight {
    border-bottom: 4px solid var(--secondary-color);
}

.icon-box {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.service-list li i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* About */
#about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.separator-left {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-bottom: 25px;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: #666;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid for stats if 4, or manage 3 */
    gap: 30px;
}

.about-stats .stat-item:last-child {
    grid-column: span 2; /* Centrer le dernier item si il y en a 3 */
}

@media (min-width: 992px) {
    .about-stats {
         grid-template-columns: repeat(2, 1fr);
    }
    .about-stats .stat-item:last-child {
        grid-column: auto;
    }
    /* Let's make it more flexible, maybe flex */
    .about-stats {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

.stat-item {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item .count {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

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

/* Contact */
#contact {
    background-color: #0c1a2b; /* Très sombre pour le contraste */
    color: var(--white);
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/hero.png') center/cover; /* Reuse background but dark */
    opacity: 0.1;
    z-index: 0;
}

#contact .container {
    position: relative;
    z-index: 1;
}

#contact .section-header h2 {
    color: var(--white);
}

#contact .section-header p {
    color: #aaa;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 50%;
}

.info-item h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.info-item p, .info-item a {
    color: #ccc;
    font-size: 1rem;
}

.info-item a:hover {
    color: var(--accent-color);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    background-color: #08121f;
    color: #8892b0;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    border-bottom: 1px solid #1c2a3d;
    padding-bottom: 40px;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-links a {
    color: #8892b0;
    margin-left: 20px;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    #navbar {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    #navbar.active {
        transform: translateY(0);
    }

    #navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        flex-direction: column;
    }
    
    .about-stats {
        flex-direction: column;
    }
}
