:root {
    --bg-color: #fcfcfc;
    --text-color: #1a1a1a;
    --accent-color: #000000;
    --muted-color: #757575;
    --card-bg: #ffffff;
    --border-color: #eaeaea;
    --transition: all 0.3s ease;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Nav */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; }
.logo span { color: var(--muted-color); }
.nav-links a, .dropbtn {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Dropdown Menu */
.dropdown { display: inline-block; position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.dropdown-content a { display: block; padding: 0.7rem 1rem; margin: 0; }
.dropdown-content a:hover { background: var(--bg-color); }
.dropdown:hover .dropdown-content { display: block; }

.btn-toggle, .btn-cta {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border-radius: 4px;
}

/* Burger Menu */
.burger { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; }
.mobile-menu { display: none; display: flex; flex-direction: column; gap: 1rem; padding: 1rem; background: var(--card-bg); border-bottom: 1px solid var(--border-color); display: none; }

/* Side Panels */
.side-panel {
    position: fixed;
    top: 0; right: -400px;
    width: 320px; height: 100%;
    background: var(--card-bg);
    box-shadow: -4px 0 20px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 2rem;
    transition: var(--transition);
}
.side-panel.open { right: 0; }
.close-btn { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; background: none; border: none; cursor: pointer; }
.side-panel form input { width: 100%; padding: 0.8rem; margin: 0.5rem 0; border: 1px solid var(--border-color); box-sizing: border-box; }
.btn-submit { width: 100%; padding: 0.8rem; background: var(--accent-color); color: #fff; border: none; cursor: pointer; }

/* Sections layouts */
.hero { text-align: center; padding: 2.5rem 1rem; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; letter-spacing: -1px; }
.quote-section { text-align: center; padding: 4rem 1rem; font-style: italic; font-size: 1.3rem; color: var(--muted-color); }
.section-title { text-align: center; margin-bottom: 1%; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 10%;
}
.card, .testimonial, .blog-card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.price { display: block; margin-top: 1rem; font-weight: bold; font-style: italic }

/* Blog Specific */
.blog-container { padding: 3rem 10%; }
.blog-grid { display: flex; flex-direction: column; gap: 2rem; }
.blog-date { color: var(--muted-color); font-size: 0.85rem; }

/* Chatbot */
.chatbot-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 1000; }
.chatbot-btn { font-size: 1.5rem; width: 50px; height: 50px; border-radius: 50%; background: var(--accent-color); color: white; border: none; cursor: pointer; }
.chatbot-box {
    display: none; position: absolute; bottom: 60px; right: 0;
    width: 300px; height: 400px; background: var(--card-bg);
    border: 1px solid var(--border-color); border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    flex-direction: column; overflow: hidden;
}
.chat-header { background: var(--accent-color); color: white; padding: 1rem; display: flex; justify-content: space-between; }
.chat-header button { background: none; border: none; color: white; cursor: pointer; }
.chat-content { flex: 1; padding: 1rem; overflow-y: auto; font-size: 0.9rem; }
.chat-input-area { display: flex; border-top: 1px solid var(--border-color); }
.chat-input-area input { flex: 1; border: none; padding: 0.8rem; }
.chat-input-area button { background: none; border: none; padding: 0.8rem; cursor: pointer; }

/* Footer */
.main-footer { border-top: 1px solid var(--border-color); padding: 3rem 10%; background: var(--card-bg); text-align: center; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 2rem; text-align: left; }

/* Responsiveness Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .burger { display: block; }
    .mobile-menu.open { display: flex; }
    .hero h1 { font-size: 2rem; }
    .footer-grid { flex-direction: column; gap: 1.5rem; }
}


 /* --- COMPOSANT DROPUP --- */
        .dropup-container {
            position: relative;
            display: inline-block;
        }

        /* Le Bouton Déclencheur */
        .dropup-trigger {
            background-color: #f5f5f7;
            color: var(--text-main);
            border: none;
            padding: 0.75rem 1.25rem;
            font-size: 0.95rem;
            font-weight: 500;
            border-radius: 10px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }

        .dropup-trigger:hover {
            background-color: #e8e8ed;
        }

        /* Flèche rotative en CSS */
        .dropup-trigger::after {
            content: "";
            width: 8px;
            height: 8px;
            border-right: 2px solid var(--text-main);
            border-bottom: 2px solid var(--text-main);
            transform: rotate(-135deg); /* Oriente la flèche vers le haut */
            transition: var(--transition);
            margin-top: 4px;
        }

        /* Rotation de la flèche quand le menu est ouvert */
        .dropup-container.is-active .dropup-trigger::after {
            transform: rotate(45deg);
            margin-top: -4px;
        }

        /* Le Menu Déroulant (S'ouvre vers le haut) */
        .dropup-menu {
            position: absolute;
            bottom: calc(100% + 12px); /* Positionne juste au-dessus du bouton */
            left: 0;
            background-color: var(--card-bg);
            min-width: 220px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            border: 1px solid var(--border-color);
            list-style: none;
            padding: 0.5rem;
            
            /* État masqué par défaut avec effet de fondu/montée */
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: var(--transition);
            z-index: 10;
        }

        /* Affichage du menu */
        .dropup-container.is-active .dropup-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Liens du menu (Items) */
        .dropup-item a {
            display: block;
            padding: 0.7rem 1rem;
            color: var(--text-main);
            text-decoration: none;
            font-size: 0.9rem;
            border-radius: 8px;
            transition: var(--transition);
        }

        .dropup-item a:hover {
            background-color: var(--accent);
            color: #ffffff;
        }

        /* --- RESPONSIVE MOBILE --- */
        @media (max-width: 480px) {
            
            .dropup-menu {
                min-width: 100%; /* S'adapte à la largeur du bouton sur petit écran */
            }
        }