.title-card #titre-link-card {
  font-size: 2rem;
  font-weight: bold;
  /* margin-bottom: 1rem; */
  position: relative;
  text-transform: uppercase;
  background: none;
  color: black;
  padding-left: 0;
  text-align: left;
  margin-left: 5%;
}
.title-card #titre-link-card::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 63%;
  background-color: #e65f0d;
  position: absolute;
  left: -23px;
  top: 30px;
}

.survey-option {
  margin-bottom: 20px;
}

.survey-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: bold;
  color: #6c6f72;
}
.title-card {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 25px;
  position: relative;
  /* padding-left: 15px; */
  text-transform: uppercase;
  display: flex;
  align-items: center;

}
/* .title-card::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 85%;
  background-color: #e65f0d;
  position: absolute;
  left: -5px;
  top: 0;
} */
.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: #e65F0d;
  transition: width 0.5s ease-in-out;
}

.double-articles-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2% 1%;
  /* margin-top: 2%; */
}

.double-articles-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem 0 3.5rem;
  flex-direction: column;
  align-items: flex-start;
}

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

.article-wysiwyg img {
  width: 40%;
  max-width: 360px;
  margin: 0 3rem;
}

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

.article-survey {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5%;
  flex-direction: column;
  /* border: solid 1px black; */
}

/* .article-survey p {
  color: #6c6f72;
  font-size: 1.2rem;
  line-height: 32px;
  font-weight: lighter;
  font-weight: 300;
  margin-bottom: 4%;
} */

/* .article-survey h3 {
  color: #6c6f72;
  font-size: 1.5rem;
  margin-bottom: 3%;
  font-weight: 800;
  text-transform: uppercase;
} */

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

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

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

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

#double-articles .colcarte a {
  text-decoration: none;
  /* color: white;
  background-color: #e65F0d; */
  /* padding: 0.9em 1.5em; */
  margin-top: 8%;
  border-radius: 25px;
  letter-spacing: 0 !important;
  font-size: 2.2rem;
}
 #article-button-link {
      display: inline-flex;
      align-items: center;
      gap: 15px;
      padding: 10px 15px !important;
      background-color: #e65f0d;
      color: white;
      text-decoration: none;
      font-size: 1em !important;
      border-radius: 8px !important;
      transition: all 0.3s 
  ease;
      align-self: center;
}
@media (max-width: 768px) {
  .wysiwyg-content p {
    font-size: 1rem;
    line-height: 23px;
    margin-bottom: 0;
  }
  .article-wysiwyg {
    margin-bottom: 10%;
  }
  .double-articles-section {
    flex-direction: column;
    padding: 20px;
  }

  #double-articles .double-articles-container {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 2% 2.9% !important;
 
  }

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

  .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: 12px;
  }

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

  .progress-bar {
    height: 10px;
  }
}
/* Styles pour le bloc de carte */
.double-articles-section {
  margin: 2rem 0;
  font-family: "Montserrat", sans-serif;
  width: 65%;
}

.double-articles-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

#double-articles .article-wysiwyg {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 0;
}

/* Container de la carte */
.map-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
}

/* Styles pour la carte personnalisée */
.amenageurs-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Overlay de texte */
.text-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.333%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.text-content {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.colcarte {
  text-align: left;
}

.title-card {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  position: relative;
  text-transform: uppercase;
}

.wysiwyg-content {
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.5rem;
}

.article-button {
  display: inline-block;
  background-color: #48bcbf;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.article-button:hover {
  background-color: #ff7e5f;
  transform: translateY(-2px);
}

/* Styles pour la popup */
.custom-popup .leaflet-popup-content-wrapper {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.custom-popup .leaflet-popup-content {
  margin: 10px 15px;
}

.custom-popup .popup-title {
  color: #e65f0d;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 16px;
}

.custom-popup .popup-address,
.custom-popup .popup-phone {
  margin: 2px 0;
  font-size: 14px;
}

/* Styles Leaflet */
.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  z-index: 3 !important;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
  z-index: 5 !important;
}

.leaflet-popup-pane {
  z-index: 6 !important;
}

/* Responsive */
@media (max-width: 992px) {
  .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
    border-bottom: solid 10px #e65f0d;

  }
  .text-overlay {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    background: #e65f0d;
  }

  .map-container {
    height: auto;
    display: flex;
    flex-direction: column-reverse;
  }

  .amenageurs-map {
    position: relative;
    height: 400px;
  }

  .text-content {
    text-align: center;
  }

  .colcarte {
    text-align: center;
  }
}

@media (max-width: 768px) {
  #double-articles .article-wysiwyg{
    margin-top:5%;
  }
  .double-articles-section {
    width: 100%;
    margin: 0;
  }

  .amenageurs-map {
    height: 350px;
  }

  .text-content {
    padding: 0.5rem 1rem 1.5rem 1rem;
  }

  .title-card {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .title-card {
    margin-bottom: 0;
  }
  .title-card #titre-link-card {
    font-size: 1.5rem;
    margin-bottom: 0;
    margin-top: 0;

  }
  .amenageurs-map {
    height: 300px;
  }

  .article-button {
    padding: 0.7rem 1.4rem;
    width: 100%;
    text-align: center;
    margin-top: 0 !important;
  }
}

/* Ratio équilibré : carte toujours plus grande que le contenu */
@media (min-width: 993px) {
  .text-overlay {
    width: 35%; /* Retour au % mais optimisé */
    max-width: 380px; /* Limite maximale */
    min-width: 320px; /* Limite minimale */
  }
  
  .text-content {
    padding: 1.8rem 1.5rem;
  }
  
  .title-card #titre-link-card {
    font-size: 1.6rem;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .wysiwyg-content p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media (min-width: 1250px) {
  .text-overlay {
    width: 32%; /* Réduire pour laisser plus d'espace à la carte */
    max-width: 420px;
  }
  
  .title-card #titre-link-card {
    font-size: 1.7rem;
  }
}

@media (min-width: 1400px) {
  .text-overlay {
    width: 33%;
    max-width: 460px;
  }
  
  .text-content {
    padding: 2rem;
  }
  
  .title-card #titre-link-card {
    font-size: 1.85rem;
  }
  
  .wysiwyg-content p {
    font-size: 1.1rem;
  }
}

@media (min-width: 1600px) {
  .text-overlay {
    width: 33%;
    max-width: 500px;
  }
  
  .title-card #titre-link-card {
    font-size: 2.2rem;
  }
  
  .text-content {
    padding: 2.5rem;
  }
}

@media (min-width: 1920px) {
  .text-overlay {
    max-width: 550px;
  }
}

/* Sécurité */
.title-card #titre-link-card {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: block;
}

.text-content {
  box-sizing: border-box;
}