/* ============================================================================
   NETRESE - Feuille de styles COMPACTE
   ============================================================================
   Design System v3.0 - COMPACT
   
   Objectif : Réduire les espacements de 30-40% partout
   ============================================================================ */

/* ============================================================================
   1. DESIGN TOKENS (COMPACT)
   ============================================================================ */

:root {
    /* ---- COULEURS ---- */
    --red: #E30613;
    --red-dark: #B8040F;
    --red-light: rgba(227, 6, 19, 0.08);
    
    --blue: #0A2540;
    --blue-dark: #061829;
    --blue-medium: #1E5AA8;
    --blue-light: rgba(10, 37, 64, 0.06);
    
    --black: #0F1419;
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;
    
    --yellow: #F59E0B;
    --green: #059669;
    
    /* ---- TYPOGRAPHIE ---- */
    --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    
    /* ---- ESPACEMENTS (échelle réduite) ---- */
    --space-1: 0.2rem;    /* 3px */
    --space-2: 0.4rem;    /* 6px */
    --space-3: 0.6rem;    /* 10px */
    --space-4: 0.8rem;    /* 13px */
    --space-5: 1rem;      /* 16px */
    --space-6: 1.2rem;    /* 19px */
    --space-8: 1.5rem;    /* 24px */
    --space-10: 2rem;     /* 32px */
    --space-12: 2.4rem;   /* 38px */
    --space-16: 3rem;     /* 48px */
    
    /* ---- SECTION PADDING (COMPACT) ---- */
    --section-padding: 2.5rem;      /* Desktop */
    --section-padding-md: 2rem;     /* Tablette */
    --section-padding-sm: 1.75rem;  /* Mobile */
    
    /* ---- RADIUS ---- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* ---- OMBRES ---- */
    --shadow-sm: 0 1px 3px rgba(15, 20, 25, 0.05);
    --shadow-md: 0 3px 12px rgba(15, 20, 25, 0.08);
    --shadow-lg: 0 8px 24px rgba(15, 20, 25, 0.10);
    --shadow-xl: 0 16px 40px rgba(15, 20, 25, 0.14);
    
    /* ---- TRANSITIONS ---- */
    --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   2. RESET & BASE
   ============================================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--red);
    transition: color var(--t-fast);
}

a:hover { color: var(--red-dark); }

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Typographie COMPACTE */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--black);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw + 0.6rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.3vw + 0.6rem, 2.3rem); }
h3 { font-size: clamp(1.25rem, 1.4vw + 0.6rem, 1.6rem); }
h4 { font-size: 1.15rem; }

/* ============================================================================
   3. TOP BAR
   ============================================================================ */

.top-bar {
    background: var(--blue);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-2) 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-info {
    display: flex;
    gap: var(--space-5);
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-info li {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.top-bar-info i {
    color: var(--red);
    font-size: 0.9rem;
}

.top-bar-info a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.top-bar-info a:hover { color: var(--red); }

.top-bar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-3);
}

.top-bar-social {
    display: flex;
    gap: 4px;
}

.top-bar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    transition: all var(--t-fast);
}

.top-bar-social a:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-1px);
}

.lang-switcher-inline {
    display: flex;
    gap: 3px;
    align-items: center;
}

.lang-link {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--t-fast);
}

.lang-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.lang-link.active {
    background: var(--red);
    color: var(--white);
    font-weight: 600;
}

/* ============================================================================
   4. NAVIGATION
   ============================================================================ */

.main-navbar {
    background: var(--white);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-200);
    transition: padding var(--t-base), box-shadow var(--t-base);
    z-index: 1030;
}

.main-navbar.scrolled {
    padding: var(--space-2) 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    transition: transform var(--t-base);
    padding: 0;
}

.navbar-brand:hover { transform: scale(1.02); }

.navbar-logo {
    height: 50px !important;
}

.main-navbar .navbar-nav .nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--black);
    padding: var(--space-2) var(--space-3);
    position: relative;
    transition: color var(--t-fast);
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active {
    color: var(--red);
}

.main-navbar .navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.main-navbar .dropdown-menu {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--space-1);
    margin-top: var(--space-2);
    min-width: 220px;
}

.main-navbar .dropdown-item {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--t-fast);
}

.main-navbar .dropdown-item:hover {
    background: var(--red-light);
    color: var(--red);
}

.main-navbar .dropdown-item i {
    color: var(--red);
    width: 14px;
    font-size: 0.95rem;
}

/* ============================================================================
   5. BOUTONS
   ============================================================================ */

.btn-donate {
    background: var(--red);
    color: var(--white) !important;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--red);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(227, 6, 19, 0.2);
    transition: all var(--t-fast);
    cursor: pointer;
}

.btn-donate:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(227, 6, 19, 0.3);
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.65rem 1.25rem;
    border: 2px solid var(--blue);
    color: var(--blue);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    transition: all var(--t-fast);
}

.btn-outline-primary:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ============================================================================
   6. SECTION HEADER (COMPACT)
   ============================================================================ */

.section-header {
    max-width: 620px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: var(--red-light);
    color: var(--red);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-2);
    border: 1px solid rgba(227, 6, 19, 0.15);
}

.section-title {
    margin-bottom: var(--space-2);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.55;
}

/* ============================================================================
   7. HERO (COMPACT)
   ============================================================================ */

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--blue);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        var(--blue) 0%, 
        rgba(10, 37, 64, 0.9) 50%, 
        rgba(227, 6, 19, 0.35) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: var(--space-10) 0;
}

.hero-content {
    color: var(--white);
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: var(--space-3);
}

.hero-badge i { color: var(--yellow); }

.hero-title {
    color: var(--white);
    margin-bottom: var(--space-3);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.hero-title .text-gradient {
    display: block;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-5);
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.btn-hero-primary {
    background: var(--red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.35);
    transition: all var(--t-fast);
}

.btn-hero-primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(227, 6, 19, 0.45);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--t-fast);
}

.btn-hero-outline:hover {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
    transform: translateY(-2px);
}

.hero-secondary-links {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.hero-secondary-links a {
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: all var(--t-fast);
}

.hero-secondary-links a:hover {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    position: relative;
    display: block;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 5px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { top: 5px; opacity: 1; }
    100% { top: 17px; opacity: 0; }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 40px;
    display: block;
}

/* ============================================================================
   8. STATISTIQUES (COMPACT)
   ============================================================================ */

.stats-section {
    background: var(--white);
    padding: 0 0 var(--section-padding);
    margin-top: -25px;
    position: relative;
    z-index: 3;
}

.stat-card {
    background: var(--white);
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--t-base);
    border: 2px solid var(--gray-200);
    height: 100%;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: var(--red);
    border-radius: 0 0 3px 3px;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--red);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.1);
}

.stat-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto var(--space-2);
    background: var(--blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all var(--t-base);
}

.stat-card:hover .stat-icon {
    background: var(--red);
    transform: rotate(-5deg);
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

/* ============================================================================
   9. DOMAINES (COMPACT)
   ============================================================================ */

.domaines-section {
    background: var(--off-white);
    padding: var(--section-padding) 0;
}

.domaine-card {
    display: block;
    background: var(--white);
    padding: var(--space-4) var(--space-3) var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    color: inherit;
    transition: all var(--t-base);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

.domaine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--domaine-color, var(--red));
    transition: width var(--t-base);
}

.domaine-card::after {
    content: attr(data-number);
    position: absolute;
    top: var(--space-2);
    right: var(--space-3);
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--gray-100);
    line-height: 1;
    transition: all var(--t-base);
    z-index: 0;
}

.domaine-card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--domaine-color, var(--red));
    box-shadow: 4px 4px 0 var(--domaine-color, var(--red));
}

.domaine-card:hover::before { width: 6px; }

.domaine-card:hover::after {
    color: var(--domaine-color, var(--red));
    opacity: 0.15;
    transform: scale(1.05);
}

.domaine-icon {
    width: 42px;
    height: 42px;
    background: var(--white);
    border: 2px solid var(--domaine-color, var(--red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--domaine-color, var(--red));
    font-size: 1.2rem;
    margin-bottom: var(--space-3);
    transition: all var(--t-base);
    position: relative;
    z-index: 1;
}

.domaine-card:hover .domaine-icon {
    background: var(--domaine-color, var(--red));
    color: var(--white);
    transform: rotate(-8deg) scale(1.05);
}

.domaine-title {
    font-size: 1.08rem;
    margin-bottom: var(--space-1);
    position: relative;
    z-index: 1;
}

.domaine-description {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: var(--space-3);
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.domaine-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--domaine-color, var(--red));
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
    transition: gap var(--t-fast);
}

.domaine-card:hover .domaine-link { gap: var(--space-2); }

/* ============================================================================
   10. RÉALISATIONS (COMPACT)
   ============================================================================ */

.realisations-section {
    background: var(--white);
    padding: var(--section-padding) 0;
}

.realisation-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--t-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--gray-200);
}

.realisation-card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--red);
    box-shadow: 4px 4px 0 rgba(227, 6, 19, 0.15);
}

.realisation-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--blue);
    height: 140px;
}

.realisation-image {
    position: relative;
    overflow: hidden;
}

.realisation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--t-base);
}

.realisation-card:hover .realisation-image img {
    transform: scale(1.06);
}

.realisation-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    z-index: 2;
}

.realisation-label.avant { background: var(--red); }
.realisation-label.apres { background: var(--green); }

.realisation-body {
    padding: var(--space-3);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.realisation-title {
    font-size: 1rem;
    margin-bottom: var(--space-1);
    line-height: 1.3;
}

.realisation-location,
.realisation-beneficiaires {
    font-size: 0.84rem;
    color: var(--gray-500);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.realisation-location i { color: var(--red); }
.realisation-beneficiaires i { color: var(--green); }

.realisation-link {
    margin-top: auto;
    padding-top: var(--space-2);
    color: var(--red);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: gap var(--t-fast);
}

.realisation-link:hover {
    gap: var(--space-2);
    color: var(--red-dark);
}

/* ============================================================================
   11. ACTUALITÉS (COMPACT)
   ============================================================================ */

.actualites-section {
    background: var(--off-white);
    padding: var(--section-padding) 0;
}

.actualite-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--t-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--gray-200);
}

.actualite-card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--red);
    box-shadow: 4px 4px 0 rgba(227, 6, 19, 0.15);
}

.actualite-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    display: block;
}

.actualite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--t-base);
}

.actualite-card:hover .actualite-image img {
    transform: scale(1.05);
}

.actualite-categorie {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    background: var(--red);
    z-index: 2;
}

.actualite-categorie.categorie-rapport { background: var(--blue-medium); }
.actualite-categorie.categorie-temoignage { background: #7C3AED; }
.actualite-categorie.categorie-evenement { background: #EA580C; }

.actualite-body {
    padding: var(--space-3);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.actualite-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: var(--space-1);
    font-family: var(--font-display);
}

.actualite-date i,
.actualite-views i {
    color: var(--red);
    margin-right: 3px;
}

.actualite-title {
    font-size: 1.02rem;
    line-height: 1.3;
    margin-bottom: var(--space-1);
}

.actualite-title a { color: var(--black); }
.actualite-title a:hover { color: var(--red); }

.actualite-resume {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: var(--space-2);
    line-height: 1.55;
}

.actualite-link {
    margin-top: auto;
    color: var(--red);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: gap var(--t-fast);
}

.actualite-link:hover {
    gap: var(--space-2);
    color: var(--red-dark);
}

/* ============================================================================
   12. TÉMOIGNAGE (COMPACT)
   ============================================================================ */

.temoignage-section {
    background: var(--white);
    padding: var(--section-padding) 0;
}

.temoignage-photo-wrapper {
    position: relative;
    display: inline-block;
}

.temoignage-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--blue);
    box-shadow: var(--shadow-xl);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    aspect-ratio: 1;
}

.temoignage-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.temoignage-quote-icon {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 40px;
    height: 40px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.4);
    z-index: 2;
}

.temoignage-content {
    padding-left: var(--space-6);
}

.temoignage-texte {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.4vw + 0.6rem, 1.5rem);
    font-style: italic;
    color: var(--black);
    line-height: 1.55;
    margin: var(--space-3) 0;
    padding-left: var(--space-4);
    border-left: 3px solid var(--red);
}

.temoignage-author-info strong {
    display: block;
    color: var(--black);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
}

.temoignage-author-info span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ============================================================================
   13. CTA (COMPACT)
   ============================================================================ */

.cta-section {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--blue);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.2), transparent 70%);
    border-radius: 50%;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.04), transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
}

.cta-icon {
    display: inline-block;
    font-size: 2rem;
    color: var(--red);
    margin-bottom: var(--space-2);
}

.cta-title {
    color: var(--white);
    margin-bottom: var(--space-2);
}

.cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 580px;
    margin: 0 auto var(--space-4);
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--red);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.35);
    transition: all var(--t-fast);
}

.btn-cta-primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(227, 6, 19, 0.45);
}

.btn-cta-outline {
    background: transparent;
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: all var(--t-fast);
}

.btn-cta-outline:hover {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ============================================================================
   14. NEWSLETTER (COMPACT)
   ============================================================================ */

.newsletter-section {
    background: var(--blue);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.15), transparent 70%);
    border-radius: 50%;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.newsletter-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-3);
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.4);
}

.newsletter-title {
    color: var(--white);
    margin-bottom: var(--space-1);
    font-size: 1.45rem;
}

.newsletter-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-4);
}

.newsletter-form {
    max-width: 460px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--white);
}

.newsletter-form .form-control {
    border: none;
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
    background: transparent;
    font-family: var(--font-body);
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.newsletter-form .btn-donate {
    border-radius: 0;
    padding: 0.7rem 1.2rem;
}

/* ============================================================================
   15. PARTENAIRES (COMPACT)
   ============================================================================ */

.partners-strip {
    background: var(--off-white);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.partners-strip-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    margin-top: var(--space-3);
}

.partner-logo-item {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all var(--t-base);
}

.partner-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo-item img {
    max-height: 60px;      /* était 35px → +71% */
    max-width: 160px;      /* était 100px → +60% */
    object-fit: contain;
}

/* ============================================================================
   16. FOOTER (COMPACT)
   ============================================================================ */

.main-footer {
    background: var(--blue);
    color: rgba(255, 255, 255, 0.75);
    padding-top: var(--space-8);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-dark), var(--red));
}

.footer-widget {
    margin-bottom: var(--space-5);
}

.footer-logo {
    margin-bottom: var(--space-3);
}

.footer-logo img {
    height: 45px !important;
}

.footer-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--t-fast);
}

.footer-social a:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-2px);
}

.footer-widget-title {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-1);
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-1);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: all var(--t-fast);
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--red);
}

.footer-links a:hover {
    color: var(--red);
    padding-left: 3px;
}

.footer-contact-quick {
    list-style: none;
}

.footer-contact-quick li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    font-size: 0.88rem;
}

.footer-contact-quick i {
    color: var(--red);
    margin-top: 2px;
    font-size: 0.9rem;
}

.footer-contact-quick a { color: rgba(255, 255, 255, 0.7); }
.footer-contact-quick a:hover { color: var(--red); }

.footer-bottom {
    background: var(--blue-dark);
    padding: var(--space-3) 0;
    margin-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.footer-copyright strong { color: var(--red); }

.footer-legal-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    transition: color var(--t-fast);
}

.footer-legal-links a:hover { color: var(--red); }

/* ============================================================================
   17. WIDGETS FLOTTANTS (COMPACT)
   ============================================================================ */

.whatsapp-widget {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all var(--t-fast);
}

.whatsapp-widget:hover {
    background: #128C7E;
    color: var(--white);
    transform: scale(1.08);
}

.back-to-top {
    position: fixed;
    bottom: 72px;
    right: 22px;
    width: 40px;
    height: 40px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base);
    z-index: 9997;
    box-shadow: 0 6px 16px rgba(227, 6, 19, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

/* ============================================================================
   18. BREADCRUMB & FLASH
   ============================================================================ */

.breadcrumb-section {
    background: var(--off-white);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    margin: 0;
    background: transparent;
    font-size: 0.88rem;
    font-family: var(--font-display);
}

.breadcrumb-item a {
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.breadcrumb-item a:hover { color: var(--red); }

.breadcrumb-item.active {
    color: var(--red);
    font-weight: 600;
}

.flash-container { padding: var(--space-2) 0; }

.flash-container .alert {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-2) var(--space-3);
    font-size: 0.92rem;
}

/* ============================================================================
   19. ANIMATIONS
   ============================================================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   20. RESPONSIVE — TABLETTE (< 992px)
   ============================================================================ */

@media (max-width: 991.98px) {
    :root {
        --section-padding: var(--section-padding-md);
    }
    
    .hero-section {
        min-height: 65vh;
    }
    
    .hero-container {
        padding: var(--space-8) 0;
    }
    
    .stats-section {
        margin-top: -20px;
    }
    
    .temoignage-content {
        padding-left: 0;
        text-align: center;
        margin-top: var(--space-5);
    }
    
    .temoignage-texte {
        padding-left: 0;
        border-left: none;
        border-top: 3px solid var(--red);
        padding-top: var(--space-3);
    }
    
    .main-navbar .navbar-collapse {
        background: var(--white);
        padding: var(--space-3);
        border-radius: var(--radius-md);
        margin-top: var(--space-3);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--gray-200);
    }
    
    .main-navbar .navbar-nav .nav-link {
        padding: var(--space-2) var(--space-2);
    }
    
    .main-navbar .navbar-nav .nav-link.active::before {
        display: none;
    }
}

/* ============================================================================
   21. RESPONSIVE — MOBILE (< 768px)
   ============================================================================ */

@media (max-width: 767.98px) {
    :root {
        --section-padding: var(--section-padding-sm);
    }
    
    body {
        font-size: 1rem;
        line-height: 1.55;
    }
    
    /* Masquer éléments non prioritaires */
    .top-bar,
    .hero-scroll-indicator {
        display: none !important;
    }
    
    /* Navbar */
    .main-navbar {
        padding: var(--space-2) 0;
    }
    
    .navbar-logo {
        height: 40px !important;
    }
    
    .btn-donate {
        padding: 0.5rem 0.9rem;
        font-size: 0.82rem;
    }
    
    /* Hero */
    .hero-section {
        min-height: auto;
    }
    
    .hero-container {
        padding: var(--space-6) 0 var(--space-4);
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
        margin-bottom: var(--space-2);
    }
    
    .hero-title {
        margin-bottom: var(--space-2);
    }
    
    .hero-title .text-gradient {
        display: inline;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--space-4);
    }
    
    .hero-actions,
    .cta-actions {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .btn-hero-primary,
    .btn-hero-outline,
    .btn-cta-primary,
    .btn-cta-outline {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1.15rem;
        font-size: 0.88rem;
    }
    
    .hero-secondary-links {
        flex-direction: column;
        gap: var(--space-1);
        align-items: flex-start;
    }
    
    .hero-secondary-links a {
        font-size: 0.85rem;
    }
    
    .hero-wave svg {
        height: 30px;
    }
    
    /* Statistiques */
    .stats-section {
        margin-top: -15px;
    }
    
    .stats-section .row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
    
    .stat-card {
        padding: var(--space-3) var(--space-2);
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
        margin-bottom: var(--space-1);
    }
    
    .stat-value {
        font-size: 1.45rem;
        margin-bottom: 2px;
    }
    
    .stat-label {
        font-size: 0.68rem;
    }
    
    /* Section header */
    .section-header {
        margin-bottom: var(--space-5);
    }
    
    .section-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.65rem;
    }
    
    .section-subtitle {
        font-size: 0.92rem;
    }
    
    /* Domaines */
    .domaines-section .row,
    .realisations-section .row,
    .actualites-section .row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
    
    .domaine-card {
        padding: var(--space-3) var(--space-2) var(--space-2) var(--space-3);
    }
    
    .domaine-card::before {
        width: 100%;
        height: 3px;
        bottom: auto;
    }
    
    .domaine-card:hover::before {
        width: 100%;
        height: 3px;
    }
    
    .domaine-card::after {
        font-size: 1.85rem;
        top: var(--space-1);
        right: var(--space-2);
    }
    
    .domaine-icon {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
        margin-bottom: var(--space-2);
    }
    
    .domaine-title {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .domaine-description {
        font-size: 0.82rem;
        margin-bottom: var(--space-2);
    }
    
    .domaine-link {
        font-size: 0.72rem;
    }
    
    /* Réalisations */
    .realisation-gallery {
        height: 120px;
    }
    
    .realisation-body {
        padding: var(--space-2);
    }
    
    .realisation-title {
        font-size: 0.92rem;
    }
    
    /* Actualités */
    .actualite-image {
        height: 140px;
    }
    
    .actualite-body {
        padding: var(--space-2);
    }
    
    .actualite-title {
        font-size: 0.92rem;
    }
    
    .actualite-resume {
        font-size: 0.82rem;
    }
    
    /* Témoignage */
    .temoignage-photo {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }
    
    .temoignage-quote-icon {
        width: 32px;
        height: 32px;
        font-size: 1.05rem;
    }
    
    .temoignage-texte {
        font-size: 1.05rem;
        margin: var(--space-2) 0;
    }
    
    /* CTA */
    .cta-icon {
        font-size: 1.65rem;
    }
    
    /* Newsletter */
    .newsletter-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
    
    .newsletter-title {
        font-size: 1.25rem;
    }
    
    .newsletter-text {
        font-size: 0.88rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: var(--radius-md);
    }
    
    .newsletter-form .form-control {
        border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
        padding: 0.7rem 0.9rem;
        text-align: center;
        font-size: 0.92rem;
    }
    
    .newsletter-form .btn-donate {
        border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
        width: 100%;
        padding: 0.7rem 0.9rem;
    }
    
    /* Partenaires */
    .partners-strip {
        padding: var(--space-4) 0;
    }
    
    .partners-strip-logos {
        gap: var(--space-3);
        margin-top: var(--space-2);
    }
    
    .partner-logo-item img {
        max-height: 25px;
        max-width: 70px;
    }
    
    /* Footer */
    .main-footer {
        padding-top: var(--space-6);
    }
    
    .footer-widget {
        margin-bottom: var(--space-4);
    }
    
    .footer-logo img {
        height: 40px !important;
    }
    
    .footer-copyright,
    .footer-legal-links {
        text-align: center;
        justify-content: center;
    }
    
    .footer-legal-links {
        margin-top: var(--space-1);
    }
    
    /* Widgets */
    .whatsapp-widget {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        bottom: 14px;
        right: 14px;
    }
    
    .back-to-top {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        bottom: 62px;
        right: 17px;
    }
}

/* ============================================================================
   22. RESPONSIVE — TRÈS PETITS ÉCRANS (< 400px)
   ============================================================================ */

@media (max-width: 399.98px) {
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .domaine-card::after {
        display: none;
    }
    
    .btn-donate {
        font-size: 0.78rem;
        padding: 0.45rem 0.75rem;
    }
}

/* ============================================================================
   23. PRINT
   ============================================================================ */

@media print {
    .top-bar,
    .main-navbar,
    .whatsapp-widget,
    .back-to-top,
    .cta-section,
    .newsletter-section,
    .partners-strip {
        display: none !important;
    }
    
    body {
        font-size: 11pt;
        color: #000;
    }
    
    a { color: #000; text-decoration: underline; }
}

/* ============================================================================
   SÉCURITÉ — Protection contre les données variables
   ============================================================================ */

/* Limiter les titres à 2 lignes maximum */
.actualite-title a,
.domaine-title,
.realisation-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Limiter les descriptions à 3 lignes */
.actualite-resume,
.domaine-description,
.realisation-description,
.temoignage-texte {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Éviter les débordements horizontaux */
.stat-value,
.actualite-date,
.realisation-beneficiaires strong {
    word-break: break-word;
}

/* Images : toujours dans leur conteneur */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Fallback couleur pour les domaines */
.domaine-card {
    --domaine-color: #E30613;   /* Valeur par défaut */
    border-top-color: var(--domaine-color, #E30613);
}

/* Assurer que les cartes ont une hauteur cohérente */
.domaine-card,
.actualite-card,
.realisation-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* ============================================================================
   STYLES DES PAGES DE CONTENU (a-propos, nos-actions, etc.)
   ============================================================================ */

/* ============ BANNIÈRE DE PAGE ============ */
.page-banner {
    position: relative;
    padding: var(--space-10) 0;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    overflow: hidden;
    color: var(--white);
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(227, 6, 19, 0.2), transparent 60%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.page-banner-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: var(--space-3);
}

.page-banner-title {
    color: var(--white);
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: var(--space-2);
}

.page-banner-title .text-gradient {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-banner-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ============ SECTIONS DE CONTENU ============ */
.section-content {
    padding: 3rem 0;
    background: var(--white);
}

.section-content.section-alt {
    background: var(--off-white);
}

/* ============ INFO GRID ============ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--off-white);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--red);
}

.info-item i {
    font-size: 1.6rem;
    color: var(--red);
}

.info-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 2px;
}

.info-item span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============ CONTENT IMAGE ============ */
.content-image-wrapper {
    position: relative;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.content-image-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--red);
    color: var(--white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: 0 8px 24px rgba(227, 6, 19, 0.4);
}

.content-image-badge i {
    font-size: 1.6rem;
}

.content-image-badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1;
}

.content-image-badge span {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ============ TIMELINE ============ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-5) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--red) 0%, var(--blue) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: var(--space-6);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 45%;
    text-align: right;
    padding-right: var(--space-5);
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--red);
}

.timeline-item:nth-child(even) .timeline-year {
    text-align: left;
    padding-right: 0;
    padding-left: var(--space-5);
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 3px solid var(--red);
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 3px solid var(--red);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: var(--red);
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: var(--red);
}

.timeline-content h3 {
    font-size: 1.12rem;
    margin-bottom: var(--space-2);
    color: var(--blue);
}

.timeline-content p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============ VM CARDS (Vision & Mission) ============ */
.vm-card {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    height: 100%;
    border: 2px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.vm-card.vision-card {
    border-top: 4px solid var(--blue);
}

.vm-card.mission-card {
    border-top: 4px solid var(--red);
}

.vm-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: var(--space-3);
}

.vision-card .vm-card-icon {
    background: var(--blue);
}

.mission-card .vm-card-icon {
    background: var(--red);
}

.vm-card-title {
    font-size: 1.4rem;
    margin-bottom: var(--space-3);
    color: var(--black);
}

.vm-card-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--blue);
    padding: var(--space-3);
    background: var(--off-white);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
}

.vm-card-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gray-500);
    margin: 0;
}

.vm-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vm-card-list li {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.vm-card-list li i {
    color: var(--green);
    flex-shrink: 0;
    margin-top: 3px;
}

/* ============ VALEUR CARDS ============ */
.valeur-card {
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    height: 100%;
    border: 2px solid var(--gray-200);
    transition: all var(--t-base);
}

.valeur-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.1);
}

.valeur-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto var(--space-3);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.35rem;
}

.valeur-title {
    font-size: 1.12rem;
    margin-bottom: var(--space-2);
    color: var(--black);
}

.valeur-text {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.55;
}

/* ============ ORGANIGRAMME ============ */
.organigramme {
    padding: var(--space-5);
    background: var(--off-white);
    border-radius: var(--radius-lg);
}

.organigramme-niveau {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-3);
}

.organigramme-niveau-multi {
    gap: var(--space-2);
}

.organigramme-item {
    background: var(--white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    min-width: 160px;
    transition: all var(--t-base);
    border: 2px solid transparent;
}

.organigramme-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.organigramme-item i {
    display: block;
    font-size: 1.6rem;
    margin-bottom: var(--space-2);
}

.organigramme-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 3px;
}

.organigramme-item span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.organigramme-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.organigramme-primary i,
.organigramme-primary strong,
.organigramme-primary span {
    color: var(--white);
}

.organigramme-secondary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.organigramme-secondary i,
.organigramme-secondary strong,
.organigramme-secondary span {
    color: var(--white);
}

.organigramme-tertiary {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

.organigramme-small {
    padding: var(--space-2) var(--space-3);
    min-width: 120px;
}

.organigramme-small i {
    font-size: 1.2rem;
}

.organigramme-small strong {
    font-size: 0.85rem;
}

.organigramme-arrow {
    text-align: center;
    color: var(--gray-300);
    font-size: 1.6rem;
    margin: var(--space-2) 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .content-image-badge {
        bottom: 10px;
        right: 10px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 50px;
    }
    
    .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        position: absolute;
        left: -60px;
        top: 0;
        font-size: 0.95rem;
        text-align: left;
        padding: 0;
        flex: none;
    }
    
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        flex: 1;
        border-left: 3px solid var(--red);
        border-right: none;
    }
    
    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        display: none;
    }
    
    .organigramme-item {
        min-width: 140px;
        padding: var(--space-2) var(--space-3);
    }
    
    .organigramme-item i {
        font-size: 1.35rem;
    }
    
    .organigramme-item strong {
        font-size: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .page-banner {
        padding: var(--space-6) 0;
    }
    
    .section-content {
        padding: 2rem 0;
    }
    
    .vm-card {
        padding: var(--space-4);
    }
    
    .organigramme-niveau {
        flex-direction: column;
        align-items: stretch;
    }
    
    .organigramme-item {
        min-width: auto;
    }
}

/* ============================================================================
   STYLES POUR CONTACT.PHP
   ============================================================================ */

/* ============ CONTACT INFO CARDS ============ */
.contact-info-card {
    background: var(--white);
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    height: 100%;
    border: 2px solid var(--gray-200);
    transition: all var(--t-base);
    border-top: 4px solid var(--red);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.1);
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-3);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.45rem;
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.3);
}

.contact-info-card h5 {
    font-size: 1.12rem;
    color: var(--black);
    margin-bottom: var(--space-2);
    font-weight: 700;
}

.contact-info-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

.contact-info-card a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color var(--t-fast);
    word-break: break-word;
}

.contact-info-card a:hover {
    color: var(--red);
}

/* ============ FORMULAIRE DE CONTACT ============ */
.contact-form-container {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    height: 100%;
}

.contact-form-header {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--gray-200);
}

.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    color: var(--black);
}

.contact-form-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.55;
}

.contact-form .form-label {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: var(--space-1);
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 0.65rem 0.9rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    transition: all var(--t-fast);
    background: var(--white);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
    font-family: var(--font-body);
}

.contact-form .btn-donate {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

.contact-form .honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ============ CARTE ============ */
.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-4);
    border: 2px solid var(--gray-200);
}

.contact-map iframe {
    display: block;
    width: 100%;
}

/* ============ HORAIRES ============ */
.contact-hours {
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-4);
    border: 2px solid var(--gray-200);
}

.contact-hours h5 {
    font-size: 1.05rem;
    color: var(--black);
    margin-bottom: var(--space-3);
    font-weight: 700;
    font-family: var(--font-display);
}

.contact-hours-table {
    width: 100%;
    font-size: 0.92rem;
    margin-bottom: var(--space-3);
}

.contact-hours-table td {
    padding: var(--space-1) 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-hours-table td:last-child {
    text-align: right;
    color: var(--black);
}

.contact-hours-table tr:last-child td {
    border-bottom: none;
}

.contact-hours-note {
    background: var(--red-light);
    color: var(--red);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border-left: 3px solid var(--red);
}

/* ============ RÉSEAUX SOCIAUX ============ */
.contact-social {
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-200);
}

.contact-social h5 {
    font-size: 1.05rem;
    color: var(--black);
    margin-bottom: var(--space-3);
    font-weight: 700;
    font-family: var(--font-display);
}

.contact-social-links {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: all var(--t-fast);
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: var(--white);
}

.social-btn.facebook { background: #1877F2; }
.social-btn.twitter { background: #000; }
.social-btn.linkedin { background: #0077B5; }
.social-btn.youtube { background: #FF0000; }
.social-btn.instagram { background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888); }
.social-btn.whatsapp { background: #25D366; }

/* ============ CONTACTS SPÉCIFIQUES ============ */
.contact-specific-card {
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    text-align: center;
    height: 100%;
    border: 2px solid var(--gray-200);
    transition: all var(--t-base);
    border-top: 4px solid var(--red);
}

.contact-specific-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.1);
}

.contact-specific-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-3);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.3);
}

.contact-specific-card h5 {
    font-size: 1.18rem;
    color: var(--black);
    margin-bottom: var(--space-3);
    font-weight: 700;
}

.contact-specific-card p {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.contact-specific-card a {
    color: var(--red);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-word;
}

.contact-specific-card a:hover {
    text-decoration: underline;
}

/* ============ ACCORDION FAQ ============ */
.accordion-item {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md) !important;
    margin-bottom: var(--space-2);
    overflow: hidden;
    background: var(--white);
}

.accordion-button {
    background: var(--white);
    color: var(--black);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: var(--space-4);
    border: none;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--red-light);
    color: var(--red);
}

.accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.accordion-button i {
    color: var(--red);
}

.accordion-body {
    padding: var(--space-4);
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.65;
    border-top: 1px solid var(--gray-200);
}

.accordion-body a {
    color: var(--red);
    font-weight: 600;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
    .contact-form-container {
        padding: var(--space-4);
    }
    
    .contact-info-card {
        padding: var(--space-4);
    }
}

@media (max-width: 767.98px) {
    .contact-form-container {
        padding: var(--space-4);
    }
    
    .contact-form-title {
        font-size: 1.25rem;
    }
    
    .contact-info-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .contact-specific-icon {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
    
    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ============================================================================
   STYLES PAGES DYNAMIQUES
   ============================================================================ */

/* ============ FILTRES ============ */
.filters-bar {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--space-4) 0;
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: var(--off-white);
    color: var(--gray-700);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--t-fast);
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: var(--red-light);
    color: var(--red);
}

.filter-btn.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    font-weight: 600;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-4);
    background: var(--off-white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-300);
}

.empty-state i {
    font-size: 3.2rem;
    color: var(--gray-300);
    margin-bottom: var(--space-3);
    display: block;
}

.empty-state h3 {
    font-size: 1.28rem;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: var(--space-4);
}

/* ============ PAGINATION ============ */
.pagination-wrapper {
    margin-top: var(--space-8);
}

.pagination {
    gap: var(--space-1);
}

.page-link {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    transition: all var(--t-fast);
}

.page-link:hover {
    background: var(--red-light);
    border-color: var(--red);
    color: var(--red);
}

.page-item.active .page-link {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    font-weight: 600;
}

.page-item.disabled .page-link {
    background: var(--off-white);
    color: var(--gray-300);
    border-color: var(--gray-200);
}

/* ============ ARTICLE ============ */
.article-image {
    margin-bottom: var(--space-6);
}

.article-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.article-content {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.article-content h2 {
    font-size: 1.65rem;
    margin: var(--space-6) 0 var(--space-3);
    color: var(--black);
}

.article-content h3 {
    font-size: 1.38rem;
    margin: var(--space-5) 0 var(--space-2);
    color: var(--black);
}

.article-content p {
    margin-bottom: var(--space-4);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.article-content li {
    margin-bottom: var(--space-2);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
}

.article-content blockquote {
    border-left: 4px solid var(--red);
    padding: var(--space-3) var(--space-4);
    background: var(--off-white);
    border-radius: var(--radius-sm);
    margin: var(--space-4) 0;
    font-style: italic;
    color: var(--gray-700);
}

.article-content a {
    color: var(--red);
    text-decoration: underline;
}

/* ============ ARTICLE META ============ */
.article-meta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-3);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-family: var(--font-display);
}

.article-meta i {
    color: var(--yellow);
    margin-right: var(--space-1);
}

/* ============ ARTICLE SHARE ============ */
.article-share {
    margin-top: var(--space-6);
    padding: var(--space-5);
    background: var(--off-white);
    border-radius: var(--radius-md);
    text-align: center;
}

.article-share h5 {
    font-size: 1.05rem;
    color: var(--black);
    margin-bottom: var(--space-3);
}

.share-buttons {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--t-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
    color: var(--white);
}

.share-facebook { background: #1877F2; }
.share-twitter { background: #000; }
.share-whatsapp { background: #25D366; }
.share-linkedin { background: #0077B5; }

/* ============ ARTICLE NAV ============ */
.article-nav {
    margin-top: var(--space-6);
    text-align: center;
}

/* ============ DOMAINE BANNER ICON ============ */
.domaine-banner-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.3rem;
    border: 3px solid;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ============ DOMAINE CONTENT ============ */
.domaine-content {
    font-size: 1.12rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.domaine-content h2 {
    font-size: 1.65rem;
    margin: var(--space-5) 0 var(--space-3);
}

/* ============ PROJET SIDEBAR ============ */
.projet-sidebar {
    background: var(--off-white);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--red);
    position: sticky;
    top: 100px;
}

.projet-sidebar h5 {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
    font-weight: 700;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.info-list strong i {
    color: var(--red);
}

.info-list span {
    font-size: 1rem;
    color: var(--black);
    font-weight: 600;
}

/* ============ RÉALISATION DÉTAIL ============ */
.realisation-detail-gallery {
    margin-bottom: var(--space-5);
}

.realisation-image-detail {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.realisation-image-detail img {
    width: 100%;
    height: auto;
}

.realisation-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--off-white);
    border-radius: var(--radius-md);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 767.98px) {
    .projet-sidebar {
        position: static;
        margin-top: var(--space-4);
    }
    
    .filters-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: var(--space-2);
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .article-meta {
        font-size: 0.85rem;
        gap: var(--space-2);
    }
}

/* ============================================================================
   STYLES DES PAGES SECONDAIRES
   ============================================================================ */

/* ============ OBJECTIF CARDS ============ */
.objectif-card {
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    height: 100%;
    border: 2px solid var(--gray-200);
    transition: all var(--t-base);
}

.objectif-card:hover {
    transform: translateY(-3px);
    border-color: var(--red);
}

.objectif-card i {
    display: block;
    font-size: 1.9rem;
    color: var(--red);
    margin-bottom: var(--space-3);
}

.objectif-card p {
    font-size: 0.92rem;
    margin: 0;
    color: var(--gray-700);
    line-height: 1.55;
}

/* ============ VALEUR CARDS LARGE ============ */
.valeur-card-lg {
    padding: var(--space-5);
    text-align: center;
}

.valeur-icon-lg {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ============ ORGANE CARDS ============ */
.organe-card {
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    height: 100%;
    border: 2px solid var(--gray-200);
    border-top: 4px solid var(--red);
    transition: all var(--t-base);
}

.organe-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.organe-card i {
    font-size: 1.9rem;
    color: var(--red);
    margin-bottom: var(--space-3);
    display: block;
}

.organe-card h4 {
    font-size: 1.12rem;
    margin-bottom: var(--space-2);
}

.organe-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.55;
}

/* ============ MEMBRE CARD ============ */
.membre-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 2px solid var(--gray-200);
    transition: all var(--t-base);
}

.membre-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}

.membre-photo {
    height: 260px;
    overflow: hidden;
    background: var(--off-white);
}

.membre-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--t-base);
}

.membre-card:hover .membre-photo img {
    transform: scale(1.05);
}

.membre-body {
    padding: var(--space-4);
    text-align: center;
}

.membre-nom {
    font-size: 1.12rem;
    margin-bottom: var(--space-1);
    color: var(--black);
}

.membre-poste {
    font-size: 0.85rem;
    color: var(--red);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-3);
}

.membre-bio {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: var(--space-3);
    line-height: 1.55;
}

.membre-email {
    color: var(--red);
    font-size: 0.82rem;
    text-decoration: none;
    word-break: break-all;
}

/* ============ PHOTOS GRID ============ */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-3);
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--t-base);
}

.photo-item:hover img {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 20, 25, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-3);
    opacity: 0;
    transition: opacity var(--t-base);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    color: var(--yellow);
    font-size: 1.6rem;
    margin-bottom: var(--space-1);
}

.photo-overlay span {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ============ PARTENAIRE CARD ============ */
.partenaire-card {
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: all var(--t-base);
    height: 100%;
}

.partenaire-card:hover {
    transform: translateY(-3px);
    border-color: var(--red);
    box-shadow: var(--shadow-md);
}

.partenaire-card img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto var(--space-3);
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--t-base);
}

.partenaire-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partenaire-card h5 {
    font-size: 0.95rem;
    margin-bottom: var(--space-2);
    color: var(--black);
}

.partenaire-card a {
    font-size: 0.82rem;
    color: var(--red);
    text-decoration: none;
}

/* ============ OFFRE CARD ============ */
.offre-card {
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    border-left: 4px solid var(--red);
    transition: all var(--t-base);
    height: 100%;
}

.offre-card:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-md);
}

.offre-header {
    margin-bottom: var(--space-3);
}

.offre-type {
    display: inline-block;
    padding: 3px 10px;
    background: var(--red-light);
    color: var(--red);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-2);
}

.offre-header h3 {
    font-size: 1.18rem;
    color: var(--black);
    margin: 0;
}

.offre-meta {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.82rem;
    color: var(--gray-500);
    font-family: var(--font-display);
}

.offre-meta i {
    color: var(--red);
    margin-right: 2px;
}

.offre-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin-bottom: var(--space-3);
    line-height: 1.55;
}

/* ============ DOCUMENT CATEGORY ============ */
.document-category-title {
    font-size: 1.18rem;
    color: var(--black);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--red);
    margin-bottom: var(--space-3);
}

.document-card {
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    text-align: center;
    transition: all var(--t-base);
    height: 100%;
}

.document-card:hover {
    transform: translateY(-3px);
    border-color: var(--red);
    box-shadow: var(--shadow-md);
}

.document-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-3);
    background: var(--red-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.35rem;
}

.document-card h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.document-card p {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: var(--space-2);
    line-height: 1.45;
}

.document-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: var(--space-3);
}

/* ============ ENGAGEMENT CARD ============ */
.engagement-card {
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--gray-200);
    border-top: 4px solid var(--green);
    height: 100%;
    transition: all var(--t-base);
}

.engagement-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.engagement-card i {
    display: block;
    font-size: 1.9rem;
    color: var(--green);
    margin-bottom: var(--space-3);
}

.engagement-card h4 {
    font-size: 1.08rem;
    margin-bottom: var(--space-2);
}

.engagement-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.55;
}

/* ============ TRANSPARENCE ============ */
.transparence-stats {
    margin-top: var(--space-4);
}

.transparence-item {
    margin-bottom: var(--space-3);
}

.transparence-percent {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.transparence-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: var(--space-1) 0;
}

.transparence-item .progress {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
}

.transparence-box {
    background: var(--off-white);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px dashed var(--red);
}

.transparence-box i {
    font-size: 2.7rem;
    color: var(--red);
    margin-bottom: var(--space-3);
    display: block;
}

.transparence-box h4 {
    font-size: 1.12rem;
    margin-bottom: var(--space-2);
}

.transparence-box p {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin-bottom: var(--space-3);
}

/* ============ BÉNÉVOLAT ============ */
.benefice-card {
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    text-align: center;
    height: 100%;
    transition: all var(--t-base);
}

.benefice-card:hover {
    transform: translateY(-3px);
    border-color: var(--red);
    box-shadow: var(--shadow-md);
}

.benefice-card i {
    display: block;
    font-size: 1.9rem;
    color: var(--red);
    margin-bottom: var(--space-3);
}

.benefice-card h4 {
    font-size: 1rem;
    margin-bottom: var(--space-2);
}

.benefice-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    font-size: 0.98rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.mission-list li:last-child {
    border-bottom: none;
}

.mission-list li i {
    color: var(--green);
    font-size: 0.9rem;
}

/* ============ OÙ AGISSONS ============ */
.carte-placeholder {
    background: var(--off-white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-10) var(--space-5);
    text-align: center;
}

.carte-placeholder i {
    font-size: 3.2rem;
    color: var(--red);
    margin-bottom: var(--space-3);
    display: block;
}

.carte-placeholder p {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.zone-detail-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    border: 2px solid var(--gray-200);
    transition: all var(--t-base);
}

.zone-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.zone-detail-header {
    padding: var(--space-4);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.zone-detail-header i {
    font-size: 1.6rem;
}

.zone-detail-header h3 {
    color: var(--white);
    font-size: 1.28rem;
    margin: 0;
}

.zone-detail-body {
    padding: var(--space-4);
}

.zone-detail-body p {
    font-size: 0.92rem;
    margin-bottom: var(--space-2);
}

.zone-detail-body ul {
    padding-left: var(--space-4);
    margin-bottom: var(--space-3);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.zone-detail-body ul li {
    margin-bottom: var(--space-1);
}

.bureau-card {
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    text-align: center;
    height: 100%;
    transition: all var(--t-base);
}

.bureau-card:hover {
    transform: translateY(-3px);
    border-color: var(--red);
    box-shadow: var(--shadow-md);
}

.bureau-card i {
    display: block;
    font-size: 2.2rem;
    color: var(--red);
    margin-bottom: var(--space-3);
}

.bureau-card h4 {
    font-size: 1.12rem;
    margin-bottom: var(--space-3);
}

.bureau-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.65;
}

/* ============ CTA INLINE ============ */
.cta-inline {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.cta-inline h3 {
    color: var(--white);
    font-size: 1.28rem;
    margin-bottom: var(--space-1);
}

.cta-inline p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 767.98px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    
    .membre-photo {
        height: 220px;
    }
    
    .cta-inline {
        text-align: center;
    }
    
    .cta-inline .text-md-end {
        margin-top: var(--space-3);
    }
}

/* ============================================================================
   STYLES DES PAGES INTERMÉDIAIRES (media.php, rejoignez-nous.php)
   ============================================================================ */

/* ============ MEDIA PORTAL CARDS ============ */
.media-portal-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.media-portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--red);
    transition: width var(--t-base);
}

.media-portal-card:hover {
    transform: translate(-3px, -3px);
    border-color: var(--red);
    box-shadow: 5px 5px 0 rgba(227, 6, 19, 0.15);
    color: inherit;
}

.media-portal-card:hover::before {
    width: 6px;
}

.media-portal-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform var(--t-base);
}

.media-portal-card:hover .media-portal-icon {
    transform: rotate(-8deg) scale(1.08);
}

.media-portal-content {
    flex: 1;
    min-width: 0;
}

.media-portal-content h3 {
    font-size: 1.18rem;
    margin-bottom: var(--space-1);
    color: var(--black);
    font-weight: 700;
}

.media-portal-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: var(--space-2);
    line-height: 1.45;
}

.media-portal-meta {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    font-family: var(--font-display);
}

.media-portal-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.media-portal-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.media-portal-arrow {
    color: var(--gray-300);
    font-size: 1.35rem;
    transition: all var(--t-fast);
}

.media-portal-card:hover .media-portal-arrow {
    color: var(--red);
    transform: translateX(4px);
}

/* ============ ENGAGEMENT PORTAL CARDS ============ */
.engagement-portal-card {
    display: block;
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    height: 100%;
    text-align: center;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.engagement-portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-dark));
}

.engagement-portal-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.15);
    color: inherit;
}

.engagement-portal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform var(--t-base);
}

.engagement-portal-card:hover .engagement-portal-icon {
    transform: rotate(-8deg) scale(1.1);
}

.engagement-portal-card h3 {
    font-size: 1.18rem;
    margin-bottom: var(--space-2);
    color: var(--black);
    font-weight: 700;
}

.engagement-portal-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: var(--space-3);
    line-height: 1.55;
    min-height: 38px;
}

.engagement-portal-meta {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    font-family: var(--font-display);
}

.engagement-portal-meta .count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.engagement-portal-meta .label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.engagement-portal-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--red);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: gap var(--t-fast);
}

.engagement-portal-card:hover .engagement-portal-link {
    gap: var(--space-2);
}

/* ============ RAISONS LIST ============ */
.raisons-list {
    margin-top: var(--space-5);
}

.raison-item {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.raison-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.raison-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.raison-item h4 {
    font-size: 1.08rem;
    margin-bottom: var(--space-1);
    color: var(--black);
    font-weight: 700;
}

.raison-item p {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.55;
}

/* ============ STATS BOX ============ */
.stats-box {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.stats-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-dark), var(--red));
}

.stat-box-item {
    text-align: center;
    padding: var(--space-3);
}

.stat-box-item i {
    font-size: 1.6rem;
    color: var(--red);
    margin-bottom: var(--space-2);
    display: block;
}

.stat-box-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-box-label {
    font-size: 0.82rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
    .media-portal-card {
        padding: var(--space-4);
    }
    
    .media-portal-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
        font-size: 1.35rem;
    }
    
    .stats-box {
        margin-top: var(--space-5);
    }
}

@media (max-width: 767.98px) {
    .media-portal-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-4);
    }
    
    .media-portal-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        font-size: 1.45rem;
    }
    
    .media-portal-content h3 {
        font-size: 1.1rem;
    }
    
    .media-portal-arrow {
        display: none;
    }
    
    .media-portal-meta {
        justify-content: center;
    }
    
    .engagement-portal-card {
        padding: var(--space-4);
    }
    
    .engagement-portal-icon {
        width: 56px;
        height: 56px;
        font-size: 1.45rem;
    }
    
    .stat-box-value {
        font-size: 1.65rem;
    }
    
    .raison-item {
        gap: var(--space-2);
    }
    
    .raison-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 1rem;
    }
}

/* ============================================================================
   STYLES POUR FAIRE-UN-DON.PHP
   ============================================================================ */

/* ============ IMPACT DON CARDS ============ */
.impact-don-card {
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--gray-200);
    height: 100%;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.impact-don-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--yellow));
}

.impact-don-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.15);
}

.impact-don-amount {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    margin-bottom: var(--space-3);
}

.impact-don-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-3);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.35rem;
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.3);
}

.impact-don-card h4 {
    font-size: 1.08rem;
    margin-bottom: var(--space-2);
    color: var(--black);
}

.impact-don-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.55;
}

/* ============ DON FORM CONTAINER ============ */
.don-form-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
    border: 2px solid var(--gray-200);
}

.don-form-header {
    text-align: center;
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-5);
    border-bottom: 2px solid var(--gray-200);
}

.don-form-header h2 {
    font-size: 1.65rem;
    color: var(--black);
    margin-bottom: var(--space-2);
}

.don-form-header p {
    font-size: 1rem;
    color: var(--gray-500);
    margin: 0;
}

/* ============ DON STEPS ============ */
.don-step {
    display: none;
    padding: var(--space-4) 0;
}

.don-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.don-step-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.3rem;
    margin-bottom: var(--space-5);
    color: var(--black);
}

.don-step-number {
    width: 32px;
    height: 32px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

/* ============ TYPE TOGGLE ============ */
.don-type-toggle {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.don-type-toggle label {
    flex: 1;
    cursor: pointer;
}

.don-type-toggle input {
    display: none;
}

.don-type-toggle span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-4);
    background: var(--off-white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-700);
    transition: all var(--t-fast);
}

.don-type-toggle input:checked + span {
    background: var(--red-light);
    border-color: var(--red);
    color: var(--red);
}

/* ============ DON AMOUNTS ============ */
.don-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.don-amounts label {
    cursor: pointer;
}

.don-amounts input {
    display: none;
}

.don-amounts span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--black);
    transition: all var(--t-fast);
    min-height: 60px;
}

.don-amounts span:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}

.don-amounts input:checked + span {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.3);
}

.don-amount-custom {
    margin-bottom: var(--space-4);
}

.don-amount-custom .form-control {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--red);
}

/* ============ FORM NAV ============ */
.don-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 2px solid var(--gray-200);
}

/* ============ PAYMENT METHODS ============ */
.don-payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.don-payment-method {
    cursor: pointer;
    display: block;
}

.don-payment-method input {
    display: none;
}

.don-payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-4) var(--space-3);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--t-fast);
    height: 100%;
}

.don-payment-content i {
    font-size: 1.9rem;
    color: var(--red);
    margin-bottom: var(--space-2);
}

.don-payment-content strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--black);
    margin-bottom: 3px;
}

.don-payment-content small {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.don-payment-method input:checked + .don-payment-content {
    border-color: var(--red);
    background: var(--red-light);
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.15);
}

.don-payment-details {
    background: var(--off-white);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    border-left: 3px solid var(--red);
}

.bank-info h5 {
    font-size: 1.05rem;
    margin-bottom: var(--space-3);
    color: var(--black);
}

.bank-info table {
    font-size: 0.92rem;
    margin: 0;
}

.bank-info td {
    padding: var(--space-1) var(--space-2);
    border-bottom: 1px solid var(--gray-200);
}

/* ============ SUCCESS BOX ============ */
.don-success-box {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 2px solid var(--green);
    border-top: 6px solid var(--green);
}

.don-success-icon {
    font-size: 5rem;
    color: var(--green);
    margin-bottom: var(--space-3);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.don-success-box h2 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: var(--space-3);
}

.don-success-box p {
    color: var(--gray-500);
    margin-bottom: var(--space-3);
}

.don-reference {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    background: var(--red-light);
    color: var(--red);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: var(--space-3) 0;
    border: 2px dashed var(--red);
}

.don-success-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-5);
    flex-wrap: wrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 767.98px) {
    .don-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .don-payment-methods {
        grid-template-columns: 1fr;
    }
    
    .don-form-nav {
        flex-direction: column-reverse;
    }
    
    .don-form-nav button {
        width: 100%;
        justify-content: center;
    }
    
    .don-type-toggle {
        flex-direction: column;
    }
    
    .don-success-box {
        padding: var(--space-5) var(--space-4);
    }
    
    .don-success-icon {
        font-size: 4rem;
    }
    
    .don-success-box h2 {
        font-size: 1.5rem;
    }
    
    .don-success-actions {
        flex-direction: column;
    }
    
    .don-success-actions .btn {
        width: 100%;
    }
}

/* ============================================================================
   STYLES PAGE 404
   ============================================================================ */

.section-404 {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-404::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.15), transparent 70%);
    border-radius: 50%;
}

.error-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    font-family: var(--font-display);
    font-size: clamp(5.5rem, 16vw, 11rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-5);
    position: relative;
    z-index: 1;
}

.error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    animation: rotateCompass 3s ease-in-out infinite;
}

@keyframes rotateCompass {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}

.error-title {
    color: var(--white);
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}

.error-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 500px;
    margin: 0 auto var(--space-5);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.error-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.error-suggestions {
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.error-suggestions p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: var(--space-3);
}

.error-links {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.error-links a {
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--t-fast);
}

.error-links a:hover {
    border-bottom-color: var(--yellow);
}

/* ============ RESPONSIVE 404 ============ */
@media (max-width: 767.98px) {
    .section-404 {
        padding: var(--space-10) 0;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-actions .btn {
        width: 100%;
    }
}

/* ============================================================================
   STYLES POUR CONFIRMATION DE DON ET PAIEMENT
   ============================================================================ */

/* ============ CONFIRMATION ============ */
.section-confirmation {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--gray-100) 100%);
    min-height: 80vh;
}

.confirmation-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    border-top: 6px solid var(--green);
}

.confirmation-icon {
    font-size: 5rem;
    color: var(--green);
    margin-bottom: 1.5rem;
    animation: bounceIn 0.6s ease;
}

.confirmation-title {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.confirmation-subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.confirmation-reference {
    background: var(--red-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 2px dashed var(--red);
}

.reference-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.reference-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.05em;
}

.confirmation-details {
    text-align: left;
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.95rem;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label i {
    color: var(--red);
}

.detail-value {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--black);
    text-align: right;
}

.detail-value.highlight {
    color: var(--red);
    font-size: 1.25rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.status-confirmed {
    background: rgba(5, 150, 105, 0.1);
    color: var(--green);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--yellow);
}

.status-cancelled {
    background: rgba(227, 6, 19, 0.1);
    color: var(--red);
}

.confirmation-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(30, 90, 168, 0.05);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--blue-medium);
    margin-bottom: 2rem;
    text-align: left;
}

.confirmation-message i {
    font-size: 1.6rem;
    color: var(--blue-medium);
}

.confirmation-message p {
    margin: 0;
    font-size: 1rem;
    color: var(--gray-700);
}

.confirmation-instructions {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.confirmation-instructions h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.confirmation-instructions ol {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.confirmation-instructions ol li {
    margin-bottom: 0.75rem;
    line-height: 1.65;
    color: var(--gray-700);
}

.confirmation-share {
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.confirmation-share h4 {
    font-size: 1.12rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.confirmation-share p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.confirmation-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .confirmation-card {
        padding: 2rem 1.5rem;
    }
    
    .confirmation-icon {
        font-size: 4rem;
    }
    
    .confirmation-title {
        font-size: 1.65rem;
    }
    
    .reference-value {
        font-size: 1.25rem;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions .btn {
        width: 100%;
    }
}

/* ============ PAIEMENT ============ */
.section-paiement {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--gray-100) 100%);
    min-height: 80vh;
}

.paiement-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.paiement-header {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.paiement-lock {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.9rem;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.paiement-lock.mobile {
    background: var(--blue);
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.3);
}

.paiement-header h1 {
    font-size: 1.65rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.paiement-header p {
    font-size: 1rem;
    color: var(--gray-500);
    margin: 0;
}

.paiement-recap {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.paiement-recap h3 {
    font-size: 1.12rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.recap-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 1rem;
}

.recap-line:last-child {
    border-bottom: none;
}

.recap-line span {
    color: var(--gray-500);
}

.recap-line strong {
    color: var(--black);
    font-family: var(--font-display);
}

.recap-line strong.highlight {
    color: var(--red);
    font-size: 1.15rem;
}

.paiement-notice {
    display: flex;
    gap: 1rem;
    background: rgba(30, 90, 168, 0.05);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--blue-medium);
    margin-bottom: 2rem;
}

.paiement-notice.success {
    background: rgba(5, 150, 105, 0.05);
    border-left-color: var(--green);
}

.paiement-notice i {
    font-size: 1.6rem;
    color: var(--blue-medium);
    flex-shrink: 0;
}

.paiement-notice.success i {
    color: var(--green);
}

.paiement-notice strong {
    display: block;
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.paiement-notice p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.55;
}

.paiement-notice a {
    color: var(--red);
    font-weight: 600;
}

.paiement-form {
    margin-bottom: 2rem;
}

.form-group-card {
    margin-bottom: 1rem;
}

.form-group-card label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.card-input-wrapper {
    position: relative;
}

.card-input-wrapper input {
    padding-right: 3rem;
}

.card-input-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1.35rem;
}

.paiement-instructions {
    margin-bottom: 2rem;
}

.paiement-instructions h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.instruction-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.instruction-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
}

.step-content h4 {
    font-size: 1.05rem;
    color: var(--black);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.55;
}

.highlight-number,
.highlight-amount,
.highlight-reference {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem !important;
    margin-top: 0.35rem;
}

.highlight-number {
    background: rgba(30, 90, 168, 0.1);
    color: var(--blue-medium);
}

.highlight-amount {
    background: rgba(5, 150, 105, 0.1);
    color: var(--green);
}

.highlight-reference {
    background: var(--red-light);
    color: var(--red);
    letter-spacing: 0.05em;
}

.paiement-actions {
    margin-top: 2rem;
}

.paiement-security {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.security-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 600;
}

.security-item i {
    color: var(--green);
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    .paiement-card {
        padding: 1.5rem;
    }
    
    .paiement-lock {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .paiement-header h1 {
        font-size: 1.4rem;
    }
    
    .instruction-step {
        gap: 0.75rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.95rem;
    }
    
    .paiement-security {
        gap: 1rem;
    }
}

/* ============================================================================
   SÉCURITÉ — Affichage garanti (compatible avec les animations)
   ============================================================================
   Par défaut, les éléments sont VISIBLES.
   Le JS active les animations seulement si supporté.
   ============================================================================ */

[data-animate] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Si le JS est actif, on prépare l'animation */
html.js-enabled [data-animate]:not(.fade-in-up) {
    opacity: 0;
    transform: translateY(15px);
}

html.js-enabled [data-animate].fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback : forcer l'affichage si JS désactivé ou en erreur */
.no-js [data-animate] {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================================================
   FIX CLS - Ratios explicites pour les images lazy-loaded
   ============================================================================ */

/* Hero (LCP - eager) */
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Réalisations (avant/après) — ratio 4:3 */
.realisation-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Actualités — ratio 16:10 */
.actualite-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* Témoignage — ratio 1:1 (carré) */
.temoignage-photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Carte interactive */
.carte-rdc {
    position: relative;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.carte-rdc #map-rdc {
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.carte-legende .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    font-weight: 500;
}

/* Marqueur personnalisé NETRESE */
.netrese-marker {
    background: transparent !important;
    border: none !important;
}

/* Popups Leaflet personnalisées */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-tip {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .carte-rdc {
        padding: 16px;
    }
    .carte-rdc #map-rdc {
        height: 350px !important;
    }
}

/* ============================================================================
   PAGE DÉTAIL ACTUALITÉ (actualite.php)
   ============================================================================
   Styles spécifiques à la page /pages/actualite.php
   Alignés sur le design system NETRESE v3.0 COMPACT
   ============================================================================ */

/* ============ META BANNIÈRE ============ */
.page-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-family: var(--font-display);
    margin-top: var(--space-3);
}

.page-banner-meta i {
    color: var(--yellow);
    margin-right: 4px;
}

/* ============ IMAGE PRINCIPALE ============ */
.actualite-hero {
    margin-bottom: var(--space-5);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.actualite-hero img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* ============ CHAPÔ (RÉSUMÉ) ============ */
.actualite-chapo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--gray-700);
    background: var(--off-white);
    border-left: 4px solid var(--red);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
}

/* ============ GALERIE PHOTOS ============ */
.actualite-galerie {
    padding: var(--space-5);
    background: var(--off-white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
}

.actualite-galerie-title {
    font-size: 1.35rem;
    color: var(--black);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--red);
    display: inline-block;
    font-family: var(--font-display);
}

.actualite-galerie-title small {
    color: var(--red);
    font-weight: 700;
    font-size: 0.75em;
    margin-left: 4px;
}

.actualite-galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-3);
}

.actualite-galerie-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    cursor: zoom-in;
    transition: transform var(--t-base), box-shadow var(--t-base);
    text-decoration: none;
}

.actualite-galerie-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(227, 6, 19, 0.15);
}

.actualite-galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--t-base);
}

.actualite-galerie-item:hover img {
    transform: scale(1.06);
}

.actualite-galerie-zoom {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 20, 25, 0.75);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity var(--t-base), transform var(--t-fast);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.actualite-galerie-item:hover .actualite-galerie-zoom {
    opacity: 1;
    transform: scale(1.08);
}

/* ============ PARTAGE SOCIAL ============ */
.actualite-share {
    padding: var(--space-5);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.actualite-share-title {
    font-size: 1.08rem;
    color: var(--black);
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    align-items: center;
}

.actualite-share-title i {
    color: var(--red);
}

.actualite-share-buttons {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.share-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform var(--t-fast), filter var(--t-fast), box-shadow var(--t-fast);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.share-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.share-facebook { background: #1877F2; }
.share-twitter  { background: #000000; }
.share-whatsapp { background: #25D366; }
.share-linkedin { background: #0A66C2; }
.share-copy     { background: var(--gray-700); }

/* ============ ARTICLES SIMILAIRES ============ */
.actualite-similaires-section {
    margin-top: var(--space-8);
}

.actualite-similaires-title {
    font-size: 1.35rem;
    color: var(--black);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--red);
    display: inline-block;
    font-family: var(--font-display);
}

.actualite-similaire-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: all var(--t-base);
    height: 100%;
    border: 2px solid var(--gray-200);
}

.actualite-similaire-card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--red);
    box-shadow: 4px 4px 0 rgba(227, 6, 19, 0.15);
    color: inherit;
}

.actualite-similaire-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gray-100);
}

.actualite-similaire-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--t-base);
}

.actualite-similaire-card:hover .actualite-similaire-card-image img {
    transform: scale(1.05);
}

.actualite-similaire-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-300);
    font-size: 2.2rem;
}

.actualite-similaire-card-body {
    padding: var(--space-3);
}

.actualite-similaire-card-body h4 {
    font-size: 0.98rem;
    line-height: 1.35;
    margin: 0 0 var(--space-1);
    color: var(--black);
    font-family: var(--font-display);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--t-fast);
}

.actualite-similaire-card:hover h4 {
    color: var(--red);
}

.actualite-similaire-card-body small {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-family: var(--font-display);
}

.actualite-similaire-card-body small i {
    color: var(--red);
    margin-right: 3px;
}

/* ============ LIGHTBOX ============ */
.nr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
}

.nr-lightbox.is-open {
    display: flex;
}

.nr-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.94);
    cursor: zoom-out;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nr-lightbox-figure {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.nr-lightbox-figure img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: block;
}

.nr-lightbox-caption {
    color: var(--white);
    font-size: 0.95rem;
    margin-top: var(--space-3);
    text-align: center;
    max-width: 80vw;
    opacity: 0.9;
    font-family: var(--font-display);
}

.nr-lightbox-close,
.nr-lightbox-prev,
.nr-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nr-lightbox-close {
    top: var(--space-4);
    right: var(--space-4);
    transform: none;
}

.nr-lightbox-prev { left: var(--space-4); }
.nr-lightbox-next { right: var(--space-4); }

.nr-lightbox-close:hover,
.nr-lightbox-prev:hover,
.nr-lightbox-next:hover {
    background: var(--red);
    transform: translateY(-50%) scale(1.05);
}

.nr-lightbox-close:hover {
    transform: scale(1.05);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
    .actualite-hero img {
        max-height: 420px;
    }
}

@media (max-width: 767.98px) {
    .actualite-hero {
        margin-bottom: var(--space-4);
        border-radius: var(--radius-md);
    }

    .actualite-hero img {
        max-height: 280px;
    }

    .actualite-chapo {
        font-size: 1rem;
        padding: var(--space-3) var(--space-4);
        margin-bottom: var(--space-4);
    }

    .actualite-galerie {
        padding: var(--space-3);
    }

    .actualite-galerie-title {
        font-size: 1.15rem;
    }

    .actualite-galerie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }

    .actualite-galerie-zoom {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .actualite-share {
        padding: var(--space-4);
    }

    .actualite-share-title {
        font-size: 1rem;
        margin-bottom: var(--space-3);
    }

    .share-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .actualite-similaires-title {
        font-size: 1.15rem;
    }

    .actualite-similaire-card-body {
        padding: var(--space-2);
    }

    .actualite-similaire-card-body h4 {
        font-size: 0.9rem;
    }

    .nr-lightbox-close,
    .nr-lightbox-prev,
    .nr-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .nr-lightbox-prev { left: var(--space-2); }
    .nr-lightbox-next { right: var(--space-2); }
    .nr-lightbox-close { top: var(--space-2); right: var(--space-2); }
}

/* ============================================================================
   PAGE LISTE ACTUALITÉS (actualites.php)
   ============================================================================ */

/* ============ FILTRES CATÉGORIES ============ */
.actus-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    margin-bottom: var(--space-5);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: var(--off-white);
    color: var(--gray-700);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all var(--t-fast);
}

.filter-chip:hover {
    background: var(--red-light);
    color: var(--red);
    border-color: var(--red);
}

.filter-chip.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    font-weight: 600;
}

.filter-count {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 4px;
}

.filter-chip.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* ============ CARTE ACTUALITÉ (liste) ============ */
.actu-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--t-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--gray-200);
}

.actu-card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--red);
    box-shadow: 4px 4px 0 rgba(227, 6, 19, 0.15);
}

.actu-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
    text-decoration: none;
}

.actu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--t-base);
}

.actu-card:hover .actu-card-image img {
    transform: scale(1.05);
}

.actu-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-300);
    font-size: 3rem;
}

.actu-card-category {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
}

.actu-card-gallery {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(15, 20, 25, 0.75);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}

.actu-card-body {
    padding: var(--space-3);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.actu-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gray-500);
    font-family: var(--font-display);
    margin-bottom: var(--space-1);
}

.actu-card-meta i {
    color: var(--red);
    font-size: 0.8rem;
}

.actu-card-meta-sep {
    margin: 0 4px;
    color: var(--gray-300);
}

.actu-card-title {
    font-size: 1.02rem;
    line-height: 1.35;
    margin: 0 0 var(--space-2);
    font-family: var(--font-display);
    color: var(--black);
}

.actu-card-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--t-fast);
}

.actu-card-title a:hover {
    color: var(--red);
}

.actu-card-resume {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin: 0 0 var(--space-3);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actu-card-link {
    color: var(--red);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: gap var(--t-fast);
    margin-top: auto;
}

.actu-card-link:hover {
    gap: var(--space-2);
    color: var(--red-dark);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 767.98px) {
    .actu-card-body { padding: var(--space-2); }
    .actu-card-title { font-size: 0.95rem; }
    .actu-card-resume { font-size: 0.82rem; }
    .actus-filters { justify-content: flex-start; }
}

/* ============================================================================
   PAGE PHOTOS (galerie publique)
   ============================================================================
   Remplace les styles inline de photos.php
   ============================================================================ */

/* ============ FILTRES ============ */
.photos-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    margin-bottom: var(--space-4);
}

/* .filter-chip est déjà défini plus haut (actualites.php) — réutilisé ici */

/* ============ TOOLBAR ============ */
.photos-toolbar {
    text-align: center;
    color: var(--gray-500);
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: var(--space-4);
}
.photos-toolbar strong {
    color: var(--red);
}

/* ============ GRILLE PHOTOS ============ */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-3);
}

.photo-item {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
    text-decoration: none;
}

.photo-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(227, 6, 19, 0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--t-base);
}

.photo-item:hover img {
    transform: scale(1.06);
}

/* Overlay au survol */
.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 20, 25, 0.9) 0%, rgba(15, 20, 25, 0.2) 60%, transparent 100%);
    color: var(--white);
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity var(--t-base);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    color: var(--yellow);
}

.photo-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    font-family: var(--font-display);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 767.98px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }

    .photo-overlay i {
        font-size: 1.6rem;
    }

    .photo-overlay span {
        font-size: 0.75rem;
    }
}

/* ============================================================================
   LIGHTBOX (partagée avec actualite.php)
   ============================================================================ */
.nr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
}

.nr-lightbox.is-open {
    display: flex;
}

.nr-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.94);
    cursor: zoom-out;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nr-lightbox-figure {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.nr-lightbox-figure img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: block;
}

.nr-lightbox-caption {
    color: var(--white);
    font-size: 0.95rem;
    margin-top: var(--space-3);
    text-align: center;
    max-width: 80vw;
    opacity: 0.9;
    font-family: var(--font-display);
}

.nr-lightbox-close,
.nr-lightbox-prev,
.nr-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nr-lightbox-close {
    top: var(--space-4);
    right: var(--space-4);
    transform: none;
}
.nr-lightbox-prev { left: var(--space-4); }
.nr-lightbox-next { right: var(--space-4); }

.nr-lightbox-close:hover,
.nr-lightbox-prev:hover,
.nr-lightbox-next:hover {
    background: var(--red);
    transform: translateY(-50%) scale(1.05);
}
.nr-lightbox-close:hover { transform: scale(1.05); }

@media (max-width: 767.98px) {
    .nr-lightbox-close,
    .nr-lightbox-prev,
    .nr-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .nr-lightbox-prev { left: var(--space-2); }
    .nr-lightbox-next { right: var(--space-2); }
    .nr-lightbox-close { top: var(--space-2); right: var(--space-2); }
}

/* ============================================================================
   PAGE RECRUTEMENT (offres d'emploi publiques)
   ============================================================================ */

/* ============ FILTRES ============ */
.recrutement-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    margin-bottom: var(--space-5);
}

/* .filter-chip est déjà défini (actualites + photos) ✅ */

/* ============ CARTE OFFRE ============ */
.offre-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    border: 2px solid var(--gray-200);
    border-left: 4px solid var(--red);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--t-base);
}

.offre-card:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-md);
    border-color: var(--red);
}

.offre-card.offre-urgent {
    border-left-color: #F59E0B;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.03), transparent 40%);
}

/* Header */
.offre-header {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    margin-bottom: var(--space-3);
}

.offre-type {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--red-light);
    color: var(--red);
}

.offre-type.type-emploi      { background: rgba(227, 6, 19, 0.1);  color: var(--red); }
.offre-type.type-consultance { background: rgba(30, 90, 168, 0.1);  color: var(--blue-medium); }
.offre-type.type-appel       { background: rgba(245, 158, 11, 0.15); color: #B45309; }
.offre-type.type-stage       { background: rgba(124, 58, 237, 0.1); color: #7C3AED; }

.offre-urgent-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: #F59E0B;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.offre-title {
    font-size: 1.18rem;
    margin: 0;
    color: var(--black);
    font-family: var(--font-display);
    line-height: 1.35;
    flex-basis: 100%;
}

/* Méta */
.offre-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: var(--space-3);
    font-family: var(--font-display);
}

.offre-meta i {
    color: var(--red);
    margin-right: 3px;
}

.offre-meta .text-danger {
    color: var(--red);
    font-weight: 600;
}

/* Description */
.offre-description {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin-bottom: var(--space-3);
    flex-grow: 1;
}

/* Actions */
.offre-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: auto;
    align-items: center;
}

/* CTA final */
.recrutement-cta {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-5);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.recrutement-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.2), transparent 70%);
    border-radius: 50%;
}

.recrutement-cta-content {
    position: relative;
    z-index: 1;
}

.recrutement-cta > .recrutement-cta-content > i {
    font-size: 2.2rem;
    color: var(--red);
    display: block;
    margin-bottom: var(--space-3);
}

.recrutement-cta h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: var(--space-2);
}

.recrutement-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: var(--space-4);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
   PAGE DÉTAIL OFFRE (offre.php)
   ============================================================================ */

.offre-section-title {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--red);
    display: inline-block;
    font-family: var(--font-display);
}

.offre-section-title i { color: var(--red); }

.offre-cta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--space-5);
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 767.98px) {
    .offre-card {
        padding: var(--space-4);
    }

    .offre-title {
        font-size: 1.05rem;
    }

    .offre-meta {
        font-size: 0.8rem;
        gap: var(--space-2);
    }

    .offre-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .recrutement-cta {
        padding: var(--space-5) var(--space-4);
    }

    .recrutement-cta h3 {
        font-size: 1.1rem;
    }

    .offre-cta {
        flex-direction: column;
    }

    .offre-cta .btn {
        width: 100%;
    }
}

/* ============================================================================
   CANDIDATURE SPONTANÉE
   ============================================================================ */

.candidature-intro {
    background: var(--off-white);
    border-left: 4px solid var(--red);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: 1.02rem;
    line-height: 1.65;
}

.candidature-intro p { margin: 0; }

.candidature-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-200);
}

.candidature-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--gray-200);
}

.candidature-fieldset:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.candidature-fieldset legend {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: var(--space-4);
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    width: 100%;
}

.candidature-fieldset legend i { color: var(--red); }

.candidature-form .form-label {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: var(--space-1);
}

.candidature-form .form-control,
.candidature-form .form-select {
    padding: 0.65rem 0.9rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    transition: all var(--t-fast);
    background: var(--white);
}

.candidature-form .form-control:focus,
.candidature-form .form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
    outline: none;
}

.candidature-form textarea { resize: vertical; min-height: 140px; }

.candidature-consent {
    background: var(--off-white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--red);
}

.candidature-consent .form-check-label {
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Succès */
.candidature-success {
    text-align: center;
    padding: var(--space-8) var(--space-5);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--green);
}

.candidature-success-icon {
    font-size: 5rem;
    color: var(--green);
    margin-bottom: var(--space-3);
}

.candidature-success h2 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: var(--space-3);
}

.candidature-success p {
    font-size: 1.02rem;
    color: var(--gray-500);
    margin-bottom: var(--space-4);
    line-height: 1.65;
}

.candidature-success-actions {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .candidature-form { padding: var(--space-4); }
    .candidature-success h2 { font-size: 1.4rem; }
    .candidature-success-icon { font-size: 4rem; }
    .candidature-success-actions { flex-direction: column; }
    .candidature-success-actions .btn { width: 100%; }
}

/* ============================================================================
   POSTULER À UNE OFFRE (récap offre)
   ============================================================================ */

.postuler-recap {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.postuler-recap::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.2), transparent 70%);
    border-radius: 50%;
}

.postuler-recap h3 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: var(--space-2);
    position: relative;
    z-index: 1;
}

.postuler-recap-titre {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 var(--space-3);
    position: relative;
    z-index: 1;
}

.postuler-recap-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
}

.postuler-recap-meta i {
    color: var(--yellow);
    margin-right: 4px;
}

.postuler-recap-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--yellow);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid transparent;
    transition: all var(--t-fast);
}

.postuler-recap-link:hover {
    color: var(--white);
    border-bottom-color: var(--yellow);
}

@media (max-width: 767.98px) {
    .postuler-recap { padding: var(--space-4); }
    .postuler-recap-titre { font-size: 1.15rem; }
}