/**
 * Composant  : Section
 * Description : Enveloppes de sections, boutons partagés, animation scroll reveal et back-to-top
 * Auteur      : Équipe Marketing
 * URL         : linkavie.com
 * Thème       : Linkavie terra
 * Tags        : section, btn, reveal, btt, layout
 * Version     : 1.0
 */

/* ─────────────────────────────────────────
   lk-section — BLOCK
   ───────────────────────────────────────── */
.lk-section {
  padding: var(--lk-section-padding-y) clamp(20px, 4vw, 48px);
  background: var(--lk-color-bg);
  transition: background var(--lk-transition-normal);
}

/* ─────────────────────────────────────────
   lk-section — ELEMENTS
   ───────────────────────────────────────── */
.lk-section__inner {
  max-width: var(--lk-container-max);
  margin: 0 auto;
}

.lk-section__tag {
  font-size: 11px;
  color: var(--lk-color-terra);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: var(--lk-font-weight-medium);
  margin-bottom: 10px;
}

.lk-section__title {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: var(--lk-font-weight-semibold);
  color: var(--lk-color-text-hi);
  line-height: 1.25;
  margin-bottom: 36px;
  letter-spacing: -0.2px;
}

.lk-section__title em {
  color: var(--lk-color-terra);
  font-style: normal;
}

.lk-section__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ─────────────────────────────────────────
   lk-section — MODIFIERS
   ───────────────────────────────────────── */
/* Variante centrée : l'étiquette et le titre de la section sont centrés */
.lk-section--centre .lk-section__tag,
.lk-section--centre .lk-section__title {
  text-align: center;
}

.lk-section--beige {
  background: var(--lk-color-beige-dark);
}

body.dark .lk-section--beige {
  background: var(--lk-color-dark-section-alt);
}

.lk-section--alt {
  background: var(--lk-color-page);
}

/* ─────────────────────────────────────────
   lk-btn — BLOCK
   ───────────────────────────────────────── */
.lk-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--lk-border-radius-full);
  font-size: 14px;
  font-weight: var(--lk-font-weight-medium);
  text-decoration: none;
  transition: background 0.32s, color 0.32s, border-color 0.32s;
}

/* ─────────────────────────────────────────
   lk-btn — MODIFIERS
   ───────────────────────────────────────── */
.lk-btn--primary {
  background: var(--lk-color-terra);
  color: #fbfbfb;
    border: 1px solid var(--lk-color-terra);

}

.lk-btn--primary:hover {
  background: #fbfbfb;
  color: #373734;
  border: 1px solid var(--lk-color-terra);

}

.lk-btn--outline {
  background: var(--lk-color-cream);
  color: var(--lk-color-marine);
  border: 1px solid var(--lk-color-terra);
}

.lk-btn--outline:hover {
  background: var(--lk-color-terra);
  color: #fbfbfb;
}

/* ─────────────────────────────────────────
   lk-reveal — BLOCK (animation entrée)
   ───────────────────────────────────────── */
.lk-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─────────────────────────────────────────
   lk-reveal — MODIFIERS
   ───────────────────────────────────────── */
.lk-reveal--delay-1 { transition-delay: 0.1s; }
.lk-reveal--delay-2 { transition-delay: 0.2s; }
.lk-reveal--delay-3 { transition-delay: 0.3s; }
.lk-reveal--delay-4 { transition-delay: 0.4s; }

.lk-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   lk-btt — BLOCK (bouton retour en haut)
   ───────────────────────────────────────── */
.lk-btt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--lk-z-btt);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lk-color-terra);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--lk-color-terra-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--lk-transition-normal), transform var(--lk-transition-normal);
}

.lk-btt svg {
  width: 18px;
  height: 18px;
}

/* ─────────────────────────────────────────
   lk-btt — MODIFIERS
   ───────────────────────────────────────── */
.lk-btt--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lk-btt:hover {
  opacity: 0.85;
  transform: translateY(-3px);
}

/* ─────────────────────────────────────────
   RESPONSIVE — mobile-first
   ───────────────────────────────────────── */
@media (min-width: 641px) {
  .lk-btt {
    bottom: 32px;
    right: 32px;
  }
}

/* ─────────────────────────────────────────
   ACCESSIBILITÉ — mouvement réduit
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lk-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .lk-btn,
  .lk-btt,
  .lk-section {
    transition: none;
  }

  .lk-btt:hover {
    transform: none;
  }
}
