/* Photographic car, restrained studio light, one clear mechanical detail. */
.diagnostic-art.diagnostic-visual {
  --diag-focus-x: 35%;
  --diag-focus-y: 51%;
  --diag-focus-w: 18%;
  --diag-focus-h: 11%;
  --diag-focus-rgb: 255, 161, 83;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 660px;
  height: 100%;
  width: 100%;
  overflow: hidden;
  opacity: 1;
  color: #f0efea;
  border-left: 1px solid #e0e3df13;
  background: radial-gradient(ellipse at 57% 37%, #30363b 0, #20262b 36%, #151a1e 70%);
}
.diagnostic-visual[data-mode="boite"] { --diag-focus-x: 49%; --diag-focus-y: 62%; --diag-focus-w: 13%; --diag-focus-h: 10%; --diag-focus-rgb: 244, 75, 53; }
.diagnostic-visual[data-mode="revision"] { --diag-focus-x: 63%; --diag-focus-y: 69%; --diag-focus-w: 10%; --diag-focus-h: 15%; --diag-focus-rgb: 255, 107, 76; }
.diag-v5-heading { position: relative; z-index: 2; padding: 25px 27px 0; }
.diag-v5-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.diag-v5-kicker { color: #b7bec0; font-size: .875rem; line-height: 1.4; font-weight: 600; letter-spacing: .1em; }
.diagnostic-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 40px; padding: 8px 10px; border: 1px solid #dce3e026; border-radius: 3px; color: #e9ece7; background: #e5e8e505; font: inherit; font-size: .875rem; line-height: 1; cursor: pointer; }
.diagnostic-toggle:hover { border-color: #f28b75; background: #f44b3510; }
.diagnostic-toggle:focus-visible { outline: 2px solid #ffa68d; outline-offset: 4px; }
.diagnostic-toggle:disabled { cursor: default; opacity: .6; }
.diagnostic-toggle[hidden] { display: none; }
.diagnostic-toggle .icon { width: 13px; height: 13px; }
.diag-v5-heading h3 { font-family: inherit; font-size: clamp(1.35rem, 1.7vw, 1.65rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; margin: 0; }
.diag-v5-heading p { font-size: .875rem; color: #b8c0c2; line-height: 1.55; margin: 9px 0 0; }
.diag-v5-scene { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
.diag-v5-car-stage { position: relative; min-height: 280px; min-width: 0; overflow: hidden; container-type: size; }
.diag-v5-floor { position: absolute; width: 83%; height: 16%; left: 10%; bottom: 3.5%; border-radius: 50%; background: radial-gradient(ellipse, #080c0eab 0, #0a0d104f 53%, transparent 74%); filter: blur(5px); }
.diag-v5-car-surface { position: absolute; width: 100%; width: min(100%, 160cqh); aspect-ratio: 1; left: 50%; top: 46%; transform: translate(-50%, -50%); }
.diag-v5-car { display: block; width: 100%; height: 100%; object-fit: contain; }
.diag-v5-car-light { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: url("assets/diagnostic-car-v5.webp"); mask-image: url("assets/diagnostic-car-v5.webp"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; mask-mode: alpha; }
.diag-v5-focus { position: absolute; inset: 0; background: radial-gradient(ellipse var(--diag-focus-w) var(--diag-focus-h) at var(--diag-focus-x) var(--diag-focus-y), rgba(var(--diag-focus-rgb), .44) 0, rgba(var(--diag-focus-rgb), .24) 31%, rgba(var(--diag-focus-rgb), .07) 62%, rgba(var(--diag-focus-rgb), 0) 100%); mix-blend-mode: screen; opacity: .64; animation: diag-v5-focus-breathe 9.6s ease-in-out infinite; }
.diag-v5-sweep { position: absolute; top: -25%; left: -22%; width: 23%; height: 150%; background: linear-gradient(90deg, transparent 0, #fff4e90c 26%, #fff5e84a 49%, #fffcf42a 58%, transparent 100%); filter: blur(7px); opacity: 0; transform: translateX(-150%) rotate(-24deg); animation: diag-v5-studio-sweep 12s cubic-bezier(.4, 0, .25, 1) infinite; }
.diag-v5-detail { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 14px; margin: 0 27px; padding: 4px 0 17px; min-height: 111px; border-top: 1px solid #d9e0df17; }
.diag-v5-part { position: relative; width: 90px; height: 90px; }
.diag-v5-part > svg { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.diag-v5-detail-copy > div { display: none; }
.diagnostic-visual[data-mode="voyant"] .diag-v5-mode-voyant,
.diagnostic-visual[data-mode="boite"] .diag-v5-mode-boite,
.diagnostic-visual[data-mode="revision"] .diag-v5-mode-revision { display: block; }
.diag-v5-detail-copy h4 { font-family: inherit; font-size: 1.0625rem; font-weight: 650; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 5px; }
.diag-v5-detail-copy p { color: #b8c0c2; font-size: .875rem; line-height: 1.55; margin: 0; max-width: 265px; }
.diag-v5-engine-signal { animation: diag-v5-engine-pulse 3.2s ease-in-out infinite; }
.diag-v5-gear-main, .diag-v5-gear-secondary { transform-box: fill-box; transform-origin: center; }
.diag-v5-gear-main { animation: diag-v5-part-turn 19.2s linear infinite; }
.diag-v5-gear-secondary { animation: diag-v5-part-turn 16s linear infinite reverse; }
.diag-v5-brake-disc { transform-box: fill-box; transform-origin: center; animation: diag-v5-part-turn 24s linear infinite; }
.diag-v5-footer { position: relative; padding: 0 27px 22px; }
.diag-analysis-steps { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; }
.diag-analysis-step { min-width: 0; color: #aab4b9; font-size: .875rem; font-weight: 500; line-height: 1.45; transition: color .3s ease; }
.diag-step-mark { display: block; height: 2px; width: 100%; margin-bottom: 9px; background: #84909748; transition: background .3s ease, box-shadow .3s ease; }
.diag-analysis-step.is-active { color: #f0ede5; }
.diag-analysis-step.is-active .diag-step-mark { background: #f47d61; box-shadow: 0 0 7px #f44b3540; }
.diag-v5-note { margin: 14px 0 0; color: #a6afb5; font-size: .875rem; line-height: 1.4; }
.diagnostic-visual[data-paused="true"] .diagnostic-motion,
.diagnostic-visual[data-paused="true"] .diagnostic-motion *,
.diagnostic-visual.motion-paused .diagnostic-motion,
.diagnostic-visual.motion-paused .diagnostic-motion *,
.motion-paused .diagnostic-visual .diagnostic-motion,
.motion-paused .diagnostic-visual .diagnostic-motion * { animation-play-state: paused !important; }
@keyframes diag-v5-studio-sweep { 0%, 18% { opacity: 0; transform: translateX(-150%) rotate(-24deg); } 25% { opacity: .46; } 70% { opacity: .46; } 82%, 100% { opacity: 0; transform: translateX(720%) rotate(-24deg); } }
@keyframes diag-v5-focus-breathe { 0%, 100% { opacity: .38; } 46%, 62% { opacity: .82; } }
@keyframes diag-v5-engine-pulse { 0%, 100% { opacity: .55; fill: #f89966; } 50% { opacity: 1; fill: #ffd0a0; } }
@keyframes diag-v5-part-turn { to { transform: rotate(360deg); } }
@media (max-width: 1100px) and (min-width: 761px) {
  .diagnostic-art.diagnostic-visual { min-height: 680px; }
  .diag-v5-heading { padding-inline: 21px; }
  .diag-v5-heading h3 { font-size: 1.35rem; }
  .diag-v5-kicker { font-size: .8125rem; letter-spacing: .06em; }
  .diag-v5-detail { margin-inline: 21px; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .diag-v5-part { width: 76px; height: 76px; }
  .diag-v5-footer { padding-inline: 21px; }
  .diag-analysis-steps { gap: 9px; }
}
@media (max-width: 760px) {
  .diagnostic-art.diagnostic-visual { min-height: 520px; height: 520px; opacity: 1; border-left: 0; border-top: 1px solid #dce3e01a; }
  .diag-v5-heading { padding: 18px 19px 0; }
  .diag-v5-topline { margin-bottom: 9px; }
  .diag-v5-kicker { font-size: .875rem; letter-spacing: .07em; }
  .diagnostic-toggle { min-height: 36px; padding: 7px 9px; }
  .diag-v5-heading h3 { font-size: 1.3rem; }
  .diag-v5-heading p { margin-top: 6px; font-size: .875rem; line-height: 1.5; }
  .diag-v5-car-stage { min-height: 0; }
  .diag-v5-detail { grid-template-columns: 75px minmax(0, 1fr); gap: 11px; margin-inline: 19px; min-height: 99px; padding: 5px 0 12px; }
  .diag-v5-part { width: 75px; height: 75px; }
  .diag-v5-detail-copy h4 { font-size: 1rem; line-height: 1.35; margin-bottom: 4px; }
  .diag-v5-detail-copy p { font-size: .875rem; line-height: 1.45; }
  .diag-v5-footer { padding: 0 19px 17px; }
  .diag-analysis-steps { gap: 9px; grid-template-columns: 1fr 1.2fr 1fr; }
  .diag-analysis-step { font-size: .875rem; }
  .diag-step-mark { margin-bottom: 8px; }
  .diag-v5-note { margin-top: 10px; font-size: .875rem; }
}
@media (max-width: 380px) {
  .diag-v5-heading { padding-inline: 16px; }
  .diag-v5-heading h3 { font-size: 1.25rem; }
  .diag-v5-detail { margin-inline: 16px; grid-template-columns: 75px minmax(0, 1fr); gap: 10px; }
  .diag-v5-part { width: 75px; height: 75px; }
  .diag-v5-footer { padding-inline: 16px; }
  .diag-analysis-steps { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .diagnostic-visual .diagnostic-motion,
  .diagnostic-visual .diagnostic-motion * { animation: none !important; transition: none !important; }
  .diagnostic-visual .diag-v5-focus { opacity: .55; }
  .diagnostic-visual .diag-v5-sweep { opacity: 0; }
  .diagnostic-visual .diag-v5-engine-signal { opacity: 1; }
}
