@import url("./mage-brand.css");

:root {
  --lp-green: #366c5d;
  --lp-green-dark: #2d584b;
  --lp-mint: #bfe9dd;
  --lp-mint-page: #c5e8dc;
  --lp-mint-deep: #6aab98;
  --lp-ink: #1a1a1a;
  --lp-white: #ffffff;
  --lp-radius: 22px;
  --lp-pill: 999px;
  --lp-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lp-max: 420px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.link-page {
  margin: 0;
  font-family: var(--lp-font);
  color: var(--lp-ink);
  background: var(--lp-mint-page);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.link-page a {
  color: inherit;
  text-decoration: none;
}

.link-page__wrap {
  width: min(var(--lp-max), 100% - 28px);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.link-page__brand {
  display: block;
  text-align: center;
  margin-bottom: 22px;
}

.link-page__brand .mage-brand-wordmark {
  font-size: 2.35rem;
  color: var(--lp-white);
  letter-spacing: 0.14em;
  text-shadow: 0 1px 12px rgba(45, 88, 75, 0.25);
}

.link-page__title {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(1.05rem, 4.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-white);
  line-height: 1.35;
}

.link-page__stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* —— Cartes services —— */
.lp-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 92px;
  padding: 18px;
  border-radius: var(--lp-radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.12);
}

.lp-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.lp-card__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lp-card--sap .lp-card__overlay {
  background: linear-gradient(105deg, rgba(54, 108, 93, 0.88) 0%, rgba(74, 140, 122, 0.78) 55%, rgba(90, 155, 135, 0.72) 100%);
}

/* Carousel particuliers — fonds + titres synchronisés */
.lp-card--sap-carousel {
  min-height: 100px;
}

.lp-carousel__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lp-carousel__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  opacity: 0;
  animation: lp-carousel-bg 16s ease-in-out infinite;
}

.lp-carousel__slide:nth-child(1) {
  animation-delay: 0s;
}

.lp-carousel__slide:nth-child(2) {
  animation-delay: -4s;
}

.lp-carousel__slide:nth-child(3) {
  animation-delay: -8s;
}

.lp-carousel__slide:nth-child(4) {
  animation-delay: -12s;
}

@keyframes lp-carousel-bg {
  0%,
  4% {
    opacity: 0;
  }
  8%,
  22% {
    opacity: 1;
  }
  26%,
  100% {
    opacity: 0;
  }
}

.lp-carousel__body {
  flex: 1;
  min-width: 0;
}

.lp-carousel__viewport {
  display: block;
  height: 3.35rem;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.lp-carousel__track {
  display: flex;
  flex-direction: column;
  animation: lp-carousel-titles 16s ease-in-out infinite;
  will-change: transform;
}

.lp-carousel__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  height: 3.35rem;
  gap: 2px;
}

@keyframes lp-carousel-titles {
  0%,
  20% {
    transform: translateY(0);
  }
  25%,
  45% {
    transform: translateY(-25%);
  }
  50%,
  70% {
    transform: translateY(-50%);
  }
  75%,
  95% {
    transform: translateY(-75%);
  }
  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-carousel__slide,
  .lp-carousel__track {
    animation: none;
  }

  .lp-carousel__slide:first-child {
    opacity: 1;
  }

  .lp-carousel__slide:not(:first-child) {
    opacity: 0;
  }

  .lp-carousel__track {
    transform: none;
  }
}

.lp-card--pro-warm .lp-card__overlay {
  background: linear-gradient(105deg, rgba(255, 168, 76, 0.92) 0%, rgba(255, 120, 140, 0.88) 100%);
}

.lp-card--pro-cool .lp-card__overlay {
  background: linear-gradient(105deg, rgba(120, 190, 110, 0.9) 0%, rgba(100, 150, 220, 0.88) 100%);
}

.lp-card__body {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.lp-card__label {
  margin: 0;
  font-size: clamp(1.15rem, 5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-white);
  line-height: 1.15;
}

.lp-card__label--sm {
  font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 700;
}

.lp-card__emoji {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
  line-height: 1;
}

.lp-card__cta {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 18px;
  border-radius: var(--lp-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lp-white);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.lp-card__cta:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

/* —— Application mobile —— */
.lp-app {
  margin-top: 14px;
  padding: 24px 20px 22px;
  border-radius: var(--lp-radius);
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72) 0%, rgba(232, 244, 239, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 32px rgba(54, 108, 93, 0.16);
}

.lp-app__icon {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  color: var(--lp-green);
}

.lp-app__kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-green);
}

.lp-app__title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 5.2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--lp-green-dark);
}

.lp-app__lead {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #2f3f3a;
}

.lp-app__badges {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.lp-app-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: #fff;
  color: var(--lp-green-dark);
  text-decoration: none;
  border: 1.5px solid rgba(54, 108, 93, 0.2);
  box-shadow: 0 4px 14px rgba(54, 108, 93, 0.1);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.lp-app-badge:hover {
  transform: translateY(-2px);
  background: #f8fcfa;
  border-color: rgba(54, 108, 93, 0.35);
  box-shadow: 0 8px 20px rgba(54, 108, 93, 0.14);
}

.lp-app-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.lp-app-badge__icon--apple {
  background: rgba(54, 108, 93, 0.1);
  color: var(--lp-ink);
}

.lp-app-badge__icon--play {
  background: linear-gradient(135deg, #34a853 0%, #4285f4 45%, #fbbc04 75%, #ea4335 100%);
  color: #fff;
}

.lp-app-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: left;
}

.lp-app-badge__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4a5f57;
}

.lp-app-badge__store {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--lp-ink);
}

/* —— Rejoindre —— */
.lp-join {
  margin-top: 6px;
  padding: 26px 20px 0;
  border-radius: var(--lp-radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 32px rgba(54, 108, 93, 0.14);
  overflow: hidden;
}

.lp-join__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  color: var(--lp-ink);
}

.lp-join__kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lp-join__title {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.lp-join__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--lp-pill);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid var(--lp-ink);
  transition: background 0.2s ease;
}

.lp-join__cta:hover {
  background: var(--lp-white);
}

.lp-join__photo {
  display: block;
  width: calc(100% + 40px);
  max-width: none;
  margin: 20px -20px -4px;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

/* —— Pourquoi MAGE (cartes empilées) —— */
.lp-why {
  margin-top: 28px;
}

.lp-why .lp-section-title {
  margin: 0 0 18px;
}

.lp-section-title {
  text-align: center;
  font-size: clamp(1.2rem, 5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lp-perks {
  display: flex;
  flex-direction: column;
}

.lp-perks--stack {
  --lp-stack-overlap: 22px;
  gap: 0;
  padding-bottom: 12px;
}

.lp-perks--stack .lp-perk {
  position: relative;
  margin-top: 0;
  padding: 22px 18px 20px;
  text-align: center;
  border: none;
  border-radius: 28px 28px 10px 10px;
  background: #e8f4ef;
  box-shadow:
    0 -10px 28px rgba(26, 26, 26, 0.1),
    0 6px 16px rgba(54, 108, 93, 0.08);
}

.lp-perks--stack .lp-perk--pro:has(.lp-perk__cta),
.lp-perks--stack .lp-perk--classes:has(.lp-perk__cta) {
  padding-bottom: 34px;
}

.lp-perks--stack .lp-perk + .lp-perk {
  margin-top: calc(-1 * var(--lp-stack-overlap));
  padding-top: calc(22px + var(--lp-stack-overlap));
}

.lp-perks--stack .lp-perk:nth-child(1) {
  z-index: 1;
}

.lp-perks--stack .lp-perk:nth-child(2) {
  z-index: 2;
}

.lp-perks--stack .lp-perk:nth-child(3) {
  z-index: 3;
}

/* Carousel « Pourquoi MAGE » — 4 arguments particuliers */
.lp-perk--carousel {
  overflow: hidden;
}

.lp-perk-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.lp-perk-carousel__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 400%;
  animation: lp-perk-why-scroll-x 20s ease-in-out infinite;
  will-change: transform;
}

.lp-perk-carousel__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 25%;
  width: 25%;
  min-height: 11.25rem;
  padding: 6px 12px 10px;
  gap: 8px;
  box-sizing: border-box;
}

.lp-perk-carousel__slide .lp-perk__title {
  margin: 0;
}

.lp-perk-carousel__slide .lp-perk__text {
  margin: 0;
  max-width: 32ch;
}

.lp-perk-carousel__slide .lp-perk__cta {
  margin-top: 4px;
}

@keyframes lp-perk-why-scroll-x {
  0%,
  20% {
    transform: translateX(0);
  }
  25%,
  45% {
    transform: translateX(-25%);
  }
  50%,
  70% {
    transform: translateX(-50%);
  }
  75%,
  95% {
    transform: translateX(-75%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-perk-carousel__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
  }

  .lp-perk-carousel__track {
    animation: none;
    transform: none;
  }

  .lp-perk-carousel__slide {
    scroll-snap-align: start;
  }
}

.lp-perk {
  padding: 18px 18px 16px;
  border-radius: var(--lp-radius);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.lp-perk__title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

.lp-perk__text {
  margin: 0;
  font-size: 0.92rem;
  color: #2a2a2a;
  line-height: 1.55;
}

.lp-perk__cta {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 22px;
  border-radius: var(--lp-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--lp-ink);
  background: rgba(255, 255, 255, 0.45);
}

.lp-perks--stack .lp-perk__cta {
  margin-left: auto;
  margin-right: auto;
}

.lp-perk__cta:hover {
  background: var(--lp-white);
}

.lp-perk--pro {
  background: var(--lp-green);
  color: var(--lp-white);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(45, 88, 75, 0.28);
}

.lp-perks--stack .lp-perk--pro {
  background: var(--lp-green);
  color: var(--lp-white);
  box-shadow:
    0 -10px 28px rgba(0, 0, 0, 0.18),
    0 8px 20px rgba(45, 88, 75, 0.2);
}

.lp-perk--pro .lp-perk__title,
.lp-perk--pro .lp-perk__text {
  color: var(--lp-white);
}

.lp-perk--pro .lp-perk__cta {
  color: var(--lp-white);
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
}

.lp-perk--pro .lp-perk__cta:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lp-perk--classes {
  background: linear-gradient(145deg, #f8d5c8 0%, #f3c4b8 100%);
  border-color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.lp-perks--stack .lp-perk--classes {
  background: linear-gradient(145deg, #f8d5c8 0%, #f3c4b8 100%);
  color: var(--lp-ink);
  box-shadow:
    0 -10px 28px rgba(26, 26, 26, 0.12),
    0 8px 18px rgba(180, 120, 100, 0.15);
}

.lp-perk--classes .lp-join__icon {
  margin-bottom: 6px;
}

.lp-perk--classes .lp-perk__kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lp-perk--classes .lp-perk__title {
  font-size: clamp(1.1rem, 5vw, 1.35rem);
  letter-spacing: 0.03em;
}

/* —— Footer —— */
.lp-footer {
  margin-top: 28px;
  text-align: center;
}

.lp-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.lp-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(54, 108, 93, 0.15);
  color: var(--lp-green-dark);
  transition: background 0.2s ease;
}

.lp-social a:hover {
  background: var(--lp-white);
}

.lp-social svg {
  display: block;
  width: 22px;
  height: 22px;
}

.lp-social__icon--instagram {
  overflow: visible;
}

.lp-footer__copy {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d3d3d;
}

.lp-footer__links {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
}

.lp-footer__links li + li {
  margin-top: 6px;
}

.lp-footer__links a {
  color: var(--lp-green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
