/* ============================================================
   SECTIONS.CSS — Athenia Academy
   Rôle : patterns éditoriaux réutilisables sur tous les onglets.
   Objectif : décliner les patterns validés L48 sans surcharger pages.css.
   ============================================================ */

/* Containers éditoriaux */
.ath-section {
  padding: clamp(5rem, 8vw, 8rem) 2rem;
}

.ath-section-sm {
  padding: clamp(3.5rem, 6vw, 5.5rem) 2rem;
}

.ath-section-light {
  background: #FFFFFF;
}

.ath-section-muted {
  background: #F5F5F7;
}

.ath-section-graphite {
  background: #0B0F14;
  color: #FFFFFF;
}

.ath-container {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.ath-container-wide {
  width: min(100%, 1400px);
  margin: 0 auto;
}

.ath-narrow {
  width: min(100%, 820px);
  margin: 0 auto;
}

/* En-têtes de sections */
.ath-section-header {
  max-width: 820px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.ath-section-header.is-left {
  margin-left: 0;
  text-align: left;
}

.ath-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  background: rgba(0, 168, 107, 0.08);
  color: #00A86B;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ath-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #00A86B;
}

.ath-title {
  margin: 0;
  color: #1D1D1F;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.ath-section-graphite .ath-title {
  color: #FFFFFF;
}

.ath-subtitle {
  max-width: 720px;
  margin: 1rem auto 0;
  color: #6E6E73;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.ath-section-header.is-left .ath-subtitle {
  margin-left: 0;
}

.ath-section-graphite .ath-subtitle {
  color: rgba(255, 255, 255, 0.72);
}

/* Hero premium */
.ath-hero {
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding: clamp(7rem, 12vw, 11rem) 2rem clamp(4rem, 8vw, 7rem);
  background: #FFFFFF;
  overflow: hidden;
}

.ath-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.ath-hero-title {
  margin: 0;
  max-width: 820px;
  color: #1D1D1F;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.ath-hero-title .accent {
  color: #00A86B;
}

.ath-hero-subtitle {
  max-width: 640px;
  margin: 1.5rem 0 0;
  color: #6E6E73;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}

.ath-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* Grilles éditoriales */
.ath-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.ath-editorial-grid.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.ath-editorial-content {
  max-width: 560px;
}

.ath-editorial-title {
  margin: 0;
  color: #1D1D1F;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.ath-editorial-text {
  margin: 1rem 0 0;
  color: #6E6E73;
  font-size: 1rem;
  line-height: 1.7;
}

.ath-editorial-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.ath-editorial-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #1D1D1F;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ath-editorial-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: #00A86B;
  flex-shrink: 0;
}

/* Médias */
.ath-media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #F5F5F7;
  border: 1px solid rgba(29, 29, 31, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.07);
}

.ath-media-frame img,
.ath-media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.ath-media-fallback {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: #86868B;
  text-align: center;
  background: linear-gradient(135deg, #F5F5F7, #FFFFFF);
}

/* Cards premium */
.ath-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ath-card-grid.is-4 {
  grid-template-columns: repeat(4, 1fr);
}

.ath-card {
  background: #FFFFFF;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ath-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 168, 107, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.07);
}

.ath-card-kicker {
  margin-bottom: 0.75rem;
  color: #00A86B;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ath-card-title {
  margin: 0;
  color: #1D1D1F;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ath-card-text {
  margin: 0.8rem 0 0;
  color: #6E6E73;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* CTA final */
.ath-final-cta {
  padding: clamp(4rem, 8vw, 7rem) 2rem;
  background: #F5F5F7;
  text-align: center;
}

.ath-final-cta-inner {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem);
  background: #FFFFFF;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 36px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.06);
}

.ath-final-cta h2 {
  margin: 0;
  color: #1D1D1F;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.ath-final-cta p {
  max-width: 620px;
  margin: 1rem auto 0;
  color: #6E6E73;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Responsive sections */
@media (max-width: 1024px) {
  .ath-hero-grid,
  .ath-editorial-grid,
  .ath-editorial-grid.reverse {
    grid-template-columns: 1fr;
  }

  .ath-editorial-content {
    max-width: 720px;
  }

  .ath-card-grid,
  .ath-card-grid.is-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ath-media-frame img,
  .ath-media-frame video,
  .ath-media-fallback {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .ath-section,
  .ath-section-sm,
  .ath-hero,
  .ath-final-cta {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .ath-hero {
    min-height: auto;
    padding-top: 6rem;
  }

  .ath-hero-title {
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }

  .ath-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .ath-card-grid,
  .ath-card-grid.is-4 {
    grid-template-columns: 1fr;
  }

  .ath-media-frame {
    border-radius: 24px;
  }

  .ath-media-frame img,
  .ath-media-frame video,
  .ath-media-fallback {
    min-height: 260px;
  }

  .ath-final-cta-inner {
    border-radius: 28px;
    padding: 2.25rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ath-card,
  .ath-media-frame {
    transition: none !important;
  }

  .ath-card:hover {
    transform: none !important;
  }
}
