/* ═══════════════════════════════════════════════════════════════════
   ONG PLAYDOO INTERNATIONAL — CSS Principal
   Forum-Chantier AfricanWeYouthIMPACT30/63
   v4 — Polices augmentees - Responsive renforce - Conteneurs stables
═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 17px;
  /* Empeche l'effet de "rebond" (rubber-band) quand on tire la page au-dela
     du haut/bas ou des cotes avec la souris/le trackpad : ca laissait
     apparaitre un espace vide qui rebondissait - page jamais figee. */
  overscroll-behavior: none;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overscroll-behavior: none;
}

/* Empeche le debordement horizontal (marges negatives des .row Bootstrap)
   SANS le mettre sur html/body : casserait le "position: sticky" du menu. */
main { overflow-x: clip; }


h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

a { color: var(--accent); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--accent-hover); }

/* Transition douce et generalisee sur tous les boutons/liens cliquables,
   pour un retour visuel agreable sans aucun mouvement automatique/anime. */
.btn, button, .nav-link, .dropdown-item, .page-link, .badge {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .15s ease, opacity .2s ease;
}

img { max-width: 100%; height: auto; }

.py-6 { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.topbar {
  background: var(--bg-topbar);
  border-bottom: var(--topbar-border);
  padding: .4rem 0;
  font-size: .92rem;
  color: var(--topbar-text);
  z-index: 1030;
}

.topbar-social a {
  color: var(--topbar-text);
  font-size: 1.05rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.topbar-social a:hover {
  color: var(--accent);
  background: rgba(255,255,255,.15);
}

.btn-topbar {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--topbar-text) !important;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .2s, color .2s, border-color .2s;
  letter-spacing: .3px;
}
.btn-topbar:hover {
  background: rgba(255,255,255,.18);
  color: #fff !important;
  border-color: rgba(255,255,255,.5);
}

.btn-topbar-connexion {
  background: var(--accent) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.btn-topbar-connexion:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.avatar-xs { width: 22px; height: 22px; object-fit: cover; }

.main-navbar {
  background: var(--bg-navbar);
  box-shadow: var(--navbar-shadow);
  padding: .38rem 0;
  z-index: 1020;
}

/* Seuil personnalise (au lieu du xxl Bootstrap a 1400px) : le logo + le nom
   complet + tous les liens (dont "Partenaires") ont besoin d'un peu plus de
   place pour ne jamais faire deborder "Connexion" hors de l'ecran. */
.nav-desktop-only { display: none; }
.nav-desktop-only .navbar-nav { flex-direction: row; flex-wrap: nowrap; }
.nav-mobile-only { display: flex; }
@media (min-width: 1500px) {
  .nav-desktop-only { display: flex !important; flex: 1 1 auto; }
  .nav-mobile-only { display: none !important; }
}

.main-navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.main-navbar .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  max-height: 62px;
}

.main-navbar .navbar-brand img,
.main-navbar .logo-light,
.main-navbar .logo-dark {
  height: 56px !important;
  max-height: 56px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
  border-radius: 8px;
  outline: 1.5px solid rgba(255,255,255,.18);
  box-shadow:
    0 0 0 3px rgba(255,255,255,.06),
    0 4px 14px rgba(0,0,0,.22);
  transition:
    transform   .28s cubic-bezier(.34,1.56,.64,1),
    box-shadow  .28s ease,
    outline     .28s ease;
}

.main-navbar .navbar-brand:hover img,
.main-navbar .navbar-brand:hover .logo-light,
.main-navbar .navbar-brand:hover .logo-dark {
  transform:   scale(1.06);
  outline:     2px solid var(--accent);
  box-shadow:
    0 0 0 5px rgba(var(--accent-rgb,15,122,69),.18),
    0 6px 20px rgba(0,0,0,.32);
}

.navbar-brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.2;
  margin-left: .7rem;
}
.brand-ong {
  display: block;
  font-size: .94rem;
  letter-spacing: .5px;
  white-space: nowrap;
  color: var(--accent);
}
.brand-int {
  display: block;
  font-size: .58rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .8;
  color: rgba(255,255,255,.8);
}

.main-navbar .nav-link,
.main-navbar .navbar-nav .nav-link,
[data-theme] .main-navbar .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  letter-spacing: .1px;
  padding: .5rem .5rem !important;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active,
[data-theme] .main-navbar .nav-link:hover,
[data-theme] .main-navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

.main-navbar .nav-link.dropdown-toggle::after {
  border-top-color: rgba(255,255,255,.85);
}

.main-navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  position: relative;
}
.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-badge { font-size: .95rem; }

.main-navbar .dropdown-menu {
  /* En retirant "navbar-expand-xxl" (cf. seuil personnalise du menu), on a
     perdu la regle Bootstrap qui rend les sous-menus flottants au lieu de
     pousser le contenu de la page (menu qui "grandissait" a l'ouverture). */
  position: absolute !important;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  min-width: 240px;
  margin-top: .4rem !important;
}

.main-navbar .dropdown-item {
  color: var(--text-primary);
  font-size: .96rem;
  border-radius: var(--radius-sm);
  padding: .5rem .8rem;
  transition: background .15s, color .15s;
}
.main-navbar .dropdown-item:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.mega-header {
  padding: .3rem .8rem .5rem;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}

.btn-cta-nav {
  background: var(--accent);
  color: white !important;
  border: none;
  border-radius: 50px;
  font-size: .96rem;
  font-weight: 700;
  padding: .5rem 1.4rem;
  white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.btn-cta-nav:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.main-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.4);
}
.main-navbar .navbar-toggler-icon {
  filter: invert(1);
}

.hero-section { position: relative; width: 100%; overflow: hidden; }

.hero-swiper {
  width: 100%;
  height: 65vh;
  min-height: 400px;
  max-height: 600px;
}

.hero-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-slide-default {
  background: linear-gradient(135deg, #0d2818 0%, #1d4e89 100%);
}

.hero-slide img,
.hero-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-height: 600px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding-top: 3rem;
  width: 100%;
}

.hero-title {
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  margin-bottom: 1rem;
  line-height: 1.15;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.hero-title em {
  color: var(--accent);
  font-style: normal;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  color: rgba(255,255,255,.88);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.btn-hero {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  padding: .75rem 2rem;
  font-size: 1.02rem;
  font-weight: 600;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.btn-hero:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: white;
  background: rgba(255,255,255,.2);
  width: 44px; height: 44px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after { font-size: 1.1rem; }
.hero-swiper .swiper-pagination-bullet {
  background: white;
  opacity: .5;
}
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; width: 24px; border-radius: 4px; }

.section-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .5rem;
  font-family: 'Space Mono', monospace;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.bg-section-alt { background-color: var(--bg-section-alt) !important; }

.intro-badge { display: inline-block; }
.intro-badge span {
  background: var(--accent-light);
  color: var(--accent);
  padding: .3rem 1rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.intro-text {
  color: var(--text-secondary);
  font-size: 1.18rem;
  max-width: 800px;
  margin: 0 auto;
}

.pilier-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform .25s, box-shadow .25s, border-color .2s;
  height: 100%;
}
.pilier-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.pilier-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.pilier-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,14,0) 55%, rgba(8,20,14,.55) 100%);
}
.pilier-card-number {
  position: absolute; z-index: 1;
  top: .8rem; left: .8rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace;
  font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.pilier-card-body { padding: 1.4rem 1.4rem 2.2rem; position: relative; }

.pilier-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .6rem;
  font-family: 'Playfair Display', serif;
}
.pilier-desc {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: .8rem;
}
.pilier-odds { font-size: .82rem; color: var(--text-muted); }
.pilier-arrow {
  position: absolute;
  bottom: 1rem; right: 1.2rem;
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform .2s;
}
.pilier-card:hover .pilier-arrow { transform: translateX(4px); }

.event-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.event-img {
  height: 140px;
  background: var(--bg-secondary);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.event-img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.event-body {
  padding: 1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-type {
  background: var(--accent-light);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.event-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: .5rem 0;
  font-family: 'Playfair Display', serif;
  flex: 1;
}
.event-meta {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .88rem;
  color: var(--text-muted);
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-img {
  height: 160px;
  background: var(--bg-secondary);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.news-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.news-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-category {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: .5rem 0;
  font-family: 'Playfair Display', serif;
  flex: 1;
}
.news-resume {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: .8rem;
}
.news-meta {
  display: flex;
  gap: .8rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: auto;
}

.partners-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}
.partner-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .8rem;
  border-radius: var(--radius-md);
  transition: background .2s;
}
.partner-logo-link:hover { background: var(--accent-light); }
.partner-logo-link img {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .6;
  transition: filter .2s, opacity .2s;
}
.partner-logo-link:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.partner-name-fallback {
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  max-width: 120px;
}

.impactor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.2rem .8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: transform .25s, box-shadow .25s;
}
.impactor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.impactor-photo {
  position: relative;
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  margin-bottom: .8rem;
}
.impactor-photo img { width: 100%; height: 100%; object-fit: cover; }
.impactor-photo-placeholder {
  width: 100%; height: 100%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--accent);
}
.pioneer-badge {
  position: absolute;
  bottom: 4px; right: 4px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  border: 2px solid white;
}
.impactor-name {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .2rem;
}
.impactor-pays, .impactor-pilier, .impactor-fonction { font-size: .85rem; color: var(--text-muted); margin: 0; }
.impactor-pilier { color: var(--accent); font-weight: 600; }
.impactor-fonction { font-weight: 600; color: var(--text-secondary); margin-top: .15rem; }

.main-footer { background: var(--bg-footer); }

.footer-top { padding: 4rem 0 3rem; }

.footer-brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1.3;
  display: block;
}

.footer-tagline {
  font-size: .88rem;
  color: var(--text-footer);
  opacity: .75;
  line-height: 1.6;
  margin: 0;
}

.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: var(--text-footer);
  font-size: 1.05rem;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--accent); color: white; }

.footer-heading {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .4rem; }
.footer-links a {
  color: var(--text-footer);
  font-size: .92rem;
  opacity: .75;
  transition: color .2s, opacity .2s;
}
.footer-links a:hover { color: var(--accent); opacity: 1; }

.footer-contact { font-size: .92rem; color: var(--text-footer); opacity: .8; }
.footer-contact a { color: var(--accent); }

.footer-domain { background: rgba(255,255,255,.05); color: var(--text-footer); opacity: .6; }

.footer-bottom {
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--text-footer);
  font-size: .88rem;
  opacity: .6;
}

.messages-container {
  position: fixed;
  top: 80px; right: 1rem;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 2rem);
}

.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s;
  box-shadow: var(--shadow-md);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-3px); }

.theme-menu { min-width: 210px; }

.topbar .dropdown-menu {
  z-index: 1050 !important;
}

.theme-option {
  font-size: .94rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-option.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
}

.offcanvas {
  background: var(--bg-card);
  color: var(--text-primary);
}
.offcanvas .nav-link {
  color: var(--text-primary) !important;
  padding: .65rem .5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.05rem !important;
  font-weight: 600;
}
.offcanvas .nav-link:hover { color: var(--accent) !important; }

.page-header {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  width: 100%;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.page-header-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  color: white;
  width: 100%;
}
.page-header-title {
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  font-weight: 900;
  color: white;
  margin-bottom: .5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.page-header-subtitle {
  font-size: 1.12rem;
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
}
.breadcrumb-custom { background: none; padding: 0; margin: 0; font-size: .95rem; }
.breadcrumb-custom .breadcrumb-item a { color: rgba(255,255,255,.75); }
.breadcrumb-custom .breadcrumb-item a:hover { color: white; }
.breadcrumb-custom .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

.ong-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  width: 100%;
  box-sizing: border-box;
}
.ong-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ong-card .card-body { padding: 1.5rem; }
.ong-card .card-img-top {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.badge-accent  { background: var(--accent-light);   color: var(--accent);   font-weight: 700; }
.badge-accent-2{ background: var(--accent-2-light);  color: var(--accent-2); font-weight: 700; }

.btn-accent {
  background: var(--accent);
  color: white; border: none;
  border-radius: 50px; font-weight: 600;
  font-size: 1rem;
  transition: background .2s, transform .15s;
}
.btn-accent:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); }

.btn-outline-accent {
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50px; font-weight: 600; background: transparent;
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.btn-outline-accent:hover { background: var(--accent); color: white; }

.rich-content {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
  width: 100%;
  max-width: 75ch;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.rich-content img,
.rich-content table,
.rich-content blockquote { max-width: 100%; }
.rich-content p { margin: 0 0 .9rem; }
.rich-content h1, .rich-content h2, .rich-content h3,
.rich-content h4, .rich-content h5, .rich-content h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.3;
}
.rich-content h1 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 1.1rem 0 .6rem; }
.rich-content h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 1rem 0 .5rem; }
.rich-content h3 { font-size: clamp(1.15rem, 1.9vw, 1.35rem); margin: .9rem 0 .5rem; }
.rich-content h4, .rich-content h5, .rich-content h6 { font-size: 1.05rem; margin: .8rem 0 .4rem; }
.rich-content h1:first-child, .rich-content h2:first-child,
.rich-content h3:first-child { margin-top: 0; }
.rich-content strong { color: var(--accent); font-weight: 700; }
.rich-content em { font-style: italic; color: var(--text-secondary); }
.rich-content ul, .rich-content ol { padding-left: 1.3rem; margin: 0 0 .9rem; }
.rich-content li { margin-bottom: .3rem; }
.rich-content img { border-radius: var(--radius-md); margin: .9rem 0; }
.rich-content blockquote {
  border-left: 4px solid var(--accent);
  padding: .7rem 1.1rem;
  margin: .9rem 0;
  background: var(--bg-section-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.rich-content table { width: 100%; margin-bottom: .9rem; }
.rich-content a { text-decoration: underline; }

.rich-content + hr,
.ong-card hr { margin: 1.4rem 0; opacity: .15; }

.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.dashboard-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  text-align: center;
}
.dashboard-stat .stat-value {
  font-size: 2.1rem; font-weight: 800;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
}
.dashboard-stat .stat-label {
  font-size: .85rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}

.form-control, .form-select {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-label {
  font-weight: 600;
  font-size: .94rem;
  color: var(--text-secondary);
  margin-bottom: .35rem;
}

.pagination .page-link {
  color: var(--accent);
  border-color: var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-sm) !important;
  margin: 0 2px;
  font-size: .98rem;
  transition: background .15s, color .15s;
}
.pagination .page-link:hover { background: var(--accent-light); }
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.award-card::before {
  content: '🏆';
  position: absolute;
  top: -10px; right: -10px;
  font-size: 4rem;
  opacity: .05;
}
.award-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.award-card .award-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto .8rem;
}
.award-card .award-name   { font-weight: 700; color: var(--text-primary); font-size: 1.02rem; }
.award-card .award-pays   { font-size: .88rem; color: var(--text-muted); }
.award-card .award-categorie {
  font-size: .85rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
  padding: .2rem .7rem;
  display: inline-block;
  margin-top: .4rem;
  font-weight: 600;
}
/* Onglets Bootstrap (Médiathèque, Publications...) — couleurs de marque */
.nav-pills .nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  border-radius: 50px;
}
.nav-pills .nav-link:hover { color: var(--accent); }
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: var(--accent);
  color: #fff;
}

/* Charte des 12 AAA30/63 Awards — carte photo */
.award-charte-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
}
.award-charte-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.award-charte-img {
  position: relative;
  height: 170px;
  background-size: cover;
  background-position: center;
}
.award-charte-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,14,0) 40%, rgba(8,20,14,.75) 100%);
}
.award-charte-categorie {
  position: absolute; z-index: 1;
  left: 1rem; bottom: .8rem;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  background: rgba(212,160,23,.92);
  color: #1c1503;
  border-radius: 50px;
  padding: .25rem .8rem;
}
.award-charte-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.award-charte-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: .5rem;
  font-size: 1.05rem;
}

.statut-laureat { border-color: var(--accent-2, #d4a017); }
.statut-laureat::after {
  content: '★ LAUREAT';
  position: absolute;
  top: .8rem; left: -.5rem;
  background: var(--accent-2, #d4a017);
  color: white;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: .2rem .9rem;
  transform: rotate(-5deg);
  box-shadow: var(--shadow-sm);
}

/* Texte "Ils ont été récompensés" (Lauréats) — bien plus grand et visible */
.section-eyebrow-lg {
  font-size: 1.4rem;
  letter-spacing: 1px;
  font-family: 'Playfair Display', serif;
  text-transform: none;
  font-weight: 800;
  margin-bottom: .8rem;
}

@media (max-width: 1199.98px) {
  .container, .container-lg, .container-xl { max-width: 100%; }
}

@media (max-width: 991.98px) {
  html { font-size: 16.5px; }
  .rich-content { font-size: 1.06rem; }
}

@media (max-width: 767px) {
  html { font-size: 16px; } /* jamais en dessous de 16px : confort de lecture mobile */
  .hero-swiper  { height: 55vh; min-height: 320px; }
  .hero-title   { font-size: 1.7rem; }
  .hero-subtitle{ font-size: 1rem; }
  .section-title{ font-size: 1.5rem; }
  .py-6         { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .event-img    { height: 120px; }
  .event-img img{ height: 120px; }
  .news-img     { height: 140px; }
  .news-img img { height: 140px; }
  .rich-content { font-size: 1.02rem; line-height: 1.65; }
  .page-header-title { font-size: 1.7rem; }
  .page-header-subtitle { font-size: 1rem; }
  .container, .container-sm { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 575.98px) {
  html { font-size: 16px; } /* jamais en dessous de 16px : confort de lecture mobile */
  .container { padding-left: .9rem; padding-right: .9rem; }
  .ong-card.p-4, .ong-card.p-md-5 { padding: 1.2rem !important; }
  .rich-content { font-size: .98rem; }
}

.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; } }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.logo-dark  { display: none; }
.logo-light { display: block; }
[data-theme="dark"] .logo-dark  { display: block; }
[data-theme="dark"] .logo-light { display: none;  }

.btn-don {
  background: #d4a017 !important;
  color: #ffffff !important;
  border: 2px solid transparent !important;
  border-radius: 50px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: .3px !important;
  padding: .55rem 1.6rem !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .45rem !important;
  text-decoration: none !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
  box-shadow: 0 4px 18px rgba(212,160,23,.55) !important;
  transition: transform .2s, box-shadow .2s, background .2s !important;
  -webkit-appearance: none !important;
}

.btn-don::after {
  display: none !important;
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

.btn-don:hover,
.btn-don:focus {
  background: #a67c12 !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
  box-shadow:
    0 8px 28px rgba(212,160,23,.65),
    0 0 0 4px rgba(212,160,23,.2) !important;
  text-decoration: none !important;
  outline: none !important;
}

.btn-don:active {
  transform: translateY(0) !important;
  box-shadow: 0 3px 10px rgba(212,160,23,.4) !important;
}

.btn-don.btn-don-lg {
  font-size: 1.2rem !important;
  padding: .85rem 2.5rem !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 25px rgba(212,160,23,.6) !important;
}

.btn-don.btn-don-sm {
  font-size: .88rem !important;
  padding: .38rem 1rem !important;
}

.offcanvas .btn-don {
  width: 100% !important;
  justify-content: center !important;
  font-size: 1.1rem !important;
  padding: .85rem 1.5rem !important;
  margin-bottom: 1rem !important;
  border-radius: 12px !important;
}