/* Aperçus d'interface (données fictives) et animations d'apparition.
   Tout est en HTML/CSS : rien à charger, net à toutes les tailles, thème clair et sombre. */

:root {
  --app-bg: #14151a;
  --app-panel: rgba(255, 255, 255, 0.05);
  --app-line: rgba(255, 255, 255, 0.1);
  --app-text: #f1f2ee;
  --app-muted: #9a9d94;
  --ai: #a98bff; /* le violet ne sert qu'à ce qui vient de l'IA, comme dans l'app */
  --ai-soft: rgba(123, 63, 242, 0.2);
  --ok: #45d08f;
  --warn: #f0b34a;
  --bad: #ff8f86;
  --ink-pill: #f1f2ee;
  --ink-pill-text: #101114;
}
:root[data-theme="light"] {
  --app-bg: #ffffff;
  --app-panel: rgba(16, 17, 20, 0.035);
  --app-line: rgba(16, 17, 20, 0.1);
  --app-text: #101114;
  --app-muted: #6a6d78;
  --ai: #6d3ae6;
  --ai-soft: rgba(123, 63, 242, 0.12);
  --ok: #1e8e5a;
  --warn: #9a6b00;
  --bad: #c0372c;
  --ink-pill: #101114;
  --ink-pill-text: #f4f5f0;
}

/* --- Apparition au défilement (visible d'emblée sans JavaScript) --- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* --- Mise en page des héros à deux colonnes --- */
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 3.5rem;
  }
  .hero-grid.wide {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}
.hero-visual {
  position: relative;
  min-width: 0;
}
.cap {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
  text-align: center;
}
.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.35rem 0.9rem 0.35rem 0.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.founder-badge b {
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  font-weight: 700;
}

/* ============ Scène principale : l'app qui travaille ============ */
.app-stage {
  position: relative;
  width: 100%;
  height: 420px;
  perspective: 1400px;
}
html:not(.js) .app-stage {
  display: none;
}
.app-glow {
  position: absolute;
  inset: 6% 4%;
  border-radius: 40%;
  background: radial-gradient(closest-side, rgba(200, 238, 90, 0.5), rgba(28, 154, 102, 0.22) 55%, transparent 75%);
  filter: blur(46px);
  opacity: 0.7;
  animation: breathe 7s ease-in-out infinite;
}
:root[data-theme="light"] .app-glow {
  opacity: 0.55;
}
@keyframes breathe {
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}
.tilt {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: center;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.app-scale {
  width: 640px;
  height: 420px;
  transform-origin: top left;
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  50% {
    translate: 0 -7px;
  }
}
.app {
  position: relative;
  width: 640px;
  height: 410px;
  border-radius: 20px;
  overflow: hidden;
  color: var(--app-text);
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  font-size: 13px;
  line-height: 1.4;
}
:root[data-theme="light"] .app {
  box-shadow: 0 40px 80px -34px rgba(40, 70, 10, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
/* Reflet qui balaie la vitre */
.app::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.1) 48%, transparent 58%);
  transform: translateX(-120%);
  animation: sheen 9s ease-in-out infinite 1.5s;
}
@keyframes sheen {
  0%,
  70% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
.app-top {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--app-line);
}
.app-top .dots {
  display: flex;
  gap: 6px;
}
.app-top .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--app-line);
}
.app-top .url {
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--app-panel);
  color: var(--app-muted);
  font-size: 11px;
}
.app-body {
  display: grid;
  grid-template-columns: 54px 1fr;
  height: calc(100% - 34px);
}
.app-side {
  border-right: 1px solid var(--app-line);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.app-side .lg {
  width: 26px;
  height: 28px;
  margin-bottom: 8px;
  color: var(--app-text);
}
.app-side .ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--app-muted);
}
.app-side .ic svg {
  width: 17px;
  height: 17px;
}
.app-side .ic.on {
  background: var(--ink-pill);
  color: var(--ink-pill-text);
}
.app-main {
  padding: 14px 16px;
  min-width: 0;
  position: relative;
}
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.app-head small {
  display: block;
  color: var(--app-muted);
  font-size: 11px;
}
.app-head b {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  font-size: 11px;
  font-weight: 600;
}
.seg span {
  padding: 3px 11px;
  border-radius: 999px;
  color: var(--app-muted);
}
.seg span.on {
  background: var(--ink-pill);
  color: var(--ink-pill-text);
}
.app-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 12px;
}
.pn {
  border-radius: 14px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  padding: 12px;
  min-width: 0;
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
}
.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: #243100;
  background: linear-gradient(135deg, #d9f47f, #9ccf3a);
  flex: none;
}
.who b {
  display: block;
  font-size: 13px;
}
.who span {
  color: var(--app-muted);
  font-size: 11px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  min-height: 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  color: var(--app-text);
  white-space: nowrap;
}
.chip svg {
  width: 11px;
  height: 11px;
}
.chip.ok {
  color: var(--ok);
}
.chip.ai {
  color: var(--ai);
  background: var(--ai-soft);
  border-color: transparent;
}
.chip.warn {
  color: var(--warn);
}
.chip.bad {
  color: var(--bad);
}
.chip.lime {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: transparent;
}
.app .chips .chip {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.app[data-step="1"] .chips .chip,
.app[data-step="2"] .chips .chip,
.app[data-step="3"] .chips .chip,
.app[data-step="4"] .chips .chip,
.app[data-step="5"] .chips .chip {
  opacity: 1;
  transform: none;
}
.app .chips .chip:nth-child(2) {
  transition-delay: 0.25s;
}
.app .chips .chip:nth-child(3) {
  transition-delay: 0.5s;
}

.steps {
  margin-top: 12px;
}
.steps h4,
.dr h4 {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-muted);
}
.st {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  position: relative;
  color: var(--app-muted);
  transition: color 0.4s ease;
}
.st + .st::before {
  content: "";
  position: absolute;
  left: 9px;
  top: -9px;
  height: 12px;
  width: 2px;
  background: var(--app-line);
}
.st .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--app-line);
  flex: none;
  transition: all 0.4s ease;
  background: var(--app-bg);
}
.st .dot svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.st em {
  font-style: normal;
  font-size: 10px;
  margin-left: auto;
  color: var(--app-muted);
}
.st.done {
  color: var(--app-text);
}
.st.done .dot {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.st.done .dot svg {
  opacity: 1;
}
.st.now .dot {
  border-color: var(--ai);
  box-shadow: 0 0 0 4px var(--ai-soft);
}
.st.stop {
  text-decoration: line-through;
  opacity: 0.45;
}
.app[data-step="0"] .steps .st:nth-child(2),
.app[data-step="0"] .steps .st:nth-child(3),
.app[data-step="0"] .steps .st:nth-child(4),
.app[data-step="0"] .steps .st:nth-child(5) {
  opacity: 0.55;
}

.dr {
  display: flex;
  flex-direction: column;
  min-height: 218px;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}
.app:not([data-step="0"]):not([data-step="1"]) .dr {
  opacity: 1;
}
.dr .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dr .txt {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px;
  border-radius: 10px;
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  min-height: 104px;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  vertical-align: -2px;
  background: var(--ai);
  margin-left: 1px;
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.dr .ft {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 30px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  color: var(--app-text);
  transition: transform 0.15s ease, background 0.3s ease;
}
.pill.ink {
  background: var(--ink-pill);
  color: var(--ink-pill-text);
  border-color: transparent;
  margin-left: auto;
}
.pill.press {
  transform: scale(0.93);
}
.pill.sent {
  background: var(--brand);
  color: var(--brand-ink);
}
.pill svg {
  width: 12px;
  height: 12px;
}

.toast {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 238px;
  padding: 10px 12px;
  border-radius: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.toast b {
  display: block;
  font-size: 12px;
}
.toast span {
  font-size: 11px;
  color: var(--app-muted);
}
.app[data-step="4"] .toast.reply,
.app[data-step="5"] .toast.reply {
  opacity: 1;
  transform: none;
}
.app[data-step="5"] .toast.reply {
  transform: translateY(-62px);
}
.toast.opp {
  border-color: rgba(200, 238, 90, 0.55);
}
.toast.opp .av {
  background: var(--brand);
  color: var(--brand-ink);
}
.app[data-step="5"] .toast.opp {
  opacity: 1;
  transform: none;
}

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.3s ease;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
}
.cursor svg {
  width: 100%;
  height: 100%;
}

/* Pastilles flottantes autour de la vitre */
.float-chip {
  position: absolute;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--app-bg);
  color: var(--app-text);
  border: 1px solid var(--app-line);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}
.float-chip svg {
  width: 13px;
  height: 13px;
}
.float-chip.a {
  right: -6px;
  top: 52px;
  animation-delay: -1s;
}
.float-chip.b {
  left: -10px;
  bottom: 58px;
  animation-delay: -3s;
}
.float-chip .ic-ai {
  color: var(--ai);
}
.float-chip .ic-ok {
  color: var(--ok);
}

/* ============ Petites scènes par page ============ */
.mock {
  position: relative;
  border-radius: 20px;
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  color: var(--app-text);
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
:root[data-theme="light"] .mock {
  box-shadow: 0 34px 70px -38px rgba(40, 70, 10, 0.4);
}
.mock .mh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 600;
}
.mock .mh small {
  font-weight: 500;
  color: var(--app-muted);
}
.mock .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  margin-bottom: 8px;
}
.mock .row .av {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.mock .row .nm {
  min-width: 0;
  flex: 1;
}
.mock .row .nm b {
  display: block;
  font-size: 13px;
}
.mock .row .nm span {
  color: var(--app-muted);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.mock .row .chip {
  flex: none;
}
.mock .sep {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-muted);
  margin: 12px 0 8px;
}

/* Les éléments d'une scène apparaissent l'un après l'autre quand elle entre à l'écran. */
.mock [data-a] {
  opacity: 0;
  transform: translateY(10px);
}
.mock.in [data-a] {
  animation: pop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.28s + 0.2s);
}
@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}
html:not(.js) .mock [data-a] {
  opacity: 1;
  transform: none;
}

/* Fusion de doublons */
.mock.in .merge-a {
  animation: pop 0.7s forwards, merge-a 1.4s ease-in-out 1.6s forwards;
}
.mock.in .merge-b {
  animation: pop 0.7s forwards, merge-b 1.4s ease-in-out 1.6s forwards;
}
@keyframes merge-a {
  to {
    transform: translateY(0);
  }
}
@keyframes merge-b {
  60% {
    transform: translateY(-46px) scale(0.98);
    opacity: 1;
  }
  100% {
    transform: translateY(-46px) scale(0.9);
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border-width: 0;
  }
}

/* Frise d'une campagne */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 28px;
  height: 2px;
  background: var(--app-line);
}
.timeline::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 28px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), #1c9a66);
}
.mock.in .timeline::after {
  animation: draw 3.2s ease-out 0.5s forwards;
}
@keyframes draw {
  to {
    width: 76%;
  }
}
.tl {
  position: relative;
  text-align: center;
  font-size: 12px;
}
.tl .nd {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  background: var(--app-bg);
  border: 2px solid var(--app-line);
  position: relative;
  z-index: 1;
  color: var(--app-text);
}
.tl .nd svg {
  width: 18px;
  height: 18px;
}
.mock.in .tl .nd {
  animation: lit 0.6s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.8s + 0.5s);
}
@keyframes lit {
  to {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--brand-ink);
  }
}
.tl b {
  display: block;
}
.tl span {
  color: var(--app-muted);
  font-size: 11px;
}

/* Interrupteur semi-auto / auto */
.switch {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  width: max-content;
  margin: 0 auto 16px;
  position: relative;
  font-weight: 600;
  font-size: 13px;
}
.switch span {
  position: relative;
  z-index: 1;
  padding: 7px 18px;
  color: var(--app-muted);
  transition: color 0.4s ease;
}
.switch::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--ink-pill);
  animation: slide 8s ease-in-out infinite;
}
.mock:not(.in) .switch::before {
  animation: none;
}
@keyframes slide {
  0%,
  42% {
    transform: none;
  }
  50%,
  92% {
    transform: translateX(100%);
  }
  100% {
    transform: none;
  }
}
.switch span:first-child {
  animation: c1 8s ease-in-out infinite;
}
.switch span:last-child {
  animation: c2 8s ease-in-out infinite;
}
@keyframes c1 {
  0%,
  42% {
    color: var(--ink-pill-text);
  }
  50%,
  92% {
    color: var(--app-muted);
  }
  100% {
    color: var(--ink-pill-text);
  }
}
@keyframes c2 {
  0%,
  42% {
    color: var(--app-muted);
  }
  50%,
  92% {
    color: var(--ink-pill-text);
  }
  100% {
    color: var(--app-muted);
  }
}
.modebox {
  position: relative;
  min-height: 118px;
}
.modebox > div {
  position: absolute;
  inset: 0;
  padding: 12px;
  border-radius: 14px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  opacity: 0;
}
.modebox > div:first-child {
  animation: m1 8s ease-in-out infinite;
}
.modebox > div:last-child {
  animation: m2 8s ease-in-out infinite;
}
@keyframes m1 {
  0%,
  42% {
    opacity: 1;
  }
  48%,
  94% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes m2 {
  0%,
  42% {
    opacity: 0;
  }
  50%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.modebox p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--app-muted);
}

/* Barres de montée en charge et contrôles de délivrabilité */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 92px;
  padding: 4px 2px 0;
}
.bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--brand), #1c9a66);
  height: 6%;
  opacity: 0.9;
}
.mock.in .bars i {
  animation: grow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.12s + 0.4s);
}
@keyframes grow {
  to {
    height: var(--h);
  }
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--app-line);
}
.check:last-child {
  border: 0;
}
.check svg {
  width: 16px;
  height: 16px;
  color: var(--ok);
  flex: none;
}
.check em {
  font-style: normal;
  margin-left: auto;
  color: var(--app-muted);
  font-size: 11.5px;
}

/* Balayage de vérification */
.scan {
  position: relative;
}
.scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 54px;
  top: 0;
  background: linear-gradient(180deg, transparent, rgba(200, 238, 90, 0.22), transparent);
  opacity: 0;
  pointer-events: none;
}
.mock.in .scan::after {
  animation: scan 4.5s ease-in-out 0.4s infinite;
}
@keyframes scan {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(240px);
    opacity: 0;
  }
}

/* Tableau de ventes */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.kanban .col {
  padding: 8px;
  border-radius: 12px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  min-height: 190px;
}
.kanban h5 {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-muted);
  display: flex;
  justify-content: space-between;
}
.deal {
  padding: 8px 9px;
  border-radius: 10px;
  margin-bottom: 7px;
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  font-size: 12px;
}
.deal b {
  display: block;
}
.deal span {
  color: var(--app-muted);
  font-size: 11px;
}
.mock.in .deal.move {
  animation: pop 0.7s forwards, hop 5s ease-in-out 2.2s infinite;
  border-color: rgba(200, 238, 90, 0.7);
}
@keyframes hop {
  0%,
  10% {
    transform: none;
  }
  35%,
  60% {
    transform: translateX(calc(100% + 8px)) rotate(2deg);
  }
  75%,
  100% {
    transform: none;
  }
}

/* Calendrier de contenu */
.cal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cal .post {
  padding: 9px;
  border-radius: 12px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  font-size: 11.5px;
}
.cal .post small {
  display: block;
  color: var(--app-muted);
  margin-bottom: 4px;
}
.score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: conic-gradient(var(--brand) 0 78%, var(--app-line) 78% 100%);
  position: relative;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--app-bg);
}
.ring span {
  position: relative;
  font-size: 13px;
}

/* Boîte de réception saturée, et un seul message qui sort du lot */
.inbox .mail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  color: var(--app-muted);
  font-size: 12.5px;
}
.inbox .mail i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-line);
  flex: none;
}
.inbox .mail b {
  font-weight: 600;
}
.inbox .mail.pick {
  color: var(--app-text);
  border-color: rgba(200, 238, 90, 0.7);
  background: linear-gradient(90deg, var(--ai-soft), var(--app-panel));
}
.inbox .mail.pick i {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(200, 238, 90, 0.25);
}
.mock.in .inbox .mail.pick,
.inbox.in .mail.pick {
  animation: pop 0.7s forwards, ping 3.2s ease-in-out 1.8s infinite;
}
@keyframes ping {
  50% {
    transform: translateX(6px);
  }
}

/* Étapes simples (trouver des clients) */
.steps3 .s {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  margin-bottom: 10px;
}
.steps3 .s .n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--brand);
  color: var(--brand-ink);
  flex: none;
}
.steps3 .s b {
  display: block;
}
.steps3 .s span {
  color: var(--app-muted);
  font-size: 12.5px;
}

@media (max-width: 40rem) {
  .float-chip.a {
    right: 0;
  }
  .float-chip.b {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mock [data-a] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .bars i {
    height: var(--h) !important;
    animation: none !important;
  }
  .mock .timeline::after {
    width: 76% !important;
    animation: none !important;
  }
  .mock .tl .nd {
    border-color: var(--brand) !important;
    background: var(--brand) !important;
    color: var(--brand-ink) !important;
    animation: none !important;
  }
}

/* Décalage d'apparition entre cartes voisines */
.grid > .reveal:nth-child(2) {
  --d: 0.12s;
}
.grid > .reveal:nth-child(3) {
  --d: 0.24s;
}
.stack > .reveal:nth-child(2) {
  --d: 0.12s;
}
.stack > .reveal:nth-child(3) {
  --d: 0.24s;
}
.stack {
  display: grid;
  gap: 1rem;
}
html.js .reveal.in.card.link {
  transition: transform 0.2s ease, background 0.2s ease;
  transition-delay: 0s;
}
/* Dans les héros à deux colonnes, le titre est un peu plus petit */
.hero-grid h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  max-width: 14ch;
}
.hero.page .hero-grid h1 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  max-width: 20ch;
}
.ibub {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  margin-bottom: 1rem;
  background: var(--brand);
  color: var(--brand-ink);
}
.ibub svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* Héros : texte plus compact, aperçu plus grand */
@media (min-width: 62rem) {
  .hero-grid.wide {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 2.5rem;
  }
}
.hero-grid .lead {
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
}
.hero-grid .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.hero-grid .hero-copy {
  min-width: 0;
}

/* Fin de scène : le message se replie pour laisser la place aux notifications */
.dr .txt {
  max-height: 220px;
  transition: max-height 0.7s ease, min-height 0.7s ease, opacity 0.5s ease;
}
.dr .ft {
  max-height: 40px;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease;
}
.app[data-step="4"] .dr .txt,
.app[data-step="5"] .dr .txt {
  max-height: 60px;
  min-height: 0;
  overflow: hidden;
  opacity: 0.55;
}
.app[data-step="4"] .dr .ft,
.app[data-step="5"] .dr .ft {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}
.toast {
  width: 252px;
}
.toast .av svg {
  width: 17px;
  height: 17px;
}
.toast .av {
  width: 32px;
  height: 32px;
}
.app[data-step="5"] .toast.reply {
  transform: translateY(-64px);
}

.switch span {
  min-width: 6.4rem;
  text-align: center;
}

/* Guides : texte à gauche, illustration et appel à l'inscription collants à droite */
.prose-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 62rem) {
  .prose-grid {
    grid-template-columns: minmax(0, 44rem) minmax(0, 1fr);
    gap: 4rem;
  }
}
.prose-aside {
  display: none;
}
@media (min-width: 62rem) {
  .prose-aside {
    display: block;
    position: sticky;
    top: 6.5rem;
    align-self: start;
    margin-top: 2.6rem;
  }
}
.aside-cta {
  margin-top: 1rem;
  padding: 1.3rem 1.4rem;
}
.aside-cta h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.aside-cta p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

/* La carte qui change de colonne passe devant les autres, et les textes courts ne sont plus tronqués */
.deal.move {
  position: relative;
  z-index: 3;
}
.mock .row .nm span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Menu « Guides » : deux colonnes sur ordinateur */
@media (min-width: 62rem) {
  .dd-panel.wide {
    min-width: 38rem;
    grid-template-columns: 1fr 1fr;
  }
  .dd-panel.wide .dd-item {
    padding: 0.65rem 0.8rem;
  }
}
