/* ===================================
   MIG-Numéra - Modern CSS Styles
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #0891b2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
#mainNav {
    padding: 1.25rem 0;
    transition: var(--transition);
    background: transparent;
}

#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--dark);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 50px;
    height: 50px;
    /* background: var(--gradient-primary); */
    /* border-radius: 12px; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: white; */
    /* font-size: 1.25rem; */
}

.brand-text {
    font-size: 1.5rem;
    font-family: var(--font-display);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

/* Dropdown Menu */
.navbar-nav .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    min-width: 240px;
    animation: dropdownFade 0.3s ease-in-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.navbar-nav .dropdown-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.navbar-nav .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(0, 123, 255, 0.1) 100%);
    color: var(--primary);
    padding-left: 2rem;
}

.navbar-nav .dropdown-item:active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(0, 123, 255, 0.15) 100%);
}

.navbar-nav .dropdown-divider {
    margin: 0.5rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: 0.15em;
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Mobile Menu - Display all links directly (no dropdown) */
@media (max-width: 991.98px) {
    /* Hide the dropdown toggle on mobile */
    .navbar-nav .dropdown-toggle {
        display: none !important;
    }

    /* Show dropdown menu as regular list on mobile */
    .navbar-nav .dropdown-menu {
        display: block !important;
        position: static !important;
        float: none;
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    /* Style dropdown items like regular nav links on mobile */
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1.5rem;
        color: var(--gray-600);
        font-weight: 500;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus,
    .navbar-nav .dropdown-item:active {
        background: rgba(79, 70, 229, 0.05);
        color: var(--primary);
        padding-left: 1.5rem;
    }

    /* Hide dropdown dividers on mobile */
    .navbar-nav .dropdown-divider {
        display: none;
    }

    /* Ensure navbar is scrollable if needed */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-hero);
    color: var(--dark);
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(8, 145, 178, 0.08) 0%, transparent 50%);
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(79, 70, 229, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    background: var(--gradient-primary);
    color: white;
}

.btn-outline-light {
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline-light:hover {
    background: var(--gray-700);
    border-color: var(--gray-700);
    color: white;
}

/* Hero Stats */
.hero-stats {
    border-top: 1px solid var(--gray-300);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.hero-visual-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%),
        url('img/hero-background.jpg') center/cover no-repeat;
    /* Remplacez 'img/hero-background.jpg' par le chemin de votre image */
    background-size: cover;
    background-position: center;
}

.hero-visual-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
    animation: float-gentle 8s ease-in-out infinite;
}

.floating-circle.circle-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.floating-circle.circle-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: -2s;
}

.floating-circle.circle-3 {
    width: 60px;
    height: 60px;
    bottom: 15%;
    left: 10%;
    animation-delay: -4s;
}

.floating-circle.circle-4 {
    width: 100px;
    height: 100px;
    top: 35%;
    right: 30%;
    animation-delay: -6s;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(10px, -15px) scale(1.05);
        opacity: 0.8;
    }
    50% {
        transform: translate(-5px, -25px) scale(0.95);
        opacity: 0.5;
    }
    75% {
        transform: translate(-15px, -10px) scale(1.02);
        opacity: 0.7;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.1);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

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

/* Section Styles */
.section-padding {
    padding: 6rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* Objective Cards */
.objective-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition);
    height: 100%;
}

.objective-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.objective-number {
    position: absolute;
    top: -1rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(79, 70, 229, 0.1);
    font-family: var(--font-display);
    line-height: 1;
}

.objective-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.objective-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.objective-text {
    color: var(--gray-600);
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--gray-100);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.timeline-date {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 100%;
}

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

.team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.team-badge {
    padding: 0.375rem 0.875rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Partner Cards */
.partner-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    height: 100%;
}

.partner-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.partner-header i {
    font-size: 2rem;
    color: var(--primary);
}

.partner-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.partner-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partner-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    transition: var(--transition);
}

.partner-item:hover {
    background: var(--gray-100);
}

.partner-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.partner-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.partner-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* Funding Card */
.funding-card {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-xl);
}

.funding-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.funding-content h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.funding-content p {
    margin-bottom: 0;
}

.funding-content a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.funding-content a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Newsletter Form */
.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    box-shadow: var(--shadow-xl);
    border-radius: 12px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    border-radius: 0;
}

/* Contact Info */
.contact-info {
    margin-top: 3rem;
}

.contact-info .btn {
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background: var(--gray-50);
    padding: 2rem 0;
    border-top: 1px solid var(--gray-200);
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
}

.footer-brand i {
    color: var(--primary);
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--gray-600);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero-visual {
        height: 400px;
        margin-top: 3rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-title {
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-stats {
        text-align: center;
    }
    
    .funding-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
    
    .btn-lg {
        font-size: 1rem;
    }

    .hero-visual {
        height: 350px;
    }

    .floating-circle {
        opacity: 0.4;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -2rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1rem;
    }
}

/* Utilities */
.bg-light {
    background-color: var(--light) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button, a, input {
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    .hero-section,
    .navbar,
    .footer,
    .scroll-indicator,
    .newsletter-form {
        display: none !important;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}