/* Barre de navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  color: #555;
  text-decoration: none;
}

nav ul li a:hover {
  color: #333;
}
.logo {
  height: 50px; /* ou la hauteur que vous souhaitez pour votre logo */
  width: auto; /* pour que la largeur s'ajuste proportionnellement à la hauteur */
  padding-right: 15px;
}
/* Bannière */
.display-4 {
  color: rgb(0, 173, 17);
}
.banner {
  background-color: #2c3e50;
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.banner h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.banner p {
  font-size: 1.5rem;
}

/* Articles */
section {
  padding: 3rem 1rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

article {
  background-color: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 1.5rem;
}

article h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

article p {
  font-size: 1.125rem;
  line-height: 1.5;
  color: #555;
}

/* Newsletter */
form input[type="email"] {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
}

form button[type="submit"] {
  background-color: #2c3e50;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

form button[type="submit"]:hover {
  background-color: #34495e;
}

.article-card {
  transition: all 0.3s ease-in-out;
}

.article-card:hover {
  box-shadow: 0 0 30px rgba(0, 255, 51, 0.632);
  transform: translateY(-5px);
}

/* affichage des articles accueil */
.text-link-dark-green {
  color: rgb(0, 173, 17);
}
.underline-animation {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.underline-animation:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: rgb(0, 173, 17);
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  transform: translateX(0%);
}

.underline-animation:hover:before {
  width: 100%;
  left: 0;
}

/* affichage des articles accueil */

.jumbotron h1.display-4 {
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}
.ad-container {
  border: 1px solid #ccc;
  padding: 10px;
  background-color: #f8f9fa;
}

/* affichage des articles dans articles */

.card-equal-height {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-equal-height .card-body {
  flex: 1;
}
.card-img-top {
  object-fit: cover;
  height: 200px; /* Vous pouvez ajuster cette valeur selon vos préférences */
}
.custom-card {
  width: 100%; /* Changez cette valeur pour modifier la largeur de la card */
}
.recent-article {
  border-bottom: 1px solid #ccc; /* Vous pouvez ajuster la couleur et l'épaisseur de la bordure selon vos préférences */
  padding-bottom: 5px; /* Vous pouvez ajuster l'espacement selon vos préférences */
}

.recent-article:last-child {
  border-bottom: none;
}

.recent-article a {
  text-decoration: none;
  color: inherit;
}

.recent-article a:hover {
  text-decoration: none;
  color: inherit;
}

/* FIN affichage des articles dans articles */
/* show-article */
.show-article {
  padding-left: 7%;
  padding-right: 7%;
}
.custom-title {
  height: 2.5em; /* Ajustez cette valeur en fonction de vos besoins */
}

.custom-description {
  height: 7em; /* Ajustez cette valeur en fonction de vos besoins */
}
.spacer {
  flex-grow: 1;
  min-height: 1em; /* Ajustez cette valeur en fonction de vos besoins */
}
.article-link {
  text-decoration: none;
  color: black;
}

.article-link:hover {
  text-decoration: none;
}
