/* ═══════════════ « Comment ça marche, en 1 minute » : pastille flottante + encart ═══════════════
   Copie identique dans leonio-adventure/assets et leonio-assistant/assets (une branche contient tout).
   Pastille en bas à GAUCHE (la droite est prise par la bulle WhatsApp et le bouton d'essai).
   Sur téléphone la pastille se réduit à l'icône. L'encart porte sa croix de sortie (règle UX). */
.c1m-btn {
  position: fixed; z-index: 42;
  left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border-radius: var(--r-pill, 999px);
  background: var(--bg-card, #fff); color: var(--text-1, #0A1929);
  border: 1px solid var(--line-strong, rgba(10, 25, 41, 0.18));
  font: inherit; font-weight: 700; font-size: 0.9rem; line-height: 1; cursor: pointer;
  box-shadow: 0 10px 26px rgba(10, 25, 41, 0.18), 0 2px 6px rgba(10, 25, 41, 0.10);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.c1m-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 25, 41, 0.22); }
.c1m-btn i { font-size: 1.25rem; color: var(--coral, #FF4D2E); }
.c1m-btn small { font: inherit; font-weight: 600; opacity: 0.62; }

.c1m-panel {
  position: fixed; z-index: 43;
  left: 20px; bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 40px)); max-height: calc(100vh - 110px); overflow-y: auto;
  padding: 24px 22px 20px; border-radius: var(--r-lg, 24px);
  background: var(--bg-card, #fff); color: var(--text-1, #0A1929);
  border: 1px solid var(--line-strong, rgba(10, 25, 41, 0.18));
  box-shadow: 0 24px 60px rgba(10, 25, 41, 0.28);
  opacity: 0; transform: translateY(14px) scale(0.98); transform-origin: bottom left;
  pointer-events: none; visibility: hidden;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 220ms;
}
.c1m-panel.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.c1m-eyebrow { display: block; margin: 0 0 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-soft, #FFB9A6); }
.c1m-panel h2 { margin: 0 34px 16px 0; font-size: 1.28rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.c1m-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.c1m-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.c1m-num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--coral, #FF4D2E) 28%, var(--bg-card, #fff));
  color: var(--coral-soft, #FFB9A6); font-weight: 800; font-size: 0.95rem;
}
.c1m-steps b { display: block; font-size: 0.98rem; line-height: 1.3; }
.c1m-steps li > div > span { display: block; margin-top: 2px; font-size: 0.88rem; line-height: 1.45; color: var(--text-2, #4A5867); }
.c1m-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px;
  padding: 13px 18px; border-radius: var(--r-pill, 999px);
  background: var(--coral, #FF4D2E); color: #fff; font-weight: 800; font-size: 0.95rem; text-decoration: none;
  box-shadow: 0 10px 24px var(--coral-glow, rgba(255, 77, 46, 0.34));
}
.c1m-cta:hover { background: var(--coral-deep, #D63919); color: #fff; }
.c1m-fine { margin: 10px 0 0; text-align: center; font-size: 0.8rem; color: var(--text-3, #7B8794); }

/* Croix de sortie : même pattern que .modal-close-x (règle UX globale), posée dans l'encart */
.c1m-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font-family: inherit;
  background: color-mix(in srgb, var(--text-1, #0A1929) 6%, transparent);
  border: 1px solid var(--line-strong, rgba(10, 25, 41, 0.18)); color: var(--text-2, #4A5867);
  font-size: 1.4rem; line-height: 1; transition: 120ms ease;
}
.c1m-close:hover { background: color-mix(in srgb, var(--text-1, #0A1929) 12%, transparent); color: var(--text-1, #0A1929); }

@media (max-width: 640px) {
  .c1m-btn { left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; padding: 0; justify-content: center; }
  .c1m-btn span, .c1m-btn small { display: none; }
  .c1m-btn i { font-size: 1.5rem; }
  .c1m-panel { left: 14px; width: calc(100vw - 28px); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 22px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .c1m-btn, .c1m-panel { transition: opacity 150ms ease; transform: none; }
}
