/* Section autonome; tous les sélecteurs sont limités à #diagnostic. */
#diagnostic.v4d {
  --v4d-ink: #102c40;
  --v4d-muted: #435e62;
  --v4d-accent: #236b67;
  --v4d-line: #c8d9d4;
  background: #f1f5f1;
  color: var(--v4d-ink);
  padding: clamp(76px, 8.2vw, 120px) 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-margin-top: 24px;
}
#diagnostic.v4d *,
#diagnostic.v4d *::before,
#diagnostic.v4d *::after { box-sizing: border-box; }
#diagnostic.v4d [hidden] { display: none !important; }
#diagnostic.v4d .v4d-wrap { width: min(1380px, 89%); margin: 0 auto; }
#diagnostic.v4d .v4d-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(45px, 8vw, 120px);
  align-items: start;
}
#diagnostic.v4d .v4d-intro { padding-top: 14px; }
#diagnostic.v4d .v4d-eyebrow,
#diagnostic.v4d .v4d-panel-label,
#diagnostic.v4d .v4d-result-kicker {
  margin: 0;
  color: #286c67;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.4;
}
#diagnostic.v4d .v4d-eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
#diagnostic.v4d .v4d-eyebrow span { width: 24px; height: 2px; flex: none; background: #48aaa3; }
#diagnostic.v4d h2 {
  margin: 0;
  color: var(--v4d-ink);
  font: 400 clamp(39px, 4vw, 57px)/1.12 "Playfair Display", Georgia, serif;
  letter-spacing: -.04em;
}
#diagnostic.v4d h2 em { color: #4e8887; font-weight: 400; }
#diagnostic.v4d .v4d-lead { max-width: 430px; margin: 25px 0 0; color: var(--v4d-muted); font-size: 17px; line-height: 1.75; }
#diagnostic.v4d .v4d-intro-note { display: flex; gap: 18px; align-items: center; border-top: 1px solid #bdcfca; margin-top: 42px; padding-top: 22px; }
#diagnostic.v4d .v4d-intro-number { color: #397c78; font: 400 42px/1 "Playfair Display", Georgia, serif; }
#diagnostic.v4d .v4d-intro-note p { margin: 0; color: #355b5c; font-weight: 600; }
#diagnostic.v4d .v4d-privacy { max-width: 440px; margin: 25px 0 0; color: var(--v4d-muted); }
#diagnostic.v4d .v4d-panel {
  min-width: 0;
  border: 1px solid #cfddd9;
  background: #fff;
  box-shadow: 0 18px 55px rgba(16, 44, 64, .06);
  padding: clamp(25px, 3.2vw, 48px);
}
#diagnostic.v4d .v4d-unavailable { margin: 0; color: var(--v4d-muted); }
#diagnostic.v4d .v4d-unavailable a { color: #205e5b; text-decoration: underline; text-underline-offset: 3px; }
#diagnostic.v4d .v4d-panel-top { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
#diagnostic.v4d .v4d-step-count { margin: 0; color: var(--v4d-muted); font-weight: 700; }
#diagnostic.v4d .v4d-progress { display: block; width: 100%; height: 6px; border: 0; margin: 18px 0 38px; appearance: none; background: #dce8e4; color: #348f87; }
#diagnostic.v4d .v4d-progress::-webkit-progress-bar { background: #dce8e4; }
#diagnostic.v4d .v4d-progress::-webkit-progress-value { background: #348f87; }
#diagnostic.v4d .v4d-progress::-moz-progress-bar { background: #348f87; }
#diagnostic.v4d .v4d-step { min-width: 0; padding: 0; border: 0; margin: 0; }
#diagnostic.v4d .v4d-question,
#diagnostic.v4d .v4d-result-title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--v4d-ink);
  font: 400 clamp(27px, 2.4vw, 35px)/1.25 "Playfair Display", Georgia, serif;
  letter-spacing: -.025em;
}
#diagnostic.v4d .v4d-hint { margin: 13px 0 24px; color: var(--v4d-muted); }
#diagnostic.v4d .v4d-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#diagnostic.v4d .v4d-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid #bdcfca;
  padding: 12px 14px;
  color: #173a49;
  background: #fbfcfa;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .16s, border-color .16s;
}
#diagnostic.v4d .v4d-option:hover { border-color: #568f89; background: #f2f8f5; }
#diagnostic.v4d .v4d-option.is-selected { border-color: #28766f; background: #e6f3ef; }
#diagnostic.v4d .v4d-option:focus-within { outline: 3px solid #246d68; outline-offset: 2px; }
#diagnostic.v4d .v4d-option input { appearance: auto; flex: none; width: 20px; height: 20px; margin: 0; accent-color: #216f69; cursor: pointer; }
#diagnostic.v4d .v4d-number-label { display: block; margin-bottom: 8px; color: #173a49; font-weight: 700; }
#diagnostic.v4d .v4d-number { display: block; width: min(100%, 320px); min-height: 54px; border: 1px solid #91aaa6; border-radius: 0; padding: 12px 14px; background: #fbfcfa; color: var(--v4d-ink); font: inherit; }
#diagnostic.v4d .v4d-error { margin: 12px 0 0; color: #a12929; font-weight: 700; }
#diagnostic.v4d .v4d-error:empty { display: none; }
#diagnostic.v4d .v4d-actions { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #dce8e4; margin-top: 26px; padding-top: 23px; }
#diagnostic.v4d .v4d-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 13px 18px;
  font: 700 16px/1.35 "DM Sans", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s, border-color .16s;
}
#diagnostic.v4d .v4d-button-primary { background: #102f41; color: #fff; }
#diagnostic.v4d .v4d-button-primary:hover { background: #24575c; color: #fff; }
#diagnostic.v4d .v4d-button-secondary { border-color: #98b9b3; background: #fff; color: #214f50; }
#diagnostic.v4d .v4d-button-secondary:hover:not(:disabled) { background: #edf6f2; }
#diagnostic.v4d .v4d-button:disabled { border-color: #d2dedb; color: #687d7b; cursor: not-allowed; }
#diagnostic.v4d .v4d-button-link { padding-left: 0; padding-right: 0; background: transparent; color: #225e5b; text-decoration: underline; text-underline-offset: 4px; }
#diagnostic.v4d :is(a, button, input, summary):focus-visible,
#diagnostic.v4d :is(.v4d-question, .v4d-result-title):focus { outline: 3px solid #246d68; outline-offset: 4px; }
#diagnostic.v4d .v4d-result-kicker { margin-bottom: 13px; }
#diagnostic.v4d .v4d-score { display: inline-block; margin: 18px 0 0; padding: 7px 12px; color: #235b57; background: #e6f3ef; font-weight: 700; }
#diagnostic.v4d .v4d-result-summary { border-top: 1px solid #d6e4df; margin-top: 24px; padding-top: 6px; color: #354f54; }
#diagnostic.v4d .v4d-result-summary p { margin: 14px 0 0; }
#diagnostic.v4d .v4d-details { border-top: 1px solid #d6e4df; border-bottom: 1px solid #d6e4df; margin-top: 25px; padding: 16px 0; color: var(--v4d-muted); }
#diagnostic.v4d .v4d-details summary { color: #205f5b; font-weight: 700; cursor: pointer; }
#diagnostic.v4d .v4d-details p { margin: 14px 0 0; }
#diagnostic.v4d .v4d-details ul { margin: 12px 0 0; padding-left: 22px; }
#diagnostic.v4d .v4d-details li + li { margin-top: 6px; }
#diagnostic.v4d .v4d-disclaimer { margin: 22px 0; color: var(--v4d-muted); }
#diagnostic.v4d .v4d-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
#diagnostic.v4d .v4d-contact-note { margin: 16px 0 0; color: var(--v4d-muted); }
@media (max-width: 900px) {
  #diagnostic.v4d .v4d-wrap { width: 92%; }
  #diagnostic.v4d .v4d-layout { grid-template-columns: 1fr; gap: 38px; }
  #diagnostic.v4d .v4d-intro-note { margin-top: 30px; }
}
@media (max-width: 650px) {
  #diagnostic.v4d .v4d-wrap { width: calc(100% - 40px); }
  #diagnostic.v4d .v4d-layout { gap: 32px; }
  #diagnostic.v4d .v4d-intro { padding-top: 0; }
  #diagnostic.v4d h2 { font-size: 37px; }
  #diagnostic.v4d .v4d-panel { padding: 25px 20px; }
  #diagnostic.v4d .v4d-progress { margin-bottom: 30px; }
  #diagnostic.v4d .v4d-options { grid-template-columns: 1fr; }
  #diagnostic.v4d .v4d-actions .v4d-button { flex: 1; padding-left: 10px; padding-right: 10px; }
  #diagnostic.v4d .v4d-result-actions { flex-direction: column; align-items: stretch; }
  #diagnostic.v4d .v4d-button-link { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  #diagnostic.v4d *, #diagnostic.v4d *::before, #diagnostic.v4d *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
