.dx{color:#143049}.dx .dx-hero{background:#0b304a;color:white;padding:clamp(2rem,5vw,4rem) 0}.dx-hero h1{color:white;font-size:clamp(2.1rem,5vw,4rem);line-height:1.07;margin:.6rem 0}.dx-hero p{margin:.5rem 0}.dx-hero a{color:#cbe8a7}.dx-inner{width:min(850px,91%);margin:auto}.dx-body{padding:2rem 0 3.5rem}.dx-box,.dx-result section{border:1px solid #d7e2e9;border-radius:16px;padding:clamp(1rem,4vw,2rem);background:white}.dx [hidden]{display:none!important}.dx progress{width:100%;height:12px;accent-color:#0e6ab4}.dx fieldset{border:0;padding:0;margin:1.5rem 0;min-width:0}.dx legend{font-size:clamp(1.25rem,3vw,1.65rem);line-height:1.25;font-weight:700}.dx #choices{display:grid;gap:.6rem;margin-top:1rem}.dx #choices label{display:flex;align-items:center;gap:.75rem;border:1px solid #ccdce4;border-radius:10px;padding:.8rem;cursor:pointer}.dx input{width:auto;accent-color:#0e6ab4}.dx label:has(:checked){background:#ecf5fa}.dx button,.dx .action{cursor:pointer;background:#0d609c;color:white;border:0;border-radius:8px;padding:.75rem 1rem;font:inherit;font-weight:650;display:inline-block}.dx .secondary{background:#edf3f6;color:#193a50}.dx .actions{display:flex;align-items:center;flex-wrap:wrap;gap:1rem}.dx :focus-visible{outline:3px solid #ab7900;outline-offset:3px}.dx-result section{margin:.8rem 0}.dx-result h3,.dx-result h4{margin:.5rem 0}.dx-result p{margin:.3rem 0 1rem}.dx .warning{border-left:4px solid #bc4553;background:#fff1f2;padding:1rem}.dx aside{margin:1.5rem 0;padding:1rem;background:#eef5f8}.dx small{font-size:.92rem}.dx .note{color:#405a69}

/* Palette du diagnostic, limitée à son espace interactif. */
.dx {
  color-scheme: dark;
  color: #dce8ed;
  background: linear-gradient(160deg, #112e40, #102532 65%, #142d37);
}
.dx .dx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(105deg, #102536 15%, #124860 72%, #14605d);
  border-bottom: 1px solid #47737b;
}
.dx-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: clamp(260px, 34vw, 500px);
  aspect-ratio: 1;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 14%, #9ee9c444 14.3% 14.6%, transparent 15% 20%), conic-gradient(from 16deg, transparent 65%, #9edca72e 86%, transparent 86.3%);
}
.dx .dx-hero h1, .dx legend, .dx-result :is(h2,h3,h4) {color:#ecf4f6}
.dx .dx-hero p, .dx .dx-body p, .dx .note {color:#ccdde2}
.dx .dx-hero a, .dx aside a:not(.action) {color:#bfe69c}
.dx .dx-box, .dx .dx-result section {
  background: #193747;
  border-color: #47636f;
  box-shadow: 0 12px 35px #071b242e;
}
.dx #position {color:#bfe69c;font-weight:700}
.dx progress {appearance:none;background:#324f60;border:0;border-radius:8px;overflow:hidden;height:8px}
.dx progress::-webkit-progress-bar {background:#324f60}
.dx progress::-webkit-progress-value {background:linear-gradient(90deg,#70bfd4,#abd481)}
.dx progress::-moz-progress-bar {background:#abd481}
.dx #choices label {background:#213f50;border-color:#607a85;color:#e2edef;min-height:48px}
.dx #choices label:hover {background:#294d5c}
.dx #choices label:has(:checked) {background:#244e48;border-color:#b4dc8f;box-shadow:inset 3px 0 #b4dc8f}
.dx input {accent-color:#b4dc8f}
.dx button,.dx .action {background:#b7de92;color:#102d29}
.dx .secondary {background:#294957;color:#e1eded}
.dx :focus-visible {outline-color:#ffdb71}
.dx .dx-body .warning {color:#ffe7cb;background:#483827;border-color:#f4b961}
.dx aside {background:#1a423f;border-left:4px solid #a6cf7d}
.dx .dx-result section {border-left:4px solid #6eacbb}
.dx details {margin-top:1.25rem}
.dx summary {color:#c0d7de;cursor:pointer}
@media(max-width:700px){.dx-hero::after{right:-160px;opacity:.48}.dx .actions{gap:.65rem}}
