/********** Thème PANMCI, basé sur le template Charitize (HTML Codex), couleurs bleu / marine / doré **********/
:root {
    /* Palette inspirée de l'Hôpital Mère-Enfant de Bingerville : bleu dominant, marine, doré en accent */
    --bs-primary: #5AA3E6;      /* bleu dominant : menu, aplats, filets */
    --bs-secondary: #245A8A;    /* bleu marine : barre du haut, boutons secondaires */
    --bs-light: #EAF4FD;        /* bleu très pâle : fonds */
    --bs-dark: #13314F;         /* marine foncé : titres, pied de page */
    --bs-white: #FFFFFF;
    --bs-tertiary: #4E6178;     /* texte courant */
    --accent: #DCA544;          /* doré : boutons d'action */
    --accent-hover: #C8912F;
    --primary-ink: #2C7CC6;     /* bleu lisible sur fond blanc */
    --primary-hover: #3F8FD8;
    --secondary-hover: #1B4870;
    --line: #D5E5F4;
    --danger: #B4341F;
    --f-head: "Josefin Sans", "Trebuchet MS", sans-serif;
    --f-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    font-family: var(--f-body);
    color: var(--bs-tertiary);
    background: var(--bs-white);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-1, .display-3, .display-5, .display-6 {
    font-family: var(--f-head);
    font-weight: 700;
    color: var(--bs-dark);
}

a { color: var(--bs-secondary); }
a:hover { color: var(--bs-primary); }
a.h3, a.h4 { text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }

/*** Couleurs Bootstrap du template ***/
.bg-primary { background-color: var(--bs-primary) !important; }
.bg-secondary { background-color: var(--bs-secondary) !important; }
.bg-light { background-color: var(--bs-light) !important; }
.bg-dark { background-color: var(--bs-dark) !important; }
.text-primary { color: var(--primary-ink) !important; }
.text-secondary { color: var(--bs-secondary) !important; }
.text-dark { color: var(--bs-dark) !important; }
.text-light { color: var(--bs-light) !important; }
.text-tertiary { color: var(--bs-tertiary) !important; }

.btn { transition: .5s; border-radius: 0; font-family: var(--f-head); font-weight: 600; }
.btn-primary, .btn-primary:disabled { color: #fff; background-color: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { color: #fff; background-color: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary, .btn-secondary:disabled { color: #fff; background-color: var(--bs-secondary); border-color: var(--bs-secondary); }
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active { color: #fff; background-color: var(--secondary-hover); border-color: var(--secondary-hover); }
.btn-dark { color: #fff; background-color: var(--bs-dark); border-color: var(--bs-dark); }
.btn-dark:hover { color: var(--bs-dark); background-color: var(--bs-white); border-color: var(--bs-white); }
.btn-outline-secondary { color: var(--bs-secondary); border-color: var(--bs-secondary); }
.btn-outline-secondary:hover { color: #fff; background-color: var(--bs-secondary); border-color: var(--bs-secondary); }
.btn-light { color: var(--bs-dark); background-color: var(--bs-white); border-color: var(--bs-white); }

/* Remplace la texture "bg.jpg" du template */
.texture {
    background-color: var(--bs-light);
    background-image: radial-gradient(rgba(36, 90, 138, .08) 1px, transparent 1px);
    background-size: 18px 18px;
}

.fw-medium { font-weight: 600 !important; }

.back-to-top {
    position: fixed !important; right: 28px; bottom: 28px; z-index: 1040;
    width: 52px; height: 52px; border-radius: 50% !important; padding: 0;
    display: grid !important; place-items: center; font-size: 1.3rem; color: #fff !important;
    background: var(--accent) !important; border: 3px solid #fff !important;
    box-shadow: 0 10px 24px -8px rgba(19, 49, 79, .55);
    transition: transform .3s ease, background .3s ease, opacity .3s ease;
}
.back-to-top:hover { transform: translateY(-4px); background: var(--bs-secondary) !important; }
.back-to-top::after { content: none !important; }
@media (max-width: 575.98px) { .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; } }

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0; display: flex; align-items: center; justify-content: center; font-weight: normal; flex-shrink: 0;
}

/*** Top Bar ***/
.top-bar { min-height: 90px; padding: 16px 90px; display: flex; align-items: center; }
.top-bar h6 { letter-spacing: 1px; }
.top-bar a { text-decoration: none; }
.brand-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo .name { font-family: var(--f-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: #fff; }
.top-bar .text-primary { color: var(--accent) !important; }
.top-bar .btn-square.bg-primary { background: var(--accent) !important; }
.top-bar .btn-square i { color: #fff !important; }
.brand-logo .sub { display: block; color: rgba(255,255,255,.75); font-size: .8rem; line-height: 1.25; max-width: 24ch; }

/*** Nav Bar ***/
.nav-bar { padding: 0 90px; transition: .5s; }
.navbar .navbar-nav .nav-link {
    margin-right: 30px; padding: 20px 0; color: #fff; font-size: 18px; outline: none;
    font-family: var(--f-head); font-weight: 600;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.router-link-active:not(.home-link),
.navbar .navbar-nav .nav-link.router-link-exact-active { color: var(--bs-dark); }
.navbar .navbar-toggler { border-color: #fff; color: #fff; }
.navbar h4 { color: #fff; }
.navbar .btn-dark { background: var(--accent); border-color: var(--accent); }
.navbar .btn-dark:hover { background: #fff; border-color: #fff; color: var(--bs-dark); }
.navbar .navbar-toggler:focus { box-shadow: none; }

@media (max-width: 1199.98px) {
    .top-bar { padding: 16px 24px; }
    .nav-bar { padding: 0 24px; }
    .navbar .navbar-nav .nav-link { margin-right: 18px; font-size: 16px; }
}
@media (max-width: 991.98px) {
    .top-bar { padding: 16px; justify-content: center; }
    .brand-logo { justify-content: center; }
    .brand-logo .name { font-size: 2.1rem; }
    .navbar .navbar-nav .nav-link { margin-right: 0; padding: 10px 0; }
    .navbar .navbar-nav { margin-top: 20px; border-top: 1px solid var(--bs-white); }
    .nav-bar { padding: 0; }
}

/*** Header (hero) ***/
.header-carousel { position: relative; }
.header-carousel h1.display-1 { text-transform: uppercase; font-size: calc(1.6rem + 2vw); line-height: 1.05; text-wrap: balance; }
@media (min-width: 1200px) { .header-carousel h1.display-1 { font-size: 3.4rem; } }
.hero-img { position: relative; }
.hero-fiche { position: relative; margin: -110px 0 0 64px; }
@media (max-width: 575.98px) { .hero-fiche { margin: -40px 12px 0; } }
.hero-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--bs-tertiary); }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { font-size: 18px; color: var(--primary-ink); text-decoration: none; }
.page-header .breadcrumb-item.active { color: var(--bs-dark); }
.page-header h1 { text-transform: uppercase; }
.page-header.has-img { background-size: cover; background-position: center; }
.page-header.has-img h1, .page-header.has-img p, .page-header.has-img .breadcrumb-item.active { color: #fff; }
.page-header.has-img .breadcrumb-item a, .page-header.has-img .breadcrumb-item + .breadcrumb-item::before { color: var(--accent); }
.brand-img { width: auto; max-width: 260px; object-fit: contain; display: block; }

/*** Bande téléphone (remplace la vidéo) ***/
.btn-call {
    position: relative; width: 64px; height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: var(--bs-dark); color: var(--bs-white); font-size: 24px; text-decoration: none;
}
.btn-call::before {
    content: ""; position: absolute; inset: 0; background: var(--bs-dark);
    animation: pulse-border 1500ms ease-out infinite; z-index: -1;
}
.btn-call:hover { color: var(--bs-primary); }
@keyframes pulse-border { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.call-band { position: relative; z-index: 0; }

/*** Section Title ***/
.section-title { position: relative; display: inline-block; text-transform: uppercase; font-family: var(--f-head); font-weight: 600; }
.section-title::before {
    position: absolute; content: ""; width: calc(100% + 80px); height: 0; top: 5px; left: -40px;
    border-top: 2px solid var(--bs-primary); z-index: -1;
}
.section-title::after {
    position: absolute; content: ""; width: calc(100% + 120px); height: 0; bottom: 6px; left: -60px;
    border-bottom: 2px solid var(--bs-primary); z-index: -1;
}
.section-title.text-start::before { width: calc(100% + 40px); left: 0; }
.section-title.text-start::after { width: calc(100% + 60px); left: 0; }
.section-wrap { position: relative; z-index: 0; overflow: hidden; }

/*** About ***/
.about-img { position: relative; }
.about-img::before, .about-img::after { position: absolute; content: ""; width: 33%; height: 90px; background: var(--bs-white); }
.about-img::before { top: 0; left: 0; }
.about-img::after { right: 0; bottom: 0; }
.about-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.img-placeholder {
    width: 100%; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; color: var(--bs-white); background: var(--bs-secondary); text-align: center; padding: 24px;
}
.img-placeholder i { font-size: 4.5rem; color: var(--bs-primary); }
.img-placeholder span { font-family: var(--f-head); font-size: 1.5rem; font-weight: 700; }
.hero-img .img-placeholder { aspect-ratio: 4 / 3; }

/*** Service ***/
.service-title { height: 100%; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.service-item { overflow: hidden; }
.service-item .btn-square { width: 65px; height: 65px; }
.service-item a.more {
    position: relative; padding: 0; font-size: 14px; line-height: 14px; text-transform: uppercase; transition: .5s;
    text-decoration: none; font-family: var(--f-head); font-weight: 600;
}
.service-item a.more::after {
    position: absolute; content: ""; width: 500%; height: 0; left: 100%; bottom: 3px; margin-left: 10px;
    border-bottom: 2px solid var(--accent);
}

/*** Cartes (missions, actualités, équipe) ***/
.donation-item, .event-item, .team-item, .news-item { box-shadow: 0 0 30px rgba(0, 0, 0, .05); transition: .5s; background: #fff; }
.donation-item:hover, .event-item:hover, .team-item:hover, .news-item:hover { box-shadow: 0 0 30px rgba(0, 0, 0, .1); }
.donation-item .donation-progress { width: 80px; }
.donation-item .progress { background: var(--bs-light); border-radius: 0; }
.donation-item .progress .progress-bar { overflow: visible; transition: 1s; color: #fff; }
.event-cover {
    position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
    background: var(--bs-secondary); color: var(--bs-primary); font-size: 3rem;
}
.event-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-cover .badge-tag { position: absolute; top: 0; right: 0; }
.event-cover .phase { position: absolute; left: 0; bottom: 0; background: var(--accent); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 1rem; padding: 6px 14px; }
.event-item .h3, .news-item .h4 { color: var(--bs-dark); }
.event-item .h3:hover, .news-item .h4:hover { color: var(--bs-secondary); }
.news-item time { color: var(--bs-secondary); font-weight: 600; font-size: .95rem; }

.team-item .team-detail span { letter-spacing: 2px; text-transform: uppercase; font-size: .85rem; }
.avatar {
    width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    background: var(--bs-light); color: var(--bs-secondary); font-family: var(--f-head); font-weight: 700; font-size: 3.5rem;
}
.team-social { min-width: 86px; }

/*** Banner / Donate ***/
.banner .banner-inner, .donate .donate-text { position: relative; }
.banner .banner-inner::before, .banner .banner-inner::after,
.donate .donate-text::before, .donate .donate-text::after { position: absolute; content: ""; width: 0; height: 0; }
.banner .banner-inner::before, .donate .donate-text::before { top: 0; left: 0; border-top: 150px solid var(--accent); border-right: 150px solid transparent; }
.banner .banner-inner::after, .donate .donate-text::after { right: 0; bottom: 0; border-bottom: 150px solid var(--bs-primary); border-left: 150px solid transparent; }
.banner .banner-inner > *, .donate .donate-text > * { position: relative; z-index: 1; }
@media (max-width: 575.98px) {
    .banner .banner-inner::before, .donate .donate-text::before { border-top-width: 70px; border-right-width: 70px; }
    .banner .banner-inner::after, .donate .donate-text::after { border-bottom-width: 70px; border-left-width: 70px; }
}

/*** Fiche mission (carte d'admission) ***/
.fiche { background: #fff; box-shadow: 0 0 30px rgba(0, 0, 0, .08); padding: 30px; position: relative; border-top: 6px solid var(--bs-primary); }
.fiche-kicker { color: var(--bs-secondary); font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; margin-bottom: 6px; }
.fiche h2 { font-size: 1.6rem; margin-bottom: 16px; }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; }
.fiche dt { font-weight: 400; color: var(--bs-tertiary); }
.fiche dt i { color: var(--primary-ink); width: 18px; }
.fiche dd { margin: 0; font-weight: 600; color: var(--bs-dark); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; list-style: none; }
.tags li { background: var(--bs-light); color: var(--bs-secondary); padding: 3px 11px; font-size: .86rem; font-weight: 600; }

/*** Facts ***/
.fact-tile h1 { font-size: 3rem; }

/*** Frise ***/
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 170px; top: 8px; bottom: 8px; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 0 36px; padding: 0 0 30px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 163px; top: 6px; width: 16px; height: 16px; background: var(--bs-primary); }
.tl-when { font-family: var(--f-head); font-weight: 700; color: var(--bs-dark); padding-right: 24px; text-align: right; }
.tl-when small { display: block; font-family: var(--f-body); font-weight: 400; color: var(--bs-tertiary); }
@media (max-width: 640px) {
    .timeline::before { left: 7px; }
    .timeline li { grid-template-columns: 1fr; padding-left: 34px; }
    .timeline li::before { left: 0; }
    .tl-when { text-align: left; padding: 0 0 4px; }
}

/*** Footer ***/
.footer { color: #B8C9DB; background: var(--bs-dark); }
.footer h4 { color: var(--bs-light); }
.footer a { color: #B8C9DB; }
.footer .btn.btn-link {
    display: block; margin-bottom: 5px; padding: 0; text-align: left; color: #B8C9DB; font-weight: normal;
    font-family: var(--f-body); text-decoration: none; transition: .3s;
}
.footer .btn.btn-link::before {
    position: relative; content: "\f285"; font-family: "bootstrap-icons"; font-weight: normal; font-size: .8em; margin-right: 10px;
}
.footer .btn.btn-link:hover { color: var(--bs-light); letter-spacing: 1px; box-shadow: none; }
.footer .copyright { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer .copyright a { color: var(--accent); text-decoration: none; }
.zone-list { display: flex; flex-wrap: wrap; gap: 8px; }
.zone-list span { border: 1px solid rgba(255,255,255,.15); padding: 4px 10px; font-size: .9rem; }

/*** Filtres ***/
.chip {
    border: 1px solid var(--line); background: #fff; padding: 8px 18px; font-family: var(--f-head); font-weight: 600;
    cursor: pointer; color: var(--bs-dark); transition: .3s;
}
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--bs-secondary); border-color: var(--bs-secondary); color: #fff; }
.status { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; }
.status-a_venir { background: #FBEFD6; color: #7A5200; }
.status-en_cours { background: #DCEBFA; color: var(--bs-secondary); }
.status-terminee { background: #EEF0EF; color: #5A6260; }

/*** Formulaires ***/
.form { display: grid; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form legend { font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; color: var(--bs-dark); margin-bottom: 8px; float: none; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.frow-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 575.98px) { .frow, .frow-3 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--bs-dark); }
.field .hint { display: block; font-weight: 400; color: var(--bs-tertiary); font-size: .875rem; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0;
    font: 400 1rem/1.4 var(--f-body); color: var(--bs-dark); background: #fff;
}
.donate-form .field input, .donate-form .field select, .donate-form .field textarea { border-color: transparent; background: rgba(255,255,255,.75); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(90, 163, 230, .3); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .9rem; margin-top: 5px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--bs-secondary); flex: none; }
.hp { position: absolute; left: -5000px; }
.alert-error { background: #FDECEA; color: var(--danger); border: 0; border-radius: 0; padding: 14px 18px; }
.alert-ok { background: #DDF2E9; color: #0F4B3F; border: 0; border-radius: 0; padding: 14px 18px; }
.success { background: var(--bs-white); padding: 32px; border-top: 6px solid var(--bs-secondary); }
.ref { font-family: var(--f-head); font-weight: 700; font-size: 2rem; color: var(--bs-secondary); }
.tel { font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; color: var(--bs-secondary); text-decoration: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--bs-secondary); text-decoration: underline; cursor: pointer; }
.danger { color: var(--danger) !important; }
.muted { color: var(--bs-tertiary); }
.loading, .empty { padding: 60px 0; text-align: center; color: var(--bs-tertiary); }
.article-body { font-size: 1.08rem; max-width: 68ch; }
.article-body p { margin-bottom: 1.1em; }

/*** Administration ***/
.admin { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: #F2F7FC; font-size: 15px; }
.admin-side { background: var(--bs-dark); color: #C9D2CF; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.admin-side .brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.8rem; color: #fff; padding: 0 10px 18px; text-decoration: none; }
.admin-side a { color: #C9D2CF; text-decoration: none; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.admin-side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side a.router-link-exact-active { background: var(--bs-secondary); color: #fff; }
.admin-side .count { background: var(--accent); color: #fff; padding: 0 8px; font-size: .8rem; font-weight: 700; }
.admin-side .spacer { flex: 1; }
.admin-side button { background: none; border: 1px solid rgba(255,255,255,.25); color: #C9D2CF; padding: 9px; cursor: pointer; font: inherit; }
.admin-main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.admin-main h1 { font-size: 1.9rem; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-bar .tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-bar input, .admin-bar select { min-height: 38px; border: 1px solid var(--line); padding: 0 10px; font: inherit; background: #fff; }
.panel { background: #fff; border: 1px solid #DCE8F4; padding: 20px; display: block; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpis .panel b { display: block; font-family: var(--f-head); font-size: 2.2rem; color: var(--bs-secondary); }
.kpis .panel span { color: var(--bs-tertiary); }
.kpis .panel:first-child { border-top: 4px solid var(--accent); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #DCE8F4; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #EAF1F8; vertical-align: top; }
table.data th { font-size: .8rem; color: var(--bs-tertiary); font-weight: 600; background: var(--bs-light); white-space: nowrap; }
table.data tr.unread td { font-weight: 600; color: var(--bs-dark); }
table.data td.actions { white-space: nowrap; text-align: right; }
.drawer-bg { position: fixed; inset: 0; background: rgba(19, 49, 79, .5); z-index: 1050; display: flex; justify-content: flex-end; }
.drawer { background: #fff; width: min(640px, 100%); height: 100%; overflow-y: auto; padding: 26px; }
.drawer h2 { font-size: 1.6rem; }
.drawer .form { gap: 14px; }
.drawer-actions { display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: -26px; background: #fff; padding: 16px 0; border-top: 1px solid #EAF1F8; }
.dl-plain { display: grid; gap: 12px; margin: 0; }
.dl-plain dt { font-family: var(--f-head); color: var(--bs-dark); font-size: 1.15rem; }
.dl-plain dd { margin: 0; color: var(--bs-tertiary); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(440px, 100%); background: #fff; box-shadow: 0 20px 50px -20px rgba(19, 49, 79, .35); }
.login-brand { display: flex; align-items: center; gap: 16px; background: var(--bs-secondary); color: #fff; padding: 24px 32px; border-bottom: 5px solid var(--bs-primary); }
.login-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.4rem; }
.login-name { font-family: var(--f-head); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.login-sub { font-size: .85rem; color: #CFE0F1; margin-top: 4px; }
.login-form { padding: 32px; gap: 20px; }
.login-foot { border-top: 1px solid var(--line); padding: 16px 32px; text-align: center; }
.login-foot a { text-decoration: none; font-weight: 600; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--primary-ink); pointer-events: none; }
.field .input-icon input { padding-left: 46px; }
.field .input-icon input#l-pass { padding-right: 52px; }
.pw-toggle { position: absolute; right: 0; top: 0; height: 100%; width: 50px; border: 0; background: none; color: var(--bs-tertiary); cursor: pointer; }
.pw-toggle:hover { color: var(--bs-secondary); }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.app-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--bs-dark); color: #fff; padding: 12px 22px; z-index: 2000; }
.thumb { max-height: 110px; margin-bottom: 8px; }
@media (max-width: 860px) {
    .admin { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 12px; }
    .admin-side .brand-name { width: 100%; padding-bottom: 8px; }
    .admin-side .spacer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .btn-call::before { animation: none; }
    .btn, .footer .btn.btn-link { transition: none; }
}

.page-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.page-tabs .chip[aria-selected="true"] { background: var(--bs-secondary); border-color: var(--bs-secondary); color: #fff; }
.admin .panel .form { gap: 16px; }
.admin form.form { gap: 16px; }
.logo-preview { background: var(--bs-secondary); padding: 12px; display: inline-block; margin-bottom: 8px; }
.logo-preview img { width: auto; max-width: 260px; display: block; }
.panel.form { display: grid; }

/*** Sélecteur d'image ***/
.dropzone { position: relative; border: 2px dashed #B9D3EC; background: #F7FBFF; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--bs-primary); background: var(--bs-light); }
.dropzone:focus-within { border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(90, 163, 230, .3); }
.dropzone.filled { border-style: solid; border-color: var(--line); background: #fff; }
.dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dz-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 28px 16px 18px; color: var(--bs-tertiary); }
.dz-empty b { color: var(--bs-dark); font-family: var(--f-head); font-size: 1.05rem; }
.dz-icon { width: 56px; height: 56px; display: grid; place-items: center; background: #fff; color: var(--primary-ink); font-size: 1.5rem; border-radius: 50%; box-shadow: 0 4px 14px rgba(36, 90, 138, .12); margin-bottom: 8px; }
.dz-preview { display: flex; align-items: center; justify-content: center; padding: 14px; background: repeating-conic-gradient(#F1F5F9 0 25%, #fff 0 50%) 0 0 / 16px 16px; max-height: 260px; overflow: hidden; }
.dz-preview.dark { background: var(--bs-secondary); }
.dz-preview img { max-width: 100%; max-height: 230px; object-fit: contain; display: block; }
.dz-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); background: #fff; }
.dropzone:not(.filled) .dz-bar { border-top: 0; background: transparent; justify-content: center; flex-direction: column-reverse; padding-bottom: 22px; }
.dz-meta { font-size: .8rem; color: var(--bs-tertiary); }
.dz-actions { display: flex; gap: 8px; }
.dz-actions .btn { cursor: pointer; }
.dz-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: var(--bs-secondary); font-weight: 600; }

/*** Équipe ***/
.team-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.team-role { color: var(--primary-ink); font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.team-period { font-size: .85rem; color: var(--bs-tertiary); margin-top: 6px; }
.team-thumb { width: 44px; height: 44px; object-fit: cover; display: grid; place-items: center; }
.team-thumb.initials { background: var(--bs-light); color: var(--bs-secondary); font-family: var(--f-head); font-weight: 700; }

/*** Loader de l'accueil ***/
.loader {
    position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
    background: var(--bs-secondary);
    transition: opacity .6s ease, visibility 0s linear .6s;
}
.loader.out { opacity: 0; visibility: hidden; }
.loader.out .loader-inner { transform: scale(1.06); }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(420px, 86vw); transition: transform .6s ease; }
.loader-heart { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: 0 0 0 0 rgba(220,165,68,.55); animation: beat 1.2s ease-in-out infinite; }
.loader-heart svg { width: 38px; height: 38px; fill: var(--accent); }
@keyframes beat {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220,165,68,.5); }
    14% { transform: scale(1.18); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); box-shadow: 0 0 0 18px rgba(220,165,68,0); }
    70% { transform: scale(1); }
}
.loader-ecg { width: 100%; height: 70px; overflow: visible; }
.loader-ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ecg-base { stroke: rgba(255,255,255,.12); stroke-width: 2; }
.ecg-trace { stroke: var(--bs-primary); stroke-width: 3; stroke-dasharray: 90 520; stroke-dashoffset: 610; filter: drop-shadow(0 0 6px rgba(90,163,230,.9)); animation: trace 1.2s linear infinite; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.loader-name { font-family: var(--f-head); font-weight: 700; font-size: 2.4rem; letter-spacing: .12em; color: #fff; line-height: 1; }
.loader-text { color: #BFD6EC; font-size: .95rem; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }
html:not(.loaded) { overflow: hidden; }

/*** Apparition des widgets au défilement ***/
.reveal { opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal-up { transform: translateY(36px); }
.reveal-left { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-zoom { transform: scale(.9); }
.reveal.is-in { opacity: 1; transform: none; }
/* Sur l'accueil, le haut de page attend la fin du loader. */
html:not(.loaded) .reveal.is-in { opacity: 0; }

/*** Survols ***/
.event-item, .news-item, .team-item, .donation-item { transition: transform .35s ease, box-shadow .35s ease; }
.event-item:hover, .news-item:hover, .team-item:hover { box-shadow: 0 14px 34px -22px rgba(19, 49, 79, .45); }
.event-cover, .news-item > img, .team-photo { overflow: hidden; }
.event-cover img { transition: transform .8s ease; }
.event-item:hover .event-cover img { transform: scale(1.08); }
.news-item > img { transition: transform .8s ease, filter .4s ease; }
.news-item:hover > img { filter: saturate(1.15); }
.service-item .btn-square { transition: background .35s ease, transform .5s cubic-bezier(.3,1.6,.5,1); }
.service-item .btn-square i { transition: color .35s ease; }
.service-item:hover .btn-square { background: var(--bs-primary) !important; }
.service-item:hover .btn-square i { color: #fff !important; }
.service-item a.more::after { transition: width .5s ease; }
.service-item:hover a.more::after { width: 30%; }
.fact-tile { transition: transform .35s ease; }
.fact-tile i { transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.hero-img img { transition: transform 1.2s ease; }
.hero-img { overflow: hidden; }
.hero-img:hover img { transform: scale(1.04); }
.about-img img { transition: transform 1.2s ease; }
.about-img:hover img { transform: scale(1.03); }
.step-line i { transition: transform .4s ease; }
.step-line:hover i { transform: scale(1.4); }
.bg-light.p-4.h-100.text-center { transition: transform .35s ease, box-shadow .35s ease; }
.bg-light.p-4.h-100.text-center:hover { transform: translateY(-6px); box-shadow: 0 14px 30px -16px rgba(19,49,79,.35); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    .loader-heart, .ecg-trace, .loader-text { animation: none; }
    .ecg-trace { stroke-dasharray: none; stroke-dashoffset: 0; }
    .event-item:hover, .news-item:hover, .team-item:hover, .service-item:hover .btn-square { transform: none; }
}

/*** Système ***/
.sys-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .sys-grid { grid-template-columns: 1fr; } }
.cmd-list { display: grid; gap: 8px; }
.cmd { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); background: #FAFCFE; }
.cmd.danger { border-color: #F2C9C2; background: #FFF7F5; }
.cmd-text { display: grid; gap: 2px; min-width: 0; }
.cmd-text b { color: var(--bs-dark); }
.cmd-text span { font-size: .87rem; color: var(--bs-tertiary); }
.cmd-btns { display: flex; gap: 6px; flex-shrink: 0; }
.cmd-confirm { margin-top: 8px; display: grid; gap: 4px; font-size: .87rem; }
.cmd-confirm input { border: 1px solid #E3A99E; padding: 6px 10px; max-width: 220px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.checks li { display: flex; gap: 12px; padding: 9px 4px; border-bottom: 1px solid #EEF3F8; }
.checks li div { display: grid; }
.checks li b { color: var(--bs-dark); font-weight: 600; font-size: .92rem; }
.checks li span { font-size: .85rem; color: var(--bs-tertiary); word-break: break-word; }
.checks li > i { margin-top: 3px; }
.chk { margin-right: 14px; font-weight: 600; }
.chk-ok > i, .chk.chk-ok { color: #1F8A5B; }
.chk-warn > i, .chk.chk-warn { color: #C7861A; }
.chk-error > i, .chk.chk-error { color: var(--danger); }
.console { border: 1px solid var(--line); margin-bottom: 10px; }
.console-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: var(--bs-light); }
.console pre, .console-pre { margin: 0; padding: 12px; background: #0F2235; color: #CFE3F5; font-size: .82rem; max-height: 320px; overflow: auto; white-space: pre-wrap; }


/*** Partenaires ***/
.partner-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
a.partner-card:hover { color: inherit; }
.partner-card:hover { border-color: var(--bs-primary); }
.partner-logo { height: 170px; display: flex; align-items: center; justify-content: center; padding: 16px 28px; background: #fff; border-bottom: 3px solid var(--bs-primary); }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: none; transition: filter .35s ease, transform .35s ease; }
.partner-card:hover .partner-logo img { filter: none; transform: scale(1.05); }
.partner-fallback { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--primary-ink); font-size: 1.8rem; box-shadow: 0 6px 18px rgba(36, 90, 138, .12); }
.partner-body { padding: 22px 24px 26px; text-align: center; background: var(--bs-light); flex: 1; }
.partner-body h5 { font-size: 1.2rem; }
.partner-body p { color: var(--bs-tertiary); font-size: .95rem; }
.partner-thumb { max-width: 90px; max-height: 40px; object-fit: contain; }

/*** Tiroir d'édition de l'admin : contenu en haut, boutons compacts ***/
.drawer, .drawer.form { display: flex; flex-direction: column; gap: 14px; }
.drawer > * { flex: none; }
.drawer-actions { margin-top: auto; align-items: center; }
.drawer-actions .btn { height: auto; min-height: 40px; padding: 8px 18px; }

/*** Menu : sous-menus ***/
.navbar .dropdown { position: relative; }
.navbar .dropdown .nav-link { background: none; border: 0; font: inherit; font-family: var(--f-head); font-weight: 600; cursor: pointer; }
.navbar .dropdown-toggle::after { border: 0; content: "\f282"; font-family: "bootstrap-icons"; font-weight: normal; vertical-align: middle; margin-left: 6px; font-size: .8em; }
.navbar .dropdown-menu { display: block; position: absolute; top: 100%; left: -12px; min-width: 240px; margin: 0; padding: 8px 0; border: 0; border-radius: 0; border-top: 3px solid var(--accent); box-shadow: 0 18px 40px -18px rgba(19,49,79,.4); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; z-index: 1000; }
.navbar .dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.navbar .dropdown-item { padding: 10px 20px; color: var(--bs-dark); font-weight: 600; }
.navbar .dropdown-item:hover, .navbar .dropdown-item.router-link-active { background: var(--bs-light); color: var(--primary-ink); }
@media (max-width: 991.98px) {
    .navbar .dropdown-menu { position: static; box-shadow: none; border-top: 0; background: rgba(255,255,255,.12); display: none; opacity: 1; visibility: visible; transform: none; }
    .navbar .dropdown.open .dropdown-menu { display: block; }
    .navbar .dropdown-item { color: #fff; }
    .navbar .dropdown .nav-link { width: 100%; text-align: left; }
}

/*** Accueil : nouveaux blocs ***/
.hero-kicker { font-family: var(--f-head); font-weight: 600; color: var(--primary-ink); margin-bottom: 14px; font-size: 1rem; }
.key-stats { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.key-stat { display: flex; flex-direction: column; gap: 6px; padding: 30px 24px; color: var(--bs-tertiary); border-right: 1px solid var(--line); height: 100%; }
.col-6:last-child .key-stat, .col-lg-3:last-child .key-stat { border-right: 0; }
.key-stat b { font-family: var(--f-head); font-size: 2.2rem; line-height: 1; color: var(--bs-secondary); }
.key-stat span { font-size: .92rem; max-width: 22ch; }
.implant-card { display: flex; gap: 18px; align-items: center; background: var(--bs-secondary); color: #D9E8F6; padding: 20px 24px; margin: -40px 24px 0 48px; position: relative; z-index: 2; box-shadow: 0 18px 40px -20px rgba(19,49,79,.6); }
.implant-card b { font-family: var(--f-head); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.implant-card h5 { color: #fff; }
.mvv { margin: 0; border-top: 1px solid var(--line); }
.mvv > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mvv dt { font-family: var(--f-head); color: var(--bs-secondary); }
.mvv dd { margin: 0; color: var(--bs-dark); }
.domain-card { background: #fff; border: 1px solid var(--line); padding: 0 0 26px; display: flex; flex-direction: column; transition: border-color .3s ease; }
.domain-card > *:not(.domain-photo) { margin-left: 26px; margin-right: 26px; }
.domain-photo { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 22px; }
.domain-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.domain-card:hover .domain-photo img { transform: scale(1.04); }
.domain-card h3 i { color: var(--primary-ink); }
.domain-card:hover { border-color: var(--bs-primary); }
.domain-card .more { margin-top: auto; }
.domain-icon { width: 60px; height: 60px; display: grid; place-items: center; background: var(--bs-light); color: var(--bs-secondary); font-size: 1.5rem; margin-bottom: 18px; transition: transform .5s cubic-bezier(.3,1.6,.5,1), background .3s; }
.domain-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.domain-points li { display: flex; gap: 10px; color: var(--bs-dark); }
.domain-points i { color: var(--bs-primary); margin-top: 4px; }
.more { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: .85rem; text-decoration: none; letter-spacing: .04em; }
.more::after { content: "\f138"; font-family: "bootstrap-icons"; font-weight: normal; margin-left: 6px; vertical-align: -1px; transition: margin .3s; }
.more:hover::after { margin-left: 10px; }
.steps-visual { background: var(--bs-secondary); color: #D9E8F6; padding: 48px 40px; position: relative; }
.steps-visual i { font-size: 4rem; color: #fff; margin-bottom: 20px; display: block; }
.zongo-kicker { font-family: var(--f-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.credit-card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: border-color .3s ease; }
.credit-card:hover { border-color: var(--bs-primary); }
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; background: var(--bs-light); padding: 48px; position: relative; }
.founder-photo, .bio-photo { aspect-ratio: 1 / 1; background: var(--bs-secondary); display: grid; place-items: center; overflow: hidden; }
.founder-photo img, .bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo span, .bio-photo span { font-family: var(--f-head); font-weight: 700; font-size: 4.5rem; color: var(--accent); }
@media (max-width: 767.98px) { .founder { grid-template-columns: 1fr; padding: 28px; } .founder-photo { max-width: 220px; } }
.way-card { background: #fff; border: 1px solid var(--line); padding: 28px; transition: border-color .3s ease; }
.way-card:hover { border-color: var(--bs-primary); }
.way-icon { width: 52px; height: 52px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--bs-secondary); color: #fff; font-size: 1.35rem; transition: background .3s ease; }
.way-card:hover .way-icon { background: var(--bs-primary); }

/*** Pages Nos actions / Compassion / Zongo Pay / Biographie ***/
.action-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.action-block.reverse .action-media { order: 2; }
.action-media { overflow: hidden; }
.action-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s ease; }
.action-media:hover img { transform: scale(1.04); }
.action-illus { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--bs-secondary); color: #fff; }
.action-illus i { font-size: 5rem; color: var(--accent); }
.action-illus span { font-family: var(--f-head); font-weight: 700; font-size: 2rem; }
@media (max-width: 991.98px) { .action-block { grid-template-columns: 1fr; gap: 24px; } .action-block.reverse .action-media { order: 0; } }
.info-panel { border-top: 2px solid var(--bs-secondary); padding: 24px 0 0; }
.info-panel h3 i { color: var(--primary-ink); }
.zone-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zone-chips span { background: #fff; border: 1px solid var(--line); padding: 4px 12px; font-size: .9rem; color: var(--bs-dark); }
.support-list { list-style: none; padding: 0; margin: 0; }
.support-list li { display: grid; grid-template-columns: minmax(150px, 40%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.support-list b { color: var(--bs-dark); }
.visa-card { aspect-ratio: 1.586; max-width: 440px; margin: 0 auto; border-radius: 18px; padding: 28px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: var(--bs-secondary); box-shadow: 0 18px 40px -22px rgba(19,49,79,.45); transform: rotate(-4deg); transition: transform .6s ease; }
.visa-card:hover { transform: rotate(0) scale(1.03); }
.visa-card::after { content: none; }
.visa-chip { width: 52px; height: 40px; border-radius: 8px; background: var(--accent); }
.visa-brand { font-family: var(--f-head); font-weight: 700; font-size: 1.8rem; }
.visa-number { font-family: ui-monospace, monospace; letter-spacing: .14em; font-size: 1.1rem; opacity: .9; }
.visa-foot { display: flex; justify-content: space-between; align-items: end; font-size: .85rem; }
.visa-foot b { font-size: 1.8rem; font-style: italic; letter-spacing: .02em; }
.bio-quote { margin: 24px 0 0; padding: 24px; background: var(--bs-secondary); color: #fff; font-family: var(--f-head); font-size: 1.25rem; line-height: 1.4; }
.bio-quote i { color: var(--accent); margin-right: 10px; }

@media (prefers-reduced-motion: reduce) {
    .domain-card:hover, .way-card:hover, .credit-card:hover, .step-card:hover, .feature-tile:hover, .visa-card, .visa-card:hover, .mvv-item:hover { transform: none; }
}

/*** Bloc Zongo Pay façon fintech (aplats, couleurs douces) ***/
.fintech { position: relative; overflow: hidden; padding: 96px 0 72px; background: #F3F7FB; color: var(--bs-tertiary); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fx-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--bs-secondary); font-size: .85rem; font-weight: 600; }
.fx-dot { width: 8px; height: 8px; border-radius: 50%; background: #2FB67C; box-shadow: 0 0 0 0 rgba(47,182,124,.45); animation: fxpulse 2s infinite; }
@keyframes fxpulse { 70% { box-shadow: 0 0 0 8px rgba(47,182,124,0); } 100% { box-shadow: 0 0 0 0 rgba(47,182,124,0); } }
.fx-title { color: var(--bs-dark); font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; margin: 22px 0 18px; text-wrap: balance; }
.fx-lead { font-size: 1.08rem; max-width: 52ch; }
.fx-chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fx-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--bs-dark); font-size: .92rem; }
.fx-chips i { color: var(--primary-ink); }
.fx-ghost { color: var(--bs-secondary); border: 1px solid var(--bs-secondary); background: transparent; }
.fx-ghost:hover { color: #fff; background: var(--bs-secondary); }

.fx-stage { position: relative; height: 560px; max-width: 560px; margin: 0 auto; }
.fx-stage::before { content: ""; position: absolute; right: 0; top: 40px; width: 380px; height: 440px; border-radius: 32px; background: #E3EEF9; }
.fx-card { position: absolute; left: 0; top: 70px; width: 320px; aspect-ratio: 1.586; border-radius: 18px; padding: 22px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
    background: var(--bs-secondary); box-shadow: 0 18px 40px -22px rgba(19,49,79,.45); transform: rotate(-12deg); animation: fxfloat 7s ease-in-out infinite; }
.fx-card .visa-chip { background: var(--accent); }
.fx-card-brand { font-family: var(--f-head); font-weight: 700; font-size: 1.4rem; }
.fx-card-num { font-family: ui-monospace, monospace; letter-spacing: .14em; opacity: .85; }
.fx-card-foot { display: flex; justify-content: space-between; align-items: end; font-size: .78rem; color: #CFE0F1; }
.fx-card-foot b { font-size: 1.5rem; font-style: italic; color: #fff; }
.fx-phone { position: absolute; right: 50px; top: 0; width: 270px; height: 550px; border-radius: 42px; padding: 10px; background: var(--bs-dark); box-shadow: 0 24px 50px -24px rgba(19,49,79,.5); animation: fxfloat 6s ease-in-out infinite reverse; }
.fx-notch { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 12px; background: var(--bs-dark); z-index: 2; }
.fx-screen { height: 100%; border-radius: 34px; overflow: hidden; background: #F6F9FC; padding: 44px 14px 14px; color: var(--bs-dark); font-size: .8rem; }
.fx-app-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fx-app-top div { flex: 1; display: grid; line-height: 1.2; }
.fx-app-top small { color: #7A8CA3; font-size: .7rem; }
.fx-app-top b { font-family: var(--f-head); font-size: 1rem; }
.fx-app-top i { color: #7A8CA3; }
.fx-app-logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--f-head); font-weight: 700; }
.fx-balance { border-radius: 18px; padding: 16px; color: #fff; background: var(--bs-secondary); }
.fx-balance small { color: #CFE0F1; font-size: .7rem; }
.fx-balance b { display: block; font-family: var(--f-head); font-size: 1.55rem; margin: 4px 0 10px; }
.fx-balance b span { font-size: .8rem; color: #CFE0F1; }
.fx-progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.22); overflow: hidden; }
.fx-progress span { display: block; width: 40%; height: 100%; border-radius: 6px; background: var(--accent); animation: fxbar 2.4s ease-out both; }
@keyframes fxbar { from { width: 0; } }
.fx-balance-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: .68rem; color: #CFE0F1; }
.fx-balance-foot span:last-child { color: #8EE0B9; font-weight: 700; }
.fx-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.fx-actions span { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; background: #fff; border: 1px solid #E6EEF6; font-size: .66rem; font-weight: 600; }
.fx-actions i { color: var(--primary-ink); font-size: .95rem; }
.fx-list-title { font-weight: 700; font-size: .72rem; color: #7A8CA3; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.fx-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: #fff; border: 1px solid #E6EEF6; margin-bottom: 6px; }
.fx-row-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bs-light); color: var(--primary-ink); font-size: .8rem; }
.fx-row-name { flex: 1; font-weight: 600; font-size: .74rem; }
.fx-row > i { color: #B0BFD0; font-size: .65rem; }
.fx-toast { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--bs-dark); box-shadow: 0 12px 28px -18px rgba(19,49,79,.45); }
.fx-toast div { display: grid; line-height: 1.25; }
.fx-toast b { font-size: .85rem; }
.fx-toast small { color: #6B7E95; font-size: .74rem; }
.fx-toast.t1 { left: -10px; bottom: 150px; animation: fxfloat 5s ease-in-out infinite; }
.fx-toast.t2 { left: 40px; bottom: 50px; animation: fxfloat 5.5s ease-in-out infinite 1s; }
.fx-ok { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #E3F5EC; color: #2FB67C; }
.fx-ok.gold { background: #FBF1DF; color: #B57B1F; }
@keyframes fxfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.fx-credit { position: relative; display: grid; gap: 2px; padding: 22px; border-radius: 16px; text-decoration: none; color: var(--bs-dark); background: #fff; border: 1px solid var(--line); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; height: 100%; }
.fx-credit:hover { color: var(--bs-dark); transform: translateY(-4px); border-color: var(--bs-primary); box-shadow: 0 14px 30px -20px rgba(19,49,79,.4); }
.fx-credit-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bs-light); color: var(--primary-ink); margin-bottom: 12px; font-size: 1.15rem; }
.fx-credit small { color: #7A8CA3; font-size: .8rem; }
.fx-credit b { font-family: var(--f-head); font-size: 1.15rem; }
.fx-arrow { position: absolute; right: 20px; top: 24px; color: #B0BFD0; transition: transform .3s, color .3s; }
.fx-credit:hover .fx-arrow { transform: translateX(4px); color: var(--primary-ink); }
.fx-note { margin: 22px 0 0; font-size: .8rem; color: #7A8CA3; }

@media (max-width: 991.98px) {
    .fx-stage { height: 520px; }
    .fx-card { width: 270px; top: 90px; }
    .fx-phone { right: 10px; }
}
@media (max-width: 575.98px) {
    .fintech { padding: 64px 0 48px; }
    .fx-stage { height: 500px; max-width: 340px; }
    .fx-stage::before, .fx-card { display: none; }
    .fx-phone { right: 50%; transform: translateX(50%); width: 250px; height: 500px; }
    .fx-toast.t1 { left: 0; bottom: 110px; } .fx-toast.t2 { left: 0; bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-card, .fx-phone, .fx-toast, .fx-dot, .fx-progress span { animation: none !important; }
}

.fintech.in-page { margin-top: -48px; border-top: 0; }

/*** Bootstrap Icons : tailles et rotation ***/
.bi { line-height: 1; display: inline-block; }
.bi-lg { font-size: 1.33em; }
.bi-2x { font-size: 2em; }
.bi-3x { font-size: 3em; }
.bi-spin { animation: bispin 1s linear infinite; }
@keyframes bispin { to { transform: rotate(360deg); } }

/*** Étapes : frise horizontale ***/
.stepper { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; position: relative; }
.stepper li { position: relative; padding-top: 58px; }
.stepper li::before { content: ""; position: absolute; top: 19px; left: 44px; right: -28px; height: 2px; background: var(--line); }
.stepper li:last-child::before { display: none; }
.stepper-dot { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--bs-primary); color: var(--bs-secondary); font-family: var(--f-head); font-weight: 700; }
.stepper h4 { font-size: 1.2rem; margin-bottom: 6px; }
@media (max-width: 767.98px) { .stepper li::before { display: none; } }

/*** Crédits Zongo Pay avec photo ***/
.credit-photo { aspect-ratio: 3 / 2; overflow: hidden; }
.credit-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.credit-card:hover .credit-photo img { transform: scale(1.04); }
.credit-body { padding: 18px 20px 22px; }
.credit-body h4 { font-size: 1.1rem; margin-bottom: 6px; }
.credit-body h4 i { color: var(--primary-ink); }
.fx-credit { grid-template-columns: 64px 1fr; align-items: center; gap: 14px !important; padding: 12px !important; }
.fx-credit-photo { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: block; }
.fx-credit-photo img { width: 100%; height: 100%; object-fit: cover; }
.fx-credit-text { display: grid; }
.fx-arrow { top: 50% !important; transform: translateY(-50%); }
.fx-credit:hover .fx-arrow { transform: translate(4px, -50%) !important; }

/*** Avantages Zongo Pay : liste ***/
.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feature-list li { display: flex; gap: 14px; padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.feature-list i { font-size: 1.4rem; color: var(--primary-ink); line-height: 1.2; }
.feature-list div { display: grid; }
.feature-list b { color: var(--bs-dark); }
.feature-list span { font-size: .93rem; }

/* Fond de secours si une photo ne charge pas */
.credit-photo, .domain-photo, .fx-credit-photo, .hero-img, .about-img, .event-cover, .action-media { background-color: var(--bs-light); }

.photo-credit { width: 100%; margin: 10px 0 0; font-size: .75rem; color: #8597AB; }

/* ---------- Sélecteur de langue ---------- */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid rgba(19, 49, 79, .35); border-radius: 999px; padding: 2px; align-self: center; }
.lang-switch button { border: 0; background: transparent; color: var(--bs-dark); font: 700 .8rem/1 'Josefin Sans', sans-serif; letter-spacing: .04em; padding: .45rem .7rem; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--bs-dark); color: #fff; }
.lang-switch button:not([aria-pressed="true"]):hover { background: rgba(19, 49, 79, .1); }
.lang-switch button:focus-visible { outline: 2px solid var(--bs-dark); outline-offset: 2px; }
.admin-lang { display: inline-flex; gap: .4rem; align-items: center; }
.admin-lang .chip { padding: .35rem .8rem; }
.i18n-box { border: 1px dashed var(--line); border-radius: 6px; padding: 1rem 1rem .25rem; background: #F7FBFE; display: grid; gap: .9rem; }
.i18n-box > legend, .i18n-box > .i18n-title { font: 700 .95rem 'Josefin Sans', sans-serif; color: var(--bs-secondary); margin: 0; }
