/* ===== VARIABLES ET CONFIGURATION GÉNÉRALE ===== */
:root {
    /* Polices */
    --heading-font: "Plus Jakarta Sans", sans-serif;
    --default-font: "Inter", sans-serif;
    --nav-font: "Inter", sans-serif;

    /* Couleurs */
    --background-color: #f8f2e7;
    --default-color: #3a3a3a;
    --heading-color: #8b0000;
    --accent-color: #068e23;
    --surface-color: #ffffff;
    --contrast-color: #faf0e6;
    --nav-color: #efe1d1;
    --nav-hover-color: #d35400;
    --nav-mobile-background-color: #faf0e6;
    --nav-dropdown-background-color: #ffffff;
    --nav-dropdown-color: #444444;
    --nav-dropdown-hover-color: #d35400;
}

/* Light and Dark Backgrounds */
.light-background {
    --background-color: #f4eae0;
    --surface-color: #fff8f0;
}

.dark-background {
    --background-color: #2e1a1a;
    --default-color: #ffffff;
    --heading-color: #ffcc00;
    --surface-color: #4a2525;
    --contrast-color: #ffffff;
}

.gradient-background {
    background: linear-gradient(135deg, #8b0000, #c0392b, #d35400);
}

.pattern-background {
    background: linear-gradient(135deg, #8b0000 40%, #d35400 60%);
    background-size: cover;
    background-blend-mode: multiply;
}

/* ===== RÉINITIALISATION ET STYLES DE BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    scroll-behavior: smooth;
}

body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
    padding-top: 40px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
}

/* ===== COMPOSANTS GÉNÉRAUX ===== */

/* Buttons */
button,
.btn {
    background: var(--accent-color);
    color: var(--contrast-color);
    font-weight: 600;
    border-radius: 5px;
    padding: 10px 20px;
    border: none;
    transition: all 0.3s ease-in-out;
}

button:hover,
.btn:hover {
    background: var(--nav-hover-color);
}

.btn-primary {
    background: var(--accent-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--accent-color), black 15%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 142, 35, 0.3);
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--surface-color);
    color: var(--surface-color);
    margin-left: 15px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--surface-color);
    color: var(--heading-color);
}

/* Sections */
section,
.section {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 60px 0;
    scroll-margin-top: 90px;
    overflow: clip;
}

/* Section Titles */
.section-title {
    padding-bottom: 60px;
    position: relative;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.section-description {
    font-size: 1.1rem;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== TOPBAR ===== */
.top-flags-bar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1001;
    background: white;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.flags-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.flags-track {
    display: flex;
    animation: scrollFlags 40s linear infinite;
    gap: 20px;
    align-items: center;
    padding: 2px 0;
}

.flags-track img {
    height: 18px;
    width: auto;
    border-radius: 2px;
    transition: all 0.3s ease;
    filter: grayscale(0.3);
}

.flags-track img:hover {
    filter: grayscale(0);
    transform: scale(1.2);
}

@keyframes scrollFlags {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* ===== HEADER ET NAVIGATION ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    transition: transform 0.3s ease;
    width: 55px;
    height: 55px;
}

.logo:hover img {
    transform: scale(1.05);
}

.sitename {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    color: var(--heading-color);
}

.sitename span {
    color: var(--accent-color);
}

/* Navigation Desktop */
.navmenu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    font-family: var(--nav-font);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--default-color);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: none;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 20px;
    color: var(--default-color);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-weight: 400;
}

.dropdown-item:hover {
    background: var(--accent-color);
    color: white;
    padding-left: 25px;
}

/* Header Actions */
.header-actions {
    gap: 15px;
}

/* ===== NAVIGATION MOBILE ===== */
.mobile-nav-toggle {
    display: none;
    /* background: var(--accent-color) !important; */
    color: white !important;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
    box-shadow: 0 3px 10px rgba(6, 142, 35, 0.3);
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle:hover {
    background: color-mix(in srgb, var(--accent-color), black 15%) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 142, 35, 0.4);
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .navmenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
        z-index: 1004;
        overflow-y: auto;
        padding: 80px 20px 40px;
    }

    .mobile-nav-active .navmenu {
        right: 0;
    }

    .navmenu ul {
        flex-direction: column;
        gap: 0;
    }

    .navmenu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        background: rgba(0, 0, 0, 0.03);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-left: 3px solid var(--accent-color);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 12px 15px 12px 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-nav-active::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* background: rgba(0, 0, 0, 0.5); */
        z-index: 1003;
    }

    .mobile-nav-active {
        overflow: hidden;
    }

    .header-actions .btn {
        display: none !important;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    width: 100%;
    min-height: 70vh;
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.7) 0%,
        rgba(6, 142, 35, 0.5) 100%
    );
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero .btn-get-started {
    background: var(--accent-color);
    color: var(--contrast-color);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 30px;
    border-radius: 8px;
    transition: 0.3s;
    text-transform: uppercase;
}

.hero .btn-get-started:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/* ===== ABOUT SECTION ===== */
.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.about-image-container img {
    transition: transform 0.5s ease;
    width: 100%;
}

.about-image-container:hover img {
    transform: scale(1.05);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.features-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

/* ===== SERVICES SECTION ===== */
.service-item {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-img img {
    transform: scale(1.1);
}

.service-details {
    padding: 30px 20px;
    position: relative;
    text-align: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -50px auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(6, 142, 35, 0.3);
}

.service-icon i {
    color: white;
    font-size: 1.5rem;
}

.service-details h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-details p {
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    line-height: 1.6;
    margin: 0;
}

/* ===== STATS SECTION ===== */
.stats-item {
    background-color: var(--surface-color);
    box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.stats-icon {
    width: 80px;
    height: 80px;
    background: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-icon i {
    font-size: 2rem;
    color: var(--accent-color);
}

.stats-item span {
    color: var(--heading-color);
    font-size: 2.5rem;
    display: block;
    font-weight: 700;
    margin: 10px 0;
}

.stats-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
}

/* ===== PROCESS SECTION ===== */
.process-step {
    background: var(--surface-color);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    height: 100%;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(6, 142, 35, 0.3);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 80px 0;
    position: relative;
}

.testimonials-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.testimonials-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(46, 26, 26, 0.9) 0%,
        rgba(74, 37, 37, 0.8) 100%
    );
}

.testimonial-item {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* ===== TEAM SECTION ===== */
.team-member {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.member-img {
    height: 300px;
    overflow: hidden;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-img img {
    transform: scale(1.1);
}

.member-info {
    padding: 25px 20px;
    text-align: center;
}

.member-info h4 {
    margin-bottom: 5px;
    font-size: 1.25rem;
    font-weight: 600;
}

.member-info span {
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    font-style: italic;
}

.member-info .social {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.member-info .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--background-color);
    color: var(--default-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.member-info .social a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #8b0000, #c0392b, #d35400);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ===== CONTACT SECTION ===== */
.contact-info {
    background: var(--surface-color);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.contact-info i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-info p {
    margin: 0;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    position: relative;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-text {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.logo-text span {
    color: var(--accent-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact .contact-item i {
    color: var(--accent-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.legal-links {
    text-align: right;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent-color);
}

/* ===== COMPOSANTS UTILITAIRES ===== */

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(6, 142, 35, 0.3);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: color-mix(in srgb, var(--accent-color), black 15%);
    transform: translateY(-3px);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199px) {
    .navmenu ul {
        gap: 1.5rem;
    }

    section,
    .section {
        scroll-margin-top: 76px;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 12px 0;
    }

    .logo img {
        width: 45px;
        height: 45px;
    }

    .sitename {
        font-size: 1.3rem;
    }

    .footer-links,
    .footer-newsletter {
        margin-top: 30px;
    }

    .legal-links {
        text-align: left;
        margin-top: 15px;
    }

    .legal-links a {
        margin: 0 10px 0 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .flags-track img {
        height: 16px;
    }

    .btn-get-started,
    .btn-outline-secondary {
        margin: 5px;
        width: 100%;
        max-width: 250px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .logo img {
        width: 40px;
        height: 40px;
    }

    .sitename {
        font-size: 1.2rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .navmenu {
        width: 100%;
        padding: 70px 15px 30px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 12px 0;
    }

    .mobile-nav-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .mobile-nav-active .mobile-nav-toggle {
        top: 15px;
        right: 10px;
    }
}

/* ===== ANIMATIONS ET TRANSITIONS ===== */
.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== CLASSES UTILITAIRES ===== */
.nav-static {
    color: var(--accent-color) !important;
}

.sitename-static {
    color: var(--accent-color) !important;
}

.li_nav {
    color: black !important;
}

.btn_demander_pret {
    background-color: var(--accent-color) !important;
}

.text-danger-simul {
    color: var(--accent-color);
}

.dynam {
    margin-top: 100px;
    padding-top: 6%;
    padding-bottom: 5%;
}

/* ===== IMPORT DES POLICES ===== */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

/* ===== AMÉLIORATIONS SPÉCIFIQUES DU LAYOUT ===== */

/* Header amélioré */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

/* Navigation améliorée */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--nav-font);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--default-color);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Bouton header amélioré */
.header-actions .btn-primary {
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 142, 35, 0.2);
}

.header-actions .btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 142, 35, 0.3);
}

/* Footer amélioré */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-color),
        transparent
    );
}

.footer-top {
    padding: 4rem 0 2rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.logo-text span {
    color: var(--accent-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-item {
    margin-bottom: 0.75rem;
}

.footer-nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-nav-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Newsletter améliorée */
.newsletter-form {
    margin-bottom: 2rem;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px 0 0 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(6, 142, 35, 0.2);
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: color-mix(in srgb, var(--accent-color), black 15%);
    transform: scale(1.05);
}

.form-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Social links améliorées */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(6, 142, 35, 0.3);
}

/* Footer bottom amélioré */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.legal-links {
    display: flex;
    justify-content: flex-end;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    margin-left: 1.5rem;
}

.legal-link:hover {
    color: var(--accent-color);
}

/* Preloader amélioré */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preloader-content {
    text-align: center;
}

.preloader-content p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--default-color);
}
/* ===== MENU MOBILE ===== */
@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--accent-color);
        color: white !important;
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    .navmenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        padding: 80px 30px 40px;
        overflow-y: auto;
    }

    .mobile-nav-active .navmenu {
        right: 0;
    }

    .navmenu ul {
        flex-direction: column;
        gap: 0;
    }

    .navmenu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .navmenu a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .navmenu a:hover,
    .navmenu a.active {
        color: var(--accent-color);
    }

    /* Overlay */
    .mobile-nav-active::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 */
.mobile-nav-active {
    overflow: hidden;
}

.mobile-nav-active body {
    overflow: hidden;
}

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #057a1c;
    transform: translateY(-2px);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== HEADER SCROLL ===== */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== FLAGS ===== */
.flags-track {
    display: flex;
    animation: scrollFlags 30s linear infinite;
    gap: 20px;
    align-items: center;
}

.flags-track img {
    height: 18px;
    width: auto;
}

@keyframes scrollFlags {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hidden {
    display: none !important;
}

/* Styles spécifiques pour la page crédit automobile */

/* Simulation Card */
.simulation-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.simulation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Info Items */
.info-item {
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #057a1c 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::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 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,0 1000,100 0,100"/></svg>');
    background-size: cover;
}

/* Loan Categories */
.loan-categories .btn {
    transition: all 0.3s ease;
    border-width: 2px;
}

.loan-categories .btn:hover {
    transform: translateY(-2px);
}

/* Contact Info Cards */
.contact-info {
    background: var(--surface-color);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.contact-info i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.contact-info p {
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .simulation-card {
        padding: 2rem 1.5rem;
    }

    .contact-info {
        padding: 1.5rem 1rem;
    }
}
