
body{
  font-family: 'Helvetica Neue', sans-serif;
}

/* SECTION PRINCIPALE */
.section-actualites {
  margin-bottom: 3rem;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: row;
  gap : 1rem;
}


a.carte-epingle{
  text-decoration: none;
  color :#1D1D1B;
}

/* Cartes des récents */


.cartes-recents .carte-epingle{
  display: flex;
  flex-wrap: wrap;
  
  
}

.cartes-recents .carte , .carte-epingle{
  display: flex;
  position : relative;
  flex-direction: column;
  background-color: #fff;
  padding: 32px;
  width : 100%;
  transition : box-shadow 200ms;
  max-width: 25%;
}

.cartes-recents .carte:hover , .carte-epingle:hover{
  box-shadow: 2px 4px 22px 0px rgba(29, 29, 27, 0.15);
}

.cartes-recents .carte .cat, .carte-epingle .cat {
  background: rgba(255, 255, 255, 0.61);
  display: inline-block;
  position: absolute;
  top : 2.5rem;
  left : 2.5rem;
  
  padding: 0.25rem 0.5rem;
  margin-bottom: 1rem;

  font-weight: bold;
  font-size: 16px;
  font-family: 'Helvetica Neue', sans-serif;
  color : #1D1D1B ;
}

.cartes-recents .carte .cat.bleu, .carte-epingle .cat.bleu{
  background: #3A7CF4;
  color : #fff;
}

.cartes-recents .carte .cat.jaune, .carte-epingle .cat.jaune{
  background : #FCEBB8;
  color : #1D1D1B;
}


.cartes-recents .carte img, .carte-epingle img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cartes-recents .carte h3 , .section-actualites .carte-epingle h3{
  font-size: 20px;
  font-family: 'Helvetica Neue', sans-serif;
  color : #1D1D1B;
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-decoration: none;

  display: -webkit-box;
  -webkit-line-clamp: 2;      /* nombre de lignes max */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cartes-recents .carte h3::before , .section-actualites .carte-epingle h3::before{
  content : "";
  margin : 0;
}

.cartes-recents .carte .date, .section-actualites .carte-epingle .date {
  background: #ffdc7344;
  display: flex;
  width: fit-content;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size : 1rem;
}

.cartes-recents .carte .date span, .section-actualites .carte-epingle .date span{
  font-size: 1rem;
  color : #1D1D1B;
}

/* Responsive */
@media (max-width: 1024px){
  .section-actualites{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cartes-recents .carte, .carte-epingle{
    width : 100%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .cartes-recents {
    /* flex-direction: column; */
  }



  .cartes-recents .carte {
    flex: 1 1 100%;
  }
}
