/* Compact educational smoke extraction demonstration. */
#mesure-debit { overflow: clip; }
#mesure-debit .prestation-card-body {
  grid-template-areas: "content media" "simulation simulation" "details details";
}
.ds-simulation-drawer { grid-area: simulation; min-width: 0; overflow: clip; }
.ds-simulation-drawer > .ds-demo { border: 0; border-radius: 0; }
.ds-demo {
  min-width: 0;
  padding: 24px;
  border: 1px solid #dbe3eb;
  border-radius: 18px;
  background: #f8fafc;
  color: #25374b;
  scroll-margin-top: 150px;
}
.ds-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.ds-demo .ds-eyebrow { margin: 0 0 8px; color: #b35b16; font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.ds-demo h3 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.25; }
.ds-heading p:last-child { margin: 0; max-width: 620px; color: #627185; font-size: .92rem; line-height: 1.6; }
.ds-tag { flex-shrink: 0; padding: 8px 12px; border: 1px solid #dbe4ec; border-radius: 30px; background: #fff; color: #637487; font-size: .72rem; }
.ds-workspace { display: grid; align-items: start; gap: 20px; }
.ds-visual, .ds-information { min-width: 0; }
.ds-stage { position: relative; overflow: hidden; border-radius: 12px; background: radial-gradient(ellipse at 65% 45%, #253c54 0%, #14263a 58%, #0d1b2c 100%); }
.ds-phase { position: absolute; z-index: 1; top: 12px; left: 14px; max-width: calc(100% - 28px); padding: 6px 10px; border: 1px solid #5ad5b640; border-radius: 30px; background: #132e33e6; color: #a4e7d9; font-size: .68rem; line-height: 1.4; }
.ds-demo[data-phase="fire"] .ds-phase { border-color: #dda25960; background: #443627; color: #ffd18c; }
.ds-demo[data-phase="extracting"] .ds-phase { border-color: #5dc3d660; background: #193b4b; color: #b8f2fc; }
.ds-demo[data-phase="coasting"] .ds-phase { border-color: #dda25960; background: #443627; color: #ffd18c; }
.ds-scene { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; }
.ds-scene text { font-family: Lato, sans-serif; }
.ds-scene-label { fill: #c0d1e0; font-size: 16px; }
.ds-scene-detail { fill: #8fa7bb; font-size: 13px; }
.ds-depression { opacity: 0; fill: #c0dce8; font-size: 15px; }
.ds-demo[data-airflow="true"] .ds-depression { opacity: 1; }
.ds-air-line { fill: none; stroke: url(#ds-air-color); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 10 18; marker-end: url(#ds-air-arrow); }
.ds-demo [data-ds-intake] .ds-air-line { marker-end: url(#ds-intake-arrow); stroke-dashoffset: var(--ds-intake-offset, 0); }
.ds-exhaust-line { fill: none; stroke: #ced8e1; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 10 18; marker-end: url(#ds-smoke-arrow); }
.ds-air-line, .ds-exhaust-line { stroke-dashoffset: var(--ds-flow-offset, 0); }
.ds-probe-scan { animation: ds-sweep 5s linear infinite; animation-play-state: paused; }
.ds-clouds { animation: ds-drift 5s ease-in-out infinite alternate; animation-play-state: paused; }
.ds-flame { transform-box: fill-box; transform-origin: center bottom; animation: ds-flame .7s ease-in-out infinite alternate; animation-play-state: paused; }
.ds-fire-growth { transform-box: fill-box; transform-origin: center bottom; transform: scale(clamp(1, var(--ds-fire-scale, 1), 1.25)); }
.ds-fire-jitter { transform-box: fill-box; transform-origin: center bottom; }
.ds-demo[data-fire-agitated="true"] .ds-fire-jitter { animation: ds-fire-jitter 1.2s ease-in-out infinite; animation-play-state: paused; }
.ds-demo[data-fire-agitated="true"][data-running="true"] .ds-fire-jitter { animation-play-state: running; }
.ds-demo[data-running="true"] .ds-clouds, .ds-demo[data-running="true"] .ds-flame { animation-play-state: running; }
.ds-demo[data-airflow="true"][data-running="true"] .ds-probe-scan { animation-play-state: running; }
.ds-demo[data-extracting="true"] .ds-tourelle-led { fill: #78dfb8; }
.ds-plume { opacity: 0; }
.ds-demo[data-phase="fire"] .ds-plume, .ds-demo[data-phase="extracting"] .ds-plume, .ds-demo[data-phase="coasting"] .ds-plume { opacity: .5; }
.ds-key { position: absolute; bottom: 12px; left: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #b9cddd; font-size: .64rem; }
.ds-key span { display: inline-flex; align-items: center; gap: 6px; }
.ds-key i { width: 8px; height: 8px; border-radius: 50%; background: #70dbe8; }
.ds-key .ds-key-smoke { background: #a0afbd; }
.ds-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ds-controls button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #d3dee8; border-radius: 8px; background: #fff; color: #3c536b; font: 700 .82rem/1.4 Lato, sans-serif; cursor: pointer; }
.ds-controls button:hover:not(:disabled) { background: #e9eff5; }
.ds-controls .ds-start { border-color: #cf6733; background: #e7773f; color: #fff; }
.ds-controls .ds-start:hover:not(:disabled) { background: #ca5a2b; }
.ds-controls .ds-extraction { border-color: #277b8b; background: #277b8b; color: #fff; }
.ds-controls .ds-extraction:hover:not(:disabled) { background: #1d6270; }
.ds-controls [aria-pressed="true"].ds-pause { border-color: #d7ac68; background: #fff0d6; color: #895821; }
.ds-controls button:disabled { opacity: .5; cursor: default; }
.ds-demo button:focus-visible { outline: 3px solid #ee9a36; outline-offset: 4px; }
.ds-demo .ds-status { min-height: 3.2em; margin: 0 0 12px; color: #42586e; font-size: .84rem; line-height: 1.6; }
.ds-readings, .ds-intake-card, .ds-smoke-card { padding: 12px; border: 1px solid #dbe4ec; border-radius: 12px; background: #fff; }
.ds-reference { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid #e8eef4; color: #627185; font-size: .69rem; line-height: 1.5; }
.ds-reference strong { color: #42586e; font-size: .8rem; white-space: nowrap; }
.ds-reading-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; color: #42586e; font-size: .8rem; line-height: 1.4; }
.ds-reading-heading h4, .ds-reading-heading p { margin: 0; font: inherit; }
.ds-reading-heading strong { color: #25374b; font-size: 1.3rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-reading-heading small { font-size: .72rem; font-weight: 400; }
.ds-track { position: relative; height: 12px; overflow: hidden; border-radius: 20px; background: #e8eef4; }
.ds-reference-marker { position: absolute; top: 0; bottom: 0; left: 90%; width: 2px; background: #b35b16; }
.ds-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: #35b4bc; }
.ds-scale { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: #627185; font-size: .68rem; }
.ds-velocity { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #e8eef4; }
.ds-velocity .ds-reading-heading { margin-bottom: 8px; }
.ds-demo .ds-caption { margin: 0; color: #627185; font-size: .73rem; line-height: 1.55; }
.ds-intake-card { margin-top: 12px; }
.ds-intake-card .ds-reading-heading { margin-bottom: 6px; }
.ds-intake-size, .ds-measured-size { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: #627185; font-size: .72rem; line-height: 1.4; }
.ds-intake-size select, .ds-measured-size select { min-height: 44px; max-width: 100%; padding: 6px 10px; border: 1px solid #d3dee8; border-radius: 6px; background: #f8fafc; color: #3c536b; font: inherit; cursor: pointer; }
.ds-intake-size select:focus-visible, .ds-measured-size select:focus-visible { outline: 3px solid #ee9a36; outline-offset: 3px; }
.ds-intake-size select:disabled, .ds-measured-size select:disabled { opacity: .6; cursor: default; }
.ds-measured-size { margin: 0 0 8px; }
.ds-demo .ds-diagnostic { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #ecd8b6; border-radius: 8px; background: #fff8eb; color: #895821; font-size: .72rem; line-height: 1.55; }
.ds-demo .ds-diagnostic p { margin: 0; }
.ds-demo .ds-diagnostic p + p { margin-top: 4px; }
.ds-diagnostic strong { color: #8b4716; }
.ds-diagnostic[hidden] { display: none; }
.ds-demo .ds-intake-state { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; margin: 6px 0 0; color: #627185; font-size: .7rem; line-height: 1.45; }
.ds-demo[data-intake-limit="exceeded"] .ds-intake-card { border-color: #ddb47c; }
.ds-demo[data-intake-limit="exceeded"] .ds-intake-state strong { color: #a05216; }
.ds-demo .ds-intake-warning { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #ecd8b6; color: #895821; font-size: .73rem; line-height: 1.55; }
.ds-intake-warning[hidden] { display: none; }
.ds-smoke-card { margin-top: 12px; }
.ds-smoke-card .ds-reading-heading strong { font-size: .82rem; }
.ds-smoke-card .ds-fill { background: #8b9dad; }
.ds-smoke-card .ds-caption { margin-top: 8px; }
.ds-explanation { display: grid; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; color: #627185; font-size: .75rem; line-height: 1.55; }
.ds-explanation strong { color: #42586e; }
.ds-demo .ds-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #dbe4ec; color: #7a8898; font-size: .73rem; line-height: 1.65; }
.ds-demo[data-paused="true"] *, .ds-demo[data-paused="true"] *::before { animation-play-state: paused !important; transition: none !important; }
@keyframes ds-sweep {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(30px, 14px); }
  30% { transform: translate(30px, 34px); }
  50% { transform: translate(0, 20px); }
  60% { transform: translate(0, 40px); }
  80% { transform: translate(30px, 54px); }
}
@keyframes ds-drift { to { transform: translateX(12px); } }
@keyframes ds-flame { to { transform: scale(.9, 1.1); } }
@keyframes ds-fire-jitter {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-1px) rotate(-1deg); }
  50% { transform: translateX(.8px) rotate(.8deg); }
  75% { transform: translateX(-.3px) rotate(-.4deg); }
}
@media (min-width: 900px) {
  .ds-workspace { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); }
  .ds-visual { position: sticky; top: 150px; }
  .ds-scene { max-height: min(380px, 44vh); }
}
@media (min-width: 1100px) {
  .ds-workspace { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); }
}
@media (max-width: 900px) {
  .ds-heading { flex-direction: column; gap: 12px; }
  .ds-tag { font-size: .66rem; }
}
@media (max-width: 760px) {
  #mesure-debit .prestation-card-body { grid-template-areas: "media" "content" "simulation" "details"; }
}
@media (max-width: 560px) {
  .ds-demo { padding: 14px; border-radius: 12px; }
  .ds-scene { max-height: none; }
  .ds-phase { position: static; display: inline-block; margin: 12px 14px 0; font-size: .75rem; }
  .ds-key { position: static; padding: 0 14px 12px; font-size: .75rem; }
  .ds-controls button { min-height: 48px; touch-action: manipulation; }
  .ds-controls .ds-start, .ds-controls .ds-extraction { grid-column: 1 / -1; }
  .ds-readings, .ds-intake-card, .ds-smoke-card { padding: 13px; }
  .ds-reference, .ds-scale, .ds-demo .ds-intake-state { font-size: .75rem; }
  .ds-scale { flex-wrap: wrap; gap: 4px 12px; }
  .ds-intake-size, .ds-measured-size { align-items: flex-start; gap: 8px; font-size: .8rem; }
  .ds-intake-size select, .ds-measured-size select { flex: 1 1 100%; width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-demo *, .ds-demo *::before { animation: none !important; transition: none !important; }
}
