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

:root {
    --senegal-green: #00853F;
    --senegal-green-light: #00A859;
    --senegal-yellow: #FCD116;
    --senegal-red: #E31B23;
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-gray: #F3F4F6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: var(--white);
    padding: 1rem 5%;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-flag {
    width: 45px;
    height: 30px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
}

.flag-stripe {
    flex: 1;
}

.flag-green {
    background: var(--senegal-green);
}
.flag-yellow {
    background: var(--senegal-yellow);
}
.flag-red {
    background: var(--senegal-red);
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #475569;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-light);
}

.nav-menu-desktop {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu-desktop a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-menu-desktop a:hover {
    color: #475569;
}

.nav-menu-desktop a.active {
    color: #475569;
}

/* Hero Services */
.services-hero {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155;
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 116, 139, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.services-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.services-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.services-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #475569;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Search & Filter */
.search-filter-section {
    background: var(--white);
    padding: 2rem 5%;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.search-filter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--bg-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-light);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 1rem 1.5rem;
    border: 2px solid var(--bg-gray);
    background: var(--white);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
    border-color: #64748b;
    background: #64748b;
    color: var(--white);
}

/* Services Grid */
.services-main {
    padding: 4rem 5%;
    background: var(--bg-light);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #cbd5e1;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.category-info h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-dark);
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-item {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border-left: 4px solid transparent;
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: #64748b;
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.service-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #e2e8f0;
    color: #475569;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-light);
}

.service-users {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.service-link:hover {
    gap: 0.8rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.footer-about p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: #cbd5e1;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    cursor: pointer;
}

.social-icon:hover {
    background: #64748b;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.footer-bottom p {
    margin-bottom: 1rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--senegal-yellow);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu-desktop {
        display: none;
    }

    .services-hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .search-filter-container {
        flex-direction: column;
    }

    .filter-buttons {
        width: 100%;
        overflow-x: auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .services-hero h1 {
        font-size: 2rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}


    /* Animation pour les transitions */
    .service-item {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .service-item[style*="display: none"] {
        opacity: 0;
        transform: scale(0.95);
    }
    .category-section {
        transition: opacity 0.3s ease;
    }
    .category-section[style*="display: none"] {
        opacity: 0;
    }
    /* Style pour le message "aucun résultat" */
    .no-results-message {
        animation: fadeIn 0.3s ease;
    }
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    /* Active state pour les boutons de filtre */
    .filter-btn {
        transition: all 0.3s ease;
    }
    .filter-btn.active {
        background: #00a651;
        color: white;
        transform: scale(1.05);
    }
    /* Style pour la barre de recherche pendant la saisie */
    .search-box input:focus {
        border-color: #00a651;
        box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
        outline: none;
    }