/* ============================================================
   Association Centre Sahel – Feuille de styles principale
   Palette logo : Rouge soleil (#C62828) + Ambre dunes (#F59B00) + Brun (#5C2C0E)
   Typographie : Google Fonts – Inter
   ============================================================ */

/* ── Variables CSS – Palette Centre Sahel (logo) ─────────── */
:root {

  /* ============================================================
     PALETTE CENTRE SAHEL
     Ivoire + Vert Sauge / Sahel + Ocre + Bleu Paix
     ============================================================ */

  /* Or doré / Ambre lumineux */
  --cs-green-dark: #a16207;
  --cs-green: #ca8a04;
  --cs-green-light: #eab308;
  --cs-green-pale: #fefce8;
  --cs-green-very-pale: #fefce8;

  /* Fonds pâles & bordures */
  --cs-sage-pale: #fefce8;
  --cs-sage-subtle: #fefce8;
  --cs-sage-border: #fef08a;

  /* Ocre / Terre */
  --cs-ochre-dark: #A76516;
  --cs-ochre: #C98A32;
  --cs-ochre-light: #DDA85A;
  --cs-ochre-pale: #FBF3E5;

  /* Bleu Paix */
  --cs-blue-dark: #164B63;
  --cs-blue: #2C718C;
  --cs-blue-light: #5B9BB0;
  --cs-blue-pale: #EAF4F7;

  /* Ivoire / sable */
  --cs-ivory: #FAF7F0;
  --cs-sand: #F4EEE3;
  --cs-sand-dark: #E8DDCA;

  /* Blanc */
  --cs-white: #FFFFFF;

  /* Texte */
  --cs-text: #24352B;
  --cs-text-muted: #5C7063;

  /* Bordures */
  --cs-border: #DDE7DF;

  /* Compatibilité avec les anciens templates */
  --cs-red-dark: var(--cs-green-dark);
  --cs-red: var(--cs-green);
  --cs-red-light: var(--cs-green-light);
  --cs-red-pale: var(--cs-green-pale);

  --cs-amber-dark: var(--cs-ochre-dark);
  --cs-amber: var(--cs-ochre);
  --cs-amber-light: var(--cs-ochre-light);
  --cs-amber-pale: var(--cs-ochre-pale);

  --cs-brown-dark: #1E3729;
  --cs-brown: #2B4A37;
  --cs-brown-light: #527760;

  --cs-earth: var(--cs-ochre);

  /* Ombres aux reflets sauge doux */
  --cs-shadow:
    0 4px 24px rgba(43, 74, 55, 0.08);

  --cs-shadow-lg:
    0 12px 48px rgba(43, 74, 55, 0.13);

  /* Formes */
  --cs-radius: 12px;
  --cs-radius-lg: 20px;

  --transition:
    0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main:
    'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--cs-text);
  background: var(--cs-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--cs-brown);
}

a {
  color: var(--cs-red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--cs-red-dark);
}

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

/* ── Header / Navbar ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cs-white);
  border-bottom: 1px solid var(--cs-border);
  box-shadow: 0 2px 12px rgba(92, 44, 14, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--cs-shadow);
}

.navbar-brand-logo {
  height: 60px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* allow text-overflow to work */
}

.navbar-brand-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--cs-brown) !important;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-brand-subtitle {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--cs-text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile : logo un peu plus petit, subtitle masquée */
@media (max-width: 575.98px) {
  .navbar-brand-logo {
    height: 50px;
    max-width: 50px;
  }

  .navbar-brand-text {
    font-size: 0.82rem;
  }

  .navbar-brand-subtitle {
    display: none;
  }
}

/* Tablette */
@media (min-width: 576px) and (max-width: 1199.98px) {
  .navbar-brand-logo {
    height: 52px;
    max-width: 52px;
  }

  .navbar-brand-text {
    font-size: 0.9rem;
  }
}

.navbar .nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--cs-text) !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  background: var(--cs-amber-pale);
  color: var(--cs-brown) !important;
}

/* Mobile menu ouvert : liens empilés avec espacement */
@media (max-width: 1199.98px) {
  .navbar-collapse .navbar-nav {
    padding: 0.75rem 0;
    gap: 0.25rem;
  }

  .navbar-collapse .nav-link {
    border-radius: 8px;
    padding: 0.6rem 1rem !important;
  }

  .navbar-collapse .nav-item.ms-2 {
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }
}

/* Ajustements pour écrans intermédiaires (grands ordinateurs portables sans débordement) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-brand-logo {
    height: 52px;
    max-width: 52px;
  }

  .navbar-brand-text {
    font-size: 0.88rem;
  }

  .navbar-brand-subtitle {
    font-size: 0.58rem;
  }

  .navbar .nav-link {
    font-size: 0.84rem;
    padding: 0.4rem 0.65rem !important;
  }

}



/* ── Top Bar ───────────────────────────────────────────────── */
.top-bar {
  background: var(--cs-sage-pale);
  color: #274332;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--cs-sage-border);
}

.top-bar a {
  color: #274332;
  transition: color var(--transition);
}

.top-bar a:hover {
  color: var(--cs-ochre-dark);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #E8F1EA;
}

.hero::before {
  content: "CENTRE SAHEL";
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);

  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  white-space: nowrap;

  color: rgba(93, 132, 109, 0.12);

  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 1;
  filter: none;
  transform: scale(1.01);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(27, 49, 36, 0.80) 0%,
      rgba(45, 77, 57, 0.62) 48%,
      rgba(62, 98, 76, 0.30) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 138, 50, 0.18);
  border: 1px solid rgba(221, 168, 90, 0.55);
  color: #F4C878;
  padding: 0.4rem 1.2rem;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--cs-white);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: #E2B15F;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

/* ── Boutons ───────────────────────────────────────────────── */
.btn-sahel {
  background: var(--cs-green);
  color: var(--cs-white);
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-sahel:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(74, 112, 89, 0.32);
  color: var(--cs-white);
  background: var(--cs-green-dark);
}

.btn-gold {
  background: linear-gradient(135deg, var(--cs-amber), var(--cs-amber-dark));
  color: var(--cs-white);
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(245, 155, 0, 0.55);
  color: var(--cs-white);
}

.btn-outline-sahel {
  background: transparent;
  border: 2px solid var(--cs-white);
  color: var(--cs-white);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-outline-sahel:hover {
  background: var(--cs-white);
  color: var(--cs-brown);
  transform: translateY(-2px);
}

/* ── Statistiques (impact counter) ────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(245, 155, 0, 0.10);
  border-radius: 50%;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}

.stat-card .stat-icon {
  font-size: 2.8rem;
  color: #D5AA69;
  margin-bottom: 1rem;
}

.stat-card .stat-value {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #FFFFFF;
  display: block;
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ── Cartes de projet ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  background: var(--cs-amber-pale);
  color: var(--cs-amber-dark);
  padding: 0.35rem 1.1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--cs-brown);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--cs-red), var(--cs-amber));
  border-radius: 4px;
  margin: 0 auto 1.2rem;
}

.project-card,
.news-card {
  background: #FFFFFF;
  border: 1px solid #E1E9E3;
  box-shadow: 0 6px 24px rgba(43, 74, 55, 0.06);
}

.project-card:hover,
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(43, 74, 55, 0.12);
}

.project-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cs-amber-pale), var(--cs-sand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--cs-amber);
}

.project-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-active {
  background: var(--cs-red);
  color: var(--cs-white);
}

.status-completed {
  background: var(--cs-amber);
  color: var(--cs-white);
}

.status-planned {
  background: var(--cs-brown-light);
  color: var(--cs-white);
}

.project-card-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category-tag {
  display: inline-block;
  background: var(--cs-amber-pale);
  color: var(--cs-amber-dark);
  padding: 0.25rem 0.8rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cs-brown);
  margin-bottom: 0.7rem;
  line-height: 1.35;
}

.project-card-excerpt {
  color: var(--cs-text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
}

.project-card-footer {
  padding: 1rem 1.6rem;
  border-top: 1px solid var(--cs-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-meta {
  font-size: 0.78rem;
  color: var(--cs-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Cartes actualités ─────────────────────────────────────── */
.news-card {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  overflow: hidden;
  box-shadow: var(--cs-shadow);
  transition: all var(--transition);
  border: 1px solid var(--cs-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cs-shadow-lg);
}

.news-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.06);
}

.news-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.78rem;
  color: var(--cs-text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cs-brown);
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.news-card-excerpt {
  color: var(--cs-text-muted);
  font-size: 0.875rem;
  flex: 1;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cs-red);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: gap var(--transition);
}

.news-read-more:hover {
  gap: 0.8rem;
  color: var(--cs-red-dark);
}

/* ── Section À propos (accueil) ────────────────────────────── */
.about-section {
  padding: 6rem 0;
  background:
    linear-gradient(rgba(250, 247, 240, 0.96), rgba(250, 247, 240, 0.96)),
    repeating-linear-gradient(45deg,
      rgba(93, 132, 109, 0.04) 0,
      rgba(93, 132, 109, 0.04) 1px,
      transparent 1px,
      transparent 18px);
  position: relative;
}

.about-president-image {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.about-president-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to top,
      rgba(20, 35, 27, 0.72),
      rgba(20, 35, 27, 0));
  pointer-events: none;
}

.about-president-caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--cs-radius-lg);
  overflow: hidden;
}

.about-image-wrapper img {
  border-radius: var(--cs-radius-lg);
  box-shadow: var(--cs-shadow-lg);
}

.about-placeholder-fallback {
  height: 500px;
  background: linear-gradient(135deg, var(--cs-amber-pale), var(--cs-sand-dark));
  border-radius: var(--cs-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--cs-shadow-lg);
}

.about-placeholder-fallback i {
  font-size: 5rem;
  color: var(--cs-amber);
}

.about-placeholder-fallback p {
  color: var(--cs-brown);
  margin-top: 1rem;
  font-weight: 600;
}


.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--cs-ochre);
  color: var(--cs-white);
  padding: 1.5rem;
  border-radius: var(--cs-radius);
  text-align: center;
  font-weight: 700;
  box-shadow: var(--cs-shadow);
}

.about-badge .badge-number {
  font-size: 2rem;
  display: block;
}

.about-badge .badge-text {
  font-size: 0.75rem;
}

/* ── Partenaires ───────────────────────────────────────────── */
.partners-section {
  padding: 5rem 0;
  background: var(--cs-white);
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: var(--cs-radius);
  border: 1px solid var(--cs-border);
  transition: all var(--transition);
  filter: grayscale(60%);
  opacity: 0.7;
}

.partner-logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  box-shadow: var(--cs-shadow);
  border-color: var(--cs-green-pale);
}

.partner-logo-item img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background:
    radial-gradient(circle at 85% 20%,
      rgba(255, 255, 255, 0.10),
      transparent 28%),
    linear-gradient(135deg,
      var(--cs-blue-dark),
      var(--cs-blue));
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -45%;
  left: -8%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--cs-white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--cs-sage-pale);
  color: #33503F;
  border-top: 1px solid var(--cs-sage-border);
  padding: 5rem 0 0;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cs-brown);
  margin-bottom: 0.4rem;
}

.footer-brand-tagline {
  font-size: 0.82rem;
  color: #4D6958;
  line-height: 1.6;
}

.footer-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-brown);
  margin-bottom: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--cs-amber);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #a16207;
  font-size: 0.9rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--cs-ochre-dark);
  transform: translateX(4px);
}

.footer-links a i {
  color: var(--cs-green);
  font-size: 0.75rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: #a16207;
  align-items: flex-start;
}

.footer-contact-icon {
  color: var(--cs-green);
  font-size: 1.05rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #a16207;
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--cs-ochre-dark);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--cs-white);
  border: 1px solid var(--cs-sage-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2D4A39;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(43, 74, 55, 0.06);
}

.footer-social a:hover {
  background: var(--cs-green);
  border-color: var(--cs-green);
  color: var(--cs-white);
  transform: translateY(-3px);
}

.footer-receipt-text {
  color: #5A7766;
  font-size: 0.75rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid #D2E2D6;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.82rem;
  color: #557262;
}

.footer-legal a {
  color: #557262;
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--cs-ochre-dark);
}

/* ── Pages intérieures ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
  padding: 5rem 0 4rem;
  color: #fff8e7;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--cs-white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.page-hero .breadcrumb-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color var(--transition);
}

.page-hero .breadcrumb-item a:hover {
  color: #ffffff !important;
}

.page-hero .breadcrumb-item.active {
  color: #ffffff;
  font-weight: 600;
}

.page-hero .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.55);
}

/* Surcharge des styles inline hérités dans les templates */
.page-hero p[style],
.page-hero p {
  color: rgba(255, 255, 255, 0.95) !important;
  max-width: 620px;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease both;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* ── Formulaires ───────────────────────────────────────────── */
.form-control:focus {
  border-color: var(--cs-amber);
  box-shadow: 0 0 0 0.2rem rgba(245, 155, 0, 0.20);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cs-text);
}

/* ── Utilitaires ───────────────────────────────────────────── */
.text-green {
  color: var(--cs-brown) !important;
}

.text-gold {
  color: var(--cs-amber) !important;
}

.bg-green {
  background: var(--cs-brown) !important;
}

.bg-green-pale {
  background: var(--cs-amber-pale) !important;
}

.bg-sand {
  background: var(--cs-sand) !important;
}

.rounded-sahel {
  border-radius: var(--cs-radius) !important;
}

.shadow-sahel {
  box-shadow: var(--cs-shadow) !important;
}

.section-padding {
  padding: 6rem 0;
}

.section-padding-sm {
  padding: 4rem 0;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – Mobile First (Smartphones & iPhones)
   Breakpoints Bootstrap : xs<576 | sm≥576 | md≥768 | lg≥992
══════════════════════════════════════════════════════════════ */

/* ── Tablette (≤ 1199px) ─────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .hero {
    min-height: 60vh;
    padding: 4rem 0 3rem;
  }

  .stats-section {
    padding: 3rem 0;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .navbar-brand-logo {
    height: 44px;
  }

  .navbar-brand-text {
    font-size: 0.95rem;
  }

  .navbar-brand-subtitle {
    display: none;
  }

  /* Menu déroulant mobile plat */
  .navbar-collapse {
    background: var(--cs-white);
    border-top: 1px solid var(--cs-border);
    padding: 1rem 0.5rem 1.5rem;
    margin-top: 0.5rem;
    border-radius: 0 0 var(--cs-radius) var(--cs-radius);
    box-shadow: var(--cs-shadow);
  }

  .navbar-nav {
    gap: 0 !important;
  }

  .nav-link {
    padding: 0.7rem 1rem !important;
    border-radius: 8px;
  }

  .nav-link:hover {
    background: var(--cs-amber-pale);
  }

  /* Dropdown mobile affiche toujours */
  .dropdown-menu {
    box-shadow: none;
    border: none;
    background: var(--cs-amber-pale);
    margin: 0.3rem 0.5rem;
    border-radius: 8px;
  }


  /* Page hero intérieure */
  .page-hero {
    padding: 3.5rem 0 3rem;
  }

  .page-hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
}

/* ── Smartphone (≤ 767px) ───────────────────────────────────── */
@media (max-width: 767.98px) {

  /* Typographie fluide */
  html {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }

  h2 {
    font-size: clamp(1.3rem, 5vw, 1.7rem) !important;
  }

  h3 {
    font-size: clamp(1.1rem, 4vw, 1.4rem) !important;
  }

  /* Hero principal */
  .hero {
    min-height: auto;
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }

  /* Boutons côte à côte → empilés */
  .hero-content .d-flex.flex-wrap {
    gap: 0.75rem !important;
  }

  .btn-sahel,
  .btn-outline-sahel {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Stats */
  .stats-section {
    padding: 2rem 0;
  }

  .stat-card {
    padding: 1.25rem 0.75rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  /* Section paddings */
  .section-padding {
    padding: 3rem 0;
  }

  .section-padding-sm {
    padding: 2rem 0;
  }

  .section-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
  }

  /* Cards projets/actualités */
  .project-card,
  .news-card {
    border-radius: var(--cs-radius);
  }

  .project-card-image {
    height: 200px;
  }

  .project-card-body {
    padding: 1rem;
  }

  .project-card-footer {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .news-card-body {
    padding: 1rem;
  }

  .news-card-title {
    font-size: 1rem;
  }

  /* À propos – masque le badge flottant */
  .about-badge {
    display: none;
  }

  .about-image-wrapper {
    margin-bottom: 1.5rem;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Page hero intérieure compacte */
  .page-hero {
    padding: 2.5rem 0 2.5rem;
  }

  .page-hero::after {
    height: 40px;
  }

  /* Formulaire contact */
  .form-control {
    font-size: 1rem;
  }

  /* évite zoom iOS automatique */

  /* CTA section */
  .cta-section {
    padding: 3rem 0;
  }
}

/* ── Très petit écran (≤ 479px – iPhone SE, Galaxy A) ────────── */
@media (max-width: 479px) {
  .navbar-brand-text {
    font-size: 0.85rem;
  }

  .navbar-brand-logo {
    height: 38px;
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .project-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card-footer a.btn {
    width: 100%;
    text-align: center;
  }

  /* Badges filtres scrollables horizontalement */
  .d-flex.flex-wrap {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .d-flex.flex-wrap .badge {
    flex-shrink: 0;
  }
}

/* ── Touch – supprime hover sur mobile ──────────────────────── */
@media (hover: none) {
  .project-card:hover {
    transform: none;
    box-shadow: var(--cs-shadow);
  }

  .news-card:hover {
    transform: none;
  }

  .btn-sahel:hover {
    transform: none;
  }
}

/* =========================================================
   PAGE À PROPOS - MOT DU PRÉSIDENT
   ========================================================= */

.president-card {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 380px;
  padding-bottom: 30px;
}

.president-img-wrapper {
  width: 100%;
  height: 480px;
  overflow: hidden;
  border: 4px solid var(--cs-white);
  border-radius: var(--cs-radius-lg);
  background: var(--cs-sand-dark);
  box-shadow: var(--cs-shadow-lg);
}

.president-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.president-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  padding: 14px 20px;
  background: var(--cs-green-dark);
  color: var(--cs-white);
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow);
  text-align: center;
  z-index: 2;
}

.president-name {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 1;
}

.president-role {
  display: block;
  margin-top: 3px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 1;
}

.president-message {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--cs-amber);
}

.president-quote {
  position: absolute;
  top: -1.5rem;
  left: 0.5rem;
  font-size: 3rem;
  color: var(--cs-ochre);
  opacity: 0.15;
}

.president-lead {
  margin-bottom: 1rem;
  color: var(--cs-brown-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.8;
}

.president-text {
  margin-bottom: 1rem;
  color: var(--cs-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.president-signature {
  margin-top: 1.5rem;
}

.president-signature strong {
  display: block;
  color: var(--cs-brown);
  font-size: 0.95rem;
}

.president-signature span {
  display: block;
  margin-top: 2px;
  color: var(--cs-text-muted);
  font-size: 0.8rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

  .president-card {
    max-width: 350px;
  }

  .president-img-wrapper {
    height: 450px;
  }

}

@media (max-width: 575.98px) {

  .president-card {
    max-width: 320px;
  }

  .president-img-wrapper {
    height: 420px;
  }

  .president-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 14px 20px;

    background-color: var(--cs-ochre);
    color: #ffffff;

    border-radius: var(--cs-radius);
    box-shadow: 0 8px 22px rgba(38, 61, 47, 0.18);

    text-align: center;
    z-index: 2;

    opacity: 1;
  }

  .president-lead {
    font-size: 1.1rem;
    line-height: 1.7;
  }

}
