* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #eef1f4;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  margin: 0 0 20px;
  padding: 20px 24px;
  background: #0C3956;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

header time {
  font-size: 14px;
  color: #9db4c7;
}

header #SauvegarderGraphique {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

header #SauvegarderGraphique:hover {
  background: rgba(255, 255, 255, 0.22);
}

.infographe {
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(12, 57, 86, 0.08);
  padding: 24px;
  margin: 0 32px 32px;
}

.controles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e4e8ec;
}

.controles input[type="text"],
.controles input[type="number"] {
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid #d4dae0;
  border-radius: 8px;
  transition: border-color 0.15s;
}

.controles input[type="text"] { flex: 1; min-width: 140px; }
.controles input[type="number"] { width: 130px; }

.controles input:focus {
  outline: none;
  border-color: #0C3956;
  box-shadow: 0 0 0 3px rgba(12, 57, 86, 0.1);
}

.controles input[type="color"] {
  width: 42px;
  height: 42px;
  padding: 4px;
  border: 1px solid #d4dae0;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
}

.controles button {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #0C3956;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.controles button:hover { background: #14507f; }

#BoutonSupprimer { background: #8a2020; }
#BoutonSupprimer:hover { background: #a83030; }

.controles select {
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid #d4dae0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.zone-canvas {
  position: relative;
  height: 460px;
}