/* ============================================================
   GLOBAL ESSOR — CRÉATION DE SOCIÉTÉ — HERO
   Visuel custom : panneau de suivi + chips flottantes (ns .ch-*)
   ============================================================ */

/* =========================================================================
   BB-HERO LAYOUT
   ========================================================================= */
.bb-hero,
.bb-hero__inner,
.bb-hero__left,
.bb-hero__right {
  overflow: visible;
  background: transparent;
}

/* DESKTOP (≥ 821px) — Grid 2 cols × 2 rows */
@media (min-width: 821px) {
  body section.bb-hero .bb-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 0;
    row-gap: 32px;
    align-items: start;
    width: 100%;
  }
  body section.bb-hero .bb-hero__left {
    grid-column: 1;
    grid-row: 1;
    max-width: 600px;
    align-self: start;
    z-index: 2;
    position: relative;
  }
  body section.bb-hero .bb-hero__right {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    padding-left: 140px;
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body section.bb-hero .bb-hero__ctaRow {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
}

/* MOBILE (≤ 820px) */
@media (max-width: 820px) {
  body section.bb-hero .bb-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 0;
  }
  body section.bb-hero .bb-hero__left,
  body section.bb-hero .bb-hero__right,
  body section.bb-hero .bb-hero__ctaRow {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
  body section.bb-hero .bb-hero__left { margin: 0; padding: 0; }
  body section.bb-hero .bb-kicker {
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    margin: 0 0 14px 0;
    padding: 0;
  }
  body section.bb-hero h1.bb-hero__title,
  body section.bb-hero .bb-hero__title {
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 14px 0;
    padding: 0;
    font-weight: 800;
  }
  body section.bb-hero .bb-hero__title br { display: none; }
  body section.bb-hero .bb-hero__subtitle {
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
    padding: 0;
    color: #4a5568;
  }
  body section.bb-hero .bb-hero__right {
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  body section.bb-hero .bb-hero__ctaRow {
    margin: 0;
    padding: 0;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  body section.bb-hero .bb-kicker { font-size: 10.5px; margin-bottom: 12px; }
  body section.bb-hero h1.bb-hero__title,
  body section.bb-hero .bb-hero__title {
    font-size: 26px;
    line-height: 1.06;
    margin-bottom: 12px;
  }
  body section.bb-hero .bb-hero__subtitle {
    font-size: 13.5px;
    line-height: 1.5;
  }
}

/* SCROLL REVEAL (desktop) */
@media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  .bb-hero .bb-kicker,
  .bb-hero__title,
  .bb-hero__subtitle,
  .bb-hero__ctaRow .bb-btn--primary,
  .bb-hero__ctaRow .bb-btn--link,
  .bb-hero__right {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
    transition:
      opacity   0.85s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
      filter    0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
  }
  .bb-hero__title {
    transform: translateY(36px) scale(0.98);
    transform-origin: 0% 50%;
  }
  .bb-hero__ctaRow .bb-btn--primary,
  .bb-hero__ctaRow .bb-btn--link {
    transform: translateY(20px) scale(0.96);
  }
  .bb-hero__right { transform: translateX(32px); }
  .bb-hero.is-revealed .bb-kicker,
  .bb-hero.is-revealed .bb-hero__title,
  .bb-hero.is-revealed .bb-hero__subtitle,
  .bb-hero.is-revealed .bb-hero__ctaRow .bb-btn--primary,
  .bb-hero.is-revealed .bb-hero__ctaRow .bb-btn--link,
  .bb-hero.is-revealed .bb-hero__right {
    opacity: 1; transform: none; filter: blur(0);
  }
  .bb-hero.is-revealed .bb-kicker                        { transition-delay: 0.05s; }
  .bb-hero.is-revealed .bb-hero__title                   { transition-delay: 0.18s; }
  .bb-hero.is-revealed .bb-hero__subtitle                { transition-delay: 0.40s; }
  .bb-hero.is-revealed .bb-hero__right                   { transition-delay: 0.30s; }
  .bb-hero.is-revealed .bb-hero__ctaRow .bb-btn--primary { transition-delay: 0.58s; }
  .bb-hero.is-revealed .bb-hero__ctaRow .bb-btn--link    { transition-delay: 0.70s; }
}


/* =========================================================================
   VISUEL CRÉATION — panneau + chips (namespace .ch-*)
   ========================================================================= */
.ch-scene,
.ch-scene *,
.ch-scene *::before,
.ch-scene *::after { box-sizing: border-box; }

.ch-scene {
  --ch-blue:        var(--color-blue);
  --ch-blue-deep:   #0B1B2B;
  --ch-blue-bright: var(--color-blue-bright);
  --ch-ink-mute:    #5a6b7b;
  --ch-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ch-font);
  isolation: isolate;
}

.ch-halo {
  position: absolute;
  top: 50%; left: 50%;
  width: 90%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(47, 123, 255, 0.30) 0%,
      rgba(var(--color-blue-rgb), 0.15) 30%,
      transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: ch-halo 7s ease-in-out infinite;
}
.ch-halo::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 123, 255, 0.45) 0%, transparent 70%);
  filter: blur(20px);
  animation: ch-halo 5s ease-in-out infinite reverse;
}
@keyframes ch-halo {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

.ch-card__surface,
.ch-mini {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.92) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 30px 60px -20px rgba(var(--color-blue-rgb), 0.20),
    0 12px 24px -8px rgba(11, 27, 43, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(var(--color-blue-rgb), 0.06);
}
.ch-card__surface::before,
.ch-mini::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
}
.ch-card__surface::after,
.ch-mini::after {
  content: "";
  position: absolute;
  top: -50%; left: -100%;
  width: 60%; height: 200%;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%);
  pointer-events: none;
  animation: ch-shimmer 11s ease-in-out infinite;
  z-index: 0;
}
.ch-mini--2::after { animation-delay: 5s; }
.ch-mini--3::after { animation-delay: 8s; }
@keyframes ch-shimmer {
  0%, 80%, 100% { transform: translateX(0); opacity: 0; }
  87%           { opacity: 0.7; }
  93%           { transform: translateX(420%); opacity: 0; }
}

.ch-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
}
.ch-card__surface {
  border-radius: 24px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ch-card__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(var(--color-blue-rgb), 0.08);
}
.ch-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ch-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ch-blue);
  white-space: nowrap;
}
.ch-card__label-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ch-blue);
  box-shadow: 0 0 8px rgba(47, 123, 255, 0.6);
  animation: ch-pulse 2.4s ease-in-out infinite;
}
@keyframes ch-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
.ch-card__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(var(--color-blue-rgb), 0.10);
  border: 1px solid rgba(var(--color-blue-rgb), 0.20);
  color: var(--ch-blue);
  font-family: var(--ch-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ch-card__live-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.ch-steps {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(245, 248, 255, 0.6);
  border: 1px solid rgba(var(--color-blue-rgb), 0.06);
}
.ch-step.is-done {
  background: rgba(245, 248, 255, 0.9);
  border-color: rgba(var(--color-blue-rgb), 0.10);
}
.ch-step.is-active {
  background: linear-gradient(90deg, rgba(47, 123, 255, 0.10), rgba(47, 123, 255, 0.02));
  border-color: rgba(var(--color-blue-rgb), 0.20);
  box-shadow: 0 0 20px -4px rgba(47, 123, 255, 0.18);
}
.ch-step__marker {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: var(--ch-font);
  font-size: 11px;
  font-weight: 800;
  background: rgba(var(--color-blue-rgb), 0.06);
  border: 1px solid rgba(var(--color-blue-rgb), 0.10);
  color: rgba(11, 27, 43, 0.40);
}
.ch-step__marker svg { width: 13px; height: 13px; color: #FFFFFF; }
.ch-step.is-done .ch-step__marker {
  background: linear-gradient(135deg, var(--ch-blue-bright), var(--ch-blue));
  border-color: rgba(var(--color-blue-rgb), 0.4);
  box-shadow: 0 4px 10px rgba(var(--color-blue-rgb), 0.30);
}
.ch-step.is-active .ch-step__marker {
  background: rgba(47, 123, 255, 0.12);
  border-color: rgba(47, 123, 255, 0.5);
}
.ch-step__loader {
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(47, 123, 255, 0.25);
  border-top-color: var(--ch-blue-bright);
  animation: ch-spin 0.9s linear infinite;
}
@keyframes ch-spin { to { transform: rotate(360deg); } }
.ch-step__label {
  flex: 1;
  font-family: var(--ch-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-blue-deep);
  line-height: 1.3;
}
.ch-step:not(.is-done):not(.is-active) .ch-step__label {
  color: rgba(11, 27, 43, 0.50);
}
.ch-step__meta {
  font-family: var(--ch-font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ch-ink-mute);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 27, 43, 0.05);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.ch-step.is-done .ch-step__meta {
  background: rgba(var(--color-blue-rgb), 0.10);
  color: var(--ch-blue);
}
.ch-step__meta--active {
  background: rgba(47, 123, 255, 0.14);
  color: var(--ch-blue);
}
/* Pastille "Signés" — état terminé bien visible */
.ch-step__meta--success {
  background: linear-gradient(135deg, rgba(var(--color-blue-rgb), 0.18), rgba(47, 123, 255, 0.12));
  color: var(--ch-blue);
  border: 1px solid rgba(var(--color-blue-rgb), 0.25);
  font-weight: 800;
}

.ch-progress {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 4px;
}
.ch-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ch-font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ch-ink-mute);
}
.ch-progress__head strong {
  font-family: var(--ch-font);
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ch-blue-bright) 0%, var(--ch-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.ch-progress__bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--color-blue-rgb), 0.08);
  overflow: hidden;
}
.ch-progress__fill {
  position: absolute;
  top: 0; left: 0;
  width: 68%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ch-blue) 0%, var(--ch-blue-bright) 100%);
  box-shadow: 0 0 10px rgba(47, 123, 255, 0.50);
}
.ch-progress__fill::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 28px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: ch-shine 2.5s ease-in-out infinite;
}
@keyframes ch-shine {
  0%, 100% { opacity: 0; transform: translateX(0); }
  50%      { opacity: 1; }
}

.ch-mini {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 11px;
  border-radius: 14px;
  font-family: var(--ch-font);
  white-space: nowrap;
  animation: ch-float 6s ease-in-out infinite;
}
.ch-mini--2 { top: 55%; right: -9%; animation-delay: -2s; }
.ch-mini--3 { bottom: -7%; right: -3%; animation-delay: -4s; }
@keyframes ch-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.ch-mini__icon {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  color: #FFFFFF;
  position: relative;
  z-index: 1;
}
.ch-mini__icon svg { width: 14px; height: 14px; }
.ch-mini__icon--check {
  background: linear-gradient(135deg, var(--ch-blue-bright) 0%, var(--ch-blue) 100%);
  box-shadow: 0 4px 10px rgba(var(--color-blue-rgb), 0.30);
  animation: ch-check-pop 3s ease-in-out infinite;
}
@keyframes ch-check-pop {
  0%, 70%, 100% { transform: scale(1); }
  80%           { transform: scale(1.18); }
}
.ch-mini__icon--pulse {
  background: linear-gradient(135deg, rgba(47, 123, 255, 0.15), rgba(var(--color-blue-rgb), 0.08));
  border: 1px solid rgba(var(--color-blue-rgb), 0.2);
}
.ch-mini__pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ch-blue);
  box-shadow: 0 0 0 0 rgba(var(--color-blue-rgb), 0.6);
  animation: ch-pulse-ring 2s ease-out infinite;
}
@keyframes ch-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(var(--color-blue-rgb), 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(var(--color-blue-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--color-blue-rgb), 0); }
}
.ch-mini__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ch-mini__label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ch-blue);
  line-height: 1;
}
.ch-mini__title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ch-blue-deep);
  line-height: 1.2;
  margin-top: 2px;
}

/* CHIPS DESKTOP */
@media (min-width: 821px) {
  .ch-mini--2 {
    top: 44%;
    right: -9%;
  }
  .ch-mini--3 {
    bottom: 16%;
    right: -9%;
  }
}

/* Mobile : ajustements visuel */
@media (max-width: 820px) {
  .ch-scene { max-width: 100%; min-height: 0; }
  .ch-card { max-width: 100%; }
  .ch-card__surface { padding: 18px 16px 20px; gap: 16px; }
  .ch-step { padding: 9px 11px; gap: 10px; }
  .ch-step__label { font-size: 12.5px; }
  .ch-step__meta { font-size: 9.5px; padding: 2px 7px; }

  /* CHIPS MOBILE : plus petits, accrochés en débordement aux coins */
  .ch-mini {
    padding: 6px 11px 6px 7px;
    gap: 6px;
    border-radius: 11px;
  }
  .ch-mini__icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }
  .ch-mini__icon svg {
    width: 12px;
    height: 12px;
  }
  .ch-mini__pulse {
    width: 7px;
    height: 7px;
  }
  .ch-mini__label {
    font-size: 7.5px;
    letter-spacing: 0.10em;
  }
  .ch-mini__title {
    font-size: 11px;
  }

  .ch-mini--2 {
    top: 45%;
    right: -14px;
    left: auto;
    bottom: auto;
  }
  .ch-mini--3 {
    bottom: 65px;
    right: -4px;
    top: auto;
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ch-scene *, .ch-scene *::before, .ch-scene *::after { animation: none !important; }
}
