/* === Général === */
.header-bg {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('photo.jpg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f8ff;
  margin: 0;
  padding: 0;
  color: #1d3557;
}

.bg-gradient {
  background: linear-gradient(45deg, #a8dadc, #457b9d);
  color: #1d3557;
}

/* === Titres === */
h2.display-5,
.section-title {
  font-weight: 700;
  text-transform: uppercase;
  color: #1d3557;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
}

/* === Navbar === */
.navbar {
  background-color: #457b9d !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.navbar-brand,
.navbar .nav-link {
  color: #fff !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.navbar-brand img {
  border-radius: 5px;
}

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-nav .nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffd166 !important;
}

.navbar .btn {
  font-weight: 600;
  border-radius: 30px;
  padding: 0.4rem 1.2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .btn:hover {
  background-color: #f1c40f !important;
  color: #1d3557 !important;
}

/* === Objectifs === */
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #a8dadc;
  color: #1d3557;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-circle:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.fw-semibold {
  font-weight: 600;
  font-size: 1.05rem;
  color: #1d3557;
}

.d-flex.align-items-start {
  cursor: default;
  padding: 1rem;
  border-radius: 10px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.d-flex.align-items-start:hover {
  background-color: #e0f0ff;
  box-shadow: 0 8px 16px rgba(70, 130, 180, 0.3);
}

/* === Section spacing === */
section.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* === Mission - Card styles === */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(70, 130, 180, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(70, 130, 180, 0.3);
}

.card-body i {
  font-size: 3rem;
  color: #457b9d;
  margin-bottom: 1rem;
}

.card-title,
.card-text {
  color: #1d3557;
  font-family: inherit;
}

.card-title {
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.card-text {
  font-size: 1rem;
  font-weight: 400;
}

/* === Footer === */
footer {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  background-color: #457b9d;
  color: #f8f9fa;
  padding: 1.5rem 0;
  text-align: center;
}

footer a {
  color: #ffd166;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #f0f8ff;
  text-decoration: underline;
}

/* === Carrousel === */
/* === Carrousel plein écran ou plein espace === */
#adhpCarousel {
  width: 100%;
}

#adhpCarousel .carousel-inner {
  width: 100%;
  height: 70vh; /* Hauteur personnalisable selon ton besoin */
  max-height: 100vh;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(70, 130, 180, 0.15);
}

.carousel-item {
  width: 100%;
  height: 100%;
}

#adhpCarousel img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* L’image couvre tout l’espace */
  object-position: top center; /* Affiche le haut de l'image */
  transition: transform 0.5s ease-in-out;
}

/* Contrôles du carrousel */
#adhpCarousel .carousel-control-prev-icon,
#adhpCarousel .carousel-control-next-icon {
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}

/* === Responsive mobile === */
@media (max-width: 575.98px) {
  #adhpCarousel .carousel-inner {
    height: 250px; /* Réduction pour les petits écrans */
  }

  #adhpCarousel img {
    height: 100%;
    object-fit: cover;
  }
}


/* === Breaking News Ticker === */
.news-ticker {
  position: relative;
  height: 30px;
  background-color: #e8ecf2;
  color: #ea1616;
  font-weight: 600;
  overflow: hidden;
  border-radius: 5px;
  padding-left: 10px;
  display: flex;
  align-items: center;
  font-family: inherit;
}

.news-ticker div {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-scroll 20s linear infinite;
}

.news-ticker:hover div {
  animation-play-state: paused;
}
/* Couleur verte pour l’icône WhatsApp uniquement */
footer a[href*="wa.me"] i.bi-whatsapp {
  color: #25D366 !important;
}
/* Couleurs personnalisées pour les icônes de réseaux sociaux dans le footer */
footer i.bi-facebook {
  color: #1877F2; /* Bleu Facebook */
}

footer i.bi-linkedin {
  color: #0077B5; /* Bleu LinkedIn */
}

footer a[href*="wa.me"] i.bi-whatsapp {
  color: #25D366 !important; /* Vert WhatsApp */
}
footer i.bi-twitter-x {
  color: #000000; /* noir, comme le logo X */
}


@keyframes ticker-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.dg-section {
  background: #f9f9f9;
  padding: 60px 0;
}



.dg-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.dg-title {
  color: #0d6efd;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  border-bottom: 2px solid #0d6efd33;
  padding-bottom: 10px;
}

.dg-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #0d6efd;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.dg-photo:hover {
  transform: scale(1.05);
}

.dg-name {
  font-weight: bold;
  color: #333;
  margin-top: 10px;
}

.dg-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}
.dg-section .row > div {
  display: flex;
}

.dg-box {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}
/* === Responsive === */
@media (max-width: 575.98px) {
  .fw-semibold {
    font-size: 1rem;
  }

  .icon-circle {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .card-body i {
    font-size: 2rem;
  }

  #adhpCarousel img {
    max-height: 250px;
  }

  .news-ticker {
    font-size: 0.9rem;
    height: 25px;
  }
}