/* Section À la une (featured-article) responsive */
/* .featured-article {
  background: #fff;
  display: flex;
  flex-direction: row;
  gap: 32px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 12px rgb(0 0 0 / 0.1);
  margin-bottom: 40px;
  align-items: center;
  padding: 24px;
} */



/* .featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 10px;
} */


/* Reset basique */

body {
   --color-1: #D4AF37;
}


/* Container principal */

/* Titre principal*/
.sary{
  position: relative;
}
.title {
  color: #fffcfc;
  font-size: 4rem;
  position: relative;
  /* padding: 65px 27rem; */
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  height: 20rem;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 20px;

}

.title::after {
  position: absolute;
  content: " ";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.title span {
  position: absolute;
  z-index: 500;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}



/* Barre recherche + filtres */
.search-filters {
  background: white;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgb(0 0 0 / 0.05);
  margin-bottom: 30px;
}

/* Barre de recherche */
.search-filters input[type="search"] {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 14px;
  color: #666;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-filters input[type="search"]::placeholder {
  color: #bbb;
}

.search-filters input[type="search"]:focus {
  border-color: var(--color-1);
  /* couleur jaune */
}

/* Boutons filtres */
.filter-btn {
  background: #F3F4F6;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--color-1);
  color: #222;
  border-color: var(--color-1);
}

/* Section À la une */
.featured-article {
  background: white;
  display: flex;
  overflow: hidden;
  /* box-shadow: 1px 0 12px rgb(0,0,0); */
  margin-bottom: 40px;
  position: relative;
  justify-content: space-between;
  align-items: center;
  gap:16px;
}

.featured-article .fonts {
  /*SARY  */
  /* width: 90px;
  height: auto;
  object-fit: cover;
  margin-bottom: 20px; */
  /* SORATRA */
  font-size: 14px;
  color: var(--color-1);
  background-color: #DDDD;
  width: fit-content;
  padding: 6px 8px;
  border-radius: 24px;
}

.featured-article-image {
  width: 150px;
  height: 150px;
  /* border:1px solid black; */
  /* height: 100%; */
  /* border-radius: 15px; */
  overflow: hidden;
  /* padding-right: 24px;
  border-right:1px solid rgba(25,25,25,0.7); */
  
  
}
@media screen and (max-width:492px){
  .featured-article-image{
    width:75px;
    height: 75px;
  }
}


.image-test {
  display: block;
  width: 100%;
  height:100%;
  object-fit: cover;
  object-position: center;

}

.featured-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgb(240,240,240);
  padding:12px;
}

.tag {
  color: var(--color-1);
  background-color: #FBF7EB;
  font-weight: 400;
  font-size: 12px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 15px;
  margin-bottom: 15px;
}

.featured-content h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
}

.featured-content p {
  flex-grow: 1;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  
}

.meta-info {
  font-size: 12px;
  color: #999;
  margin-top: 15px;
  position: absolute;
  right: 0;
  text-decoration: none;
  bottom: 0;

}

.meta-info span {
  /* margin-right: 15px; */
}

.meta-info img {
  width: 10px;
}

.read-more {
  font-weight: 600;
  color: var(--color-1);
  text-decoration: none;
  font-size: 14px;
}

.read-more:hover {
  text-decoration: none;
}

/* Section tous les articles : grille
 .articles-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   /* 3 colonnes fixes *
   gap: 25px;
   margin-bottom: 40px;
 } */

/* Grille responsive pour les articles */
.articles-grid {
  display: flex;
  /* grid-template-columns: repeat(3, 1fr); */
  row-gap: 24px;
  /* margin:0px auto 40px; */
  margin: 50px 0px;
  justify-content: space-evenly;
  align-items: stretch;
  flex-wrap: wrap;
}




.article-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 8px rgb(0 0 0 / 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 32%;
}
.article-card:hover{
  box-shadow: 1px 1px 5px rgba(20,20,20,0.7);
}
@media screen and (max-width: 992px) {
  .article-card{
    width:48%;
  } 
}

@media screen and (max-width: 692px) {
  .article-card{
    width:70%;
  } 
}

@media screen and (max-width: 496px) {
  .article-card{
    width:90%;
  } 
}

.article-card-image {
  width: 100%;
  height: 160px;
}

.article-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-content {
  padding: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-tag {
  display: flex;
  align-items: center;
  font-weight: bolder;
  color: var(--color-1);
  background-color: #2a2a2a;
  border-radius: 15px;
  gap:4px;
  font-size: 0.65em;
  width:fit-content;
  padding: 2px 8px;
  margin:0px 0px 32px;
}



.fleche {
  color: var(--color-1);
}


.article-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.2;
  color: #222;
}

.article-desc {
  font-size: 13px;
  color: #666;
  flex-grow: 1;
  margin-top: 12px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 10px 15px;
  color: #999;
  margin-bottom: 10px;
}

.article-meta::before {
  content: url(icône/Frame\ \(4\).png);
  margin-right: 5px;
  display: flex;
}

.footer-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  gap: 1px;
  float: right;
}


.article-bottom{
  display: flex;
  align-items: center;
  padding: 4px;
  justify-content: space-between;
  font-size: 0.9em;
}
.article-bottom-calendar{
  display: flex;
  align-items: center;
  gap:4px;
}
.article-read {
  display: flex;
  align-items: center;
  gap:4px;
}


.article-read:hover{
  cursor:pointer;
  font-weight: bolder;
}


.article-read div {
  color: var(--color-1);
  text-decoration: none;
  /* font-weight: bolder; */
}





/* Modal styles */
.modal {
  display: flex;
  position: fixed;
  z-index: 1000;
  top:0;
  width:100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 600px;
  width: 90%;
  /* margin: 40px auto; */
  /* padding: 24px; */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  animation: modalIn 0.25s;
  max-height: 90vh;
  overflow: scroll;
}
.modal-article-content-above{
  display: flex;
  align-items: flex-start;
  gap:16px;
  font-size: 12px;
  font-weight: bolder;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.modal-article-content-image{
  width:150px;
  height: 150px;
  border-radius: 8px;
  overflow:hidden;
}
.modal-article-content-image img{
  width:100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width:496px){
  .modal-article-content-above{
    flex-direction: column;
    align-items: center;
  }
}

@keyframes modalIn {
  from {
    transform: translateY(40px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.modal-close {
  /* position: absolute; */
  /* right: 18px; */
  /* top: 18px; */
  position:sticky;
  top:0px;
  left:0px;
  width:100%;
  background-color: rgba(240,240,240,0.85);
  text-align: end;
  padding: 2px 8px;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}



.modal-close:hover {
  color: #222;
}

#modal-article-content{
  padding: 12px;
}

#modal-article-content h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #2a2a2a;
  /* text-align: center; */
}


#modal-article-content p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
  margin:16px 0px
}

#modal-article-content ul{
  padding-left: 24px;
  font-size: 0.9em;
}




/* Responsive mobile */
@media (max-width: 720px) {

  .title {
    font-size: 2.5rem;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
  }

  .newsletter {
    width: 100%;
    padding: 24px 8px;
    border-radius: 0;
    box-sizing: border-box;
  }

  .newsletter p {
    float: none;
    text-align: left;
    margin: 0 0 12px 0;
    width: 100%;
  }

  .newsletter form {
    padding-left: 0;
    left: 0;
    justify-content: flex-start;
  }

  .newsletter input {
    width: 100%;
    margin-bottom: 10px;
  }
}




@media (max-width: 600px) {
  .modal-content {
    padding: 16px 6px 16px 6px;
  }
}

.hidden{
  display:none;
}