/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-img {
  height: 35px;
  max-width: 160px;
}

nav.desktop-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: black;
  font-size: 14px;
}

.cta {
  background-color: black;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

/* BURGER MENU */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: black;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.mobile-nav a {
  text-decoration: none;
  ont-size: 14px;
}

.mobile-nav-link {

  color: black;

}

/* HERO WRAPPER AVEC ARRONDI ET MARGE */
.hero-wrapper {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 280px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: 16px;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  text-align: left;

}

.hero-text h1 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
}

.hero-text strong {
  font-weight: bold;
}

.hero-text p {
  margin-top: 10px;
  font-size: 16px;
}

.hero-text .btn {
  display: inline-block;
  max-width: fit-content;
  width: auto;
  /* ← C'EST CETTE LIGNE QUI MANQUAIT */
  margin-top: 20px;
  padding: 10px 22px;
  border-radius: 999px;
  background-color: white;
  color: black;
  font-weight: bold;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.hero-text .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


/* SECTION */
.section {
  padding: 40px 20px;
}

.section h2 {
  font-size: 28px;
}

.section h3 {
  font-size: 24px;
  font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav.desktop-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    height: 220px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .hero-text .btn {
    font-size: 14px;
    padding: 10px 18px;
    text-decoration: none;
  }
}


.services {
  padding: 20px 20px;
  background-color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #b8f6ef;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.service-card p {
  margin-bottom: 12px;
  font-size: 15px;
  color: #333;
}

.service-card .desc {
  font-size: 14px;
  color: #555;
}

.service-card .btn {
  align-self: flex-start;
  margin-top: 16px;
  background-color: white;
  color: black;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 14px;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.service-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer {
  background-color: #e5e5e5;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #333;
}


.hw-figures {
  padding: 60px 20px;
}

.hw-figures-wrapper {
  display: flex;
  flex-direction: column;
  /* mobile first */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.hw-figures-img {
  max-width: 220px;
  height: auto;
}

.hw-figures-text {
  width: 100%;
  text-align: center;
}

.hw-figures-text h2 {
  font-size: 28px;
  margin-bottom: 30px;
  line-height: 1.3;
}

.hw-figures-text h2 strong {
  font-weight: bold;
}

.hw-figures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.figure-card {
  background-color: #a2f2e2;
  border-radius: 10px;
  padding: 20px;
}

.figure-card .value {
  font-size: 24px;
  font-weight: bold;
}

.figure-card .label {
  font-size: 14px;
  margin-top: 5px;
}

/* Desktop layout */
@media (min-width: 1024px) {
  .hw-figures-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .hw-figures-text {
    text-align: left;
  }

  .hw-figures-text h2 {
    font-size: 36px;
  }

  .hw-figures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

canvas {
  max-height: 300px;
  /* Ajuste cette valeur selon ton besoin */
  width: 100%;
  /* Pour éviter un étirement horizontal */
}

.hw-figures-text p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  /* Espace entre les paragraphes */
  text-align: justify;
}



.graph-header h3 {
  margin: 0;
  font-size: 18px;
}

.graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  /* au cas où l'espace devient trop petit */
}

.graph-filter {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  max-width: 180px;
  /* <-- limite la taille */
  width: 100%;
  /* <-- adaptatif dans les petites colonnes */
  box-sizing: border-box;
  /* <-- évite tout débordement */
}


.map-wrap {
  position: relative; /* référence pour le absolute */
  width: 100%;
  height: 95vh;       /* même hauteur que #map */
}

#map {
  width: 100%;
  height: 100%;
}

#logo-overlay {
  position: absolute;
  top: 12px;              /* en haut à droite pour ne pas gêner la légende */
  right: 12px;
  z-index: 1001;
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,.3);
  pointer-events: none;   /* très important : ne capte pas les clics */
}

#logo-overlay img {
  display: block;
  width: clamp(90px, 12vw, 140px);
  height: auto;
}

.info.legend {
  background: white;
  padding: 10px;
  line-height: 18px;
  color: #333;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  font-size: 13px;
}

.info.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  opacity: 0.7;
}

.hidden {
  display: none !important;
}




@media (max-width: 768px) {
  .graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .graph-filter {
    width: 100%;
    max-width: 100%;
    /* s'assure qu'il prend toute la largeur disponible */
    font-size: 18px;
    /* plus grand sur petits écrans */
    padding: 12px;
  }

  .hero {
    height: 280px;
  }
}

.choices__list--dropdown .choices__item.choices__notice {
  display: none !important;
}

.form-container {
  max-width: 900px;
  /* adapte selon la largeur souhaitée */
  margin: 0 auto;
  padding: 1rem 1rem;
  /* un peu d'espace sur les bords */
}


.invisible {
  visibility: hidden !important;
}

.export-footer {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  text-align: right;
}


/* ====== Pop-up de partage ====== */
#share-popup {
  position: absolute;           /* positionné par le JS */
  z-index: 2001;                /* > header (2000) pour passer au-dessus */
  min-width: 180px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

/* Liens de la pop-up */
#share-popup .share-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font: inherit;
}
#share-popup .share-item:hover,
#share-popup .share-item:focus {
  background: #f3f4f6;
  outline: none;
}

.actions-inline {
  display: inline-flex;
  gap: 8px;         /* espace entre les boutons */
  flex-wrap: wrap;  /* si petit écran -> passe dessous */
}

/* Optionnel : petit tweak sur mobiles pour éviter que la pop-up dépasse trop */
@media (max-width: 480px) {
  #share-popup { min-width: 70vw; }
}