/* ============================================================
   Avrile — LP Why
   Section de landing en deux temps :
   1. le problème — titre à gauche, texte à droite (grille statement)
   2. ce qu'on y gagne — bénéfices à coches à gauche,
      aperçu de la fiche de recommandations (3 pages décalées) à droite.
   ============================================================ */

.avr-lp-why {
  padding: var(--avr-space-section) var(--avr-space-gutter);
  background: var(--avr-bg);
  width: 100%;
}

.avr-lp-why__inner {
  width: 100%;
  max-width: var(--avr-max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--avr-space-xl);
}

/* ----------------------------------------------------------
   1. Problème — même grille que .avr-statement
---------------------------------------------------------- */
.avr-lp-why .avr-lp-why__problem {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--avr-space-xxl);
  align-items: start;
}

.avr-lp-why .avr-lp-why__problem h2 {
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}

.avr-lp-why .avr-lp-why__text {
  margin: 0;
  max-width: 520px;
}

/* ----------------------------------------------------------
   2. Ce qu'on y gagne
---------------------------------------------------------- */
.avr-lp-why .avr-lp-why__outcome {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--avr-space-xxl);
  align-items: center;
  padding-top: var(--avr-space-xl);
  border-top: 1px solid var(--avr-rule);
}

.avr-lp-why .avr-lp-why__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--avr-space-xs);
}

.avr-lp-why .avr-lp-why__label {
  margin: 0;
}

.avr-lp-why .avr-lp-why__list {
  display: flex;
  flex-direction: column;
}

/* Bénéfice — coche orange, filet entre les items */
.avr-lp-why .avr-lp-why__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--avr-space-xxs) 0 var(--avr-space-xxs) 40px;
  border-bottom: 1px solid var(--avr-rule);
}

.avr-lp-why .avr-lp-why__item:first-child {
  border-top: 1px solid var(--avr-rule);
}

.avr-lp-why .avr-lp-why__item::before {
  content: "";
  position: absolute;
  top: calc(var(--avr-space-xxs) + 4px);
  left: 0;
  width: 22px;
  height: 22px;
  background-color: var(--avr-color-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='none'%20stroke='white'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M4%2012.5l5%205L20%206.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='none'%20stroke='white'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M4%2012.5l5%205L20%206.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.avr-lp-why .avr-lp-why__item h3 {
  margin: 0;
  font-size: var(--avr-text-h3-sm);
  line-height: var(--avr-leading-head);
}

.avr-lp-why .avr-lp-why__item-text {
  margin: 0;
  font-size: var(--avr-text-body);
  line-height: var(--avr-leading-body);
  color: var(--avr-muted);
}

.avr-lp-why .avr-lp-why__closing {
  margin: 0;
  max-width: 520px;
  font-family: var(--avr-font-italic);
  font-style: italic;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.25;
  color: var(--avr-fg);
}

/* ----------------------------------------------------------
   Fiche de recommandations — 3 pages A4 décalées
   La page 1 est devant ; les pages 2 et 3 dépassent en haut à droite.
---------------------------------------------------------- */
.avr-lp-why .avr-lp-why__sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--avr-space-xxs);
}

.avr-lp-why .avr-lp-why__pages {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 40px 40px 0 0;
}

.avr-lp-why .avr-lp-why__page {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 848;
  object-fit: cover;
  border-radius: var(--avr-radius-xs);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--avr-color-ink) 14%, transparent);
  transition: transform 0.45s var(--avr-ease-reveal);
}

.avr-lp-why .avr-lp-why__page--1 {
  position: relative;
  z-index: 3;
}

.avr-lp-why .avr-lp-why__page--2,
.avr-lp-why .avr-lp-why__page--3 {
  position: absolute;
  top: 40px;
  left: 0;
  width: calc(100% - 40px);
}

.avr-lp-why .avr-lp-why__page--2 {
  z-index: 2;
  transform: translate(20px, -20px);
}

.avr-lp-why .avr-lp-why__page--3 {
  z-index: 1;
  transform: translate(40px, -40px);
}

/* Survol : les pages s'écartent légèrement */
.avr-lp-why .avr-lp-why__pages:hover .avr-lp-why__page--2 {
  transform: translate(28px, -28px);
}

.avr-lp-why .avr-lp-why__pages:hover .avr-lp-why__page--3 {
  transform: translate(56px, -56px);
}

.avr-lp-why .avr-lp-why__caption {
  margin: 0;
  font-family: var(--avr-font-mono);
  font-size: var(--avr-text-mono);
  letter-spacing: var(--avr-tracking-wide);
  text-transform: uppercase;
  text-align: center;
  color: var(--avr-muted);
}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */
@media (max-width: 980px) {
  .avr-lp-why__inner {
    gap: var(--avr-space-md);
  }

  .avr-lp-why .avr-lp-why__problem,
  .avr-lp-why .avr-lp-why__outcome {
    grid-template-columns: 1fr;
    gap: var(--avr-space-sm);
  }

  .avr-lp-why .avr-lp-why__outcome {
    padding-top: var(--avr-space-md);
  }

  .avr-lp-why .avr-lp-why__pages {
    max-width: 300px;
    padding: 32px 32px 0 0;
  }

  .avr-lp-why .avr-lp-why__page--2,
  .avr-lp-why .avr-lp-why__page--3 {
    top: 32px;
    width: calc(100% - 32px);
  }

  .avr-lp-why .avr-lp-why__page--2 {
    transform: translate(16px, -16px);
  }

  .avr-lp-why .avr-lp-why__page--3 {
    transform: translate(32px, -32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avr-lp-why .avr-lp-why__page {
    transition: none;
  }
}
