/* ============================================
   DFBL Tasks — Hero v3 (punchy + mockup loopé)
   Surcouche additive — utilise les tokens de style.css
   ============================================ */

:root {
  --mono: 'SF Mono', 'Menlo', 'Consolas', monospace;
  --p-pierre: #8b5cf6;
  --p-camille: #3b82f6;
  --p-antoine: #10b981;
}

.body-v2 { background: var(--bg); }

/* ===== Skip link pour utilisateurs clavier (a11y) ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ===== Focus visible global (a11y) ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Reduced motion : couper les animations continues coûteuses ===== */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero__orb,
  .demo__bg-orb,
  .mk-cr__sparkle {
    animation: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Section hero — animated mesh gradient + floating orbs ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(7rem, 13vh, 10rem) 0 clamp(3rem, 6vh, 5rem);
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* Mesh gradient animé (couches de blobs en glow qui se déplacent) */
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 30%, rgba(43,127,255,0.28) 0%, transparent 32%),
    radial-gradient(circle at 75% 20%, rgba(74,148,255,0.20) 0%, transparent 35%),
    radial-gradient(circle at 50% 75%, rgba(43,127,255,0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(107,166,255,0.15) 0%, transparent 35%),
    radial-gradient(circle at 10% 85%, rgba(43,127,255,0.12) 0%, transparent 30%);
  filter: blur(40px);
  animation: meshShift 24s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Grille de points (très subtile) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}

@keyframes meshShift {
  0% {
    background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    filter: blur(40px) hue-rotate(0deg);
  }
  50% {
    background-position: 8% -5%, -10% 12%, 5% -8%, -8% 5%, 10% -10%;
    filter: blur(50px) hue-rotate(8deg);
  }
  100% {
    background-position: -6% 8%, 12% -10%, -5% 10%, 10% -6%, -8% 12%;
    filter: blur(40px) hue-rotate(0deg);
  }
}

/* Orbs floatants en glow derrière le H1 */
.hero__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}
.hero__orb--1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(43,127,255,0.55) 0%, transparent 70%);
  top: -8%; left: -5%;
  animation: orbFloat1 18s ease-in-out infinite;
}
.hero__orb--2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(107,166,255,0.45) 0%, transparent 70%);
  top: 30%; left: 25%;
  animation: orbFloat2 22s ease-in-out infinite;
}
.hero__orb--3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(74,148,255,0.40) 0%, transparent 70%);
  bottom: -10%; right: -5%;
  animation: orbFloat3 26s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.15); }
  66% { transform: translate(-40px, 100px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-90px, -70px) scale(1.2); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-70px, -40px) scale(1.1); }
  80% { transform: translate(50px, -90px) scale(0.9); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ===== Copy column ===== */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid rgba(43,127,255,0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.hero__line {
  display: block;
}
.hero__line--accent em {
  font-style: italic;
  background: linear-gradient(135deg, #2b7fff 0%, #4a94ff 50%, #6ba6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(43,127,255,0.35));
  position: relative;
  display: inline-block;
}
.hero__line--accent em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 0.12em;
  background: linear-gradient(90deg, transparent, rgba(43,127,255,0.6), transparent);
  border-radius: 2px;
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero__sub strong {
  color: var(--text);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  letter-spacing: 0.005em;
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero__trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(34,197,94,0.4);
}

/* ===== DÉMO INTERACTIVE LIVE ===== */
.hero__demo {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0;
}
@media (max-width: 980px) {
  .hero__demo { max-width: 100%; }
}

/* Orb glow derrière la démo */
.demo__bg-orb {
  position: absolute;
  top: 30%; left: 30%;
  width: 70%; height: 60%;
  background: radial-gradient(circle, rgba(43,127,255,0.30) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: orbBreath 6s ease-in-out infinite;
}
@keyframes orbBreath {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

/* Panneau CR éditable + parallax 3D */
.demo__panel {
  position: relative;
  background: linear-gradient(180deg, rgba(12,14,20,0.85), rgba(12,14,20,0.65));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow:
    0 0 0 1px var(--accent-soft),
    0 30px 80px -20px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
}
.demo__panel:hover {
  box-shadow:
    0 0 0 1px var(--accent-soft),
    0 40px 100px -20px rgba(43,127,255,0.35),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Burst particles (étincelles) lors du landing d'une carte */
.dispatch-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.dispatch-spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent-glow);
  opacity: 0;
  animation: sparkBurst 0.8s ease-out forwards;
}
@keyframes sparkBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  20% { opacity: 1; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px) * 1.6), calc(-50% + var(--dy, 0px) * 1.6)) scale(0.3); }
}
.demo__panel::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.demo__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.demo__icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  border: 1px solid rgba(43,127,255,0.3);
}
.demo__title {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9375rem;
}
.demo__hint {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--mono);
}

/* Tabs Texte / Vocal */
.demo__tabs {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.demo__tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.3rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-3);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.demo__tab:hover { color: var(--text-2); }
.demo__tab.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 12px -2px rgba(43,127,255,0.5);
}

/* Mode VOCAL */
.demo__voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.75rem 1rem;
  background: var(--bg-card-inner);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius);
  min-height: 100px;
  margin-bottom: 1.25rem;
  text-align: center;
}
.demo__voice[hidden] { display: none; }

.demo__mic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(43,127,255,0.4),
    0 12px 32px -4px rgba(43,127,255,0.5);
  transition: transform 0.2s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
}
.demo__mic:hover { transform: scale(1.06); }
.demo__mic:active { transform: scale(0.96); }
.demo__mic.is-recording {
  background: linear-gradient(135deg, var(--danger), #ff6b6b);
  box-shadow:
    0 0 0 4px rgba(239,68,68,0.25),
    0 0 0 12px rgba(239,68,68,0.12),
    0 12px 40px -4px rgba(239,68,68,0.6);
  animation: micPulse 1.4s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(239,68,68,0.25), 0 0 0 12px rgba(239,68,68,0.12), 0 12px 40px -4px rgba(239,68,68,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0.3), 0 0 0 20px rgba(239,68,68,0.10), 0 12px 50px -4px rgba(239,68,68,0.8); }
}

/* Waveform animée pendant l'enregistrement */
.demo__waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.demo__waveform.is-active { opacity: 1; }
.demo__waveform span {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  height: 6px;
  transition: height 0.15s ease-out;
}
.demo__waveform.is-active span {
  animation: waveBar 0.8s ease-in-out infinite;
}
.demo__waveform.is-active span:nth-child(1) { animation-delay: 0s; }
.demo__waveform.is-active span:nth-child(2) { animation-delay: 0.05s; }
.demo__waveform.is-active span:nth-child(3) { animation-delay: 0.1s; }
.demo__waveform.is-active span:nth-child(4) { animation-delay: 0.15s; }
.demo__waveform.is-active span:nth-child(5) { animation-delay: 0.2s; }
.demo__waveform.is-active span:nth-child(6) { animation-delay: 0.25s; }
.demo__waveform.is-active span:nth-child(7) { animation-delay: 0.3s; }
.demo__waveform.is-active span:nth-child(8) { animation-delay: 0.35s; }
.demo__waveform.is-active span:nth-child(9) { animation-delay: 0.4s; }
.demo__waveform.is-active span:nth-child(10) { animation-delay: 0.45s; }
.demo__waveform.is-active span:nth-child(11) { animation-delay: 0.4s; }
.demo__waveform.is-active span:nth-child(12) { animation-delay: 0.35s; }
.demo__waveform.is-active span:nth-child(13) { animation-delay: 0.3s; }
.demo__waveform.is-active span:nth-child(14) { animation-delay: 0.25s; }
.demo__waveform.is-active span:nth-child(15) { animation-delay: 0.2s; }
.demo__waveform.is-active span:nth-child(16) { animation-delay: 0.15s; }
@keyframes waveBar {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}

.demo__voice-hint {
  font-size: 0.8125rem;
  color: var(--text-3);
  letter-spacing: -0.005em;
}
.demo__voice-transcript {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  max-width: 90%;
  min-height: 1.2em;
  letter-spacing: -0.005em;
}

.demo__editor {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  letter-spacing: -0.005em;
  padding: 1rem;
  background: var(--bg-card-inner);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius);
  outline: none;
  cursor: text;
  min-height: 100px;
  margin-bottom: 1.25rem;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.demo__editor:focus {
  border-color: rgba(43,127,255,0.4);
  background: rgba(12,14,20,0.9);
  font-style: normal;
}
.demo__editor:empty::before {
  content: "Tapez ou collez votre compte-rendu…";
  color: var(--text-3);
}

/* Highlights des noms après dispatch */
.demo__editor mark.hl-p { background: rgba(139,92,246,0.25); color: #c4b0fb; padding: 0.05em 0.35em; border-radius: 4px; box-shadow: inset 0 -2px 0 var(--p-pierre); font-style: normal; font-weight: 700; }
.demo__editor mark.hl-c { background: rgba(59,130,246,0.25); color: #92bdfa; padding: 0.05em 0.35em; border-radius: 4px; box-shadow: inset 0 -2px 0 var(--p-camille); font-style: normal; font-weight: 700; }
.demo__editor mark.hl-a { background: rgba(16,185,129,0.25); color: #6ee7b7; padding: 0.05em 0.35em; border-radius: 4px; box-shadow: inset 0 -2px 0 var(--p-antoine); font-style: normal; font-weight: 700; }

/* Bouton Dispatcher — gros, glow, action verb */
.demo__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, #2b7fff 0%, #4a94ff 50%, #6ba6ff 100%);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(43,127,255,0.5),
    0 8px 32px -4px rgba(43,127,255,0.5),
    0 0 0 0 rgba(43,127,255,0);
  transition: transform 0.2s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.demo__btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(43,127,255,0.7),
    0 16px 48px -8px rgba(43,127,255,0.7),
    0 0 0 8px rgba(43,127,255,0.1);
}
.demo__btn:active { transform: translateY(0) scale(0.98); }
.demo__btn[data-loading] {
  background: linear-gradient(135deg, #1e5fbb 0%, #2b7fff 100%);
  pointer-events: none;
}
.demo__btn[data-loading] .demo__btn-sparkle { animation: spin 0.8s linear infinite; }
@keyframes spin {
  to { transform: rotate(360deg); }
}
.demo__btn-sparkle { font-size: 1.1rem; display: inline-block; }
.demo__btn-arrow { display: inline-flex; transition: transform 0.3s var(--ease-out); }
.demo__btn:hover .demo__btn-arrow { transform: translateX(3px); }

/* Beam (rayon) qui part du bouton vers les cartes pendant le dispatch */
.demo__beam {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, var(--accent), transparent);
  filter: blur(1px);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}
.demo__beam.is-firing {
  animation: beamFire 0.7s ease-out;
}
@keyframes beamFire {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0); }
  20% { opacity: 1; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(2); }
}

/* Output : cartes tâches */
.demo__output {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.demo__output-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-left: 0.5rem;
}
.demo__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.demo__pulse.is-active {
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.demo__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0;
}
.demo__cards {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 60px;
}
.demo__caption {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  text-align: center;
  letter-spacing: -0.005em;
  transition: opacity 0.3s var(--ease-out);
}
.demo__caption.is-hidden { opacity: 0; }

/* Une carte tâche dispatchée */
.dispatch-card {
  display: grid;
  grid-template-columns: 28px 1fr 32px;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-inner));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
  /* Initial state for entrance animation */
  opacity: 0;
  transform: perspective(800px) rotateX(45deg) scale(0.7) translateY(40px);
  transform-origin: top center;
}
.dispatch-card.is-in {
  animation: cardLand 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes cardLand {
  0% {
    opacity: 0;
    transform: perspective(800px) rotateX(45deg) scale(0.7) translateY(40px);
    box-shadow: 0 0 80px 10px rgba(43,127,255,0.6), 0 8px 24px -8px rgba(0,0,0,0.5);
  }
  60% {
    opacity: 1;
    transform: perspective(800px) rotateX(-3deg) scale(1.04) translateY(-4px);
    box-shadow: 0 0 30px 4px rgba(43,127,255,0.4), 0 12px 32px -8px rgba(0,0,0,0.5);
  }
  100% {
    opacity: 1;
    transform: perspective(800px) rotateX(0) scale(1) translateY(0);
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
  }
}
.dispatch-card[data-color="p"] { border-color: rgba(139,92,246,0.35); }
.dispatch-card[data-color="c"] { border-color: rgba(239,68,68,0.4); background: linear-gradient(180deg, rgba(239,68,68,0.06), var(--bg-card-inner)); }
.dispatch-card[data-color="a"] { border-color: rgba(16,185,129,0.35); }

.dispatch-card__rank {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  letter-spacing: -0.02em;
}
.dispatch-card[data-color="c"] .dispatch-card__rank { color: var(--danger); }

.dispatch-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.dispatch-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dispatch-card__meta {
  font-size: 0.6875rem;
  color: var(--text-3);
  font-family: var(--mono);
}
.dispatch-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--av, var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px -2px var(--av-glow, rgba(43,127,255,0.5));
}

@media (max-width: 540px) {
  .demo__btn { font-size: 0.9375rem; padding: 0.85rem 1.25rem; }
  .demo__editor { font-size: 0.9375rem; padding: 0.85rem; }
}

/* ===== Logo nav doublé ===== */
.nav-logo--lg img { height: 80px; width: auto; }
.nav { max-width: 1100px !important; }
.nav-inner { padding: 0.5rem 0.5rem 0.5rem 1rem !important; }
@media (max-width: 768px) {
  .nav-logo--lg img { height: 56px; }
}

/* ===== Section header commun ===== */
.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 4.5rem);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* ===== Section PAINS = SOLUTIONS ===== */
.pains {
  padding: clamp(5rem, 12vh, 8rem) 0;
  background: var(--bg);
  position: relative;
}
.pains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}
@media (max-width: 980px) {
  .pains-grid { grid-template-columns: 1fr; }
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.pain-card__num {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.pain-card__quote {
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-style: italic;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.pain-card__sol h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.pain-card__sol p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 1rem;
}
.pain-card__feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pain-card__feats li {
  font-size: 0.8125rem;
  color: var(--text-2);
  padding-left: 1.25rem;
  position: relative;
}
.pain-card__feats li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Section HOW IT WORKS ===== */
.how {
  padding: clamp(5rem, 12vh, 8rem) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  counter-reset: step;
}
@media (max-width: 768px) {
  .how-steps { grid-template-columns: 1fr; }
}
.how-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.how-step__num {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid rgba(43,127,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--mono);
}
.how-step h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.015em;
}
.how-step p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 320px;
  margin: 0 auto;
}

/* ===== Section PRICING ===== */
.pricing-v3 {
  padding: clamp(5rem, 12vh, 8rem) 0;
  background: var(--bg);
  position: relative;
}
.pricing-card-v3 {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  box-shadow:
    0 0 0 1px var(--accent-soft),
    0 30px 80px -20px rgba(43,127,255,0.25),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Toggle Mensuel / Annuel */
.pricing-toggle-v3 {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin: 0 auto 2rem;
}
.pt-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.pt-opt:hover { color: var(--text); }
.pt-opt.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 12px -2px rgba(43,127,255,0.4);
}
.pt-save {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  background: var(--success);
  color: #052610;
}
.pt-opt:not(.is-active) .pt-save {
  background: rgba(34,197,94,0.15);
  color: var(--success);
}

/* Hint qui change : "Facturé mensuellement · 119€/mois" ou "Facturé annuellement · 1 190€/an" */
.pricing-card-v3__hint {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 0.25rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0;
  font-family: var(--mono);
}

/* Animation douce du chiffre quand on switch */
.pricing-card-v3__amount {
  display: inline-block;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.pricing-card-v3__amount.is-switching {
  opacity: 0;
  transform: translateY(8px);
}
.pricing-card-v3__plan {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(43,127,255,0.3);
  margin-bottom: 1.5rem;
}
.pricing-card-v3__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.pricing-card-v3__amount {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pricing-card-v3__suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-2);
}
.pricing-card-v3__suffix small {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 0.15rem;
}
.pricing-card-v3__users {
  font-size: 0.9375rem;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}
.pricing-card-v3__annual {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 1.75rem;
}
.pricing-card-v3__feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  padding: 1.5rem 0;
  margin: 0 0 1.75rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pricing-card-v3__feats li {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}
.pricing-card-v3__cta {
  width: 100%;
  justify-content: center;
}
.pricing-card-v3__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ===== Section FAQ ===== */
.faq-v3 {
  padding: clamp(5rem, 12vh, 8rem) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.faq-list-v3 {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item-v3 {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}
.faq-item-v3:hover { border-color: var(--border-hover); }
.faq-item-v3[open] { border-color: rgba(43,127,255,0.3); }

.faq-item-v3 summary {
  list-style: none;
  cursor: pointer;
  padding: 1.125rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: -0.005em;
}
.faq-item-v3 summary::-webkit-details-marker { display: none; }
.faq-item-v3 summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.3s var(--ease-out);
}
.faq-item-v3[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-2);
}
.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(43,127,255,0.4);
  text-underline-offset: 2px;
}

/* ===== Final CTA section ===== */
.final-cta-v3 {
  padding: clamp(5rem, 12vh, 8rem) 0;
  background:
    radial-gradient(ellipse at center, rgba(43,127,255,0.08) 0%, transparent 60%),
    var(--bg);
  text-align: center;
}
.final-cta-v3 .container {
  max-width: 760px;
}
.final-cta-v3__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.final-cta-v3__sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  margin-bottom: 2rem;
}
.final-cta-v3 .hero__actions {
  justify-content: center;
}

/* ===== Footer améliorations ===== */
.footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .mk-cr__sweep { display: none; }
  .mk-mark { transition: none; }
}
