@font-face {
  font-family: "InterVariable";
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterVariable";
  src: url("../assets/fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGroteskVariable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-text: "InterVariable", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "InterVariable", Inter, ui-sans-serif, system-ui, sans-serif;
  --background: #06191b;
  --background-deep: #021012;
  --surface: #0a2527;
  --surface-raised: #103033;
  --paper: #f4f1e9;
  --paper-raised: #ffffff;
  --ink: #0b2021;
  --ink-soft: #5d726f;
  --text: #f7f4ed;
  --text-soft: #b7c8c4;
  --muted: #91a9a4;
  --mint: #62e8c6;
  --mint-dark: #0d826f;
  --mint-pale: #ddf8f1;
  --amber: #f4b34c;
  --danger: #ff8d82;
  --line: rgba(169, 219, 210, 0.2);
  --line-dark: rgba(11, 32, 33, 0.15);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --radius-large: 30px;
  --radius-medium: 18px;
  --radius-small: 12px;
  --content-width: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(103, 226, 198, 0.14), transparent 30%),
    linear-gradient(145deg, var(--background-deep), var(--background));
  color: var(--text);
  font-family: var(--font-text);
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  width: min(var(--content-width), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  letter-spacing: 0.02em;
  font-weight: 680;
}

.brand svg {
  width: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.brand span {
  font-size: 1rem;
}

.brand b {
  font-weight: 420;
}

.version {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

main {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  min-height: calc(100vh - 74px);
  padding: 30px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.intro-copy {
  padding: clamp(20px, 4vw, 62px) 0;
}

.eyebrow,
.step-kicker {
  margin: 0;
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.intro h1,
.thanks-card > h1 {
  max-width: 780px;
  margin: 22px 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.intro h1 span {
  display: block;
  margin-top: 8px;
  color: #bacbc7;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.65;
}

.intro-jump {
  width: fit-content;
  margin-top: 18px;
}

.privacy-card {
  max-width: 720px;
  margin-top: 24px;
  padding: 17px 18px;
  border: 1px solid rgba(103, 226, 198, 0.22);
  border-radius: var(--radius-small);
  background: rgba(103, 226, 198, 0.06);
  scroll-margin-top: 18px;
}

.privacy-card strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.privacy-card p {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.privacy-card a,
.export-card a {
  color: inherit;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.draft-notice {
  max-width: 720px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  background: rgba(244, 179, 76, 0.08);
  color: #f7d79f;
  font-size: 1rem;
  line-height: 1.5;
}

.consent-fieldset {
  max-width: 720px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.consent-fieldset legend {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: #d0dcd9;
  font-size: 1rem;
  line-height: 1.5;
}

.consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--mint);
}

.field-help {
  margin: 8px 0 0 32px;
  color: var(--muted);
  font-size: 1rem;
}

.intro-actions,
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(103, 226, 198, 0.5);
}

.button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.button-primary {
  border-color: transparent;
  background: var(--mint);
  color: #052320;
}

.button-primary:hover:not(:disabled) {
  background: #7eebd2;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.035);
}

.text-button,
.sidebar-clear {
  min-height: 44px;
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-button:hover,
.sidebar-clear:hover {
  color: var(--text);
}

.text-button.danger {
  color: var(--danger);
}

.timelapse {
  position: relative;
  min-height: min(760px, calc(100vh - 130px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-large);
  background: #031315;
  box-shadow: var(--shadow);
}

.scene {
  position: absolute;
  inset: 0;
}

.scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(2, 12, 14, 0.08), rgba(2, 12, 14, 0.12) 48%, rgba(2, 12, 14, 0.82));
  pointer-events: none;
}

.scene picture {
  display: block;
  width: 100%;
  height: 100%;
}

.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.story {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  padding: 18px;
  border: 1px solid rgba(103, 226, 198, 0.18);
  border-radius: var(--radius-medium);
  background: rgba(2, 17, 19, 0.8);
  backdrop-filter: blur(18px);
}

.story-time {
  margin: 0;
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.story h2 {
  margin: 8px 0 6px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.story > p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.timeline {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.timeline-button {
  min-height: 50px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: rgba(2, 17, 19, 0.7);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.timeline-button.is-active {
  border-color: var(--mint);
  background: rgba(103, 226, 198, 0.16);
}

.timeline-button strong,
.timeline-button span {
  display: block;
}

.timeline-button strong {
  font-size: 0.72rem;
}

.timeline-button span {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.63rem;
}

.survey-view {
  height: calc(100vh - 74px);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.survey-sidebar {
  min-height: 0;
  padding: clamp(24px, 3vw, 38px);
  overflow-y: auto;
  background: #082426;
  color: var(--text);
}

.survey-sidebar h2 {
  margin: 16px 0 10px;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.sidebar-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.progress {
  height: 8px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.progress span {
  display: block;
  width: 7.7%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
  transition: width 240ms ease;
}

.progress-label {
  margin: 8px 0 18px;
  color: var(--text-soft);
  font-size: 0.73rem;
}

.step-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  counter-increment: steps;
  min-height: 31px;
  padding: 6px 8px 6px 34px;
  position: relative;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  color: #78918d;
  font-size: 0.72rem;
  line-height: 1.35;
}

.step-list li::before {
  position: absolute;
  left: 9px;
  content: counter(steps, decimal-leading-zero);
  color: currentColor;
  font-variant-numeric: tabular-nums;
}

.step-list li.is-current {
  border-left-color: var(--mint);
  background: linear-gradient(90deg, rgba(103, 226, 198, 0.1), transparent);
  color: var(--text);
  font-weight: 750;
}

.step-list li.is-complete {
  color: #a9bdb9;
}

.sidebar-clear {
  margin-top: 20px;
  font-size: 0.72rem;
}

.form-panel {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.wizard-top {
  width: min(900px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 66px);
}

.step-kicker {
  color: var(--mint-dark);
}

.question-title {
  max-width: 780px;
  margin: 13px 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.question-title:focus {
  outline: 3px solid var(--amber);
  outline-offset: 6px;
  border-radius: 4px;
}

.question-description {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.58;
}

.question-fieldset {
  min-width: 0;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.option {
  position: relative;
  min-width: 0;
}

.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.option label {
  min-height: 68px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--paper-raised);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.option label::before {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid #879c98;
  border-radius: 50%;
  content: "";
}

.option.checkbox label::before {
  border-radius: 6px;
}

.option input:focus-visible + label {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.option input:checked + label {
  border-color: var(--mint-dark);
  background: var(--mint-pale);
  box-shadow: 0 10px 24px rgba(21, 154, 132, 0.11);
}

.option input:checked + label::before {
  border-color: var(--mint-dark);
  background: var(--mint-dark);
  box-shadow: inset 0 0 0 4px var(--paper-raised);
}

.option label:hover {
  border-color: rgba(13, 130, 111, 0.55);
  transform: translateY(-1px);
}

.option-label {
  font-weight: 750;
  line-height: 1.35;
}

.question-fieldset.has-error .option label {
  border-color: rgba(190, 57, 47, 0.45);
}

.contact-fields {
  margin-top: 24px;
  padding-top: 24px;
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line-dark);
}

.contact-fields.is-disabled {
  opacity: 0.72;
}

.contact-fields input:disabled,
.contact-fields textarea:disabled {
  cursor: not-allowed;
  background: #e8e5dc;
  color: var(--ink-soft);
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-group label {
  font-weight: 750;
}

.field-group small {
  color: var(--ink-soft);
  line-height: 1.45;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-small);
  background: var(--paper-raised);
  color: var(--ink);
}

.field-group input {
  min-height: 50px;
}

.field-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.free-text-field textarea {
  min-height: 180px;
}

.field-group input[aria-invalid="true"] {
  border-color: #be392f;
}

.concept-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-radius: 22px;
  background: #071b1d;
  color: var(--text);
}

.concept-card img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.concept-copy {
  padding: clamp(24px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.concept-copy h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.concept-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.58;
}

.concept-pills {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.concept-pills span {
  padding: 7px 10px;
  border: 1px solid rgba(103, 226, 198, 0.24);
  border-radius: 999px;
  color: #b9f8e9;
  font-size: 0.7rem;
}

.validation-message {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #be392f;
  background: #fff0ed;
  color: #8e2e27;
  font-weight: 700;
  line-height: 1.45;
}

.form-navigation {
  margin-top: 32px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-dark);
}

.button-back {
  border-color: var(--line-dark);
  background: transparent;
  color: var(--ink);
}

.form-navigation .button-primary {
  margin-left: auto;
}

.storage-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-align: right;
}

.thanks-view {
  min-height: calc(100vh - 74px);
  padding: clamp(28px, 6vw, 82px) 0;
  display: grid;
  place-items: center;
}

.thanks-card {
  width: min(960px, 100%);
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid rgba(103, 226, 198, 0.18);
  border-radius: var(--radius-large);
  background: linear-gradient(145deg, rgba(16, 48, 51, 0.95), rgba(5, 24, 26, 0.98));
  box-shadow: var(--shadow);
}

.thanks-card > h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
}

.thanks-lead {
  max-width: 680px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.export-card {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.035);
}

.export-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.export-card ol {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--text-soft);
  line-height: 1.7;
}

.thanks-actions {
  align-items: stretch;
}

.thanks-actions .danger {
  width: 100%;
  text-align: left;
}

.export-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--mint);
  font-size: 0.82rem;
}

.noscript-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 9;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: var(--radius-small);
  background: var(--background-deep);
  color: var(--text);
}

@media (max-width: 1080px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .timelapse {
    min-height: 620px;
  }

  .survey-view {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .survey-sidebar {
    padding: 24px 18px;
  }

  .step-list li {
    font-size: 0.67rem;
  }

  .concept-card {
    grid-template-columns: 1fr;
  }

  .concept-card img {
    min-height: 280px;
    max-height: 360px;
  }
}

@media (max-width: 760px) {
  .topbar,
  main {
    width: calc(100% - 20px);
  }

  .topbar {
    min-height: 64px;
  }

  .version {
    max-width: 150px;
    text-align: right;
  }

  .intro {
    min-height: calc(100vh - 64px);
    padding-top: 10px;
  }

  .intro-copy {
    padding-top: 10px;
  }

  .intro-jump {
    width: 100%;
  }

  .timelapse {
    min-height: clamp(360px, calc(100vh - 250px), 480px);
    border-radius: 22px;
  }

  .timeline {
    top: 10px;
    right: 10px;
    left: 10px;
    gap: 5px;
  }

  .timeline-button {
    min-height: 46px;
    padding: 7px 6px;
    text-align: center;
  }

  .timeline-button span {
    display: none;
  }

  .story {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .intro-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .intro-actions .button {
    width: 100%;
  }

  .text-button {
    text-align: left;
  }

  .survey-view {
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 22px 22px 0 0;
  }

  .survey-sidebar {
    padding: 16px;
    overflow: visible;
  }

  .survey-sidebar .eyebrow,
  .sidebar-copy,
  .step-list {
    display: none;
  }

  .survey-sidebar h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
  }

  .progress {
    margin-top: 0;
  }

  .progress-label {
    display: inline-block;
    margin: 7px 12px 0 0;
  }

  .sidebar-clear {
    margin-top: 4px;
  }

  .wizard-top {
    padding: 28px 17px calc(20px + env(safe-area-inset-bottom));
  }

  .question-title {
    font-size: clamp(1.85rem, 10vw, 2.7rem);
  }

  .options {
    grid-template-columns: 1fr;
  }

  .concept-card img {
    min-height: 230px;
  }

  .concept-copy {
    padding: 22px;
  }

  .form-navigation {
    position: sticky;
    bottom: -1px;
    z-index: 2;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(244, 241, 233, 0.9), var(--paper) 35%);
  }

  .form-navigation .button {
    min-width: 0;
    flex: 1;
    padding-inline: 14px;
  }

  .thanks-view {
    min-height: calc(100vh - 64px);
    padding: 10px 0 30px;
  }

  .thanks-card {
    border-radius: 22px;
  }

  .thanks-actions {
    flex-direction: column;
  }

  .thanks-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Typographie de marque (configurable via /backoffice/) === */
.intro h1,
.thanks-card > h1,
.story h2,
.brand {
  font-family: var(--font-display);
}

.intro h1,
.thanks-card > h1 {
  letter-spacing: -0.03em;
}
:root[data-font-display="inter"] { --font-display: var(--font-text); }
:root[data-font-display="system"] { --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
:root[data-font-text="system"] { --font-text: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* === Timelapse : fondu enchaîné + badges télémétrie (retour Fred #5) === */
.scene {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease;
}

.scene-chips {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.flow-chip {
  position: absolute;
  padding: 8px 11px;
  border: 1px solid rgba(103, 226, 198, 0.25);
  border-radius: 999px;
  background: rgba(2, 13, 16, 0.72);
  color: #d9f7ef;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(50, 225, 190, 0.08);
  opacity: 0.9;
  white-space: nowrap;
}

.flow-chip::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.flow-a { left: 8%; top: 14%; animation: floatChip 5.5s ease-in-out infinite; }
.flow-b { left: 64%; top: 22%; animation: floatChip 6.3s ease-in-out infinite reverse; }
.flow-c { left: 14%; top: 44%; animation: floatChip 7s ease-in-out infinite; }
.flow-d { left: 58%; top: 54%; animation: floatChip 5.9s ease-in-out infinite reverse; }

@keyframes floatChip {
  50% { transform: translate3d(10px, -12px, 0); }
}

@media (max-width: 640px) {
  .flow-chip { font-size: 0.62rem; }
  .flow-b { left: 56%; }
  .flow-d { left: 52%; }
}

@media (prefers-reduced-motion: reduce) {
  .scene,
  .scene.is-active { transition: none; }
  .flow-chip { animation: none; }
}

/* === Statut de transmission (fin de questionnaire) === */
.transmit-status {
  margin: 4px 0 12px;
  color: var(--mint);
  font-size: 1rem;
  font-weight: 650;
  min-height: 1.4em;
}

/* === Polish premium timelapse : Ken Burns === */
.scene img {
  will-change: transform;
}

.scene.is-active img {
  animation: kenBurns 14s ease-in-out infinite alternate;
}

.scene:nth-of-type(even).is-active img {
  animation-direction: alternate-reverse;
}

@keyframes kenBurns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(0, -1.4%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .scene.is-active img { animation: none; }
}

/* === Polish premium timelapse : progression autoplay sur la timeline === */
.timeline-button {
  position: relative;
  overflow: hidden;
  transition: border-color 220ms ease, background-color 220ms ease;
}

.timeline-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(103, 226, 198, 0.65);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.timelapse[data-playing="true"] .timeline-button.is-active::after {
  opacity: 1;
  animation: sceneProgress 6.5s linear forwards;
}

@keyframes sceneProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-button::after { display: none; }
}
