/* fichier : css/dirigeant_chatgpt.css */
/* Typo et reset minimal */
body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans Display', sans-serif;
  background: #ffffff;
  
}
#chart-container {
  width: 100%;
  max-width: 100%; /* ne dépasse jamais l'écran */
  height: 500px;    /* espace vertical suffisant */
  position: relative;
}
/* DERNIERS SCORES*/
.score-box {
    background-color: #f5f8fa;
    border-radius: 6px;
    overflow: hidden;
    width: 280px;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 2px rgba(0,0,0,0.1);
}

.score-title {
    background-color: #084b9d;
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-top: 1px solid #e0e0e0;
    background-color: #fff;
    transition: background-color 0.2s;
    font-size: 14px;
}

.score-item:nth-child(even) {
    background-color: #f0f4fa;
}

.score-item:hover {
    background-color: #e6f0ff;
}

.score-item .sondeur {
    flex: 1;
    font-weight: bold;
}

.score-item .confiance {
    width: 50px;
    text-align: right;
}

.score-item .ecart {
    width: 50px;
    text-align: right;
    font-weight: bold;
}

.positif .ecart {
    color: green;
}

.negatif .ecart {
    color: red;
}
/* tableau complet recap*/
.historique-ligne {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #ccc;
}
.historique-ligne.header {
  font-weight: bold;
  background-color: #f0f0f0;
}
.historique-ligne span {
  flex: 1;
  text-align: center;
  color:#00507D;
}
/*regions*/
.regions-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.regions-list li {
  margin: 10px 0;
}

.regions-list a {
  color: #0e4c92;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.regions-list a:hover {
  color: #e86c00;
}

details summary {
  font-weight: bold;
  cursor: pointer;
  padding: 12px 15px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: background 0.3s;
  list-style: none;
}

details[open] summary {
  background: #00507D;
  color: #fff;
  border-color: #00507D;
}
.regions-list li {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s;
}

/* Alternance des lignes */
.regions-list li:nth-child(odd) {
  background-color: #f9f9f9; /* Gris très clair */
}

.regions-list li:nth-child(even) {
  background-color: #eef4fa; /* Bleu très clair */
}

.regions-list li:hover {
  background-color: #e0ecff; /* Bleu un peu plus vif au survol */
}

.regions-list a {
  display: block;
  width: 100%;
  color: #0e4c92;
  font-weight: bold;
  text-decoration: none;
}

.regions-list a:hover {
  color: #e86c00;
}
/* select*/
.select-wrapper {
    display: inline-block;
    margin: 10px 0;
}

.select-wrapper label {
    font-weight: bold;
    margin-right: 8px;
    font-family: Arial, sans-serif;
    color: #333;
}

.select-wrapper select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #00507D; /* même couleur que le bouton "Réinitialiser" */
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.select-wrapper select:hover {
    background-color: #e86c00; /* couleur hover style bouton actif */
}

@media (max-width: 768px) {
  #chart-container {
    height: 450px; /* ou plus si besoin */
  }
}