/* --- 1. VARIABLES & RESET --- */
:root {
    --primary-color: #0f172a; /* Bleu nuit profond */
    --accent-color: #3a7d6a; /* Vert professionnel */
    --text-dark: #334155;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden; /* Empêche le scroll horizontal sur mobile */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* --- 2. HEADER --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-container a { text-decoration: none; display: flex; align-items: center; }
.logo-img { height: 50px; width: auto; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); }
.highlight { color: var(--accent-color); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

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

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 4px;
    background: linear-gradient(45deg, var(--primary-color), #1e293b);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}

.btn-contact:hover {
    background: linear-gradient(45deg, var(--accent-color), #2d6a5a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 125, 106, 0.3);
}

/* --- 3. HERO SECTION --- */
#accueil {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--white);
    padding: 0 10%;
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4)),
                      url('https://images.unsplash.com/photo-1581093450021-4a7360e9a6b5?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content { max-width: 700px; }

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

.hero-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hero-list li {
    font-size: 1rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-list i { color: var(--accent-color); font-size: 1.2rem; }
.hero-desc { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 45px; font-weight: 400; max-width: 600px; }
.hero-buttons { display: flex; gap: 20px; }

.btn-primary, .btn-secondary {
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(58, 125, 106, 0.3);
}

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

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

/* --- 4. SERVICES --- */
#services { padding: 120px 20px; max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 2.8rem; margin-bottom: 15px; }
.divider { width: 80px; height: 4px; background: linear-gradient(to right, var(--accent-color), transparent); margin: 0 auto 25px; }
.section-header p { color: var(--text-light); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    border-color: transparent;
}

.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--accent-color);
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.card:hover::before { transform: scaleX(1); }

.icon-box { font-size: 3rem; color: var(--accent-color); margin-bottom: 30px; }
.card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card p { color: var(--text-light); margin-bottom: 30px; }

.card-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    display: flex; align-items: center; gap: 10px; transition: gap 0.3s, color 0.3s;
}
.card-link:hover { color: var(--accent-color); gap: 15px; }

/* IPHONE APP STYLE */
.app-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.iphone-mockup {
    width: 140px;
    height: 260px;
    background: #fff;
    border-radius: 25px;
    border: 6px solid #1e293b;
    margin: 0 auto 30px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
}

.iphone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 50%; height: 15px; background: #1e293b;
    border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
    z-index: 2;
}

.iphone-screen {
    height: 100%; width: 100%;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}

.blur-effect { filter: blur(6px); opacity: 0.7; transition: all 0.5s ease; }
.card:hover .blur-effect { filter: blur(3px); opacity: 0.9; }

.screen-content {
    text-align: center; color: var(--text-light);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.screen-content i { color: var(--accent-color); }
.screen-content span { font-weight: 700; font-size: 0.8rem; }
.fake-chart { width: 60%; height: 8px; background: #cbd5e1; border-radius: 4px; }
.fake-chart.short { width: 40%; }


/* --- 5. A PROPOS --- */
#apropos { padding: 120px 20px; background: var(--white); }
.apropos-container {
    max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 80px;
}
.apropos-text { flex: 1; }
.apropos-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.intro-text { font-size: 1.2rem; color: var(--text-light); margin-bottom: 40px; }

.features-list { list-style: none; display: flex; flex-direction: column; gap: 30px; }
.features-list li { display: flex; gap: 20px; align-items: flex-start; }
.features-list i {
    font-size: 1.8rem; color: var(--accent-color);
    background: rgba(58, 125, 106, 0.1); padding: 15px; border-radius: 12px;
}
.features-list strong { display: block; font-size: 1.1rem; color: var(--primary-color); margin-bottom: 5px; }

.apropos-image { flex: 1; }
.real-img { width: 100%; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* --- 6. SECTION CONTACT --- */
#contact { padding: 100px 20px; background-color: var(--white); }

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border-radius: 20px;
    overflow: hidden;
}

.contact-infos {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-infos h2 { color: var(--white); margin-bottom: 20px; font-size: 2rem; }
.contact-infos p { color: #94a3b8; margin-bottom: 40px; }

.info-item { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.info-item i {
    font-size: 1.5rem; color: var(--accent-color);
    background: rgba(255,255,255,0.05); padding: 15px; border-radius: 50%;
}
.info-item h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 5px; }
.info-item p { margin-bottom: 0; color: #cbd5e1; }

.contact-form { background-color: #fff; padding: 60px; }
.form-group { margin-bottom: 25px; }
.form-group label {
    display: block; font-weight: 700; margin-bottom: 8px;
    color: var(--primary-color); font-size: 0.9rem;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%; padding: 15px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    background-color: #f8fafc;
    font-family: inherit; font-size: 1rem;
    transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none; border-color: var(--accent-color); background-color: #fff;
}

.btn-submit {
    width: 100%; background-color: var(--accent-color); color: white;
    padding: 15px; border: none; border-radius: 8px;
    font-weight: 700; font-size: 1.1rem; cursor: pointer;
    transition: background 0.3s;
}
.btn-submit:hover { background-color: #2d6a5a; }

/* --- 7. STYLE DES PAGES INTERNES --- */
.page-hero {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)),
                      url('https://images.unsplash.com/photo-1556910103-1c02745a30bf?auto=format&fit=crop&q=80');
    background-size: cover; background-position: center;
    padding: 80px 20px; text-align: center; color: white;
}

.hero-audit {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)),
                      url('https://images.unsplash.com/photo-1581093588401-fbb62a02f138?q=80&w=2070&auto=format&fit=crop');
}

.page-content { padding: 60px 20px; background-color: var(--white); }

.content-container {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr; gap: 60px;
}

.main-text h2 { margin-bottom: 20px; font-size: 1.8rem; }
.main-text h3 { margin-top: 30px; margin-bottom: 15px; font-size: 1.4rem; color: var(--accent-color); }
.main-text p { margin-bottom: 20px; color: var(--text-dark); }

.check-list { list-style: none; }
.check-list li { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.check-list i { color: var(--accent-color); }

.program-box {
    background-color: #f8fafc; padding: 25px;
    border-left: 4px solid var(--accent-color); border-radius: 4px;
}
.program-box ul { list-style: none; }
.program-box li { margin-bottom: 10px; border-bottom: 1px solid #e2e8f0; padding-bottom: 5px; }

.summary-card {
    background: white; padding: 30px;
    border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0; position: sticky; top: 100px;
}

.summary-card ul { list-style: none; margin-bottom: 30px; }
.summary-card li { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.summary-card i { font-size: 1.2rem; color: var(--primary-color); }

.btn-sidebar {
    display: block; text-align: center;
    background-color: var(--accent-color); color: white;
    text-decoration: none; padding: 15px; border-radius: 8px;
    font-weight: bold; transition: background 0.3s;
}
.btn-sidebar:hover { background-color: #2d6a5a; }

/* --- 8. FOOTER --- */
footer { background-color: #0f172a; color: #94a3b8; padding: 80px 20px 20px; }
.footer-content { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.logo-col p { margin-top: 20px; max-width: 300px; }
.footer-col h4 { color: var(--white); margin-bottom: 25px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 15px; padding: 0; }
.footer-col ul a { text-decoration: none; color: #94a3b8; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--accent-color); }
.contact-info { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.contact-info i { color: var(--accent-color); }
.footer-bottom { text-align: center; border-top: 1px solid #1e293b; padding-top: 30px; font-size: 0.9rem; }

/* --- 9. BOUTONS FLOTTANTS --- */
.floating-container {
    position: fixed; bottom: 30px; right: 30px;
    display: flex; flex-direction: column; gap: 15px; z-index: 2000;
}

.btn-float {
    width: 60px; height: 60px; background-color: #25d366; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s; position: relative;
}
.btn-float.phone { background-color: var(--primary-color); }
.btn-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.btn-float::after {
    content: attr(data-tooltip); position: absolute; right: 70px;
    background: #333; color: white; padding: 5px 10px; border-radius: 4px;
    font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
    white-space: nowrap;
}
.btn-float:hover::after { opacity: 1; }

/* --- 10. COOKIES --- */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: rgba(15, 23, 42, 0.95); color: white; padding: 20px;
    display: flex; justify-content: center; align-items: center; gap: 20px;
    z-index: 3000; box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transform: translateY(100%); transition: transform 0.5s ease-out;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.btn-accept {
    background-color: var(--accent-color); color: white; border: none;
    padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold;
}
.btn-accept:hover { background-color: white; color: var(--accent-color); }

/* --- 11. CHATBOT --- */
.chat-trigger { background-color: var(--primary-color); border: none; cursor: pointer; }
.chat-widget {
    position: fixed; bottom: 100px; right: 30px; width: 350px; height: 450px;
    background-color: white; border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2); z-index: 2500;
    display: none; flex-direction: column; overflow: hidden;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.chat-widget.open { display: flex; }
.chat-header {
    background-color: var(--primary-color); color: white; padding: 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.chat-title { font-weight: bold; display: flex; align-items: center; gap: 10px; }
.close-chat { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; }
.chat-body {
    flex: 1; padding: 15px; background-color: #f8fafc; overflow-y: auto;
    display: flex; flex-direction: column; gap: 15px;
}
.message { max-width: 80%; padding: 10px 15px; border-radius: 15px; font-size: 0.9rem; line-height: 1.4; }
.message.bot { background-color: white; border: 1px solid #e2e8f0; align-self: flex-start; border-bottom-left-radius: 0; }
.message.user { background-color: var(--accent-color); color: white; align-self: flex-end; border-bottom-right-radius: 0; }
.chat-footer { padding: 15px; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; background: white; }
.chat-footer input { flex: 1; padding: 10px; border: 1px solid #e2e8f0; border-radius: 20px; outline: none; }
.chat-footer button {
    background-color: var(--primary-color); color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.chat-footer button:hover { background-color: var(--accent-color); }

/* --- 12. VERSION MOBILE (RESPONSIVE) --- */
@media (max-width: 900px) {
    /* Menu */
    header { padding: 10px 0; }
    nav { flex-direction: column; gap: 15px; padding: 10px; }
    .nav-links {
        flex-direction: column; gap: 15px; width: 100%;
        text-align: center; padding-bottom: 10px;
    }

    /* Textes et Marges */
    h1, .hero-content h1, .hero-clean h1, .hero-insect h1 {
        font-size: 2.2rem !important; text-align: center;
    }
    #accueil, .page-hero, .hero-clean, .hero-insect {
        padding: 80px 20px; text-align: center !important;
        height: auto; min-height: 400px;
        align-items: center; justify-content: center;
    }
    .hero-content p { margin: 0 auto 30px; }

    /* Cacher éléments complexes */
    .iphone-mockup { display: none; }
    .hero-list { justify-content: center; }

    /* Colonnes en ligne deviennent colonnes empilées */
    .contact-container, .content-container, .app-showcase {
        grid-template-columns: 1fr; flex-direction: column;
    }
    
    /* Footer */
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-col ul, .contact-info { align-items: center; justify-content: center; }

    /* Images */
    .content-image-container { flex-direction: column !important; }
    .content-image { max-width: 100%; width: 100%; height: auto; margin-bottom: 20px; }

    /* Chatbot Plein Écran */
    .chat-widget { width: 100%; height: 100%; bottom: 0; right: 0; border-radius: 0; }
}