/* UJDS : surcouche d'Arsha. Version neutre : texte noir sur blanc, gris clair pour séparer,
   orange réservé aux boutons, liens et barres de progression. Style plat : ni ombres ni dégradés. */

:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Montserrat", sans-serif;
  --background-color: #ffffff;
  --default-color: #111111;
  --heading-color: #111111;
  --accent-color: var(--ujds-accent);
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #111111;
  --nav-hover-color: var(--ujds-accent);
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #111111;
  --nav-dropdown-hover-color: var(--ujds-accent);
  --ujds-border: #e7e2de;
  --ujds-muted: #555555;
  --ujds-light: #f7f5f3;
}

.light-background { --background-color: var(--ujds-light); --surface-color: #ffffff; }

body { color: #111; background: #fff; }
a { color: var(--ujds-accent); }
p { line-height: 1.7; }
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }

/* En-tête : fond blanc permanent, texte noir */
.header, .index-page .header, .scrolled .header, .index-page.scrolled .header {
  --background-color: #ffffff; --default-color: #111; --heading-color: #111;
  background: #fff; border-bottom: 1px solid var(--ujds-border); padding: 10px 0;
}
.header .logo img { max-height: 48px; margin-right: 10px; }
.header .logo .sitename { font-size: 26px; font-weight: 800; color: #111; letter-spacing: 1px; }
/* Arsha met les liens en blanc sur la page d'accueil : on force le noir partout. */
.header, .index-page .header, .index-page.scrolled .header { --nav-color: #111; --nav-hover-color: var(--ujds-accent); }
.navmenu a, .navmenu a:focus { font-weight: 600; color: #111; }
.navmenu .active, .navmenu a:hover { color: var(--ujds-accent) !important; }
.header .btn-getstarted, .header .btn-getstarted:focus {
  background: var(--ujds-accent); color: #fff; border: 0; border-radius: 6px; padding: 8px 20px; font-weight: 600;
}
.header .btn-getstarted:hover { background: #111; color: #fff; }
.btn-sos i { margin-right: 4px; }
.mobile-nav-toggle { color: #111; }
@media (max-width: 1199px) {
  .header .btn-sos { display: none; }
  /* Menu mobile en liste déroulante sous l'en-tête (au lieu du panneau plein écran d'Arsha). */
  .mobile-nav-active { overflow: auto; }
  .mobile-nav-active .navmenu { position: static; inset: auto; background: none; }
  .mobile-nav-active .mobile-nav-toggle { position: static; color: #111; font-size: 28px; }
  .navmenu ul { position: fixed; inset: 69px 0 auto 0; max-height: calc(100vh - 69px); border-radius: 0; padding: 6px 0; border-bottom: 1px solid var(--ujds-border); }
  .navmenu a, .navmenu a:focus { padding: 12px 20px; border-top: 1px solid #f2f2f2; }
}
.main { padding-top: 74px; }

/* Bandeau d'accueil : couleur sombre unie, ou photo assombrie si définie */
/* Bandeau plein écran (hauteur de l'écran moins l'en-tête) */
.ujds-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(100vh - 74px); min-height: calc(100svh - 74px); padding: 60px 0; background: #fff; border-bottom: 1px solid var(--ujds-border); }
.ujds-hero > .container { position: relative; z-index: 2; }
.ujds-hero-media { background: #111 var(--hero-image, none) center / cover no-repeat; border-bottom: 0; }
@media (max-width: 799px) { .ujds-hero-media { background-image: var(--hero-image-sm, var(--hero-image, none)); } }
.ujds-hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .5); }
.ujds-hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.ujds-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; color: #111; }
.ujds-hero-media h1, .ujds-hero-media p { color: #fff !important; }
.ujds-hero-media .btn-ghost { border-color: #fff; color: #fff; }
.ujds-hero-media .btn-ghost:hover { background: #fff; color: #111; }
@media (prefers-reduced-motion: reduce) { .ujds-hero-video { display: none; } }
.ujds-hero p { color: #333; font-size: 19px; margin: 12px 0 28px; }
.ujds-kicker { font-family: var(--heading-font); text-transform: uppercase; letter-spacing: 3px; color: #666 !important; font-weight: 700; font-size: 14px !important; margin: 0 0 8px !important; opacity: 1 !important; }
.hero-logo { max-width: 340px; width: 100%; animation: none !important; }
.hero .btn-get-started { background: var(--ujds-accent); color: #fff; border-radius: 6px; padding: 12px 28px; font-weight: 600; }
.hero .btn-get-started:hover { background: #111; color: #fff; }
.hero .btn-get-started, .btn-ghost { font-family: var(--heading-font); font-size: 15px; letter-spacing: .5px; }
.btn-ghost { display: inline-block; border: 2px solid #111; color: #111; border-radius: 6px; padding: 10px 26px; font-weight: 600; }
.btn-ghost:hover { background: #111; color: #fff; }

/* Titres de section */
.section-title h2 { color: #111; font-weight: 800; }
.section-title h2::before, .section-title h2::after { display: none; }
.section-title h2 { padding-bottom: 0; margin-bottom: 12px; }
.section-title p { color: var(--ujds-muted); }
.ujds-h2 { font-size: 26px; font-weight: 700; margin: 28px 0 16px; }

/* Boutons */
.btn-ujds { background: var(--ujds-accent); color: #fff; border: 2px solid var(--ujds-accent); border-radius: 6px; font-weight: 600; }
.btn-ujds:hover, .btn-ujds:focus { background: #111; border-color: #111; color: #fff; }
.btn-ujds-outline { border: 2px solid #111; color: #111; border-radius: 6px; font-weight: 600; background: #fff; }
.btn-ujds-outline:hover { background: #111; color: #fff; }
.read-more { color: var(--ujds-accent); font-weight: 600; }

/* Objectifs (cartes services d'Arsha, aplaties) */
.services .service-item { border: 1px solid var(--ujds-border); border-radius: 8px; transform: none !important; }
.services .service-item:hover { border-color: #111; }
.services .service-item .icon { background: none !important; }
.services .service-item .icon i { color: #111; font-size: 34px; }
.services .service-item h3 { color: #111; font-size: 20px; font-weight: 700; margin: 0 0 15px; }

/* Chiffres clés */
.ujds-figures { padding: 50px 0; border-top: 1px solid var(--ujds-border); border-bottom: 1px solid var(--ujds-border); }
.ujds-figures i { font-size: 28px; color: #111; }
.ujds-figure-value { font-family: var(--heading-font); font-size: 40px; font-weight: 800; color: #111; }
.ujds-figure-label { color: #555; }

/* Cartes (projets, actualités) */
.ujds-card { display: flex; flex-direction: column; border: 1px solid var(--ujds-border); border-radius: 8px; overflow: hidden; background: #fff; }
.ujds-card:hover { border-color: #111; }
.ujds-card-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--ujds-light); }
.ujds-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ujds-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ujds-card-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.ujds-card-body h3 a { color: #111; }
.ujds-card-body h3 a:hover { text-decoration: underline; }
.ujds-card-body p { color: #333; flex: 1; }
.ujds-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--ujds-muted); margin-bottom: 8px; }
.ujds-tag { background: #f1f1f1; color: #111; padding: 2px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; }
a.ujds-tag:hover { background: #111; color: #fff; }
.ujds-status { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; color: #111; background: #fff; border: 1px solid var(--ujds-border); }

/* Barres de progression */
.ujds-progress { margin: 12px 0; }
.ujds-progress-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.ujds-progress-track { height: 8px; background: var(--ujds-border); border-radius: 4px; overflow: hidden; }
.ujds-progress-bar { height: 100%; background: var(--ujds-accent); }

/* Filtres */
.ujds-filters { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ujds-filters li, .ujds-filters a { cursor: pointer; }
.ujds-filters li > a, .ujds-filters.isotope-filters li { display: inline-block; padding: 7px 18px; border: 1px solid var(--ujds-border); border-radius: 6px; color: #111; font-weight: 500; }
.ujds-filters a.active, .ujds-filters li.filter-active, .ujds-filters li > a:hover, .ujds-filters.isotope-filters li:hover { background: #111; border-color: #111; color: #fff; }

/* Galerie */
.ujds-thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--ujds-light); }
.ujds-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ujds-thumb:hover img { transform: scale(1.04); }
.ujds-thumb.is-video::after { content: "\F4F4"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; color: #fff; background: rgba(0,0,0,.25); }
.ujds-album { display: block; border: 1px solid var(--ujds-border); border-radius: 8px; overflow: hidden; color: #111; }
.ujds-album:hover { border-color: #111; color: #111; }
.ujds-album img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ujds-album div { padding: 14px 16px; }
.ujds-album h3 { font-size: 18px; margin: 0 0 4px; }
.ujds-album span { font-size: 14px; color: var(--ujds-muted); }

/* Qui sommes-nous */
.ujds-value { border: 1px solid var(--ujds-border); border-radius: 8px; padding: 28px; }
.ujds-value-num { font-family: var(--heading-font); font-weight: 800; color: #999; font-size: 24px; }
.ujds-value h3 { font-size: 21px; margin: 8px 0 10px; }
.ujds-value h3 i { color: #111; }
.ujds-timeline { list-style: none; padding: 0; border-left: 2px solid var(--ujds-border); margin-left: 8px; }
.ujds-timeline li { display: flex; gap: 20px; padding: 0 0 26px 24px; position: relative; }
.ujds-timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #111; border: 3px solid #fff; }
.ujds-timeline-year { font-family: var(--heading-font); font-weight: 800; color: #111; min-width: 64px; }
.ujds-timeline h3 { font-size: 18px; margin: 0 0 6px; }
.ujds-member { text-align: center; }
.ujds-member img, .ujds-member-initials { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 1px solid var(--ujds-border); }
.ujds-member-initials { display: grid; place-items: center; background: var(--ujds-light); font-family: var(--heading-font); font-size: 44px; font-weight: 800; color: #111; }
.ujds-member h3 { font-size: 18px; margin-bottom: 2px; }
.ujds-member-role { color: #555; font-weight: 600; margin-bottom: 6px; }
.ujds-rounded { border-radius: 8px; }

/* Encadrés et textes riches */
.ujds-box { border: 1px solid var(--ujds-border); border-radius: 8px; padding: 24px; position: sticky; top: 100px; }
.ujds-box h3 { font-size: 20px; margin-bottom: 16px; }
.ujds-facts { list-style: none; padding: 0; margin: 0 0 12px; }
.ujds-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ujds-border); }
.ujds-facts span { color: var(--ujds-muted); }
.ujds-recent { list-style: none; padding: 0; margin: 0; }
.ujds-recent li { padding: 10px 0; border-bottom: 1px solid var(--ujds-border); }
.ujds-recent a { color: #111; font-weight: 600; display: block; }
.ujds-recent a:hover { text-decoration: underline; }
.ujds-recent time { font-size: 13px; color: var(--ujds-muted); }
.rich-text { color: #111; font-size: 17px; }
.rich-text h2, .rich-text h3 { margin-top: 1.4em; }
.rich-text img { max-width: 100%; height: auto; border-radius: 8px; }
.rich-text blockquote { border-left: 3px solid var(--ujds-border); padding-left: 16px; font-style: italic; }
.lead { font-size: 19px; color: #111; }
.ujds-share { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ujds-share a { font-size: 22px; color: #111; }
.ujds-empty { text-align: center; color: var(--ujds-muted); padding: 40px 0; }

/* SOS */
.sos-strip { background: #111; color: #fff; padding: 12px 0; }
.sos-strip i { color: var(--ujds-accent); }
.ujds-appeal { border: 1px solid var(--ujds-border); border-radius: 8px; overflow: hidden; background: #fff; margin-bottom: 24px; }
.ujds-appeal img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.ujds-appeal-body { padding: 24px; }
.ujds-appeal h3 { font-size: 22px; margin: 10px 0; }
.ujds-urgency { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; color: #111; background: #f1f1f1; }
.ujds-urgency-critical { background: #111; color: #fff; }
.ujds-donation { border: 1px solid var(--ujds-border); border-radius: 8px; padding: 28px; text-align: center; }
.ujds-donation i { font-size: 30px; color: #111; }
.ujds-donation h3 { font-size: 20px; margin: 10px 0; }
.ujds-donation-number { font-family: var(--heading-font); font-size: 24px; font-weight: 800; color: #111; user-select: all; }

/* Appel à l'action */
.call-to-action { background: var(--ujds-light); padding: 60px 0; }
.call-to-action h3 { color: #111; font-weight: 800; }
.call-to-action p { color: #333; }
.call-to-action .cta-btn { background: var(--ujds-accent); border: 0; color: #fff; border-radius: 6px; padding: 12px 30px; }
.call-to-action .cta-btn:hover { background: #111; color: #fff; }

/* En-tête des pages intérieures */
.page-title { background: var(--ujds-light); border-bottom: 1px solid var(--ujds-border); padding: 40px 0 26px; }
.page-title h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: #111; margin: 0 0 6px; }
.page-title p { color: var(--ujds-muted); margin: 0 0 10px; }
.page-title .breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 14px; }
.page-title .breadcrumbs ol li + li::before { content: "/"; padding: 0 8px; color: var(--ujds-muted); }
.page-title .breadcrumbs a { color: #555; }

/* Pied de page */
.footer { --background-color: var(--ujds-light); --default-color: #111; --heading-color: #111; background: var(--ujds-light); color: #111; padding-bottom: 30px; border-top: 1px solid var(--ujds-border); }
.footer .footer-top { padding-top: 50px; }
.footer .sitename { font-size: 26px; font-weight: 800; color: #111; }
.footer .footer-heading { color: #111; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.footer a { color: #111; }
.footer a:hover { text-decoration: underline; }
.footer .footer-links ul { list-style: none; padding: 0; }
.footer .footer-links li { padding: 5px 0; }
.footer-contact p { margin-bottom: 8px; }
.footer-contact i { color: #555; margin-right: 6px; }
.footer-tagline { font-style: italic; color: #555; }
.footer .social-links a { border: 1px solid var(--ujds-border); color: #111; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; margin-right: 8px; }
.footer .social-links a:hover { background: #111; border-color: #111; color: #fff; }
.footer .copyright { border-top: 1px solid var(--ujds-border); padding-top: 22px; color: #555; }
/* « © » discret qui mène au back-office */
.footer .copyright .ujds-admin-link { color: inherit; text-decoration: none; }
.footer .copyright .ujds-admin-link:hover { color: var(--ujds-accent); text-decoration: none; }

/* Bouton WhatsApp flottant */
.whatsapp-float { position: fixed; left: 18px; bottom: 18px; z-index: 999; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; font-size: 28px; }
.whatsapp-float:hover { color: #fff; background: #1ebe5b; }
.scroll-top { background: #111; }

/* Pagination Bootstrap aux couleurs de la charte */
.pagination { --bs-pagination-color: #111; --bs-pagination-active-bg: #111; --bs-pagination-active-border-color: #111; --bs-pagination-hover-color: #111; --bs-pagination-focus-box-shadow: none; }

#preloader { display: none; }

/* Types de publication et fiche événement */
.ujds-tag i { margin-right: 3px; }
.ujds-tag-urgent { background: #111; color: #fff; }
.ujds-card-event { font-size: 14px; color: #111; font-weight: 500; margin-bottom: 8px; }
.ujds-card-event i { color: var(--ujds-accent); }
.ujds-event { border: 1px solid var(--ujds-border); border-radius: 8px; padding: 18px 22px; margin: 0 0 24px; display: grid; gap: 10px; }
.ujds-event > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.ujds-event dt { font-weight: 600; color: #555; }
.ujds-event dt i { color: var(--ujds-accent); margin-right: 4px; }
.ujds-event dd { margin: 0; color: #111; }
.ujds-event-card { display: flex; gap: 16px; align-items: center; border: 1px solid var(--ujds-border); border-radius: 8px; padding: 16px; color: #111; height: 100%; }
.ujds-event-card:hover { border-color: #111; color: #111; }
.ujds-event-date { flex: 0 0 72px; text-align: center; border-right: 1px solid var(--ujds-border); padding-right: 14px; color: #555; font-size: 14px; text-transform: uppercase; }
.ujds-event-date strong { display: block; font-family: var(--heading-font); font-size: 32px; line-height: 1; color: #111; }
.ujds-event-type { display: block; font-size: 13px; font-weight: 600; color: var(--ujds-accent); text-transform: uppercase; letter-spacing: .5px; }
.ujds-event-title { display: block; font-family: var(--heading-font); font-weight: 700; font-size: 17px; margin: 2px 0; }
.ujds-event-meta { display: block; font-size: 14px; color: #555; }

/* Pages d'erreur */
.ujds-error-page { display: flex; flex-direction: column; min-height: 100vh; }
.ujds-error-header { position: static; }
.ujds-error { flex: 1; display: flex; align-items: center; padding: 60px 0; }
.ujds-error-code { font-family: var(--heading-font); font-weight: 800; font-size: clamp(90px, 20vw, 170px); line-height: 1; color: #ececec; margin: 0 0 10px; }
.ujds-error h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: #111; }
.ujds-error .lead { color: #555; max-width: 560px; margin: 0 auto; }
.ujds-error-footer { border-top: 1px solid var(--ujds-border); padding: 18px 0; color: #555; font-size: 14px; }
.ujds-error-footer img { vertical-align: middle; margin-right: 6px; }
/* Histoire : photo et vidéo d'une étape */
.ujds-timeline-media { display: flex; gap: 8px; margin-top: 10px; }
.ujds-timeline-media .ujds-thumb { width: 140px; flex: 0 0 140px; }

/* Appels SOS : boutons de paiement */
.ujds-pay { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }

/* Galerie : filtres sans bibliothèque */
[data-gallery-item][hidden] { display: none !important; }
.ujds-filters [data-filter] { cursor: pointer; }

/* Chiffres clés (finances) */
.ujds-finance { border: 1px solid var(--ujds-border); border-radius: 8px; background: #fff; padding: 1.25rem; height: 100%; }
.ujds-finance-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid #111; padding-bottom: .75rem; margin-bottom: .5rem; }
.ujds-finance-total span { color: #666; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.ujds-finance-total strong { font-size: 1.5rem; color: #111; }
.ujds-finance-table { margin: 0; }
.ujds-finance-table th { font-size: .8rem; color: #666; font-weight: 600; }
.ujds-finance-table td { vertical-align: top; }
.ujds-finance-bar { display: block; height: 4px; background: #f1ece8; border-radius: 2px; margin-top: .4rem; }
.ujds-finance-bar span { display: block; height: 100%; background: var(--ujds-accent); border-radius: 2px; }

/* Logo d'un moyen de paiement (Wave, Orange Money, Yas…) */
.ujds-donation-logo { display: block; height: 48px; width: auto; max-width: 140px; object-fit: contain; margin-bottom: .75rem; }

/* Sport : matchs, classements, vidéos */
.ujds-matches { display: grid; gap: 10px; }
.ujds-match { border: 1px solid var(--ujds-border); border-radius: 8px; background: #fff; padding: 12px 14px; }
.ujds-match-meta { font-size: .8rem; color: #666; margin-bottom: 6px; }
.ujds-match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.ujds-match-teams .team { font-weight: 700; color: #111; overflow-wrap: anywhere; }
.ujds-match-teams .home { text-align: right; }
.ujds-match-teams .team.is-winner { color: var(--ujds-accent); }
.ujds-match-teams .score { min-width: 64px; text-align: center; font-weight: 800; font-size: 1.15rem; background: #111; color: #fff; border-radius: 6px; padding: 4px 10px; }
.ujds-match-teams .score.is-pending { background: #f1f1f1; color: #555; font-size: .9rem; }
.ujds-match-note { font-size: .85rem; color: #555; margin-top: 6px; text-align: center; }
.ujds-match-note a { margin-left: 8px; white-space: nowrap; }
.ujds-group { margin-top: 28px; }
.ujds-standings { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: .9rem; background: #fff; }
.ujds-standings caption { caption-side: top; font-weight: 800; color: #111; font-size: 1.05rem; padding: 0 0 8px; }
.ujds-standings th, .ujds-standings td { padding: 8px 6px; border-bottom: 1px solid var(--ujds-border); text-align: center; }
.ujds-standings thead th { font-size: .75rem; text-transform: uppercase; color: #666; }
.ujds-standings tbody th { text-align: left; font-weight: 700; }
.ujds-standings tbody tr:first-child { background: #fdf3e6; }
.ujds-standings .pts { font-weight: 800; color: #111; }
.ujds-video { margin: 0; }
.ujds-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000; }
.ujds-video.is-vertical { max-width: 340px; margin: 0 auto; }
.ujds-video.is-vertical iframe { aspect-ratio: 9 / 16; }
.ujds-video video { width: 100%; max-height: 640px; border-radius: 8px; background: #000; display: block; }
.ujds-video figcaption { font-size: .85rem; color: #555; margin-top: 6px; }
details.ujds-box summary { cursor: pointer; }

/* Menu : sous-menus ouverts au clavier sur ordinateur */
@media (min-width: 1200px) {
  .navmenu .dropdown:focus-within > ul { opacity: 1; top: 100%; visibility: visible; }
  .navmenu .dropdown > a .toggle-dropdown { font-size: 12px; margin-left: 4px; }
}
