:root {
  --primary-color: #198754;
  --secondary-color: #0d6efd;
  --dark-color: #212529;
  --gradient-primary: linear-gradient(135deg, #198754, #20c997);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
}

* { box-sizing: border-box; }

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  margin: 0;
  padding: 0;
  padding-top: 72px; /* Hauteur de la navbar */
}

/* Ajustements responsives pour le body */
@media (max-width: 767.98px) {
  body { padding-top: 65px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  body { padding-top: 70px; }
}

/* ----------------------------
   CARROUSEL – TEXTE CENTRÉ ✅
   ---------------------------- */
.hero-carousel,
.carousel-item {
  height: 60vh;
  position: relative;
  overflow: hidden;
}
.carousel-item {
  background-size: cover;
  background-position: center;
}
.carousel-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  color: white !important;
}
.carousel-content h1,
.carousel-content .h4,
.carousel-content p,
.carousel-content .btn {
  color: white !important;
}
.carousel-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.carousel-content p.lead {
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

/* Contrôles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.8rem;
  height: 2.8rem;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 50%;
}
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.carousel-indicators .active {
  background-color: white;
}

/* ----------------------------
   Sections & Cartes
   ---------------------------- */
.section-padding {
  padding: 80px 0;
}
.card {
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius);
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.icon-circle i {
  font-size: 1.5rem;
}
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
  z-index: 1020;
}
h2{
  color: #198754;
}
.appelAction{
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}
.appelAction h2{
    color: white;
}
.hs-apropos{
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 100px 0;
}

/* Hero section pages intérieures (sans style inline)
   — contact.php, organes.php, presentation.php
   Les pages avec style="padding:100px 0" inline gardent la priorité. */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 100px 0;
  color: #fff;
}
.hero-section h1,
.hero-section h2,
.hero-section p {
  color: #fff;
}





/* ----------------------------
   Responsive
   ---------------------------- */
@media (max-width: 575.98px) {
  /* Mobile portrait */
  .hero-section { padding: 60px 0; }
  .hero-carousel,
  .carousel-item { height: 50vh; }
  .carousel-content h1 { font-size: 1.8rem; }
  .carousel-content p.lead { font-size: 1rem; }
  .section-padding { padding: 60px 0; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  /* Mobile paysage / petite tablette */
  .hero-section { padding: 70px 0; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Tablette */
  .hero-section { padding: 80px 0; }
}

@media (max-width: 768px) {
  .hero-carousel,
  .carousel-item { height: 50vh; }
  .carousel-content h1 { font-size: 1.8rem; }
  .carousel-content p.lead { font-size: 1rem; }
  .section-padding { padding: 60px 0; }
}

@media (min-width: 1480px) {
  .carousel-content h1 { font-size: 2.6rem; }
  .carousel-content p.lead { font-size: 1.25rem; }
}
/* ----------------------------
   Carrousel : Taille adaptative du texte et des boutons
   ---------------------------- */

/* Grand écran (≥1200px) – taille par défaut */
.carousel-content h1 {
  font-size: 2.4rem;
}
.carousel-content .h4 {
  font-size: 1.4rem;
}
.carousel-content p.lead {
  font-size: 1.2rem;
}
.carousel-content .btn {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
}

/* Ordinateur moyen / petit desktop (992px – 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .carousel-content h1 {
    font-size: 2.1rem;
  }
  .carousel-content .h4 {
    font-size: 1.25rem;
  }
  .carousel-content p.lead {
    font-size: 1.1rem;
  }
  .carousel-content .btn {
    font-size: 1rem;
    padding: 0.65rem 1.3rem;
  }
}

/* Tablette (768px – 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .carousel-content h1 {
    font-size: 1.9rem;
  }
  .carousel-content .h4 {
    font-size: 1.15rem;
  }
  .carousel-content p.lead {
    font-size: 1rem;
  }
  .carousel-content .btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Mobile (≤767.98px) */
@media (max-width: 767.98px) {
  .carousel-content h1 {
    font-size: 1.6rem;
  }
  .carousel-content .h4 {
    font-size: 1rem;
  }
  .carousel-content p.lead {
    font-size: 0.95rem;
  }
  .carousel-content .btn {
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem;
    z-index: 1030;
  }
  .carousel-indicators {
    z-index: 0;
  }
}
/* Ajustements responsives */
@media (max-width: 767.98px) {
  body { padding-top: 65px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  body { padding-top: 70px; }
}
