/* --- Conteneur global --- */
.article-meta {
  font-size: 0.9rem;
  color: #666; /* Couleur gris clair */
  margin-top: 5px;
  display: flex;
  gap: 5px; /* Espacement entre les éléments */
  align-items: center;
  flex-wrap: wrap; /* S'adapte aux petits écrans */
}
#survey-default_survey_id .article-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 25px;
  position: relative;
  padding-left: 15px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  color: #e65f0d;
}

#survey-default_survey_id .article-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 85%;
  background-color: black;
  position: absolute;
  left: -5px;
  top: 0;
}
.vote-count {
  background: black;
    color: white;
    padding: 0.3% 1.5%;
    border-radius: 25px;
}
.article-meta span {
  display: inline-block;
}

.news-block .article-meta .article-read-time i {
  margin-right: 2px; /* Espacement entre l'icône et le texte */
  color: #e65f0d; /* Couleur orange pour l'icône */
}

.article-meta .article-read-time {
  display: flex;
  align-items: center;
  color: #333; /* Couleur pour le temps de lecture */
}

.article-meta .article-date {
  color: #666; /* Couleur pour la date */
}

.news-block {
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 2% 1%;
  max-width: 1550px;
}
.news-block .article-content {
  padding: 0;
}

.container {
  max-width: 1550px;
  margin: 0 auto;
}
.news-wrapper {
  display: flex;
  gap: 30px;
}

/* --- Partie gauche : Récents --- */
.news-left {
  width: 50%;
  background: #fff;
  border-radius: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 25px;
  position: relative;
  padding-left: 15px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 85%;
  background-color: #e65f0d;
  position: absolute;
  left: -5px;
  top: 0;
}
.recent-articles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 25px;
}

.recent-articles .article-item {
  display: flex;
  flex-direction: column;
}

.recent-articles .article-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recent-articles .article-thumbnail {
  width: 97%;
  height: 370px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  position: relative;
}

.recent-articles .article-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 97%;
}

.recent-articles .article-category {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.4% 0.9%;
  margin-top: 0.4%;
  margin-left: 0.4%;
  border-radius: 25px;
  background-color: #e65f0ddb;
  position: absolute;
}

.recent-articles .article-title {
  /* font-size: 1.1rem; */
  color: #333;
  /* font-weight: 600; */
  /* line-height: 1.4; */
  margin: 0;

  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: bold;
}

/* --- Partie droite : Populaires --- */
.news-right {
  width: 50%;
  background: #fff;

  position: sticky;
  top: 100px;
  align-self: flex-start; /* Assure que l'élément s'aligne en haut */
}

.popular-articles {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-articles .article-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 20px;
}

.popular-articles .article-item:last-child {
  margin-bottom: 0;
}

.popular-articles .article-link {
  text-decoration: none;
  display: block;
}

.popular-articles .article-title {
  font-size: 1.1rem;
  color: #333;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 3px;
}

span.article-date,
.article-author,
.article-read-time {
  font-size: 0.9rem;
  color: #666; /* Couleur gris clair */
  /* margin-top: 5px; */
  gap: 5px; /* Espacement entre les éléments */
  align-items: center;
  flex-wrap: wrap;
  /* margin-left: 2%; */
}

/* --- Dots et hover effects --- */
.article-dot {
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background-color: #e65f0d;
  border-radius: 50%;
}

.article-link:hover .article-title {
  color: #e63946;
  transition: color 0.2s ease;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .news-wrapper {
    flex-direction: column;
  }

  .news-left,
  .news-right {
    width: 100%;
  }
  .news-right {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
  }
  .recent-articles {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-left: 2.7%;
  }

  .recent-articles .article-thumbnail {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .recent-articles .article-thumbnail {
    height: 180px;
  }

  .recent-articles .article-title {
    font-size: 1.1rem;
  }

  .news-right .section-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 14px;
  }
  .section-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
  }
}

.article-link:hover .article-title {
  color: #e65F0d;
  transition: color 0.2s ease;
}

/* --- Modification de la partie droite avec timeline --- */
.popular-articles {
  list-style: none;

  margin: 0;
  position: relative; /* Pour le positionnement de la ligne */

}

/* Ajout de la ligne verticale */
.popular-articles:before {
  content: "";
  position: absolute;
  left: 3.72px; /* Position centrée sur les points */
  top: 16px; /* Commence après le premier point */
  bottom: 12px; /* S'arrête avant le dernier point */
  width: 1px;
  background-color: #e5e5e5; /* Couleur gris clair subtile */
}

.popular-articles .article-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 20px;
}

/* --- Modification du point --- */
.article-dot {
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background-color: #e65f0d; /* Nouvelle couleur orange */
  border-radius: 50%;
  z-index: 1; /* Pour être au-dessus de la ligne */
}
.survey-option {
  margin-bottom: 20px;
}
.survey-options {
  width: 100%;
}

.survey-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: bold;
  color: #6c6f72;
  width: 100%;
}

.progress-bar-container {
  position: relative;
  width: 100%;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 5px;
}

.progress-bar {
  height: 100%;
  background-color: #ffa504;
  transition: width 0.5s ease-in-out;
}

.double-articles-section {
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-top: 2%; */
  /* background-color: #eaeaea; */
}

.double-articles-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 85%;
}

.article-wysiwyg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  padding-top: 3%;
  padding-bottom: 3%;
  gap: 3%;
  /* border: solid 1px black; */
}

.article-wysiwyg img {
  width: 40%;
}

.colcarte {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  width: 45%;
}

.article-survey {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 5%;
  flex-direction: column;
  /* border: solid 1px black; */
  border-radius: 25px;
  border: 0.2px solid #ccc;
  margin-top: 10%;
}
.article-survey p {
  color: #333333;
  font-size: 1.2rem;
  line-height: 32px;
margin-top: 2%;
  font-weight: 600;
  margin-bottom: 4%;
}

.article-survey h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 5px;
  position: relative;

  text-transform: uppercase;
  display: flex;
  align-items: center;
  width: 100%;
  color: inherit;
}

.article-survey h3 span {
  color: #e65F0d;
  font-size: 1.5em;
  font-weight: bolder;
  margin-left: 1%;
}

.wysiwyg-content p {
  color: #6c6f72;
  font-size: 1.2rem;
  line-height: 32px;
  font-weight: lighter;
  font-weight: 300;
}

.wysiwyg-content h3 {
  color: #6c6f72;
  font-size: 1.5rem;
  margin-bottom: 3%;
  font-weight: 800;
  text-transform: uppercase;
}
.survey-option {
  width: 100%;
}

.wysiwyg-content h3 span {
  color: #e65F0d;
  font-size: 2.2rem;
  font-weight: bolder;
}

.colcarte a {
  text-decoration: none;
  color: white;
  background-color: #e65F0d;
  padding: 0.9em 1.5em;
  margin-top: 8%;
  border-radius: 25px;
  letter-spacing: 0.12em;
  font-size: 0.9em;
}
@media (max-width: 768px) {
  .popular-articles:before {
left: 22.72px;
  }
  .popular-articles {
    padding: 0 5.3%;
  }
  #survey-default_survey_id .article-title {
    font-size: 1.5rem;
  }
  .article-wysiwyg {
    margin-bottom: 10%;
  }
  .double-articles-section {
    flex-direction: column;
    padding: 20px;
  }

  .double-articles-container {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .article-wysiwyg,
  .article-survey {
    width: 100%;
    padding: 15%;
  }
  .article-survey {
    padding-bottom: 15%;
  }

  .colcarte {
    width: 100%;
    text-align: left;
  }

  .colcarte a {
    margin-top: 25px;
  }

  .survey-options {
    width: 100%;
  }

  .survey-option {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 15px;
  }

  .survey-label {
    justify-content: space-between;
    font-size: 14px;
  }

  .progress-bar-container {
    width: 100%;
    height: 15px;
  }

  .progress-bar {
    height: 15px;
  }

  .article-survey h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .article-survey p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .article-survey h3 {
    font-size: 1rem;
  }

  .article-survey p {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .survey-label {
    font-size: 14px;
  }

  .progress-bar-container {
    height: 10px;
  }

  .progress-bar {
    height: 10px;
  }
}
.vote-button {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  background-color: black; /* orange vif */
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.vote-button:hover {
  background-color: #e68900;
  transform: scale(1.05);
}

.vote-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Responsive : réduit un peu sur mobile */
@media (max-width: 600px) {
  .vote-button {
    padding: 6px 12px;
    font-size: 13px;
  }
}
