/* ===================================================
   FEPAM – Fuuvi ou Enfants des Parents du Monde
   Custom CSS – Design 2025
=================================================== */

/* ---- CSS Variables ---- */
:root {
  --primary:     #1a5c38;
  --primary-dark:#0f3a22;
  --primary-light:#2d8a56;
  --secondary:   #c8931a;
  --accent:      #e8f4ee;
  --text-dark:   #1c2b22;
  --text-muted:  #6b7c72;
  --bg-light:    #f4f9f6;
  --white:       #ffffff;
  --border:      #d0e4d8;
  --shadow:      0 4px 24px rgba(26,92,56,0.10);
  --shadow-lg:   0 12px 40px rgba(26,92,56,0.18);
  --radius:      12px;
  --radius-lg:   20px;
  --font:        'Inter', 'Segoe UI', sans-serif;
  --transition:  0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
p  { color: var(--text-muted); line-height: 1.8; }
a  { text-decoration: none; transition: var(--transition); }

/* ---- Utilities ---- */
.section-pad  { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }
.text-primary  { color: var(--primary) !important; }
.text-secondary-color { color: var(--secondary) !important; }
.bg-primary-custom { background: var(--primary); }
.bg-accent   { background: var(--accent); }
.badge-domain {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .03em;
}

/* ===================================================
   NAVBAR
=================================================== */
.fepam-navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(26,92,56,0.08);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--border);
}
.fepam-navbar .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.fepam-navbar .brand-logo {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.fepam-navbar .brand-text .brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.fepam-navbar .brand-text .brand-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
}
.fepam-navbar .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: var(--transition);
}
.fepam-navbar .nav-link:hover,
.fepam-navbar .nav-link.active {
  background: var(--accent);
  color: var(--primary) !important;
}
.btn-donate {
  background: var(--secondary);
  color: white !important;
  border-radius: 8px;
  padding: 9px 22px !important;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  transition: var(--transition);
}
.btn-donate:hover {
  background: #a87515;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,147,26,0.35);
}

/* ===================================================
   HERO SECTION
=================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}
.hero-section::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%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}
.hero-section h1 {
  color: white;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 20px;
}
.hero-section h1 span { color: var(--secondary); }
.hero-section p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-primary:hover {
  background: #a87515;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,147,26,0.45);
}
.btn-hero-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.12);
  color: white;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .stat-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}
.hero-stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
  align-self: stretch;
}
.hero-img-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  opacity: 0.92;
}
.hero-float-badge {
  position: absolute;
  bottom: -16px;
  left: 20px;
  background: white;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-float-badge .hfb-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}
.hero-float-badge .hfb-text p { margin: 0; font-size: 0.7rem; color: var(--text-muted); }
.hero-float-badge .hfb-text strong { font-size: 0.9rem; color: var(--text-dark); }

/* ===================================================
   SECTION HEADERS
=================================================== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.section-header .eyebrow::before,
.section-header .eyebrow::after {
  content: '';
  width: 28px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.section-header h2 { color: var(--text-dark); margin-bottom: 16px; }
.section-header p  { max-width: 560px; margin: 0 auto; }

/* ===================================================
   DOMAIN CARDS (Domaines d'intervention)
=================================================== */
.domain-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 24px; }
.domain-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.domain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}
.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.domain-icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.domain-card h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: 8px; }
.domain-card p  { font-size: 0.87rem; margin: 0; }

/* ===================================================
   ORPHELIN CARDS
=================================================== */
.orphelin-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.orphelin-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.orphelin-card .card-img-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.orphelin-card .card-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.orphelin-card:hover .card-img-wrapper img { transform: scale(1.05); }
.orphelin-card .card-img-overlay-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--secondary);
  color: white;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
}
.orphelin-card .card-body { padding: 20px; }
.orphelin-card .card-body h5 { font-size: 1.05rem; color: var(--text-dark); margin-bottom: 8px; }
.orphelin-card .card-body .date-info { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.orphelin-card .card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}
.btn-card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-card-link:hover { color: var(--primary-dark); gap: 10px; }

/* ===================================================
   SERVICE CARDS
=================================================== */
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .s-img {
  height: 210px;
  overflow: hidden;
}
.service-card .s-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.service-card:hover .s-img img { transform: scale(1.06); }
.service-card .s-body { padding: 22px; flex: 1; }
.service-card .s-body h5 { font-size: 1.05rem; color: var(--text-dark); margin-bottom: 10px; }
.service-card .s-body p { font-size: 0.87rem; }
.service-card .s-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
}

/* ===================================================
   ARTICLE CARDS
=================================================== */
.article-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.article-card .a-img { height: 200px; overflow: hidden; }
.article-card .a-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .a-img img { transform: scale(1.05); }
.article-card .a-body { padding: 22px; }
.article-card .a-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.article-card .a-body h5 { font-size: 1.02rem; color: var(--text-dark); margin-bottom: 10px; line-height: 1.4; }
.article-card .a-body p  { font-size: 0.85rem; }

/* ===================================================
   TEAM CARDS
=================================================== */
.team-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.team-card .team-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--accent);
}
.team-card .team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card .team-name { font-size: 1.02rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.team-card .team-role {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50px;
  padding: 3px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.team-card p { font-size: 0.84rem; }

/* ===================================================
   FAQ
=================================================== */
.faq-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-dark);
  background: white;
  padding: 18px 22px;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--accent);
  color: var(--primary);
  box-shadow: none;
}
.faq-accordion .accordion-button::after { filter: none; }
.faq-accordion .accordion-body { padding: 16px 22px 20px; color: var(--text-muted); font-size: 0.94rem; }

/* ===================================================
   CONTACT
=================================================== */
.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 46px; height: 46px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-text { font-size: 0.88rem; }
.contact-info-text strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-text span { color: var(--text-dark); font-weight: 500; }
.form-control-fepam {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.94rem;
  transition: var(--transition);
  width: 100%;
  background: white;
}
.form-control-fepam:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,92,56,0.1);
}
.form-label-fepam { font-size: 0.84rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; display: block; }
.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 36px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,92,56,0.3);
}

/* ===================================================
   ABOUT
=================================================== */
.about-img-stack { position: relative; }
.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 440px; object-fit: cover; }
.about-badge-float {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 140px;
}
.about-badge-float .big-num { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.about-badge-float .big-label { font-size: 0.72rem; opacity: .85; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.value-item:last-child { border-bottom: none; }
.value-dot {
  width: 10px; height: 10px;
  background: var(--secondary);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.value-item h6 { font-size: 0.94rem; color: var(--text-dark); margin-bottom: 4px; }
.value-item p  { font-size: 0.84rem; margin: 0; }

/* ===================================================
   MISSION BAND
=================================================== */
.mission-band {
  background: var(--primary);
  color: white;
  padding: 60px 0;
}
.mission-band h2 { color: white; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.mission-band p { color: rgba(255,255,255,0.8); }
.mission-band .eyebrow { color: var(--secondary); }
.mission-band .eyebrow::before,
.mission-band .eyebrow::after { background: var(--secondary); }

/* ===================================================
   PAGINATION & LOAD MORE
=================================================== */
.btn-load-more {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 12px 36px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-load-more:hover {
  background: var(--primary);
  color: white;
}

/* ===================================================
   DETAIL PAGE HERO
=================================================== */
.detail-hero {
  background: var(--primary);
  padding: 64px 0 48px;
  color: white;
}
.detail-hero h1 { color: white; font-size: clamp(1.8rem, 4vw, 3rem); }
.detail-hero .breadcrumb-fepam {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.detail-hero .breadcrumb-fepam a { color: var(--secondary); }
.detail-hero .breadcrumb-fepam span { color: rgba(255,255,255,0.45); }

/* ===================================================
   FOOTER
=================================================== */
.fepam-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.fepam-footer .footer-brand .brand-name { font-size: 1.4rem; font-weight: 800; color: white; }
.fepam-footer .footer-brand p { font-size: 0.88rem; margin-top: 12px; max-width: 280px; }
.fepam-footer h6 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
  font-weight: 700;
}
.fepam-footer .footer-link {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: var(--transition);
}
.fepam-footer .footer-link:hover { color: var(--secondary); padding-left: 6px; }
.fepam-footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.7);
}
.fepam-footer .footer-contact-item i { color: var(--secondary); margin-top: 2px; }
.fepam-footer .social-links { display: flex; gap: 10px; margin-top: 16px; }
.fepam-footer .social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}
.fepam-footer .social-link:hover { background: var(--secondary); border-color: var(--secondary); color: white; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 40px 0 0;
}
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--secondary); }

/* ===================================================
   ALERTS & NOTIFICATIONS
=================================================== */
.alert-fepam-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  color: #065f46;
  padding: 14px 18px;
  font-size: 0.9rem;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 768px) {
  .section-pad { padding: 56px 0; }
  .hero-section { min-height: auto; padding: 100px 0 56px; }
  .hero-stats { gap: 20px; }
  .hero-stat-divider { display: none; }
  .about-badge-float { position: static; margin-top: 24px; display: inline-block; }
  .domain-cards { grid-template-columns: 1fr; }
}
