.offers-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  justify-content: center;
  justify-items: center;
  position: relative;
  padding-left: 120px; /* réduit le padding */
  gap: 1.5rem; /* réduit l'espacement */
}

.offer-card {
  border-radius: 60px; /* réduit le border-radius */
  padding: 2.8rem 2rem; /* padding légèrement augmenté */
  min-height: 240px; /* hauteur minimale légèrement augmentée */
  min-width: 420px; /* largeur minimale légèrement augmentée */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: -120px; /* réduit le décalage */
  z-index: 1;
  transition: all 0.3s;
  font-size: 1rem; /* taille du texte légèrement augmentée */
  box-shadow: 0 0 10px 0 var(--color-white);
  border: 2px solid transparent;
}

.offer-card:hover {
  transform: translateX(-20px);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 40px 0 var(--color-white);
  scale: 1.01;
}

.offer-card:nth-child(3n+1) {
  background: var(--color-bg-purple);
  background-image: url('/assets/images/background-vectors/vector-purple.svg');
  z-index: 1;
}
.offer-card:nth-child(3n+1) p,
.offer-card:nth-child(3n+1) img {
  margin-right: 5rem; /* réduit le décalage du contenu */
}
.offer-card:nth-child(3n+2) {
  background: #7C6DEB;
  background-image: url('/assets/images/background-vectors/vector-pink.svg');
  z-index: 2;
}
.offer-card:nth-child(3n+2) p,
.offer-card:nth-child(3n+2) img {
  margin-right: 5rem; /* réduit le décalage du contenu */
}
.offer-card:nth-child(3n+3) {
  background: var(--color-bg-black);
  background-image: url('/assets/images/background-vectors/vector-black.svg');
  z-index: 3;
}

.offer-spot {
  width: 30px; /* réduit la taille du spot */
  height: auto;
  margin-bottom: 2rem;
}

/* Responsive : sur mobile, on garde la colonne unique mais on décale les cartes verticalement pour créer un overlap de haut en bas */
@media (max-width: 1200px) {
  .offers-cards {
    grid-template-columns: 1fr;
    padding-left: 0;
    gap: 2rem;
    position: relative;
  }
  .offer-card {
    min-width: 0;
    width: 100%;
    margin-left: 0;
    border-radius: 40px;
    padding: 2.5rem 1.5rem;
    max-width: 400px;
    /* On retire le décalage horizontal */
    transition: all 0.3s;
    position: relative;
    margin-top: 0;
  }
  .offer-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 0 10px 0 var(--color-bg-purple);
    scale: 1.01;
  }
  /* On applique un décalage vertical négatif pour créer l'overlap de haut en bas */
  .offer-card:nth-child(3n+2) {
    margin-top: -120px;
    z-index: 2;
  }
  .offer-card:nth-child(3n+3) {
    margin-top: -120px;
    z-index: 3;
  }
  .offer-card:nth-child(3n+1) {
    margin-top: 0;
    z-index: 1;
  }
  /* On retire le décalage horizontal sur les contenus */
  .offer-card:nth-child(3n+1) p,
  .offer-card:nth-child(3n+1) img,
  .offer-card:nth-child(3n+2) p,
  .offer-card:nth-child(3n+2) img {
    margin-right: 0;
  }

  /* On réduit le padding-top pour remonter le texte et l'image du premier et deuxième card */
  .offer-card:nth-child(3n+1),
  .offer-card:nth-child(3n+2) {
    padding-top: 0rem;
    padding-bottom: 5rem;
  }

  .offer-spot {
    margin-bottom: 1.5rem;
  }
}

/* Encore plus petit : on réduit les paddings et radius */
@media (max-width: 700px) {
  .offer-card {
    border-radius: 20px;
    padding: 1.5rem 0.5rem;
    min-height: 200px;
  }
}

.vector-green {
  background-image: url('/assets/images/background-vectors/vector-green-full.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}


.pairs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  justify-items: center;
  align-items: center;
}

.pair { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }

.pair img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.pair:hover img {
  transform: scale(1.15) rotate(5deg);
}

.pair-text { text-align: center; max-width: 300px; }

.why-list {
  text-align: left;
  margin: 1rem auto 2rem;
  list-style: none;
}
.why-list li { margin-bottom: .5rem; }

.why-item { display: flex; align-items: center; gap: .75rem; }
.why-item-icon { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }


.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.step-title {
  text-align: center;
  margin-bottom: 1rem;
}

.step { text-align: left; }

.deliverables { text-align: left; margin: 0 auto; }
.deliverables ul li { margin-top: .75rem; }


.ready { margin-top: 2rem; }

/* Sur-mesure (purple) */
.why-list.text-white li { color: var(--color-white); }
.why-chip {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-code-purple);
  padding: .5rem 1rem;
  border-radius: 10px;
  margin: 1.5rem auto 1rem;
}

@media (max-width: 900px) {
  .offers-cards { grid-template-columns: 1fr; }
  .pairs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

.section2-known {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 2rem 0;
  width: 100%;

  p {
    font-weight: bold;
  }
}

.wave-spot {
  width: 120px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  animation-delay: 0.5s;
}

.wave-spot-large {
  margin-top: 1rem;
  width: 200px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
}

.offer-question-title {
  text-align: left;
  margin-bottom: 1rem;
  border: 2px solid var(--color-code-purple);
  border-radius: 1.5rem 1.5rem 0 1.5rem;
  padding: 0.8rem 1rem;
  color: var(--color-code-purple);
  background: var(--color-white);
  display: inline-block;
  box-sizing: border-box;
  font-size: clamp(1.125rem, 0.9vw + 0.6rem, 1.5rem) !important;
}

.offer-title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Boutons définis dans index.css */

/* ===== ESPACEMENT ET CONTENUS HARMONISÉS ===== */
.offer-content-text {
  text-align: left;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.offer-content-emphasis p strong em {
  font-size: 1.5rem !important;
}

.offer-content-text h1,
.offer-content-text h2,
.offer-content-text h3 {
  margin: 2rem 0 1rem 0;
}

.offer-content-text h1:first-child,
.offer-content-text h2:first-child,
.offer-content-text h3:first-child {
  margin-top: 0;
}

.offer-section-spacing {
  margin: 3rem 0;
}

.offer-intro-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.offer-intro-flash {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

/* AI timeline */
.timeline {
  position: relative;
  max-width: 70rem;
  margin: 0 0 2rem 0;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* centre à gauche */
  justify-content: flex-start;
}

.timeline-arrow {
  position: absolute;
  left: 4px;
  top: -6px;
  width: 24px;
  /* La hauteur de la flèche s'adapte dynamiquement à la hauteur de la timeline */
  height: 100%;
  pointer-events: none;
  margin-left: -0.07rem; /* décale légèrement la barre vers la gauche */
}

.timeline-list {
  margin: 0;
  padding: 0 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  min-width: 0;
  align-items: flex-start; /* centre à gauche */
  justify-content: flex-start;
}
.timeline-item {
  position: relative;
  max-width: 90%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  margin-left: 1.5rem; /* décale légèrement la barre vers la gauche */
  transform: scale(1.05);
}

.timeline-connector {
  position: absolute;
  left: -2.2rem; /* positionne le cercle au centre de la flèche (24px) */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.connector-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-white);
  border-color: var(--color-code-purple);
  display: inline-block;
  flex-shrink: 0;
  z-index: 1;
}
.connector-line {
  width: 1.5rem;
  height: 3px;
  background: var(--color-white);
  opacity: .9;
  display: inline-block;
  flex-shrink: 0;
  margin-left: -0.5rem; /* décale légèrement la barre vers la gauche */
  z-index: 0;
}
.timeline-bubble {
  border: 3px solid var(--color-white);
  background: var(--color-white);
  border-color: var(--color-code-purple);
  text-align: left;
  padding: 0.5rem 1.5rem; /* padding haut/bas réduit */
  border-radius: 2rem;
  text-align: left; /* alignement du texte à gauche */
  width: fit-content;
  min-width: 0;
  display: inline-block;
  z-index: 1;
  h3 {
    font-size: clamp(1rem, 0.5vw + 0.85rem, 1.125rem) !important;
  }
}

@media (max-width: 700px) {
  .timeline-list { gap: 1rem; }
  .timeline-bubble { font-size: .95rem; }
}

.adapt-text {
  text-align: center;
  color: var(--color-accent);
  max-width:52rem; margin:1rem auto 0;
}

/* Deliverables Box - Mise en avant */
.deliverables-box {
  background: linear-gradient(135deg, var(--color-code-purple) 0%, var(--color-code-green) 100%);
  border-radius: 24px;
  padding: 3rem 3.5rem;
  margin: 3rem 0;
  box-shadow: 0 10px 40px rgba(124, 109, 235, 0.3);
  border: 3px solid var(--color-white);
  position: relative;
  overflow: hidden;
}

.deliverables-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.deliverables-box-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
}

.deliverables-box-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: left;
}

.deliverables-box-intro strong {
  color: var(--color-white);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.deliverables-box-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.deliverables-box-title::before {
  content: '✨';
  font-size: 1.5rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.deliverables-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.deliverables-box ul li {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.deliverables-box ul li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-white);
  color: var(--color-code-purple);
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.deliverables-box ul li:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--color-white);
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
  .deliverables-box {
    padding: 2.5rem 2rem;
  }

  .deliverables-box-title {
    font-size: 1.5rem;
  }

  .deliverables-box-intro {
    font-size: 1.05rem;
  }

  .deliverables-box ul li {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 700px) {
  .deliverables-box {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .deliverables-box-title {
    font-size: 1.3rem;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .deliverables-box ul li {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
}
