
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #d4d4ff;
  background-color: #272729;
  line-height: 1.6;
}



.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 2s infinite alternate;
  position: fixed; /* reste en place même si on scroll */
  top: 0;
  left: 0;
  width: 100vw;   /* largeur totale de l’écran */
  height: 100vh;  /* hauteur totale de l’écran */
  z-index: -1;    /* passe derrière tout le reste */
  overflow: hidden;


}



/* 🧭 Navigation */
nav {
  background-color: #1f1f22;
  padding: 1rem;
}

.navLinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.dashboard-section {
  display: grid;
  justify-content: center;
  align-items: center; /* centre verticalement */
  flex-direction: column; /* empile les éléments */
  margin: 40px auto;
  padding: 20px;
  background: #222;
  border-radius: 12px;
  margin-top: 5%;
  margin-inline: 2%;
}

@media (max-width: 1200px) {
  .dashboard-section {
    display: flex;
  }
}

.dashboard-section .dashboard-graph{
  grid-column: 1/2;
  grid-row: 1;
}

.dashboard-section .carte-station {
  grid-column: 2/2;
  grid-row: 1;

  margin-left: 5%;
}

.dashboard-section .Liste-stations {
  grid-column: 1/4;
  grid-row: 2;

  margin-top: 10px;
}

.dashboard-section nav {
  border-radius: 10px;
}


.dashboard-section iframe {
  width: 100%;
  height: 400px; /* fixe une hauteur lisible */
  border-radius: 14px;
  display: block;
}

.dashboard-section h2 {
  margin-top: 0; /* évite l’espace au-dessus */
}

.dashboard-section p {
  margin-bottom: 0; /* évite l’espace trop bas */
}

.info-section .grid ul li {

  padding: 1%;

}

.navLinks a {
  text-decoration: none;
  color: #d4d4ff;
  font-weight: bold;
  transition: color 0.3s;
}

.navLinks a:hover {
  color: #8caeed;
}

/* 🍇 Section standard */
.info-section {
  max-width: 1400px;         /* Plus large */
  margin: 40px auto 40px auto;
  padding: 40px 40px 40px 40px; /* Plus de padding */
  background: #181c24;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.18);
}

.info-section h2,
.info-section h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.info-section p {
  color: #ddddff;
  text-align: justify;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* 🔬 Grille de contenu */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;                 /* Plus d’espace entre les colonnes */
  justify-content: space-between;
}

.grid > div {
  flex: 1 1 350px;           /* Minimum 350px, s’étend si possible */
  min-width: 320px;
  max-width: 600px;
  margin: 0 10px;
}

.grid img {
  width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
}

/* 🧪 Encadré scientifique */
.highlight-box {
  background-color: #47378f;
  border-left: 5px solid #8caeed;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 800px;
  text-align: left;
}

/* 🛰️ Carte */
#map-container {
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 20px;
  background: #222;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

#map-container h2 {
  color: #ffffff;
}

#map {
  width: 100%;
  min-height: 400px;
  height: 400px !important;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #222; /* Pour voir la zone même si la carte ne charge pas */
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .headerBackground h1 {
    font-size: 2rem;
  }

  .headerBackground p {
    font-size: 1rem;
  }

  #map {
    width: 85vw;
  }
}

/* Responsive pour mobile */
@media (max-width: 900px) {
  .info-section {
    padding: 20px 5vw;
  }
  .grid {
    flex-direction: column;
    gap: 24px;
  }
  .grid > div {
    max-width: 100%;
    margin: 0;
  }
}

/* 🔗 Liens boutons */
.cta-button {
  display: inline-block;
  background-color: #8caeed;
  color: #272729;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: #6a92d4;
}

.stations-list {
  background: #23272f;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  color: #fff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stations-list table {
  width: 100%;
  border-collapse: collapse;
}

.stations-list th, .stations-list td {
  padding: 10px 8px;
  text-align: center;
}

.stations-list th {
  background: #2e3440;
  color: #aeefff;
}

.stations-list tr:nth-child(even) {
  background: #282c34;
}

.stations-list .online {
  color: #4caf50;
  font-weight: bold;
}

.stations-list .offline {
  color: #f44336;
  font-weight: bold;
}

.stations-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.station-card {
  background: linear-gradient(135deg, #23272f 80%, #2a1f65 100%);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  padding: 22px 30px 18px 30px;
  min-width: 210px;
  max-width: 250px;
  text-align: center;
  margin-bottom: 10px;
  border: 2.5px solid transparent;
  transition: transform 0.18s, border 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}

.station-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

.station-card.online {
  border-color: #4caf50;
}

.station-card.offline {
  border-color: #f44336;
  opacity: 0.85;
}

.station-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.status-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  border: 2px solid #fff2;
}

.status-dot.online {
  background: #4caf50;
}

.status-dot.offline {
  background: #f44336;
}

.station-card h4 {
  margin: 0;
  color: #aeefff;
  font-size: 1.18em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.station-card .detections {
  font-size: 1.08em;
  margin-bottom: 7px;
  color: #fff;
  font-weight: 500;
}

.station-card .statut {
  font-weight: bold;
  font-size: 1em;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.parag-highlight {
  background: #23272f;
  color: #aeefff;
  border-left: 5px solid #8caeed;
  padding: 1.2em 1em;
  border-radius: 10px;
  margin: 1.5em 0;
}

.parag-blue {
  background: #1e2a40;
  color: #b8d8ff;
  padding: 1em 1em;
  border-radius: 10px;
  margin: 1.2em 0;
}

.parag-purple {
  background: #2a1f65;
  color: #e0d4ff;
  padding: 1em 1em;
  border-radius: 10px;
  margin: 1.2em 0;
}

@media (max-width: 700px) {
  .stations-cards {
    flex-direction: column;
    align-items: center;
  }
  .station-card {
    width: 90%;
    min-width: unset;
    max-width: unset;
  }
}