:root {
    --primary-blue: #0056FF;
    --dark-blue: #001a4d;
    --cosmic-gradient: linear-gradient(135deg, #020024 0%, #090979 35%, #00d4ff 100%);
    --hero-gradient: linear-gradient(135deg, #001a4d 0%, #0044cc 50%, #0066ff 100%);
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --red-bg: #ffe5e5;
    --red-icon: #ff4d4d;
    --green-bg: #e5ffe9;
    --green-icon: #00cc44;
    --font-main: 'Inter', sans-serif;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: #f8faff;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ANIMATIONS WAOUH --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-anim {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

/* Pulse Glow Effect */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 86, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 86, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 86, 255, 0); }
}
.pulse-anim { animation: pulseGlow 2s infinite; }

/* --- NAVIGATION CORRIGÉE --- */
.navbar {
    background: transparent; /* Transparent au départ */
    padding: 20px 0;
    position: fixed; /* FIXE pour rester au dessus du hero */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

/* État Scrolled (ajouté via JS) */
.navbar.scrolled {
    background-color: #ffffff; /* BLANC SOLIDE FORCÉ */
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Ombre pour séparer du contenu */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff; /* Logo blanc au départ */
    transition: color 0.3s;
}
.navbar.scrolled .logo { color: var(--dark-blue); } /* Logo sombre au scroll */
.logo img {  width: 200px; }

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95); /* Texte blanc au départ */
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.navbar.scrolled .nav-link { color: var(--text-dark); } /* Texte sombre au scroll */

.nav-link:hover, .nav-link.active { 
    color: #fff; 
    text-shadow: 0 0 10px rgba(255,255,255,0.6); 
}
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active { 
    color: var(--primary-blue); 
    text-shadow: none; 
}

/* Underline effect - Main Menu Only */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s;
}
.navbar.scrolled .nav-link::after { background-color: var(--primary-blue); }
.nav-link:hover::after { width: 100%; }

/* --- BUTTONS & ACTIVE STATES --- */
.desktop-buttons { display: flex; gap: 15px; align-items: center; }

/* Bouton Connexion */
.btn-login {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    transition: all 0.3s;
}
.btn-login:hover { background: rgba(255,255,255,0.1); }
.btn-login:active { transform: scale(0.95); } 

.navbar.scrolled .btn-login {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.navbar.scrolled .btn-login:hover { background: var(--primary-blue); color: white; }

.btn-primary {
    background: var(--primary-blue);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 86, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 255, 0.5);
    background: #1a6aff;
    cursor: pointer;
}
.btn-primary:active {
    transform: translateY(1px); 
    box-shadow: 0 2px 10px rgba(0, 86, 255, 0.3);
}

.btn-secondary {
    background: var(--eda-teal-dark);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}
.btn-secondary:hover { 
    background: #fff; 
    color: var(--primary-blue);
    transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0); }
.btn-danger {
    background: rgba(240, 5, 5, 0.227);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(250, 5, 5, 0.2);
    transition: all 0.3s;
}
.btn-danger:hover { 
    background: #fff; 
    color: var(--primary-blue);
    transform: translateY(-2px);
}
.btn-danger:active { transform: translateY(0); }

/* --- HERO SECTION & STARS PRO --- */
.hero {
    position: relative;
    background: var(--hero-gradient);
    padding: 160px 0 220px; /* Padding haut augmenté pour compenser la nav fixed */
    color: #fff;
    overflow: hidden;
}

/* CSS Stars */
.stars-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
}
.stars-layer-1 {
    width: 2px; height: 2px;
    background: white;
    box-shadow: 10vw 10vh #fff, 20vw 50vh #fff, 30vw 20vh #fff, 50vw 80vh #fff, 80vw 10vh #fff, 90vw 60vh #fff, 40vw 40vh #fff;
    animation: twinkle 5s infinite;
    opacity: 0.6;
}
.stars-layer-2 {
    width: 3px; height: 3px;
    background: transparent;
    box-shadow: 15vw 15vh rgba(255,255,255,0.5), 25vw 55vh rgba(255,255,255,0.5), 60vw 30vh rgba(255,255,255,0.5), 70vw 90vh rgba(255,255,255,0.5);
    animation: twinkle 7s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 2;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero-sub {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 35px;
    letter-spacing: 0.5px;
}

/* ESPACEMENT HERO */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px; /* Plus d'espace */
}

.trust-badge {
    font-size: 0.95rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}
.text-yellow { color: #FFD700; }

.hero-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
}

.floating-anim { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0% { transform: translatey(0px); }
    50% { transform: translatey(-20px); }
    100% { transform: translatey(0px); }
}

/* WAVES PRO */
.wave-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    z-index: 3;
    overflow: hidden;
}
.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -1px; 
}
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* --- SECTIONS --- */
.section-challenges, .section-solution { padding: 90px 0; text-align: center; }

.section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-dark);
    font-weight: 800;
}
.text-blue { color: var(--primary-blue); }

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.tag-pill {
    background: #fff;
    padding: 18px 35px 18px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    cursor: default;
}
.tag-pill:hover { 
    transform: translateY(-5px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.icon-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem;
}
.bg-red { background: var(--red-icon); box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4); }
.bg-green { background: var(--green-icon); box-shadow: 0 5px 15px rgba(0, 204, 68, 0.4); }

/* --- FOOTER PRO --- */
.footer-wrapper {
    margin-top: 50px;
    background: var(--hero-gradient);
    color: white;
    position: relative;
    padding-bottom: 30px;
    overflow: hidden;
}

.footer-wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 4;
}

.relative-z { position: relative; z-index: 5; }

.footer-cta { text-align: center; padding: 180px 0 80px; }
.footer-cta h3 { font-size: 2.5rem; margin-bottom: 30px; font-weight: 800; }

.btn-3d-blue {
    background: linear-gradient(to bottom, #4d8aff, #0056ff);
    box-shadow: 0 6px 0 #003bb3, 0 15px 25px rgba(0,0,0,0.4);
    color: white;
    padding: 16px 36px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.1s;
    font-size: 1.1rem;
}
.btn-3d-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #003bb3, 0 20px 30px rgba(0,0,0,0.3); }
.btn-3d-blue:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #003bb3, inset 0 2px 5px rgba(0,0,0,0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
    margin-bottom: 30px;
}

.brand-logo-large img { width: 100px; margin-bottom: 15px; display: block; filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));}
.brand-text .name { display: block; font-size: 1.8rem; font-weight: 800; }
.brand-text .sub { display: block; font-size: 0.8rem; opacity: 0.7; letter-spacing: 2px; text-transform: uppercase;}

.footer-col h4 { margin-bottom: 25px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { 
    color: rgba(255,255,255,0.7); 
    text-decoration: none; 
    transition: 0.3s; 
    display: inline-block;
}
.footer-col ul li a:hover { color: white; transform: translateX(5px); }

/* Newsletter & Socials */
.newsletter-box {
    display: flex;
    background: rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}
.newsletter-box input {
    background: transparent; border: none; color: white; padding: 12px; flex-grow: 1; outline: none;
}
.newsletter-box input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-box button {
    background: var(--primary-blue); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: 0.3s;
}
.newsletter-box button:hover { background: white; color: var(--primary-blue); }
.newsletter-box button:active { transform: scale(0.95); }

.social-icons { display: flex; gap: 15px; }
.social-icons a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.social-icons a:hover { 
    background: var(--primary-blue); 
    transform: translateY(-5px) rotate(360deg); 
    box-shadow: 0 0 15px var(--primary-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}
.legal-links a { color: inherit; margin-left: 20px; text-decoration: none; transition: 0.3s; }
.legal-links a:hover { color: white; }

/* CORRECTION DROPDOWN (MENU PROPRE & LARGE) */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 15px; /* Petit espace pour l'aération */
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); /* Ombre plus douce */
    list-style: none;
    min-width: 280px; /* Élargi pour éviter que "approvisionnement" ne casse */
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    padding: 10px 0;
    border-top: 4px solid var(--primary-blue);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    padding: 12px 25px;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none !important; /* FORCE : PAS DE SOULIGNEMENT */
    border-bottom: none !important;
    white-space: nowrap; /* FORCE : PAS DE RETOUR A LA LIGNE */
    display: block;
}
.dropdown-menu li a:hover { 
    background: #f0f7ff; 
    color: var(--primary-blue); 
    padding-left: 30px; 
    text-decoration: none; /* Toujours pas de soulignement au survol */
}

/* --- AJOUTS SECTIONS CONTENU (TESTIMONIALS, FAQ...) --- */
.section-padding { padding: 100px 0; }
.bg-white { background: #fff; }
.center-text { text-align: center; }

/* Partners Section */
.partners-section {
    padding: 30px 0 60px;
    text-align: center;
    background: #f8faff; 
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.partners-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    opacity: 0.5; 
    color: var(--dark-blue);
}
.partners-grid i:hover { opacity: 1; color: var(--primary-blue); transition: 0.3s; }

/* Features Detailed */
.features-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    text-align: left;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.icon-box-blue {
    width: 60px; height: 60px;
    background: #f0f7ff;
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 25px;
}
.feature-card h3 {
    font-size: 1.3rem; margin-bottom: 15px; color: var(--dark-blue); font-weight: 700;
}
.feature-card p {
    color: var(--text-light); line-height: 1.6; font-size: 0.95rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.review-card {
    background: #f8faff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
}
.review-card .stars { color: #FFD700; margin-bottom: 20px; font-size: 0.9rem; }
.review-text {
    font-style: italic; color: var(--text-dark); font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px;
}
.reviewer { display: flex; align-items: center; gap: 15px; }
.avatar {
    width: 50px; height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.2rem;
}
.avatar.color-2 { background: #8e44ad; }
.avatar.color-3 { background: #27ae60; }
.reviewer .info h4 { font-size: 1rem; color: var(--dark-blue); margin-bottom: 2px; }
.reviewer .info span { font-size: 0.85rem; color: var(--text-light); }

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 50px auto 0;
}
.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}
.faq-question {
    padding: 20px 30px;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question h3 { font-size: 1.1rem; font-weight: 600; color: var(--dark-blue); }
.faq-question i { color: var(--primary-blue); transition: transform 0.3s; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.1s ease;
    color: var(--text-light);
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 150px;
    padding-bottom: 20px;
}
.faq-item.active .faq-question i { transform: rotate(45deg); }

/* --- RESPONSIVE --- */
.mobile-only { display: none; }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 6px; }
.bar { width: 28px; height: 3px; background-color: #fff; border-radius: 2px; transition: 0.3s; }
.navbar.scrolled .bar { background-color: var(--dark-blue); }

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image-wrapper { order: -1; margin-bottom: 40px; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-buttons { justify-content: center; margin-bottom: 40px; } 
    .trust-badge { justify-content: center; margin: 0 auto; margin-top: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%; top: 70px;
        flex-direction: column;
        background: #fff;
        width: 100%;
        height: 100vh;
        text-align: center;
        padding: 40px 20px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    .nav-menu.active { left: 0; }
    .nav-link { color: var(--text-dark) !important; font-size: 1.1rem; }
    .nav-link:hover { color: var(--primary-blue) !important; text-shadow: none; }
    
    .menu-toggle { display: flex; }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .btn-nav-desktop { display: none; }
    .mobile-only { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; width: 100%; }
    .mobile-buttons .btn-login-mobile {
        color: var(--primary-blue); font-weight: 600; text-decoration: none; padding: 12px; border: 1px solid var(--primary-blue); border-radius: 6px;
    }
    .mobile-buttons .btn-nav {
        background: var(--primary-blue); color: white; padding: 12px; border-radius: 6px; text-decoration: none; font-weight: 600;
    }
    
    .dropdown-menu { position: static; box-shadow: none; display: none; background: #f9f9f9; border-top: none; }
    .dropdown.active .dropdown-menu { display: block; opacity: 1; visibility: visible; transform: none; }
    
    .tags-grid { flex-direction: column; align-items: center; }
    .tag-pill { width: 100%; max-width: 320px; justify-content: flex-start; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .newsletter-box, .social-icons { justify-content: center; }
    .brand-logo-large { display: flex; flex-direction: column; align-items: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .legal-links { display: flex; flex-direction: column; gap: 10px; }
    .legal-links a { margin: 0; }
    
    .hero-content h1 { font-size: 2.2rem; }
}

/* --- PAGE FONCTIONNALITÉS STYLES --- */

/* Modules Grid Layout */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.module-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 86, 255, 0.1);
    border-color: rgba(0, 86, 255, 0.1);
}

/* Wide card pour le module Projet qui est dense */
.module-card.wide-card {
    grid-column: 1 / -1;
}

.module-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #e6efff 0%, #f0f7ff 100%);
    color: var(--primary-blue);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.module-card h3 {
    font-size: 1.4rem; color: var(--dark-blue); margin-bottom: 10px; font-weight: 700;
}

.module-objective {
    font-style: italic; color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px;
}

.module-card hr {
    border: 0; border-top: 1px solid rgba(0,0,0,0.05); margin-bottom: 20px;
}

/* Listes de fonctionnalités */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    margin-bottom: 12px;
    display: flex; align-items: start; gap: 10px;
    color: var(--text-dark);
    font-size: 0.95rem;
}
.feature-list li i {
    color: var(--green-icon);
    margin-top: 3px;
    flex-shrink: 0;
}

.feature-list.two-cols {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

/* Tags "Lien avec" */
.module-tags {
    margin-top: 25px;
    display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.tag-badge {
    background: #f0f2f5;
    color: var(--dark-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Section Logic (Scénario) */
.logic-section {
    padding: 100px 0;
    background: var(--cosmic-gradient);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}
.text-white { color: #fff; }
.text-white-70 { color: rgba(255,255,255,0.7); }
.mb-50 { margin-bottom: 50px; }

.logic-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative; z-index: 5;
}

.flow-step {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    width: 200px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}
.flow-step:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.step-num {
    width: 30px; height: 30px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,86,255,0.5);
}

.flow-step h4 { color: white; margin-bottom: 5px; }
.flow-step p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

.arrow { color: rgba(255,255,255,0.3); font-size: 1.5rem; }

/* Visual Project (CSS Art simple) */
.content-row { display: flex; gap: 40px; align-items: center; }
.text-col { flex: 2; }
.visual-col { flex: 1; display: flex; justify-content: center; }

.project-visual {
    background: #f8faff;
    padding: 20px; border-radius: 12px;
    width: 100%; max-width: 250px;
    border: 1px solid rgba(0,0,0,0.05);
}
.p-bar { height: 8px; background: #e0e0e0; border-radius: 4px; margin-bottom: 15px; overflow: hidden; }
.p-fill { height: 100%; background: var(--primary-blue); border-radius: 4px; }
.p-stat { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; font-weight: 600; }
.green { color: var(--green-icon); }
.blue { color: var(--primary-blue); }

/* Responsive Fonctionnalités */
@media (max-width: 992px) {
    .logic-flow { flex-direction: column; gap: 30px; }
    .arrow { transform: rotate(90deg); }
    .content-row { flex-direction: column; }
    .visual-col { display: none; } /* On cache le visuel sur tablette/mobile pour gagner de la place */
}

/* --- HERO SMALL (Pour pages internes) --- */
.hero.hero-small {
    padding: 140px 0 150px;
    min-height: auto;
}
.hero.hero-small h1 { font-size: 3rem; margin-bottom: 10px; }
.hero.hero-small p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; opacity: 0.9; }

/* --- FEATURES SPLIT LAYOUT (Zig Zag) --- */
.feature-split {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}
.split-layout.reverse .split-text { order: 2; }
.split-layout.reverse .split-image { order: 1; }

/* Text Content */
.module-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0, 86, 255, 0.1);
    border-radius: 4px;
}
.module-label.color-2 { color: #8e44ad; background: rgba(142, 68, 173, 0.1); }
.module-label.color-3 { color: #27ae60; background: rgba(39, 174, 96, 0.1); }
.module-label.color-4 { color: #e67e22; background: rgba(230, 126, 34, 0.1); }
.module-label.color-5 { color: #c0392b; background: rgba(192, 57, 43, 0.1); }

.split-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.split-text .lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Detailed List */
.feature-list-detailed .feat-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.feature-list-detailed i {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-top: 4px;
}
.feature-list-detailed strong { display: block; color: var(--text-dark); margin-bottom: 3px; }
.feature-list-detailed p { font-size: 0.95rem; color: var(--text-light); margin: 0; }

/* Badges */
.integration-badge { margin-top: 30px; font-size: 0.9rem; color: var(--text-light); display: flex; align-items: center; gap: 10px; }
.badge {
    background: #f0f2f5; color: var(--text-dark); padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(0,0,0,0.05);
}

/* Image Card Styling */
.image-card {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg); /* Petit effet 3D */
    transition: transform 0.5s ease;
}
.split-layout.reverse .image-card { transform: perspective(1000px) rotateY(5deg); }
.image-card:hover { transform: perspective(1000px) rotateY(0deg); }

.image-card img { width: 100%; border-radius: 8px; display: block; }

.floating-badge {
    position: absolute;
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    font-weight: 600;
    color: var(--green-icon);
    display: flex; align-items: center; gap: 8px;
    z-index: 2;
}
.top-right { top: 20px; right: -20px; }

/* Checklist Pro */
.check-list-pro { list-style: none; }
.check-list-pro li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-dark);
}
.check-list-pro li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--green-icon);
}

/* Finance Flow Visual */
.finance-flow {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8faff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.flow-item { flex: 1; text-align: center; }
.flow-center { font-size: 2rem; color: var(--primary-blue); }
.flow-item h4 { font-size: 1rem; margin-bottom: 5px; }
.flow-item p { font-size: 0.8rem; color: var(--text-light); }
.flow-item.in h4 { color: var(--green-icon); }
.flow-item.out h4 { color: var(--red-icon); }

/* Partners Dark Section */
.bg-dark-blue { background: var(--dark-blue); color: #fff; }
.partners-split-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px;
}
.partner-card {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.icon-circle-lg {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
}
.icon-circle-lg.color-crm { background: #e91e63; }
.white-list { list-style: none; opacity: 0.8; margin-top: 20px; }
.white-list li { margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }

/* Grid Mini (Ventes) */
.feature-grid-mini {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 30px 0;
}
.mini-card {
    background: #f9f9f9; padding: 15px; border-radius: 8px;
    display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem;
}
.mini-card i { color: var(--primary-blue); }

/* Project Cards */
.project-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px;
}
.p-item { background: #f8faff; padding: 15px; border-radius: 8px; text-align: center; }
.p-item h4 { font-size: 0.9rem; margin-bottom: 5px; color: var(--primary-blue); }
.p-item p { font-size: 0.8rem; margin: 0; }

.stat-overlay {
    position: absolute;
    bottom: 20px; left: 20px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
}
.stat-overlay span { font-size: 0.8rem; color: var(--text-light); }
.stat-overlay strong { color: var(--green-icon); font-size: 1.2rem; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .split-layout { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .split-layout.reverse .split-text { order: 1; } /* Reset order mobile */
    .split-layout.reverse .split-image { order: 2; }
    
    .feature-list-detailed .feat-item { justify-content: center; text-align: center; flex-direction: column; gap: 5px; }
    .partners-split-grid { grid-template-columns: 1fr; }
    .finance-flow { flex-direction: column; }
    .image-card { transform: none !important; } /* Disable 3D on mobile */
    .floating-badge { right: 0; left: 0; margin: auto; width: fit-content; top: -15px; }
}

/* --- PRICING PAGE STYLES --- */

/* Switcher Container */
.pricing-switch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
    margin-top: 30px;
    font-weight: 600;
    color: var(--dark-blue);
}

/* The Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-blue); }
input:checked + .slider:before { transform: translateX(26px); }

/* Badges Switch */
.discount-badge {
    background: var(--red-bg);
    color: var(--red-icon);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 5px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center; /* Pour que la carte populaire puisse être plus grande */
}

.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}
.pricing-card:hover { transform: translateY(-10px); }

/* Popular Card Styles */
.pricing-card.popular {
    border: 2px solid var(--primary-blue);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 86, 255, 0.15);
    z-index: 2;
}
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }

.popular-badge {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 86, 255, 0.4);
}

/* Card Content */
.card-header h3 { font-size: 1.5rem; color: var(--dark-blue); margin-bottom: 5px; }
.card-header p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 25px; }

.price-box {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: var(--dark-blue);
    margin-bottom: 5px;
}
.price-box .currency { font-size: 1.5rem; font-weight: 600; margin-right: 5px; }
.price-box .amount { font-size: 3.5rem; font-weight: 800; color: var(--primary-blue); letter-spacing: -2px; }
.price-box .period { color: var(--text-light); font-size: 1rem; margin-left: 5px; }

.billing-text { font-size: 0.85rem; color: var(--text-light); margin-bottom: 30px; height: 20px; opacity: 0; transition: opacity 0.3s; }
/* Afficher billing text si annuel */
.pricing-card.yearly-mode .billing-text { opacity: 1; }

.full-width { width: 100%; display: block; margin-bottom: 30px; text-align: center; }

/* Features List inside Card */
.pricing-features { list-style: none; padding: 0; text-align: left; }
.pricing-features li {
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-features li i { color: var(--green-icon); flex-shrink: 0; }
.pricing-features li.disabled { color: #cbd5e1; text-decoration: line-through; }
.pricing-features li.disabled i { color: #cbd5e1; }

/* --- COMPARISON TABLE --- */
.table-responsive { overflow-x: auto; margin-top: 40px; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.compare-table th, .compare-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
}
.compare-table th {
    background: #f8faff;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 1.1rem;
}
.compare-table th.highlight { background: #f0f7ff; color: var(--primary-blue); border-top: 3px solid var(--primary-blue); }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; font-weight: 600; color: var(--dark-blue); }

.table-section td {
    background: #fcfcfc;
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-light);
    padding-top: 30px;
}

.green { color: var(--green-icon); }
.grey { color: #cbd5e1; }

/* Responsive Pricing */
@media (max-width: 992px) {
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-10px); }
    .compare-table th, .compare-table td { padding: 10px; font-size: 0.9rem; }
}

/* --- DEMO PAGE STYLES --- */

/* Video Wrapper */
.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
    border: 8px solid #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 900px;
    margin: 0 auto 50px;
}
.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 100px rgba(0, 86, 255, 0.2);
}
.video-thumbnail {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}
.video-wrapper:hover .video-thumbnail { transform: scale(1.02); }

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 26, 77, 0.4); /* Dark overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.video-wrapper:hover .video-overlay { background: rgba(0, 26, 77, 0.2); }

.play-btn {
    width: 80px; height: 80px;
    background: #fff;
    border-radius: 50%;
    border: none;
    color: var(--primary-blue);
    font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
    padding-left: 5px; /* Visual center fix for play icon */
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 0 0 0 10px rgba(255,255,255,0.2);
    transition: all 0.3s;
}
.video-wrapper:hover .play-btn {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(255,255,255,0.3);
}
.video-overlay p {
    color: #fff; font-weight: 600; font-size: 1.1rem; letter-spacing: 1px;
}

/* Demo Features Grid (sous la vidéo) */
.demo-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.demo-feat i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.demo-feat h4 { color: var(--dark-blue); margin-bottom: 5px; }
.demo-feat p { color: var(--text-light); font-size: 0.9rem; }

/* Booking Split Layout */
.booking-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.expert-box {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8faff;
    padding: 15px 25px;
    border-radius: 50px;
    width: fit-content;
}
.avatar-group { display: flex; }
.avatar-sm {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-size: cover;
    margin-left: -15px;
}
.avatar-sm:first-child { margin-left: 0; }
.expert-box p { font-size: 0.9rem; font-weight: 600; color: var(--dark-blue); margin: 0; }

/* Booking Form Styles */
.booking-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
}
.booking-form h3 { margin-bottom: 25px; color: var(--dark-blue); text-align: center; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    background: #fcfcfc;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-blue);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 255, 0.1);
}
.form-footer {
    text-align: center; font-size: 0.8rem; color: var(--text-light); margin-top: 15px;
}

/* Responsive Demo */
@media (max-width: 992px) {
    .booking-split { grid-template-columns: 1fr; text-align: center; }
    .expert-box { margin: 30px auto; }
    .demo-features-grid { grid-template-columns: 1fr; gap: 20px; }
    .form-row { grid-template-columns: 1fr; }
}


/* --- ABOUT PAGE STYLES --- */

/* Text Content Styling */
.text-content {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}
.rounded-shadow {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    width: 100%;
    display: block;
}
.bottom-left { bottom: 30px; left: -20px; top: auto; right: auto; }

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.value-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 15px;
    border-top: 4px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    transition: transform 0.3s ease;
}
.value-card:hover { transform: translateY(-10px); }

.icon-box-simple {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}
.value-card h3 { font-size: 1.2rem; color: var(--dark-blue); margin-bottom: 10px; }
.value-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }

/* Stats Section */
.stats-section {
    background: var(--cosmic-gradient);
    padding: 60px 0;
    color: white;
    margin-top: 50px;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}
.stat-item { flex: 1; min-width: 150px; }
.stat-item span {
    font-size: 3rem;
    font-weight: 800;
    display: inline-block;
    background: -webkit-linear-gradient(#fff, #a2c2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-item p {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.team-card {
    text-align: center;
    background: transparent;
}
.team-img {
    width: 100%;
    aspect-ratio: 1/1; /* Carré */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.team-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.team-card:hover .team-img img { transform: scale(1.1); }

/* Social Overlay on Hover */
.social-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.team-card:hover .social-overlay { opacity: 1; transform: translateY(0); }

.social-overlay a {
    color: white;
    background: rgba(255,255,255,0.2);
    width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}
.social-overlay a:hover { background: var(--primary-blue); transform: scale(1.1); }

.team-info h4 { font-size: 1.1rem; color: var(--dark-blue); margin-bottom: 5px; }
.team-info span { font-size: 0.9rem; color: var(--primary-blue); font-weight: 500; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-grid { flex-direction: column; gap: 40px; }
    .bottom-left { position: static; margin-top: -20px; margin-left: 20px; }
}

/* --- CONTACT PAGE STYLES --- */

/* Wrapper Grid */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

/* Contact Info Cards */
.contact-cards-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}
.info-card:hover { transform: translateX(10px); box-shadow: 0 10px 30px rgba(0, 86, 255, 0.08); }

.info-text h4 { font-size: 1.1rem; color: var(--dark-blue); margin-bottom: 5px; }
.info-text p { color: var(--text-light); margin-bottom: 10px; font-size: 0.95rem; }

.link-arrow {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}
.link-arrow:hover { gap: 12px; }

/* Styles spécifiques pour le Textarea */
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fcfcfc;
    resize: vertical;
    transition: 0.3s;
}
textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 255, 0.1);
}

/* Map Section */
.map-section {
    position: relative;
    height: 450px;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}
.map-section iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) invert(92%) hue-rotate(200deg); /* Effet "Blue Tech" sur la carte */
}
/* Overlay pour intégrer la carte doucement */
.map-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, #f8faff 0%, transparent 50%, transparent 50%, var(--footer-bg) 100%);
    pointer-events: none; /* Permet de cliquer sur la carte */
}

/* Responsive Contact */
@media (max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .contact-info-col { order: 2; }
    .contact-form-col { order: 1; }
    .info-card { flex-direction: column; text-align: center; align-items: center; }
}

/* --- REGISTER WIZARD STYLES --- */

.register-section {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: transparent;
    position: relative;
    z-index: 2;
}
.fixed-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
    background: var(--cosmic-gradient);
}

/* Progress Bar */
.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.step {
    text-align: center;
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 500;
}
.step-circle {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
    transition: 0.3s;
}
.step.active { color: white; }
.step.active .step-circle {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0,86,255,0.5);
}
.step.completed .step-circle {
    background: #2ecc71; border-color: #2ecc71;
}
.line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 10px;
    transform: translateY(-14px); /* Align with circle center */
}
.line.active { background: #2ecc71; }

/* Wizard Card */
.wizard-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 900px;
    margin: 0 auto;
    min-height: 500px;
}

.step-title {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}
.step-desc { text-align: center; color: var(--text-light); margin-top: -20px; margin-bottom: 30px; }

/* Form Steps Visibility */
.form-step { display: none; animation: fadeIn 0.5s ease; }
.form-step.active { display: block; }

/* Step 1: Plans Selection */
.plans-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.plan-select-card {
    position: relative;
    cursor: pointer;
}
.plan-select-card input { position: absolute; opacity: 0; }
.plan-content {
    border: 2px solid #f0f2f5;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    transition: 0.3s;
    height: 100%;
}
.plan-select-card input:checked + .plan-content {
    border-color: var(--primary-blue);
    background: #f0f7ff;
    box-shadow: 0 10px 20px rgba(0,86,255,0.1);
}
.badge-trial {
    background: #2ecc71; color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 10px;
    position: absolute; top: 10px; right: 10px;
}
.rec-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary-blue); color: white; padding: 4px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: bold;
}
.plan-content h3 { font-size: 1.1rem; color: var(--dark-blue); margin-bottom: 10px; }
.plan-content .price { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); }
.plan-content ul { list-style: none; margin-top: 15px; font-size: 0.85rem; color: var(--text-light); }

/* Step 2: Payment */
.billing-summary {
    background: #f8faff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.summary-row.total { border-top: 1px solid #ddd; padding-top: 10px; font-size: 1.2rem; }

.payment-methods {
    display: flex; gap: 15px; margin-bottom: 25px;
}
.payment-card {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.payment-card:hover { background: #f9f9f9; }
.payment-card input { display: none; }
.payment-card.selected {
    border-color: var(--primary-blue);
    background: #f0f7ff;
    color: var(--primary-blue);
    font-weight: 600;
}
.payment-card i { font-size: 1.5rem; display: block; margin-bottom: 5px; }

.payment-details { display: none; }
.payment-details.active { display: block; animation: fadeIn 0.3s; }

.input-icon { position: relative; }
.input-icon i { position: absolute; left: 15px; top: 14px; color: #999; }
.input-icon input { padding-left: 40px; }

/* Step 3: Company */
.company-form { max-width: 600px; margin: 0 auto; }
.avatar-upload { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.avatar-preview {
    width: 60px; height: 60px; background: #e0e0e0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white;
}
.btn-small { background: #eee; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; }

/* Step 4: Success */
.success-icon-lg {
    font-size: 4rem; color: #2ecc71; margin-bottom: 20px;
    animation: bounceIn 0.8s;
}
.credentials-box {
    background: #1e293b;
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    margin: 30px auto;
    max-width: 500px;
    border: 1px solid rgba(255,255,255,0.1);
}
.credentials-box h4 { color: #fff; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
.warning-text { color: #f1c40f; font-size: 0.9rem; margin-bottom: 20px; }
.cred-row {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0,0,0,0.3); padding: 12px; border-radius: 8px; margin-bottom: 10px;
    font-family: monospace; font-size: 1.1rem;
}
.cred-row .value.blur { filter: blur(5px); transition: 0.3s; }
.cred-row .value.blur.visible { filter: blur(0); }
.btn-icon { background: none; border: none; color: #aaa; cursor: pointer; }
.btn-copy {
    width: 100%; background: var(--primary-blue); color: white; border: none; padding: 10px; border-radius: 6px; margin-top: 15px; cursor: pointer; font-weight: 600;
}

/* Footer & Buttons */
.wizard-footer {
    display: flex; justify-content: space-between; margin-top: 40px; border-top: 1px solid #f0f0f0; padding-top: 20px;
}
.wizard-footer.center { justify-content: center; }

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 10000;
    display: none; align-items: center; justify-content: center;
}
.modal-content {
    background: white; padding: 40px; border-radius: 20px; text-align: center;
    animation: zoomIn 0.3s;
}
.loader-spinner {
    border: 5px solid #f3f3f3; border-top: 5px solid var(--primary-blue);
    border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin: 0 auto 20px;
}
.icon-check {
    font-size: 3rem; color: #2ecc71; margin-bottom: 15px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes bounceIn { 0% { transform: scale(0); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Responsive */
@media (max-width: 768px) {
    .wizard-progress { display: none; } /* Hide steps on mobile to save space */
    .plans-selection-grid { grid-template-columns: 1fr; }
    .billing-form-grid { grid-template-columns: 1fr; }
    .wizard-card { padding: 20px; }
}

/* --- WIZARD FIXES & ADDITIONS --- */

/* Error styling */
.error-msg {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
    display: none; /* Hidden by default */
    font-weight: 600;
}
.error-msg.visible { display: block; animation: shake 0.4s; }

/* Input Error State */
input.input-error, select.input-error {
    border-color: #e74c3c !important;
    background-color: #fff6f6 !important;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Logo Preview Image Fit */
.avatar-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Cursor pointer for steps allowing navigation */
.wizard-progress .step { cursor: default; }
.wizard-progress .step.completed, 
.wizard-progress .step.active { cursor: pointer; }

/* Responsive tweaks */
@media (max-width: 600px) {
    .wizard-progress .step span { display: none; } /* Hide labels on very small screens */
    .wizard-progress .step-circle { margin: 0; }
    .plans-selection-grid { grid-template-columns: 1fr; }
}

/* ===========================================
   CHATBOT OPTIBIZ AI PRO - STYLES AVANCÉS
   =========================================== */

/* Bouton amélioré */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a6aff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 86, 255, 0.5);
    z-index: 9998;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid white;
    overflow: hidden;
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.chatbot-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 15px 40px rgba(0, 86, 255, 0.7);
}

.chatbot-toggle.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { 
        box-shadow: 0 0 0 0 rgba(0, 86, 255, 0.7),
                    0 5px 25px rgba(0, 86, 255, 0.5); 
    }
    70% { 
        box-shadow: 0 0 0 20px rgba(0, 86, 255, 0),
                    0 10px 35px rgba(0, 86, 255, 0.6); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(0, 86, 255, 0),
                    0 5px 25px rgba(0, 86, 255, 0.5); 
    }
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    animation: badge-bounce 0.5s ease-out;
    z-index: 1;
}

@keyframes badge-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Conteneur amélioré */
.chatbot-container {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 420px;
    max-width: calc(100vw - 60px);
    height: 650px;
    max-height: 75vh;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.chatbot-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* En-tête premium */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a6aff 100%);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.chatbot-header::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 100 100" preserveAspectRatio="none" opacity="0.1"><path d="M0,0 L100,0 L100,100 Z" fill="white"/></svg>');
    background-size: cover;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.chatbot-header-content i {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.25);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chatbot-header-text h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.chatbot-header-text p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Zone des messages améliorée */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    position: relative;
}

.chatbot-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.chat-message {
    max-width: 88%;
    animation: messageSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: bottom;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-message {
    align-self: flex-end;
}

.bot-message {
    align-self: flex-start;
}

.message-content {
    padding: 18px;
    border-radius: 22px;
    position: relative;
    word-wrap: break-word;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a6aff 100%);
    color: white;
    border-bottom-right-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 86, 255, 0.3);
}

.bot-message .message-content {
    background: white;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom-left-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.bot-message .message-content strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.bot-message .message-content em {
    color: var(--text-light);
    font-style: italic;
}

.message-time {
    font-size: 0.75rem;
    margin-top: 8px;
    text-align: right;
    opacity: 0.7;
    font-weight: 500;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.bot-message .message-time {
    color: var(--text-light);
}

/* Indicateur de frappe amélioré */
.typing-indicator {
    padding: 20px;
    align-self: flex-start;
    display: none;
}

.typing-indicator.active {
    display: block;
}

.typing-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.typing-dots span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a6aff 100%);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 86, 255, 0.3);
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { 
        transform: scale(0.8); 
        opacity: 0.5;
        box-shadow: 0 1px 4px rgba(0, 86, 255, 0.2);
    }
    40% { 
        transform: scale(1.1); 
        opacity: 1;
        box-shadow: 0 3px 12px rgba(0, 86, 255, 0.4);
    }
}

.typing-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    display: block;
    margin-top: 5px;
}

/* Zone de saisie premium */
.chatbot-input-container {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    padding: 20px;
    flex-shrink: 0;
    position: relative;
}

.chatbot-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 86, 255, 0.2), transparent);
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-question {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    border: 1px solid rgba(0, 86, 255, 0.2);
    color: var(--primary-blue);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.quick-question:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a6aff 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 86, 255, 0.3);
    border-color: transparent;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

#chatInput {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e6f0ff;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8faff;
    color: var(--text-dark);
}

#chatInput:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 86, 255, 0.15);
    transform: translateY(-2px);
}

#sendMessage, #clearChat {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1.1rem;
    border: none;
}

#sendMessage {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a6aff 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(0, 86, 255, 0.4);
}

#sendMessage:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 86, 255, 0.5);
}

#clearChat {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

#clearChat:hover {
    background: #f1f3f5;
    color: var(--text-dark);
    transform: translateY(-2px);
    border-color: #dee2e6;
}

.chatbot-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.chatbot-footer span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    transition: all 0.3s;
}

.chatbot-footer span:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Suggestions de suivi */
.suggestions-followup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 86, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
}

.suggestion-btn {
    background: white;
    border: 1px solid rgba(0, 86, 255, 0.2);
    color: var(--primary-blue);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.suggestion-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a6aff 100%);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 86, 255, 0.2);
}

/* Messages de statut */
.status-message {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 10px 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 86, 255, 0.08) 0%, rgba(0, 86, 255, 0.04) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 86, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Scrollbar personnalisée */
.chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(0, 86, 255, 0.05);
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a6aff 100%);
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1a6aff 0%, #0056ff 100%);
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 100px;
        height: 70vh;
        border-radius: 20px;
    }
    
    .chatbot-toggle {
        bottom: 25px;
        right: 25px;
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
    
    .chatbot-header {
        padding: 20px;
    }
    
    .chatbot-header-content i {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .chatbot-header-text h3 {
        font-size: 1.2rem;
    }
    
    .quick-questions {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    .quick-questions::-webkit-scrollbar {
        height: 4px;
    }
    
    .quick-questions::-webkit-scrollbar-thumb {
        background: rgba(0, 86, 255, 0.3);
        border-radius: 2px;
    }
    
    #chatInput {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    #sendMessage, #clearChat {
        width: 48px;
        height: 48px;
    }
    
    .suggestions-followup {
        margin: 10px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100vw - 30px);
        right: 15px;
        bottom: 90px;
        height: 65vh;
    }
    
    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .chatbot-messages {
        padding: 15px;
    }
    
    .message-content {
        padding: 15px;
    }
    
    .chatbot-input-container {
        padding: 15px;
    }
}

/* Animation d'entrée */
@keyframes slideInUpChat {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Indicateur de performance (debug) */
.perf-indicator {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-family: monospace;
    z-index: 10000;
    display: none;
}

.perf-indicator.visible {
    display: block;
}

/* Badge IA Pro */
.ai-pro-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff8a00 0%, #ff0058 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 0, 88, 0.3);
    animation: badgeGlow 2s infinite alternate;
}

@keyframes badgeGlow {
    from {
        box-shadow: 0 4px 15px rgba(255, 0, 88, 0.3);
    }
    to {
        box-shadow: 0 4px 25px rgba(255, 0, 88, 0.5);
    }
}

/* ===========================================
   CHATBOT IA PRO - STYLES INTELLIGENTS
   =========================================== */

/* Animation des questions dynamiques */
.dynamic-question {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dynamic-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.dynamic-question:hover::before {
    left: 100%;
}

@keyframes questionClicked {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); box-shadow: 0 5px 15px rgba(0,86,255,0.4); }
    100% { transform: scale(1); }
}

/* Indicateur de frappe IA avancé */
.ai-typing {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid rgba(0,86,255,0.1);
    margin: 10px 0;
    align-self: flex-start;
    max-width: 70%;
    animation: typingAppear 0.3s ease-out;
}

@keyframes typingAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-thinking {
    display: flex;
    gap: 6px;
}

.ai-pulse {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a6aff 100%);
    border-radius: 50%;
    animation: aiPulse 1.4s infinite ease-in-out;
    box-shadow: 0 2px 8px rgba(0,86,255,0.3);
}

.ai-pulse:nth-child(1) { animation-delay: -0.32s; }
.ai-pulse:nth-child(2) { animation-delay: -0.16s; }

@keyframes aiPulse {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 3px 12px rgba(0,86,255,0.5);
    }
}

.typing-text {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary-blue), #1a6aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textShimmer 2s infinite;
}

@keyframes textShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Suggestions intelligentes */
.smart-suggestions {
    background: linear-gradient(135deg, rgba(0,86,255,0.05) 0%, rgba(0,86,255,0.02) 100%);
    border-radius: 15px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(0,86,255,0.1);
    border-left: 4px solid var(--primary-blue);
    animation: suggestionsSlide 0.4s ease-out;
}

@keyframes suggestionsSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.suggestion-header {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-header::before {
    content: '💡';
    font-size: 1rem;
}

.smart-suggestion-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    margin: 5px 0;
    background: white;
    border: 1px solid rgba(0,86,255,0.15);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.smart-suggestion-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a6aff 100%);
    color: white;
    transform: translateX(5px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0,86,255,0.2);
}

.smart-suggestion-btn::after {
    content: '→';
    position: absolute;
    right: 15px;
    opacity: 0;
    transition: all 0.3s;
}

.smart-suggestion-btn:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

/* Badge avec notification */
.chatbot-badge.has-unread {
    animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,71,87,0.7);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255,71,87,0);
    }
}

/* Animation de notification */
.notification-pulse {
    animation: notificationPing 1s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes notificationPing {
    75%, 100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Messages de statut améliorés */
.status-message {
    text-align: center;
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 12px;
    font-size: 0.85rem;
    animation: statusSlide 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-info {
    background: linear-gradient(135deg, rgba(0,86,255,0.1) 0%, rgba(0,86,255,0.05) 100%);
    border: 1px solid rgba(0,86,255,0.2);
    color: var(--primary-blue);
}

.status-success {
    background: linear-gradient(135deg, rgba(46,204,113,0.1) 0%, rgba(46,204,113,0.05) 100%);
    border: 1px solid rgba(46,204,113,0.2);
    color: #2ecc71;
}

@keyframes statusSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Texte enrichi dans les messages */
.message-content strong {
    color: var(--primary-blue);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.message-content strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), transparent);
    border-radius: 1px;
}

/* Emojis animés */
.message-content p {
    position: relative;
}

.message-content p::selection {
    background: rgba(0,86,255,0.2);
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .ai-typing {
        max-width: 85%;
        padding: 12px 15px;
    }
    
    .smart-suggestions {
        margin: 10px;
        padding: 12px;
    }
    
    .smart-suggestion-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .dynamic-question {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}

/* Animation d'apparition des messages */
@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-message {
    animation: messageAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Gradient intelligent pour le bouton principal */
.chatbot-toggle {
    background: linear-gradient(135deg, 
        #0056ff 0%,
        #1a6aff 25%,
        #0056ff 50%,
        #1a6aff 75%,
        #0056ff 100%
    );
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Effet de profondeur */
.chatbot-container {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
}

/* Animation de l'icône IA */
.chatbot-header-content i {
    animation: aiFloat 3s ease-in-out infinite;
}

@keyframes aiFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* =========================================
   EDA-SOLUTIONS - OVERRIDES & NOUVELLE CHARTE
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Fallback pour Cute Maple si non hébergée localement, on utilise une police cursive douce ou on force Montserrat */
@font-face {
    font-family: 'Cute Maple';
    src: local('Cute Maple'), local('Comic Sans MS'); /* Remplacer par le chemin de votre police locale si dispo */
}

:root {
    /* Nouvelles Couleurs EDA-SOLUTIONS */
    --eda-orange: #F26A21;
    --eda-teal-dark: #0F3D3E;
    --eda-black: #111111;
    --eda-light: #F4F4F4;
    --eda-gray: #6D6D6D;
    --eda-teal: #1F6F70;
    
    /* Remplacement des variables existantes pour impacter tout le site */
    --primary-blue: var(--eda-teal);
    --dark-blue: var(--eda-teal-dark);
    --hero-gradient: linear-gradient(135deg, var(--eda-teal-dark) 0%, var(--eda-teal) 100%);
    --cosmic-gradient: linear-gradient(135deg, var(--eda-black) 0%, var(--eda-teal-dark) 50%, var(--eda-teal) 100%);
    --text-dark: var(--eda-black);
    --text-light: var(--eda-gray);
    
    /* Polices */
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--eda-light);
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: var(--font-heading);
}

/* Accentuation Orange */
.text-orange { color: var(--eda-orange); }
.highlight { 
    color: var(--eda-orange); 
    position: relative;
    z-index: 1;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(242, 106, 33, 0.2);
    z-index: -1;
}

/* Boutons modifiés */
.btn-primary, .btn-3d-blue {
    background: var(--eda-orange) !important;
    box-shadow: 0 4px 15px rgba(242, 106, 33, 0.3) !important;
    color: white !important;
}
.btn-primary:hover, .btn-3d-blue:hover {
    background: #e55a15 !important;
    box-shadow: 0 8px 25px rgba(242, 106, 33, 0.5) !important;
}

/* --- NAV EXTRAS : LANGUE & RECHERCHE --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.lang-switch a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 2px 5px;
    transition: 0.3s;
}
.navbar.scrolled .lang-switch a { color: var(--eda-teal-dark); }
.lang-switch a.active { color: var(--eda-orange); border-bottom: 2px solid var(--eda-orange); }

.search-icon {
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}
.navbar.scrolled .search-icon { color: var(--eda-teal-dark); }
.search-icon:hover { color: var(--eda-orange); }

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 61, 62, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.search-overlay.active { top: 0; }
.close-search {
    position: absolute;
    top: 40px;
    right: 50px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}
.close-search:hover { color: var(--eda-orange); transform: rotate(90deg); }
.search-box { width: 80%; max-width: 800px; position: relative; }
.search-box input {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 2.5rem;
    font-family: var(--font-heading);
}
.search-box input:focus { outline: none; border-color: var(--eda-orange); }
.search-box button {
    position: absolute;
    right: 0;
    bottom: 25px;
    background: transparent;
    border: none;
    color: var(--eda-orange);
    font-size: 2rem;
    cursor: pointer;
}

/* --- BOUTON WHATSAPP FLOTTANT --- */
.whatsapp-toggle {
    position: fixed;
    bottom: 110px; /* Au dessus du chatbot */
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all 0.3s;
    text-decoration: none;
}
.whatsapp-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* =========================================
   FIXES RESPONSIVE MENU & BLOG EDA-SOLUTIONS
   ========================================= */

/* Affichage dynamique du nom de l'entreprise si le logo échoue */
.fallback-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}
.navbar.scrolled .fallback-text { color: var(--eda-teal-dark); }

.desktop-only { display: flex; }
.mobile-only { display: none; }



/* =========================================
   STYLES SECTION BLOG
   ========================================= */
.bg-light { background-color: #F8F9FA; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.blog-img { position: relative; height: 220px; width: 100%; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }

.blog-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--eda-orange);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.blog-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-date { color: var(--text-light); font-size: 0.85rem; margin-bottom: 12px; display: block; }
.blog-content h3 { font-size: 1.25rem; margin-bottom: 15px; line-height: 1.4; }
.blog-content h3 a { color: var(--eda-teal-dark); text-decoration: none; transition: 0.3s; }
.blog-content h3 a:hover { color: var(--eda-orange); }
.blog-content p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; flex-grow: 1; }
.blog-content .link-arrow { margin-top: auto; font-weight: 600; }





/* --- RESPONSIVE NAVBAR FIXES --- */
.desktop-only { display: flex; }
.mobile-only { display: none; }



/* --- EFFETS DE SURVOL PUISSANTS (BOUTONS & CARDS) --- */

/* Boutons */
.btn-primary, .btn-secondary, .btn-3d-blue {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.btn-primary:hover, .btn-3d-blue:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 35px rgba(242, 106, 33, 0.4) !important;
    background: #e55a15 !important;
}
.btn-secondary { border-width: 2px; }
.btn-secondary:hover {
    transform: translateY(-5px) scale(1.05) !important;
    background: var(--eda-teal) !important;
    border-color: var(--eda-teal) !important;
    color: white !important;
    box-shadow: 0 15px 35px rgba(31, 111, 112, 0.3) !important;
}

/* Cartes Services & Portfolio & Blog */
.feature-card, .partner-card, .blog-card, .review-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
}
.feature-card:hover, .review-card:hover {
    transform: translateY(-10px);
    border-color: rgba(242, 106, 33, 0.3);
    box-shadow: 0 25px 50px rgba(15, 61, 62, 0.08);
}
.partner-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(242, 106, 33, 0.15);
    background: rgba(255,255,255,0.1);
}
.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.blog-card:hover h3 a { color: var(--eda-orange); }

/* --- CORRECTION WAVE FOOTER --- */
.footer-wrapper {
    margin-top: 0; /* Retire l'espace blanc au dessus */
    position: relative;
    padding-top: 50px; /* Donne de l'espace pour la vague */
}
.footer-wave-top {
    position: absolute;
    top: -1px; /* Colle parfaitement au haut du footer */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.footer-wave-top svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 70px; /* Assure une bonne hauteur de vague */
}

/* =========================================
   FIX RESPONSIVE NAVBAR ULTRA-PROPRE
   ========================================= */
.desktop-only { display: flex; }
.mobile-only { display: none; }



/* =========================================
   ANIMATION WHATSAPP "CLIQUE-MOI"
   ========================================= */
@keyframes waClickMe {
    0%, 100% { transform: scale(1) rotate(0deg); }
    10%, 30% { transform: scale(1.1) rotate(-10deg); }
    20%, 40% { transform: scale(1.1) rotate(10deg); }
    50% { transform: scale(1) rotate(0deg); }
}
.whatsapp-toggle {
    /* Styles existants conservés */
    position: fixed; bottom: 110px; right: 30px; width: 60px; height: 60px;
    background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; cursor: pointer; z-index: 9998; text-decoration: none;
    
    /* Nouvelle animation dynamique */
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulse-wa 2s infinite, waClickMe 4s infinite ease-in-out;
}
.whatsapp-toggle:hover { animation: none; transform: scale(1.15); box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6); }

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   STYLES DU MODAL D'AVIS
   ========================================= */
.review-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 61, 62, 0.9); /* Fond Teal Dark transparent */
    z-index: 100000; display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
}
.review-modal-overlay.active { display: flex; animation: fadeIn 0.3s; }
.review-modal-content {
    background: white; width: 90%; max-width: 500px; padding: 40px;
    border-radius: 20px; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease-out;
}
.close-review {
    position: absolute; top: 20px; right: 20px; font-size: 1.5rem;
    color: var(--eda-gray); cursor: pointer; transition: 0.3s;
}
.close-review:hover { color: var(--eda-orange); transform: rotate(90deg); }

.star-rating-select { display: flex; gap: 10px; font-size: 2rem; color: #ccc; cursor: pointer; margin-bottom: 10px;}
.star-rating-select i { transition: 0.2s; }
.star-rating-select i.active, .star-rating-select i:hover ~ i { color: #ccc; } /* Reset others */
.star-rating-select i.active, .star-rating-select i.hovered { color: #FFD700; font-weight: 900; } /* Font weight 900 makes FontAwesome star solid */

/* =========================================
   FIX ULTIME NAVBAR MOBILE (GAUCHE / DROITE)
   ========================================= */

.desktop-only { display: flex; }
.mobile-only { display: none; }

@media (max-width: 992px) {
    .navbar.scrolled {
    background-color: var(--eda-teal-dark); 
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Ombre pour séparer du contenu */
}
    /* 1. Cacher tout ce qui est pour l'ordi */
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    /* 2. Fixer la barre en haut avec la bonne couleur */
    .navbar { 
        /* background: var(--eda-teal-dark) !important;  */
        padding: 15px 20px !important;
        height: 70px !important; /* Hauteur fixe pour éviter les sauts */
    }
    
    /* 3. Conteneur strict : Logo à gauche, Menu à droite */
    .navbar .nav-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
    }
    
    /* 4. Le Logo bloqué à gauche */
    .navbar .logo { 
        display: flex !important; 
        align-items: center !important; 
        gap: 10px !important;
        max-width: 80% !important; /* Ne peut pas dépasser 80% de l'écran */
        overflow: hidden !important; /* Coupe ce qui dépasse */
    }
    .navbar .logo img { 
        /* height: 35px !important;  */
        width: 200px !important; 
        display: block !important;
    } 
    .navbar .logo .logo-text { 
        font-size: 1.1rem !important; 
        color: white !important; 
        font-weight: 800 !important;
        white-space: nowrap !important; /* Empêche le texte de revenir à la ligne (le problème de tes images) */
        text-overflow: ellipsis !important; /* Ajoute "..." si l'écran est trop petit */
    }

    /* 5. Les 3 barres bloquées à droite */
    .menu-toggle { 
        display: flex !important; 
        flex-direction: column !important; 
        justify-content: space-between !important;
        width: 30px !important;
        height: 20px !important;
        cursor: pointer !important; 
        z-index: 10000 !important; 
        margin-left: auto !important;
    }
    .menu-toggle .bar { 
        width: 100% !important; 
        height: 3px !important; 
        background: white !important; 
        transition: 0.3s !important; 
        border-radius: 5px !important;
    }
    
    /* Animation Croix "X" */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg) !important; background: var(--eda-teal-dark) !important; }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0 !important; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg) !important; background: var(--eda-teal-dark) !important; }

    /* 6. Le Menu plein écran (Panneau blanc) */
    .nav-menu {
        position: fixed !important; 
        top: 0 !important; 
        left: -100% !important; 
        width: 100% !important; 
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important; 
        align-items: center !important; 
        justify-content: flex-start !important;
        padding-top: 90px !important; /* Espace pour la croix */
        padding-bottom: 50px !important;
        transition: left 0.4s ease !important;
        overflow-y: auto !important; 
        z-index: 9999 !important;
    }
    .nav-menu.active { left: 0 !important; }
    
    /* Style des liens dans le menu blanc */
    .nav-menu li { width: 100% !important; text-align: center !important; margin-bottom: 15px !important; }
    .nav-menu .nav-link { 
        color: var(--eda-teal-dark) !important; 
        font-size: 1.3rem !important; 
        font-weight: 600 !important; 
        padding: 10px !important; 
        display: inline-block !important;
    }
    .nav-menu .nav-link:hover { color: var(--eda-orange) !important; }

    /* 7. Les outils intégrés DANS le menu (Recherche & Langue) */
    .mobile-menu-tools {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 90% !important;
        margin: 0 auto 30px auto !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid #eee !important;
    }
    .mobile-search-box {
        display: flex !important; 
        width: 100% !important;
        background: #f4f4f4 !important; 
        border-radius: 8px !important; 
        overflow: hidden !important;
        margin-bottom: 15px !important;
    }
    .mobile-search-box input {
        flex: 1 !important; border: none !important; background: transparent !important; padding: 12px 15px !important; font-size: 1rem !important; outline: none !important;
    }
    .mobile-search-box button {
        background: var(--eda-orange) !important; color: white !important; border: none !important; padding: 0 20px !important; cursor: pointer !important;
    }
    
    .mobile-lang { 
        display: flex !important; 
        gap: 10px !important; 
        font-size: 1.1rem !important; 
        font-weight: 700 !important; 
    }
    .mobile-lang a { color: var(--eda-gray) !important; text-decoration: none !important; }
    .mobile-lang a.active { color: var(--eda-orange) !important; }
    .mobile-lang span { color: #ccc !important; }

    /* 8. Sous-menu Services (Dropdown) */
    .dropdown-menu { 
        display: none !important; 
        background: #f8f9fa !important; 
        border-radius: 10px !important; 
        width: 85% !important; 
        margin: 10px auto 0 !important; 
        padding: 15px 0 !important; 
        box-shadow: inset 0 5px 10px rgba(0,0,0,0.05) !important;
    }
    .dropdown.active .dropdown-menu { display: block !important; }
    .dropdown-menu li { margin-bottom: 15px !important; }
    .dropdown-menu li a { font-size: 1.1rem !important; color: var(--eda-teal-dark) !important; font-weight: 500 !important;}
}

/* Utilitaires pour la page A propos */
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* On s'assure que sur mobile les cartes Mission/Vision passent en une colonne */
@media (max-width: 768px) {
    .mission-vision .features-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   STYLE SECTION PROCESSUS (CIRCUIT RÉEL - PCB)
   ========================================= */

/* Fond façon grille de composants */
.tech-grid-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(31, 111, 112, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 111, 112, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    opacity: 0.5;
}

/* Le conteneur du circuit */
.pcb-circuit-timeline {
    position: relative;
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 20px 0;
}

/* LE BUS PRINCIPAL (La piste verticale centrale) */
.pcb-main-bus {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 6px;
    background: #0f3d3e; /* Couleur de base sombre */
    border-left: 1px solid var(--eda-teal);
    border-right: 1px solid var(--eda-teal);
    box-shadow: 0 0 15px rgba(31, 111, 112, 0.5), inset 0 0 5px rgba(0,0,0,0.8);
    border-radius: 3px;
    z-index: 1;
}

/* L'IMPULSION ÉLECTRIQUE (Données qui circulent) */
.data-pulse {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px 5px var(--eda-orange), 0 0 40px 10px var(--eda-teal);
    animation: flowDown 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

@keyframes flowDown {
    0% { top: -50px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* LIGNES ET NOEUDS */
.pcb-node {
    position: relative;
    width: 50%;
    margin-bottom: 50px;
    z-index: 3;
}
.pcb-node.left { left: 0; padding-right: 60px; }
.pcb-node.right { left: 50%; padding-left: 60px; }

/* PISTE HORIZONTALE (La liaison vers la carte) */
.pcb-trace-horizontal {
    position: absolute;
    top: 50px;
    height: 4px;
    background: var(--eda-teal);
    box-shadow: 0 0 10px rgba(31, 111, 112, 0.8);
    z-index: 1;
}
.pcb-node.left .pcb-trace-horizontal { right: 0; width: 60px; }
.pcb-node.right .pcb-trace-horizontal { left: 0; width: 60px; background: var(--eda-orange); box-shadow: 0 0 10px rgba(242, 106, 33, 0.8); }

/* LE PAD DE SOUDURE (Les ronds numérotés) */
.pcb-pad {
    position: absolute;
    top: 35px;
    width: 34px;
    height: 34px;
    background: #111;
    border: 3px solid var(--eda-teal);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--eda-teal);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.pcb-node.left .pcb-pad { right: -17px; }
.pcb-node.right .pcb-pad { left: -17px; border-color: var(--eda-orange); box-shadow: 0 0 15px var(--eda-orange); }

.pad-core {
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    font-family: monospace;
}

.pcb-node:hover .pcb-pad { transform: scale(1.3); background: var(--eda-teal); }
.pcb-node.right:hover .pcb-pad { background: var(--eda-orange); }

/* LA CARTE MICRO-PUCE (Les boîtes de texte) */
.pcb-microchip {
    background: rgba(17, 17, 17, 0.8);
    border: 2px solid rgba(31, 111, 112, 0.5);
    border-radius: 8px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.4s;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.5);
}
.pcb-microchip.border-orange { border-color: rgba(242, 106, 33, 0.5); }

.pcb-microchip:hover {
    border-color: var(--eda-teal);
    box-shadow: inset 0 0 20px rgba(31, 111, 112, 0.2), 0 15px 40px rgba(0,0,0,0.6), 0 0 20px rgba(31, 111, 112, 0.4);
    transform: translateY(-5px);
}
.pcb-microchip.border-orange:hover {
    border-color: var(--eda-orange);
    box-shadow: inset 0 0 20px rgba(242, 106, 33, 0.2), 0 15px 40px rgba(0,0,0,0.6), 0 0 20px rgba(242, 106, 33, 0.4);
}

/* LES BROCHES (Les petits carrés dorés de la puce) */
.chip-pins {
    height: 8px;
    width: 80%;
    margin: 0 auto;
    background: repeating-linear-gradient(90deg, #A67C00 0, #A67C00 10px, transparent 10px, transparent 20px);
    opacity: 0.7;
}
.chip-pins.top { border-radius: 0 0 4px 4px; }
.chip-pins.bottom { border-radius: 4px 4px 0 0; }

.chip-content {
    padding: 25px 30px;
    color: #fff;
    text-align: left;
}
.chip-content h3 {
    font-size: 1.3rem;
    color: var(--eda-teal);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: monospace; /* Vibe technique */
}
.chip-content p {
    color: #b0c4c4;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   RESPONSIVE DU CIRCUIT
   ========================================= */
@media (max-width: 768px) {
    /* Le bus se décale à gauche */
    .pcb-main-bus {
        left: 20px;
        transform: none;
    }
    
    .data-pulse { left: 3px; transform: none; }
    
    /* Toutes les puces passent à droite */
    .pcb-node.left, .pcb-node.right {
        left: 0;
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }
    
    /* Traces horizontales toutes pointées vers la gauche */
    .pcb-node.left .pcb-trace-horizontal,
    .pcb-node.right .pcb-trace-horizontal {
        left: 20px;
        right: auto;
        width: 40px;
    }
    
    /* Pads alignés sur le bus à gauche */
    .pcb-node.left .pcb-pad,
    .pcb-node.right .pcb-pad {
        left: 3px;
        right: auto;
    }
    
    .chip-content { padding: 20px 15px; }
}

/* =========================================
   STYLE SECTION PORTFOLIO & FILTRES
   ========================================= */

/* Filtres */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}
.filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--eda-teal-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    border-color: var(--eda-teal);
    color: var(--eda-teal);
}
.filter-btn.active {
    background: var(--eda-orange);
    border-color: var(--eda-orange);
    color: white;
    box-shadow: 0 5px 15px rgba(242, 106, 33, 0.3);
}

/* Grille et Cartes */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}
.portfolio-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 61, 62, 0.1);
    border-color: rgba(31, 111, 112, 0.2);
}

/* Image et Overlay */
.portfolio-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img img {
    transform: scale(1.1);
}
.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 61, 62, 0.85); /* Teal dark transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}
.view-project-btn {
    background: var(--eda-orange);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(242, 106, 33, 0.4);
}
.portfolio-card:hover .view-project-btn {
    transform: translateY(0);
}
.view-project-btn:hover {
    background: white;
    color: var(--eda-orange);
}

/* Contenu Texte */
.portfolio-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.portfolio-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--eda-orange);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}
.portfolio-info h3 {
    font-size: 1.3rem;
    color: var(--eda-teal-dark);
    margin-bottom: 15px;
}
.portfolio-info p {
    color: var(--eda-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Badges Technologiques */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.tech-stack span {
    background: rgba(31, 111, 112, 0.08);
    color: var(--eda-teal);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}


/* =========================================
   STYLE DU GRAND MODAL PORTFOLIO
   ========================================= */
.portfolio-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 61, 62, 0.95); /* Fond sombre Teal */
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.portfolio-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.portfolio-modal-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow: hidden; /* Important pour les coins arrondis avec l'image */
    animation: slideUp 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.close-portfolio-modal {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 2rem;
    color: white; /* Blanc car il sera sur l'image */
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: 0.3s;
}
.close-portfolio-modal:hover {
    color: var(--eda-orange);
    transform: rotate(90deg);
}

.portfolio-modal-body {
    display: flex;
    flex-direction: column;
}

@media (min-width: 993px) {
    .portfolio-modal-body {
        flex-direction: row; /* Image à gauche, texte à droite sur PC */
    }
    .modal-image-container { width: 50%; }
    .modal-text-container { width: 50%; padding: 40px; }
}

.modal-image-container {
    position: relative;
    height: 300px;
}
@media (min-width: 993px) {
    .modal-image-container { height: auto; min-height: 400px; }
}

.modal-image-container img {
    width: 100%; height: 100%; object-fit: cover;
}
.modal-category {
    position: absolute;
    bottom: 20px; left: 20px;
    background: var(--eda-orange);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-text-container {
    padding: 30px 20px;
}
.modal-text-container h2 {
    font-size: 2rem;
    color: var(--eda-teal-dark);
    margin-bottom: 20px;
}
.modal-text-container p {
    color: var(--eda-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}
.modal-text-container h4 {
    font-size: 1.1rem;
    color: var(--eda-teal-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.modal-tech-stack span {
    background: rgba(31, 111, 112, 0.1);
    color: var(--eda-teal);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(31, 111, 112, 0.2);
}

/* =========================================
   STYLES PAGE BLOG PREMIUM
   ========================================= */

/* Barre de recherche dans le Hero */
.blog-search-bar {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.blog-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 25px;
    color: white;
    font-size: 1.05rem;
    outline: none;
}
.blog-search-bar input::placeholder { color: rgba(255, 255, 255, 0.6); }
.blog-search-bar button {
    background: var(--eda-orange);
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}
.blog-search-bar button:hover { background: white; color: var(--eda-orange); }

/* Article Feature (A la une) - Dépasse du Header */
.featured-post-section { padding-bottom: 50px; }
.featured-post {
    background: white;
    border-radius: 20px;
    display: flex;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
}
.featured-img { width: 55%; position: relative; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-badge { top: 20px; left: 20px; background: var(--eda-teal); font-size: 0.9rem; padding: 8px 20px; }
.featured-content { width: 45%; padding: 50px; display: flex; flex-direction: column; justify-content: center;}

.meta-info { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.category-tag { color: var(--eda-orange); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;}
.read-time { color: var(--eda-gray); font-size: 0.9rem; }

.featured-content h2 { font-size: 2.2rem; color: var(--eda-teal-dark); margin-bottom: 20px; line-height: 1.3;}
.featured-content h2 a { color: inherit; text-decoration: none; transition: 0.3s;}
.featured-content h2 a:hover { color: var(--eda-orange); }
.featured-content p { color: var(--eda-gray); font-size: 1.1rem; line-height: 1.7; margin-bottom: 30px;}

.author-info { display: flex; align-items: center; gap: 15px; margin-top: auto; border-top: 1px solid #eee; padding-top: 25px;}
.author-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover;}
.author-details strong { display: block; color: var(--eda-teal-dark); }
.author-details span { font-size: 0.85rem; color: var(--eda-gray); }

/* Catégories de filtres Blog */
.blog-categories {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 50px;
}
.cat-btn {
    background: transparent; border: 1px solid var(--eda-teal); color: var(--eda-teal);
    padding: 8px 20px; border-radius: 30px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.cat-btn:hover, .cat-btn.active {
    background: var(--eda-teal); color: white;
}

/* Ajustement des cartes du blog */
.meta-info-small { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
.blog-date, .read-time { color: var(--text-light); font-size: 0.85rem; margin-bottom: 0 !important; }

.mt-auto { margin-top: auto; }

/* Carte Newsletter dans la grille */
.newsletter-inline {
    background: var(--eda-teal-dark);
    color: white;
    justify-content: center;
    border: none;
    box-shadow: 0 15px 40px rgba(15, 61, 62, 0.4);
}
.newsletter-inline:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(15, 61, 62, 0.6); border-color: transparent;}
.newsletter-content { padding: 40px; text-align: center; }
.icon-pulse {
    font-size: 3rem; color: var(--eda-orange); margin-bottom: 20px; animation: pulse-icon 2s infinite;
}
@keyframes pulse-icon { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.newsletter-content h3 { color: white; font-size: 1.5rem; margin-bottom: 15px;}
.newsletter-content p { color: rgba(255,255,255,0.7); margin-bottom: 25px; font-size: 0.95rem; }
.inline-form { display: flex; flex-direction: column; gap: 10px; }
.inline-form input { padding: 12px; border-radius: 8px; border: none; font-size: 1rem; outline: none; }
.inline-form button { width: 100%; border-radius: 8px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.page-link {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: white; color: var(--eda-teal-dark); text-decoration: none;
    font-weight: bold; border: 1px solid #eee; transition: 0.3s;
}
.page-link:hover, .page-link.active {
    background: var(--eda-orange); color: white; border-color: var(--eda-orange);
}

/* RESPONSIVE BLOG */
@media (max-width: 992px) {
    .featured-post { flex-direction: column; }
    .featured-img { width: 100%; height: 250px; }
    .featured-content { width: 100%; padding: 30px; }
    .featured-content h2 { font-size: 1.8rem; }
    .author-info { flex-direction: column; align-items: flex-start; gap: 15px; }
    .author-info .btn-primary { margin-left: 0; width: 100%; text-align: center;}
    .blog-search-bar { width: 90%; margin: 30px auto 0; }
}

/* =========================================
   STYLE PAGE CONTACT PREMIUM
   ========================================= */

/* Le Formulaire Premium */
.premium-form {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 61, 62, 0.08); /* Ombre aux couleurs de l'agence */
    border: 1px solid rgba(0,0,0,0.03);
}

.premium-form .form-group label {
    font-weight: 600;
    color: var(--eda-teal-dark);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.premium-form input, .premium-form select, .premium-form textarea {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--eda-black);
    font-family: var(--font-main);
}

.premium-form input:focus, .premium-form select:focus, .premium-form textarea:focus {
    background: #ffffff;
    border-color: var(--eda-orange);
    box-shadow: 0 0 0 4px rgba(242, 106, 33, 0.15);
}

/* Carte Google Maps avec effet "Agency" */
.map-section iframe {
    /* Filtre pour rendre la carte Google plus "Teal/Blue" et moins agressive */
    filter: grayscale(80%) sepia(100%) hue-rotate(150deg) saturate(300%) contrast(70%);
    transition: filter 0.5s ease;
}

.map-section:hover iframe {
    /* Au survol, la carte reprend (presque) ses couleurs naturelles pour être lisible */
    filter: grayscale(20%);
}

.map-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Dégradé qui permet de cliquer tout en intégrant la carte visuellement */
    background: linear-gradient(to bottom, var(--eda-light) 0%, transparent 20%, transparent 80%, #0F3D3E 100%);
    pointer-events: none;
}


/* =========================================
   STYLES PAGE DÉTAILS ARTICLE (BLOG POST)
   ========================================= */

/* Hero de l'article (Image plein écran) */
.article-hero {
    position: relative;
    padding: 200px 0 150px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effet parallax léger */
    text-align: center;
    color: white;
}
.article-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 61, 62, 0.8) 0%, rgba(17, 17, 17, 0.9) 100%);
    z-index: 1;
}
.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
.article-hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Méta-données de l'article (Auteur, date) */
.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-avatar-sm {
    width: 35px; height: 35px;
    border-radius: 50%; overflow: hidden;
    border: 2px solid var(--eda-orange);
}
.author-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

/* Conteneur principal (La "feuille" blanche) */
.article-main-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: -80px auto 0; /* Remonte sur l'image du hero */
    padding: 0 20px;
}
.article-paper {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

/* Typographie du corps de l'article */
.article-body {
    color: var(--eda-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-body .lead-paragraph {
    font-size: 1.3rem;
    color: var(--eda-teal-dark);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 40px;
}
.article-body h2 {
    color: var(--eda-teal-dark);
    font-size: 1.8rem;
    margin: 40px 0 20px;
    font-family: var(--font-heading);
}
.article-body p { margin-bottom: 25px; }
.article-body ul { margin-bottom: 25px; padding-left: 20px; }
.article-body ul li { margin-bottom: 10px; }
.article-body strong { color: var(--eda-black); }

/* Citations (Blockquotes) */
.article-quote {
    background: rgba(31, 111, 112, 0.05);
    border-left: 5px solid var(--eda-orange);
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 10px 10px 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--eda-teal-dark);
    font-family: var(--font-heading);
}

/* Images dans l'article */
.article-inline-image {
    width: 100%;
    border-radius: 12px;
    margin: 30px 0 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.image-caption {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 40px;
    font-style: italic;
}

/* Tags de l'article */
.article-tags {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.article-tags .tag {
    background: var(--eda-light); color: var(--eda-gray);
    padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    transition: 0.3s; cursor: pointer;
}
.article-tags .tag:hover { background: var(--eda-teal); color: white; }

/* Boutons de Partage */
.article-share-box {
    display: flex; align-items: center; justify-content: space-between;
    padding: 30px 0; border-bottom: 1px solid #eee;
}
.article-share-box span { font-weight: 600; color: var(--eda-teal-dark); }
.share-icons { display: flex; gap: 15px; }
.share-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none; transition: 0.3s;
}
.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25D366; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Encadré Auteur */
.article-author-box {
    display: flex; align-items: center; gap: 25px;
    background: #fdfdfd; padding: 40px; border-radius: 15px;
    margin-top: 40px; border: 1px solid #f0f0f0;
}
.article-author-box img {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.author-info-text h4 { font-size: 1.3rem; color: var(--eda-teal-dark); margin-bottom: 10px; }
.author-info-text p { color: var(--eda-gray); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* RESPONSIVE ARTICLE */
@media (max-width: 768px) {
    .article-hero { padding: 150px 0 100px; }
    .article-hero-content h1 { font-size: 2rem; }
    .article-paper { padding: 30px 20px; }
    .article-author-box { flex-direction: column; text-align: center; }
    .article-share-box { flex-direction: column; gap: 20px; }
}

/* =========================================
   STYLE PAGE FAQ PREMIUM (LAYOUT SIDEBAR)
   ========================================= */

.faq-layout {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    position: relative;
}

/* Sidebar de navigation FAQ */
.faq-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 100px; /* Reste fixée au scroll sur PC */
}

.faq-sidebar h3 {
    font-size: 1.5rem;
    color: var(--eda-teal-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.faq-nav {
    list-style: none;
    padding: 0;
}

.faq-nav li {
    margin-bottom: 10px;
}

.faq-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--eda-gray);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.faq-nav a i {
    color: var(--eda-teal);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.faq-nav a:hover, .faq-nav a.active {
    background: white;
    color: var(--eda-orange);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-nav a:hover i, .faq-nav a.active i {
    color: var(--eda-orange);
}

/* Boîte de support additionnelle */
.faq-support-box {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.faq-support-box h4 {
    color: var(--eda-teal-dark);
    margin-bottom: 10px;
}

.faq-support-box p {
    color: var(--eda-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Contenu des questions (Droite) */
.faq-content {
    flex: 1;
}

.faq-group {
    margin-bottom: 60px;
}

.faq-group-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    border-bottom: 1px solid rgba(242, 106, 33, 0.3);
    padding-bottom: 10px;
}

/* Responsive FAQ */
@media (max-width: 992px) {
    .faq-layout {
        flex-direction: column;
    }
    
    .faq-sidebar {
        flex: none;
        width: 100%;
        position: static;
        margin-bottom: 40px;
    }
    
    .faq-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .faq-nav li {
        flex: 1 1 calc(50% - 10px);
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .faq-nav li {
        flex: 1 1 100%;
    }
}
/* =========================================
   CARROUSEL AVIS - VERSION ULTRA STABLE
   ========================================= */

.testimonials-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    margin: 30px 0;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0;
}

/* Supprime la scrollbar visuellement */
.testimonials-track::-webkit-scrollbar {
    display: none;
}
.testimonials-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials-track .review-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    height: 320px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.testimonials-track .review-card:hover {
    transform: translateY(-5px);
}

.testimonials-track .stars {
    color: var(--eda-orange);
    margin-bottom: 15px;
    flex-shrink: 0;
}

.testimonials-track .review-text {
    font-style: italic;
    line-height: 1.6;
    color: #4a5568;
    font-size: 0.95rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.testimonials-track .reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 15px;
}

.testimonials-track .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.testimonials-track .info {
    flex: 1;
    min-width: 0;
}

.testimonials-track .info h4 {
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation */

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control.prev { left: -15px; }
.carousel-control.next { right: -15px; }

@media (max-width: 992px) {
    .testimonials-track .review-card {
        flex: 0 0 calc(50% - 15px);
        height: 350px;
    }
}

@media (max-width: 768px) {
    .testimonials-track .review-card {
        flex: 0 0 85%;
        height: 380px;
    }
    .carousel-control {
        display: none;
    }
    footer .btn-secondary{
        display: none;
    }
}

.navbar {
    /* Tes styles existants */
    transform: translateZ(0); /* Force l'accélération matérielle */
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform; /* Optimisation */
}


/* =========================================
   NAVIGATION MOBILE - VERSION UNIQUE CORRIGÉE
   ========================================= */
@media (max-width: 992px) {
    /* ---- CACHE/MONTRE LES BONS ÉLÉMENTS ---- */
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    /* ---- STRUCTURE DE BASE DE LA NAVBAR ---- */
    .navbar {
        padding: 15px 20px !important;
        height: auto !important;
        background: transparent !important;
        transition: background 0.3s ease !important;
    }
    
    /* État scrolled */
    .navbar.scrolled {
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    }
    
    /* Conteneur : logo à gauche, burger à droite */
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* ---- LOGO ---- */
    .logo {
        max-width: 70% !important;
    }
    .logo img {
        width: 180px !important;
        max-width: 180px !important;
        height: auto !important;
    }
    .fallback-text {
        color: white !important;
        font-size: 1.2rem !important;
        white-space: nowrap !important;
    }
    .navbar.scrolled .fallback-text {
        color: var(--eda-teal-dark) !important;
    }
    
    /* ---- MENU BURGER (LES 3 BARRES) ---- */
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        cursor: pointer !important;
        z-index: 10001 !important;
    }
    
    /* Couleur des barres : blanc par défaut */
    .menu-toggle .bar {
        width: 28px !important;
        height: 3px !important;
        background: white !important;
        border-radius: 3px !important;
        transition: all 0.3s ease !important;
    }
    
    /* Au scroll : barres deviennent foncées */
    .navbar.scrolled .menu-toggle .bar {
        background: var(--eda-teal-dark) !important;
    }
    
    /* Animation en X quand le menu est ouvert */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg) !important;
        background: var(--eda-teal-dark) !important;
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0 !important;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg) !important;
        background: var(--eda-teal-dark) !important;
    }
    
    /* ---- MENU DÉROULANT (PLEIN ÉCRAN) ---- */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: white !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 80px 20px 40px !important;
        transition: left 0.4s ease !important;
        overflow-y: auto !important;
        z-index: 10000 !important;
        margin: 0 !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    /* Liens du menu */
    .nav-menu .nav-link {
        color: var(--eda-teal-dark) !important;
        font-size: 1.2rem !important;
        font-weight: 500 !important;
        padding: 10px 0 !important;
        display: inline-block !important;
    }
    
    .nav-menu .nav-link:hover {
        color: var(--eda-orange) !important;
    }
    
    /* ---- OUTILS MOBILES (RECHERCHE, LANGUE) ---- */
    .mobile-menu-tools {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin: 20px 0 !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .mobile-search-box {
        display: flex !important;
        width: 90% !important;
        background: #f4f4f4 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        margin-bottom: 15px !important;
    }
    
    .mobile-search-box input {
        flex: 1 !important;
        padding: 12px 15px !important;
        border: none !important;
        background: transparent !important;
        font-size: 1rem !important;
        outline: none !important;
    }
    
    .mobile-search-box button {
        background: var(--eda-orange) !important;
        color: white !important;
        border: none !important;
        padding: 0 20px !important;
        cursor: pointer !important;
    }
    
    .mobile-lang {
        display: flex !important;
        gap: 15px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    .mobile-lang a {
        color: var(--eda-gray) !important;
        text-decoration: none !important;
    }
    .mobile-lang a.active {
        color: var(--eda-orange) !important;
    }
    
    /* ---- COULEURS DES ICÔNES DANS LA NAVBAR ---- */
    /* État normal (sur fond bleu/teal) */
    .search-icon,
    .mobile-lang a,
    .mobile-lang span {
        color: white !important;
        transition: color 0.3s ease !important;
    }
    
    /* Au scroll (navbar blanche) */
    .navbar.scrolled .search-icon,
    .navbar.scrolled .mobile-lang a,
    .navbar.scrolled .mobile-lang span {
        color: var(--eda-teal-dark) !important;
    }
    
    /* ---- DROPDOWN SUR MOBILE ---- */
    .dropdown-menu {
        position: static !important;
        display: none !important;
        background: #f8f9fa !important;
        box-shadow: none !important;
        width: 90% !important;
        margin: 10px auto !important;
        padding: 15px !important;
        border-radius: 10px !important;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-menu li a {
        color: var(--eda-teal-dark) !important;
        font-size: 1rem !important;
        text-align: center !important;
    }
}

/*********************************************************/


/* =========================================
   CORRECTION URGENTE - BARRE VERTE
   ========================================= */

/* Force le search-overlay à ne pas créer d'espace */
.search-overlay {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    /* Assure-toi qu'il n'a pas de margin/padding */
    margin: 0 !important;
    padding: 0 !important;
}

/* Quand il est actif */
.search-overlay.active {
    top: 0 !important;
}

/* Nettoie le body */
body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f8faff;
}

/* Force la navbar à être au top */
.navbar {
    top: 0 !important;
    margin-top: 0 !important;
    position: fixed !important;
    z-index: 9999 !important;
}

/* Sur mobile, correction renforcée */
@media (max-width: 992px) {
    body > *:first-child {
        margin-top: 0 !important;
    }
    
    /* Le premier élément visible DOIT être la navbar */
    .navbar {
        top: 0 !important;
    }
    
    /* Tout élément avant la navbar en position fixed ne doit pas créer d'espace */
    .search-overlay {
        top: -100% !important;
    }
}

