/* ═══════════════════════════════════════════════════════════════
   B07 — COMMENT ÇA MARCHE
   Layout : 4 cards horizontales desktop + timeline verticale mobile
   ═══════════════════════════════════════════════════════════════ */

.b07-how{
  position: relative;
  background: #FFFFFF;
  padding: 96px 0;
  font-family: 'IBM Plex Sans', sans-serif;
  overflow: hidden;
}

/* Décoratif : cercles orange légers en arrière-plan */
.b07-how::before,
.b07-how::after{
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.06);
  pointer-events: none;
  z-index: 0;
}
.b07-how::before{
  width: 320px; height: 320px;
  top: -120px; right: -120px;
}
.b07-how::after{
  width: 240px; height: 240px;
  bottom: -100px; left: -80px;
}

.b07-container{
  max-width: none; margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* ─── Header ─── */
.b07-header{
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.b07-title{
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--b02-navy, #1E2D3F);
  margin: 0 0 18px;
}

.b07-subtitle{
  font-size: 1.04rem;
  line-height: 1.65;
  color: rgba(30, 45, 63, 0.66);
  margin: 0;
}

/* ─── Wrapper des étapes ─── */
.b07-steps-wrapper{
  position: relative;
  margin-bottom: 56px;
}

/* Ligne de connexion entre les étapes (desktop) */
.b07-connector{
  position: absolute;
  top: 80px;
  left: 12%;
  right: 12%;
  height: 8px;
  z-index: 0;
  pointer-events: none;
}

.b07-connector svg{
  width: 100%;
  height: 100%;
  overflow: visible;
}

.b07-connector-line{
  stroke-dashoffset: 1200;
  stroke-dasharray: 1200;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.b07-steps-wrapper.is-animated .b07-connector-line{
  stroke-dashoffset: 0;
  stroke-dasharray: 6 8;
}

/* ─── Liste des étapes ─── */
.b07-steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.b07-step{
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.b07-step.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ─── Card individuelle ─── */
.b07-step-card{
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px 28px;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 18px rgba(30, 45, 63, 0.06);
  border: 1px solid rgba(30, 45, 63, 0.04);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  cursor: default;
}

.b07-step-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(30, 45, 63, 0.12);
  border-color: rgba(245, 166, 35, 0.3);
}

/* Numéro de l'étape (en haut à droite) */
.b07-step-num{
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--b02-orange, #F5A623);
  opacity: 0.18;
  letter-spacing: -0.04em;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.b07-step-card:hover .b07-step-num{
  opacity: 0.85;
  transform: scale(1.05);
}

/* Icône (SVG inline Recraft) */
.b07-step-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  margin: 4px auto 22px;
  background: rgba(245, 166, 35, 0.08);
  border-radius: 26px;
  transition: background 0.35s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.b07-step-card:hover .b07-step-icon{
  background: rgba(245, 166, 35, 0.16);
  transform: rotate(-3deg) scale(1.04);
}

.b07-step-icon svg{
  width: 78px;
  height: 78px;
  display: block;
}

/* Titre de l'étape */
.b07-step-title{
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--b02-navy, #1E2D3F);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* Description */
.b07-step-desc{
  font-size: 0.93rem;
  line-height: 1.6;
  color: rgba(30, 45, 63, 0.66);
  margin: 0;
}

/* ─── CTA en bas ─── */
.b07-cta-wrapper{
  text-align: center;
}

.b07-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 17px 34px;
  border-radius: 50px;
  text-decoration: none;
  background: var(--b02-orange, #F5A623);
  color: #fff;
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.4);
  transition: transform 0.22s, box-shadow 0.22s;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
}

.b07-cta:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(245, 166, 35, 0.55);
}

.b07-cta-arrow{
  transition: transform 0.22s ease;
}

.b07-cta:hover .b07-cta-arrow{
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablette : 2 cards x 2 lignes */
@media (max-width: 980px){
  .b07-steps{
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .b07-connector{
    display: none;
  }
}

/* Mobile : timeline verticale (1 colonne) */
@media (max-width: 600px){
  .b07-how{
    padding: 64px 0 72px;
  }
  .b07-container{
    padding: 0 20px;
  }
  .b07-header{
    margin-bottom: 40px;
  }
  .b07-steps{
    grid-template-columns: 1fr;
    gap: 18px;
    position: relative;
  }

  /* Ligne verticale qui relie les étapes (mobile) */
  .b07-steps::before{
    content: '';
    position: absolute;
    top: 60px;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: repeating-linear-gradient(
      to bottom,
      var(--b02-orange, #F5A623) 0,
      var(--b02-orange, #F5A623) 6px,
      transparent 6px,
      transparent 14px
    );
    opacity: 0.4;
    z-index: 0;
  }

  .b07-step-card{
    padding: 26px 22px 24px;
    border-radius: 18px;
  }
  .b07-step-icon{
    width: 88px;
    height: 88px;
    margin: 4px auto 18px;
    border-radius: 22px;
  }
  .b07-step-icon svg{
    width: 60px;
    height: 60px;
  }
  .b07-step-num{
    top: 14px;
    right: 18px;
    font-size: 2rem;
  }
  .b07-step-title{
    font-size: 1.08rem;
  }
  .b07-step-desc{
    font-size: 0.9rem;
  }

  .b07-cta{
    padding: 15px 28px;
    font-size: 0.94rem;
    width: 100%;
    justify-content: center;
  }
}
