/* Styles pour les pages de détails */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: min(100%, 1000px);
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 1000ms 900ms var(--ease) forwards;
}

.feature-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 139, 43, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(255, 139, 43, 0.1);
  display: grid;
  place-items: center;
  color: var(--orange);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.key-feature {
  width: min(100%, 1000px);
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--white);
  border: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 1000ms 1000ms var(--ease) forwards;
}

@media (max-width: 640px) {
  .key-feature {
    flex-direction: column;
    text-align: center;
  }
}

.key-feature-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(255, 139, 43, 0.15);
  display: grid;
  place-items: center;
  color: var(--orange-deep);
  flex-shrink: 0;
}

.key-feature-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--bg);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.key-feature-content p {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.6;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 220ms var(--ease);
  opacity: 0;
  animation: fadeUp 900ms 200ms var(--ease) forwards;
  align-self: flex-start;
}

.back-link:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  transform: translateX(-4px);
}

.cta-wrap {
  margin-top: 3.5rem;
  opacity: 0;
  animation: fadeUp 1000ms 1100ms var(--ease) forwards;
}

/* Modifier l'h1 pour les pages de détails */
.detail-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 18ch;
  text-wrap: balance;
  opacity: 0;
  animation: revealTitle 1100ms 480ms var(--ease) forwards;
}

.detail-hero-title em {
  font-style: normal;
  color: var(--orange);
}

.detail-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
  text-wrap: balance;
  opacity: 0;
  animation: fadeUp 950ms 680ms var(--ease) forwards;
}

/* Responsive addition */
@media (max-width: 640px) {
  .back-link {
    display: none !important;
  }
}
