/* ========================================
   RESET & VARIABLES
   ======================================== */

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

:root {
    --senegal-green: #059252;
    --senegal-yellow: #EFAF42;
    --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 - CONSOLIDÉ
   ======================================== */

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 */
.logo,
a.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
}

a.logo:hover {
    opacity: 0.9;
}

.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: var(--senegal-green);
    margin: 0;
}

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

/* Menu Desktop - RESET COMPLET */
.nav-menu-desktop,
.nav-menu-desktop ul,
.nav-menu-desktop li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.nav-menu-desktop li::before,
.nav-menu-desktop li::after,
.nav-menu-desktop li::marker {
    content: none !important;
    display: none !important;
}

/* Menu Desktop - Structure */
.nav-menu-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu-desktop > li {
    position: relative;
}

.nav-menu-desktop > li > a,
.nav-menu-desktop a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 0.5rem;
    display: block;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-menu-desktop a:hover {
    color: var(--senegal-green);
}

/* Indicateur de sous-menu */
.nav-menu-desktop > li.has-submenu > a::after {
    content: ' ▾';
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.3s;
}

.nav-menu-desktop > li.has-submenu.open > a::after {
    transform: rotate(180deg);
}

/* Sous-menu Desktop - CONSOLIDÉ */
.nav-menu-desktop .submenu {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 250px !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    padding: 0.5rem 0 !important;
    z-index: 9999 !important;
    margin: 0 !important;
    list-style: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Affichage au hover ET avec classe open */
.nav-menu-desktop > li:hover > .submenu,
.nav-menu-desktop > li.open > .submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    max-height: 500px;
}

.nav-menu-desktop .submenu li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu-desktop .submenu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-menu-desktop .submenu a:hover {
    background: var(--bg-light);
    color: var(--senegal-green);
    padding-left: 2rem;
}

/* Actions Mobile */
.nav-actions-mobile {
    display: none;
    gap: 1rem;
    align-items: center;
}

.search-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
}

/* ========================================
   SIDEBAR MOBILE
   ======================================== */

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -380px;
    width: 380px;
    height: 100vh;
    background: var(--white);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    z-index: 999;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-light);
}

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

.sidebar-logo h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--senegal-green);
}

.close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-btn:hover {
    background: var(--senegal-red);
    color: var(--white);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-section {
    border-bottom: 1px solid var(--bg-light);
}

.sidebar-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 1.2rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
}

.sidebar-link:hover {
    background: var(--bg-light);
    color: var(--senegal-green);
}

.sidebar-link .arrow {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.sidebar-link.active .arrow {
    transform: rotate(90deg);
}

.sidebar-section .submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-light);
}

.sidebar-section .submenu.active {
    max-height: 500px;
}

.sidebar-section .submenu a {
    display: block;
    padding: 1rem 3rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-section .submenu a:hover {
    background: var(--white);
    color: var(--senegal-green);
}

/* ========================================
   HERO
   ======================================== */

.hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    padding: 5rem 5%;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero-highlight {
    color: var(--senegal-green);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   STATS BAR
   ======================================== */

.stats-bar {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 2.5rem 5%;
}

.stats-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    text-align: center;
    color: #475569;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: #334155;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.85;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(100, 116, 139, 0.2);
}

/* ========================================
   SERVICES CATALOG
   ======================================== */

.services-catalog-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    position: relative;
    overflow: hidden;
}

.services-catalog-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,133,63,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.services-catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.catalog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.catalog-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.catalog-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

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

.catalog-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #64748b, #94a3b8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.catalog-card:hover::before {
    transform: scaleX(1);
}

.catalog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(100, 116, 139, 0.15);
    border-color: #94a3b8;
}

.catalog-card-icon {
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #64748b, #94a3b8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.2);
    transition: all 0.4s;
}

.catalog-card:hover .icon-circle {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(100, 116, 139, 0.3);
}

/* Couleurs spécifiques par service */
.protection-sociale .icon-circle {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.troisieme-age .icon-circle {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.education .icon-circle {
    background: linear-gradient(135deg, #71717a, #52525b);
}

.citoyennete .icon-circle {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.taxes .icon-circle {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.sante .icon-circle {
    background: linear-gradient(135deg, #EC4899, #DB2777);
}

.catalog-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.catalog-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.catalog-link:hover {
    gap: 1rem;
}

.catalog-link .arrow-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.catalog-card:hover .catalog-link .arrow-icon {
    transform: translateX(5px);
}

.catalog-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.btn-all-services {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(71, 85, 105, 0.08);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid #e2e8f0;
}

.btn-all-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.btn-all-services:hover::before {
    opacity: 1;
}

.btn-all-services:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 4px 20px rgba(71, 85, 105, 0.15);
    border-color: #cbd5e1;
    color: #334155;
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.btn-all-services:hover .btn-arrow {
    transform: translateX(8px);
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
    padding: 4rem 5%;
    background: var(--bg-light);
}

.section-title-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-center h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ========================================
   COMBINED SECTION (News + Videos)
   ======================================== */

.combined-section {
    padding: 4rem 5%;
    background: var(--bg-light);
}

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

.news-feed-widget, .video-podcast-widget {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #E5E7EB;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.widget-icon {
    font-size: 2rem;
}

.widget-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
}

/* News Timeline */
.news-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-timeline-item {
    padding: 0;
    background: var(--white);
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    overflow: hidden;
}

.news-timeline-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.news-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.news-post-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #64748b, #94a3b8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.news-post-author-info {
    flex: 1;
}

.news-post-author {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.news-post-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-badge-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-badge-type.nouveau {
    background: #64748b;
    color: var(--white);
}

.news-badge-type.urgent {
    background: var(--senegal-red);
    color: var(--white);
}

.news-badge-type.info {
    background: #3B82F6;
    color: var(--white);
}

.news-timeline-content {
    padding: 1.5rem;
}

.news-timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-timeline-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.news-post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 1rem;
}

.news-post-actions {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.news-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.news-action-btn:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

.news-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s;
}

.news-read-link:hover {
    background: #e2e8f0;
}

/* Video Podcast */
.featured-video-card {
    margin-bottom: 2rem;
}

.featured-video-thumbnail {
    position: relative;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-radius: 15px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 1rem;
}

.new-video-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--senegal-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.featured-play-btn {
    width: 80px;
    height: 80px;
    background: var(--senegal-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    padding-left: 6px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.video-time {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.9);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.featured-video-details h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.video-stats {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.featured-video-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.video-playlist {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.playlist-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--bg-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.playlist-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.playlist-thumbnail {
    width: 90px;
    height: 65px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-purple {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gradient-pink {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.gradient-cyan {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.gradient-orange {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.playlist-play {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    padding-left: 3px;
    color: #333;
}

.playlist-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.playlist-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.view-all-videos {
    display: block;
    text-align: center;
    padding: 0.9rem;
    background: var(--bg-light);
    color: var(--senegal-red);
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
}

.view-all-videos:hover {
    background: var(--senegal-red);
    color: var(--white);
}

/* ========================================
   LATEST NEWS SECTION
   ======================================== */

.latest-news-section {
    padding: 5rem 5%;
    /*background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);*/
    position: relative;
}

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

.latest-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.latest-news-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #334155;
}

.explore-more-news {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    background: #64748b;
    color: var(--white);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
}

.explore-more-news:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.3);
}

.latest-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    height: 600px;
}

.news-card,
a.news-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    transition: all 0.3s;
}

.news-card:hover::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.9) 100%);
}

.news-card:hover,
a.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

a.news-card:hover .news-card-title {
    text-decoration: underline;
}

.news-card-large {
    grid-row: 1 / 3;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--white);
    z-index: 2;
}

.news-card-large .news-card-content {
    padding: 3rem;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.news-card-large .news-card-title {
    font-size: 1.8rem;
    line-height: 1.3;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 133, 63, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 133, 63, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #5a6c7d;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 3px 15px rgba(71, 85, 105, 0.25);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(71, 85, 105, 0.35);
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

/* ========================================
   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 Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-logo h3 {
    color: var(--senegal-green);
    font-size: 1.4rem;
    margin: 0;
}

.footer-logo span {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.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;
    padding: 0;
    margin: 0;
}

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

.footer-section a,
.footer-address {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-section a:hover {
    color: var(--senegal-yellow);
    padding-left: 5px;
}

/* Footer Icons */
.footer-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-section a:hover .footer-icon {
    opacity: 1;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--senegal-green);
    transform: translateY(-3px);
    padding-left: 0;
}

.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 Footer */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-about {
        grid-column: auto;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}

.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 - CONSOLIDÉ
   ======================================== */

@media (max-width: 1024px) {
    .latest-news-grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    .news-card-large {
        grid-row: auto;
        grid-column: 1 / 3;
        height: 400px;
    }

    .news-card {
        height: 250px;
    }
}

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

    .nav-actions-mobile {
        display: flex;
    }

    .hamburger-btn {
        display: flex;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stats-bar-container {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .catalog-header h2 {
        font-size: 2rem;
    }

    .services-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .combined-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-menu {
        width: 320px;
        left: -320px;
    }

    .news-post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .news-badge-type {
        align-self: flex-start;
    }

    .news-post-actions {
        flex-wrap: wrap;
    }

    .latest-news-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-large {
        grid-column: 1;
        height: 350px;
    }

    .news-card {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* Ajouté pour combler les manquants */
}

@media (max-width: 640px) {
    nav {
        padding: 1rem 3%;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .hero {
        padding: 3rem 4%;
    }

    .hero h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .stats-bar {
        padding: 2rem 4%;
    }

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

    .stat-item {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    .stat-description {
        font-size: 0.9rem;
    }

    .services-catalog-section {
        padding: 3rem 4%;
    }

    .catalog-header h2 {
        font-size: 1.8rem;
    }

    .catalog-header p {
        font-size: 1rem;
    }

    .services-catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .catalog-card {
        padding: 2rem;
    }

    .icon-circle {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .catalog-card h3 {
        font-size: 1.3rem;
    }

    .btn-all-services {
        padding: 1.1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .latest-news-section {
        padding: 3rem 4%;
    }

    .latest-news-header h2 {
        font-size: 2rem;
    }

    .explore-more-news {
        width: 100%;
        justify-content: center;
    }

    .combined-section {
        padding: 3rem 4%;
    }

    .news-feed-widget,
    .video-podcast-widget {
        padding: 1.5rem;
    }

    .widget-header h3 {
        font-size: 1.2rem;
    }

    .news-timeline-item {
        margin-bottom: 1rem;
    }

    .news-post-avatar {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .news-post-author {
        font-size: 0.95rem;
    }

    .news-post-date {
        font-size: 0.8rem;
    }

    .news-timeline-content {
        padding: 1.2rem;
    }

    .news-timeline-content h4 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .news-timeline-content p {
        font-size: 0.9rem;
    }

    .news-post-image {
        height: 200px;
    }

    .news-post-actions {
        padding: 0.8rem 1.2rem;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .news-action-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: calc(33.333% - 0.6rem);
        justify-content: center;
    }

    .featured-video-thumbnail {
        height: 180px;
    }

    .featured-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .featured-video-details h4 {
        font-size: 1rem;
    }

    .playlist-item {
        padding: 0.6rem;
    }

    .playlist-thumbnail {
        width: 70px;
        height: 50px;
    }

    .playlist-info h5 {
        font-size: 0.85rem;
    }

    .contact-section {
        padding: 3rem 4%;
    }

    .contact-section h2 {
        font-size: 1.8rem;
    }

    .contact-section p {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .sidebar-menu {
        width: 90%;
        left: -100%;
    }

    .sidebar-menu.active {
        left: 0;
    }

    .sidebar-header {
        padding: 1.2rem;
    }

    .sidebar-logo h2 {
        font-size: 1.1rem;
    }

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

    footer {
        padding: 3rem 4% 1.5rem;
    }

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

@media (max-width: 375px) {
    .hero h2 {
        font-size: 1.4rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .catalog-header h2 {
        font-size: 1.6rem;
    }

    .news-action-btn {
        min-width: calc(50% - 0.4rem);
    }

    .news-action-btn span:last-child {
        display: none;
    }

    .contact-section h2 {
        font-size: 1.6rem;
    }
}

/* ===== HERO CENTRÉ - PAGE PRÉSENTATION ===== */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}



/* Smooth scroll pour les ancres */
html {
    scroll-behavior: smooth;
}

/* Offset pour le header sticky */
#partenariats {
    scroll-margin-top: 100px;
}


/* ===== VIDÉO YOUTUBE - Bords Arrondis ===== */

/* Pour toutes les iframes YouTube */
iframe[src*="youtube.com"],
iframe[src*="youtu.be"] {
    border-radius: 20px !important;
    overflow: hidden;
}

/* Conteneur de la vidéo */
.featured-video-card iframe,
.video-container iframe {
    border-radius: 20px;
    overflow: hidden;
}

/* Si tu utilises un wrapper pour la vidéo */
.video-wrapper {
    border-radius: 20px;
    overflow: hidden;
}
