/* --- CHARTE GRAPHIQUE TOGO --- */
:root {
    --tg-green: #006A4E;
    --tg-yellow: #FFCE00;
    --tg-red: #D21034;
    --tg-dark: #1e293b;
    --tg-light: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--tg-light);
    color: var(--tg-dark);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, .nav-link, .btn { font-family: 'Poppins', sans-serif; }

/* --- NAVBAR --- */
.navbar-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-top: 5px solid;
    border-image: linear-gradient(to right, var(--tg-green) 33%, var(--tg-yellow) 33%, var(--tg-yellow) 66%, var(--tg-red) 66%) 1;
}

.navbar-brand-text { font-weight: 800; letter-spacing: -0.5px; color: var(--tg-green); }

.nav-link {
    font-weight: 600; color: #475569 !important; font-size: 0.8rem; text-transform: uppercase;
    padding: 1.8rem 0.6rem !important; transition: all 0.3s ease; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--tg-green) !important; }

/* --- MEGA MENU & RESPONSIVE FIX --- */
.dropdown-full { position: static !important; }

.mega-menu-content {
    width: 100%; left: 0; right: 0; border: none;
    border-top: 1px solid #e2e8f0; border-radius: 0 0 20px 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1); padding: 2.5rem 0;
    background: #ffffff; display: none; animation: slideDown 0.2s ease-out;
}

/* Affichage Desktop */
@media (min-width: 1200px) {
    .dropdown-full:hover .mega-menu-content { display: block; }
}

/* Affichage Mobile/Tablette */
@media (max-width: 1199px) {
    .mega-menu-content {
        position: static;
        box-shadow: none;
        padding: 10px;
        border-top: none;
        background: #f8f9fa;
    }
    .mega-column { margin-bottom: 20px; border-right: none !important; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-column { padding: 0 20px; border-right: 1px solid #f1f5f9; }
.mega-column:last-child { border-right: none; }

.mega-title {
    color: var(--tg-green); font-weight: 800; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 1rem;
    display: flex; align-items: center;
}
.mega-title::before {
    content: ''; display: inline-block; width: 4px; height: 16px;
    background: var(--tg-yellow); margin-right: 10px; border-radius: 2px;
}

.mega-item {
    display: flex; align-items: center; padding: 10px 12px;
    color: #64748b; text-decoration: none; font-size: 0.9rem; font-weight: 500;
    border-radius: 8px; transition: all 0.2s ease; margin-bottom: 4px;
}
.mega-item:hover { background-color: #f0fdf4; color: var(--tg-green); transform: translateX(3px); }
.mega-item i { margin-right: 12px; color: var(--tg-green); font-size: 1.1rem; opacity: 0.7; transition: 0.2s; }
.mega-item:hover i { opacity: 1; color: var(--tg-red); }

.mega-view-more {
    display: inline-flex; align-items: center; margin-top: 15px; font-weight: 700;
    font-size: 0.85rem; color: var(--tg-red); text-decoration: none;
    padding: 8px 12px; border-radius: 8px; background: rgba(210, 16, 52, 0.05); transition: 0.2s;
}
.mega-view-more:hover { background: rgba(210, 16, 52, 0.1); transform: translateX(5px); }

/* --- HERO & COMPONENTS --- */
.hero {
    background: radial-gradient(circle at 70% 30%, #00503b 0%, var(--tg-green) 100%);
    padding: 120px 0 160px; color: white; position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
}
@media (max-width: 768px) {
    .hero { padding: 80px 0 120px; clip-path: ellipse(180% 100% at 50% 0%); }
    .hero h1 { font-size: 2rem; }
}

.search-wrapper {
    background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3); padding: 8px; border-radius: 50px;
    max-width: 850px; margin: 40px auto 0; display: flex;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
@media (max-width: 576px) {
    .search-wrapper { flex-direction: column; border-radius: 20px; padding: 15px; }
    .search-scope { width: 100%; margin-bottom: 10px; text-align: center; }
    .btn-search { width: 100%; border-radius: 10px; margin-top: 10px; }
}

.search-scope { background: #fff; color: var(--tg-dark); border: none; border-radius: 40px; padding: 12px 25px; margin: 5px; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.search-input { background: transparent; border: none; color: white; padding: 15px 25px; flex-grow: 1; font-size: 1.1rem; outline: none; }
.search-input::placeholder { color: rgba(255,255,255,0.7); }
.btn-search { background: var(--tg-yellow); color: var(--tg-dark); border: none; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.2s; }
.btn-search:hover { transform: scale(1.1); }

/* --- CARDS & STATS --- */
.feature-card {
    background: white; border: none; border-radius: 20px; padding: 2.5rem 2rem;
    height: 100%; box-shadow: 0 15px 35px rgba(0,0,0,0.06); transition: 0.3s;
    position: relative; text-align: center; top: 0;
}
.feature-card:hover { top: -10px; box-shadow: 0 30px 60px rgba(0,0,0,0.12); }
.card-green { border-top: 6px solid var(--tg-green); }
.card-red { border-top: 6px solid var(--tg-red); }
.card-yellow { border-top: 6px solid var(--tg-yellow); }

/* --- FOOTER --- */
.footer-custom { background-color: var(--tg-green); color: #fff; padding: 60px 0 0px; margin-top: 100px; border-top: 5px solid var(--tg-yellow); }
.footer-title { font-weight: 800; color: var(--tg-yellow); text-transform: uppercase; font-size: 0.9rem; margin-bottom: 1.2rem; letter-spacing: 1px; }
.footer-link { display: flex; align-items: center; color: rgba(255, 255, 255, 0.9); text-decoration: none; margin-bottom: 8px; font-size: 0.85rem; transition: 0.2s; }
.footer-link i { margin-right: 8px; color: var(--tg-yellow); font-size: 1rem; }
.footer-link:hover { color: var(--tg-yellow); padding-left: 5px; }

.footer-secondary { background-color: transparent; padding: 30px 0; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); }
.footer-sub-title { font-size: 0.8rem; font-weight: 800; color: #fff; text-transform: uppercase; margin-bottom: 15px; display: block; border-bottom: 1px solid var(--tg-yellow); padding-bottom: 5px; width: fit-content; }
.secondary-link { display: flex; align-items: center; color: rgba(255,255,255,0.8); font-size: 0.8rem; text-decoration: none; margin-bottom: 8px; transition:0.2s; }
.secondary-link i { margin-right: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.secondary-link:hover { color: white; transform: translateX(3px); }
.secondary-link:hover i { color: var(--tg-yellow); }

.footer-bottom { background-color: #0d4635; padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- WIDGET --- */
.chatbot-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.chatbot-btn { width: 65px; height: 65px; border-radius: 50%; background: var(--tg-green); color: white; border: none; box-shadow: 0 10px 30px rgba(0, 106, 78, 0.4); font-size: 2rem; display: flex; align-items: center; justify-content: center; }