:root {
    --primary-color: #1a4731;
    /* Vert Foncé Nuiz */
    --primary-hover: #143625;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu (Services) */
.dropdown {
    position: relative;
    display: block !important;
    /* Override flex item if needed so it stays block */
    margin: 0;
    padding: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
    left: 0;
    overflow: hidden;
    white-space: normal;
    /* Prevents text from being forced onto a single line */
    flex-direction: column !important;
    /* Force vertical flow if flex is applied */
}

.dropdown.active .dropdown-content,
.dropdown:hover .dropdown-content {
    display: flex !important;
    /* Use flex column to guarantee stack */
    flex-direction: column !important;
}

.dropdown-content a {
    color: var(--text-color) !important;
    padding: 12px 16px !important;
    text-decoration: none;
    display: block !important;
    /* Force block display to stack vertically */
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #f0f0f0;
}

/* Hero */
.hero {
    padding: 4rem 0 0;
    /* Removing bottom padding to let image sit on bottom if needed, but here we align center */
    padding: 4rem 0;
    background: linear-gradient(to right, #f0f7f4, #FFFFFF);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.2rem;
    /* Reduced slightly from 3.5rem to fit better */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.hero-text .highlight {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    max-width: 500px;
    border: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
}

/* Autocomplete Dropdown Styles */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 100;
    margin-top: 5px;
    overflow: hidden;
    display: none;
    border: 1px solid #eee;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
    font-size: 0.95rem;
    text-align: left;
    color: #444;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-img-real {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Services */
.section {
    padding: 5rem 0;
}

.bg-gray {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-align: center;
    border: 3px solid transparent;
    /* Reserve space for bold hover border */
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 4px 15px rgba(26, 71, 49, 0.2);
    /* Nuiz Glow */
    border-color: var(--primary-color);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: #111;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #f0f0f0;
}

.testimonial-card .stars {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}


/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Process Section */
.steps-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.step-card {
    flex: 1;
    min-width: 250px;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    position: relative;
    border: 1px solid #eee;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.step-arrow {
    font-size: 2rem;
    color: #e5e7eb;
}

.step-card h3 {
    margin-bottom: 0.5rem;
    color: #111;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #111;
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: var(--primary-color);
    color: #bbb;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    width: 100%;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 0.9rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s;
}

.sticky-btn:active {
    transform: scale(0.98);
}

.sticky-btn-quote {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e1e4e8;
}

.sticky-btn-call {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(26, 71, 49, 0.3);
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
    }

    body {
        padding-bottom: 80px !important;
    }

    .footer {
        padding-bottom: 80px;
    }
}

/* --- CORRECTIONS MOBILES ET SUR-MESURE --- */
.highlight-koreo {
    background-color: var(--primary-color);
    color: white;
    padding: 0.1em 0.4em;
    border-radius: 6px;
    display: inline-block;
    transform: rotate(-2deg);
    font-weight: 700;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
    margin: 0 4px;
    transition: all 0.2s ease;
}

.highlight-koreo:hover {
    transform: rotate(0deg) scale(1.05);
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem !important;
        word-wrap: break-word;
        line-height: 1.2;
        padding: 0 10px;
    }

    .highlight-koreo {
        font-size: 1.4rem !important;
        padding: 0.1em 0.2em !important;
        display: inline-block;
        max-width: 80vw;
        white-space: normal;
        line-height: 1.3;
        margin-top: 5px;
    }
}

/* ================================================
   CORRECTIONS RESPONSIVE MOBILE - TOUTES LES PAGES
   ================================================ */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .container {
        padding: 0 15px !important;
        width: 100% !important;
    }

    .hero-content {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .hero-text,
    .hero-image {
        width: 100% !important;
        flex: none !important;
    }

    .hero-img-real {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .hero-trust {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .services-grid,
    .testimonials-grid,
    .features-grid,
    .faq-grid {
        grid-template-columns: 1fr !important;
    }

    .steps-grid {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .section {
        padding: 2.5rem 0 !important;
    }

    .section-title {
        font-size: 1.6rem !important;
        padding: 0 15px !important;
    }

    .service-card,
    .testimonial-card,
    .step-card,
    .faq-item {
        width: 100% !important;
        min-width: 0 !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .form-container {
        margin: 1rem 10px !important;
        padding: 1.5rem !important;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }

    .hero-text .btn {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0.75rem !important;
    }

    p,
    h2,
    h3,
    h4 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .cta-section {
        padding: 2.5rem 15px !important;
    }

    .cta-section h2 {
        font-size: 1.8rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr !important;
    }

    table {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
    }
}