/* ============================================================
   SOPAST — Société Africaine de Santé Publique
   Feuille de styles principale
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --green-dark:   #02446b;
  --green-mid:    #1382c2;
  --green-light:  #43adea;
  --gold:         #f07c00;
  --gold-light:   #f6a957;
  --cream:        #f8f5ef;
  --white:        #ffffff;
  --gray-soft:    #f2f0eb;
  --text-dark:    #1a1a18;
  --text-muted:   #6b6b63;
}

/* ── RESET & BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* ── TOPBAR ── */
.topbar {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  padding: 8px 0;
  letter-spacing: 0.02em;
}
.topbar a { color: rgba(255,255,255,0.75); text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar .sep { margin: 0 12px; opacity: 0.35; }
.topbar .social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 12px; transition: all .2s;
}
.topbar .social-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  padding: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  position: sticky; top: 0; z-index: 1000;
}
.navbar-inner { padding: 14px 0; }
.navbar-brand img { height: 52px; }
.navbar-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 700;
  color: var(--green-dark); line-height: 1.25;
}
.nav-link {
  font-size: 13.5px; font-weight: 500; color: var(--text-dark) !important;
  padding: 8px 14px !important; transition: color .2s;
  letter-spacing: 0.01em;
}
.nav-link:hover, .nav-link.active { color: var(--green-light) !important; }
.dropdown-menu {
  border: none; box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-radius: 10px; padding: 8px; min-width: 220px;
}
.dropdown-item {
  font-size: 13px; padding: 9px 14px; border-radius: 6px; color: var(--text-dark);
  transition: background .15s;
}
.dropdown-item:hover { background: var(--gray-soft); color: var(--green-dark); }
.btn-adherer {
  background: var(--gold); color: var(--white) !important; border-radius: 6px;
  padding: 9px 20px !important; font-weight: 600; font-size: 13px;
  transition: background .2s, transform .15s;
}
.btn-adherer:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── TITRES DE SECTION ── */
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 12px; display: block;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700;
  color: var(--green-dark); line-height: 1.25;
}
.section-title span { color: var(--gold); }
.underline-gold {
  width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin-top: 16px;
}

/* ── BOUTONS GLOBAUX ── */
.btn-hero-primary {
  background: var(--gold); color: var(--white); border: none;
  padding: 14px 32px; border-radius: 8px; font-weight: 600; font-size: 15px;
  transition: all .2s; text-decoration: none; display: inline-block;
}
.btn-hero-primary:hover { background: var(--gold-light); color: var(--white); transform: translateY(-2px); }
.btn-hero-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 14px 32px; border-radius: 8px; font-weight: 500; font-size: 15px;
  transition: all .2s; text-decoration: none; display: inline-block;
}
.btn-hero-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }

/* ── HERO ── */
.hero {
  min-height: 88vh;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 55%, #1f4d3d 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-badge {
  display: inline-block; background: rgba(200,151,58,0.2); color: var(--gold-light);
  border: 1px solid rgba(200,151,58,0.4); border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 16px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white); line-height: 1.15;
  font-weight: 700; margin-bottom: 24px;
}
.hero h1 span { color: var(--gold-light); }
.hero p {
  font-size: 17px; color: rgba(255,255,255,0.78);
  line-height: 1.75; max-width: 540px; margin-bottom: 40px;
}
.hero-card {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 16px;
  padding: 36px 32px; color: var(--white);
}
.hero-card blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-style: italic; line-height: 1.7;
  color: rgba(255,255,255,0.88); border: none; padding: 0; margin: 0 0 24px;
}
.hero-card blockquote::before {
  content: '\201C'; color: var(--gold); font-size: 2.5rem;
  line-height: 0; vertical-align: -0.4em; margin-right: 4px;
}
.president-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: var(--white); flex-shrink: 0;
}

/* ── STATS BAR ── */
.stats-bar { background: var(--green-dark); padding: 36px 0; }
.stat-item { text-align: center; padding: 0 24px; }
.stat-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 700; color: var(--gold-light); line-height: 1;
}
.stat-item .label {
  font-size: 13px; color: rgba(255,255,255,0.65);
  margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase;
}
.stat-divider { width: 1px; background: rgba(255,255,255,0.12); height: 48px; align-self: center; }

/* ── ABOUT ── */
.about-section { padding: 96px 0; background: var(--white); }
.about-img-wrapper { position: relative; border-radius: 16px; overflow: hidden; }
.about-img-wrapper img { width: 100%; height: 400px; object-fit: cover; border-radius: 16px; }
.about-img-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--green-dark); color: var(--white);
  border-radius: 10px; padding: 12px 18px;
  font-size: 13px; font-weight: 500;
}
.about-img-badge strong {
  font-family: 'Playfair Display', serif; font-size: 17px;
  display: block; color: var(--gold-light);
}
.about-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.about-link-card {
  background: var(--gray-soft); border-radius: 10px; padding: 16px;
  text-decoration: none; color: var(--text-dark); transition: all .2s;
  display: flex; align-items: flex-start; gap: 12px;
}
.about-link-card:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.about-link-card:hover .alink-icon { background: var(--gold); color: var(--white); }
.alink-icon {
  width: 36px; height: 36px; border-radius: 8px; background: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  color: var(--green-light); flex-shrink: 0; transition: all .2s;
}
.alink-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.alink-sub { font-size: 11.5px; opacity: 0.65; }

/* ── AXES ── */
.axes-section { padding: 96px 0; background: var(--cream); }
.axe-card {
  background: var(--white); border-radius: 14px; padding: 32px 28px;
  height: 100%; transition: all .25s;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative; overflow: hidden;
}
.axe-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom; transition: transform .3s;
}
.axe-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.09); transform: translateY(-4px); }
.axe-card:hover::before { transform: scaleY(1); }
.axe-num {
  font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700;
  color: rgba(10,61,46,0.08); line-height: 1; margin-bottom: 16px;
}
.axe-icon {
  width: 48px; height: 48px; background: var(--green-dark); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--gold-light); margin-bottom: 20px;
}
.axe-card h4 { font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; color: var(--green-dark); }
.axe-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

/* ── MEMBERSHIP ── */
.membership-section { padding: 96px 0; background: var(--white); }
.member-card {
  background: var(--gray-soft); border-radius: 14px; padding: 32px 28px;
  transition: all .25s; text-align: center;
}
.member-card:hover { background: var(--green-dark); }
.member-card:hover h4,
.member-card:hover p,
.member-card:hover .m-icon { color: var(--white); }
.member-card:hover .m-icon-wrap { background: var(--gold); }
.m-icon-wrap {
  width: 60px; height: 60px; background: var(--green-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  transition: background .25s;
}
.m-icon { font-size: 26px; color: var(--gold-light); transition: color .25s; }
.member-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; transition: color .25s; }
.member-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; transition: color .25s; }

/* ── PARTNERS TICKER ── */
.partners-section { padding: 60px 0; background: var(--cream); overflow: hidden; }
.partners-title {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); text-align: center; margin-bottom: 36px;
}
.ticker-track {
  display: flex; gap: 40px; animation: ticker 22s linear infinite; width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-logo {
  height: 44px; width: auto; opacity: 0.55; filter: grayscale(100%);
  transition: all .3s; flex-shrink: 0;
}
.partner-logo:hover { opacity: 1; filter: none; }
.partner-placeholder {
  height: 44px; padding: 0 16px;
  background: var(--white); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.06em; white-space: nowrap; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
  opacity: 0.65; transition: opacity .2s;
}
.partner-placeholder:hover { opacity: 1; }

/* ── REVUE ── */
.revue-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  position: relative; overflow: hidden;
}
.revue-section::after {
  content: 'RASSTE'; position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  font-family: 'Playfair Display', serif; font-size: 14rem; font-weight: 700;
  color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none;
}
.revue-section h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); color: var(--white); }
.revue-section p { color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.75; max-width: 480px; }
.btn-revue {
  background: var(--gold); color: var(--white); border: none;
  padding: 14px 32px; border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-revue:hover { background: var(--gold-light); color: var(--white); transform: translateY(-2px); }
.revue-badge {
  display: inline-block; background: rgba(200,151,58,0.2); color: var(--gold-light);
  border: 1px solid rgba(200,151,58,0.35); border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; margin-bottom: 16px;
}

/* ── CONTACT BAND ── */
.contact-band { background: var(--gray-soft); padding: 64px 0; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 44px; height: 44px; background: var(--green-dark); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gold-light); flex-shrink: 0;
}
.contact-item h6 {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px;
}
.contact-item p { font-size: 14px; color: var(--text-dark); margin: 0; line-height: 1.5; }

/* ── FOOTER ── */
footer {
  background: var(--green-dark); color: rgba(255,255,255,0.75);
  padding: 72px 0 32px;
}
footer .logo-wrap { margin-bottom: 20px; }
footer .brand-name {
  font-family: 'Playfair Display', serif; font-size: 20px;
  color: var(--white); font-weight: 700;
}
footer p.desc {
  font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,0.6);
  max-width: 280px; margin-bottom: 24px;
}
footer h6 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 18px;
}
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 10px; }
footer ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13.5px; transition: color .2s; }
footer ul li a:hover { color: var(--gold-light); }
footer .footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 15px; margin-right: 8px; transition: all .2s;
}
footer .footer-social a:hover { border-color: var(--gold); color: var(--gold); }
footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; margin-top: 56px;
  font-size: 12.5px; color: rgba(255,255,255,0.4);
}
footer .footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
footer .footer-bottom a:hover { color: var(--gold-light); }

/* ── ANIMATIONS AU SCROLL ── */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ── BACK TO TOP ── */
#back-top {
  position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px;
  background: var(--green-dark); color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18); cursor: pointer;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 999;
  text-decoration: none;
}
#back-top.show { opacity: 1; pointer-events: all; }
#back-top:hover { background: var(--gold); color: var(--white); }

/* ── PAGE BANNER (pages intérieures) ── */
.page-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 72px 0 60px;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); color: var(--white);
  font-weight: 700; margin-bottom: 12px;
}
.page-banner .breadcrumb { background: transparent; margin: 0; padding: 0; }
.page-banner .breadcrumb-item a { color: var(--gold-light); text-decoration: none; font-size: 13px; }
.page-banner .breadcrumb-item { color: rgba(255,255,255,0.6); font-size: 13px; }
.page-banner .breadcrumb-item.active { color: rgba(255,255,255,0.85); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }

/* ── CONTENU PAGE INTÉRIEURE ── */
.page-content { padding: 80px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 72px 0 56px; }
  .hero-card { margin-top: 40px; }
  .about-links { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .revue-section::after { display: none; }
}