/* === Base === */
body {
  font-family: sans-serif;
  padding: 20px;
  background-color: #f0f8ff;
}

h1, h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* === Formulaires === */
select {
  padding: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  margin-right: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  padding: 10px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #005fa3;
}

.success {
  color: green;
  text-align: center;
  margin-top: 20px;
}

/* === Table principale === */
#data-table {
  width: 100%;
}

#data-table th,
#data-table td {
  text-align: center;
}

/* === Tableaux de segments === */
.segments-table {
  width: auto;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #ffffff;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.segments-table th,
.segments-table td {
  border: 1px solid #ccc;
  padding: 0.6rem;
  text-align: left;
}

.segments-table th {
  background-color: #0077cc;
  color: white;
}

.segments-table tr:nth-child(even) {
  background-color: #f2f8ff;
}

/* === Tableaux Top (autres pages) === */
.top-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1rem;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.top-table th,
.top-table td {
  border: 1px solid #ccc;
  padding: 12px 16px;
  text-align: center;
}

.top-table th {
  background-color: #0077cc;
  color: white;
  font-weight: bold;
}

.top-table tr:nth-child(even) {
  background-color: #f2f8ff;
}

/* === Header === */
header {
  background-color: #0077cc;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo img {
  height: 40px;
  margin-right: 0.5rem;
}

.logo:hover {
  opacity: 0.85;
  transform: scale(1.02);
  transition: all 0.2s ease-in-out;
}

/* === Navigation === */
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffdd57;
}

/* === Footer === */
.footer {
  text-align: center;
  max-width: 800px;
  margin: auto;
  line-height: 1.6;
}

/* === Statistiques / Graphiques (autres pages) === */
.stats {
  max-width: 800px;
  margin: auto;
}

.stat {
  margin-bottom: 15px;
}

.chart-container {
  width: 80%;
  margin: 40px auto;
}

.content {
  text-align: center;
  max-width: 800px;
  margin: auto;
  line-height: 1.6;
}

/* === Contact page container === */
.container {
  text-align: center;
  max-width: 600px;
  margin: auto;
}
