body{
    font-family: poppin,sans-serif;

}

/* Personnalisation de la pagination */
.pagination .page-item .page-link {
    color: rgb(33, 32, 32) !important; /* Couleur du texte */
    background-color: red; /* Couleur de fond rouge */
}

.pagination .page-item.active .page-link {
    background-color: #d10d07 !important; /* Couleur de fond pour l'élément actif */
    border-color:  #d10d07 !important;
    color: white !important;

}

.pagination .page-item:hover .page-link {
    background-color: #d10d07 !important; /* Couleur de fond au survol */
    color: white!important;
}


/* --------------Actualités-------------- */

#actualitespprpf {
  margin: 20px 0;
}

#actualitespprpf .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #10233F;
  text-align: left;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#actualitespprpf .section-title i {
  color: #176162;
  font-size: 1.6rem;
}

#actualitespprpf .section-subtitle {
  font-size: 1.1rem;
  color: #6B7280;
  text-align: left;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: 0;
  margin-right: 0;
}

#actualitespprpf .publication-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(16, 35, 63, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  margin-bottom: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(16, 35, 63, 0.06);
}

#actualitespprpf .publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(23, 97, 98, 0.10);
}

#actualitespprpf .publication-category {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(23, 97, 98, 0.95);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

#actualitespprpf .publication-image {
  width: 100%;
  height: auto;
  position: absolute;
  bottom: 0;
}

#actualitespprpf .publication-info {
  background: #FFFFFF;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(16, 35, 63, 0.06);
}

#actualitespprpf .publication-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

#actualitespprpf .publication-info .publication-date {
  font-size: 0.85rem;
  color: #6B7280;
  font-weight: 500;
}

#actualitespprpf .publication-info .publication-title {
  font-size: 1rem;
  font-weight: 600;
  color: #10233F;
  line-height: 1.4;
}

#actualitespprpf .publication-info .publication-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  background: #176162;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s ease;
  align-self: flex-start;
}

#actualitespprpf .publication-info .publication-button:hover {
  background: #176162;
  color: #FFFFFF;
}

#actualitespprpf .publication-info .publication-button i {
  font-size: 0.85rem;
}

#actualitespprpf .download-count {
  font-size: 0.85rem;
  color: #6B7280;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#actualitespprpf .btn-primary {
  background-color: #e60e07;
  border-color: #d9534f;
  color: #fff;
  height: 50px;
  width: 300px;
}

#actualitespprpf .btn-primary:hover {
  background-color: #e60e07;
  border-color: #c9302c;
  color: #fff;
  height: 55px;
  width: 300px;
}

#actualitespprpf .news-card-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(23, 97, 98, 0.9);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 2;
  backdrop-filter: blur(4px);
}

#actualitespprpf .news-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(16, 35, 63, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  margin-bottom: 24px;
  height: 320px;
  background: #FFFFFF;
}

#actualitespprpf .news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(23, 97, 98, 0.12);
}

#actualitespprpf .news-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#actualitespprpf .news-overlay {
  background: linear-gradient(180deg, rgba(16, 35, 63, 0.1) 0%, rgba(16, 35, 63, 0.65) 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#actualitespprpf .news-category {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(23, 97, 98, 0.95);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  letter-spacing: 0.02em;
}

#actualitespprpf .news-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-top: auto;
  line-height: 1.35;
  transition: transform .3s ease;
}

#actualitespprpf .news-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

#actualitespprpf .news-card:hover .news-title {
  transform: translateY(-2px);
}

#actualitespprpf .news-info {
  background: #fff;
  padding: 10px;
  border-top: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

#actualitespprpf .news-info .news-date {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 5px;
}

#actualitespprpf .news-info .news-title {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

#actualitespprpf .news-info .news-button .a {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: bold;
  color: #fa0808;
  background: #d90101;
  padding: 5px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

#actualitespprpf .news-info .news-button:hover {
  background: #ff2200;
  color: #ff0000;
}

#actualitespprpf .news-info .news-button i {
  margin-right: 5px;
}

#actualitespprpf .publication-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

#actualitespprpf .publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#actualitespprpf .publication-overlay {
  background: linear-gradient(180deg, rgba(221, 221, 221, 0.3) 0%, rgba(173, 174, 174, 0.7) 100%);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 75px;
}

#actualitespprpf .publication-category {
  font-size: 0.875rem;
  font-weight: bold;
  background: #fff;
  color: #333;
  padding: 5px 10px;
  border-radius: 50px;
  display: inline-block;
  align-self: flex-start;
}

#actualitespprpf .publication-image {
  width: 100%;
  height: 10px;
}

#actualitespprpf .publication-info {
  background: #fff;
  padding: 10px;
  border-top: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

#actualitespprpf .publication-info span {
  display: block;
}

#actualitespprpf .publication-info .publication-date {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 5px;
}

#actualitespprpf .publication-info .publication-title {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

#actualitespprpf .publication-info .publication-button i {
  margin-right: 5px;
}

#actualitespprpf .publication-button i {
  margin-right: 5px;
}

#actualitespprpf .publication-info .publication-button {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(to right, #002571, #00759e);
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

#actualitespprpf .publication-info .publication-button:hover {
  background: #d90101;
  color: #fff;
}

#actualitespprpf .publication-info .publication-button i {
  margin-right: 5px;
}

/* --------------chiffres clés-------------- */

#chiffres-cles {
  padding: 50px 0;
}

#chiffres-cles .section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

#chiffres-cles .section-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 30px;
}

.key-figures-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.key-figures-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.year-line {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  justify-content: center;
}

.red-line {
  width: 50px;
  height: 4px;
  background-color: #d9534f;
  margin-right: 5px;
}

.execution-rates {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: auto;
}

.execution-rates p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 5px;
}

/* Bouton */

.gradient-btn {
  background: linear-gradient(to right, #002571, #00759e);
  border: none;
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.875rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-top: 10px;
  align-self: center;
}

/* Disposition horizontale pour écrans XL et au-dessus */

@media (min-width: 992px) {
  .key-figures-card {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .year-line {
    margin-right: 5px;
  }
}

@media (min-width: 992px) {
  .year-line, .execution-rates {
    flex: 1;
  }
}

@media (min-width: 992px) {
  .year-line::after {
    content: "";
    display: block;
    width: 1px;
    height: 100%;
    background-color: #ddd;
    margin: 0 10px;
  }
}

@media (min-width: 992px) {
  .execution-rates {
    flex-direction: column;
    align-items: flex-end;
    text-align: left;
  }
}

@media (min-width: 992px) {
  .gradient-btn {
    margin-top: 10px;
    align-self: flex-end;
  }
}

/*
   CORRIGÉ (bug majeur, demande de responsivité générale) : ces deux règles
   .row / .col-md-6 n'étaient scopées à aucun composant — elles s'appliquaient
   à TOUS les .row et .col-md-6 du site en dessous de 991px, cassant la grille
   Bootstrap (display:flex) partout où elle est utilisée (cards documents,
   articles, agenda...) : au lieu de 2-3 colonnes sur tablette, tout
   s'empilait en 1 seule colonne avec un grand vide à droite. Les classes
   d'origine que ces règles ciblaient (.year-line, .execution-rates,
   .gradient-btn) n'existent plus nulle part dans le projet — composant
   supprimé depuis, règles orphelines conservées par erreur. Supprimées.
*/

@media (max-width: 991px) {
  .key-figures-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 991px) {
  .year-line {
    margin-bottom: 15px;
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .execution-rates {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px;
  }
}

@media (max-width: 991px) {
  .gradient-btn {
    align-self: center;
  }
}

/* --------------Etat des réformes au togo-------------- */

/* Styles pour le div #etatreformes uniquement */

#etatreformes {
  font-family: Poppins, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
   /* border-top: 5px solid red;*/
}

#etatreformes h1, #etatreformes p {
  text-align: left;
  margin-bottom: 20px;
}

#etatreformes .reform-form {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

#etatreformes .form-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

#etatreformes .form-group select {
  width: 48%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: white;
}

#etatreformes .form-buttons {
  display: flex;
  justify-content: flex-end;
}

#etatreformes .form-buttons .btn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#etatreformes .form-buttons .btn:hover {
  background-color: #ddd;
}

#etatreformes .form-buttons .btn-primary {
  background: linear-gradient(to right, #002571, #00759e);
  color: white;
}

#etatreformes .form-buttons .btn-primary:hover {
  background: linear-gradient(to right, #003f91, #005c99);
}

#etatreformes .charts {
  display: none;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: relative;
}

#etatreformes .chart-container {
  width: 48%;
  margin-top: 20px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow: hidden;
}

#etatreformes #pieChartContainer select {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#etatreformes #pieChartContainer h3 {
  text-align: center;
  margin-bottom: 10px;
}

#etatreformes #closeCharts {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 18px;
  cursor: pointer;
  color: #6c757d;
  background: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 28px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#etatreformes #closeCharts:hover {
  color: #5a6268;
}

#etatreformes canvas {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  #etatreformes .form-group {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  #etatreformes .form-group select {
    width: 100%;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  #etatreformes .charts {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  #etatreformes .chart-container {
    width: 100%;
  }
}

/* --------------Synthèse des taux physiques et financières-------------- */


#synthesetaux .card {
    margin-top: 40px;
    background-color: #ffffff;
    border-top: 4px solid red;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;

  }

  #synthesetaux h2 {
    text-align: left;
    margin-bottom: 20px;
    color: #262626;
  }

  #synthesetaux .card-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  #synthesetaux .column {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 45%; /* Ajuste la largeur pour les écrans larges */
    margin: 10px;
    text-align: center;
    flex: 1 1 45%; /* Assure que les colonnes s'adaptent à l'espace disponible */

  }

  #synthesetaux .column p {
    margin: 10px 0;
    font-size: 16px;
    color: #262626;
  }

  #synthesetaux .column button {
    background: linear-gradient(to right, #002571, #00759e);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease; /* Ajuste pour une transition de fond */
  }

  #synthesetaux .column button:hover {
    background: linear-gradient(to right, #003b8c, #0062a3);
  }

  @media (max-width: 768px) {
    #synthesetaux .column {
      width: 100%; /* Chaque colonne prend toute la largeur sur petits écrans */
      margin: 5px 0; /* Réduit l'espacement entre les colonnes sur petits écrans */
    }
  }


/* --------------Agenda-------------- */


#contenuagenda {
    min-height: 100vh; /* Pour que le conteneur prenne toute la hauteur */
    position: relative; /* Nécessaire pour que les éléments enfants se positionnent correctement */
    padding-bottom: 100px; /* Espacement pour le footer */
}

#contenuagenda .blue-band {
    background: linear-gradient(to right, #002571, #00759e);
    padding: 20px 0;
    height: 300px;
    position: relative; /* Conserver ce positionnement */
    z-index: 1; /* Assurer que la bande reste derrière la carte */
}

#contenuagenda .blue-band h1 {
  margin: 0;
}

#contenuagenda .breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

#contenuagenda .breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

#contenuagenda .breadcrumb .breadcrumb-item::before {
  color: #ffffff;
}

#contenuagenda .breadcrumb .active {
  color: rgba(255, 255, 255, 0.7);
}

/* Styles pour la carte de recherche */

#contenuagenda .search-card {
    max-width: 1700px;
    width: 130%;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    /* position: absolute; Maintenir le positionnement absolu pour le chevauchement */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Doit être supérieur à la bande bleue */
    margin-top: -120px; /* Pour dépasser le pied de page */
}

/* Styles pour le groupe de saisie de recherche */

#contenuagenda .search-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

#contenuagenda .search_input {
  border-radius: 5px;
  padding: 10px;
  flex: 1;
}

#contenuagenda .search_icon {
  background-color: #ff0000;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}

/* Styles pour les dropdowns */

#contenuagenda .dropdown-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

#contenuagenda .dropdown {
  position: relative;
  flex: 1;
}

#contenuagenda .dropdown-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 3;
}

#contenuagenda .dropdown-menu {
  max-height: 200px;
  overflow-y: auto;
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#contenuagenda .dropdown-menu.show {
  display: block;
  padding-left: 10px;
  width: 100%;
}

#contenuagenda .dropdown button {
  background: linear-gradient(to right, #002571, #00759e);
  color: #ffffff;
  width: 100%;
  border: none;
  border-radius: 5px;
}

#contenuagenda .dropdown button:hover {
  background-color: #0056b3;
}

/* Styles pour la barre de progression */

#contenuagenda .progress-container {
  width: 100%;
  height: 20px;
  background-color: #f1f1f1;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

#contenuagenda .progress-bar {
  height: 100%;
  width: 0;
  background-color: #d42903;
  transition: width 0.5s;
}

/* Styles pour le tableau des résultats */

#contenuagenda .table-container {
  margin-top: 20px;
}

#contenuagenda #resultats {
  width: 100%;
  border-collapse: collapse;
}

#contenuagenda #resultats th, #documents #resultats td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

/* Pagination Styles */

#contenuagenda .page-item {
  display: inline;
  margin: 0 5px;
}

#contenuagenda .page-link {
  display: inline-block;
  padding: 8px 16px;
  color: #075fbd;
  text-decoration: none;
  border-radius: 4px;
  background-color: #f8f9fa;
}

#contenuagenda .page-link:hover {
  background-color: #e2e6ea;
}

#contenuagenda .page-item.active .page-link {
  background-color: #007bff;
  color: white;
}

/* Styles pour le message d'erreur */

#contenuagenda #error-message {
  text-align: center;
  margin-top: 20px;
}

/* Styles généraux pour les cartes de documents */
.contenuagenda-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Effet d'ombre et d'agrandissement au survol */
.contenuagenda-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card {
    border: 1px solid #ddd; /* Bordure légère autour de la carte */
    border-radius: 8px; /* Coins arrondis */
    overflow: hidden; /* Évite le débordement des éléments internes */
    background-color: #ffffff; /* Couleur de fond de la carte */
    display: flex; /* Utilisation de flexbox pour la disposition */
    flex-direction: column; /* Disposition verticale */
    justify-content: space-between; /* Espacement entre les éléments */
    height: 100%; /* Assure que la carte utilise toute la hauteur */
}

/* Styles pour le titre */
.card-title {
    font-size: 1.2rem; /* Taille de police réduite pour le titre */
    color: #002571; /* Couleur personnalisée pour le titre */
    margin-bottom: 10px; /* Espacement en bas du titre */
}

/* Styles pour la catégorie et la date */
.card-category,
.card-date {
    font-size: 0.9rem; /* Taille de police standard pour ces éléments */
    color: #555; /* Couleur de texte gris */
}

/* Styles pour le bouton de téléchargement */
.btn {
    font-size: 0.8rem; /* Réduction de la taille du texte du bouton */
    padding: 5px 10px; /* Réduction de la taille du bouton */
    margin-top: 10px; /* Espacement au-dessus du bouton */
    border-radius: 5px; /* Coins légèrement arrondis pour le bouton */
    align-self: flex-end; /* Aligne le bouton à la fin de la carte */
}
.btn i{
    color: #fff!important;
}

/* Styles pour l'icône de fichier */
.card-body i {
    color: #ff1500; /* Couleur de l'icône */
    margin-right: 5px; /* Espacement à droite de l'icône */
}

/* BUG CORRIGÉ : cette règle très générique (".card-body i") s'applique à
   TOUTE icône <i> à l'intérieur d'une carte, y compris celle du bouton de
   téléchargement rond rouge (.download-btn), qui est lui aussi dans une
   .card-body. Résultat : l'icône passait de blanc (héritée de .download-btn
   { color: #FFFFFF }) à #ff1500 (rouge-orangé), quasiment invisible sur le
   fond rouge #DC2626 du bouton — un "rouge sur rouge". On la force en blanc
   spécifiquement ici, sans toucher au reste des icônes de carte. */
.download-btn i {
    color: #FFFFFF !important;
    margin-right: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .card {
        margin: 10px 0; /* Ajoute un espacement vertical entre les cartes */
    }

    .card-title {
        font-size: 1rem; /* Taille de police encore plus petite sur les petits écrans */
        margin-bottom: 5px; /* Réduction de l'espacement en bas du titre */
    }

    .card-category,
    .card-date {
        font-size: 0.8rem; /* Réduction de la taille de la police pour les petits écrans */
    }

    .btn {
        font-size: 0.7rem; /* Réduction supplémentaire de la taille du bouton */
        padding: 4px 8px; /* Ajustement du padding pour les petits écrans */
    }
}







/* Responsive design */

@media (min-width: 1200px) {
  #contenuagenda .search-input-group {
    flex-direction: row;
  }
}

@media (min-width: 1200px) {
  #contenuagenda .search_input {
    margin-bottom: 0;
  }
}

@media (max-width: 992px) {
  #contenuagenda .dropdown-container {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 992px) {
  #contenuagenda .dropdown {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #contenuagenda .search-input-group {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  #contenuagenda .search_input {
    margin-bottom: 10px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  #contenuagenda .search_icon {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #contenuagenda .dropdown-container {
    gap: 10px;
  }
}

@media (max-width: 576px) {
  #contenuagenda .blue-band {
    padding: 15px 0;
  }
}

@media (max-width: 576px) {
  #contenuagenda .search-card {
    padding: 10px;
  }
}

@media (max-width: 576px) {
  #contenuagenda .progress-container {
    height: 15px;
  }
}

@media (max-width: 576px) {
  #contenuagenda .progress-bar {
    height: 100%;
  }
}

@media (max-width: 576px) {
  #contenuagenda #pagination .page-item .page-link {
    padding: 3px 6px;
  }
}

/* Footer styles */

#contenuagenda {
  min-height: 100vh;
  position: relative;
  padding-bottom: 100px;
}

#contenuagenda .footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}











/*
#contenuagenda {
  padding: 20px;
  background: linear-gradient(to right, #007169, #0375b0);
  margin-top: 100px;
}

#contenuagenda .agenda-title {
  font-size: 41px;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  display: block;
  margin-bottom: 20px;
  text-align: center;
}

#contenuagenda .agenda-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

#contenuagenda .agenda-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 350px;
  margin-bottom: 20px;
}

#contenuagenda .agenda-card:hover {
  transform: translateY(-5px);
}

#contenuagenda .agenda-card img {
  width: 100%;
  height: auto;
}

#contenuagenda .agenda-card-body {
  padding: 15px;
}

#contenuagenda .agenda-card-title {
  font-size: 18px;
  margin-bottom: 10px;
}

#contenuagenda .agenda-card-category {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

#contenuagenda .agenda-card-period {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

#contenuagenda .view-more-btn {
  background: linear-gradient(to right, #ff0000, #cc0000);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#contenuagenda .view-more-btn:hover {
  background: linear-gradient(to right, #cc0000, #990000);
}

@media (max-width: 1200px) {
  #contenuagenda .agenda-card {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  #contenuagenda .agenda-card {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  #contenuagenda .agenda-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  #contenuagenda .agenda-card {
    max-width: 100%;
  }
} */
























/* --------------Agenda-------------- */


#agenda {
    min-height: 100vh; /* Pour que le conteneur prenne toute la hauteur */
    position: relative; /* Nécessaire pour que les éléments enfants se positionnent correctement */
    padding-bottom: 100px; /* Espacement pour le footer */
}

#agenda .card-img-top {
    max-width: 100%;  /* L'image s'adapte à la largeur de son conteneur */
    height: 180px;     /* Ajustez la hauteur à la valeur souhaitée */
    object-fit: cover; /* Pour s'assurer que l'image remplit le conteneur sans déformation */
}




#agenda .blue-band {
    background: linear-gradient(to right, #002571, #00759e);
    padding: 20px 0;
    height: 300px;
    position: relative; /* Conserver ce positionnement */
    z-index: 1; /* Assurer que la bande reste derrière la carte */
}

  #agenda .blue-band h1 {
    margin: 0;
  }

  /* Styles pour le fil d'Ariane */

  #agenda .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
  }

  #articles .breadcrumb a {
    color: #ffffff;
    text-decoration: none;
  }

  #agenda .breadcrumb .breadcrumb-item::before {
    color: #ffffff;
  }

  #agenda .breadcrumb .active {
    color: rgba(255, 255, 255, 0.7);
  }

  /* Styles pour la carte de recherche */

  #agenda .search-card {
    max-width: 1700px;
    width: 130%;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    /* position: absolute; Maintenir le positionnement absolu pour le chevauchement */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Doit être supérieur à la bande bleue */
    margin-top: -120px; /* Pour dépasser le pied de page */

}

  /* Styles pour le groupe de saisie de recherche */

  #agenda .search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  #agenda .search_input {
    border-radius: 5px;
    padding: 10px;
    flex: 1;
  }

  #agenda .search_icon {
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
  }

  /* Styles pour les dropdowns */

  #agenda .dropdown-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
  }

  #agenda .dropdown {
    position: relative;
    flex: 1;
  }

  #agenda .dropdown-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 3;
  }

  #agenda .dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
  }

  #agenda .dropdown-menu.show {
    display: block;
    padding-left: 10px;
    width: 100%;
  }

  #agenda .dropdown button {
    background: linear-gradient(to right, #002571, #00759e);
    color: #ffffff;
    width: 100%;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }

  #agenda .dropdown button:hover {
    background-color: #ef2e03;
  }

  /* Styles pour la barre de progression */

#agenda.progress-bar {
    position: absolute;
    height: 100%;
    background-color: red; /* Couleur de la barre de progression */
    transition: transform 0.5s ease; /* Animation de transformation */
    transform: scaleX(0); /* Initialement invisible */
}

#articles .progress-bar.active {
    transform: scaleX(1); /* L'animation fait apparaître la barre */
}
  /* Styles pour le tableau des résultats */

  #agenda .table-container {
    margin-top: 20px;
  }

  #agenda #resultats {
    width: 100%;
    border-collapse: collapse;
  }

  #agenda #resultats th, #articles #resultats td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
  }

  /* Styles pour la pagination */

  #agenda .page-item {
    display: inline;
    margin: 0 5px;
  }

  #agenda .page-link {
    display: inline-block;
    padding: 8px 16px;
    color: #d00801;
    text-decoration: none;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
  }

  #agenda .page-link:hover {
    background-color: #e2e6ea;
  }

  #agenda .page-item.active .page-link {
    background-color: #d00801;
    color: white;
  }

  /* Styles pour le message d'erreur */

  #agenda #error-message {
    text-align: center;
    margin-top: 20px;
  }

  /* Styles pour les cartes d'articles */

  #agenda .article-card {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
  }

  /* Styles pour les images des cartes */

  #agenda .article-card img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: transform 0.3s ease;
    height: 110px;
    object-fit: cover;
  }




  /* Styles pour le contenu des cartes */

  #agenda .article-card .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
  }

  /* Styles pour la date de publication */

  #agenda .article-card .card-date {
    font-size: 0.85rem;
    color: #6c757d;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  /* Effets au survol des cartes */

  #agenda .article-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  }

  #agenda .article-card:hover img {
    transform: scale(1.1);
  }

  #agenda .article-card:hover .card-date {
    opacity: 1;
  }

  /* Styles pour la section de catégorie */

  #agenda #categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  #agenda #categories .category-filter {
    margin-right: 10px;
    margin-bottom: 10px;
  }

  /* Styles pour la barre de progression (doubles définitions supprimées) */

  #agenda .progress-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
    display: none;
  }

  #agenda .progress-bar {
    height: 100%;
    background: #ff0000;
    width: 0%;
    transition: width 0.4s ease-in-out;
  }

  /* Styles pour les petits écrans */

  @media (max-width: 1200px) {
    #agenda .dropdown-container {
      flex-direction: column;
    }
  }

  @media (max-width: 1200px) {
    #agenda .dropdown {
      margin-bottom: 20px;
      width: 100%;
    }
  }

  @media (max-width: 1200px) {
    #agenda .dropdown button {
      width: 100%;
    }
  }

  @media (max-width: 1200px) {
    #agenda .search-card {
      width: 90%;
    }
  }

  @media (max-width: 768px) {
    #articles .dropdown-container {
      flex-direction: column;
      gap: 10px;
    }
  }

  @media (max-width: 768px) {
    #agenda .search_input {
      margin-bottom: 10px;
    }
  }

  @media (max-width: 768px) {
    #agenda .search-card {
      width: 100%;
      padding: 10px;
      min-height: auto;
    }
  }

  @media (max-width: 576px) {
    #agenda .blue-band {
      padding: 15px 0;
    }
  }

  @media (max-width: 576px) {
    #agenda .search-card {
      width: 100%;
      padding: 10px;
    }
  }

  @media (max-width: 576px) {
    #agenda .progress-container {
      height: 15px;
    }
  }

  @media (max-width: 576px) {
    #agenda .progress-bar {
      height: 100%;
    }
  }

  /* Footer styles */



  #agenda .footer {
    position: relative; /* Pour qu'il se place correctement sous le contenu */
    margin-top: 20px; /* Pour l'espacement avec le contenu au-dessus */
    width: 100%;
    z-index: 0; /* Doit être inférieur à la carte */
    background-color: #f8f9fa; /* Couleur de fond du footer */
    padding: 20px; /* Espacement interne du footer */
    text-align: center; /* Centrer le texte dans le footer */
}

#agenda .article-card .card-title {
    font-size: 1.2rem; /* Taille réduite du titre */
    color: #000000; /* Couleur noire pour le titre */
    font-weight: 500; /* Pour s'assurer que le titre est en gras */
    margin-bottom: 10px; /* Espacement sous le titre */
}

/* --------------s'abonner-------------- */

#sabonner .card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

#sabonner .card-body {
  padding: 20px;
}

#sabonner .card-title {
  font-size: 1.5rem;
  font-weight: bold;
}

#sabonner .card-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

#sabonner .btn-lg {
  font-size: 1rem;
  padding: 10px 20px;
}

#sabonner .shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#sabonner .logo-x {
  width: 40px;
  height: 40px;
}

@media (max-width: 768px) {
  #sabonner .card-body {
    padding: 15px;
  }
}


/* --------------Page article -------------- */

/* Global styles */

#custom-article body {
    font-family: Poppins, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    font-size: 14px;
  }

  /* Blue band styles */
  #custom-article .blue-band {
    width: 100vw; /* Utiliser 100vw pour couvrir toute la largeur de la fenêtre */
    position: relative; /* Position relative pour le centrage */
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* Compensation pour centrer correctement */
    margin-right: -50vw; /* Compensation pour centrer correctement */
    background: linear-gradient(to right, #01285c, #015c69d0); /* Couleur de fond */
    text-align: center;
    padding: 20px 0; /* Maintien de la marge intérieure pour le contenu */
    z-index: -1;
  }

/* Styles pour les boutons de téléchargement (documents) */


  /* Article content styles */
  #custom-article .container.article-content {
    margin-top: 20px;
    margin-bottom: 60px;
    text-align: justify;
    padding: 0 8%;
  }

  /* Featured image styles */
  #custom-article .featured-image {
    width: 70%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    position: relative;
    top: 120px;
    z-index: 1;
  }

  #custom-article .featured-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
    pointer-events: none;
    border-radius: 10px;
  }

  #custom-article .image-wrapper {
  width: 70%;
  height: 450px;
  position: relative;
  top: 120px;
  border-radius: 10px;
  overflow: hidden;
  z-index: 1;
}

  /* Adding space between sections */
  #custom-article .content-divider {
    margin-top: 150px;
  }

  /* Meta styles */
  #custom-article .article-meta .category {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
  }
  #custom-article .image-overlay-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50%;
    margin-bottom: 70px;
}
 #custom-article .image-overlay-text {
    position: absolute;
    margin-top: 350px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    z-index: 3;
    width: 700px;
    max-width: 90%;
}
@media (max-width: 768px) {
  #custom-article .image-overlay-text {
      font-size: 20px;
      width: 60%;
      font-weight: 600;
      margin-top: 350px;
  }
}

@media (max-width: 480px) {
  #custom-article .image-overlay-text {
      font-size: 14px;
      font-weight: 500;
      width: 60%;
      margin-top: 30px;
  }
}
#custom-article .image-overlay-container::after {
  content: "";
  position: absolute;
  /* top: 0; */
  /* left: 0; */
  width: 70%;
  height: 450px;
  background: linear-gradient(to bottom, rgba(1, 38, 74, 0.1), rgb(1, 45, 63)); /* léger dégradé */
  z-index: 1;
  pointer-events: none;

  top: 75px;
  border-radius: 10px;
  overflow: hidden;

}

  #custom-article .red-line {
    display: inline-block;
    width: 50px;
    height: 3px;
    background-color: red;
    margin-right: 10px;
  }

  #custom-article .meta span {
    display: block;
    margin-bottom: 5px;
  }

  /* Progress bar styles */
  #custom-article .progress-container {
    position: fixed; /* Fixe la barre en haut de la page */
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000; /* Place la barre au-dessus des autres éléments */
  }

  #custom-article .progress-bar {
    height: 4px;
    background-color: #ff0000;
    transition: width 0.5s ease-in-out;
    width: 0%; /* Initialement, la largeur est 0% */
  }

  /* Social icons styles */
  #custom-article .social-icons {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-direction: row;
  }

  #custom-article .social-icons a {
    color: #4a4b4b;
    font-size: 1.5em;
    transition: color 0.3s;
  }

  #custom-article .social-icons a:hover {
    color: #b30300;
  }

  #custom-article .like-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #b30300;
  }

  #custom-article .like-button i {
    margin-right: 5px;
  }

  #custom-article .like-button span {
    font-size: 1.2em;
  }

  /* News cards styles */


  /* General styles */
  #custom-article .nav-links {
    margin-top: 40px;
    text-align: center;
  }

  #custom-article .nav-links a {
    color: #ff0000;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.1em;
    transition: color 0.3s;
  }

  #custom-article .nav-links a:hover {
    color: #b30300;
  }

  /* Previous and next article buttons */
  #custom-article .prev-article,
  #custom-article .next-article {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00749e; /* Utiliser un dégradé si nécessaire */
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s;
  }

  #custom-article .prev-article:hover,
  #custom-article .next-article:hover {
    background-color: #0056b3;
  }

  #custom-article .prev-article i,
  #custom-article .next-article i {
    margin: 0 5px;
  }

  /* Space after article */
  #custom-article .footer-space {
    margin-top: 60px; /* Ajuster l'espace selon vos besoins */
  }

  /* Article title styles */


  /* Navigation links styles */
  #custom-article .nav-links {
    display: flex;
    justify-content: space-between; /* Pour placer les éléments aux extrémités */
    margin-top: 20px; /* Espace au-dessus si nécessaire */
  }

/* Section Articles Similaires */
#custom-article .similar-articles span {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 20px;
    text-align: left;
  }

  /* Styles des cartes d'articles */
  #custom-article .similar-articles .news-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px; /* Ajout d'espacement entre les cartes */
    height: 120px;
    background-color: #f9f9f9; /* Ajout d'une couleur de fond pour améliorer la visibilité */
  }

  #custom-article .similar-articles .news-card:hover {
    transform: translateY(-5px); /* Léger effet de levée */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre plus accentuée */
  }

  /* Lien dans la carte */
  #custom-article .similar-articles .news-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    padding: 10px;
  }

  /* Superposition de l'overlay */
  #custom-article .similar-articles .news-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
  }

  /* Catégorie de l'article */
  #custom-article .similar-articles .news-category {
    font-size: 0.75rem;
    font-weight: 500;
    background: #fff;
    color: #333;
    padding: 5px 10px;
    border-radius: 50px;
    display: inline-block;
    align-self: flex-start;
    margin-top: 4px;
  }

  /* Titre de l'article */
  #custom-article .similar-articles .news-title {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-top: auto;
    transition: transform 0.3s ease;
    text-align: left;
    line-height: 1.2;
  }

  /* Date de l'article */
  #custom-article .similar-articles .news-date {
    font-size: 0.85rem;
    color: #ddd;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Effet de survol sur le titre et la date */
  #custom-article .similar-articles .news-card:hover .news-title {
    transform: translateY(-15px);
  }

  #custom-article .similar-articles .news-card:hover .news-date {
    opacity: 1;
    transform: translateY(-15px);
  }

  /* Informations supplémentaires sous la carte */
  #custom-article .similar-articles .news-info {
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #ddd;
  }

  #custom-article .similar-articles .news-info .news-date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 5px;
  }

  #custom-article .similar-articles .news-info .news-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
  }

  /* Bouton de lecture ou lien d'article */
  #custom-article .similar-articles .news-info .news-button a {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: bold;
    color: #fff;
    background-color: #d90101;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
  }

  #custom-article .similar-articles .news-info .news-button a:hover {
    background-color: #ff2200;
  }

  #custom-article .similar-articles .news-info .news-button i {
    margin-right: 5px;
  }




/* -------------- articles -------------- */

/* Variables CSS pour les couleurs et tailles */
/* :root {
    --primary-color: #002571;
    --secondary-color: #00759e;
    --error-color: #ff0000;
    --light-bg: #f8f9fa;
    --border-color: #ddd;
    --text-color: #000;
    --muted-color: #6c757d;
} */






#articles .blue-band {
    width: 100%; /* Utiliser 100% pour s'assurer que le conteneur prend toute la largeur de son parent */
    background: linear-gradient(to right, #01285c, #015c69d0); /* Couleur de fond */
    text-align: center;
    padding: 20px 0; /* Maintien de la marge intérieure pour le contenu */
    height: 200px; /* Hauteur fixe */
    z-index: -1; /* Assurez-vous que cet élément est au-dessus des autres si nécessaire */
    position: relative; /* Ajouté pour un meilleur contrôle de la position si nécessaire */

}

/* Ajoutez d'autres styles ici si nécessaire */


/* Styles pour les boutons de téléchargement (documents) */



/* Styles pour les articles */
#articles {
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
    --primary-color: #002571;
    --secondary-color: #00759e;
    --error-color: #ff0000;
    --light-bg: #f8f9fa;
    --border-color: #ddd;
    --text-color: #000;
    --muted-color: #6c757d;
}

/* Bande bleue */


#articles .blue-band h1 {
    margin: 0; /* Supprimer toutes les marges pour un alignement parfait */
    font-size: 2rem; /* Ajustez la taille de la police si nécessaire */
    line-height: 1.2; /* Ajustez la hauteur de ligne pour l'alignement vertical */
    margin-right: 20px; /* Ajouter de l'espace à droite si nécessaire */
}

/* Fil d'Ariane */
#articles .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
    display: flex; /* Utilisation de Flexbox pour aligner les éléments sur la même ligne */
    align-items: center; /* Aligne les éléments verticalement au centre */
    margin-top: 0; /* Supprimer le margin pour un alignement parfait */
    font-size: 1rem; /* Ajustez la taille de la police si nécessaire */
    line-height: 1.2; /* Ajustez la hauteur de ligne pour l'alignement vertical */
}

#articles .breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

#articles .breadcrumb .breadcrumb-item::before,
#articles .breadcrumb .active {
    color: #ffffff;
}

/* Carte de recherche */
#articles .search-card {
    max-width: 1700px;
    width: 130%;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -90px;
}

/* Groupe de saisie de recherche */
#articles .search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

#articles .search_input {
    border-radius: 5px;
    padding: 10px;
    flex: 1;
}

#articles .search_icon {
    background-color: var(--error-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
}

/* Dropdowns */
#articles .dropdown-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

#articles .dropdown {
    position: relative;
    flex: 1;
}

#articles .dropdown-menu-container {
    position: relative;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10; /* Pour que les dropdowns apparaissent au-dessus de la carte */
}

#articles .dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
    display: none;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

#articles .dropdown-menu.show {
    display: block;
    padding-left: 10px;
    z-index: 10; /* S'assure que le menu est visible par-dessus la carte */
    position: absolute;
    top: 100%; /* Affiche normalement en dessous du bouton mais en dessus de la carte */
    left: 0;
    width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
}

/* Barre de progression */
#articles .progress-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
    display: none;
}

#articles .progress-bar {
    height: 100%;
    background: var(--error-color);
    width: 0%;
    transition: width 0.4s ease-in-out;
}

/* Tableau des résultats */
#articles .table-container {
    margin-top: 20px;
}

#articles #resultats {
    width: 100%;
    border-collapse: collapse;
}

#articles #resultats th,
#articles #resultats td {
    padding: 10px;
    border: 1px solid var(--border-color);
    text-align: left;
}

/* Pagination */
#articles .page-item {
    display: inline;
    margin: 0 5px;
}

#articles .page-link {
    display: inline-block;
    padding: 8px 16px;
    color: #d00801;
    text-decoration: none;
    border-radius: 4px;
    background-color: var(--light-bg);
    transition: background-color 0.3s ease;
}

#articles .page-link:hover {
    background-color: #e2e6ea;
}

#articles .page-item.active .page-link {
    background-color: #d00801;
    color: white;
}

/* Message d'erreur */
#articles #error-message {
    text-align: center;
    margin-top: 20px;
}

/* Cartes d'articles */
#articles .article-card {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

#articles .article-card img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: transform 0.3s ease;
    height: 110px;
    object-fit: cover;
}

/* Contenu des cartes */
#articles .article-card .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Date de publication */
#articles .article-card .card-date {
    font-size: 0.85rem;
    color: var(--muted-color);
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Effets au survol des cartes */
#articles .article-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#articles .article-card:hover img {
    transform: scale(1.1);
}

#articles .article-card:hover .card-date {
    opacity: 1;
}

/* Section de catégorie */
#articles #categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#articles #categories .category-filter {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Styles pour les petits écrans */
@media (max-width: 1200px) {
    #articles .dropdown-container {
        flex-direction: column;
    }
    #articles .dropdown {
        margin-bottom: 20px;
        width: 100%;
    }
    #articles .dropdown button {
        width: 100%;
    }
    #articles .search-card {
        width: 90%;
    }
}

@media (max-width: 768px) {
    #articles .search-card {
        width: 100%;
        padding: 10px;
        min-height: auto;
    }
    #articles .search_input {
        margin-bottom: 10px;
    }
    #articles .dropdown-container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    #articles .blue-band {
        padding: 15px 0;
    }
    #articles .progress-container {
        height: 15px;
    }
}

/* Footer styles */
#articles .footer {
    position: relative;
    margin-top: 20px;
    width: 100%;
    z-index: 0;
    background-color: var(--light-bg);
    padding: 20px;
    text-align: center;
}

#articles .article-card .card-title {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 10px;
}


/* -------------- navbar -------------- */

#top-header {
  background-color: #f8f9fa;
  padding:7px 4px 7px 15px;
  margin: 0 auto;
}

#top-header .top-header {
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#top-header .logo {
  max-width: 100%;
  height: 20%;
}

#top-header .text-content {
  font-size: 0.875rem;
  color: #333;
  text-align: left;
}

#top-header .red-button {
  background-color: #dc3545;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: background-color 0.3s;
}

#top-header .red-button:hover {
  background-color: #c82333;
}

#top-header .search-lang-section {
  font-size: 1rem;
  color: #000;
  display: flex;
  align-items: center;
}

#top-header .search-lang-section a {
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
}

#top-header .search-lang-section .lang {
  cursor: pointer;
  font-weight: bold;
  margin-left: 5px;
}

#top-header .search-lang-section .lang:hover {
  text-decoration: underline;
}

#top-header .hamburger-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Custom Navbar - Bleu Togolais du projet */
#custom-navbar {
  background: linear-gradient(135deg, #1e5f8e 0%, #164c7a 100%);
  padding: 10px 0;
  z-index: 1030;
  position: sticky;
  box-sizing: border-box;
  transition: .5s;
  top: 0;
  left: 0;
  overflow: visible;
}

#custom-navbar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 300%;
  height: 200%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.05) 30%, transparent 50%, rgba(255,255,255,0.03) 70%, transparent 100%);
  animation: mirageSlide 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes mirageSlide {
  0% {
    transform: translateX(-25%) translateY(0) skewX(-6deg);
  }
  100% {
    transform: translateX(25%) translateY(0) skewX(-6deg);
  }
}

#custom-navbar .navbar-nav .nav-link {
  position: relative;
  z-index: 2;
}

.custom-navbar-scrolling {
  top: 0;
  left: 0;
}

/* BUG CORRIGÉ : header.js (partials/header.js) ajoute/retire la classe
   .hide-header sur #top-header au scroll, mais cette classe n'existait
   nulle part en CSS — l'effet "masquer la barre au défilement vers le
   bas" ne produisait donc visuellement aucun changement. */
/* BUG CORRIGÉ (2) : `overflow: hidden` + `max-height: 200px` avaient été
   ajoutés ci-dessus pour cette même animation, mais ni l'un ni l'autre
   n'est nécessaire à un slide en `translateY` — en revanche `overflow:
   hidden` rognait tout élément positionné en absolute qui dépasse le
   bandeau, dont le panneau du sélecteur de langue (.lang-switcher__menu),
   qui semblait alors disparaître/passer sous la barre de navigation. */
/* BUG CORRIGÉ (3) : la propriété `transform` ci-dessous crée, de par la
   spec CSS, un nouveau contexte d'empilement sur #top-header. Le
   z-index:1050 de .lang-switcher__menu (descendant) n'était donc comparé
   qu'AU SEIN de ce contexte, jamais directement à #custom-navbar
   (z-index:1030, frère de #top-header) — qui, lui, restait au-dessus,
   puisque #top-header lui-même n'avait aucun z-index propre. En donnant
   à #top-header un z-index explicite supérieur à celui de la barre bleue,
   tout son contenu (dont le menu de langue) passe correctement au-dessus. */
#top-header {
  position: relative;
  z-index: 1040;
  opacity: 1;
  transform: translateY(0);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}

#top-header.hide-header {
  transform: translateY(-100%);
  opacity: 0;
}

#custom-navbar .navbar-nav .nav-link {
  color: #fff;
  padding: 8px 16px;
  font-size: 1rem;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

/* Underline on hover - only for dropdown menus, thin and elegant */
#custom-navbar .navbar-nav .nav-item.dropdown .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #176162;
  transition: width .3s cubic-bezier(.2,.8,.2,1);
  border-radius: 1px;
}

#custom-navbar .navbar-nav .nav-item.dropdown:hover .nav-link::after,
#custom-navbar .navbar-nav .nav-item.dropdown.show .nav-link::after {
  width: 100%;
}

#custom-navbar .navbar-nav .nav-link.active {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #1e5f8e; /* Active tab underline */
}

/* Remove small triangles */
#custom-navbar .navbar-nav .dropdown-toggle::after {
  display: none;
}

/* Le megamenu ne doit pas dépendre du seul survol (:hover), sans
   aucune limite d'écran. Sur mobile/tactile il n'y a pas de survol, donc
   les sous-menus (Qui sommes-nous, Finances publiques, etc.) restaient
   invisibles dans le menu hamburger, quoi qu'on clique. Ce comportement
   "survol" est désormais réservé au desktop (≥ 992px, le point de rupture
   navbar-expand-lg déjà utilisé dans le HTML). */
@media (min-width: 992px) {
  /* Ouverture par classe (clic, ou intention de survol gérée par
     js/partials/header.js), jamais au simple passage de la souris. */
  #custom-navbar .navbar-nav .dropdown.show .dropdown-menu,
  #custom-navbar .navbar-nav .dropdown.megamenu-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }

  #custom-navbar .navbar-nav .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    background: #FFFFFF;
    border: none;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(16, 35, 63, 0.18);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    border-radius: 0 0 12px 12px;
  }
}

/* Sur mobile : comportement standard Bootstrap au CLIC (la classe .show
   est ajoutée par le JS de Bootstrap via data-bs-toggle="dropdown"), le
   sous-menu s'affiche à sa place dans la liste au lieu de flotter en
   position absolute (qui le ferait sortir de l'écran). */
@media (max-width: 991.98px) {
  #custom-navbar .navbar-nav .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 0 8px 20px;
    max-height: none;
  }

  #custom-navbar .navbar-nav .dropdown-menu.show {
    display: block;
  }

  #custom-navbar .navbar-nav .dropdown-toggle::after {
    display: inline-block; /* la petite flèche redevient utile sur mobile */
    margin-left: 6px;
  }

  #custom-navbar .megamenu {
    width: 100%;
    padding: 0;
  }

  #custom-navbar .megamenu .col-md-6 {
    flex: 0 0 100%;
    margin-bottom: 12px;
  }
}

#custom-navbar .navbar-nav .dropdown-menu a {
  color: #10233F;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s;
}

#custom-navbar .navbar-nav .dropdown-menu a:hover {
  color: #176162;
}

/* Megamenu */
#custom-navbar .megamenu {
  width: 450px;
  padding: 20px;
}

#custom-navbar .megamenu .row {
  width: 100%;
}

#custom-navbar .megamenu .col-md-6 {
  flex: 0 0 50%;
}

#custom-navbar .megamenu .col-md-6 strong {
  color: #10233F;
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1rem;
}

#custom-navbar .megamenu .list-unstyled {
  padding-left: 0;
  list-style: none;
}

#custom-navbar .megamenu .list-unstyled li {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

/* Navbar Toggler */
#custom-navbar .navbar-toggler {
  border: none;
}

#custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  #top-header .search-lang-section,
  #top-header .red-button {
      flex: 1;
      text-align: right;
  }
}

@media (max-width: 768px) {
  #custom-navbar {
      /* Add any specific styles for smaller screens if needed */
  }
}


/* -------------- formulaire de connexion plateforme de suivi des réformes -------------- */
#login-page {
  display: flex;
  height: 100vh;
  margin: 0;
  overflow: hidden;

}

#login-page .background-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/assets/img/drapeautogolais.jpeg') no-repeat center center;
  background-size: cover;
  position: relative;
}

#login-page .background-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to Top right, rgba(0, 37, 113, 1), rgba(2, 221, 166, 0.7));
}

#login-page .background-image .text-center {
  position: relative;
  
  text-align: center;
  color: #ffffff;
  margin-bottom: 20px; /* Ajouté pour espacer le contenu du menu */
}

#login-page .background-image .logo {
  max-width: 300px;
  height: auto;
  margin-bottom: 20px; /* Assurez-vous que cela ne crée pas trop d'espace */
}

#login-page .background-image h2 {
  font-size: 3rem;
  font-weight: 600;
  margin: 0 auto;
  max-width: 720px;
}

#login-page .background-image .small-text {
  font-size: 0.8rem;
  margin-top: 20px;
  opacity: 0.8;
  max-width: 720px;
}

/* Styles pour le menu */
#login-page .menu {
  position: relative;
  z-index: 3; /* Assurez-vous que le menu soit au-dessus du dégradé */
  margin-top: 20px; /* Ajustez cet espacement si nécessaire */
}

#login-page .login-form-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 20px;

}

#login-page .login-form-container .w-75 {
  width: 100%;
  max-width: 450px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 40px;
  text-align: left;
  
}

#login-page .login-form-container h4 {
  font-weight: 400;
  margin-bottom: 20px;
  font-size: 19px;
  color: #333;
  
}

#login-page .login-form-container h3 {
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  
}

#login-page .login-form-container .form-label {
  font-weight: bold;
}

#login-page .login-form-container .form-control {
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  
}

#login-page .btn-primary {
  background-color: #d70404;
  border: none;
  font-weight: 400;
  border-radius: 5px;
  padding: 10px 20px;
  margin-top: 10px;
  display: block;
  
}

#login-page .btn-primary:hover {
  background-color: #b81a02;
}

#login-page .accordion-button {
  background-color: #ebeded;
  color: #303030;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: bold;
  text-align: left;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#login-page .accordion-button.collapsed {
  background-color: #ebeded;
  color: #303030;
}

#login-page .accordion-button::after {
  content: '▼';
  font-size: 0.8rem;
  color: #3a3a3a;
  margin-left: 10px;
}

#login-page .accordion-body {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 12px 12px;
  color: #333;
  padding: 20px;
  text-align: left;
}

#login-page .accordion-body a {
  color: #00759e;
  text-decoration: none;
}

#login-page .accordion-body a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
  #login-page .background-image,
  #login-page .login-form-container {
    display: block;
    flex-direction: column;
    height: auto;
  }
}

@media (max-width: 768px) {
  #login-page .background-image h2 {
    font-size: 2rem;
  }

  #login-page .background-image .small-text {
    font-size: 0.7rem;
  }

  #login-page .login-form-container .w-75 {
    padding: 20px;
  }
}

/* -------------- Qui sommes-nous ? -------------- */
#qui-sommes-nous  {
    min-height: 100vh; /* Pour que le conteneur prenne toute la hauteur */
    position: relative; /* Nécessaire pour que les éléments enfants se positionnent correctement */
    padding-bottom: 100px; /* Espacement pour le footer */
}

#qui-sommes-nous .blue-band {
    background: linear-gradient(to right, #002571, #00759e);
    padding: 20px 0;
    height: 300px;
    position: relative; /* Conserver ce positionnement */
    z-index: 1; /* Assurer que la bande reste derrière la carte */
}

  #qui-sommes-nous .blue-band h1 {
    margin: 0;
  }

  /* Styles pour le fil d'Ariane */

  #qui-sommes-nous .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
  }

  #qui-sommes-nous .breadcrumb a {
    color: #ffffff;
    text-decoration: none;
  }

  #qui-sommes-nous .breadcrumb .breadcrumb-item::before {
    color: #ffffff;
  }

  #qui-sommes-nous .breadcrumb .active {
    color: rgba(255, 255, 255, 0.7);
  }

  /* Styles pour la carte de recherche */

  #qui-sommes-nous .search-card {
    max-width: 1700px;
    width: 130%;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    /* position: absolute; Maintenir le positionnement absolu pour le chevauchement */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Doit être supérieur à la bande bleue */
    margin-top: -120px; /* Pour dépasser le pied de page */

}




#qui-sommes-nous .presentation-card .card-body {
    padding: 30px;
}

#qui-sommes-nous .presentation-card .card-title {
    font-size: 2rem;
    font-weight: bold;
}

#qui-sommes-nous .presentation-card .card-text {
    font-size: 1rem;
    color: #555;
}

/* Valeurs et Engagements */
#qui-sommes-nous .section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
}

#qui-sommes-nous .value-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#qui-sommes-nous .value-card .card-body {
    padding: 20px;
}

#qui-sommes-nous .value-card .card-title {
    font-size: 1.5rem;
    margin-top: 15px;
}

#qui-sommes-nous .value-card .card-text {
    color: #777;
}

#qui-sommes-nous .value-card img {
    width: 80px;
    height: 80px;
}

/* Boutons */
#qui-sommes-nous .btn-primary {
    background-color: linear-gradient(to right, #002571, #00759e);
    color: #fff;
    border-color: #ffffff;
}

#qui-sommes-nous .btn-primary:hover {
    background-color: linear-gradient(to right, #002571, #00759e);
    border-color: #ffffff;
}

#qui-sommes-nous .btn-secondary {
    background-color: linear-gradient(to right, #002571, #00759e);
    border-color: #ffffff;
}

#qui-sommes-nous .btn-secondary:hover {
    background-color: #b40603;
    border-color: #004c6d;
}

/* Responsive Styles */

/* Pour les petits écrans - XS et SM */
@media (max-width: 576px) {
    /* Blue Band */
    #qui-sommes-nous .blue-band {
        padding: 20px 10px;
        height: auto;
    }

    #qui-sommes-nous .blue-band h1 {
        font-size: 1.75rem;
        text-align: center;
    }

    /* Presentation Card */
    #qui-sommes-nous .presentation-card {
        margin-top: -50px;
    }

    #qui-sommes-nous .presentation-card .card-body {
        padding: 20px;
    }

    #qui-sommes-nous .presentation-card .card-title {
        font-size: 1.5rem;
        text-align: center;
    }

    #qui-sommes-nous .presentation-card .card-text {
        font-size: 0.875rem;
    }

    /* Section Title */
    #qui-sommes-nous .section-title {
        font-size: 1.5rem;
        text-align: center;
    }

    /* Value Card Images */
    #qui-sommes-nous .value-card img {
        width: 50px;
        height: 50px;
    }

    /* Breadcrumb */
    #qui-sommes-nous .blue-band .breadcrumb {
        font-size: 0.875rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Ajustements généraux pour les écrans SM */
    #qui-sommes-nous .blue-band {
        padding: 30px 15px;
    }

    #qui-sommes-nous .presentation-card {
        margin-top: -30px;
    }

    #qui-sommes-nous .section-title {
        font-size: 1.5rem;
    }

    #qui-sommes-nous .value-card img {
        width: 60px;
        height: 60px;
    }

    #qui-sommes-nous .btn-lg {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}
/* Boutons */

#qui-sommes-nous .btn-primary {
  background-color: linear-gradient(to right, #002571, #00759e);
  color: #fff;
  border-color: #ffffff;
}

#qui-sommes-nous .btn-primary:hover {
  background-color: linear-gradient(to right, #002571, #00759e);
  border-color: #ffffff;
}

#qui-sommes-nous .btn-secondary {
  background-color: linear-gradient(to right, #002571, #00759e);
  border-color: #ffffff;
}

#qui-sommes-nous .btn-secondary:hover {
  background-color: #b40603;
  border-color: #004c6d;
}

/* Responsive Styles */

@media (max-width: 768px) {
  #qui-sommes-nous .blue-band {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  #qui-sommes-nous .presentation-card {
    margin-top: -30px;
  }
}

@media (max-width: 768px) {
  #qui-sommes-nous .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  #qui-sommes-nous .value-card img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  #qui-sommes-nous .btn-lg {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

/* -------------- le SP -------------- */

/* Bande bleue avec le titre */

#secretaire-permanent .blue-band {
  background: linear-gradient(to right, #002571, #00759e);
  color: #fff;
  padding: 40px 0;
  position: relative;
  z-index: 1;
  height: 200px;
}

#secretaire-permanent .blue-band .container {
  position: relative;
}

#secretaire-permanent .blue-band h1 {
  margin: 0;
  font-size: 2.5rem;
}

#secretaire-permanent .blue-band .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 1rem;
}

#secretaire-permanent .blue-band .breadcrumb-item a {
  color: #fff;
}

#secretaire-permanent .blue-band .breadcrumb-item.active {
  color: #ccc;
}

/* Card chevauchant la bande bleue */

#secretaire-permanent .accordions-card {
  background-color: #fff;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  position: relative;
  z-index: 2;
  margin-top: -100px;
  width: 100%;
  max-width: 1400px;
  padding: 40px;
}

/* Accordéons */

#secretaire-permanent .accordion-button {
  background-color: #00759e;
  color: #fff;
  border: none;
  font-weight: bold;
}

#secretaire-permanent .accordion-button:not(.collapsed) {
  background-color: #005a8d;
}

#secretaire-permanent .accordion-body {
  font-size: 1rem;
  color: #555;
}

/* Image du secrétaire permanent */

#secretaire-permanent .accordion-body .img-fluid {
  max-width: 100%;
  height: auto;
}

/* Liens sociaux */

#secretaire-permanent .social-links {
  margin-top: 20px;
}

#secretaire-permanent .social-icon {
  color: #00759e;
  font-size: 1.5rem;
  margin-right: 15px;
}

#secretaire-permanent .social-icon:hover {
  color: #004c6d;
}

/* Responsive Styles */

@media (max-width: 768px) {
  #secretaire-permanent .accordions-card {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  #secretaire-permanent .accordion-button {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  #secretaire-permanent .social-icon {
    font-size: 1.25rem;
    margin-right: 10px;
  }
}


/* -------------- Organigramme -------------- */

#organigramme  {
    min-height: 100vh; /* Pour que le conteneur prenne toute la hauteur */
    position: relative; /* Nécessaire pour que les éléments enfants se positionnent correctement */
    padding-bottom: 100px; /* Espacement pour le footer */
}

#organigramme .blue-band {
    background: linear-gradient(to right, #002571, #00759e);
    padding: 20px 0;
    height: 300px;
    position: relative; /* Conserver ce positionnement */
    z-index: 1; /* Assurer que la bande reste derrière la carte */
}

  #organigramme .blue-band h1 {
    margin: 0;
  }

  /* Styles pour le fil d'Ariane */

  #organigramme .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
  }

  #organigramme .breadcrumb a {
    color: #ffffff;
    text-decoration: none;
  }

  #organigramme .breadcrumb .breadcrumb-item::before {
    color: #ffffff;
  }

  #organigramme .breadcrumb .active {
    color: rgba(255, 255, 255, 0.7);
  }

  /* Styles pour la carte de recherche */

  #organigramme .search-card {
    max-width: 1700px;
    width: 130%;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    /* position: absolute; Maintenir le positionnement absolu pour le chevauchement */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Doit être supérieur à la bande bleue */
    margin-top: -120px; /* Pour dépasser le pied de page */

}

#organigramme .presentation-card .card-body {
  padding: 30px;
}

#organigramme .presentation-card .card-title {
  margin-bottom: 100px;
  font-size: 2rem;
  font-weight: bold;
}

#organigramme .presentation-card .card-text {
  font-size: 1rem;
  color: #555;
}

/* Organigramme */

#organigramme #organigramme-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#organigramme .organigramme-level {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#organigramme .organigramme-level + .organigramme-level {
  margin-top: 40px;
}

#organigramme .org-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 0 20px;
}

#organigramme .org-card .card-body {
  padding: 20px;
}

#organigramme .org-card .org-title {
  font-size: 1.5rem;
  margin-top: 15px;
}

#organigramme .org-card .org-description {
  color: #777;
}

/* Responsive Styles */

@media (max-width: 768px) {
  #organigramme .blue-band {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  #organigramme .presentation-card {
    margin-top: -30px;
  }
}

@media (max-width: 768px) {
  #organigramme .organigramme-level {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  #organigramme .org-card {
    margin: 10px 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  #organigramme .org-card .org-title {
    font-size: 1.25rem;
  }
}

/* -------------- scroll-btn -------------- */
/* Style du bouton "Retour en haut" */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #ff6f61;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transform: rotate(0deg); /* Initialement sans rotation */
}

/* Afficher le bouton lorsque l'utilisateur fait défiler vers le bas */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Animation hover */
.back-to-top:hover {
    background-color: #e85a50;
}
















/* Style général de la section agenda */
#agendaboss {
    padding: 20px; /* Espacement interne */
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); Ombre douce */
    color: white; /* Couleur de texte blanche */
}

/* Style du contenu de l'agenda */
#contenuagendahome  {
    background: linear-gradient(to right, #002571, #00759e); /* Dégradé de fond */
    border-radius: 8px; /* Coins arrondis */
    padding: 20px; /* Espacement interne */
    margin: 0 15px; /* Marge à gauche et à droite */
}


#contenuagendahome a{
  font-size: 7px !important;
  font-weight: 300 !important;
  color: #012937;
}


/* Style du titre de l'agenda */
.agenda-title {
    font-size: 2rem; /* Taille de police pour le titre de l'agenda */
    font-weight: bold; /* Gras pour le titre de l'agenda */
    color: #ffffff; /* Couleur blanche */
    margin-bottom: 20px; /* Espacement en bas */
    text-align: center; /* Centre le titre */
}

/* Style du bouton de cartographie */


/* Style de la carte d'agenda */
.agenda-card {
    background-color: #ffffff; /* Couleur de fond blanche */
    border-radius: 8px; /* Coins arrondis */
    overflow: hidden; /* Évite le débordement d'éléments */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); /* Ombre pour un effet de profondeur */
    transition: transform 0.3s, box-shadow 0.3s; /* Animation lors de l'effet de survol */
    height: 300px; /* Hauteur fixe pour uniformité */
    margin: 10px; /* Marge entre les cartes */
}

.agenda-card:hover {
    transform: translateY(-5px); /* Légère élévation au survol */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2); /* Ombre plus forte au survol */
}

/* Image de la carte d'agenda */
.card-img-top {
    width: 100%; /* S'assure que l'image prend toute la largeur */
    height: 150px; /* Hauteur fixe pour l'image */
    object-fit: cover; /* Ajuste l'image pour couvrir le conteneur */
}

/* Style du corps de la carte d'agenda */
.agenda-card-body {
    padding: 15px; /* Espacement interne */
}

/* Titres et catégories */
.agenda-card-title {
    font-size: 1.25rem; /* Taille de police pour le titre */
    font-weight: bold; /* Gras pour le titre */
    color: #333; /* Couleur sombre pour le texte */
    margin-bottom: 10px; /* Espacement en bas */
}

.agenda-card-category {
    font-size: 1rem; /* Taille de police pour la catégorie */
    color: #6c757d; /* Couleur grise pour la catégorie */
}

/* Période de l'agenda */
.agenda-card-period {
    font-size: 0.9rem; /* Taille de police pour la période */
    color: #495057; /* Couleur légèrement plus foncée */
}

/* Style du bouton "Voir plus" */
.view-more-btn {
    margin-top: 20px; /* Espacement en haut */
    padding: 10px 20px; /* Espacement interne */
    font-size: 1rem; /* Taille de police */
    color: white; /* Couleur de texte blanche */
    background-color: #dc3545; /* Couleur de fond rouge */
    border: none; /* Pas de bordure */
    border-radius: 5px; /* Coins arrondis */
    transition: background-color 0.3s, transform 0.3s; /* Animation lors du survol */
    display: block; /* Pour centrer le bouton */
    margin-left: auto; /* Pour centrer le bouton */
    margin-right: auto; /* Pour centrer le bouton */
}

.view-more-btn:hover {
    background-color: #c82333; /* Couleur de fond au survol */
    transform: scale(1.05); /* Légère augmentation de taille au survol */
}

/* Style pour le popup de la carte */
#mapPopup {
    display: none; /* Caché par défaut */
    position: fixed; /* Positionnement fixe */
    top: 0; /* Alignement en haut */
    left: 0; /* Alignement à gauche */
    width: 100%; /* Prend toute la largeur */
    height: 100%; /* Prend toute la hauteur */
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    justify-content: center; /* Centrage horizontal */
    align-items: center; /* Centrage vertical */
    z-index: 999; /* En haut de tout autre contenu */
}

/* Conteneur de la carte dans le popup */
#mapContainer {
    background-color: white; /* Fond blanc */
    padding: 20px; /* Espacement interne */
    border-radius: 8px; /* Coins arrondis */
    position: relative; /* Pour positionner la croix */
}

/* Style pour le bouton de fermeture du popup */
.close-popup {
    position: absolute; /* Positionnement absolu */
    top: 10px; /* Alignement en haut */
    right: 10px; /* Alignement à droite */
    font-size: 1.5rem; /* Taille de police pour la croix */
    background: none; /* Pas de fond */
    border: none; /* Pas de bordure */
    color: #333; /* Couleur sombre */
    cursor: pointer; /* Curseur en main */
}

view-more-btn {
    margin-top: 20px; /* Espacement en haut */
    padding: 10px 20px; /* Espacement interne */
    font-size: 1rem; /* Taille de police */
    color: white; /* Couleur de texte blanche */
    background-color: #dc3545; /* Couleur de fond rouge */
    border: none; /* Pas de bordure */
    border-radius: 5px; /* Coins arrondis */
    transition: background-color 0.3s, transform 0.3s; /* Animation lors du survol */
    display: block; /* Pour centrer le bouton */
    margin-left: auto; /* Pour centrer le bouton */
    margin-right: auto; /* Pour centrer le bouton */
    margin-bottom: 0; /* Assurez-vous que la marge en bas est à 0 */
}

