/* Font */
@import url('https://fonts.googleapis.com/css?family=Quicksand:400,700');

/* Design */
*,
*::before,
*::after {
  box-sizing: border-box;
}



.main{
  max-width: 1200px;
  margin: 0 auto;
}

.main h1 {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

.card img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.card .btn {
  color: black;
  padding: 0.8rem;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: .6rem;
  font-weight: 400;
  display: block;
  width: 100%;
  cursor: pointer;
  border: 2px solid #18ac87;
  background: transparent;
}

.card .btn:hover {
  background-color: #18ac87;
  color: #fff;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 2px;
  padding: 2px;
}

.cards_item {
  display: flex;
  padding: 0 1rem;
}

/* Hover effect for cards */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  

@media (min-width: 40rem) {
  .cards_item {
    width: 50%;
  }
}

@media (min-width: 56rem) {
  .cards_item {
    width: 33.3333%;
  }
}

.card {
  background-color: white;
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card_content {
  text-align: center;
  color: black;
  padding: 1rem;
  /*background-color: #00796B; /* Un vert émeraude sombre, vibrant mais pas trop clair 
    background: linear-gradient(to bottom left, #FF6F61 40%, #FF8A3D 100%);*/
}


.card_title {
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: capitalize;
  margin: 0px;
}


.card_text {
  line-height: 1.5;
  margin-top: 0.75rem;    
  margin-bottom: 1.25rem;    
  font-weight: 300;
}
.made_by{
  font-weight: 400;
  font-size: 13px;
  margin-top: 35px;
  text-align: center;
}

/* Styles pour l'actualité à la Une */

/* Styles pour la sidebar */
.sidebar {
  padding: 20px;
  background-color: #e0f0e9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar h4 {
  color: #0a5f4a;
  font-weight: bold;
}

.list-group-item {
  padding: 10px;
  background-color: #f8f9fa;
  border: none;
}

/* Styles pour les articles */
#articles-container {
  gap: 20px;
}

.article-card {
  width: 300px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card h5 {
  padding: 10px;
  font-size: 1.2rem;
  color: #0a5f4a;
}

.article-card p {
  padding: 0 10px;
  color: #555;
  font-size: 0.9rem;
}
.overlay-text h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.overlay-text p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.article-meta {
  padding: 0 10px 10px;
  color: #888;
  font-size: 0.8rem;
}

.read-more:hover {
  background-color: #007947;
}

/* Styles pour l'actualité à la Une */
.featured-news-container {
  width: 70%;
  max-width: 800px;
}

.featured-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 400px; /* Limite la hauteur maximale */
}

/* Container pour Featured News */
.featured-news {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 80%;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  width: 80%;
  box-sizing: border-box;
}

/* Style pour le bouton "Lire plus" */
.read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  color: #fff;
  background-color: #0a5f4a;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.read-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

/* Effet de hover sur le bouton */
.read-more:hover {
  background-color: #007947;
  color: #fff;
  transform: translateY(-3px);
}

.read-more:hover i {
  transform: translateX(5px); /* Déplacement de l'icône vers la droite */
}

/* Responsive */
@media screen and (max-width: 992px) {
  .featured-news-container {
      width: 100%;
  }

  .overlay-text h4 {
      font-size: 1.3rem;
  }

  .overlay-text p {
      font-size: 0.8rem;
  }
}

@media screen and (max-width: 768px) {
  .featured-news-container {
      width: 100%;
  }

  .featured-news {
      height: 200px;
  }

  .featured-news-img {
      max-height: 200px;
  }

  .overlay-text {
      padding: 10px;
  }
}
