﻿/* ===== NAV ACTIVE ===== */
.nav__link--active {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== HERO ===== */
.ps-hero {
  background: var(--navy-grad);
  padding: 80px 0 96px;
  text-align: center;
}

.ps-hero__inner { max-width: 680px; margin: 0 auto; }

.ps-hero .section-eyebrow { margin-bottom: 20px; }

.ps-hero__title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.ps-hero__title strong { font-weight: 800; }

.ps-hero__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
}

/* ===== GARANTIES ===== */
.garanties {
  background: #f4f6f9;
  padding: 80px 0 88px;
}

.garanties__eyebrow { text-align: center; }

.garanties__title {
  text-align: center;
  margin-bottom: 52px;
  font-weight: 400;
}
.garanties__title strong { font-weight: 800; }

.garanties__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.garantie-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  transition: box-shadow 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(20px);
}
.garantie-card.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s, border-color 0.2s;
}
.garantie-card:nth-child(2) { transition-delay: 0.1s; }
.garantie-card:nth-child(3) { transition-delay: 0.2s; }
.garantie-card:nth-child(4) { transition-delay: 0.3s; }
.garantie-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.garantie-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(192,57,43,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.garantie-card__icon svg { width: 24px; height: 24px; }

.garantie-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.garantie-card__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== FORMULES ===== */
.formules {
  background: var(--white);
  padding: 88px 0 96px;
}

.formules__eyebrow { text-align: center; }

.formules__title {
  text-align: center;
  margin-bottom: 52px;
  font-weight: 400;
}
.formules__title strong { font-weight: 800; }

.formules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* Base card */
.formule-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(24px);
}
.formule-card.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s;
}
.formule-card:nth-child(2) { transition-delay: 0.1s; }
.formule-card:nth-child(3) { transition-delay: 0.2s; }
.formule-card:hover { box-shadow: var(--shadow); }

/* Featured (Famille) */
.formule-card--featured {
  background: var(--navy-grad);
  border-color: transparent;
  transform: translateY(0) scale(1.03);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.formule-card--featured.visible {
  transform: scale(1.03);
}
.formule-card--featured:hover {
  transform: scale(1.03) translateY(-3px);
}
.formule-card--featured .formule-card__title { color: var(--white); }
.formule-card--featured .formule-card__desc  { color: rgba(255,255,255,0.65); }
.formule-card--featured .formule-card__features li { color: rgba(255,255,255,0.9); }

/* Icon */
.formule-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(192,57,43,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.formule-card__icon--red { background: rgba(192,57,43,0.15); }
.formule-card__icon svg { width: 26px; height: 26px; }

.formule-card__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.formule-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.formule-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 24px;
}

.formule-card__features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 32px;
  flex: 1;
}

.formule-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.formule-card__features li svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Buttons */
.formule-card__btn {
  align-self: stretch;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
}

.formule-card__btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.formule-card__btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ===== CTA ===== */
.ps-cta {
  background: var(--navy-grad);
  padding: 96px 0;
  text-align: center;
}

.ps-cta__title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
}
.ps-cta__title.visible { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }

.ps-cta__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
}
.ps-cta__sub.visible { opacity: 1; transform: none; transition: opacity 0.5s 0.1s ease, transform 0.5s 0.1s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .garanties__grid { grid-template-columns: repeat(2, 1fr); }
  .formules__grid  { grid-template-columns: 1fr; gap: 16px; }
  .formule-card--featured { transform: none; }
  .formule-card--featured.visible { transform: none; }
  .formule-card--featured:hover { transform: translateY(-3px); }
}

@media (max-width: 600px) {
  .garanties__grid { grid-template-columns: 1fr; }
  .ps-hero__subtitle br { display: none; }
}
