/* ============================================================
   §4 BÉNÉFICES — Quantic Lift
   Dépendances : technique.css (classes .ql-name / .ql-lift / .ql-tm)
   v1.1 — ajout intro-line, mobile-stack, card--mobile
   ============================================================ */

/* --- Section wrapper --- */
.ql-benefices {
  background-color: #F5F7F7;
  padding: 72px 0 72px;
  position: relative;
  overflow: hidden;
}

.ql-benefices::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(74,107,97,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(74,107,97,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Conteneur --- */
.ql-benefices__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Header --- */
.ql-benefices__header {
  text-align: center;
  margin-bottom: 48px;
}

.ql-benefices__eyebrow {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #4A6B61;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.ql-benefices__titre {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  color: #2A3836;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
}

.ql-benefices__intro-wrap {
  text-align: center;
}

/* --- Sous-titre en deux lignes animables séparément --- */
/* Remplace l'ancien .ql-benefices__intro (élément unique) */
.ql-benefices__intro-line {
  display: inline;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  color: #2A3836;
}

.ql-benefices__intro-line--soft {
  font-weight: 300;
  color: #888888;
}

/* --- Grid 2×2 --- */
.ql-benefices__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* --- Card glass --- */
.ql-benefices__card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(202, 213, 211, 0.65);
  box-shadow:
    0 2px 4px rgba(42, 56, 54, 0.04),
    0 8px 24px rgba(42, 56, 54, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.ql-benefices__card:hover {
  box-shadow:
    0 4px 8px rgba(42, 56, 54, 0.06),
    0 16px 40px rgba(42, 56, 54, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

.ql-benefices__card-inner {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
}

/* --- Card header : icône + eyebrow inline --- */
.ql-benefices__card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ql-benefices__card-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #4A6B61;
  text-transform: uppercase;
}

/* --- Icône SVG --- */
.ql-benefices__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.ql-benefices__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ql-benefices__icon svg {
  width: 44px;
  height: 44px;
  display: block;
  fill: #2A3836;
  stroke: #2A3836;
  stroke-width: 2;
  paint-order: stroke fill;
}

/* --- Contenu card --- */
.ql-benefices__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ql-benefices__card-titre {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #2A3836;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.2;
}

.ql-benefices__card-texte {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #555555;
  margin: 0;
}

/* --- Mobile stack — cards superposées --- */
.ql-benefices__mobile-stack {
  position: relative;
}

.ql-benefices__card--mobile {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
}

/* --- Responsive --- */
@media (min-width: 861px) {
  .ql-benefices__mobile-stack {
    display: none;
  }
}

@media (max-width: 860px) {
  .ql-benefices {
    padding: 80px 0 100px;
  }

  .ql-benefices__inner {
    padding: 0 24px;
  }

  .ql-benefices__header {
    margin-bottom: 48px;
  }

  /* Desktop grid masqué, mobile stack visible */
  .ql-benefices__grid {
    display: none;
  }

  .ql-benefices__mobile-stack {
    display: block;
  }

  .ql-benefices__card-inner {
    padding: 32px 28px;
  }

  .ql-benefices__intro-line {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .ql-benefices__inner {
    padding: 0 16px;
  }

  .ql-benefices__card-inner {
    padding: 28px 22px;
  }

  .ql-benefices__titre {
    font-size: 28px;
  }


}