/* ==========================================================================
   PED-AFRIQUE : feuille de style du site public
   ========================================================================== */

:root {
    --brand: #0b6cf0;
    --brand-dark: #0753bd;
    --brand-light: #19b4ff;
    --navy: #072a5e;
    --navy-deep: #051c40;
    --ink: #0f1f38;
    --text: #4a5870;
    --muted: #7d8aa0;
    --surface: #f3f7fd;
    --line: #e2e9f3;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 14px rgba(9, 35, 84, .06);
    --shadow: 0 18px 40px -18px rgba(9, 35, 84, .28);
    --header-h: 96px;
    --font-head: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-primary: #0b6cf0;
    --bs-primary-rgb: 11, 108, 240;
    --bs-link-color: #0b6cf0;
    --bs-link-hover-color: #0753bd;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { font-variant-numeric: lining-nums;
    font-family: var(--font-body);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); font-weight: 800; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
::selection { background: var(--brand); color: #fff; }
.text-brand { color: var(--brand) !important; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 3000;
    padding: .6rem 1rem;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

:focus-visible { outline: 3px solid rgba(25, 180, 255, .55); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn { font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: all .25s ease; }
.btn-pill { border-radius: 999px; padding: .72rem 1.6rem; }
.btn-lg.btn-pill { padding: .95rem 2rem; font-size: 1.02rem; }
.btn-brand {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(11, 108, 240, .65);
}
.btn-brand:hover, .btn-brand:focus-visible { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn .bi-arrow-right { transition: transform .25s ease; }
.btn:hover .bi-arrow-right { transform: translateX(3px); }
.btn-light { color: var(--brand); }
.btn-light:hover { color: var(--brand-dark); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .95rem; color: var(--brand); }
.link-arrow .bi { transition: transform .25s ease; }
.link-arrow:hover .bi-arrow-right { transform: translateX(4px); }

/* ---------- En-tete ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px -14px rgba(9, 35, 84, .25); border-color: var(--line); }
.site-header .navbar { min-height: var(--header-h); padding: .6rem 0; }

.brand { display: inline-flex; align-items: center; gap: 1rem; color: var(--brand); }
.brand:hover { color: var(--brand); }
.brand__mark { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; }
.brand__divider { width: 2px; height: 42px; background: var(--brand); border-radius: 2px; opacity: .85; }
.brand__name { white-space: nowrap; font-family: var(--font-head); font-weight: 800; font-size: 1.85rem; letter-spacing: .01em; line-height: 1; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__divider { background: rgba(255, 255, 255, .5); }
.brand--light .brand__mark { width: 50px; height: 50px; }
.brand--light .brand__name { font-size: 1.5rem; }

.site-header .nav-link {
    white-space: nowrap;
    position: relative;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ink);
    padding: .5rem .95rem !important;
}
.site-header .nav-link::after {
    content: "";
    position: absolute;
    left: .95rem;
    right: .95rem;
    bottom: -.15rem;
    height: 3px;
    border-radius: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.site-header .nav-link:hover { color: var(--brand); }
.site-header .nav-link.is-active { color: var(--brand); }
.site-header .nav-link.is-active::after,
.site-header .nav-link:hover::after { transform: scaleX(1); }
.nav-cta { white-space: nowrap; margin-left: 1.6rem; padding: .8rem 1.7rem; font-family: var(--font-head); font-weight: 700; }
.nav-cta.is-current { background: var(--brand-dark); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle:not(.collapsed) span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:not(.collapsed) span:nth-child(2) { opacity: 0; }
.nav-toggle:not(.collapsed) span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199.98px) {
    :root { --header-h: 78px; }
    .nav-toggle { display: inline-flex; }
    .brand__mark { width: 46px; height: 46px; }
    .brand__divider { height: 32px; }
    .brand__name { font-size: 1.4rem; }
    .navbar-collapse { padding: 1rem 0 1.2rem; }
    .site-header .nav-link { padding: .75rem .2rem !important; border-bottom: 1px solid var(--line); }
    .site-header .nav-link::after { display: none; }
    .nav-cta { margin: 1.1rem 0 0; width: 100%; }
}

/* ---------- Vague decorative ---------- */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; pointer-events: none; }
.wave svg { width: 100%; height: clamp(54px, 8vw, 120px); display: block; }
.wave__a { fill: var(--brand-light); opacity: .9; }
.wave__b { fill: var(--brand); }
.wave__c { fill: #fff; }

/* ---------- Bandeau d'accueil ---------- */
.hero {
    position: relative;
    height: clamp(560px, calc(100vh - var(--header-h)), 780px);
    overflow: hidden;
    background: var(--navy);
    color: #fff;
}
.hero__slide { position: relative; height: 100%; }
.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 32, 82, .95) 0%, rgba(7, 52, 128, .82) 30%, rgba(10, 78, 180, .42) 58%, rgba(10, 78, 180, .08) 85%),
        linear-gradient(0deg, rgba(5, 28, 64, .35), transparent 40%);
}
.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 5rem;
}
.hero__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.4rem, 5.6vw, 4.9rem);
    line-height: 1.04;
    letter-spacing: -.01em;
    color: #fff;
    max-width: 22ch;
    margin: 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .18);
}
.hero__title span { display: block; color: var(--brand-light); }
.hero__bar { display: block; width: 86px; height: 4px; border-radius: 4px; background: var(--brand-light); margin: 1.7rem 0 1.5rem; }
.hero__text { max-width: 34rem; font-size: clamp(1.02rem, 1.4vw, 1.22rem); line-height: 1.6; color: rgba(255, 255, 255, .92); margin-bottom: 2.2rem; }
.hero .carousel-item { transition: opacity .9s ease; }
.hero__dots { z-index: 5; margin-bottom: clamp(70px, 9vw, 130px); justify-content: flex-start; margin-left: max(1rem, calc((100vw - 1296px) / 2 + .75rem)); margin-right: 0; }
.hero__dots [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .55); }
.hero__dots .active { background: var(--brand-light); }

.carousel-item:not(.active) .hero__title,
.carousel-item:not(.active) .hero__text { opacity: 0; }
.carousel-item.active .hero__title { animation: rise-soft .8s .15s backwards; }
.carousel-item.active .hero__bar { animation: rise-soft .7s .45s backwards; }
.carousel-item.active .hero__text { animation: rise-soft .8s .35s backwards; }
.carousel-item.active .btn { animation: rise-soft .8s .55s backwards; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { transform: translateY(24px); } to { transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Bandeau des pages interieures ---------- */
.page-banner {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(6rem, 10vw, 8.5rem);
    background: linear-gradient(120deg, var(--navy-deep), var(--brand-dark));
    color: #fff;
}
.page-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(5, 32, 82, .94) 0%, rgba(7, 52, 128, .8) 45%, rgba(10, 78, 180, .45) 100%);
}
.page-banner__inner { position: relative; z-index: 2; }
.page-banner__kicker { display: inline-block; color: var(--brand-light); font-weight: 700; font-family: var(--font-head); letter-spacing: .01em; font-size: 1.02rem; margin-bottom: .6rem; }
.page-banner__title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; max-width: 22ch; margin-bottom: 1.2rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: rgba(255, 255, 255, .5); }
.crumbs a { color: #fff; font-weight: 600; }
.crumbs a:hover { color: var(--brand-light); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--surface); }
.section--tint + .section--tint { padding-top: 0; }
.section-head { margin-bottom: 3rem; max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    color: var(--brand);
    margin-bottom: .8rem;
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--brand-light); }
.section-head--center .kicker::after { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--brand-light); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.18; margin-bottom: 1rem; }
.section-text { font-size: 1.08rem; margin: 0; }
.lead-text { font-size: 1.15rem; line-height: 1.75; color: var(--ink); font-weight: 500; margin-bottom: 1.5rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .bi { font-size: 2.6rem; color: var(--brand-light); display: block; margin-bottom: .6rem; }

/* ---------- Chiffres cles ---------- */
.stats-band { position: relative; z-index: 5; margin-top: -3.5rem; }
.stats-band--flat { margin-top: 0; padding: 0 0 clamp(4rem, 8vw, 6rem); }
.section--tint + .stats-band--flat { background: linear-gradient(var(--surface) 50%, #fff 50%); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    overflow: hidden;
}
.stat { display: flex; align-items: center; gap: 1rem; padding: 1.7rem 1.6rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(11, 108, 240, .09); color: var(--brand); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.stat__value { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1.05; color: var(--ink); }
.stat__label { display: block; font-size: .93rem; color: var(--muted); font-weight: 600; }
@media (max-width: 575.98px) { .stat + .stat { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Presentation ---------- */
.about-visual { position: relative; padding: 0 2.5rem 2.5rem 0; }
.about-visual__main { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-visual__second {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    border: 6px solid #fff;
    box-shadow: var(--shadow);
}
.about-visual__badge {
    position: absolute;
    left: -1rem;
    bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    max-width: 250px;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 16px 30px -14px rgba(11, 108, 240, .8);
}
.about-visual__badge .bi { font-size: 1.7rem; color: var(--brand-light); }
@media (max-width: 575.98px) { .about-visual { padding: 0 1.2rem 1.2rem 0; } .about-visual__badge { left: .5rem; } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list--2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.check-list li { display: flex; gap: .6rem; color: var(--ink); font-weight: 600; line-height: 1.45; }
.check-list .bi { color: var(--brand); margin-top: .1rem; }

.framed-image { position: relative; }
.framed-image::before {
    content: "";
    position: absolute;
    inset: 1.4rem -1.4rem -1.4rem 1.4rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    opacity: .16;
    z-index: 0;
}
.framed-image img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3.2; box-shadow: var(--shadow); }

/* ---------- Cartes ---------- */
.card-domain, .card-project, .card-news {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.card-domain:hover, .card-project:hover, .card-news:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-domain__media, .card-project__media, .card-news__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10.5; background: var(--surface); }
.card-domain__media img, .card-project__media img, .card-news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card-domain:hover img, .card-project:hover img, .card-news:hover img { transform: scale(1.06); }

.card-domain__icon {
    position: relative;
    z-index: 2;
    margin: -26px 1.4rem -26px auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px -8px rgba(11, 108, 240, .8);
}
.card-domain__body, .card-project__body, .card-news__body { padding: 1.6rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card-domain__title, .card-project__title, .card-news__title { font-size: 1.22rem; line-height: 1.35; margin-bottom: .8rem; }
.card-domain__title a, .card-project__title a, .card-news__title a { color: var(--ink); }
.card-domain__title a:hover, .card-project__title a:hover, .card-news__title a:hover { color: var(--brand); }
.card-domain p, .card-news__text { font-size: .97rem; margin-bottom: 1.2rem; }
.card-domain .link-arrow, .card-project .link-arrow, .card-news .link-arrow { margin-top: auto; }
.card-project__title { font-size: 1.08rem; font-weight: 700; }

.badge-status {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    background: #fff;
    color: var(--ink);
}
.badge-status--en_cours { background: var(--brand-light); color: #fff; }

.meta-list { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .86rem; color: var(--muted); font-weight: 600; }
.meta-list li { display: inline-flex; align-items: center; gap: .35rem; }
.meta-list .bi { color: var(--brand); }
.meta-list--lg { font-size: .95rem; margin-bottom: 0; }

.card-news__meta { display: flex; align-items: center; gap: .7rem; font-size: .86rem; color: var(--muted); font-weight: 600; margin-bottom: .7rem; }
.tag { display: inline-block; padding: .15rem .7rem; border-radius: 999px; background: rgba(11, 108, 240, .09); color: var(--brand); font-size: .78rem; font-weight: 700; }

/* ---------- Appel au don ---------- */
.cta-band { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.section--tint + .cta-band { background: linear-gradient(var(--surface) 50%, #fff 50%); }
.cta-band__inner {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 3.6rem);
    border-radius: 26px;
    background: linear-gradient(120deg, var(--navy) 0%, var(--brand) 70%, var(--brand-light) 130%);
    color: #fff;
}
.cta-band__inner::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .07);
}
.cta-band__inner > * { position: relative; z-index: 1; }
.cta-band__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .5rem; }
.cta-band__text { margin: 0; max-width: 40rem; color: rgba(255, 255, 255, .88); }

/* ---------- Temoignages ---------- */
.slider-controls { display: flex; gap: .6rem; }
.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--brand);
    background: #fff;
    color: var(--brand);
    display: grid;
    place-items: center;
    transition: all .2s ease;
}
.slider-btn:hover { background: var(--brand); color: #fff; }
.slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 1.5rem) / 2);
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: .5rem;
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; }
@media (max-width: 767.98px) { .slider { grid-auto-columns: 88%; } }

.testimonial {
    position: relative;
    margin: 0;
    padding: 2.2rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.testimonial__quote { font-size: 3rem; line-height: 1; color: var(--brand-light); opacity: .8; }
.testimonial__text { margin: .5rem 0 1.6rem; color: var(--ink); font-size: 1.02rem; line-height: 1.75; }
.testimonial__author { margin-top: auto; display: flex; align-items: center; gap: .9rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.testimonial__author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(11, 108, 240, .15); }
.testimonial__author strong { display: block; color: var(--ink); font-family: var(--font-head); }
.testimonial__author small { color: var(--muted); font-weight: 600; }

/* ---------- Accordeon ---------- */
.accordion-brand { --bs-accordion-border-color: var(--line); --bs-accordion-active-bg: #fff; --bs-accordion-active-color: var(--brand); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(11, 108, 240, .15); }
.accordion-brand .accordion-item { border-radius: var(--radius-sm) !important; margin-bottom: .9rem; overflow: hidden; border: 1px solid var(--line); }
.accordion-brand .accordion-button { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--ink); padding: 1.15rem 1.3rem; }
.accordion-brand .accordion-button:not(.collapsed) { box-shadow: inset 0 -1px 0 var(--line); color: var(--brand); }
.accordion-brand .accordion-body { padding: 1.2rem 1.3rem; }

/* ---------- Partenaires ---------- */
.partners { padding: 3rem 0 4rem; border-top: 1px solid var(--line); }
.partners__title { text-align: center; font-size: 1.1rem; letter-spacing: 0; color: var(--muted); font-weight: 700; margin-bottom: 1.8rem; }
.partners__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.partners__list li > *, .partners__list li > a > * { display: flex; }
.partners__list span {
    align-items: center;
    padding: .9rem 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: .02em;
}
.partners__list img { height: 56px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .3s ease; }
.partners__list a:hover img { filter: none; opacity: 1; }

/* ---------- Pages detail ---------- */
.article-cover { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-head { margin-bottom: 1.6rem; }
.article-title { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; margin-bottom: 1rem; }
.article-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.article-foot a:not(.link-arrow) { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--brand); }
.article-foot a:not(.link-arrow):hover { background: var(--brand); color: #fff; }

.side-card { padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; margin-bottom: 1.5rem; }
.side-card__title { font-size: 1.2rem; margin-bottom: 1.1rem; }
.side-card--brand { background: linear-gradient(135deg, var(--navy), var(--brand)); color: rgba(255, 255, 255, .9); border: 0; }
.side-card--brand .side-card__title { color: #fff; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links a { display: flex; align-items: center; gap: .7rem; padding: .75rem 0; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--brand); }
.side-links .bi { color: var(--brand); }
.facts { margin: 0; display: grid; gap: 1rem; }
.facts dt { font-size: .86rem; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.facts dd { margin: .15rem 0 0; color: var(--ink); font-weight: 600; }

.pillar { height: 100%; padding: 2.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pillar__icon { width: 58px; height: 58px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.2rem; }
.pillar__title { font-size: 1.45rem; }
.objective { height: 100%; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); display: flex; gap: 1rem; align-items: flex-start; transition: border-color .25s ease, box-shadow .25s ease; }
.objective:hover { border-color: var(--brand-light); box-shadow: var(--shadow-sm); }
.objective__num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--brand-light); line-height: 1; }
.objective__text { margin: 0; color: var(--ink); font-weight: 600; }
.note-card { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius-sm); background: var(--surface); border-left: 4px solid var(--brand); }
.note-card > .bi { font-size: 1.6rem; color: var(--brand); }
.note-card__title { font-size: 1.05rem; margin-bottom: .4rem; }


.pager .page-link { border: 0; margin: 0 .2rem; border-radius: 10px !important; color: var(--ink); font-weight: 600; min-width: 42px; text-align: center; }
.pager .page-item.active .page-link { background: var(--brand); color: #fff; }
.pager .page-link:hover { background: var(--surface); color: var(--brand); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-list strong { display: block; color: var(--ink); font-family: var(--font-head); }
.contact-list span, .contact-list a { display: block; }
.form-card { padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card__title { font-size: 1.5rem; margin-bottom: .3rem; }
.form-card__hint { font-size: .9rem; color: var(--muted); margin-bottom: 1.4rem; }
.form-label { font-weight: 600; color: var(--ink); font-size: .93rem; }
.form-control, .form-select { border-radius: 12px; border: 1.5px solid var(--line); padding: .75rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(11, 108, 240, .14); }
.form-legal { font-size: .84rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.security-question { padding: 1rem 1.2rem; border-radius: 12px; background: #fff8e6; border: 1px solid #f6dc9d; }
.security-question .form-label { color: #7a5600; }
.form-success { text-align: center; padding: 2rem 1rem; }
.form-success__icon { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
.map-block { line-height: 0; }
.map-block iframe { width: 100%; height: 440px; border: 0; filter: saturate(.85); }

/* ---------- Don ---------- */
.bank-card { padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: 22px; color: #fff; background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 40%, var(--brand) 120%); box-shadow: var(--shadow); }
.bank-card__head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.6rem; }
.bank-card__icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 1.6rem; color: var(--brand-light); }
.bank-card__title { color: #fff; font-size: 1.45rem; margin: 0; }
.bank-card__sub { margin: 0; color: rgba(255, 255, 255, .7); font-size: .92rem; }
.bank-card__list { margin: 0 0 1.4rem; }
.bank-card__list > div { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.bank-card__list dt { font-size: .85rem; letter-spacing: 0; color: rgba(255, 255, 255, .6); font-weight: 700; }
.bank-card__list dd { margin: .15rem 0 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: 1.04rem; word-break: break-word; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font-size: .8rem; font-weight: 600; flex-shrink: 0; transition: all .2s ease; }
.copy-btn:hover { background: #fff; color: var(--navy); }
.copy-btn.is-done { background: var(--brand-light); border-color: var(--brand-light); color: #fff; }
.bank-card__note { display: flex; gap: .6rem; padding: 1rem; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: .93rem; color: rgba(255, 255, 255, .88); }
.bank-card__note .bi { color: var(--brand-light); }
.step { height: 100%; padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step__num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; }
.step__title { font-size: 1.15rem; }
.step p { margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: var(--navy-deep); color: rgba(255, 255, 255, .72); padding-top: 5rem; margin-top: 2rem; }
.site-footer__wave { position: absolute; left: 0; right: 0; top: -1px; line-height: 0; transform: rotate(180deg); }
.site-footer__wave svg { width: 100%; height: 60px; display: block; }
.site-footer__wave path { fill: #fff; }
.site-footer__about { margin: 1.3rem 0; font-size: .95rem; }
.site-footer__title { color: #fff; font-size: 1.1rem; margin-bottom: 1.2rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer__links a, .site-footer__contact a { color: rgba(255, 255, 255, .72); }
.site-footer__links a:hover, .site-footer__contact a:hover { color: var(--brand-light); }
.site-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; font-size: .95rem; }
.site-footer__contact li { display: flex; gap: .7rem; }
.site-footer__contact .bi { color: var(--brand-light); }
.site-footer__bottom { margin-top: 3.5rem; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.site-footer__bottom a { color: var(--brand-light); }
.socials { display: flex; gap: .55rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: all .2s ease; }
.socials a:hover { background: var(--brand); color: #fff; }

.back-to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 1040;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 24px -10px rgba(11, 108, 240, .8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--brand-dark); color: #fff; }

/* ---------- Pages d'erreur ---------- */
.error-page { padding: clamp(5rem, 12vw, 9rem) 0; }
.error-body { min-height: 100vh; display: grid; place-items: center; background: var(--surface); }
.error-page__code { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; background: linear-gradient(135deg, var(--brand), var(--brand-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page__title { font-size: 2rem; }
.error-page__text { color: var(--muted); margin-bottom: 2rem; }

/* ---------- Apparition au defilement ---------- */
/* Visible par defaut : seuls les blocs encore hors de l'ecran au chargement sont masques
   puis reveles (aucun clignotement sur ce qui est deja affiche). */
[data-reveal].reveal-pending { opacity: 0; transform: translateY(26px); }
[data-reveal].reveal-armed { transition: opacity .7s ease, transform .7s ease; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal].reveal-pending { opacity: 1; transform: none; }
    [data-reveal].reveal-armed { transition: none; }
    .carousel-item.active .hero__title, .carousel-item.active .hero__text, .carousel-item.active .btn, .carousel-item.active .hero__bar { animation: none; }
}

/* Chiffres alignes avec la police Raleway */
h1, h2, h3, h4, h5, h6, .brand__name, .stat__value, .step__num, .objective__num, .error-page__code { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
#haut:focus { outline: none; }
