/* =========================================================
   ARAILD — Feuille de style principale
   Palette : Vert #0077FF · Bleu #00AEEF · Blanc · Gris clair
   ========================================================= */

:root {
    /* --- Marque --- */
    --primary: #0077FF;
    --primary-dark: #005FCC;
    --primary-light: #E6F2FF;
    --secondary: #00AEEF;
    --secondary-dark: #0089BC;
    --secondary-light: #E5F7FF;
    --navy: #0B1F3A;
    --navy-light: #16335C;
    --sky: #4DB8FF;
    --sky-light: #99D6FF;
    --sky-pale: #DFF3FF;
    /* --- Accents des cartes piliers --- */
    --accent-amber: #C2660A;
    --accent-amber-light: #F59E0B;
    --accent-sky: #0284C7;
    --accent-sky-light: #38BDF8;
    --accent-violet: #6D28D9;
    --accent-violet-light: #8B5CF6;
    /* --- États sémantiques --- */
    --success: #1E8E3E;
    --success-bg: #E6F4EA;
    --success-border: #B7DFC2;
    --error: #B42318;
    --error-bg: #FDECEC;
    --error-border: #F6C6C6;
    --warning: #B45309;
    --warning-bg: #FEF3C7;
    /* --- Alias de compatibilité (ancien vocabulaire, ne plus utiliser) --- */
    --green: var(--primary);
    --green-dark: var(--primary-dark);
    --green-light: var(--primary-light);
    --blue: var(--secondary);
    --blue-dark: var(--secondary-dark);
    --blue-light: var(--secondary-light);
    --white: #ffffff;
    --gray-50: #F7F9FA;
    --gray-100: #EEF1F3;
    --gray-200: #E2E6E9;
    --gray-400: #9AA5AC;
    --gray-600: #5B6770;
    --gray-800: #2A3238;
    --text: #22292E;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 10px rgba(20, 30, 40, 0.06);
    --shadow-md: 0 10px 30px rgba(20, 30, 40, 0.10);
    --shadow-lg: 0 20px 50px rgba(20, 30, 40, 0.16);
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 86px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .6em;
    color: var(--gray-800);
}

p { margin: 0 0 1em; }

a { color: var(--secondary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--primary); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

img { max-width: 100%; display: block; }

ul { padding-left: 1.2em; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-header p { color: var(--gray-600); font-size: 1.08rem; }

.bg-light { background: var(--gray-50); }
.bg-dark {
    background: linear-gradient(160deg, var(--navy) 0%, var(--primary) 140%);
    color: var(--white);
}
.bg-dark h2, .bg-dark h3, .bg-dark p { color: var(--white); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .96rem;
    padding: 15px 32px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); box-shadow: var(--shadow-md); }

.btn-secondary { background: var(--secondary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--secondary-dark); color: var(--white); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: var(--white); color: var(--primary-dark); }

.btn-outline-dark { background: transparent; color: var(--gray-800); border-color: var(--gray-200); }
.btn-outline-dark:hover { background: var(--gray-800); color: var(--white); border-color: var(--gray-800); }

.btn-donate { background: var(--primary); color: var(--white); }
.btn-donate:hover { background: var(--primary-dark); color: var(--white); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.02rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.0);
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
    padding: 18px 0;
}
.site-header.scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}
.site-header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; }
.site-header:not(.scrolled) .brand-fallback-text { color: var(--white); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: .95rem;
    color: var(--gray-800);
    padding: 12px 14px;
    border-radius: 8px;
}
.site-header:not(.scrolled) .nav-menu > li > a { color: var(--white); }
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--primary); }
.site-header:not(.scrolled) .nav-menu > li > a:hover,
.site-header:not(.scrolled) .nav-menu > li.active > a { color: var(--sky-light); }

.has-dropdown .dropdown {
    position: absolute;
    top: 100%; left: 0;
    min-width: 260px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    list-style: none;
    margin: 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown li a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--gray-800) !important;
    font-size: .92rem;
    font-weight: 500;
}
.dropdown li a:hover { background: var(--primary-light); color: var(--primary-dark) !important; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--gray-800); border-radius: 2px; }
.site-header:not(.scrolled) .nav-toggle span { background: var(--white); }

.lang-switch { display: flex; gap: 4px; font-family: var(--font-heading); font-weight: 600; font-size: .8rem; }
.lang-switch a { color: inherit; opacity: .6; padding: 4px; }
.lang-switch a.active { opacity: 1; color: var(--primary); }
.site-header:not(.scrolled) .lang-switch a { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/hero-bg.jpg') center/cover no-repeat, linear-gradient(135deg,var(--navy),var(--primary));
    color: var(--white);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,20,32,.75) 0%, rgba(6,30,28,.55) 45%, rgba(4,22,18,.88) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { background: rgba(255,255,255,.15); color: var(--sky-pale); backdrop-filter: blur(4px); }
.hero h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 3.8vw, 2.7rem);
    margin-bottom: .4em;
}
.hero h1 span { color: var(--sky); }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.9); max-width: 620px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 36px; }
.hero-scroll {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.8); font-size: 1.6rem; z-index: 2;
    animation: bounce 2.2s infinite;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,10px);} }

.hero-stats {
    position: relative; z-index: 2;
    display: flex; gap: 40px; margin-top: 54px; flex-wrap: wrap;
}
.hero-stats div strong { display:block; font-family: var(--font-heading); font-size: 1.9rem; color: var(--white); }
.hero-stats div span { color: rgba(255,255,255,.75); font-size: .85rem; }

/* ---------- Cartes valeurs / axes / programmes ---------- */
.grid {
    display: grid;
    gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 34px 28px;
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid var(--gray-100);
    height: 100%;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.icon-badge {
    width: 62px; height: 62px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: var(--gradient-brand);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 22px;
}

.value-card h3 { font-size: 1.15rem; }
.value-card p { color: var(--gray-600); font-size: .96rem; margin-bottom: 0; }

/* Axes d'intervention */
.axis-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 340px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-sm);
    color: var(--white);
    background-size: cover;
    background-position: center;
    transition: transform .35s ease, box-shadow .35s ease;
}
.axis-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.axis-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,20,25,.15) 0%, rgba(6,20,22,.92) 100%);
}
.axis-card .axis-body { position: relative; z-index: 2; padding: 30px; }
.axis-card .axis-number {
    font-family: var(--font-heading); font-weight: 700;
    color: var(--sky); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
}
.axis-card h3 { color: var(--white); font-size: 1.3rem; margin: 8px 0 12px; }
.axis-card .axis-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--white); font-weight: 600; font-size: .9rem;
    opacity: 0; transform: translateY(6px);
    transition: all .3s ease;
}
.axis-card:hover .axis-link { opacity: 1; transform: translateY(0); }

/* ---------- Impact / compteurs ---------- */
.impact-section { background: linear-gradient(160deg,var(--navy) 0%, var(--primary) 55%, var(--secondary) 130%); color: var(--white); position: relative; overflow: hidden; }
.impact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align: center; }
.impact-item .icon-badge { margin: 0 auto 18px; background: rgba(255,255,255,.15); }
.counter { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--white); }
.impact-item span.label { display:block; color: rgba(255,255,255,.85); font-size: .98rem; margin-top: 6px; }

/* ---------- Programmes ---------- */
.program-card { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, transform .3s ease; }
.program-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.program-card .program-img { height: 220px; background-size: cover; background-position: center; position: relative; }
.program-card .program-img .tag {
    position: absolute; top: 16px; left: 16px;
    background: var(--white); color: var(--primary);
    font-family: var(--font-heading); font-weight: 600; font-size: .78rem;
    padding: 6px 14px; border-radius: 50px;
}
.program-card .program-body { padding: 26px; }
.program-card .program-body h3 { font-size: 1.2rem; }
.program-card .program-body p { color: var(--gray-600); font-size: .95rem; }

/* ---------- Actualités / blog cards ---------- */
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s ease; display:flex; flex-direction: column; height: 100%; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.post-card .post-img { height: 200px; background-size: cover; background-position: center; position: relative; }
.post-card .post-img .category-badge {
    position: absolute; bottom: 14px; left: 14px;
    background: var(--primary); color: var(--white);
    font-size: .74rem; font-weight: 600; padding: 5px 12px; border-radius: 50px;
    font-family: var(--font-heading);
}
.post-card .post-body { padding: 24px; display:flex; flex-direction: column; flex: 1; }
.post-card .post-date { color: var(--gray-400); font-size: .82rem; margin-bottom: 10px; display:flex; align-items:center; gap:6px; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.post-card h3 a { color: var(--gray-800); }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { color: var(--gray-600); font-size: .93rem; flex: 1; }
.read-more { font-family: var(--font-heading); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 8px; color: var(--primary); }
.read-more i { transition: transform .25s ease; }
.read-more:hover i { transform: translateX(4px); }

/* ---------- Partenaires ---------- */
.partners-track { display: flex; align-items: center; gap: 60px; overflow: hidden; position: relative; }
.partners-track .track-inner { display: flex; gap: 60px; animation: scroll-left 30s linear infinite; }
.partners-track:hover .track-inner { animation-play-state: paused; }
.partners-track img { height: 56px; width: auto; filter: grayscale(1); opacity: .65; transition: all .3s ease; }
.partners-track img:hover { filter: grayscale(0); opacity: 1; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Don / CTA ---------- */
.donate-cta {
    border-radius: 28px;
    background: linear-gradient(120deg, var(--navy), var(--primary) 60%, var(--secondary) 130%);
    color: var(--white);
    padding: 70px;
    display: flex; align-items: center; gap: 50px;
    box-shadow: var(--shadow-lg);
}
.donate-cta .cta-icon { font-size: 5rem; color: rgba(255,255,255,.9); flex-shrink: 0; }
.donate-cta h2 { color: var(--white); }
.donate-cta p { color: rgba(255,255,255,.9); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: #081b16; color: rgba(255,255,255,.8); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 22px; }
.footer-brand img { height: 50px; margin-bottom: 18px; background: var(--white); border-radius: 8px; padding: 6px; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.65); }
.footer-contact li { list-style: none; display: flex; gap: 10px; margin-bottom: 14px; font-size: .92rem; color: rgba(255,255,255,.75); }
.footer-contact i { color: var(--sky); margin-top: 3px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .93rem; }
.footer-links a:hover { color: var(--sky); }
.newsletter-form { display: flex; margin-top: 6px; }
.newsletter-form input {
    flex: 1; padding: 13px 16px; border-radius: 50px 0 0 50px;
    border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: var(--white); font-size: .9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button {
    border-radius: 0 50px 50px 0; border: none; background: var(--primary);
    color: var(--white); padding: 0 22px; cursor: pointer; font-weight: 600;
}
.newsletter-form button:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-top: 18px; }
.social-icons a {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: var(--white);
    transition: all .25s ease;
}
.social-icons a:hover { background: var(--primary); transform: translateY(-4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-lang { display: flex; gap: 6px; }
.footer-lang a { font-weight: 600; }
.footer-lang a.active { color: var(--primary); }

/* ---------- Page banner (pages intérieures) ---------- */
.page-banner {
    margin-top: 0;
    padding: calc(var(--header-height) + 70px) 0 70px;
    background: linear-gradient(160deg, var(--navy), var(--primary) 130%);
    color: var(--white);
    text-align: center;
}
.page-banner h1 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.breadcrumb { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0; font-size: .88rem; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; color: rgba(255,255,255,.4); }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--gray-800); }
.form-control {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200); font-family: var(--font-body); font-size: .96rem;
    background: var(--white); transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-file { border: 2px dashed var(--gray-200); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.form-note { font-size: .82rem; color: var(--gray-400); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: .95rem; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge { display: inline-block; padding: 5px 14px; border-radius: 50px; font-size: .76rem; font-weight: 600; font-family: var(--font-heading); }
.badge-green { background: var(--primary-light); color: var(--primary-dark); }
.badge-blue { background: var(--secondary-light); color: var(--secondary-dark); }
.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--primary); color: var(--white);
    padding: 12px 20px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Table admin-friendly listing on public pages (publications) */
.filters-bar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; }
.filters-bar select, .filters-bar input[type="search"] {
    padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200); font-size: .92rem;
}
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; list-style: none; padding: 0; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    font-family: var(--font-heading); font-weight: 600; font-size: .9rem;
    color: var(--gray-800); background: var(--white); border: 1.5px solid var(--gray-200);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active span { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---------- AOS-like fallback ---------- */
[data-aos] { opacity: 0; transition-property: opacity, transform; }
[data-aos].aos-animate { opacity: 1; transform: none !important; }
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="zoom-in"] { transform: scale(.92); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .donate-cta { flex-direction: column; text-align: center; padding: 50px 30px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu, .nav-actions .btn { display: none; }
    .nav-menu.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
        background: var(--white); padding: 20px; overflow-y: auto; gap: 0;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.open > li > a { color: var(--gray-800) !important; padding: 16px 10px; border-bottom: 1px solid var(--gray-100); }
    .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr 1fr; }
    section { padding: 64px 0; }
    .donate-cta .cta-icon { font-size: 3.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .counter { font-size: 2.2rem; }
}

/* ===== Menu de navigation modernisé ===== */

/* Libellés sur une seule ligne, typo affinée */
.nav-menu { gap: 8px; }
.nav-menu > li > a {
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 10px 16px;
    border-radius: 50px;
    position: relative;
    transition: color .25s ease, background .25s ease;
}

/* Soulignement animé au survol et sur la page active */
.nav-menu > li > a::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 5px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--sky));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s ease;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after { transform: scaleX(1); }

/* Pastille translucide au survol (effet verre) */
.nav-menu > li > a:hover { background: rgba(0, 119, 255, .08); }
.site-header:not(.scrolled) .nav-menu > li > a:hover {
    background: rgba(255, 255, 255, .12);
    color: var(--white);
}
.site-header:not(.scrolled) .nav-menu > li.active > a { color: var(--sky-light); }

/* Menu déroulant raffiné */
.has-dropdown .dropdown {
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 24px 60px rgba(11, 31, 58, .16);
    padding: 8px;
}
.dropdown li a {
    border-radius: 10px;
    transition: background .2s ease, padding-left .2s ease;
}
.dropdown li a:hover { padding-left: 20px; }

/* Neutralise le style desktop dans le menu mobile ouvert */
@media (max-width: 768px) {
    .nav-menu.open > li > a { border-radius: 0; white-space: normal; }
    .nav-menu.open > li > a::after { display: none; }
}

/* ===== Cartes piliers (en-tête coloré + pastille d'icône) ===== */
.pillar-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-head { padding: 32px 24px 44px; color: var(--white); text-align: center; }
.pillar-head h3 { color: var(--white); font-size: 1.3rem; margin: 0 0 6px; }
.pillar-head p { margin: 0; font-size: .88rem; opacity: .92; }
.pillar-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin: -32px auto 0;
    box-shadow: var(--shadow-sm);
    position: relative; z-index: 2;
}
.pillar-body { padding: 16px 24px 28px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.pillar-body ul { list-style: none; margin: 0 0 18px; padding: 0; color: var(--gray-600); font-size: .94rem; flex: 1; }
.pillar-body ul li { padding: 8px 0; border-bottom: 1px dashed var(--gray-200); }
.pillar-body ul li:last-child { border-bottom: none; }
.pillar-indigo .pillar-head { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.pillar-indigo .pillar-icon { color: var(--primary); }
.pillar-amber .pillar-head { background: linear-gradient(135deg, var(--accent-amber), var(--accent-amber-light)); }
.pillar-amber .pillar-icon { color: var(--accent-amber); }
.pillar-sky .pillar-head { background: linear-gradient(135deg, var(--accent-sky), var(--accent-sky-light)); }
.pillar-sky .pillar-icon { color: var(--accent-sky); }
.pillar-night .pillar-head { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.pillar-night .pillar-icon { color: var(--navy); }
.pillar-violet .pillar-head { background: linear-gradient(135deg, var(--accent-violet), var(--accent-violet-light)); }
.pillar-violet .pillar-icon { color: var(--accent-violet); }

/* ===== Chiffres encadrés ===== */
.stat-outline { text-align: center; }
.stat-outline .num {
    display: inline-block; min-width: 108px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    padding: 8px 20px;
    font-family: var(--font-heading); font-weight: 700; font-size: 2rem;
    color: var(--primary);
    background: var(--white);
}
.stat-outline .lbl { display: block; margin-top: 12px; color: var(--gray-600); font-size: .93rem; }

/* ===== Bandeau devise ===== */
.devise-strip {
    background: var(--gradient-brand);
    border-radius: var(--radius);
    color: var(--white);
    text-align: center;
    padding: 44px 30px;
    box-shadow: var(--shadow-md);
}
.devise-strip h2 { color: var(--white); margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.devise-strip p { margin: 10px 0 0; opacity: .9; }

/* ===== Objectifs numérotés ===== */
.step-card { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
    background: var(--primary-light); color: var(--primary);
    font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
    display: flex; align-items: center; justify-content: center;
}

/* ===== Mise en page détail programme ===== */
.prog-layout { display: grid; grid-template-columns: 1fr 330px; gap: 50px; align-items: flex-start; }
.prog-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.aside-nav { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; }
.aside-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: var(--gray-800); font-weight: 500; font-size: .92rem; }
.aside-nav a:hover { background: var(--primary-light); color: var(--primary-dark); }
.aside-nav a.current { background: var(--gradient-brand); color: var(--white); }
.aside-cta { background: linear-gradient(150deg, var(--navy), var(--primary)); border-radius: var(--radius); color: var(--white); padding: 28px; text-align: center; }
.aside-cta h4 { color: var(--white); margin-bottom: 8px; }
.aside-cta p { font-size: .9rem; opacity: .85; }
@media (max-width: 992px) {
    .prog-layout { grid-template-columns: 1fr; }
    .prog-aside { position: static; }
}

/* ===== Variante compacte des cartes piliers (accueil) ===== */
.pillar-sm .pillar-head { padding: 20px 16px 34px; }
.pillar-sm .pillar-head h3 { font-size: 1.05rem; }
.pillar-sm .pillar-icon { width: 52px; height: 52px; font-size: 1.15rem; margin-top: -26px; }
.pillar-sm .pillar-body { padding: 12px 16px 22px; }

/* ===== Projet urgent (barre de progression) ===== */
.urgent-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg); background: var(--white);
}
.urgent-media { min-height: 340px; background-size: cover; background-position: center; position: relative; }
.urgent-media .badge-urgent {
    position: absolute; top: 18px; left: 18px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white); padding: 8px 16px; border-radius: 50px;
    font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.urgent-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.progress-track { background: var(--gray-100); border-radius: 50px; height: 14px; overflow: hidden; margin: 18px 0 8px; }
.progress-fill {
    height: 100%; border-radius: 50px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1s ease;
}
.progress-meta { display: flex; justify-content: space-between; font-size: .88rem; color: var(--gray-600); }
@media (max-width: 768px) { .urgent-card { grid-template-columns: 1fr; } .urgent-body { padding: 28px; } }

/* ===== Témoignage ===== */
.testimonial-card {
    max-width: 780px; margin: 0 auto; text-align: center;
    background: var(--white); border-radius: var(--radius);
    padding: 50px 44px; box-shadow: var(--shadow-md); position: relative;
}
.testimonial-card .quote-mark { font-size: 3rem; color: var(--sky); line-height: 1; }
.testimonial-card blockquote { margin: 10px 0 22px; font-size: 1.12rem; color: var(--gray-800); font-style: italic; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial-author .who strong { display: block; font-family: var(--font-heading); color: var(--primary-dark); }
.testimonial-author .who span { font-size: .85rem; color: var(--gray-600); }

/* ===== Bandeau partenaires défilants ===== */
.partners-marquee { overflow: hidden; position: relative; padding: 10px 0; }
.partners-track { display: flex; gap: 60px; align-items: center; width: max-content; animation: marquee 28s linear infinite; }
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partners-track img { height: 58px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partners-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Bandeau newsletter ===== */
.newsletter-strip {
    background: linear-gradient(120deg, var(--navy), var(--primary) 75%, var(--secondary) 130%);
    border-radius: var(--radius); color: var(--white);
    padding: 46px 40px; display: flex; align-items: center; gap: 40px;
    box-shadow: var(--shadow-lg); flex-wrap: wrap;
}
.newsletter-strip h2 { color: var(--white); margin: 0 0 6px; font-size: 1.5rem; }
.newsletter-strip p { margin: 0; opacity: .85; font-size: .95rem; }
.newsletter-strip form { display: flex; gap: 10px; flex: 1; min-width: 280px; }
.newsletter-strip input[type="email"] {
    flex: 1; border: none; border-radius: 50px; padding: 14px 22px; font-size: .95rem;
}
.newsletter-strip button {
    background: var(--white); color: var(--primary); border: none; border-radius: 50px;
    padding: 14px 26px; font-weight: 700; cursor: pointer; font-family: var(--font-heading);
}

/* ===== FAQ (accordéon) ===== */
.faq-item {
    background: var(--white); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden;
    border: 1px solid var(--gray-100);
}
.faq-item summary {
    list-style: none; cursor: pointer; padding: 20px 24px;
    font-family: var(--font-heading); font-weight: 600; color: var(--gray-800);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--primary); transition: transform .3s ease; flex-shrink: 0; }
.faq-item[open] summary { color: var(--primary-dark); }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--gray-600); line-height: 1.7; }


/* ===== États système (audit design system) ===== */
.btn:disabled, .btn.disabled, button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--error);
    background: var(--error-bg);
}
.form-group.has-error .field-error {
    color: var(--error);
    font-size: .85rem;
    margin-top: 6px;
    display: block;
}
.alert-warning, .flash-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
}

/* ===== Sélecteur de langue (interface ARAILD, moteur Google) ===== */
#translate-widget { position: relative; display: inline-block; }

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.lang-toggle:hover, .lang-toggle.is-open {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.lang-toggle .fa-globe { color: var(--primary); font-size: .95rem; }
.lang-toggle .lang-current { white-space: nowrap; }
.lang-toggle .lang-caret { font-size: .62rem; color: var(--gray-400); transition: transform .25s ease; }
.lang-toggle.is-open .lang-caret { transform: rotate(180deg); color: var(--primary); }

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1200;
    min-width: 190px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    max-height: 60vh;
    overflow-y: auto;
}
.lang-menu[hidden] { display: none; }
.lang-menu li { margin: 0; }
.lang-menu button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    font-family: var(--font-body);
    font-size: .92rem;
    color: var(--gray-800);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.lang-menu button:hover, .lang-menu button:focus-visible {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.lang-menu button.is-active {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

/* Le conteneur du moteur Google reste dans le DOM mais hors écran */
#google_translate_element {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Neutraliser la bannière, le décalage et le surlignage imposés par Google */
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate iframe,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
font[style*="background-color"] { background-color: transparent !important; box-shadow: none !important; }

@media (max-width: 992px) {
    .lang-toggle { padding: 7px 11px; font-size: .78rem; }
    .lang-toggle .lang-current { max-width: 74px; overflow: hidden; text-overflow: ellipsis; }
    .lang-menu { right: auto; left: 0; min-width: 170px; }
}

/* ===== Compacité de la barre de navigation =====
   Le menu à 6 branches + le sélecteur de langue + le bouton Don saturaient la
   barre : on resserre les libellés pour que le logo s'affiche toujours en entier. */
.site-header .navbar { gap: 12px; }
.brand { flex-shrink: 0; }
.brand img { height: 44px; }

.nav-menu { gap: 0; }
.nav-menu > li > a {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 0;
    gap: 4px;
    padding: 8px 10px;
}
.nav-menu > li > a::after { left: 10px; right: 10px; bottom: 4px; }
.nav-menu > li > a .fa-chevron-down { font-size: .58em; opacity: .75; }

.nav-actions { gap: 8px; flex-shrink: 0; }
.nav-actions .btn-sm { padding: 8px 16px; font-size: .8rem; }
.lang-toggle { padding: 7px 12px; font-size: .78rem; gap: 6px; }

/* Écrans intermédiaires : on resserre encore avant le passage en menu mobile */
@media (max-width: 1280px) {
    .nav-menu > li > a { font-size: .76rem; padding: 8px 7px; }
    .nav-menu > li > a::after { left: 7px; right: 7px; }
    .lang-toggle .lang-current { display: none; }   /* globe seul : le menu reste complet */
    .lang-toggle { padding: 8px 10px; gap: 5px; }
    .nav-actions .btn-sm { padding: 8px 13px; font-size: .78rem; }
    .brand img { height: 40px; }
}
