/* style.css */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Zone de contrôle en haut (header) */
#controlHeader {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: auto;         /* ✅ Permet le scroll horizontal si trop plein */
  white-space: nowrap;      /* ✅ Empêche les retours à la ligne */
  gap: 2rem;                 /* Un peu plus d’espace entre blocs */
}

.controlRow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

button.active {
  background-color: #007bff;
  color: white;
}

/* Conteneur principal avec les deux zones côte à côte */
#mainContent {
  flex: 1;
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
}

/* Zone image (gauche) */
#imageZone {
  flex: 1;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
  overflow: auto;
}

#imageZone svg {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Zone graphique (droite) */
#chartZone {
  flex: 1;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
  overflow: auto;
}

#chartCanvas {
  max-width: 100%;
  max-height: 90%;
}

/* Boîtes de capteurs dans le SVG : coins arrondis + ombre */
#imageZone svg rect {
  rx: 10;
  ry: 10;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}
/* Boutons de la zone de contrôle */
#controlHeader button {
  background-color: #e0e0e0;
  border: none;
  padding: 0.35rem 0.75rem;     /* ✅ Plus petit padding */
  border-radius: 6px;           /* ✅ Coins moins arrondis mais doux */
  font-size: 18px;           /* ✅ Police réduite */
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-width: 60px;              /* ✅ Évite que les petits boutons rétrécissent trop */
}

#controlHeader button:hover {
  background-color: #d5d5d5;
  transform: translateY(-1px);
}

#controlHeader button:active {
  transform: scale(0.97);
}

#controlHeader button.active {
  background-color: #007bff;
  color: white;
  font-weight: 600;
}
.control-label {
  font-size: 18px;    /* Réduit la taille du texte */
  font-weight: normal;  /* Supprime le gras */
  color: #333;          /* Couleur plus douce */
  margin-right: 0.5rem;
}
.logo-container {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.logo {
  height: 32px;           /* ✅ Taille discrète mais visible */
  width: auto;
  object-fit: contain;
}
/* Soulignement rouge pour certains boutons */
button[data-puissance="200"],
button[data-deltap="1.0"] {
  text-decoration: underline;
  text-decoration-color: red;
  text-decoration-thickness: 2px;
}

/* Container du slider en position relative */
.slider-container {
  position: relative;
  display: inline-block;
}

.slider-container input[type="range"] {
  width: 100px;
  vertical-align: middle; /* pour bien centrer le slider avec la ligne */
}

.slider-marker {
  position: absolute;
  top: 50%; /* centre verticalement */
  transform: translate(-1px, -50%); /* centre sur X et Y */
  width: 2px;
  height: 30px;
  background-color: red;
  left: calc((90 - 59) / (105 - 59) * 100px); /* position exacte pour 90°C */
  pointer-events: none;
}

