/* Présentation uniquement. Les règles métier restent dans les fichiers JavaScript. */
:root {
  font-family: system-ui, sans-serif;
  color: #21324a;
  background: #f3f5fa;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
aside {
  width: 230px;
  flex-shrink: 0;
  padding: 28px 18px;
  background: #172b48;
  color: white;
}
.brand {
  font-size: 30px;
  font-weight: 750;
  text-decoration: none;
  color: white;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 5px;
  color: #c7d6eb;
}
nav {
  display: grid;
  gap: 5px;
  margin-top: 30px;
}
nav button,
nav a {
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  color: #d9e4f3;
  border: 0;
  text-decoration: none;
  font-size: 14px;
}
nav button[aria-current="page"],
nav button:hover,
nav a:hover {
  background: #2d4770;
  color: white;
  border-radius: 6px;
}
.sidebar-note {
  font-size: 12px;
  color: #b8cbe5;
  line-height: 1.6;
  margin-top: 35px;
}
main {
  min-width: 0;
  width: 100%;
  padding: 30px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
h1 {
  margin: 6px 0;
  font-size: 30px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 17px;
}
.eyebrow {
  color: #627593;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
}
#identity {
  font-size: 13px;
}
button,
input,
select {
  font: inherit;
  border: 1px solid #cad3e1;
  border-radius: 6px;
  padding: 9px 12px;
  background: white;
  color: inherit;
}
textarea {
  font: inherit;
  border: 1px solid #cad3e1;
  border-radius: 6px;
  padding: 9px 12px;
  min-height: 90px;
  resize: vertical;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:hover:not(:disabled) {
  border-color: #326bb5;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #6199e6;
  outline-offset: 2px;
}
.primary {
  background: #225c9f;
  color: white;
}
.notice,
#notification {
  background: #e8effa;
  border-left: 3px solid #4176b8;
  padding: 15px 18px;
  line-height: 1.6;
}
.error {
  color: #a21c2c;
  white-space: pre-wrap;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.card {
  min-width: 160px;
  min-height: 78px;
  text-align: left;
  font-weight: 600;
}
article {
  background: white;
  border: 1px solid #dde3ec;
  border-radius: 9px;
  padding: 18px;
  margin: 16px 0;
}
article p {
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 600;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}
.checkbox-label input {
  flex: 0 0 auto;
  margin-top: 3px;
}
input,
select {
  min-width: 0;
  max-width: 100%;
  font-weight: 400;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.toolbar label {
  flex: 1;
  min-width: 250px;
}
.toolbar span {
  font-size: 13px;
}
.table-scroll {
  overflow: auto;
  background: white;
  border: 1px solid #dce3ed;
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
button.danger {
  background: #ae2833;
  color: white;
  border-color: #ae2833;
}
button.danger:disabled {
  background: #e7c7ca;
  color: #673940;
  cursor: not-allowed;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid #e8edf3;
  text-align: left;
  vertical-align: top;
  min-width: 95px;
  max-width: 400px;
  overflow-wrap: anywhere;
}
th {
  background: #eaf0f8;
}
th button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
}
tr:hover {
  background: #f8faff;
}
.stopped {
  color: #b42338;
  font-weight: 700;
}
.running {
  color: #18734a;
}
.unknown {
  color: #88630d;
}
details {
  margin: 10px 0;
}
summary {
  cursor: pointer;
  font-size: 13px;
}
pre {
  max-height: 400px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: #f1f4f8;
  padding: 15px;
}
dialog {
  width: min(850px, 95vw);
  max-height: 90vh;
  border: 1px solid #c5d1e3;
  border-radius: 12px;
  padding: 25px;
  color: inherit;
}
dialog::backdrop {
  background: #10213e99;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
dialog button {
  margin-right: 10px;
}
.probe-deployment {
  width: min(1080px, 95vw);
}
.probe-deployment th,
.probe-deployment td {
  min-width: 90px;
  padding: 12px;
}
.probe-deployment input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}
.probe-deployment .actions {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.probe-deployment button[hidden] {
  display: none;
}
@media (max-width: 800px) {
  body {
    display: block;
  }
  aside {
    width: 100%;
  }
  nav {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 15px;
  }
  .sidebar-note {
    display: none;
  }
  main {
    padding: 18px;
  }
  header {
    align-items: flex-start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
*[hidden] {
  display: none !important;
}

.login-screen {
  width: 100%;
  flex: 1 0 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef4f8;
}
.login-card {
  width: min(440px, 100%);
  padding: 36px;
  background: white;
  border: 1px solid #d3e0e8;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(25, 58, 79, 0.12);
}
.login-card h1 {
  margin-top: 0;
  color: #163a52;
}
.login-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 28px;
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  padding: 10px;
  border-radius: 8px;
}
.login-card form {
  display: grid;
  gap: 10px;
}
.login-card input {
  padding: 11px 12px;
  border: 1px solid #b8cad6;
  border-radius: 8px;
  font: inherit;
}
.login-card button,
.header-actions button {
  cursor: pointer;
}
.login-card button {
  margin-top: 10px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: #0e6d72;
  font-weight: 700;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions p {
  margin: 0;
}
