html, body {
  margin: 0;
  padding: 0;
}
/* Ajout d'un espacement sous la barre de navigation pour éviter qu'elle ne chevauche le contenu */
body {
  padding-top: 0px; /* Pour compenser une barre de navigation fixe */s
}

/* Style pour la barre grise sous la navigation */
.breadcrumb {
  background-color: #f0f0f0; /* Couleur grise de fond */
  margin-bottom: 0; /* Enlever l'espacement sous la barre grise */
  padding: 10px 0; /* Espacement interne */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre subtile */
}

.breadcrumb .breadcrumb-item {
  color: #333; /* Couleur du texte */
  font-size: 14px; /* Taille du texte */
  margin-bottom: 0; /* Retirer l'espacement sous les éléments */
}

.breadcrumb .breadcrumb-item.active {
  font-weight: bold; /* Mettre en gras l'élément actif */
}

/* Barre de navigation fixe */
.navbar {
    display: flex; /* Active le mode Flexbox */
    justify-content: center; /* Centre les éléments horizontalement */
    align-items: center; /* Centre verticalement les éléments */
    position: sticky; /* Barre fixe en haut */
    top: 0; /* Ancre la barre en haut */
    height: 85px; /* Hauteur uniforme */
    z-index: 1000; /* Priorité sur les autres éléments */
    background-color: #222; /* Couleur de fond */
}
.nav-wrapper {
    margin: 0;
    padding: 0;
}
.navbar .navbar-nav > li {
  margin-right: 20px; /* Espace entre les éléments de navigation */
}

.navbar .navbar-nav > li > a {
  color: #fff; /* Couleur du texte */
  padding: 15px 20px; /* Ajuste l'espacement interne */
  text-transform: uppercase; /* Texte en majuscules */
  font-weight: 300; /* Semi-gras */
  transition: background-color 0.3s ease-in-out; /* Transition fluide */
}

.navbar .navbar-nav > li > a:hover {
  background-color: #2874a6; /* Couleur de fond au survol */
  color: white; /* Texte blanc */
}

/* Espacement entre la barre de navigation et la barre grise */
.navbar + .breadcrumb {
  margin-top: 10px;
}

/* Style élégant pour les liens */
.nav-link, .dropdown-item {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.nav-link.active {
  font-weight: bold;
  border-bottom: 2px solid #000; /* Accentuation */
}

/* Menu déroulant */

.dropdown-menu {
  border-radius: 0; /* Angles carrés */
  background-color: #222; /* Fond sombre */
  border: 2px solid #444; /* Bordure grise */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre subtile */
  padding: 0; /* Supprimez tout padding interne */
}

.dropdown-item {
  box-sizing: border-box; /* Gestion stricte des dimensions */
  color: white;
  padding: 10px 20px; /* Espacement interne */
  text-transform: uppercase;
  letter-spacing: 1px; /* Espacement des lettres */
  border-bottom: 1px solid #444; /* Ligne séparatrice */
  background-color: transparent; /* Fond par défaut */
  margin: 0; /* Aucune marge inutile */
  transition: background-color 0.3s ease-in-out; /* Transition fluide */
}

.dropdown-item:hover {
  background-color: #2874a6; /* Fond bleu */
  color: white; /* Texte blanc */
  box-shadow: none; /* Pas d'ombre */
}

.dropdown-item:last-child {
  border-bottom: none; /* Pas de ligne pour le dernier élément */
}

/* Séparateur */
.dropdown-divider {
  border-color: #444; /* Gris discret */
}

/* Styles pour les icônes des réseaux sociaux */
.social-links {
  display: flex; /* Disposition en ligne */
  gap: 5px; /* Espacement entre les icônes */
  align-items: center; /* Alignement vertical au centre */
  justify-content: flex-end; /* Aligner les icônes à droite */
  flex-wrap: nowrap; /* Empêche les retours à la ligne */
  margin: 0; /* Supprime les marges inutiles */
    margin-right: 20px; /* Décale les icônes vers la gauche */
}

.social-links a {
  color: white; /* Couleur des icônes */
  font-size: 20px; /* Taille des icônes */
  text-decoration: none; /* Supprime le soulignement */
  transition: color 0.3s ease, transform 0.2s ease-in-out; /* Effets de transition */
}

.social-links a:hover {
  color: #2874a6; /* Couleur au survol */
  transform: scale(1.2); /* Légère mise en avant */
}


/* Top-bar */
.top-bar {
  background-color: #f5f5f5;
  padding: 10px 0;
}

.top-bar .social-links {
  padding: 5px;
}

.top-bar .social-links li a {
  font-size: 18px;
  color: #333;
  padding: 0 10px;
}

/* Résolution pour les petits écrans */
@media (max-width: 767px) {
  .navbar-header .navbar-toggle {
    display: block;
  }

  .navbar-collapse {
    width: 100%;
    display: block;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.8); /* Fond noir semi-transparent */
    transition: height 0.3s ease-in-out; /* Transition fluide */
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav > li {
    padding: 10px 0;
  }
}

/* Style du toggle (bouton hamburger) */
.navbar-toggler-icon {
  background-color: #fff; /* Couleur blanche */
  width: 30px;
  height: 3px;
  margin: 6px 0;
}

/* Ajustements divers */
h1, h2, h3, h4, h5, h6 {
  color: #333;
  line-height: 1.0em;
  font-weight: normal;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
  color: grey;
}
.card-title {
    font-size: 0.9rem; /* Ajustez la taille comme vous le souhaitez */
}
.muted {
    font-size: 0.8rem; /* Réduisez la taille à 80% de la valeur par défaut */
}

p {
  padding-bottom: 25px;
  line-height: 24px;
}

p:last-of-type {
  padding-bottom: 0;
}

/* Supprimer soulignement des liens */
a {
  text-decoration: none;
  color: #008cff;
}

a:hover {
  color: #fd4700;
}

/* Assurer une mise en page en 4 colonnes */
.portfolio-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}

.portfolio-item {
    margin-bottom: 30px;
    padding: 0 15px; /* Ajoute de l'espace entre les colonnes */
    box-sizing: border-box;
}

/* Les images doivent être de taille responsive et s'ajuster à leur conteneur */
.portfolio-item img {
    width: 100%; /* Assure que l'image prend toute la largeur de la colonne */
    height: auto; /* Garde les proportions de l'image */
    max-height: 200px; /* Limite la hauteur des images pour qu'elles ne deviennent pas trop grandes */
    object-fit: cover; /* Couvre l'espace sans déformer l'image */
}


/* Style des titres sous les images */
.portfolio-item .caption {
    text-align: center;
    padding-top: 10px;
}

.portfolio-item .caption h3 {
   font-size: 0.9rem;
  
    margin: 0;
    color: #333;
}

/* Grille responsive: 2 colonnes sur petits écrans */
@media (max-width: 767px) {
    .col-xs-6 {
        width: 50%; /* 2 colonnes sur les petits écrans */
    }
}

/* Sur grands écrans, 4 colonnes */
@media (min-width: 768px) {
    .col-sm-3 {
        width: 25%; /* 4 colonnes sur grands écrans */
    }
}

/* pour traiter la presse avec media*/
.media {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.media img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.media-heading a img {
    width: 20px; /* Limite la taille à 50px */
    height: auto; /* Maintient le ratio d'aspect */
    margin-left: 10px; /* Ajoute un espace avec les autres éléments */
    vertical-align: middle; /* Aligne correctement avec le texte */
}


.media-body {
    flex: 1;
}

.media-heading {
    display: block;
    margin-top: 10px;
 font-size: 85%; /* Correspond à la taille de `.small` */
    color: #6c757d; /* Gris typique de `.muted` ou `.small` */
    font-weight: normal; /* Assure que le texte n'est pas en gras */
}

.media-heading small {
    font-size: 12px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .media {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .media img {
        margin-bottom: 10px;
    }
}
