/* ══════════════════════════════════════════
   SECTION "Comment ça marche — Commerçants"
   Layout mockup : header · étapes + stage · bandeau
   ══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .steps_commercants-eyebrow,
  .steps_commercants-title,
  .steps_commercants-sub,
  .steps_commercants-cta-top,
  .step_commercants-row,
  .steps_commercants-stage,
  .steps_commercants-banner,
  .sm-phone,
  .sm-chart-line,
  .sm-growth {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .steps_commercants-cta-top::before { animation: none !important; display: none; }
}

.steps_commercants-section {
  position: relative;
  padding: 32px 6vw 28px;
  overflow-x: clip;
  overflow-y: visible;
  text-align: center;
  max-width: 100%;
  /* Haut transparent → pas de coupe nette avec la section clients */
  background:
    radial-gradient(ellipse 55% 45% at 12% 32%, rgba(59, 111, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 78%, rgba(125, 211, 252, 0.16), transparent 72%),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(244, 248, 255, 0.35) 22%,
      rgba(244, 248, 255, 0.72) 48%,
      rgba(240, 246, 255, 0.88) 100%
    );
}

.steps_commercants-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Eyebrow (même format capsule + traits en pointe que clients) ── */
.steps_commercants-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 18px;
  padding: 11px 34px;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid rgba(59, 111, 255, 0.55);
  box-shadow: 0 0 18px rgba(59, 111, 255, 0.18);
  animation: smFadeUp 0.55s ease both;
}

.steps_commercants-eyebrow .eyebrow-line {
  flex: 0 0 42px;
  height: 3px;
  border-radius: 0;
  background: var(--blue);
  opacity: 0.95;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.steps_commercants-eyebrow .eyebrow-line:first-child {
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.steps_commercants-eyebrow .eyebrow-line:last-child {
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.steps_commercants-eyebrow .eyebrow-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}

/* ── Title (même échelle / forme que steps_clients) ── */
.steps_commercants-section .steps_commercants-title {
  font-family: 'Outfit', var(--font-body) !important;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: #1a1208;
  max-width: min(900px, 100%);
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
  display: block;
  white-space: nowrap;
  animation: smTitleIn 0.7s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.steps_commercants-title-accent {
  color: var(--blue);
  font-weight: 700;
  -webkit-text-fill-color: currentColor;
}

.steps_commercants-sub {
  font-family: 'Outfit', var(--font-body);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 400;
  color: #8a7d72;
  margin: 0 auto 26px;
  max-width: 42ch;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  animation: smFadeUp 0.55s 0.12s ease both;
}

/* ── Top CTA (même format pilule que steps_clients) ── */
.steps_commercants-cta-top {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 42px;
  padding: 9px 22px 9px 12px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #5B86FF 0%, var(--blue) 50%, #2A57E0 100%);
  color: #fff;
  font-family: 'Outfit', var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(59, 111, 255, 0.34),
    0 0 0 0 rgba(59, 111, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation:
    smFadeUp 0.55s 0.18s ease both,
    smCtaPulse 2.6s 1s ease-in-out infinite;
}

.steps_commercants-cta-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.38) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: smCtaShine 3.2s 1.2s ease-in-out infinite;
  pointer-events: none;
}

.steps_commercants-cta-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(59, 111, 255, 0.42);
  color: #fff;
}

.steps_commercants-cta-top:hover::before {
  animation-duration: 1.4s;
}

.steps_commercants-cta-top-ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  line-height: 0;
}

.steps_commercants-cta-top-ico img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  background: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.steps_commercants-cta-top > span[data-i18n],
.steps_commercants-cta-arrow {
  position: relative;
  z-index: 1;
}

.steps_commercants-cta-arrow {
  display: grid;
  place-items: center;
  line-height: 0;
  transition: transform 0.2s ease;
}

.steps_commercants-cta-top:hover .steps_commercants-cta-arrow {
  transform: translateX(3px);
}

/* ── Body : list + stage ── */
.steps_commercants-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  text-align: left;
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.steps_commercants-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step_commercants-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(59, 111, 255, 0.1);
  box-shadow: 0 12px 32px rgba(26, 40, 80, 0.06);
  opacity: 0;
  transform: translateY(22px);
  animation: smFadeUp 0.55s calc(0.28s + var(--i) * 0.1s) cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step_commercants-row:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 111, 255, 0.28);
  box-shadow: 0 18px 40px rgba(59, 111, 255, 0.12);
}

.step_commercants-visual {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #eef3ff, #f7faff);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step_commercants-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.step_commercants-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(59, 111, 255, 0.12);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step_commercants-row-title {
  font-family: 'Outfit', var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin: 0 0 6px;
  line-height: 1.25;
}

.step_commercants-row-desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Stage devices ── */
.steps_commercants-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  animation: smFadeUp 0.7s 0.35s ease both;
}

.sm-dash {
  width: min(100%, 460px);
  margin-right: 8%;
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
}

.sm-dash-bezel {
  background: linear-gradient(160deg, #1f2937, #111827);
  border-radius: 16px 16px 8px 8px;
  padding: 12px 12px 10px;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.sm-dash-screen {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  background: #f4f7ff;
  border-radius: 10px;
  min-height: 250px;
  overflow: hidden;
}

.sm-dash-nav {
  background: #e8eefc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.sm-dash-nav-dot {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3B6FFF, #7dd3fc);
  margin-bottom: 4px;
}

.sm-dash-nav span:not(.sm-dash-nav-dot) {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(59, 111, 255, 0.18);
}

.sm-dash-main {
  padding: 12px 12px 14px;
}

.sm-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sm-dash-head strong {
  font-family: 'Outfit', var(--font-body);
  font-size: 0.82rem;
  color: #0f172a;
}

.sm-dash-pill {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(59, 111, 255, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}

.sm-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.sm-stat {
  background: #fff;
  border-radius: 10px;
  padding: 8px 7px;
  border: 1px solid rgba(59, 111, 255, 0.08);
}

.sm-stat em {
  display: block;
  font-style: normal;
  font-family: 'Outfit', var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.sm-stat span {
  display: block;
  margin-top: 2px;
  font-size: 0.58rem;
  line-height: 1.25;
  color: #64748b;
}

.sm-dash-panels {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 8px;
}

.sm-chart,
.sm-top,
.sm-growth {
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(59, 111, 255, 0.08);
}

.sm-chart {
  padding: 8px;
}

.sm-chart-label,
.sm-top-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.sm-chart-svg {
  width: 100%;
  height: 58px;
  display: block;
}

.sm-chart-line {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: smDrawLine 1.6s 0.6s ease forwards;
}

.sm-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sm-top {
  padding: 8px;
  flex: 1;
}

.sm-top-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 6px;
  align-items: center;
  margin-top: 5px;
}

.sm-top-row span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #93c5fd, #3B6FFF);
}

.sm-top-row:nth-child(3) span { background: linear-gradient(135deg, #fda4af, #fb7185); }
.sm-top-row:nth-child(4) span { background: linear-gradient(135deg, #fcd34d, #f59e0b); }

.sm-top-row b {
  font-size: 0.62rem;
  color: #0f172a;
  font-weight: 600;
}

.sm-top-row i {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--blue);
}

.sm-growth {
  padding: 10px 8px;
  background: linear-gradient(145deg, #3B6FFF, #2554e8);
  border: none;
  color: #fff;
  text-align: left;
  animation: smPulseSoft 3.2s ease-in-out infinite;
}

.sm-growth strong {
  display: block;
  font-family: 'Outfit', var(--font-body);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.sm-growth span {
  display: block;
  margin-top: 2px;
  font-size: 0.58rem;
  opacity: 0.92;
  line-height: 1.3;
}

.sm-dash-base {
  height: 10px;
  margin: 0 auto;
  width: 68%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.sm-phone {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: clamp(126px, 28%, 168px);
  filter: drop-shadow(0 22px 34px rgba(15, 23, 42, 0.28));
  animation: smPhoneFloat 4.2s ease-in-out infinite;
  z-index: 2;
}

.sm-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

/* ── Bottom banner (même structure, taille réduite) ── */
.steps_commercants-banner {
  margin: 28px auto 0;
  max-width: 860px;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(59, 111, 255, 0.12), rgba(125, 211, 252, 0.18));
  border: 1px solid rgba(59, 111, 255, 0.14);
  position: relative;
  z-index: 1;
  animation: smFadeUp 0.6s 0.45s ease both;
}

.steps_commercants-banner-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 14px rgba(59, 111, 255, 0.14);
  flex-shrink: 0;
}

.steps_commercants-banner-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.steps_commercants-banner-copy strong {
  display: block;
  font-family: 'Outfit', var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 0;
  line-height: 1.25;
}

.steps_commercants-banner-copy p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-muted);
  max-width: 36ch;
}

.steps_commercants-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.steps_commercants-cta-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(59, 111, 255, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.steps_commercants-cta-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(59, 111, 255, 0.3);
  color: #fff;
}

.steps_commercants-banner-note {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4b5568;
  line-height: 1.2;
  text-align: center;
}

/* ── Keyframes ── */
@keyframes smFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes smTitleIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes smPhoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes smDrawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes smPulseSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

@keyframes smCtaShine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

@keyframes smCtaPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(59, 111, 255, 0.34), 0 0 0 0 rgba(59, 111, 255, 0.28); }
  50% { box-shadow: 0 12px 28px rgba(59, 111, 255, 0.4), 0 0 0 8px rgba(59, 111, 255, 0); }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .steps_commercants-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps_commercants-stage {
    min-height: 360px;
    order: -1;
  }

  .sm-dash {
    margin-right: 0;
    transform: none;
  }

  .sm-phone {
    right: 6%;
    width: clamp(120px, 26vw, 150px);
  }

  .steps_commercants-banner {
    grid-template-columns: auto 1fr;
    max-width: 640px;
  }

  .steps_commercants-banner-actions {
    grid-column: 1 / -1;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .steps_commercants-section {
    padding: 24px 5vw 20px;
  }

  .steps_commercants-eyebrow {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    gap: 6px;
    padding: 8px 12px;
    margin-left: auto;
    margin-right: auto;
  }

  .steps_commercants-eyebrow .eyebrow-line {
    flex: 0 1 12px;
    min-width: 8px;
  }

  .steps_commercants-eyebrow .eyebrow-text {
    font-size: clamp(0.56rem, 2.8vw, 0.7rem);
    letter-spacing: 0.6px;
    white-space: nowrap;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .steps_commercants-eyebrow .eyebrow-line {
    display: none;
  }
}

@media (max-width: 680px) {
  .steps_commercants-section .steps_commercants-title {
    max-width: 100%;
    white-space: normal;
    font-size: clamp(1.25rem, 6.2vw, 1.65rem) !important;
    padding: 0 2px;
  }

  .steps_commercants-sub {
    max-width: 100%;
    padding: 0 4px;
  }

  .steps_commercants-cta-top {
    max-width: 100%;
    white-space: normal;
    justify-content: center;
  }

  .step_commercants-row {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .step_commercants-visual {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .step_commercants-row-title {
    font-size: 1rem;
  }

  .step_commercants-row-desc {
    font-size: 0.82rem;
  }

  .steps_commercants-stage {
    min-height: 280px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .sm-dash {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .sm-dash-stats {
    grid-template-columns: 1fr 1fr;
  }

  .sm-stat:last-child {
    grid-column: 1 / -1;
  }

  .sm-dash-panels {
    grid-template-columns: 1fr;
  }

  .sm-phone {
    width: 96px;
    right: 4px;
    bottom: 0;
  }

  .steps_commercants-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 10px 12px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .steps_commercants-banner-ico {
    margin: 0 auto;
  }

  .steps_commercants-banner-copy p {
    max-width: none;
    white-space: normal;
  }

  .steps_commercants-banner-actions {
    align-items: center;
    width: 100%;
  }

  .steps_commercants-cta-banner {
    white-space: normal;
    text-align: center;
    justify-content: center;
    max-width: 100%;
  }
}
