/* Page bureau d’études : même gabarit que le site, autre couleur.
   Une seule valeur à changer pour recolorer les maquettes et les titres : --electric. */

:root {
  --electric: #00959a;
  --electric-deep: #006468;
  --electric-text: #00797d; /* même teinte, lisible en petit sur fond blanc */
  --rayon: 6px;

  /* Le fond : un quadrillage de papier millimétré */
  --cuir: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect width='120' height='120' fill='%23fff'/%3E%3Cpath d='M0 .5H120M.5 0V120' stroke='%23000' stroke-opacity='.05'/%3E%3Cpath d='M60 0V120M0 60H120' stroke='%23000' stroke-opacity='.022'/%3E%3C/svg%3E");

  /* Le trait : un trait discontinu */
  --thread: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='12'%3E%3Crect x='2' y='4.5' width='15' height='3' rx='1.5' fill='%2300959a'/%3E%3C/svg%3E");
  --thread-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='26'%3E%3Crect x='4.5' y='2' width='3' height='15' rx='1.5' fill='%2300959a'/%3E%3C/svg%3E");
}

/* Petits textes : la teinte foncée, pour rester lisible */

.hero-line .kw,
.agent-name.kw,
.tag .kw,
.rows .missing dd,
.pending,
.sheet-note b,
.chain-list .on b,
.levels [aria-pressed='true'] b,
.next-steps li::before,
.status.done,
.slider output,
h2 .kw,
.pain .kw,
.demo-end .kw,
.figure-money strong.kw,
.diag-titre.kw {
  color: var(--electric-text);
}

.pending {
  border-color: var(--electric-text);
}

/* Bouton : une plaque franche, texte blanc sur la couleur de la page */

.button {
  background: linear-gradient(180deg, #3fcfd2 0%, var(--electric) 60%);
  color: #fff;
  border-radius: var(--rayon);
  box-shadow: 0 3px 0 var(--electric-deep), 0 16px 30px -10px rgba(0, 149, 154, 0.5);
}

.button::before {
  inset: 4px 10px auto;
  height: 30%;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.button:hover {
  box-shadow: 0 5px 0 var(--electric-deep), 0 22px 36px -10px rgba(0, 149, 154, 0.66);
}

.button:active {
  box-shadow: 0 1px 0 var(--electric-deep), 0 8px 18px -8px rgba(0, 149, 154, 0.55);
}

.button:focus-visible {
  outline-color: var(--ink);
}

.button[disabled] {
  background: var(--quiet);
  color: var(--paper);
}

/* Étiquettes de poste : coins nets et trait discontinu */

.tag {
  border-radius: 8px;
}

.tag::before {
  inset: 9px;
  border: 1.5px dashed var(--electric);
  border-radius: 4px;
}

.patch,
.problem {
  border-radius: 12px;
}

.demo-tabs [aria-selected='true'],
.demo-tabs [aria-selected='true']:hover,
.chip input:checked + span,
.diag-bouton[aria-current='true'] {
  color: #fff;
}

.sheet table .ko td {
  color: var(--electric-text);
  font-weight: 700;
}
