/* AFIS – Thème site public (bannière, boutons, couleurs) */
:root {
  --afis-primary: #0d7377;
  --afis-accent: #f5a425;
}

/* Bannière des pages internes (même style que l’accueil) */
.afis-banniere-inner {
  background: url('../../docs/bg1.jpg') center/cover no-repeat !important;
  padding: 80px 0;
  position: relative;
  min-height: 200px;
}
.afis-banniere-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.afis-banniere-inner .container { position: relative; z-index: 1; color: #fff; }
.afis-banniere-inner h2, .afis-banniere-inner h6 { color: #fff !important; }
.afis-banniere-inner h2 { margin-top: 10px; }
.afis-banniere-inner .main-button-red a { color: #fff; }

/* Activités : supprimer le fond vert, style carte neutre */
.services .item {
  background: #fff !important;
  color: #1f272b !important;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.services .item h4 { color: #1a1a2e; }
.services .item p { color: #5a5a5a !important; }
.services .item .icon img { border-radius: 8px; }

/* Blocs Khoutba et Activités : même hauteur, texte limité + bouton Voir plus */
#meetings .meeting-item,
#activites .meeting-item {
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
#meetings .meeting-item .down-content,
#activites .meeting-item .down-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#meetings .meeting-item .down-content p,
#activites .meeting-item .down-content p {
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  max-height: 5.2em;
}
#meetings .meeting-item .down-content .voir-plus,
#activites .meeting-item .down-content .voir-plus {
  margin-top: 10px;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--afis-primary);
}
#meetings .meeting-item .down-content .voir-plus:hover,
#activites .meeting-item .down-content .voir-plus:hover { color: #095456; }
/* Image des activités en pleine largeur dans le thumb */
#activites .meeting-item .thumb img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* Accueil : rapprocher les sections, titres lisibles, projets lisibles */
section.upcoming-meetings,
section.our-courses,
section.our-facts,
section.apply-now { padding-top: 50px !important; padding-bottom: 50px !important; }
section.upcoming-meetings { padding-top: 60px !important; }
.section-heading h2 {
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  color: #1a1a2e !important;
  text-shadow: 0 1px 2px rgba(255,255,255,0.9);
  margin-bottom: 28px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--afis-primary);
}
section.our-facts .section-heading h2 { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,0.5); border-bottom-color: rgba(255,255,255,0.3); }
#projets .count-area-content {
  background: rgba(255,255,255,0.95) !important;
  color: #1a1a2e !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
#projets .count-area-content h5 { color: #1a1a2e !important; font-weight: 700; margin-bottom: 10px; }
#projets .count-area-content p { color: #333 !important; }

.main-banner .caption h2 em { color: var(--afis-accent); }
.main-button-red a, .main-button-red { background: var(--afis-primary); border-color: var(--afis-primary); }
.main-button-red a:hover { background: #095456; border-color: #095456; }
.navbar .navbar-nav .nav-link:hover { color: var(--afis-primary); }
footer a:hover { color: var(--afis-accent); }
