/* ============================================
   DESIGN INSTITUTIONNEL MODERNE ET PROFESSIONNEL
   Ministère de l'Intégration Régionale - RDC
   ============================================ */

:root {
    /* Palette de couleurs institutionnelle moderne */
    --primary-blue: #003B73;
    --primary-gold: #D4AF37;
    --secondary-blue: #0A5F99;
    --accent-red: #C41E3A;
    --accent-yellow: #FFB81C;
    --dark-navy: #001F3F;
    --light-blue: #E8F4F8;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --white: #FFFFFF;
    
    /* Typographie */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', 'Roboto', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.18);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

body {
    font-family: var(--font-secondary);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* ============================================
   DROPDOWNS NAVBAR - Liste directe sans scroll
   (Structures, Le Ministère : toute la liste visible)
   ============================================ */

#mainNavigation .dropdown-menu,
#mainNavigation .navbar-nav .dropdown-menu,
#mainNavigation .modern-dropdown {
    max-height: none !important;
    overflow: visible !important;
}

/* ============================================
   HEADER MODERNE
   ============================================ */

#pageHeader {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header-scrolled {
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

/* Top Bar moderne */
.hdTopBar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.hdTopBar a {
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.hdTopBar a:hover {
    color: var(--primary-gold);
    transform: translateX(2px);
}

/* Navigation principale moderne */
.mainNavigation {
    padding: 1rem 0;
}

.mainNavigation .navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-800);
    padding: 0.75rem 1.25rem;
    transition: all var(--transition-fast);
    position: relative;
}

.mainNavigation .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-gold));
    transition: transform var(--transition-base);
}

.mainNavigation .navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

.mainNavigation .navbar-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.mainNavigation .navbar-nav .nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ============================================
   HERO SECTION MODERNE
   ============================================ */

.modern-hero {
    position: relative;
    min-height: 0;
    padding: 4rem 0 5rem;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 50%, var(--secondary-blue) 100%);
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: heroPattern 60s linear infinite;
}

@keyframes heroPattern {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-emblem {
    width: 220px;
    height: auto;
    max-height: 220px;
    margin-bottom: 1.5rem;
    display: block;
    animation: floatEmblem 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    object-fit: contain;
}

@keyframes floatEmblem {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: var(--white);
}

/* Titres hero des pages internes : toujours blancs et centrés */
.page-hero .hero-title,
.modern-hero.page-hero .hero-title,
section.page-hero .hero-content .hero-title {
    color: #ffffff !important;
    text-align: center !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.page-hero .hero-subtitle,
.modern-hero.page-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

/* Sous-titre hero toujours lisible : texte blanc, pas de fond sombre, pas de texte transparent */
.page-hero .hero-subtitle,
.modern-hero.page-hero .hero-subtitle,
.page-hero .hero-subtitle.hero-subtitle-readable,
.modern-hero.page-hero .hero-subtitle.hero-subtitle-readable {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    font-weight: 500;
}

/* Pas de boîte bleue sombre : fond léger ou transparent pour le sous-titre */
.page-hero .hero-subtitle.hero-subtitle-readable,
.modern-hero.page-hero .hero-subtitle.hero-subtitle-readable {
    background: transparent !important;
    border: none !important;
    max-width: 700px;
}

.page-hero .hero-content,
.modern-hero.page-hero .hero-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    position: relative;
}

/* Pas de cadre/boîte bleue sur le hero des pages : même rendu que l'accueil (texte directement sur le fond) */
.page-hero .hero-content::before,
.page-hero .hero-content::after {
    display: none !important;
}

/* Fil d'Ariane du hero en blanc */
.page-hero .breadcrumb-modern,
.modern-hero.page-hero .breadcrumb-modern {
    color: rgba(255, 255, 255, 0.9);
}

.page-hero .breadcrumb-modern .breadcrumb-item,
.page-hero .breadcrumb-modern a {
    color: rgba(255, 255, 255, 0.95) !important;
}

.page-hero .breadcrumb-modern .breadcrumb-item.active {
    color: #fff !important;
}

.page-hero .breadcrumb-modern a:hover {
    color: #fff !important;
}

.hero-title .highlight {
    color: var(--white);
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
}

/* Animation de texte - Typewriter effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: rgba(255, 255, 255, 0.8);
    }
}

.hero-title.typewriter {
    overflow: hidden;
    border-right: 3px solid rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blinkCursor 0.75s step-end infinite;
}

/* Animation de texte - Gradient animé */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-title.gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, #e0f2fe 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Animation de texte - Letter spacing */
@keyframes letterSpacing {
    0%, 100% {
        letter-spacing: 0;
    }
    50% {
        letter-spacing: 0.2em;
    }
}

.hero-title.letter-animate {
    animation: letterSpacing 2s ease-in-out infinite;
}

/* Animation de texte - Fade in word by word */
.hero-title.word-fade {
    overflow: hidden;
}

.hero-title.word-fade span {
    display: inline-block;
    opacity: 0;
    animation: fadeInWord 0.8s ease forwards;
}

.hero-title.word-fade span:nth-child(1) { animation-delay: 0.1s; }
.hero-title.word-fade span:nth-child(2) { animation-delay: 0.2s; }
.hero-title.word-fade span:nth-child(3) { animation-delay: 0.3s; }
.hero-title.word-fade span:nth-child(4) { animation-delay: 0.4s; }
.hero-title.word-fade span:nth-child(5) { animation-delay: 0.5s; }
.hero-title.word-fade span:nth-child(6) { animation-delay: 0.6s; }
.hero-title.word-fade span:nth-child(7) { animation-delay: 0.7s; }
.hero-title.word-fade span:nth-child(8) { animation-delay: 0.8s; }
.hero-title.word-fade span:nth-child(9) { animation-delay: 0.9s; }
.hero-title.word-fade span:nth-child(10) { animation-delay: 1s; }

@keyframes fadeInWord {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ANIMATIONS DE TEXTE ÉLÉGANTES
   ============================================ */

/* Animation texte - Slide in from left avec bounce */
@keyframes slideInLeftBounce {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    60% {
        transform: translateX(10px);
    }
    80% {
        transform: translateX(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.text-slide-left-bounce {
    animation: slideInLeftBounce 1s ease-out forwards;
    opacity: 0;
}

/* Animation texte - Slide in from right avec bounce */
@keyframes slideInRightBounce {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    60% {
        transform: translateX(-10px);
    }
    80% {
        transform: translateX(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.text-slide-right-bounce {
    animation: slideInRightBounce 1s ease-out forwards;
    opacity: 0;
}

/* Animation texte - Scale in avec rotation */
@keyframes scaleInRotate {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.text-scale-rotate {
    animation: scaleInRotate 0.8s ease-out forwards;
    opacity: 0;
}

/* Animation texte - Fade in avec zoom */
@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.text-fade-zoom {
    animation: fadeInZoom 0.6s ease-out forwards;
    opacity: 0;
}

/* Animation texte - Wave effect (vague) */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    75% {
        transform: translateY(5px);
    }
}

.text-wave span {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

.text-wave span:nth-child(1) { animation-delay: 0s; }
.text-wave span:nth-child(2) { animation-delay: 0.1s; }
.text-wave span:nth-child(3) { animation-delay: 0.2s; }
.text-wave span:nth-child(4) { animation-delay: 0.3s; }
.text-wave span:nth-child(5) { animation-delay: 0.4s; }
.text-wave span:nth-child(6) { animation-delay: 0.5s; }
.text-wave span:nth-child(7) { animation-delay: 0.6s; }
.text-wave span:nth-child(8) { animation-delay: 0.7s; }
.text-wave span:nth-child(9) { animation-delay: 0.8s; }
.text-wave span:nth-child(10) { animation-delay: 0.9s; }

/* Animation texte - Gradient animé amélioré */
@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.text-gradient-animated {
    background: linear-gradient(90deg, #ffffff 0%, #e0f2fe 25%, #ffffff 50%, #e0f2fe 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 3s ease infinite;
}

/* Application automatique des animations aux titres de section */
.section-title-modern h2 {
    animation: slideInLeftBounce 1s ease-out forwards;
    opacity: 0;
}

.section-title-modern p {
    animation: fadeInZoom 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* Application automatique des animations aux cartes */
.card-title {
    transition: all 0.3s ease;
}

.card-title:hover {
    transform: scale(1.05);
    color: var(--primary-gold);
}

.card-text {
    animation: fadeInZoom 0.6s ease-out forwards;
    opacity: 0;
}

/* Animation pour les titres de news */
.news-title-modern {
    transition: all 0.3s ease;
}

.news-title-modern:hover {
    transform: scale(1.05);
    color: var(--primary-blue);
}

/* Animation texte - Shine effect (brillance) */
@keyframes textShine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.text-shine {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.3) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 2s linear infinite;
}

/* Ne jamais appliquer text-shine au sous-titre du hero (reste lisible) */
.page-hero .hero-subtitle.text-shine,
.modern-hero.page-hero .hero-subtitle.text-shine {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

/* Animation texte - Glitch effect */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

.text-glitch {
    position: relative;
    animation: glitch 0.3s infinite;
}

.text-glitch::before,
.text-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.text-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.text-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    5% {
        clip: rect(66px, 9999px, 100px, 0);
        transform: skew(0.5deg);
    }
    10% {
        clip: rect(92px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    15% {
        clip: rect(31px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    20% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    25% {
        clip: rect(31px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    30% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    35% {
        clip: rect(31px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    40% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    45% {
        clip: rect(31px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    50% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    55% {
        clip: rect(31px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    60% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    65% {
        clip: rect(31px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    70% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    75% {
        clip: rect(31px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    80% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    85% {
        clip: rect(31px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    90% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    95% {
        clip: rect(31px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    100% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
        transform: skew(0.5deg);
    }
    5% {
        clip: rect(96px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    10% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    15% {
        clip: rect(88px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    20% {
        clip: rect(31px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    25% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    30% {
        clip: rect(31px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    35% {
        clip: rect(88px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    40% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    45% {
        clip: rect(88px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    50% {
        clip: rect(31px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    55% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    60% {
        clip: rect(31px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    65% {
        clip: rect(88px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    70% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    75% {
        clip: rect(88px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    80% {
        clip: rect(31px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    85% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    90% {
        clip: rect(31px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }
    95% {
        clip: rect(88px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    100% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
}

/* Animation texte - Neon glow effect */
@keyframes neonGlow {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.5),
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 15px rgba(0, 59, 115, 0.8),
            0 0 20px rgba(0, 59, 115, 0.8);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 30px rgba(0, 59, 115, 1),
            0 0 40px rgba(0, 59, 115, 1);
    }
}

.text-neon {
    animation: neonGlow 2s ease-in-out infinite;
    color: #ffffff;
}

/* Animation texte - Letter spacing pulse */
@keyframes letterSpacingPulse {
    0%, 100% {
        letter-spacing: 0;
    }
    50% {
        letter-spacing: 0.3em;
    }
}

.text-letter-pulse {
    animation: letterSpacingPulse 2s ease-in-out infinite;
}

/* Animation texte - Rotate in */
@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-200deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.text-rotate-in {
    animation: rotateIn 0.8s ease-out forwards;
    opacity: 0;
}

/* Animation texte - Bounce in */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.text-bounce-in {
    animation: bounceIn 0.8s ease-out forwards;
    opacity: 0;
}

/* Animation texte - Flip in */
@keyframes flipIn {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    40% {
        transform: perspective(400px) rotateY(-20deg);
    }
    60% {
        transform: perspective(400px) rotateY(10deg);
    }
    80% {
        transform: perspective(400px) rotateY(-5deg);
    }
    100% {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

.text-flip-in {
    animation: flipIn 0.8s ease-out forwards;
    opacity: 0;
}

/* Animation texte - Hover effects */
.text-hover-grow {
    transition: transform 0.3s ease;
}

.text-hover-grow:hover {
    transform: scale(1.1);
}

.text-hover-color {
    transition: color 0.3s ease;
}

.text-hover-color:hover {
    color: var(--primary-gold);
}

.text-hover-underline {
    position: relative;
    transition: all 0.3s ease;
}

.text-hover-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.text-hover-underline:hover::after {
    width: 100%;
}

/* Animation texte - Character reveal */
@keyframes charReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.text-char-reveal span {
    display: inline-block;
    opacity: 0;
    animation: charReveal 0.5s ease forwards;
}

.text-char-reveal span:nth-child(1) { animation-delay: 0.1s; }
.text-char-reveal span:nth-child(2) { animation-delay: 0.15s; }
.text-char-reveal span:nth-child(3) { animation-delay: 0.2s; }
.text-char-reveal span:nth-child(4) { animation-delay: 0.25s; }
.text-char-reveal span:nth-child(5) { animation-delay: 0.3s; }
.text-char-reveal span:nth-child(6) { animation-delay: 0.35s; }
.text-char-reveal span:nth-child(7) { animation-delay: 0.4s; }
.text-char-reveal span:nth-child(8) { animation-delay: 0.45s; }
.text-char-reveal span:nth-child(9) { animation-delay: 0.5s; }
.text-char-reveal span:nth-child(10) { animation-delay: 0.55s; }
.text-char-reveal span:nth-child(n+11) { animation-delay: 0.6s; }

/* Animation des strokes - SVG stroke animation */
@keyframes strokeDraw {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.stroke-animated {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: strokeDraw 3s ease-in-out forwards;
}

/* Animation des strokes - Border animation */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
}

.stroke-border {
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: borderGlow 2s ease-in-out infinite;
}

/* Animation des strokes - Rotating border */
@keyframes rotateBorder {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating-border {
    position: relative;
    overflow: hidden;
}

.rotating-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: rotateBorder 3s linear infinite;
    z-index: -1;
}

/* Effet Glossy amélioré - Style brillant et élégant */
.glass-effect {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.glass-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: glossyShine 3s infinite;
    pointer-events: none;
}

@keyframes glossyShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.glass-effect-dark {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.glass-effect-dark::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: glossyShine 4s infinite;
    pointer-events: none;
}

.glass-effect-blue {
    background: linear-gradient(135deg, rgba(0, 59, 115, 0.35) 0%, rgba(0, 59, 115, 0.15) 50%, rgba(10, 95, 153, 0.25) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 12px 40px 0 rgba(0, 59, 115, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.glass-effect-blue::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: glossyShine 3.5s infinite;
    pointer-events: none;
}

/* Animation glass - Pulse effect */
@keyframes glassPulse {
    0%, 100% {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 0.9;
    }
    50% {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        opacity: 1;
    }
}

.glass-effect-pulse {
    animation: glassPulse 3s ease-in-out infinite;
}

/* Animation glass - Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.glass-effect-shimmer {
    position: relative;
    overflow: hidden;
}

.glass-effect-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Animation stroke pour les cartes */
.card-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-modern.glass-effect {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 40px 0 rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card-modern.glass-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: glossyShine 4s infinite;
    pointer-events: none;
    z-index: 0;
}

.card-modern.glass-effect-blue {
    background: linear-gradient(135deg, rgba(0, 59, 115, 0.2) 0%, rgba(0, 59, 115, 0.1) 50%, rgba(10, 95, 153, 0.15) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 40px 0 rgba(0, 59, 115, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.card-modern.glass-effect-blue::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: glossyShine 3.5s infinite;
    pointer-events: none;
    z-index: 0;
}

.card-modern.glass-effect > *,
.card-modern.glass-effect-blue > * {
    position: relative;
    z-index: 1;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease;
}

.card-modern:hover::before {
    border-color: rgba(0, 59, 115, 0.5);
    animation: borderGlow 2s ease-in-out infinite;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 59, 115, 0.25);
}

/* Animation stroke pour les sections */
.section-title-modern {
    position: relative;
    padding-bottom: 1rem;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    animation: strokeDraw 1.5s ease-in-out;
}

/* Effet glossy pour les cartes de news */
.news-card-modern {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.news-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: glossyShine 4s infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.news-card-modern:hover::before {
    opacity: 1;
    animation-duration: 2s;
}

.news-card-modern:hover {
    box-shadow: 
        0 16px 48px 0 rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Animation texte pour les sous-titres */
.hero-subtitle {
    position: relative;
}

.hero-subtitle.glass-effect {
    color: rgba(255, 255, 255, 0.98);
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
    max-width: 600px;
}

/* Sous-titre hero accueil : texte entier visible, blanc, pas de coupure */
.hero-subtitle-home,
.modern-hero .hero-subtitle.hero-subtitle-home {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    overflow: visible !important;
    max-height: none !important;
    min-height: auto;
    white-space: normal !important;
    word-wrap: break-word;
}

/* Boutons modernes avec effet glossy */
.btn-modern {
    padding: 1rem 2.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.btn-modern.glass-effect {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 24px 0 rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.95);
}

.btn-modern.glass-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: glossyShine 2.5s infinite;
    pointer-events: none;
    z-index: -1;
}

.btn-modern.glass-effect-dark {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 24px 0 rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.btn-modern.glass-effect-dark::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: glossyShine 3s infinite;
    pointer-events: none;
    z-index: -1;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-gold), #C9A042);
    color: var(--dark-navy);
    border: none;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--dark-navy);
}

.btn-outline-modern {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-modern:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   CARDS MODERNES
   ============================================ */

.card-modern {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: none;
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 24px rgba(0, 59, 115, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    aspect-ratio: 1 / 1;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: glossyShine 3s infinite;
    pointer-events: none;
    border-radius: 50%;
}

.card-icon i {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-icon.rotating-border::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50% !important;
    animation: rotateBorder 3s linear infinite;
    z-index: -1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.card-modern:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-gold) 0%, #C9A042 100%);
    box-shadow: 
        0 12px 32px rgba(255, 193, 7, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    border-radius: 50% !important;
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1rem;
}

/* ============================================
   SECTION MINISTRE MODERNE
   ============================================ */

.minister-section {
    padding: 6rem 0;
    background: var(--light-blue);
    position: relative;
    overflow: hidden;
}

.minister-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,59,115,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.minister-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.minister-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.minister-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,59,115,0.8) 0%, transparent 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.minister-image-wrapper:hover::before {
    opacity: 1;
}

.minister-quote {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 5px solid var(--primary-gold);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    box-shadow: var(--shadow-md);
    position: relative;
}

.minister-quote::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -20px;
    left: 20px;
    color: var(--primary-gold);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* ============================================
   FEATURES GRID MODERNE
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.feature-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.feature-item:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--light-blue), #D0E8F2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    transition: all var(--transition-base);
}

.feature-item:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    transform: scale(1.1);
}

/* ============================================
   STATS COUNTER MODERNE
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ============================================
   NEWS SECTION MODERNE
   ============================================ */

.news-modern-section {
    padding: 6rem 0;
    background: var(--gray-100);
}

.section-title-modern {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 0;
}

.section-title-modern h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

/* Éviter que la section blanche empiète sur le hero */
main > section.modern-hero + section {
    position: relative;
    z-index: 2;
    margin-top: 0 !important;
    padding-top: 4rem;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.section-title-modern h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-gold));
    border-radius: 2px;
}

.news-card-modern {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.news-image-modern {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.news-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card-modern:hover .news-image-modern img {
    transform: scale(1.1);
}

.news-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(201, 160, 66, 0.95) 100%);
    color: var(--dark-navy);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 16px 0 rgba(255, 193, 7, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.news-category-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: glossyShine 3s infinite;
    pointer-events: none;
}

.news-category-badge.glass-effect {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 16px 0 rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.news-category-badge.glass-effect-blue {
    background: linear-gradient(135deg, rgba(0, 59, 115, 0.5) 0%, rgba(0, 59, 115, 0.3) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 4px 16px 0 rgba(0, 59, 115, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.news-content-modern {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt-modern {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.7;
}

.news-meta-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.news-date-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.read-more-link:hover {
    color: var(--primary-gold);
    transform: translateX(3px);
}

/* ============================================
   ACTUALITÉS - STRUCTURE TYPE RÉFÉRENCE
   ============================================ */

.newsSingleWrap {
    background: #fff;
}

.newsSingleWrap .imgHolder video,
.newsSingleWrap .imgHolder iframe {
    border: 0;
}

.newsSingleWrap .nrcHead .h2 {
    color: var(--primary-blue);
}

.newsSingleWrap .article-content {
    color: var(--body-color);
}

.newsSingleWrap .widgetUpcoming h3 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
}

.newsSingleWrap .descrWrap h4 a:hover {
    color: var(--primary-blue) !important;
}

.newsSingleWrap .dscSidebar {
    position: relative;
}

@media (min-width: 992px) {
    .newsSingleWrap .dscSidebar {
        position: sticky;
        top: 1.5rem;
    }
}

/* ============================================
   PAGE ARTICLE - VIDÉO ET CONTENU
   ============================================ */

.article-video-embed iframe {
    border: 0;
}

.article-single .article-content {
    color: var(--body-color);
}

/* ============================================
   PAGE ARTICLE - SIDEBAR "AUTRES ARTICLES"
   ============================================ */

.autres-articles-sidebar {
    padding: 1.25rem;
    background: var(--gray-100);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.autres-articles-sidebar .border-primary {
    border-color: var(--primary-blue) !important;
}

.autres-articles-item a {
    transition: color var(--transition-fast);
}

.autres-articles-item a:hover .autres-articles-title {
    color: var(--primary-blue) !important;
}

.autres-articles-item a:hover .autres-articles-thumb img {
    transform: scale(1.05);
}

.autres-articles-thumb {
    width: 80px;
    height: 60px;
    overflow: hidden;
    background: var(--gray-200);
}

.autres-articles-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.autres-articles-thumb-placeholder {
    font-size: 1.25rem;
}

.autres-articles-title {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 992px) {
    .autres-articles-sidebar.sticky-top {
        position: sticky;
        top: 1.5rem;
    }
}

/* ============================================
   CONTENT CARDS (Accueil / Actualités)
   Grille responsive de cartes texte ou image
   ============================================ */

.content-cards-section {
    position: relative;
}

.content-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .content-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .content-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .content-cards-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .content-card-modern {
        min-height: 180px;
    }
    .content-card-body {
        padding: 1.25rem;
    }
}

.content-card-modern {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Couleurs de bloc pour les cartes (choix admin) */
.content-card-bg-primary { background: var(--primary-blue) !important; border-color: rgba(255,255,255,0.2) !important; }
.content-card-bg-primary .content-card-title,
.content-card-bg-primary .content-card-excerpt,
.content-card-bg-primary .content-card-content,
.content-card-bg-primary .content-card-cta { color: rgba(255,255,255,0.95) !important; }
.content-card-bg-primary .content-card-excerpt,
.content-card-bg-primary .content-card-content { color: rgba(255,255,255,0.85) !important; }
.content-card-bg-light { background: var(--gray-100) !important; }
.content-card-bg-gold { background: linear-gradient(135deg, #D4AF37, #C9A042) !important; border-color: rgba(0,0,0,0.1) !important; }
.content-card-bg-gold .content-card-title,
.content-card-bg-gold .content-card-cta { color: #001F3F !important; }
.content-card-bg-gold .content-card-excerpt,
.content-card-bg-gold .content-card-content { color: rgba(0,31,63,0.9) !important; }
.content-card-bg-blue-light { background: rgba(0, 59, 115, 0.08) !important; }

.content-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.content-card-has-link .content-card-link-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.content-card-has-link .content-card-link-wrap:hover {
    color: inherit;
}

.content-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 160px;
    overflow: hidden;
    background: var(--gray-100);
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.content-card-modern:hover .content-card-image img {
    transform: scale(1.05);
}

.content-card-image-fallback {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.content-card-image-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='%23ffffff' opacity='0.4' viewBox='0 0 16 16'%3E%3Cpath d='M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/%3E%3Cpath d='M2.002 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm12 1a1 1 0 0 1 1 1v6.5l-3.777-2.25L5 8.5 2 10V3a1 1 0 0 1 1-1h10z'/%3E%3C/svg%3E") center no-repeat;
}

.content-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.content-card-excerpt {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.content-card-content {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    flex-grow: 1;
}

.content-card-content p:last-child {
    margin-bottom: 0;
}

.content-card-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.content-card-modern:hover .content-card-cta {
    color: var(--primary-gold);
}

.content-card-has-link .content-card-link-wrap:hover .content-card-cta {
    transform: translateX(4px);
}

/* Cartes sans image (texte seul) : corps plus grand */
.content-card-text-only .content-card-body,
.content-card-modern:not(:has(.content-card-image)) .content-card-body {
    padding: 1.75rem;
}

/* Page détail offre (opportunités) */
.offre-detail-content {
    line-height: 1.7;
}
.offre-detail-content p { margin-bottom: 1rem; }
.offre-detail-content ul, .offre-detail-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.offre-detail-content li { margin-bottom: 0.35rem; }
.offre-card-image img { transition: transform 0.3s ease; }
.card-modern:hover .offre-card-image img { transform: scale(1.03); }

/* ============================================
   BARRE DRAPEAU RDC (rouge, jaune, bleu)
   ============================================ */

.flag-bar {
    display: flex;
    width: 100%;
    height: 6px;
    overflow: hidden;
}

.flag-bar-segment {
    flex: 1;
    min-width: 0;
}

.flag-bar-red   { background: #CE1126; }
.flag-bar-yellow { background: #FCD116; }
.flag-bar-blue  { background: #002868; }

/* ============================================
   FOOTER MODERNE ET PROFESSIONNEL
   ============================================ */

.ftAreaWrap {
    background: linear-gradient(180deg, #001F3F 0%, #003B73 50%, #0A5F99 100%) !important;
    color: #fff !important;
}

.ftConnectAside {
    color: rgba(255,255,255,0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    padding: 1.5rem 0 !important;
}

.ftConnectAside .ftcaNav a,
.ftConnectAside .title {
    color: rgba(255,255,255,0.95) !important;
}

.ctConnectWrap .title {
    font-weight: 600 !important;
    color: #ffffff !important;
}

.ftConnectAside .ftcaNav a:hover {
    color: #D4AF37 !important;
}

.ftSocialNetworks {
    display: flex !important;
    gap: 0.6rem !important;
    flex-wrap: wrap;
}

.ftSocialNetworks li { margin: 0 !important; }

.ftSocialNetworks a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    background: rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    border-radius: 50% !important;
    font-size: 1.35rem !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

.ftSocialNetworks a i,
.ftSocialNetworks a .fa-brands,
.ftSocialNetworks a .fab,
.ftSocialNetworks a .fas {
    font-size: 1.35rem !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.ftSocialNetworks a:hover {
    background: var(--primary-gold) !important;
    color: #001F3F !important;
    border-color: var(--primary-gold) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.ftSocialNetworks a:hover i,
.ftSocialNetworks a:hover .fa-brands,
.ftSocialNetworks a:hover .fab,
.ftSocialNetworks a:hover .fas {
    color: #001F3F !important;
    -webkit-text-fill-color: #001F3F !important;
}

.footerAside {
    color: rgba(255,255,255,0.9) !important;
    padding: 2.5rem 0 2rem !important;
    font-size: 0.95rem !important;
}

.footerAside .ftHeading {
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footerAside .ftPlace,
.footerAside .ftpScheduleList { color: rgba(255,255,255,0.9) !important; }

.footerAside .ftpScheduleList a,
.footerAside .ftsrLinksList a,
.footerAside .ftPlace a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footerAside .ftpScheduleList a:hover,
.footerAside .ftsrLinksList a:hover,
.footerAside .ftPlace a:hover {
    color: #D4AF37 !important;
}

.footerAside .ftsrLinksList li { margin-bottom: 0.5rem !important; }

.footerAside .ftsrLinksList a:before { border-color: rgba(255,255,255,0.5) !important; }

.footerAside .ftLogo img {
    filter: brightness(0) invert(1);
    max-height: 56px;
}

#pageFooter {
    background: rgba(0,0,0,0.25) !important;
    color: rgba(255,255,255,0.9) !important;
    padding: 1.25rem 1rem !important;
    font-size: 0.9rem !important;
    border-top: 1px solid rgba(255,255,255,0.08);
}

#pageFooter a { color: rgba(255,255,255,0.95) !important; }

#pageFooter a:hover { color: #D4AF37 !important; }

.footer-modern {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: block;
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .modern-hero {
        padding: 3rem 0 4rem;
    }
    
    .hero-emblem {
        width: 160px;
        max-height: 160px;
    }
    
    .hero-title {
        font-size: 2rem;
        color: var(--white);
    }
    
    .hero-title .highlight {
        font-size: 2.5rem;
        color: var(--white);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-modern {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    .card-modern {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-title-modern h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .modern-hero {
        padding: 2.5rem 0 3.5rem;
    }
    
    .hero-emblem {
        width: 140px;
        max-height: 140px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        color: var(--white);
    }
    
    .hero-title .highlight {
        font-size: 2rem;
        color: var(--white);
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 50% !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-gold);
    color: var(--dark-navy);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .modern-hero,
    .footer-modern,
    .btn-modern {
        display: none;
    }
}
