/**
 * ================================================
 * PAGES À PROPOS & SERVICES
 * ================================================
 * Styles pour les pages About et Services
 */

/* Hero Section - cohérent avec home.css */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-white-soft) 100%);
  padding-top: calc(80px + var(--space-10));
  padding-bottom: var(--space-8);
  margin-top: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 82, 165, 0.08) 0%,
    transparent 70%
  );
  border-radius: var(--radius-full);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Split Layout avec asymétrie */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-14);
}

.split-layout__content {
  padding-right: var(--space-6);
}

.split-layout__media {
  position: relative;
  height: 500px;
}

.split-layout__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* Responsive split layout */
@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .split-layout__content {
    padding-right: 0;
  }

  .split-layout__media {
    height: 350px;
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-7);
  margin-top: var(--space-10);
}

/* Service Card */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-smooth);
  border: 1px solid var(--color-gray-100);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-200);
}

.service-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-primary-50) 100%);
}

@media (max-width: 1024px) {
  .service-card--featured {
    grid-column: span 1;
  }
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-md);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.service-card__description {
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card__list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-gray-700);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--backdrop-blur-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.stat-card__label {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary) 100%);
  padding: var(--space-16) 0;
  margin-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
  padding: var(--space-4) 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(255, 255, 255, 0.03) 35px,
      rgba(255, 255, 255, 0.03) 70px
    );
  pointer-events: none;
}

.cta-section__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  line-height: var(--leading-tight);
}

.cta-section__description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-light {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid transparent;
}

.btn-light:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

/* Responsive */
@media (max-width: 768px) {
  .cta-section {
    padding: var(--space-12) 0;
  }

  .cta-section__title {
    font-size: var(--text-3xl);
  }

  .cta-section__description {
    font-size: var(--text-base);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .stat-card__value {
    font-size: var(--text-4xl);
  }
}

/* Animations d'entrée */
@media (prefers-reduced-motion: no-preference) {
  .service-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
  }

  .service-card:nth-child(1) { animation-delay: 0.1s; }
  .service-card:nth-child(2) { animation-delay: 0.2s; }
  .service-card:nth-child(3) { animation-delay: 0.3s; }
  .service-card:nth-child(4) { animation-delay: 0.4s; }
  .service-card:nth-child(5) { animation-delay: 0.5s; }
  .service-card:nth-child(6) { animation-delay: 0.6s; }

  .stat-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
  }

  .stat-card:nth-child(1) { animation-delay: 0.1s; }
  .stat-card:nth-child(2) { animation-delay: 0.2s; }
  .stat-card:nth-child(3) { animation-delay: 0.3s; }
  .stat-card:nth-child(4) { animation-delay: 0.4s; }
}
