/* Variables CSS */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --light-bg: #ffffff;
    --light-surface: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--light-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation - MEMO Charte Graphique */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: #ffffff;
    border-bottom: 1px solid var(--color-border-light, #e2e8f0);
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0.75rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.25rem;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: #002A7E; /* Bleu foncé MEMO */
    font-family: var(--font-display, 'Quicksand', sans-serif);
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    background: var(--color-accent, #FFCE00); /* Jaune MEMO */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease-out;
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #002A7E;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    transform: scaleX(1);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #002A7E;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--primary-light);
    bottom: -100px;
    left: 50%;
    animation-delay: -10s;
}

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

.section-dark {
    background: var(--dark-bg);
    color: var(--text-light);
}

.section-dark .section-title,
.section-dark h3 {
    color: var(--text-light);
}

.section-dark .section-subtitle,
.section-dark p {
    color: #cbd5e1;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Vision Grid */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.vision-card {
    background: var(--light-surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

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

.vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.vision-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-content {
    background: var(--dark-surface);
    padding: 2rem;
    border-radius: 16px;
    width: calc(50% - 40px);
    box-shadow: var(--shadow-lg);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light-surface);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.objective-card {
    background: var(--dark-surface);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.objective-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.objective-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.objective-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Team Stats */
.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-stat-card {
    background: var(--light-surface);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.team-stat-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.team-stat-card h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-stat-card h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-stat-card p {
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 6rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

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

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    background: var(--light-surface);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-surface);
    color: #cbd5e1;
}

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Responsive */
@media (max-width: 968px) {
    /* Cache les liens nav et le sélecteur de langue */
    .nav-links {
        display: none !important;
    }

    .hide-mobile {
        display: none !important;
    }

    /* Affiche le bouton hamburger */
    .mobile-menu-btn {
        display: flex;
    }

    /* Réduit la taille du logo sur mobile */
    .navbar-brand img,
    .memo-logo img {
        height: 60px !important;
    }

    /* Menu déroulant mobile quand ouvert */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height, 80px);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 2px solid #e2e8f0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        padding: 1rem 1.5rem;
        gap: 0;
        z-index: 999;
    }

    .nav-links.active li {
        border-bottom: 1px solid #f0f4f8;
    }

    .nav-links.active li:last-child {
        border-bottom: none;
    }

    .nav-links.active a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1rem;
    }

    /* Boutons auth compacts */
    .nav-auth-buttons .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.82rem;
    }

    .nav-buttons {
        gap: 0.5rem;
    }

    .nav-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 40px;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .nav-buttons {
        display: none;
    }

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




