* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* === Couleurs === */
    /* Palette "Civic Blue" - moderne, institutionnel, rassurant */
    --primary-blue: #2958FF;
    --secondary-blue: #00A8E8;
    --accent-yellow: #FFC845;
    --accent-red: #E53935;
    --success-green: #00C853;

    /* Système de neutrals - ultra-lumineux et rassurant */
    --neutral-50: #FAFBFC;
    --neutral-100: #F5F7FA;
    --neutral-200: #E8ECEF;
    --neutral-300: #D4DBE2;
    --neutral-700: #4A5568;
    --neutral-800: #2D3748;
    --neutral-900: #1A202C;

    /* couleurs parallax */
    --equality-women: #F49EA8;
    --equality-men: #C4E5F8;
    --equality-oposite: #FFFFFF;
    --europe: #C1B7FB;
    --europe-oposite: #F1FBB7;
    --developpement: #F5CB9D;
    --developpement-oposite: #9DC7F5;
    --ecology: #94CE74;
    --ecology-oposite: #AE74CE;
    --observatory: #9dedf5;
    --observatory-oposite: #F5A59D;

    /* Tokens sémantiques - mode clair pur et confiant */
    --bg: #FFFFFF;
    --bg-2: var(--neutral-50);
    --bg-3: var(--neutral-100);
    --text: var(--neutral-900);
    --text-muted: var(--neutral-700);
    --border: var(--neutral-200);
    --brand: var(--primary-blue);
    --brand-hover: var(--secondary-blue);

    /* === Espacements === */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* === Border Radius === */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* === Ombres === */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 0 3px rgba(0, 0, 145, 0.1);

    /* === Animations === */
    --duration-fast: 150ms;
    --duration: 200ms;
    --duration-slow: 300ms;
    --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
    --easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* === Z-index === */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 1000;
    --z-modal: 2000;

    --color-primary: #2A4D9B; /* Bleu social */
    --color-secondary: #32C3D8; /* Cyan dynamique */
    --color-accent-1: #7B4BCE; /* Violet futur */
    --color-accent-2: #3CC06E; /* Vert impact */
    --color-background: #F4F7FA; /* Gris perle futur */
    --color-text: #0E1426; /* Bleu nuit */
    --color-text-light: #5A6B8C;
    --color-white: #FFFFFF;

    --gradient-diagonal: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent-1) 100%);
}


/* === Motion system === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Inter', 'Marianne', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* === Typographie fluide === */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--text);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--text);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.4;
    color: var(--text);
}

p {
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    line-height: 1.6;
    color: var(--text);
}

small {
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    line-height: 1.5;
    color: var(--text-muted);
}

/* === États focus et hover globaux === */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

a, button {
    transition: all var(--duration) var(--easing);
}

a:hover, button:hover {
    transform: translateY(-1px);
}

button:active, a:active {
    transform: translateY(0);
}

/* Header institutionnel */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--brand);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-header);
    box-shadow: var(--shadow-sm);
}


.header-container {
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-logo-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.home-logo-button:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
}

.logo-marianne {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.01em;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--neutral-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-item {
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--duration) ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item:hover {
    background: var(--neutral-100);
    color: var(--primary-blue);
}

.nav-item.active {
    background: var(--primary-blue);
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
}

.search-input {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s ease;
    background: var(--neutral-50);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand);
    width: 300px;
    box-shadow: var(--shadow-glow);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-700);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--neutral-700);
}

.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--neutral-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background: var(--neutral-200);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 2px solid white;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    border-radius: 12px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-btn:hover {
    background: var(--neutral-200);
    border-color: var(--neutral-300);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-900);
}

.profile-role {
    font-size: 0.75rem;
    color: var(--neutral-700);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.profile-role:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Sidebar repliée avec expansion au hover */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 80px;
    height: calc(100vh - 70px);
    background: white;
    border-right: 1px solid var(--neutral-200);
    padding: 2rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1001;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover {
    width: 280px;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 3px;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neutral-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding: 0 1.5rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.sidebar:hover .sidebar-title {
    opacity: 1;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.sidebar-item:hover {
    background: var(--neutral-100);
    color: var(--primary-blue);
}

.sidebar-item:hover::before {
    transform: scaleY(1);
}

.sidebar-item.active {
    background: rgba(0, 0, 145, 0.1);
    color: var(--primary-blue);
    font-weight: 600;
}

.sidebar-item.active::before {
    transform: scaleY(1);
}

.sidebar-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-item-text {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.sidebar:hover .sidebar-item-text {
    opacity: 1;
}

/* Tooltip pour la sidebar repliée - design clair et rassurant */
.sidebar-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--neutral-900);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.sidebar:not(:hover) .sidebar-item:hover::after {
    opacity: 1;
}

/* Main content avec offset pour sidebar repliée */
.main-content {
    margin-left: 80px;
    margin-top: 70px;
    padding: 0;
    min-height: calc(100vh - 70px);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flag-accent {
    background: linear-gradient(to right, #0055A4 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #EF4135 66.66%);
    height: 3px;
    width: 100%;
    position: fixed;
    top: 70px;
    left: 0;
    z-index: 999;
}

/* Hero Section avec Compteurs Dynamiques */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    color: var(--text);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.6) 0%,
    rgba(232, 236, 241, 0.6) 25%,
    rgba(240, 244, 248, 0.6) 50%,
    rgba(227, 232, 239, 0.6) 75%,
    rgba(245, 247, 250, 0.6) 100%),
    url("assets/img/shopping.jpg") center/cover no-repeat fixed;
    background-size: 400% 400%, cover;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Cercles décoratifs flottants (inspiré de Donutty) */
.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(41, 88, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
    line-height: 1.05;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #2958FF 0%, #00A8E8 50%, #2958FF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    position: relative;
    display: inline-block;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.35rem);
    margin-bottom: 3rem;
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    position: relative;
    z-index: 1;
    font-weight: 400;
    color: var(--neutral-700);
    max-width: 700px;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* CTA Hero */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #2958FF 0%, #00A8E8 100%);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
    box-shadow: 0 8px 30px rgba(41, 88, 255, 0.25);
    overflow: hidden;
    letter-spacing: 0.02em;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(41, 88, 255, 0.35);
}

.hero-cta svg {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.hero-cta:hover svg {
    transform: translateX(6px);
}

.kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1600px;
    margin-top: 5rem;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.kpi-card {
    background: transparent;
    border-radius: 0;
    padding: 2rem 1rem;
    border: none;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: visible;
}

/* Badge décoratif en haut de chaque carte */
.kpi-badge {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-dot 2.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 currentColor;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: 0 0 0 8px transparent;
    }
}

.kpi-card:nth-child(1) .kpi-badge {
    background: var(--primary-blue);
}

.kpi-card:nth-child(2) .kpi-badge {
    background: #00A94F;
}

.kpi-card:nth-child(3) .kpi-badge {
    background: var(--accent-red);
}

.kpi-card:nth-child(4) .kpi-badge {
    background: #F59E0B;
}

.kpi-card:nth-child(1) {
    animation-delay: 0.2s;
}

.kpi-card:nth-child(2) {
    animation-delay: 0.4s;
}

.kpi-card:nth-child(3) {
    animation-delay: 0.6s;
}

.kpi-card:nth-child(4) {
    animation-delay: 0.8s;
}

.kpi-card:hover {
    transform: translateY(-12px) scale(1.08);
}

.chart-container-hero {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.12));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kpi-card:hover .chart-container-hero {
    filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.2));
}

.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

.kpi-number-hero {
    font-size: 4.5rem;
    font-weight: 900;
    display: block;
    line-height: 1;
    font-family: 'Inter', 'Marianne', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kpi-card:hover .kpi-number-hero {
    transform: scale(1.12);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.kpi-card:nth-child(1) .kpi-number-hero {
    color: var(--primary-blue);
}

.kpi-card:nth-child(2) .kpi-number-hero {
    color: #00A94F;
}

.kpi-card:nth-child(3) .kpi-number-hero {
    color: var(--accent-red);
}

.kpi-card:nth-child(4) .kpi-number-hero {
    color: #F59E0B;
}

.kpi-label-center {
    font-size: 0.75rem;
    color: var(--neutral-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    display: block;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.kpi-label {
    font-size: 1rem;
    color: var(--neutral-700);
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    max-width: 280px;
    letter-spacing: 0.01em;
}

/* Badge décoratif en haut de chaque carte */
.kpi-badge {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-dot 2.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 currentColor;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: 0 0 0 8px transparent;
    }
}

.kpi-card:nth-child(1) .kpi-badge {
    background: var(--primary-blue);
}

.kpi-card:nth-child(2) .kpi-badge {
    background: #00A94F;
}

.kpi-card:nth-child(3) .kpi-badge {
    background: var(--accent-red);
}

.kpi-card:nth-child(4) .kpi-badge {
    background: #F59E0B;
}

/* Section générale */
.section {
    min-height: auto;
    padding: 4rem 2rem;
    background: white;
}

.section:nth-child(even) {
    background: var(--neutral-50);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--neutral-900);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    padding-top: 4rem;
    font-weight: 700;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
}

@keyframes growDonut {
    from {
        transform: scale(0.8) rotate(-90deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Particules flottantes décoratives */

.kpi-card:hover .chart-container-hero {
    transform: scale(1.05);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kpi-card:hover .kpi-number-hero {
    transform: scale(1.15);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kpi-card:hover .kpi-badge {
    animation-duration: 1.2s;
    transform: scale(1.3);
}

/* Section Quiz Interactif */
#quiz.section {
    min-height: 100vh;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url("assets/img/sport.jpg") center/cover no-repeat;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #000091;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #0055A4, #FFFFFF, #EF4135);
}

.quiz-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fafbfcba;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* Progress bar avec étapes numérotées */
.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.quiz-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--neutral-200);
    transform: translateY(-50%);
    z-index: 0;
}

.quiz-progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--neutral-200);
    border: 3px solid var(--neutral-200);
    color: var(--neutral-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: all var(--duration) var(--easing);
}

.quiz-progress-step.active {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(41, 88, 255, 0.2);
}

.quiz-progress-step.completed {
    background: var(--success-green);
    border-color: var(--success-green);
    color: white;
}

.quiz-question-container {
    display: none;
}

.quiz-question-container.active {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-areas:
        "category options"
        "question options";
    gap: 2rem 3rem;
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 768px) {
    .quiz-question-container.active {
        grid-template-columns: 1fr;
        grid-template-areas:
            "category"
            "question"
            "options";
        gap: 1.5rem;
    }
}

.quiz-category {
    grid-area: category;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--brand), var(--secondary-blue));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.quiz-category::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.quiz-category::first-letter {
    font-size: 3rem;
}

.quiz-question {
    grid-area: question;
    font-size: 1.75rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.3;
}

.quiz-options {
    grid-area: options;
    display: grid;
    gap: 0.75rem;
}

/* Cards ghost avec chevron */
.quiz-option {
    padding: 1.25rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--duration) var(--easing);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.quiz-option:hover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 5%, transparent);
    transform: translateX(4px);
}

.quiz-option.selected {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.quiz-option.selected::after {
    opacity: 1;
    transform: translateX(0);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.quiz-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quiz-btn-next {
    background: #000091;
    color: white;
    flex: 1;
}

.quiz-btn-prev {
    background: #e0e0e0;
    color: #333;
}

.quiz-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.score-display {
    margin-top: 2rem;
    padding: 2rem;
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.95)); */
    /* backdrop-filter: blur(10px); */
    /* border: 2px solid var(--brand); */
    color: var(--text);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1.3rem;
    display: none;
    /* box-shadow: var(--shadow-lg);*/
}

.score-display h3 {
    color: var(--brand);
}

.score-display p {
    color: var(--text-muted);
}

.score-display.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.score-chart {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

/* Barres horizontales pour les scores */

.score-bar-item {
    margin-bottom: 1.25rem;
}

.score-bar-item:last-child {
    margin-bottom: 0;
}

.score-bar-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.score-bar-icon {
    font-size: 1.25rem;
}

.score-bar-name {
    font-weight: 600;
    flex: 1;
}

.score-bar-value {
    font-weight: 700;
    color: var(--bar-color);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.score-bar-track {
    height: 12px;
    background: var(--neutral-200);
    border-radius: 999px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: var(--bar-color);
    border-radius: 999px;
    width: var(--bar-width);
    transition: width 0.8s var(--easing) 0.3s;
    transform-origin: left;
}

.score-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.score-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
}

.score-item-value {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

/* Carte Interactive ESS */

.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    padding: 0 5em 5em 5em;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: hidden;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--duration) var(--easing);
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.filter-btn:hover {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    border-color: var(--brand);
    color: var(--brand);
}

.filter-btn.active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

/* Layout flexible pour la carte et l'iframe */

.map-content-wrapper {
    display: flex;
    gap: 0;
    position: relative;
    min-height: 100vh;
    transition: all var(--duration-slow) var(--easing);
}

/* Vue de la carte */

.map-view {
    flex: 1;
    min-width: 0;
}

#map {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    border: none;
    position: relative;
}

/* Légende au-dessus de la carte */

.map-filters,
.map-legend {
    position: absolute;
    z-index: 1000;
    background: color-mix(in srgb, var(--bg-2) 90%, transparent);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.map-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    width: 50%;
}

.map-legend {
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    bottom: 2rem;
    right: 2rem;
}

@media (max-width: 768px) {
    .map-filters {
        width: calc(100% - 2rem);
        top: 1rem;
        padding: 0.75rem 1rem;
    }

    .map-legend {
        position: absolute;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 1rem;
        width: calc(100% - 2rem);
    }
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #333;
}

/* Consultation Section - Pleine largeur comme map et quiz */

.consultation-section {
    background: linear-gradient(rgba(250, 251, 252, 0.6), rgba(250, 251, 252, 0.6)),
    url("assets/img/scream1.jpg") center/cover no-repeat !important;
}

.consultation-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Espace Membre */

.member-space {
    background: linear-gradient(135deg, rgba(0, 0, 145, 0.85) 0%, rgba(239, 65, 53, 0.85) 100%),
    url("assets/img/image (2).jpg") center/cover no-repeat;
    color: white;
}

#communaute {
    background: linear-gradient(rgba(250, 251, 252, 0.6), rgba(250, 251, 252, 0.6)), url(assets/img/family.jpg) center / cover no-repeat !important;
}

.member-container {
    max-width: 1400px;
    margin: 0 auto;

}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Grille pour ressources et événements côte à côte */

.member-grid-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .member-grid-bottom {
        grid-template-columns: 1fr;
    }
}

.member-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform 0.3s ease;
    color: #333;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Styles différenciés pour chaque member-card */

.member-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(41, 88, 255, 0.05), rgba(255, 255, 255, 0.95));
}

.member-card:nth-child(1) h3 {
    color: var(--primary-blue);
}

.member-card:nth-child(1):hover {
    box-shadow: 0 20px 40px rgba(41, 88, 255, 0.4);
}

.member-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(0, 169, 79, 0.05), rgba(255, 255, 255, 0.95));
}

.member-card:nth-child(2) h3 {
    color: #00A94F;
}

.member-card:nth-child(2):hover {
    box-shadow: 0 20px 40px rgba(0, 169, 79, 0.4);
}

.member-card:nth-child(3) {
    border-left: 5px solid #EF4135;
    background: linear-gradient(135deg, rgba(239, 65, 53, 0.05), rgba(255, 255, 255, 0.95));
    border-radius: var(--radius-lg);
}

.member-card:nth-child(3) h3 {
    color: #EF4135;
}

.member-card:nth-child(3):hover {
    box-shadow: 0 20px 40px rgba(239, 65, 53, 0.4);
}

.member-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000091;
}

.member-card p {
    line-height: 1.6;
    color: #666;
}

.resource-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.resource-item {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.resource-item:hover {
    border-color: #000091;
    transform: translateX(5px);
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(41, 88, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 88, 255, 0.35);
}

.consultation-box {
    background: none;
    color: #333;
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    border: none;
    /* box-shadow: 0 8px 32px rgba(41, 88, 255, 0.15); */
    position: relative;
    overflow: hidden;
}

.consultation-question {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    text-align: center;
    position: relative;
    z-index: 1;
}

.consultation-question::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.consultation-options {
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.consultation-option {
    padding: 1.25rem;
    background: #ffffff8a;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.consultation-option:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(41, 88, 255, 0.05), white);
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.consultation-option input[type="radio"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.consultation-submit {
    margin-top: 2rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(41, 88, 255, 0.3);
    position: relative;
    z-index: 1;
}

.consultation-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(41, 88, 255, 0.4);
}

.consultation-results {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #e8f5e9;
    border-radius: var(--radius);
    display: none;
}

.consultation-results.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.event-card {
    background: white;
    color: #333;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.event-date {
    background: linear-gradient(135deg, #7850CE, #FF6B6B);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 3px 3px 12px rgb(106 0 255 / 32%);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-btns {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.calendar-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--neutral-200);
    background: white;
    color: var(--text);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.calendar-btn:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.calendar-btn svg {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Effet de scroll parallax subtil sur le titre */
@media (prefers-reduced-motion: no-preference) {
    .hero h1,
    .hero p,
    .hero-cta {
        will-change: transform;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .header-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .kpi-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }

    .kpi-number-hero {
        font-size: 2.5rem;
    }

    .chart-container-hero {
        width: 180px;
        height: 180px;
    }


    .kpi-card {
        padding: 2rem 1.5rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .kpi-card {
        padding: 2rem 1.5rem;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar:hover {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .header-right .search-box {
        display: none;
    }

    .profile-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .kpi-number-hero {
        font-size: 2.5rem;
    }

    .chart-container-hero {
        width: 180px;
        height: 180px;
    }

    .header-container {
        padding: 0 1rem;
    }

    .logo-text {
        display: none;
    }
}

/* Styles pour la page de profil */

.profile-card {
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

input:focus, select:focus {
    outline: none !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 145, 0.1) !important;
}

button:hover {
    transform: scale(1.02);
}

label:has(input[type="checkbox"]):hover {
    background: var(--neutral-100) !important;
    transform: translateX(3px);
}

.essentials-link:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateX(5px);
}

/* Responsive pour profil */
@media (max-width: 1024px) {
    #profile .profile-container > div:nth-of-type(2) {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    #profile .profile-header > div {
        flex-direction: column !important;
        text-align: center !important;
    }

    #profile div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* === PARALLAX SECTIONS === */
/* Layout : sections plein écran (100vh) avec scroll natif */

.parallax-section {
    position: relative;
    height: 60vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Couche de fond avec image (parallax) */

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    will-change: transform;
    overflow: hidden;
}

div.parallax-content > h2 {
    color: black;
}

#egalite > div.slide-bg {
    background-color: var(--equality-oposite);
}

#egalite > div.slide-foreground > div.parallax-content > h2 > #men {
    color: var(--equality-men);
}

#egalite > div.slide-foreground > div.parallax-content > h2 > #women {
    color: var(--equality-women);
}

#europe > div.slide-bg {
    background-color: var(--europe);
}

#europe > div.slide-foreground > div.parallax-content > h2 {
    color: var(--europe-oposite);
}

#developpement > div.slide-bg {
    background-color: var(--developpement);
}

#developpement > div.slide-foreground > div.parallax-content > h2 {
    color: var(--developpement-oposite);
}

#ecologie > div.slide-bg {
    background-color: var(--ecology);
}

#ecologie > div.slide-foreground > div.parallax-content > h2 {
    color: var(--ecology-oposite);
}

#observatoire > div.slide-bg {
    background-color: var(--observatory);
}

#observatoire > div.slide-foreground > div.parallax-content > h2 {
    color: var(--observatory-oposite);
}

/* Image de fond - réduite à 60% de la hauteur pour un effet plus subtil */

.parallax-bg-image {
    position: absolute;
    top: 43%;
    left: 3%;
    width: 25%;
    height: 50%;
    object-fit: contain;
    object-position: center;
    transform: translate3d(0, calc(-50% + var(--parallax-offset, 0px)), 0);
    will-change: transform;
    margin-left: 2rem;
}

/* Couche de contenu principal (au premier plan) */

.slide-foreground {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: clamp(2rem, 5vw, 4rem);
    padding-left: calc(30% + 3rem);
}

/* Contenu texte */

.parallax-content {
    --content-reveal-offset: 30px;
    --content-parallax-offset: 0px;
    max-width: 80%;
    padding: 3rem;
    opacity: 0;
    text-align: left;
    transform: translate3d(0, calc(var(--content-reveal-offset) + var(--content-parallax-offset)), 0);
    transition: opacity 0.8s ease-out, transform 0s;
}

/* Animation d'apparition du contenu lors du scroll */

.parallax-content.visible {
    opacity: 1;
    --content-reveal-offset: 0px;
}

.parallax-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

.parallax-content p {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    line-height: 1.8;
    color: var(--neutral-700);
    margin-bottom: 1.5rem;
}

/* Support prefers-reduced-motion : désactiver le parallax si l'utilisateur préfère moins d'animations */
@media (prefers-reduced-motion: reduce) {
    .slide-bg {
        will-change: auto;
    }

    .parallax-bg-image {
        will-change: auto;
        transform: translateY(-50%) !important;
    }

    .parallax-content {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
}

/* Responsive pour les sections parallaxe */
@media (max-width: 1024px) {
    .parallax-section {
        height: auto;
        min-height: 100vh;
    }

    .slide-bg {
        position: relative;
        height: 50vh;
    }

    .parallax-bg-image {
        width: 100%;
        height: 100%;
        position: relative;
        top: 0;
        transform: none;
    }

    .slide-foreground {
        position: relative;
        padding: 3rem 2rem;
        justify-content: center;
    }

    .parallax-content {
        max-width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .slide-bg {
        height: 40vh;
    }

    .slide-foreground {
        padding: 2rem 1.5rem;
    }

    .parallax-content {
        padding: 1.5rem;
    }

    .parallax-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .parallax-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}


/* === CTA Section === */

.cta-section {
    background: var(--gradient-diagonal);
    padding: var(--spacing-3xl) var(--spacing-3xl);
    position: relative;
    overflow: hidden;
}

.cta-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.cta-content {
    color: var(--color-white);
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
}

.cta-section .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.cta-section .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.cta-visual {
    position: relative;
    height: 300px;
}

.cta-badge {
    position: absolute;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.0625rem;
    animation: float 3s ease-in-out infinite;
}

.badge-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.badge-2 {
    top: 50%;
    right: 15%;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 20%;
    left: 25%;
    animation-delay: 2s;
}

/* === Footer === */

.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--color-secondary);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-title);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}


.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}


.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-magnetic);
}

.btn-secondary {
    background: rgba(42, 77, 155, 0.08);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: rgba(42, 77, 155, 0.14);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.badge {
    border-radius: 50%;
    height: 150px;
    width: 150px;
    transition: all var(--duration) ease;
}

.badge:hover {
    box-shadow: #999999 5px 5px 5px;
}

#egalite > h2 {
    font-size: 69px;
}

#developpement > h2 {
    font-size: 69px;
}

#ecologie > h2 {
    font-size: 69px;
}

#observatoire > h2 {
    font-size: 69px;
}

#europe > h2 {
    font-size: 69px;
}
