/* ========================================================= 
   AMBFA — CUSTOM CSS 
   (chargé APRES bootstrap.min.css & style.css) 
   ========================================================= */

/* ---------- Palette Burkina ---------- */
:root{
  --bf-red-600:#C1121F; /* rouge principal */
  --bf-red-700:#A1101B; /* hover */
  --bf-green-700:#064E3B;/* vert foncé nav */
  --bf-gold-500:#F2C200; /* or (accents) */
  --bf-border:#E5E7EB;
  --radius-lg:16px;
  --radius-md:12px;
  --radius-sm:8px;
}

/* ===== Police globale ===== */
html, body {
  font-family: 'Open Sans', Arial, sans-serif;
}

/* brand banner */
#brandbar {
  background-color: #B22222 !important; /* Rouge institutionnel moderne */
  color: #fff !important;
  padding-top: 3px !important;
  padding-bottom: 0px !important;
}

#brandbar a {
  color: #fff !important;
  text-decoration: none;
}

#brandbar a:hover {
  color: #ffe8e8 !important; /* Rouge clair au survol */
}

#brandbar .logo-site-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

#brandbar .logo img {
  height: 50px;
}

#brandbar .site-title {
  font-weight: 600;
  line-height: 1.0;
  font-size: 16px; /* remplace clamp(...) par px */
}

/* Bouton du menu déroulant */
#brandbar .dropdown .btn {
  background-color: #fff !important;   /* fond blanc */
  color: #000 !important;              /* texte noir */
  border: 1px solid #ccc;              /* petit contour gris clair */
}

#brandbar .dropdown .btn:hover,
#brandbar .dropdown .btn:focus,
#brandbar .dropdown.show .btn {
  background-color: #f5f5f5 !important; /* fond gris clair au survol */
  color: #000 !important;
  border-color: #aaa;
}



.navbar-nav {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.navbar-nav .nav-link {
  position: relative;
  padding: 10px 15px;
  transition: color 0.3s;
}
.navbar-nav .nav-link::before,
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s;
}
.navbar-nav .nav-link::before { top: 0; }
.navbar-nav .nav-link::after { bottom: 0; }
.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link:hover::after {
  background-color: red;
}

/* =========================================================
   NAV BAR (VERT FONCÉ + TEXTE BLANC)
   --------------------------------------------------------- */
.sticky-top{
  top:-100px;
  transition:.5s;
}
.navbar{
  background-color:#064E3B !important;
  border-bottom:0;
  margin-top: 15px;   /* décale la barre vers le bas */
}
.navbar .nav-link{
  color:#fff !important;
  font-weight:600;
}
.navbar .nav-link:hover,
.navbar .nav-link.active{
  color:#ffd700 !important;
}
@media (min-width:992px){
  .navbar .navbar-nav{
    margin:0 auto;
    display:flex;
    justify-content:center;
  }
}
.navbar .nav-link{
  position:relative;
  padding:10px 15px;
  transition:color .3s;
}
.navbar .nav-link::before,
.navbar .nav-link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background-color:transparent;
  transition:background-color .3s;
}
.navbar .nav-link::before{ top:0; }
.navbar .nav-link::after{ bottom:0; }
.navbar .nav-link:hover::before,
.navbar .nav-link:hover::after{
  background-color:var(--bf-red-600);
}

/* Bouton Lire l'article */
.lire-actu {
  display: block;
  width: fit-content;
  margin: 15px auto;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #c1121f;
  text-decoration: none;
  border: 2px solid #c1121f;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.lire-actu:hover {
  background-color: #c1121f;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Bouton plus d'articles */
.plus-actu {
  display: block;
  width: max-content;
  margin: 25px auto;
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 600;
  color: #064e3b;
  text-decoration: none;
  border: 2px solid #064e3b;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.plus-actu:hover {
  background-color: #064e3b;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ============================
   NAVBAR — STYLE MOBILE (<992px)
   ============================ */
@media (max-width: 991.98px) {
  .sticky-top .navbar {
    background-color: #fff !important;
    padding: 8px 16px;
    box-shadow: 0 1px 0 rgba(0,0,0,.08);
  }

  .navbar-brand {
    margin-right: auto;
  }
  .navbar-brand h1 {
    font-size: 22px;
    margin: 0;
  }

  .navbar-toggler {
    border: none !important;
    padding: 6px 8px;
    outline: none !important;
    box-shadow: none !important;
  }
  .navbar-toggler-icon {
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml;charset=utf8,\
      <svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'>\
        <path stroke='rgba(0,0,0,0.85)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/>\
      </svg>"
    ) !important;
    background-size: 100% 100%;
  }

  .navbar-collapse {
    background-color: #fff !important;
    border-top: 1px solid #e6e6e6;
    padding: 10px 0;
  }

  .navbar-collapse .navbar-nav .nav-link {
    display: block;
    color: #222 !important;
    font-size: 16px;
    padding: 10px 18px;
    border-bottom: 1px solid #f0f0f0;
  }
  .navbar-collapse .navbar-nav .nav-link:last-child {
    border-bottom: 0;
  }
  .navbar-collapse .navbar-nav .nav-link:hover,
  .navbar-collapse .navbar-nav .nav-link:focus,
  .navbar-collapse .navbar-nav .nav-link.active {
    background-color: #f8f9fa;
    color: #0A5A44 !important;
  }

  .navbar-collapse .dropdown-menu {
    position: static;
    float: none;
    background: #fff;
    border: 0;
    border-top: 1px solid #f0f0f0;
    margin: 0;
    box-shadow: none;
  }
  .navbar-collapse .dropdown-item {
    color: #222;
    padding: 10px 24px;
    font-size: 16px;
    border-bottom: 1px solid #f7f7f7;
  }
  .navbar-collapse .dropdown-item:last-child {
    border-bottom: 0;
  }
  .navbar-collapse .dropdown-item:hover,
  .navbar-collapse .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #0A5A44;
  }

  .navbar .dropdown-toggle::after {
    margin-left: .4rem;
    vertical-align: .2em;
    border-top-color: #333;
  }
}

/* Forcer l’icône burger visible en mobile */
@media (max-width: 991.98px) {
  .navbar {
    background-color: #fff !important;
  }
  .navbar-toggler {
    border: none !important;
    padding: 6px 8px;
    box-shadow: none !important;
  }
  .navbar-toggler-icon {
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml;charset=utf8,\
      <svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'>\
        <path stroke='rgba(0,0,0,0.85)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/>\
      </svg>"
    ) !important;
    background-size: 100% 100%;
  }
  .navbar-collapse {
    background:#fff !important;
    border-top: 1px solid #e6e6e6;
    padding: 10px 0;
  }
  .navbar-collapse .nav-link {
    color:#222 !important;
    padding:10px 18px;
    border-bottom:1px solid #f0f0f0;
  }
  .navbar-collapse .dropdown-menu {
    position: static;
    float: none;
    background:#fff;
    border:0;
    border-top:1px solid #f0f0f0;
    margin:0;
    box-shadow:none;
  }
}

/* ============================================
   Harmonisation logo + titre desktop / mobile
   ============================================ */
.site-title,
.navbar-brand span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  text-decoration: none;
}

#brandbar .site-title a {
  font-size: 20px;
  font-weight: 700;
  color: #fff !important;
}
#brandbar .site-title a:hover {
  color: #ffe8e8 !important;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}
.navbar-brand span {
  font-size: 16px;
  display: inline-block;
}
.navbar-brand span strong {
  font-weight: 800;
}

.logo-site-title,
.navbar-brand.d-lg-none {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 991.98px) {
  .navbar.bg-white {
    background-color: #C1121F !important;
  }
  .navbar-brand span {
    color: #fff !important;
  }
  .navbar-toggler {
    border-color: rgba(255,255,255,0.6) !important;
  }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,\
      <svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'>\
        <path stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/>\
      </svg>") !important;
  }
}


/* ===== Carrousel custom AMBFA (compatible Bootstrap) ===== */

#contient-carousel { --slides: 5; }

#contient-carousel.ambf-carousel{
  position: relative;
  width: 100%;
  max-width: 1188px;
  margin: 24px auto; /* petit espace autour pour le test */
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  background: #000; /* évite un flash blanc au chargement */
}

/* Piste : horizontale */
#contient-carousel .ambf-slides{
  display: flex;
  height: 100%;
  transition: transform .5s ease;
  will-change: transform;
}

/* Une slide = 100% de la largeur visible */
#contient-carousel .ambf-slide{
  flex: 0 0 100%;
  position: relative;
  height: clamp(240px, 36vw, 520px);
  overflow: hidden;
}

/* Image plein cadre, non déformée */
#contient-carousel .ambf-slide img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Légende lisible */
#contient-carousel .ambf-caption{
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 6vw, 40px);
  transform: translateX(-50%);
  width: min(92%, 1000px);
  background: rgba(0,0,0,.70);
  color: #fff;
  padding: clamp(6px, 1.5vw, 16px) clamp(10px, 2vw, 24px);
  border-radius: 12px;
  text-align: center;
  line-height: 1.25;
  font-size: clamp(16px, 2.3vw, 32px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

/* Flèches */
#contient-carousel .ambf-nav{
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-20%);
  padding: 0 8px;
  pointer-events: none;
}
#contient-carousel .ambf-nav button{
  pointer-events: auto;
  height: 42px; width: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.70);
  color: #fff;
  font-size: 28px; line-height: 42px;
  cursor: pointer;
  transition: background .2s;
}
#contient-carousel .ambf-nav button:hover{ background: rgba(0,0,0,.6); }

/* Petits écrans */
@media (max-width: 576px){
  #contient-carousel .ambf-slide{ height: clamp(200px, 48vw, 340px); }
  #contient-carousel .ambf-caption{
    width: 94%;
    font-size: clamp(14px, 4vw, 18px);
  }
}


/* actualité pleine page */
.va-article img { max-width:100%; height:auto; }
.va-sticky { position: sticky; top: 88px; } /* ajuste selon la hauteur de ta navbar */


/* Full post (2/3) */
.va-article h1,
.va-article .h1,
.va-article .display-1 { font-size: 2.2rem; line-height: 1.15; margin-bottom: .75rem; }

.va-article h2,
.va-article .h2,
.va-article .display-2,
.va-article h1 + h2 { font-size: 1.6rem; line-height: 1.2; margin-top: 1.25rem; margin-bottom: .5rem; 
}


/* tailles qui s’ajustent selon la largeur d’écran */
.va-article h1,
.va-article .h1,
.va-article .display-1 {
  font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.25rem);
  line-height: 1.15;
  margin-bottom: .75rem;
}

.va-article h2,
.va-article .h2,
.va-article .display-2 {
  font-size: clamp(1.25rem, 1.4vw + .55rem, 1.6rem);
  line-height: 1.2;
  margin-top: 1.1rem;
  margin-bottom: .5rem;
}

/* Si tu vois encore des gros titres (display-1, display-2), force l’override */
.va-article .display-1,
.va-article .display-2 { font-size: inherit !important; line-height: inherit !important; }

/* Pour template conteneur-xervices */
/************************************
 * Mise en page générale
 ************************************/
.conteneur-services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
}

/************************************
 * Bloc principal : contenu sélectionné
 ************************************/
.service-principal {
    flex: 2;
    min-width: 300px;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.service-principal h1,
.service-principal h2,
.service-principal h3 {
    margin-top: 0;
    color: #222;
}

/************************************
 * Bloc latéral : liste des fichiers
 ************************************/
.service-liste {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.service-liste h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #444;
}

/************************************
 * Liste des fichiers
 ************************************/
.service-liste ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-liste li {
    margin-bottom: 12px;
}

/* Lien normal */
.service-liste a {
    display: block;
    padding: 10px 12px;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    color: #0077cc;
    font-weight: 500;
    transition: all 0.25s ease-in-out;
}

/* Lien au survol */
.service-liste a:hover {
    background-color: #0077cc;
    color: #fff;
    border-color: #0077cc;
}

/* Fichier actif */
.service-liste a.active {
    background-color: #0077cc;
    color: #fff;
    border-color: #0077cc;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/************************************
 * Responsive design
 ************************************/
@media (max-width: 992px) {
    .conteneur-services {
        flex-direction: column;
    }

    .service-principal,
    .service-liste {
        min-width: 100%;
    }

    .service-liste {
        margin-top: 20px;
    }
}


/************************************
 * Ajustement global pour cat-template
 ************************************/
.conteneur-services {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Espace entre contenu principal et colonne */
    max-width: 1200px; /* Largeur max globale */
    margin: 0 auto; /* Centrer le bloc */
    padding: 20px;
}

/* Zone principale */
.service-principal {
    flex: 2;
    min-width: 500px;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Colonne latérale */
.service-liste {
    flex: 1;
    min-width: 280px;
    max-width: 360px; /* Évite une colonne trop large */
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Responsive : mobile et tablette */
@media (max-width: 992px) {
    .conteneur-services {
        flex-direction: column;
        max-width: 95%;
        padding: 10px;
    }

    .service-principal,
    .service-liste {
        min-width: 100%;
        max-width: 100%;
    }
}


/************************************
 * TITRES PRINCIPAUX & SOUS-TITRES
 ************************************/

/* Titre principal de la page */
.service-principal h1 {
    font-size: 2rem;           /* Plus grand pour le titre principal */
    font-weight: 700;          /* Gras pour l'impact */
    color: #1c3c6e;            /* Bleu institutionnel */
    margin-bottom: 20px;
}

/* Sous-titres H2 */
.service-principal h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;               /* Gris foncé pour la lisibilité */
    margin-top: 25px;
    margin-bottom: 10px;
    border-left: 4px solid #1c3c6e;  /* Trait institutionnel */
    padding-left: 8px;
}

/* Sous-titres H3 */
.service-principal h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #444;
    margin-top: 20px;
    margin-bottom: 8px;
}

/* Paragraphes sous les titres */
.service-principal p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

/************************************
 * LISTE DES FICHIERS (AUTRES CONTENUS)
 ************************************/

/* Lien normal */
.service-liste a {
    display: block;
    padding: 10px 14px;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    font-size: 15px;
    color: #1c3c6e; /* Bleu institutionnel */
    font-weight: 500;
    transition: all 0.25s ease-in-out;
}

/* Survol */
.service-liste a:hover {
    background-color: #f1f1f1;
    color: #1c3c6e;
}

/* ÉLÉMENT ACTIF : fond rouge */
.service-liste a.active {
    background-color: #c30000; /* Rouge institutionnel */
    color: #fff;
    border-color: #c30000;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}




/* Rouge institutionnel principal */


:root {
  --red-main: #B22222;      /* Rouge institutionnel principal */
  --red-hover: #C62828;    /* Rouge dynamique au survol */
  --red-dark: #8B0000;     /* Rouge prestige, plus profond */
  --green-main: #064E3B;   /* Vert principal pour les menus */
  --gold-accent: #F2C200;  /* Or pour les accents */
  --border-color: #E5E7EB;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}


.service-principal h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1c3c6e;  /* Bleu institutionnel */
    margin-bottom: 20px;
}
.service-principal h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
    border-left: 4px solid #1c3c6e;
    padding-left: 8px;
}


.service-liste a.active {
    background-color: var(--red-main); /* Rouge élégant */
    color: #fff;
    border-color: var(--red-main);
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}



/* ===== NAVIGATION MENU ===== */

/* Liens par défaut */
.navbar-nav .nav-link {
    color: white !important; /* Couleur du texte par défaut */
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

/* Au survol */
.navbar-nav .nav-link:hover {
    color: #fff !important;                 /* Texte blanc au survol */
    background-color: #B22222 !important;   /* Rouge institutionnel */
    border-radius: 4px;                     /* Coins légèrement arrondis */
}

/* Lien actif */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus,
.navbar-nav .show > .nav-link {
    color: #fff !important;                 
    background-color: #B22222 !important;   /* Rouge institutionnel */
    border-radius: 4px;
}


/* Lien actif */
.navbar-nav .nav-link.active,
.navbar-nav .dropdown-menu .dropdown-item.active {
    color: #fff !important;
    background-color: #B22222 !important;
    border-radius: 4px;
}

/* Survol des liens */
.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-menu .dropdown-item:hover {
    color: #fff !important;
    background-color: #B22222 !important;
    border-radius: 4px;
}


/* ===========================
   STYLE NAVIGATION ACTIVE
   =========================== */

/* Liens actifs dans la barre principale */
.navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: #B22222 !important;
    border-radius: 4px;
}

/* État actif pour les dropdown parents */
.navbar-nav .nav-item.dropdown.active > .nav-link {
    color: #fff !important;
    background-color: #B22222 !important;
    border-radius: 4px;
}

/* État actif pour les sous-liens dans les dropdown */
.navbar-nav .dropdown-menu .dropdown-item.active {
    background-color: #B22222 !important;
    color: #fff !important;
}

/* Hover cohérent pour tout */
.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-menu .dropdown-item:hover {
    color: #fff !important;
    background-color: #B22222 !important;
    border-radius: 4px;
}


/* Couleur verte institutionnelle pour la barre de navigation */
.navbar {
  background-color: #006400 !important; /* vert profond élégant */
}

/* Texte des liens */
.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Survol des liens */
.navbar .nav-link:hover {
  color: #eaffea !important; /* vert clair doux */
}

/* État actif */
.navbar .nav-link.active,
.navbar .nav-item.show .nav-link {
  background-color: #004d00 !important; /* vert encore plus profond */
  color: #fff !important;
  border-radius: 4px;
}

/* Sous-menus */
.navbar .dropdown-menu {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
  background-color: #006400 !important;
  color: #fff !important;
}


/* Supprime l'espace sous la barre de navigation */
#contient-carousel {
  margin-top: 10px !important;
}


/* Conteneur du bouton */
.plus-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  width: 100%;
  max-width: 600px; /* Largeur plus importante */
  padding: 20px 0;
  box-sizing: border-box;
}

/* Style du bouton */
.plus-actu {
  display: inline-block;
  background-color: #fff; /* Blanc par défaut */
  color: #c1121f; /* Texte rouge */
  padding: 14px 50px; /* Bouton plus grand */
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid #c1121f; /* Contour rouge */
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Effet au survol */
.plus-actu:hover {
  background-color: #c1121f; /* Rouge au survol */
  color: #fff; /* Texte blanc */
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* === Effet au survol des cartes === */
.service-item {
  transition: all 0.3s ease-in-out;
}

.service-item:hover {
  background-color: rgba(178, 34, 34, 0.08) !important; /* Rouge transparent */
  box-shadow: 0 8px 20px rgba(178, 34, 34, 0.25); /* Ombre rouge élégante */
  transform: translateY(-5px); /* Légère élévation */
  border-radius: 10px; /* Arrondi des coins si besoin */
}


/* === Footer vert === */
.footer,
.copyright {
    background-color: #004d26 !important; /* Même vert que la nav */
}

/* Harmoniser le texte pour plus de lisibilité sur vert */
.footer,
.footer p,
.footer a,
.copyright p,
.copyright a {
    color: #ffffff !important;
}

/* Petits effets au survol des liens */
.footer a:hover,
.copyright a:hover {
    color: #ffdd57 !important; /* Jaune doré en hover pour contraste */
}

/* Icônes réseaux sociaux dans le footer */
.footer .btn.btn-lg-square {
    background-color: #ffffff !important;
    color: #004d26 !important;
    border: none;
    transition: all 0.3s ease-in-out;
}

.footer .btn.btn-lg-square:hover {
    background-color: #ffdd57 !important;
    color: #004d26 !important;
}


/* ===== Footer Général ===== */
.footer {
    background-color: #146c43 !important; /* Vert institutionnel */
    color: #f1f1f1;
    font-size: 15px;
}

.footer a {
    color: #f1f1f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffcc00; /* Accent doré au survol */
}

/* ===== Titre des sections ===== */
.footer h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* ===== Logo & Titre ===== */
.logo-site-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-site-title .logo img {
    height: 70px;
    border-radius: 5px;
}

.logo-site-title .site-title-footer a {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-site-title .site-title-footer a:hover {
    color: #ffcc00; /* Accent doré au survol */
}

/* ===== Icônes réseaux sociaux ===== */
.footer .btn-lg-square {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #0f5132; /* Vert foncé */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer .btn-lg-square:hover {
    background-color: #ffcc00; /* Accent doré au survol */
    color: #146c43;
}

/* ===== Newsletter ===== */
.footer .input-group input {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff;
    border: none;
}

.footer .input-group input::placeholder {
    color: #ddd;
}

.footer .input-group .btn {
    background-color: #ffcc00;
    color: #146c43;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.footer .input-group .btn:hover {
    background-color: #e6b800;
}

/* ===== Copyright ===== */
.copyright {
    background-color: #0f5132 !important; /* Vert plus sombre */
    color: #cccccc;
    font-size: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright a {
    color: #ffcc00;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}


.contact-info a {
    background-color: #006400 !important; /* Vert principal */
    color: #fff !important;
    transition: all 0.3s ease-in-out;
    border: none;
}

.contact-info a:hover {
    background-color: rgba(0, 100, 0, 0.85) !important;
    transform: scale(1.02);
}

.contact-info h5,
.contact-info h2,
.contact-info i {
    color: #fff !important;
}


/* CSS COMPLET DU CAROUSEL (AVEC INDICATEURS SUR FOND NOIR + STYLE ACTIF) */
.ambf-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ambf-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.ambf-slide {
  min-width: 100%;
  position: relative;
}

.ambf-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.ambf-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  font-size: 1.3rem;
  text-align: center;
}

.ambf-nav {
  position: absolute;
  top: 40%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  z-index: 10;
}

.ambf-prev,
.ambf-next {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.ambf-prev:hover,
.ambf-next:hover {
  background: rgba(193, 18, 31, 0.9);
}

/* ✅ Indicateurs avec fond noir en arrière-plan */
.ambf-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;

  background: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
  padding: 6px 12px;              /* espace autour des dots */
  border-radius: 12px;            /* coins arrondis */
}

.ambf-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000; /* Dot noir */
  border: 1px solid #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
  padding: 0;
  margin: 0 3px;
}

.ambf-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

.ambf-indicator.active {
  background: #c1121f; /* Dot actif en rouge */
  border-color: #c1121f;
  width: 14px;
  height: 14px;
  margin: 0 2px;
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .ambf-slide img {
    height: 200px;
  }

  .ambf-caption {
    font-size: 1rem;
    padding: 10px;
  }
}


/* ===== Cartes "Visas et entrées" & "À la diaspora" — hover rouge ===== */

/* Rouge pour l’effet de balayage des cartes services */
.container-service .service-item::before {
  background: #B22222 !important; /* ou var(--red-main) si défini */
}

/* Optionnel : le rond sous l’icône passe aussi au rouge par défaut */
.container-service .icon-box-primary::before {
  background: #B22222 !important;
}



  /* Style pour les indicateurs du carousel */
  .ambf-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  /* Style pour l'indicateur actif */
  .ambf-indicator.active {
    background-color: #dc3545; /* Rouge par défaut */
  }

  /* Style pour l'indicateur au survol (hover) */
  .ambf-indicator:hover {
    background-color: #28a745; /* Vert */
  }

  /* Si le fond du carousel devient rouge au survol, forcez le vert pour l'indicateur actif */
  .ambf-carousel:hover .ambf-indicator.active {
    background-color: #28a745 !important;
  }

