/* ===== PAGES LÉGALES / INFO — Nos engagements, FAQ, Cookies, Mentions légales, CGV, CGU ===== */

.header__nav-link--active {
  color: var(--blue-secondary) !important;
}

.header__nav-link--active::after {
  width: 100%;
}

.hero--legal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: url('../assets/images/hero/hero_carte.png');
  aspect-ratio: 1024 / 287;
  max-height: 406px;
}

.hero--legal::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 35%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
}

.legal-hero__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: #000;
  text-shadow: 0 0 8px rgba(255, 255, 255, 1), 0 0 16px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(255, 255, 255, 0.8);
  margin: 0;
  pointer-events: none;
}

/* Contenu principal */
.legal-content {
  padding: 48px 0 80px;
}

.legal-content .container {
  max-width: 800px;
}

.legal-content h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  color: var(--grey-title);
  margin: 32px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--grey-title);
  margin: 24px 0 8px;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--grey-body);
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  margin-bottom: 8px;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #e8e8e8;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--grey-title);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-item__question:hover {
  color: var(--blue-secondary);
}

.faq-item__question i {
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s;
}

.faq-item.is-open .faq-item__question i {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item__answer-inner {
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey-body);
}

/* Grille engagements */
.engagements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.engagement-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eee;
}

.engagement-card__icon {
  font-size: 32px;
  color: var(--blue-secondary);
  margin-bottom: 12px;
}

.engagement-card__title {
  font-family: 'Baloo 2', cursive;
  font-size: 18px;
  margin-bottom: 8px !important;
}

.engagement-card__text {
  font-size: 14px;
  margin-bottom: 0 !important;
  line-height: 1.6;
}
