/* ==========================================================================
   FONDATION JULIEN PALUKU KAHONGYA - FEUILLE DE STYLE PRINCIPALE
   Design fidèle à la maquette SAFI CONNECTE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Palette de couleurs principale */
    --color-navy-darkest: #071524;
    --color-navy-dark: #0a1f33;
    --color-navy-primary: #0c2640;
    --color-navy-card: #112d4a;
    --color-navy-light: #183a5c;
    --color-navy-surface: #1e456d;
    --color-navy-border: #1a3856;

    /* Couleur d'accent (Orange chaleureux) */
    --color-orange-primary: #e6671a;
    --color-orange-hover: #cf5810;
    --color-orange-active: #b34a0a;
    --color-orange-light: #fef4ec;
    --color-orange-subtle: rgba(230, 103, 26, 0.12);

    /* Textes */
    --color-text-main: #0f1e2e;
    --color-text-body: #4a596a;
    --color-text-muted: #6e7f91;
    --color-text-light: #f1f5f9;
    --color-text-white: #ffffff;

    /* Fonds & Conteneurs */
    --color-bg-page: #ffffff;
    --color-bg-light: #f7f9fc;
    --color-bg-alt: #f0f4f9;
    --color-border-light: #e2e8f0;
    --color-border-subtle: #edf2f7;

    /* Typographies */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Espacements & Rayons */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    
    /* Ombres */
    --shadow-subtle: 0 2px 8px rgba(12, 38, 64, 0.04);
    --shadow-card: 0 4px 20px rgba(12, 38, 64, 0.08);
    --shadow-hover: 0 10px 30px rgba(12, 38, 64, 0.12);
    --shadow-dark: 0 10px 35px rgba(0, 0, 0, 0.25);

    /* Layout */
    --container-max-width: 1200px;
    --transition-base: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-body);
    background-color: var(--color-bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

p, h1, h2, h3, h4, h5, h6, span, a, li {
    overflow-wrap: break-word;
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.25;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHIE & ÉLÉMENTS SPÉCIFIQUES MAQUETTE
   -------------------------------------------------------------------------- */
.eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-orange-primary);
    margin-bottom: 1rem;
}

.eyebrow-tag::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: var(--color-orange-primary);
}

.eyebrow-tag.no-line::after {
    display: none;
}

.eyebrow-tag.light {
    color: var(--color-orange-primary);
}

.eyebrow-tag.light::after {
    background-color: var(--color-orange-primary);
}

.section-title {
    font-size: 2.35rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.section-title.light {
    color: var(--color-text-white);
}

.section-lead {
    font-size: 1.125rem;
    color: var(--color-text-body);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.section-lead.light {
    color: rgba(255, 255, 255, 0.85);
}

.source-tag {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    display: inline-block;
    margin-top: 1rem;
}

.source-tag.light {
    color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   4. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.btn-primary {
    background-color: var(--color-orange-primary);
    color: var(--color-text-white);
    border-color: var(--color-orange-primary);
}

.btn-primary:hover {
    background-color: var(--color-orange-hover);
    border-color: var(--color-orange-hover);
    box-shadow: 0 4px 14px rgba(230, 103, 26, 0.35);
}

.btn-outline-white {
    background-color: rgba(12, 38, 64, 0.4);
    color: var(--color-text-white);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-text-white);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-text-main);
    border-color: var(--color-border-light);
}

.btn-outline-dark:hover {
    border-color: var(--color-navy-primary);
    color: var(--color-navy-primary);
    background-color: var(--color-bg-light);
}

.btn-disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   5. TOP BAR & EN-TÊTE
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: var(--color-navy-darkest);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.775rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left .motto-bold {
    color: var(--color-text-white);
    font-weight: 600;
}

.top-bar-left .motto-sub {
    color: rgba(255, 255, 255, 0.65);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.top-bar-right .dot {
    color: var(--color-orange-primary);
    font-weight: bold;
}

/* Navbar */
.main-header {
    background-color: var(--color-bg-page);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.brand-subtitle {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.12em;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    padding: 6px 0;
    position: relative;
}

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

.nav-link.active {
    color: var(--color-navy-primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-orange-primary);
}

.header-cta .btn-header {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1001;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-navy-primary);
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
    transform-origin: center;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. HERO SECTIONS
   -------------------------------------------------------------------------- */
/* Hero Principal (Page d'accueil) */
.hero-home {
    position: relative;
    background-color: var(--color-navy-dark);
    color: var(--color-text-white);
    padding: 90px 0 140px;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 26, 44, 0.93) 0%, rgba(12, 38, 64, 0.86) 60%, rgba(10, 31, 51, 0.90) 100%);
    z-index: 1;
}

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

.hero-home-content {
    max-width: 680px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-text-white);
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-photo-credit {
    position: absolute;
    bottom: 16px;
    right: 24px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    z-index: 2;
}

/* Hero Pages Internes (Fondation, Bourses, Réalisations) */
.hero-internal {
    position: relative;
    background-color: var(--color-navy-primary);
    color: var(--color-text-white);
    padding: 60px 0 70px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-internal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 26, 44, 0.94) 0%, rgba(12, 38, 64, 0.88) 100%);
    z-index: 1;
}

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

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-nav a:hover {
    color: var(--color-orange-primary);
}

.breadcrumb-nav .separator {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-nav .current {
    color: var(--color-orange-primary);
    font-weight: 500;
}

.hero-internal-title {
    font-size: 3rem;
    color: var(--color-text-white);
    margin-bottom: 0.75rem;
}

.hero-internal-lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
}


/* =========================================================
   7. BANDEAU DES 3 PILIERS MAJEURS
   ========================================================= */

.pillars-section {
    position: relative;
    margin-top: -65px;
    margin-bottom: 40px;
    z-index: 10;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #ffffff;
    border-bottom: 3px solid var(--color-orange-primary);
    box-shadow: var(--shadow-card);
    border-radius: 3px;
    overflow: hidden;
}

.pillar-card {
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
    padding: 20px;
}

.pillar-card:last-child {
    border-bottom: none;
}
.pillar-card:hover {
    background: var(--color-bg-light);
}

.pillar-icon {
    flex-shrink: 0;
    color: var(--color-navy-primary);
    font-size: 21px;
    line-height: 1.4;
    padding-top: 1px;
}

.pillar-content {
    flex: 1;
    min-width: 0;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy-primary);
    margin-bottom: 5px;
    line-height: 1.3;
}

.pillar-desc {
    font-size: 0.76rem;
    color: var(--color-text-body);
    line-height: 1.5;
    margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   8. SECTION PRÉSENTATION & COLLAGE PHOTOS
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   8. SECTION PRÉSENTATION & COLLAGE PHOTOS
   -------------------------------------------------------------------------- */

.section-presentation {
    padding: 80px 0;
    background-color: var(--color-bg-page);
}

/* Disposition générale : photos à gauche, texte à droite */
.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
}

/* COLLAGE DES DEUX PHOTOS */

.collage-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 370px;
}

/* Première photo : en haut à gauche */
.collage-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 72%;
    height: 190px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-card);
    z-index: 1;
}

/* Deuxième photo : en bas à droite */
.collage-secondary-wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52%;
    height: 200px;
    display: block;
    z-index: 2;
}

.collage-img-sub {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-card);
}

/* BADGE STATISTIQUE 2015 */

.stat-overlay-badge {
    position: absolute;
    left: -15px;
    bottom: -15px;
    z-index: 5;
    width: 200px;
    min-width: 0;
    padding: 18px 20px;
    background-color: var(--color-navy-primary);
    color: var(--color-text-white);
    border-top: 3px solid var(--color-orange-primary);
    border-radius: 4px;
    box-shadow: var(--shadow-dark);
}

.stat-overlay-badge .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1;
    margin-bottom: 7px;
    font-family: var(--font-sans);
}

.stat-overlay-badge .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 8px;
}

.stat-overlay-badge .stat-source {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
}

/* LISTE À PUCES ORANGE */

.feature-checklist {
    margin: 24px 0 32px;
}

.feature-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.feature-checklist .square-marker {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-orange-primary);
    margin-top: 8px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. PROJET MIS EN AVANT (Section Bicolore Sombre / Photo)
   -------------------------------------------------------------------------- */
.featured-project-section {
    background-color: var(--color-navy-darkest);
    color: var(--color-text-white);
    overflow: hidden;
}

.featured-project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.featured-project-content {
    padding: 70px 60px 70px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-project-media {
    position: relative;
    overflow: hidden;
}

.featured-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-project-caption {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 0.725rem;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.specs-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0 32px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.specs-mini-item .spec-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 4px;
}

.specs-mini-item .spec-lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------------------
   10. BANDEAU CHIFFRES CLÉS (Barre sombre 4 colonnes)
   -------------------------------------------------------------------------- */
.stats-banner {
    background-color: var(--color-navy-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 45px 0;
    color: var(--color-text-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: left;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.12);
}

.stat-big-val {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.1;
    margin-bottom: 6px;
    font-family: var(--font-sans);
}

.stat-label-text {
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-source-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   11. ACTUALITÉS & PARCOURS (Page Accueil & Page Actualités)
   -------------------------------------------------------------------------- */
.news-section {
    padding: 85px 0;
    background-color: var(--color-bg-light);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--color-bg-page);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-card-header {
    background-color: var(--color-navy-primary);
    color: var(--color-text-white);
    padding: 24px 24px 20px;
}

.news-card-header .header-tag {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 4px;
}

.news-card-header .header-location {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.news-card-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.04);
}

.news-card-media-placeholder {
    height: 190px;
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-style: italic;
}

.news-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-tag {
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-orange-primary);
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.news-card-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--color-navy-primary);
    line-height: 1.35;
    margin-bottom: 14px;
}

.news-card-title a:hover {
    color: var(--color-orange-primary);
}

.news-card-desc {
    font-size: 0.925rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 16px;
    margin-top: auto;
}

.news-link-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-link-more:hover {
    color: var(--color-orange-primary);
}

/* --------------------------------------------------------------------------
   12. BANDEAU D'APPEL À L'ACTION (CTA Bottom Banner)
   -------------------------------------------------------------------------- */
.cta-banner {
    position: relative;
    background-color: var(--color-navy-dark);
    padding: 75px 0;
    color: var(--color-text-white);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 26, 44, 0.94) 0%, rgba(12, 38, 64, 0.88) 100%);
    z-index: 1;
}

.cta-banner .container {
    position: relative;
    z-index: 2;
}

.cta-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-banner-text {
    max-width: 650px;
}

.cta-banner-title {
    font-size: 2.2rem;
    color: var(--color-text-white);
    margin-bottom: 12px;
}

.cta-banner-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.cta-banner-photo-credit {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    z-index: 2;
}

/* --------------------------------------------------------------------------
   13. PAGE LA FONDATION (Spécificités)
   -------------------------------------------------------------------------- */
/* Section Axes d'intervention */
.axes-section {
    background-color: var(--color-navy-dark);
    color: var(--color-text-white);
    padding: 85px 0 70px;
}

.axes-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 45px 0 60px;
}

.axis-card {
    background-color: var(--color-bg-page);
    border-radius: var(--radius-md);
    padding: 34px 30px;
    color: var(--color-text-main);
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
}

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

.axis-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-orange-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.axis-title {
    font-size: 1.35rem;
    color: var(--color-navy-primary);
    margin-bottom: 12px;
}

.axis-desc {
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.6;
}

/* Niveaux de formation (Grille 2x2) */
.levels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0;
}

.level-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.level-num {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-orange-primary);
    font-family: var(--font-sans);
    line-height: 1;
}

.level-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy-primary);
    font-family: var(--font-sans);
    margin-bottom: 4px;
}

.level-desc {
    font-size: 0.875rem;
    color: var(--color-text-body);
}

/* --------------------------------------------------------------------------
   14. PAGE BOURSES D'ÉTUDES (Spécificités)
   -------------------------------------------------------------------------- */
/* Étapes de candidature */
.process-section {
    background-color: var(--color-navy-dark);
    color: var(--color-text-white);
    padding: 85px 0;
}

.process-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step-card {
    background-color: var(--color-navy-card);
    border: 1px solid var(--color-navy-border);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    transition: var(--transition-base);
}

.process-step-card:hover {
    border-color: var(--color-orange-primary);
    transform: translateY(-4px);
}

.step-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-orange-primary);
    line-height: 1;
    margin-bottom: 12px;
}

.step-title {
    font-size: 1.25rem;
    color: var(--color-text-white);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

/* Simulateur d'appel à candidatures (Boîte d'exemple) */
.call-simulation-box {
    background: var(--color-bg-page);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin: 40px 0;
}

.call-sim-header-notice {
    background: #f8fafc;
    border-bottom: 1px solid var(--color-border-light);
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.call-sim-header-notice .notice-left {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
}

.call-sim-header-notice .notice-right {
    color: #d97706;
    font-weight: 600;
}

.call-sim-main {
    padding: 32px 30px;
}

.call-sim-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 28px;
}

.call-sim-title {
    font-size: 1.6rem;
    color: var(--color-navy-primary);
    margin-bottom: 6px;
}

.call-sim-status {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.call-sim-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.sim-col-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-navy-primary);
    margin-bottom: 16px;
    font-family: var(--font-sans);
}

.sim-item-list li {
    font-size: 0.9rem;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    color: #4a596a;
}

.sim-timeline li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.875rem;
}

.sim-timeline .dot-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--color-orange-primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.sim-timeline .dot-title {
    font-weight: 600;
    color: var(--color-navy-primary);
}

.sim-timeline .dot-date {
    font-size: 0.775rem;
    color: var(--color-text-muted);
}

.call-sim-footer-note {
    background: #f8fafc;
    border-top: 1px solid var(--color-border-light);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.775rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   15. PAGE RÉALISATIONS (Spécificités)
   -------------------------------------------------------------------------- */
.project-showcase {
    background: var(--color-bg-page);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 70px;
}

.project-showcase-media {
    position: relative;
    max-height: 480px;
    overflow: hidden;
}

.project-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-showcase-info-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    padding: 45px 40px;
}

.facts-box {
    background-color: var(--color-navy-primary);
    color: var(--color-text-white);
    border-radius: var(--radius-md);
    padding: 30px;
}

.facts-title {
    font-size: 1.35rem;
    color: var(--color-text-white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.facts-table {
    width: 100%;
    border-collapse: collapse;
}

.facts-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.facts-table td {
    padding: 12px 0;
    font-size: 0.9rem;
    vertical-align: top;
}

.facts-table .fact-label {
    width: 38%;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
}

.facts-table .fact-val {
    color: var(--color-text-white);
    font-weight: 500;
}

.facts-source {
    margin-top: 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */

/* =========================================================
   FOOTER - FONDATION JULIEN PALUKU KAHONGYA
   ========================================================= */

.site-footer {
    background: var(--color-navy-darkest);
    color: #ffffff;
}

/* STRUCTURE PRINCIPALE */

.footer-main {
    padding-top: 65px;
    padding-bottom: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.9fr 0.9fr;
    gap: 40px;
    align-items: start;
}

/* COLONNE 1 : LOGO */

.footer-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-logo img {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-brand-desc {
    font-size: 0.83rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.68);
    margin-bottom: 0;
}

/* TITRES DES COLONNES */

.footer-col-title {
    position: relative;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    padding-bottom: 13px;
    margin-bottom: 23px;
}

.footer-col-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--color-orange-primary);
}

/* COLONNE 2 : CONTACT */

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-contact-list li i {
    color: var(--color-orange-primary);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* COLONNE 3 : LIENS UTILES */

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.72);
    font-size: 0.83rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-menu a i {
    font-size: 0.68rem;
    color: var(--color-orange-primary);
}

.footer-menu a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* COLONNE 4 : RÉSEAUX SOCIAUX */

.footer-social-desc {
    font-size: 0.83rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.68);
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-social-links a:hover {
    background: var(--color-orange-primary);
    border-color: var(--color-orange-primary);
    color: #ffffff;
    transform: translateY(-4px);
}

/* BARRE COPYRIGHT */

.footer-bottom {
    background: #040c15;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.55);
}


/* ==========================================================================
   ENRICHISSEMENTS PHASE 2 : PORTAIL INSTITUTIONNEL GLOBAL
   ========================================================================== */

/* Navbar compacte pour 8 éléments */
.nav-menu .nav-list {
    gap: 16px;
}

.nav-link {
    font-size: 0.875rem;
    white-space: nowrap;
}

.topbar-admin-link {
    color: var(--color-orange-primary);
    font-weight: 600;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(230, 103, 26, 0.15);
    transition: var(--transition-base);
}

.topbar-admin-link:hover {
    background: var(--color-orange-primary);
    color: #ffffff;
}

/* Grille des 7 Domaines d'intervention */
.domaines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 35px;
}

.domaine-card {
    background: var(--color-bg-page);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 3px solid transparent;
}

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

.domaine-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--color-orange-light);
    color: var(--color-orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.domaine-card-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--color-navy-primary);
    margin-bottom: 12px;
}

.domaine-card-desc {
    font-size: 0.92rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.domaine-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.domaine-card-link:hover {
    color: var(--color-orange-primary);
}

/* Fiches détaillées sur la page Domaines */
.domaine-detail-section {
    padding: 70px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.domaine-detail-section:nth-child(even) {
    background-color: var(--color-bg-light);
}

.domaine-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
}

.domaine-detail-grid.reverse {
    grid-template-columns: 1fr 1.1fr;
}

.domaine-detail-media {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.domaine-detail-media img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.domaine-meta-list {
    margin: 20px 0 25px;
}

.domaine-meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

/* Page Boursiers & Galerie d'Honneur */
.boursiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.boursier-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
}

.boursier-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.boursier-photo-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: var(--color-navy-dark);
}

.boursier-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.boursier-card:hover .boursier-photo-wrap img {
    transform: scale(1.05);
}

.boursier-badge-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-orange-primary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.boursier-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.boursier-name {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    color: var(--color-navy-primary);
    margin-bottom: 6px;
}

.boursier-filiere {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-orange-primary);
    margin-bottom: 12px;
}

.boursier-school {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.boursier-summary {
    font-size: 0.92rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.boursier-quote {
    background: #f8fafc;
    border-left: 3px solid var(--color-orange-primary);
    padding: 12px 14px;
    font-size: 0.85rem;
    font-style: italic;
    color: #334155;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: auto;
}

/* Page Contact & Formulaire */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-card-info {
    background: var(--color-navy-primary);
    color: #ffffff;
    padding: 40px 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.contact-info-block {
    margin-bottom: 28px;
}

.contact-info-label {
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-orange-primary);
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-info-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy-primary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-main);
    background: #ffffff;
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-navy-primary);
    box-shadow: 0 0 0 3px rgba(12, 38, 64, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.alert-box {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Filtres de réalisations et boutons d'onglets */
.filters-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--color-border-light);
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-body);
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-btn:hover {
    border-color: var(--color-navy-primary);
    color: var(--color-navy-primary);
}

.filter-btn.active {
    background: var(--color-navy-primary);
    border-color: var(--color-navy-primary);
    color: #ffffff;
}

/* Administration Styling */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

.admin-sidebar {
    width: 260px;
    background: var(--color-navy-darkest);
    color: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-nav {
    padding: 20px 0;
    flex-grow: 1;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.admin-nav-item:hover, .admin-nav-item.active {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border-left: 4px solid var(--color-orange-primary);
}

.admin-content-area {
    flex-grow: 1;
    padding: 30px 40px;
    overflow-y: auto;
}

.admin-top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #cbd5e1;
}

.admin-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 24px;
}

.admin-stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--color-orange-light);
    color: var(--color-orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.kpi-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-navy-primary);
    line-height: 1;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 14px;
    background: #f8fafc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    vertical-align: middle;
}

.badge-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-publie { background: #dcfce7; color: #15803d; }
.badge-brouillon { background: #fef3c7; color: #b45309; }

/* Répartition égale des trois statistiques */
.stats-banner .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0;
}

.stats-banner .stat-item {
    width: 100%;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
}

/* Réduction de l'espace entre Capital humain et Actualités sur l'accueil */
.home-boursiers-section + .news-section {
    padding-top: 40px;
}


/* ==========================================================================
   17. SYSTÈME RESPONSIVE COMPLET & ADAPTATION MULTI-ÉCRANS
   Strict respect de la maquette originale sur ordinateur (>= 1025px).
   Adaptations précises pour :
   - Ordinateurs portables (1025px - 1366px)
   - Tablettes paysage & portrait (768px - 1024px)
   - Smartphones grands & standards (375px, 390px, 430px)
   - Smartphones compacts (320px)
   ========================================================================== */

/* --- TABLEAUX & CONTENEURS RESPONSIVES --- */
.table-responsive,
.admin-card {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    min-width: 600px;
}

/* --------------------------------------------------------------------------
   A. ÉCRANS INTERMÉDIAIRES & PORTABLES (max-width: 1100px)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .nav-menu .nav-list {
        gap: 12px;
    }
    .nav-link {
        font-size: 0.85rem;
    }
    .domaines-grid,
    .boursiers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .news-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .axes-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .admin-stats-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------------------------------
   B. TABLETTES PAYSAGE & TRANSITION MOBILE (max-width: 991px)
   Activation du menu mobile et passage en disposition tablette
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Header & Navigation mobile */
    .header-content {
        height: 70px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background-color: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 24px 30px;
        gap: 20px;
        border-bottom: 3px solid var(--color-orange-primary);
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
        z-index: 999;
    }

    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        font-size: 1rem;
        font-weight: 500;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border-subtle);
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--color-text-main);
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--color-orange-primary);
        padding-left: 6px;
    }

    .nav-link.active::after {
        display: none;
    }

    .header-cta {
        margin-top: 10px;
        width: 100%;
    }

    .header-cta .btn-header {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Top Bar */
    .top-bar-right {
        display: none;
    }

    .top-bar-content {
        justify-content: center;
        text-align: center;
    }

    /* Heroes */
    .hero-home {
        padding: 70px 0 100px;
    }

    .hero-internal {
        padding: 50px 0 60px;
    }

    .hero-title {
        font-size: 2.6rem !important;
        line-height: 1.2;
    }

    .hero-internal-title {
        font-size: 2.35rem !important;
        line-height: 1.25;
    }

    /* Section Présentation & Collage */
    .section-presentation {
        padding: 65px 0;
    }

    .presentation-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .collage-wrapper {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Réalisation à la une */
    .featured-project-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .featured-project-content {
        padding: 50px 0 40px;
    }

    .featured-project-media {
        min-height: 320px;
        max-height: 420px;
    }

    .project-showcase-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 24px;
    }

    /* Processus Bourses (correction bug colonne 92px) */
    .process-section {
        padding: 65px 0;
    }

    .process-header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .call-sim-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Domaines d'intervention */
    .domaine-detail-section {
        padding: 55px 0;
    }

    .domaine-detail-grid,
    .domaine-detail-grid.reverse {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .domaine-detail-media img {
        height: 300px;
    }

    /* Barre sticky domaines */
    div[style*="position: sticky"] {
        top: 70px !important;
    }

    /* Footer */
    .footer-main {
        padding-top: 55px;
        padding-bottom: 50px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

/* --------------------------------------------------------------------------
   C. TABLETTES PORTRAIT & GRANDS MOBILES (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Typographie */
    .section-title {
        font-size: 2rem;
    }

    .section-lead {
        font-size: 1.05rem;
    }

    /* Piliers */
    .pillars-section {
        margin-top: -30px;
        margin-bottom: 35px;
    }

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

    .pillar-card {
        border-right: none;
        border-bottom: 1px solid var(--color-border-light);
        padding: 18px 20px;
    }

    .pillar-card:last-child {
        border-bottom: none;
    }

    /* Bannière Statistiques (1 colonne claire avec séparateurs horizontaux) */
    .stats-banner {
        padding: 30px 0;
    }

    .stats-banner .stats-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .stats-banner .stat-item {
        padding: 20px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .stats-banner .stat-item:last-child {
        border-bottom: none;
    }

    .stat-item::after {
        display: none !important;
    }

    .stat-big-val {
        font-size: 2.35rem;
    }

    /* En-têtes de section avec boutons d'action */
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 30px;
    }

    .section-header-flex .btn {
        align-self: flex-start;
    }

    /* Grilles de cartes */
    .domaines-grid,
    .boursiers-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 25px;
    }

    .contact-card-info {
        padding: 32px 26px;
    }

    /* Niveaux de bourses */
    .levels-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 20px 0;
    }

    /* Appel à l'action Bottom */
    .cta-banner {
        padding: 60px 0;
    }

    .cta-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .cta-banner-title {
        font-size: 1.9rem;
    }

    .cta-banner-photo-credit {
        position: static;
        margin-top: 18px;
        text-align: right;
        display: block;
    }

    /* Admin */
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .admin-content-area {
        padding: 20px 16px;
    }

    .admin-stats-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* --------------------------------------------------------------------------
   D. SMARTPHONES STANDARDS (max-width: 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    /* Grilles d'actualités et réalisations en 1 colonne */
    .news-cards-grid,
    .axes-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card-media {
        height: 200px;
    }

    .news-card-body {
        padding: 22px 18px;
    }

    .news-card-tag {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }

    .news-card-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .boursier-body {
        padding: 20px 18px;
    }

    .boursier-photo-wrap {
        height: 220px;
    }

    .domaine-card {
        padding: 24px 20px;
    }

    .axis-card {
        padding: 24px 20px;
    }

    /* Spécifications mini */
    .specs-mini-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0;
    }

    .specs-mini-item {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding-bottom: 8px;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    }

    .specs-mini-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .specs-mini-item .spec-val {
        font-size: 1.25rem;
        margin-bottom: 0;
    }

    /* Footer 1 colonne */
    .footer-main {
        padding-top: 45px;
        padding-bottom: 35px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo img {
        width: 70px;
        height: 70px;
    }

    .footer-brand-title {
        font-size: 1.1rem;
    }

    .footer-col-title {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* --------------------------------------------------------------------------
   E. SMARTPHONES MOYENS & FORMULAIRES (max-width: 580px)
   -------------------------------------------------------------------------- */
@media (max-width: 580px) {
    /* Heroes */
    .hero-home {
        padding: 50px 0 70px;
    }

    .hero-internal {
        padding: 38px 0 46px;
    }

    .hero-title {
        font-size: 1.95rem !important;
    }

    .hero-lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-internal-title {
        font-size: 1.75rem !important;
    }

    .hero-internal-lead {
        font-size: 0.95rem;
    }

    /* Section Présentation & Collage */
    .section-presentation {
        padding: 50px 0;
    }

    .collage-wrapper {
        height: 310px;
    }

    .collage-img-main {
        width: 72%;
        height: 165px;
    }

    .collage-secondary-wrapper {
        width: 54%;
        height: 175px;
    }

    .stat-overlay-badge {
        width: 160px;
        padding: 13px 15px;
        left: -10px;
        bottom: -10px;
    }

    .stat-overlay-badge .stat-number {
        font-size: 1.95rem;
        margin-bottom: 4px;
    }

    .stat-overlay-badge .stat-label {
        font-size: 0.74rem;
        margin-bottom: 4px;
    }

    .stat-overlay-badge .stat-source {
        font-size: 0.64rem;
    }

    /* Formulaires de contact */
    .contact-form-card,
    .contact-grid > div:last-child {
        padding: 24px 18px !important;
    }

    .form-row-2col,
    .contact-grid form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .form-control {
        font-size: 16px; /* Empêche l'agrandissement indésirable sur iOS Safari */
        padding: 11px 14px;
    }

    /* Étapes processus */
    .process-steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .process-step-card {
        padding: 22px 18px;
    }

    .step-num {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .step-title {
        font-size: 1.15rem;
    }

    /* Admin */
    .admin-stats-kpi-grid {
        grid-template-columns: 1fr;
    }

    .admin-top-navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* --------------------------------------------------------------------------
   F. SMARTPHONES COMPACTS (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    /* Conteneur avec marges adaptées */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Top bar */
    .top-bar {
        font-size: 0.72rem;
        padding: 6px 0;
    }

    .top-bar-left .motto-sub {
        display: none;
    }

    /* Typographie */
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }

    .section-lead {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .eyebrow-tag {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.75rem;
    }

    /* Boutons héros et CTA */
    .hero-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .cta-banner-action {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .cta-banner-action .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .cta-banner-title {
        font-size: 1.65rem;
    }

    .cta-banner-lead {
        font-size: 0.92rem;
    }

    /* Boutons généraux */
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        max-width: 100%;
    }

    /* Filtres dynamiques */
    .filters-bar {
        gap: 6px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .filter-btn {
        padding: 7px 13px;
        font-size: 0.78rem;
    }

    /* Collage compact */
    .collage-wrapper {
        height: 290px;
    }

    .collage-img-main {
        height: 150px;
    }

    .collage-secondary-wrapper {
        height: 160px;
    }

    .stat-overlay-badge {
        width: 148px;
        padding: 11px 13px;
        left: -8px;
        bottom: -8px;
    }

    .stat-overlay-badge .stat-number {
        font-size: 1.75rem;
    }

    .stat-overlay-badge .stat-label {
        font-size: 0.7rem;
    }

    /* Bannière Chiffres clés */
    .stat-big-val {
        font-size: 2.1rem;
    }

    .stat-label-text {
        font-size: 0.85rem;
    }

    /* Réalisations détails */
    .domaine-detail-media img {
        height: 220px;
    }

    /* Page article */
    .article-body {
        font-size: 1.02rem !important;
        line-height: 1.7 !important;
    }

    .article-body .section-lead {
        font-size: 1.1rem !important;
        padding-left: 14px !important;
    }
}

/* --------------------------------------------------------------------------
   G. TRÈS PETITS SMARTPHONES (max-width: 360px - e.g. 320px iPhone SE 1ère gén.)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-title {
        font-size: 1.55rem !important;
    }

    .hero-internal-title {
        font-size: 1.45rem !important;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .stat-big-val {
        font-size: 1.85rem;
    }

    .collage-wrapper {
        height: 255px;
    }

    .collage-img-main {
        height: 135px;
    }

    .collage-secondary-wrapper {
        height: 145px;
    }

    .stat-overlay-badge {
        width: 132px;
        padding: 9px 10px;
        left: -6px;
        bottom: -6px;
    }

    .stat-overlay-badge .stat-number {
        font-size: 1.5rem;
    }

    .stat-overlay-badge .stat-label {
        font-size: 0.65rem;
    }

    .contact-card-info,
    .contact-form-card,
    .contact-grid > div:last-child {
        padding: 18px 12px !important;
    }

    .news-card-body,
    .boursier-body {
        padding: 16px 12px;
    }
}
