@import url('https://fonts.googleapis.com/css2?family=Questrial&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ============================= */
/* VARIABLES & COULEURS          */
/* ============================= */

:root {
    /* Couleurs de base */
    --white: #ffffff;
    --off-white: #f8fafc;
    
    /* Nouvelle Palette */
    --primary-blue: #082479;   /* Bleu Profond (Titres, Footer) */
    --secondary-blue: #62799f; /* Bleu Gris (Sous-titres, textes) */
    --accent-green: #65d78d;   /* Vert (Boutons, Actions) */
    --light-blue-bg: #e4eaf5;  /* Fond sections alternées */
    
    /* Elements d'interface */
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --text-light: #f8fafc;
    
    --header-height: 70px; /* Un peu plus grand pour aérer */
    --radius-1: 8px;
    --radius-2: 16px;
    --shadow-soft: 0 10px 30px rgba(8, 36, 121, 0.08); /* Ombre teintée de bleu */
    --shadow-hover: 0 15px 40px rgba(8, 36, 121, 0.15);
}

/* ============================= */
/* RESET & BASE                  */
/* ============================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    padding-top: var(--header-height);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--primary-blue); /* Les titres en bleu profond */
    font-weight: 700;
}

h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Petit accent vert sous les titres H2 pour habiller */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-green);
    margin-top: 8px;
    border-radius: 2px;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ============================= */
/* NAVIGATION                    */
/* ============================= */

header.nav {
    background: var(--white);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05); /* Ombre plus douce */
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu a, .dropdown-toggle {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-1);
    transition: all 0.3s ease;
}

/* Effet Hover Navigation */
.nav-menu a:hover, .dropdown-toggle:hover, 
.nav-menu a.active, .dropdown-toggle.active {
    background-color: rgba(101, 215, 141, 0.1); /* Vert très clair */
    color: var(--primary-blue);
}

.dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* BOUTON CTA PRINCIPAL (Vert) */
.cta {
    background-color: var(--accent-green) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.cta:hover {
    transform: translateY(-2px);
    background-color: #5bc881 !important;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--primary-blue);
    cursor: pointer;
}

.dropdown-menu {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 1100;
}

.dropdown-menu.open { display: block; }

.dropdown-menu a {
    color: var(--text-muted);
}
.dropdown-menu a:hover {
    color: var(--accent-green);
    background: transparent;
}

.dropdown-overlay {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 36, 121, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}
.dropdown-overlay.active { opacity: 1; visibility: visible; }

.hero {
    position: relative;
    padding: 80px 5%;
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 35%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: var(--text-dark);
    font-weight: 500;
}

.hero-style-2 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
}
.hero-style-2 .hero-title, 
.hero-style-2 .hero-subtitle,
.hero-style-2 p {
    color: white;
}

.prospection-hero, .reception-hero, .leads-hero, .about-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
}

.prospection-hero::before, .reception-hero::before, .leads-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 36, 121, 0.7); 
    z-index: 1;
}

.prospection-hero .hero-inner, .reception-hero .hero-inner, .leads-hero .hero-inner {
    z-index: 2;
}

.prospection-hero h1, .reception-hero h1, .leads-hero h1,
.prospection-hero p, .reception-hero p, .leads-hero p {
    color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-1 {
    background-color: var(--white);
}

.section-2, .section.alt {
    padding: 100px 0;
    background-color: var(--light-blue-bg);
    position: relative;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-2);
    box-shadow: var(--shadow-soft);
    padding: 0;
    display: flex;
    align-items: center;
    gap: 40px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--hover-bg) !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    object-fit: cover;
    border-radius: var(--radius-2) !important;
    padding: 0 !important;
}

.card-content {
    padding: 40px;
    flex: 1;
}

.card h3 {
    color: var(--primary-blue);
    font-size: 1.75rem;
}

.card p {
    margin-bottom: 2rem;
}

.row-reverse {
    flex-direction: row-reverse;
}

.card .cta, .service-link {
    background-color: transparent !important;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue) !important;
    padding: 10px 24px !important;
    box-shadow: none !important;
    display: inline-block;
}

.card .cta:hover, .service-link:hover {
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.service-link {
    border-radius: var(--radius-2);
    background: transparent;
    color: var(--primary-blue);
    text-decoration: none !important;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-2);
    box-shadow: none;
    position: relative;
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--accent-green); /* Accent vert au hover */
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--light-blue-bg);
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 0;
}

.service-card h3 {
    position: relative;
    z-index: 1;
    color: var(--primary-blue);
}

.service-card p {
    position: relative;
    z-index: 1;
}

.section-number {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.mission-image {
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    border-radius: var(--radius-2);
    overflow: hidden;
    border: 1px solid rgb(0 0 0 / 20%);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    border-radius: var(--radius-1);
}

.mission-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.mission-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.mission-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.stats-section {
    position: relative;
    z-index: 10;
    padding: 90px;
    padding-bottom: 0;
    background: transparent;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-2);
    border: 1px solid rgba(119, 181, 224, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-green), var(--primary));
    border-radius: var(--radius-2) 0 0 var(--radius-2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(119, 181, 224, 0.15);
}

.value-card:hover::before {
    opacity: 1;
}

.value-number {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.cta-section {
    padding: 100px 90px;
    text-align: center;
}

.cta-content h2 {
    color: var(--text-dark);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    border-bottom: 4px solid var(--accent-green); /* Touche de vert */
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.stat-label {
    color: var(--secondary-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* TIMELINE */
.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--light-blue-bg);
}

.timeline-year {
    color: var(--accent-green);
    font-size: 1.5rem;
    font-weight: 800;
}

/* ============================= */
/* TÉMOIGNAGES (Carousel)        */
/* ============================= */

.testimonial-card {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-2);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--light-blue-bg);
}

.testimonial-quote i {
    color: var(--accent-green);
    font-size: 2rem;
}

.carousel-btn {
    color: var(--primary-blue);
}

.carousel-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.dot {
    background: #ccc;
}
.dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.form-section {
    background: var(--light-blue-bg);
}

.contact-form .btn-submit {
    color: var(--text-light) !important;
    border-radius: var(--radius-2) !important;
}

.btn-submit {
    background: var(--accent-green);
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(101, 215, 141, 0.4);
}

.btn-submit:hover {
    background: #5bc881;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(101, 215, 141, 0.6);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(8, 36, 121, 0.1);
}

.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    margin-top: 0;
}

.footer-section h3 {
    color: var(--accent-green);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    width: 40px; height: 40px;
    text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent-green);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 60px;
    padding-top: 30px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer .lang-select-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}
.footer .lang-dropdown {
    background: var(--primary-blue);
    border: 1px solid rgba(255,255,255,0.2);
}
.footer .lang-btn {
    color: white;
}
.footer .lang-btn:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 900px) {
    .nav-inner { padding: 0 1.5rem; }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0; bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        display: none;
        overflow-y: auto;
    }
    
    .nav-menu.open { display: flex; }
    
    .nav-menu-2 {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }
    
    .nav-menu a, .dropdown-toggle {
        width: 100%;
        font-size: 1.1rem;
        justify-content: center;
    }

    .dropdown-menu div li a { 
        font-size: 16px;
    }

    .nav-toggle { display: block; }

    .card {
        flex-direction: column;
        box-shadow: none;
        border: 0 !important;
        gap: 0;
    }

    .card:hover {
        box-shadow: none !important;
    }

    .testimonial-card {
        padding: 50px 25px;
    }

    .card-content {
        padding: 40px 0;
    }

    .card-img { width: 100%; height: 250px; }
    .hero { padding: 40px 20px; text-align: center; }
    .hero-inner { margin: 0 auto; text-align: center; }
    .hero::before { background: transparent; }
    .hero-inner > div {
        background: #ffffffd9;
        padding: 15px 10px;
        border-radius: var(--radius-2);
    }

    .prospection-hero .hero-title, .reception-hero .hero-title, .leads-hero .hero-title {
        color: var(--primary-blue) !important;
    }

    .prospection-hero .hero-subtitle, .reception-hero .hero-subtitle, .leads-hero .hero-subtitle{
        color: var(--text-dark) !important;
    }

    .values-grid, .mission-grid, .timeline-item, .services-container {
        grid-template-columns: repeat(1, 1fr);
    }
}