/* === Boîtes statistiques couleurs === */

:root {
  --bleu-metal: #0078ff;
  --bleu-metal-fonce: #004fa3;
  --orange-flash: #ff8c00;
  --gris-fond: #f5f7fb;
  --blanc: #ffffff;
  --gris-texte: #333333;
  --ombre: rgba(0, 0, 0, 0.1);
}

html {
    /* Étape 1 : Assurer que l'élément racine occupe 100% de la fenêtre */
    height: 100%;
}

body {
    /* Étape 2 : Le dégradé doit couvrir au moins 100% du parent (html) */
    min-height: 100%; /* C'est la ligne la plus importante */

    font-family: "Segoe UI", Arial, sans-serif;
    background-color: var(--gris-fond); /* Inutile si le dégradé couvre tout */
    color: var(--gris-texte);
    margin: 0;
    padding: 0;
    
    /* Dégradé (qui maintenant s'étendra sur toute la hauteur) */
    /*background: linear-gradient(#0000ff, #007fff);*//*(blue, #007FFF);*/ /*lightblue);*/
	/*background: linear-gradient(navy, darkblue, navy);*/
	background: linear-gradient(navy, #008, #00a, #00a, #008, navy);
    
    /* Optionnel : Empêcher la répétition par précaution (mais min-height devrait suffire) */
    background-repeat: no-repeat; 
    
    /* Optionnel : Assurer que le dégradé couvre l'intégralité du conteneur */
    background-attachment: fixed; /* Si vous voulez que le dégradé reste fixe au scroll */
}

.container {
  /*max-width: 1000px;*/
  Width:90%;
  margin:20px auto;
  background: var(--blanc);
  padding:10px;/* 30px;*/
  border-radius: 15px;
  box-shadow: 0 6px 16px var(--ombre);
}

h1 {
  text-align: center;
  color:navy;/* var(--bleu-metal-fonce);*/
  letter-spacing: 1px;
  margin-bottom: 25px;
}

/* --- Formulaire principal --- */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /*gap: 15px;*/
  gap: 5px;
  margin-bottom: 30px;
}

.form-actions button {
  flex-grow: 1;
  min-width: 220px;
  padding:10px 10px;/*15px;*/
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  /*background: linear-gradient(145deg, var(--bleu-metal), var(--bleu-metal-fonce));*/
  background: linear-gradient(navy, #008, #00a, #00a, #008, navy);
}

.form-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--ombre);
}

/* Message de statut */
.message {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}
.message.info { background-color: #d1ecf1; color: #0c5460; }
.message.success { background-color: #d4edda; color: #155724; }
.message.error { background-color: #f8d7da; color: #721c24; }
.message.warning { background-color: #fff3cd; color: #856404; }

/* --- Tableaux d’affichage --- */
.table-container {
  overflow-x: auto;
  margin-top: 30px;
  border-top: 2px solid var(--bleu-metal);
  /*padding-top: 20px;*/
  padding:0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: auto;
}

th, td {
  /*padding: 10px 12px;*/
  padding:0;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

th {
  padding:10px 0 10px 0;
  background-color: var(--bleu-metal);
  color: white;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #f2f6fc;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .form-actions button {
    min-width: 100%;
    font-size: 0.95em;
  }
}

/* === Boîtes statistiques couleurs === */
.colors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content:center; /*flex-start;*/
}

.combo-box {
    display: inline-block;
    min-width: 170px;
    /*min-height: 160px;*/
    padding: 8px;
    border: 2px solid var(--bleu-metal);
    border-radius: 8px;
    background: var(--blanc);
    box-shadow: 0 3px 8px var(--ombre);
    vertical-align: top;
    box-sizing: border-box;
}

.combo-alert {
    border-color: red;/*var(--orange-flash);*/
}

.color-line {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
    gap: 2px;
}

.mini-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 0.75em;
    text-align: center;
    color: white;
    border: 1px solid #fff;
    border-radius: 2px;
}

/* Couleurs pour chaque code */
.mini-color.v { background-color: green; }
.mini-color.r { background-color: red; }
.mini-color.o { background-color: orange; }
.mini-color.g { background-color: gray; }
.mini-color.m { background-color: magenta; }

.code {
    text-align: center;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat {
    text-align: center;
    font-size: 0.85em;
    margin-bottom: 2px;
}

.last-alert {
    color: red;
    font-weight: bold;
}


