/* --------- Initialisation --------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Roboto", sans-serif;
  background-color: hwb(340 99% 0%);
  color: #333;
  line-height: 1.6;
  padding: 0;
}

p{
  margin-bottom: 2em;
  text-align: justify;
}

p span{
  font-weight: bold;
}
ul{
  text-align: justify;
  padding-left: 20px;
  margin-left: 10px;
}
ul li{
  text-align: justify;
  
}
a{
  color: #0077cc;
}
a:hover{
  color:#003f6b;
}
.container {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5em;
}

/* --------- pour utiliser toute la page --------- */
.body-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}
/* --------- Info station --------- */
p#presentation_stations {
  text-align: justify;
}

.station_info {
  text-align: center;
  margin-top: 2em;
  margin-bottom: 0;
  padding: 0;
  font-weight: bold;
}
/* --------- Header --------- */
header {
  background-color: #005ea8;
  color: white;
  padding: 1em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header > section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
}

.header-flex {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-shrink: 0;
}

.header-logo {
  height: 50px;
  max-height: 10vh;
}

.header-title {
  font-size: 2em;
  margin: 0;
  text-align: left;
}

/* Bouton contact dans header */
.bouton-contact {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.bouton-contact:hover,
.bouton-contact:focus {
  background-color: rgba(255, 255, 255, 0.5);
  color: white;
  outline: none;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 2em;
  margin: 0;
  padding: 0;
}

nav ul li.liens a.parties {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1.1em;
  padding: 0.4em 0.8em;
  border-radius: 6px;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li.liens a.parties:hover,
nav ul li.liens a.parties:focus {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffd;
  outline: none;
}

/* --------- Footer --------- */
footer {
  background-color: #003f6b;
  color: #cfd9e8;
  padding: 2em 1.5em;
  font-size: 0.9em;
}

footer section {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5em;
}

footer section div {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

footer .titre_sous_section {
  font-weight: 700;
  font-size: 1.1em;
  margin-bottom: 0.5em;
  color: #a9bddc;
}

footer a.parties {
  color: #cfd9e8;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a.parties:hover,
footer a.parties:focus {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

/* --------- Typographie commune --------- */
/* ---- Titres communs ---- */
h2, h3 {
  text-align: center;
  color: #005ea8;
}

h2 {
  font-size: 2.5em;
  margin-top: 50px;
  margin-bottom: 20px;
}

h3 {
  margin-bottom: 1em;
}


/* Paragraphes centrés */
p.statut_description {
  text-align: center;
  margin: 1.5em 0;
  background-color: #eca049;
  padding: 1.2em;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  font-weight: bold;
}

/* Tableaux centrés */
table {
  margin: auto;
}

/* --------- Boutons réutilisables --------- */
.btn-primaire {
  background-color: #0077cc;
  color: white;
  border: none;
  padding: 0.6em 1.4em;
  margin-top: 2em;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primaire:hover,
.btn-primaire:focus {
  background-color: #005ea8;
  outline: none;
}

/* --------- Filtres --------- */
.cadres {
  text-align: center;
  margin: 1.5em 0;
  background-color: #e8f1fc;
  padding: 1.2em;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
p.station_name{
  text-align: center;
}
p.centre{
  text-align: center;
}

/* --------- Graphiques --------- */
.graph-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1em;
  border: 2px solid #e8f1fc;
  transition: opacity 0.4s ease-in-out;
  margin: auto;
  display: block;
}

#legende {
  font-style: italic;
  color: #444;
}

/* --------- Responsive --------- */
@media (max-width: 768px) {
  body {
    padding: 1em;
  }

  #map {
    height: 400px;
  }

  #filters {
    flex-direction: column;
  }

  #filters label,
  #filters input,
  #filters button {
    display: block;
    margin: 0.5em auto;
    text-align: center;
  }

  #station-info {
    padding: 0;
  }
}

@media (max-width: 600px) {
  header > section {
    flex-direction: column;
    align-items: center;
  }

  .header-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.3em;
  }

  .header-logo {
    height: 40px;
    margin-bottom: 0.5em;
  }

  .header-title {
    font-size: 1.4em;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5em;
  }

  nav ul li.liens a.parties {
    font-size: 1em;
  }

  footer section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer section div {
    width: 100%;
  }
}
