/*
Theme Name: Humanity First
Theme URI: https://humanityfirst.org
Author: Antigravity
Author URI: https://antigravity.google
Description: Thème WordPress moderne et élégant pour organisations humanitaires. Design premium avec animations fluides, visualisations statistiques et mode sombre.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: humanity-first
Tags: dark, modern, responsive, animation, statistics, charity, ngo, humanitarian
*/

/* ============================================================
   SYSTÈME DE DESIGN — VARIABLES CSS
============================================================ */
:root {
    /* Palette principale */
    --hf-navy: #0B1628;
    --hf-navy-mid: #112240;
    --hf-navy-light: #1A3160;
    --hf-orange: #E8642A;
    --hf-orange-light: #FF8C5A;
    --hf-teal: #00C9B1;
    --hf-teal-light: #4EEEDD;
    --hf-white: #FFFFFF;
    --hf-off-white: #E8EDF5;
    --hf-grey: #8899AA;
    --hf-grey-dark: #3A4A5C;

    /* Gradients */
    --hf-grad-hero: linear-gradient(135deg, #0B1628 0%, #112240 50%, #0B1628 100%);
    --hf-grad-orange: linear-gradient(135deg, #E8642A 0%, #FF8C5A 100%);
    --hf-grad-teal: linear-gradient(135deg, #00C9B1 0%, #4EEEDD 100%);
    --hf-grad-card: linear-gradient(145deg, rgba(26, 49, 96, 0.8) 0%, rgba(17, 34, 64, 0.9) 100%);

    /* Typographie */
    --hf-font-heading: 'Playfair Display', 'Georgia', serif;
    --hf-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --hf-font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Tailles */
    --hf-text-xs: 0.75rem;
    --hf-text-sm: 0.875rem;
    --hf-text-base: 1rem;
    --hf-text-lg: 1.125rem;
    --hf-text-xl: 1.25rem;
    --hf-text-2xl: 1.5rem;
    --hf-text-3xl: 1.875rem;
    --hf-text-4xl: 2.25rem;
    --hf-text-5xl: 3rem;
    --hf-text-6xl: 3.75rem;
    --hf-text-hero: clamp(2.5rem, 6vw, 5rem);

    /* Espacement */
    --hf-space-1: 0.25rem;
    --hf-space-2: 0.5rem;
    --hf-space-3: 0.75rem;
    --hf-space-4: 1rem;
    --hf-space-6: 1.5rem;
    --hf-space-8: 2rem;
    --hf-space-10: 2.5rem;
    --hf-space-12: 3rem;
    --hf-space-16: 4rem;
    --hf-space-20: 5rem;
    --hf-space-24: 6rem;
    --hf-space-32: 8rem;

    /* Layout */
    --hf-container: 1240px;
    --hf-radius-sm: 0.5rem;
    --hf-radius-md: 1rem;
    --hf-radius-lg: 1.5rem;
    --hf-radius-xl: 2rem;
    --hf-radius-full: 9999px;

    /* Ombres & Glassmorphism */
    --hf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --hf-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --hf-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --hf-glow-orange: 0 0 30px rgba(232, 100, 42, 0.4);
    --hf-glow-teal: 0 0 30px rgba(0, 201, 177, 0.4);
    --hf-glass-bg: rgba(17, 34, 64, 0.6);
    --hf-glass-border: rgba(255, 255, 255, 0.08);

    /* Transitions */
    --hf-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --hf-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --hf-trans-fast: 0.15s var(--hf-ease);
    --hf-trans-base: 0.3s var(--hf-ease);
    --hf-trans-slow: 0.6s var(--hf-ease-out);

    /* Z-index */
    --z-base: 1;
    --z-above: 10;
    --z-sticky: 100;
    --z-overlay: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* ============================================================
   RESET & BASE
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--hf-font-body);
    background-color: var(--hf-navy);
    color: var(--hf-off-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--hf-teal);
    text-decoration: none;
    transition: color var(--hf-trans-fast);
}

a:hover {
    color: var(--hf-teal-light);
}

a:focus-visible {
    outline: 2px solid var(--hf-orange);
    outline-offset: 3px;
    border-radius: 3px;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--hf-font-heading);
    line-height: 1.2;
    color: var(--hf-white);
}

/* ============================================================
   LAYOUT UTILITAIRES
============================================================ */
.hf-container {
    max-width: var(--hf-container);
    margin-inline: auto;
    padding-inline: var(--hf-space-6);
}

.hf-section {
    padding-block: var(--hf-space-24);
}

.hf-section-sm {
    padding-block: var(--hf-space-16);
}

.hf-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hf-space-8);
}

.hf-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--hf-space-6);
}

.hf-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hf-space-6);
}

.hf-flex {
    display: flex;
}

.hf-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hf-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hf-text-center {
    text-align: center;
}

.hf-text-orange {
    color: var(--hf-orange);
}

.hf-text-teal {
    color: var(--hf-teal);
}

.hf-text-grey {
    color: var(--hf-grey);
}

/* ============================================================
   COMPOSANTS — BADGE SECTION
============================================================ */
.hf-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--hf-space-2);
    padding: var(--hf-space-1) var(--hf-space-4);
    background: rgba(0, 201, 177, 0.1);
    border: 1px solid rgba(0, 201, 177, 0.3);
    border-radius: var(--hf-radius-full);
    color: var(--hf-teal);
    font-size: var(--hf-text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--hf-space-4);
}

.hf-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--hf-teal);
    border-radius: 50%;
    animation: hf-pulse 2s infinite;
}

/* ============================================================
   COMPOSANTS — BOUTONS
============================================================ */
.hf-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--hf-space-2);
    padding: var(--hf-space-3) var(--hf-space-8);
    border-radius: var(--hf-radius-full);
    font-family: var(--hf-font-body);
    font-size: var(--hf-text-base);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--hf-trans-base);
    text-decoration: none;
    white-space: nowrap;
}

.hf-btn-primary {
    background: var(--hf-grad-orange);
    color: var(--hf-white);
    box-shadow: var(--hf-glow-orange);
}

.hf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(232, 100, 42, 0.6);
    color: var(--hf-white);
}

.hf-btn-secondary {
    background: transparent;
    color: var(--hf-white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.hf-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--hf-white);
    transform: translateY(-2px);
}

.hf-btn-teal {
    background: var(--hf-grad-teal);
    color: var(--hf-navy);
    box-shadow: var(--hf-glow-teal);
}

.hf-btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 201, 177, 0.6);
    color: var(--hf-navy);
}

/* ============================================================
   COMPOSANTS — CARTE GLASSMORPHISM
============================================================ */
.hf-card {
    background: var(--hf-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hf-glass-border);
    border-radius: var(--hf-radius-lg);
    padding: var(--hf-space-8);
    transition: all var(--hf-trans-base);
}

.hf-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--hf-shadow-lg);
}

.hf-card-orange {
    border-color: rgba(232, 100, 42, 0.3);
}

.hf-card-orange:hover {
    border-color: var(--hf-orange);
    box-shadow: var(--hf-glow-orange);
}

.hf-card-teal {
    border-color: rgba(0, 201, 177, 0.3);
}

.hf-card-teal:hover {
    border-color: var(--hf-teal);
    box-shadow: var(--hf-glow-teal);
}

/* ============================================================
   NAVIGATION
============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--hf-space-4) 0;
    transition: all var(--hf-trans-base);
}

.site-header.scrolled {
    background: rgba(11, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--hf-space-3) 0;
    border-bottom: 1px solid var(--hf-glass-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--hf-space-8);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--hf-space-3);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--hf-grad-orange);
    border-radius: var(--hf-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hf-glow-orange);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.logo-text {
    font-family: var(--hf-font-heading);
    font-size: var(--hf-text-xl);
    font-weight: 700;
    color: var(--hf-white);
    line-height: 1;
}

.logo-text span {
    color: var(--hf-orange);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--hf-space-1);
}

.main-nav a {
    padding: var(--hf-space-2) var(--hf-space-4);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--hf-text-sm);
    font-weight: 500;
    border-radius: var(--hf-radius-sm);
    transition: all var(--hf-trans-fast);
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.current-menu-item {
    color: var(--hf-white);
    background: rgba(255, 255, 255, 0.08);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: var(--hf-space-3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--hf-space-2);
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hf-white);
    border-radius: 2px;
    transition: all var(--hf-trans-base);
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--hf-grad-hero);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(232, 100, 42, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(0, 201, 177, 0.06) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: var(--hf-text-hero);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: var(--hf-space-6);
    color: var(--hf-white);
}

.hero-title .accent {
    color: var(--hf-orange);
}

.hero-subtitle {
    font-size: var(--hf-text-lg);
    color: rgba(232, 237, 245, 0.8);
    max-width: 560px;
    margin-bottom: var(--hf-space-10);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--hf-space-4);
    flex-wrap: wrap;
    margin-bottom: var(--hf-space-16);
}

.hero-stats {
    display: flex;
    gap: var(--hf-space-8);
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--hf-space-1);
}

.hero-stat-number {
    font-family: var(--hf-font-heading);
    font-size: var(--hf-text-3xl);
    font-weight: 700;
    color: var(--hf-white);
    line-height: 1;
}

.hero-stat-label {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-divider {
    width: 1px;
    background: var(--hf-glass-border);
    align-self: stretch;
}

.hero-image-wrap {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    z-index: 2;
    opacity: 0.85;
}

/* ============================================================
   SECTION — COMPTEURS D'IMPACT
============================================================ */
.impact-section {
    background: var(--hf-navy-mid);
    padding-block: var(--hf-space-20);
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hf-orange), transparent);
}

.impact-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hf-teal), transparent);
}

.impact-card {
    text-align: center;
    padding: var(--hf-space-8) var(--hf-space-6);
    background: var(--hf-glass-bg);
    border: 1px solid var(--hf-glass-border);
    border-radius: var(--hf-radius-lg);
    transition: all var(--hf-trans-base);
    position: relative;
    overflow: hidden;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    border-radius: 1px;
    transition: width var(--hf-trans-slow);
}

.impact-card.orange::before {
    background: var(--hf-orange);
}

.impact-card.teal::before {
    background: var(--hf-teal);
}

.impact-card.white::before {
    background: var(--hf-white);
}

.impact-card.orange2::before {
    background: var(--hf-orange-light);
}

.impact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hf-shadow-lg);
}

.impact-card:hover::before {
    width: 100%;
}

.impact-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--hf-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--hf-space-4);
    font-size: 1.6rem;
}

.impact-icon.orange {
    background: rgba(232, 100, 42, 0.15);
}

.impact-icon.teal {
    background: rgba(0, 201, 177, 0.15);
}

.impact-icon.white {
    background: rgba(255, 255, 255, 0.1);
}

.impact-icon.orange2 {
    background: rgba(255, 140, 90, 0.15);
}

.impact-number {
    font-family: var(--hf-font-heading);
    font-size: var(--hf-text-4xl);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--hf-space-2);
}

.impact-card.orange .impact-number {
    color: var(--hf-orange);
}

.impact-card.teal .impact-number {
    color: var(--hf-teal);
}

.impact-card.white .impact-number {
    color: var(--hf-white);
}

.impact-card.orange2 .impact-number {
    color: var(--hf-orange-light);
}

.impact-label {
    font-size: var(--hf-text-base);
    color: var(--hf-off-white);
    font-weight: 600;
    margin-bottom: var(--hf-space-1);
}

.impact-sublabel {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
}

/* ============================================================
   SECTION — VISUALISATION STATISTIQUES
============================================================ */
.stats-section {
    background: var(--hf-navy);
    position: relative;
}

.stats-section-title {
    font-size: var(--hf-text-4xl);
    margin-bottom: var(--hf-space-4);
}

.stats-section-sub {
    font-size: var(--hf-text-lg);
    color: var(--hf-grey);
    max-width: 540px;
    margin: 0 auto var(--hf-space-16);
}

.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hf-space-8);
    margin-bottom: var(--hf-space-8);
}

.chart-card {
    background: var(--hf-glass-bg);
    border: 1px solid var(--hf-glass-border);
    border-radius: var(--hf-radius-lg);
    padding: var(--hf-space-8);
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--hf-space-6);
}

.chart-title {
    font-family: var(--hf-font-body);
    font-size: var(--hf-text-lg);
    font-weight: 600;
    color: var(--hf-white);
    margin-bottom: var(--hf-space-1);
}

.chart-subtitle {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
}

.chart-badge {
    padding: var(--hf-space-1) var(--hf-space-3);
    border-radius: var(--hf-radius-full);
    font-size: var(--hf-text-xs);
    font-weight: 700;
}

.chart-badge.up {
    background: rgba(0, 201, 177, 0.15);
    color: var(--hf-teal);
}

/* Barres de progression */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: var(--hf-space-4);
}

.progress-item {}

.progress-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--hf-space-2);
}

.progress-name {
    font-size: var(--hf-text-sm);
    color: var(--hf-off-white);
    font-weight: 500;
}

.progress-value {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--hf-radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: var(--hf-radius-full);
    width: 0;
    transition: width 1.5s var(--hf-ease-out);
}

.progress-bar.orange {
    background: var(--hf-grad-orange);
}

.progress-bar.teal {
    background: var(--hf-grad-teal);
}

.progress-bar.white {
    background: linear-gradient(90deg, #E8EDF5, #fff);
}

/* Graphique en camembert CSS */
.donut-wrap {
    display: flex;
    align-items: center;
    gap: var(--hf-space-8);
}

.donut-chart {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    position: relative;
}

.donut-chart svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-center-value {
    font-family: var(--hf-font-heading);
    font-size: var(--hf-text-2xl);
    font-weight: 800;
    color: var(--hf-white);
    line-height: 1;
}

.donut-center-label {
    font-size: var(--hf-text-xs);
    color: var(--hf-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--hf-space-3);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--hf-space-3);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-name {
    font-size: var(--hf-text-sm);
    color: var(--hf-off-white);
    flex: 1;
}

.legend-pct {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
    font-weight: 600;
}

/* Carte mondiale minimaliste */
.map-card {
    grid-column: 1 / -1;
    background: var(--hf-glass-bg);
    border: 1px solid var(--hf-glass-border);
    border-radius: var(--hf-radius-lg);
    padding: var(--hf-space-8);
}

.map-wrap {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--hf-radius-md);
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--hf-space-4);
}

.map-svg {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.map-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--hf-teal);
    border-radius: 50%;
    box-shadow: var(--hf-glow-teal);
    animation: hf-ping 2s infinite;
}

.map-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: rgba(0, 201, 177, 0.3);
    border-radius: 50%;
    animation: hf-ping 2s infinite 0.5s;
}

/* ============================================================
   SECTION — MISSIONS / PROJETS
============================================================ */
.missions-section {
    background: var(--hf-navy-mid);
}

.mission-card {
    background: var(--hf-glass-bg);
    border: 1px solid var(--hf-glass-border);
    border-radius: var(--hf-radius-lg);
    overflow: hidden;
    transition: all var(--hf-trans-base);
    display: flex;
    flex-direction: column;
}

.mission-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hf-shadow-lg);
    border-color: rgba(232, 100, 42, 0.3);
}

.mission-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--hf-trans-slow);
}

.mission-card:hover .mission-img {
    transform: scale(1.04);
}

.mission-img-wrap {
    overflow: hidden;
    position: relative;
}

.mission-category {
    position: absolute;
    top: var(--hf-space-4);
    left: var(--hf-space-4);
    padding: var(--hf-space-1) var(--hf-space-3);
    background: var(--hf-orange);
    color: white;
    font-size: var(--hf-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--hf-radius-sm);
}

.mission-body {
    padding: var(--hf-space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mission-title {
    font-size: var(--hf-text-xl);
    margin-bottom: var(--hf-space-3);
    color: var(--hf-white);
}

.mission-excerpt {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
    line-height: 1.7;
    flex: 1;
    margin-bottom: var(--hf-space-6);
}

.mission-progress {
    margin-bottom: var(--hf-space-4);
}

.mission-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: var(--hf-text-sm);
    margin-bottom: var(--hf-space-2);
}

.mission-progress-label {
    color: var(--hf-off-white);
}

.mission-progress-pct {
    color: var(--hf-orange);
    font-weight: 700;
}

.mission-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--hf-space-4);
    border-top: 1px solid var(--hf-glass-border);
}

.mission-raised {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
}

.mission-raised strong {
    color: var(--hf-teal);
}

.mission-link {
    font-size: var(--hf-text-sm);
    font-weight: 600;
    color: var(--hf-orange);
    display: flex;
    align-items: center;
    gap: var(--hf-space-1);
    transition: gap var(--hf-trans-fast);
}

.mission-link:hover {
    gap: var(--hf-space-3);
    color: var(--hf-orange-light);
}

/* ============================================================
   SECTION — APPEL À L'ACTION (CTA)
============================================================ */
.cta-section {
    background: var(--hf-navy);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(232, 100, 42, 0.12) 0%, transparent 70%);
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--hf-glass-bg);
    border: 1px solid var(--hf-glass-border);
    border-radius: var(--hf-radius-xl);
    padding: var(--hf-space-20) var(--hf-space-12);
}

.cta-title {
    font-size: var(--hf-text-5xl);
    margin-bottom: var(--hf-space-4);
}

.cta-text {
    font-size: var(--hf-text-lg);
    color: var(--hf-grey);
    max-width: 540px;
    margin: 0 auto var(--hf-space-10);
}

.cta-actions {
    display: flex;
    gap: var(--hf-space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-amounts {
    display: flex;
    justify-content: center;
    gap: var(--hf-space-3);
    margin-top: var(--hf-space-8);
    flex-wrap: wrap;
}

.amount-chip {
    padding: var(--hf-space-2) var(--hf-space-5);
    background: rgba(232, 100, 42, 0.1);
    border: 1px solid rgba(232, 100, 42, 0.3);
    border-radius: var(--hf-radius-full);
    color: var(--hf-orange);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--hf-trans-fast);
}

.amount-chip:hover,
.amount-chip.active {
    background: var(--hf-orange);
    color: white;
}

/* ============================================================
   SECTION — ACTUALITÉS
============================================================ */
.news-section {
    background: var(--hf-navy-mid);
}

.news-card {
    background: var(--hf-glass-bg);
    border: 1px solid var(--hf-glass-border);
    border-radius: var(--hf-radius-lg);
    overflow: hidden;
    transition: all var(--hf-trans-base);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 201, 177, 0.3);
    box-shadow: var(--hf-glow-teal);
}

.news-img-wrap {
    overflow: hidden;
    height: 200px;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hf-trans-slow);
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-body {
    padding: var(--hf-space-6);
}

.news-date {
    font-size: var(--hf-text-xs);
    color: var(--hf-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: var(--hf-space-2);
}

.news-title {
    font-size: var(--hf-text-lg);
    margin-bottom: var(--hf-space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--hf-space-4);
}

.news-link {
    font-size: var(--hf-text-sm);
    font-weight: 600;
    color: var(--hf-teal);
    display: flex;
    align-items: center;
    gap: var(--hf-space-1);
    transition: gap var(--hf-trans-fast);
}

.news-link:hover {
    gap: var(--hf-space-3);
}

/* ============================================================
   SECTION — PARTENAIRES / DONATEURS
============================================================ */
.partners-section {
    background: var(--hf-navy);
    padding-block: var(--hf-space-16);
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: var(--hf-space-12);
    animation: hf-scroll 30s linear infinite;
    width: max-content;
}

.partner-logo {
    height: 40px;
    opacity: 0.4;
    filter: brightness(0) invert(1);
    transition: opacity var(--hf-trans-base);
    flex-shrink: 0;
}

.partner-logo:hover {
    opacity: 0.8;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: #060E1A;
    padding-top: var(--hf-space-20);
    border-top: 1px solid var(--hf-glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--hf-space-12);
    margin-bottom: var(--hf-space-12);
}

.footer-brand .logo-text {
    font-size: var(--hf-text-2xl);
    display: block;
    margin-bottom: var(--hf-space-4);
}

.footer-desc {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
    line-height: 1.8;
    margin-bottom: var(--hf-space-6);
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: var(--hf-space-3);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--hf-glass-bg);
    border: 1px solid var(--hf-glass-border);
    border-radius: var(--hf-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hf-grey);
    transition: all var(--hf-trans-fast);
    text-decoration: none;
}

.social-link:hover {
    background: var(--hf-orange);
    border-color: var(--hf-orange);
    color: white;
    transform: translateY(-2px);
}

.footer-col-title {
    font-family: var(--hf-font-body);
    font-size: var(--hf-text-sm);
    font-weight: 700;
    color: var(--hf-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--hf-space-6);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--hf-space-3);
}

.footer-links a {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
    text-decoration: none;
    transition: color var(--hf-trans-fast);
}

.footer-links a:hover {
    color: var(--hf-teal);
}

.footer-bottom {
    border-top: 1px solid var(--hf-glass-border);
    padding-block: var(--hf-space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--hf-space-4);
}

.footer-copy {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
}

.footer-legal {
    display: flex;
    gap: var(--hf-space-6);
}

.footer-legal a {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--hf-teal);
}

/* ============================================================
   ANIMATIONS KEYFRAMES
============================================================ */
@keyframes hf-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.85);
    }
}

@keyframes hf-ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    75%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes hf-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes hf-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes hf-fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hf-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes hf-counter {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation d'entrée au scroll */
.hf-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--hf-ease-out), transform 0.7s var(--hf-ease-out);
}

.hf-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.hf-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s var(--hf-ease-out), transform 0.7s var(--hf-ease-out);
}

.hf-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.hf-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s var(--hf-ease-out), transform 0.7s var(--hf-ease-out);
}

.hf-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Delay utilitaires */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* ============================================================
   SECTION TITRES
============================================================ */
.section-header {
    margin-bottom: var(--hf-space-16);
}

.section-title {
    font-size: var(--hf-text-4xl);
    margin-bottom: var(--hf-space-4);
    line-height: 1.15;
}

.section-subtitle {
    font-size: var(--hf-text-lg);
    color: var(--hf-grey);
    max-width: 580px;
}

.section-header.center {
    text-align: center;
}

.section-header.center .section-subtitle {
    margin-inline: auto;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--hf-space-10);
    }

    .hero-image-wrap {
        display: none;
    }

    .hf-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --hf-text-hero: clamp(2rem, 8vw, 3rem);
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hf-grid-2,
    .hf-grid-3,
    .hf-grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: var(--hf-space-6);
    }

    .cta-inner {
        padding: var(--hf-space-12) var(--hf-space-6);
    }

    .cta-title {
        font-size: var(--hf-text-3xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .donut-wrap {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hf-container {
        padding-inline: var(--hf-space-4);
    }

    .hf-section {
        padding-block: var(--hf-space-16);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .hf-btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================
   MOBILE MENU
============================================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(11, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--hf-space-6);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--hf-trans-base);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--hf-font-heading);
    font-size: var(--hf-text-3xl);
    color: var(--hf-white);
    text-decoration: none;
    transition: color var(--hf-trans-fast);
}

.mobile-menu a:hover {
    color: var(--hf-orange);
}

.mobile-close {
    position: absolute;
    top: var(--hf-space-6);
    right: var(--hf-space-6);
    background: none;
    border: none;
    color: var(--hf-white);
    font-size: var(--hf-text-2xl);
    cursor: pointer;
    padding: var(--hf-space-2);
}

/* ============================================================
   SKIP LINK (ACCESSIBILITÉ)
============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--hf-space-4);
    padding: var(--hf-space-2) var(--hf-space-4);
    background: var(--hf-orange);
    color: white;
    font-weight: 700;
    border-radius: var(--hf-radius-sm);
    z-index: var(--z-toast);
    transition: top var(--hf-trans-fast);
}

.skip-link:focus {
    top: var(--hf-space-4);
}

/* ============================================================
   WORDPRESS — CLASSES STANDARDS
============================================================ */
.alignnone {
    margin: var(--hf-space-4) 0;
}

.aligncenter {
    display: block;
    margin: var(--hf-space-4) auto;
    text-align: center;
}

.alignleft {
    float: left;
    margin: var(--hf-space-2) var(--hf-space-4) var(--hf-space-2) 0;
}

.alignright {
    float: right;
    margin: var(--hf-space-2) 0 var(--hf-space-2) var(--hf-space-4);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--hf-text-sm);
    color: var(--hf-grey);
    margin-top: var(--hf-space-2);
}

.screen-reader-text {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* ============================================================
   FIL D'ARIANE (BREADCRUMB)
============================================================ */
.hf-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    margin-bottom: var(--hf-space-4);
}

.hf-breadcrumb a {
    color: var(--hf-grey);
    text-decoration: none;
    transition: color var(--hf-trans-fast);
}

.hf-breadcrumb a:hover {
    color: var(--hf-teal);
}

.hf-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.hf-breadcrumb span:last-child {
    color: var(--hf-orange);
    font-weight: 600;
}

/* ============================================================
   PROSE — CONTENU ARTICLE / PAGE RICHE
============================================================ */
.hf-prose>*+* {
    margin-top: 1.5em;
}

.hf-prose h1,
.hf-prose h2,
.hf-prose h3,
.hf-prose h4,
.hf-prose h5,
.hf-prose h6 {
    color: var(--hf-white);
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

.hf-prose h2 {
    font-size: var(--hf-text-2xl);
}

.hf-prose h3 {
    font-size: var(--hf-text-xl);
}

.hf-prose p {
    color: var(--hf-off-white);
    line-height: 1.85;
}

.hf-prose a {
    color: var(--hf-teal);
    text-decoration: underline;
}

.hf-prose a:hover {
    color: var(--hf-orange);
}

.hf-prose ul,
.hf-prose ol {
    padding-left: 1.5rem;
    color: var(--hf-off-white);
    line-height: 1.8;
}

.hf-prose li {
    margin-bottom: 0.4em;
}

.hf-prose blockquote {
    border-left: 3px solid var(--hf-orange);
    padding-left: 1.25rem;
    margin-left: 0;
    color: var(--hf-grey);
    font-style: italic;
}

.hf-prose img {
    width: 100%;
    border-radius: var(--hf-radius-md);
    margin-block: 1.5rem;
}

.hf-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.hf-prose th,
.hf-prose td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--hf-glass-border);
    color: var(--hf-off-white);
}

.hf-prose th {
    background: var(--hf-glass-bg);
    font-weight: 700;
}

.hf-prose code {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--hf-teal);
}

.hf-prose pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem;
    border-radius: var(--hf-radius-md);
    overflow-x: auto;
    border: 1px solid var(--hf-glass-border);
}

.hf-prose pre code {
    background: none;
    padding: 0;
}

/* ============================================================
   PAGINATION WORDPRESS
============================================================ */
.navigation.pagination,
.posts-navigation,
.post-navigation {
    margin-top: var(--hf-space-12);
}

.page-numbers,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--hf-glass-bg);
    border: 1px solid var(--hf-glass-border);
    border-radius: var(--hf-radius-md);
    color: var(--hf-grey);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--hf-trans-fast);
}

.page-numbers:hover,
.nav-links a:hover {
    background: var(--hf-orange);
    border-color: var(--hf-orange);
    color: white;
}

.page-numbers.current,
.nav-links .current {
    background: var(--hf-orange);
    border-color: var(--hf-orange);
    color: white;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================================
   LAYOUT PAGE MISSION INDIVIDUELLE
============================================================ */
.mission-single-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--hf-space-12);
    align-items: start;
}

.mission-single-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 900px) {
    .mission-single-layout {
        grid-template-columns: 1fr;
    }

    .mission-single-sidebar {
        position: static;
    }
}

/* ============================================================
   FLEX UTILITIES SUPPLÉMENTAIRES
============================================================ */
.hf-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--hf-space-4);
    flex-wrap: wrap;
}

.hf-text-center {
    text-align: center;
}

/* ============================================================
   COMMENTAIRES WORDPRESS
============================================================ */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: var(--hf-glass-bg);
    border: 1px solid var(--hf-glass-border);
    border-radius: var(--hf-radius-md);
    padding: var(--hf-space-6);
    margin-bottom: var(--hf-space-4);
}

.comment-author .fn {
    font-weight: 700;
    color: var(--hf-white);
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--hf-grey);
    margin-bottom: var(--hf-space-3);
}

.comment-content p {
    color: var(--hf-off-white);
    line-height: 1.7;
}

.comment-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    color: var(--hf-grey);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hf-glass-border);
    border-radius: var(--hf-radius-md);
    color: var(--hf-white);
    font-family: var(--hf-font-body);
    font-size: 0.95rem;
    transition: border-color var(--hf-trans-fast);
    margin-bottom: var(--hf-space-4);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--hf-teal);
    outline: none;
}

.comment-form input[type="submit"] {
    width: auto;
    background: var(--hf-orange);
    border: none;
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--hf-radius-md);
    cursor: pointer;
    transition: background var(--hf-trans-fast);
}

.comment-form input[type="submit"]:hover {
    background: var(--hf-orange-light);
}

/* ============================================================
   TAGS WORDPRESS
============================================================ */
.tags-links a,
.entry-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 201, 177, 0.1);
    border: 1px solid rgba(0, 201, 177, 0.25);
    border-radius: 999px;
    color: var(--hf-teal);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--hf-trans-fast);
    margin: 0.2rem;
}

.tags-links a:hover {
    background: var(--hf-teal);
    color: var(--hf-navy);
}