/* ============================================
   Module: Outils / Partenaires
   BEM: .ls-tools
   Layout: Feature-highlight style (rows alternées)
   ============================================ */

/* --- Section --- */
.ls-tools .container {
  padding-block: var(--ls-spacing-3xl);
  padding-inline: var(--ls-spacing-xl);
}

/* --- Header --- */
.ls-tools__header {
  text-align: center;
  margin-bottom: clamp(var(--ls-spacing-2xl), 5vw, var(--ls-spacing-3xl));
}

.ls-tools__header h2 {
  font-family: var(--ls-font-title);
  font-size: clamp(var(--ls-typo-h2-mobile-size), 4vw, var(--ls-typo-h2-size));
  line-height: clamp(var(--ls-typo-h2-mobile-lh), 5vw, var(--ls-typo-h2-lh));
  font-weight: var(--ls-fw-semibold);
  color: var(--ls-secondary-dark);
}

.ls-tools__highlight {
  color: var(--ls-primary-main);
}

.ls-tools__header p {
  font-family: var(--ls-font-text);
  font-size: var(--ls-typo-t4-size);
  line-height: var(--ls-typo-t4-lh);
  color: var(--ls-neutral-main);
  margin-top: var(--ls-spacing-m);
}

/* --- Row (2-column, alternating) --- */
.ls-tools__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--ls-spacing-xl), 5vw, 60px);
  align-items: center;
  margin-bottom: clamp(var(--ls-spacing-2xl), 6vw, 80px);
}

.ls-tools__row:last-child {
  margin-bottom: 0;
}

.ls-tools__row--reverse .ls-tools__visual {
  order: -1;
}

/* --- Content side --- */
.ls-tools__content {
  display: flex;
  flex-direction: column;
  gap: var(--ls-spacing-m);
}

/* --- Tag (violet) --- */
.ls-tools__tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--ls-font-text);
  font-size: var(--ls-typo-t8-size);
  font-weight: var(--ls-fw-semibold);
  padding: 5px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f3eeff;
  color: #6b4fc7;
}

/* --- Name --- */
.ls-tools__name {
  font-family: var(--ls-font-title);
  font-size: clamp(var(--ls-typo-h3-mobile-size), 3vw, var(--ls-typo-h3-size));
  line-height: clamp(var(--ls-typo-h3-mobile-lh), 3.5vw, var(--ls-typo-h3-lh));
  font-weight: var(--ls-fw-semibold);
  color: var(--ls-secondary-dark);
}

/* --- Description --- */
.ls-tools__desc {
  font-family: var(--ls-font-text);
  font-size: var(--ls-typo-t4-size);
  line-height: var(--ls-typo-t4-lh);
  color: var(--ls-neutral-main);
}

/* --- Checklist --- */
.ls-tools__checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--ls-spacing-s);
  padding: 0;
  margin: 0;
}

.ls-tools__checklist li {
  display: flex;
  align-items: center;
  gap: var(--ls-spacing-s);
  font-family: var(--ls-font-text);
  font-size: var(--ls-typo-t6-size);
  font-weight: var(--ls-fw-medium);
  color: var(--ls-secondary-dark);
}

.ls-tools__check {
  width: 24px;
  height: 24px;
  background: #f3eeff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ls-tools__check svg {
  width: 14px;
  height: 14px;
  color: #6b4fc7;
}

/* --- Visual side --- */
.ls-tools__visual {
  background: linear-gradient(135deg, var(--ls-primary-lighter) 0%, #f5f0ff 100%);
  border-radius: var(--ls-radius-l, 24px);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--ls-spacing-l);
}

.ls-tools__visual::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: rgba(83, 96, 213, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.ls-tools__img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  border-radius: var(--ls-radius-s);
}

.ls-tools__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .ls-tools__row {
    grid-template-columns: 1fr;
    gap: var(--ls-spacing-l);
  }

  .ls-tools__row--reverse .ls-tools__visual {
    order: 0;
  }

  .ls-tools__visual {
    aspect-ratio: 16 / 9;
  }
}

/* --- Scroll animations --- */
.ls-tools__row {
  opacity: 0;
  animation: ls-tools-fade-in linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

@keyframes ls-tools-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports not (animation-timeline: view()) {
  .ls-tools__row {
    opacity: 1;
  }
}
