/* ==========================================================
   PAGE PUBLIQUE - COMPARAISON DES APPROCHES PEDAGOGIQUES
   ========================================================== */

.a-propos-approches {
  width: 100%;
  max-width: none;
  margin: 46px auto 0;
  padding-top: 38px;
  padding-bottom: 56px;
  border-top: 1px solid var(--c-border-subtle);
  box-sizing: border-box;
  scroll-margin-top: 96px;
}

.a-propos-approches:focus {
  outline: none;
}

.a-propos-approches .approches-cards,
.a-propos-approches .approches-table-section {
  margin-top: 40px;
}

.approches-hero {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.approches-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-bleu-50) 82%, var(--c-surface-1));
  color: var(--c-bleu-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approches-hero h1,
.approches-hero h2 {
  margin: 0 auto 18px;
  max-width: 960px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.16;
  font-weight: 800;
}

.approches-hero p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--c-texte);
  font-size: 1.02rem;
  line-height: 1.8;
}

.approches-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}

.approche-card {
  min-width: 0;
  padding: 24px;
  background: var(--c-surface-1);
  border: 1px solid var(--c-border-subtle);
  border-top: 5px solid var(--c-bleu-500);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.approche-card--gabarits {
  border-top-color: var(--c-primaire);
}

.approche-card--import {
  border-top-color: var(--c-jaune-500);
}

.approche-card--etudes-cas {
  border-top-color: var(--c-accent-hover);
}

.approche-card--questionnaires {
  border-top-color: var(--c-bleu-900);
}

.approche-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--c-surface-2);
  color: var(--c-titre);
  font-size: 0.76rem;
  font-weight: 700;
}

.approche-card h2 {
  margin: 0 0 14px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.approche-card p {
  margin: 0 0 12px;
  color: var(--c-texte);
  font-size: 0.94rem;
  line-height: 1.72;
}

.approche-card p:last-child {
  margin-bottom: 0;
}

.approches-table-section {
  min-width: 0;
}

.approches-section-header {
  max-width: 760px;
  margin-bottom: 18px;
}

.approches-section-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.approches-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  background: var(--c-surface-1);
  border: 1px solid var(--c-border-subtle);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.approches-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  color: var(--c-texte);
}

.approches-table th,
.approches-table td {
  padding: 16px;
  border-bottom: 1px solid var(--c-border-subtle);
  vertical-align: top;
  text-align: left;
  font-size: 0.93rem;
  line-height: 1.55;
}

.approches-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--c-bleu-900);
  color: #ffffff;
  font-family: var(--font-titres);
  font-size: 0.86rem;
  font-weight: 700;
}

.approches-table tbody th {
  width: 18%;
  background: var(--c-surface-subtle);
  color: var(--c-titre);
  font-family: var(--font-titres);
  font-weight: 700;
}

.approches-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--c-bleu-50) 46%, var(--c-surface-1));
}

.approches-table tbody tr:last-child th,
.approches-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .approche-card {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .a-propos-approches {
    margin-top: 40px;
  }

  .approches-hero {
    text-align: left;
  }

  .approches-hero p {
    font-size: 0.96rem;
  }

  .approches-table-wrap {
    margin-inline: -2px;
  }

  .approches-table {
    min-width: 980px;
  }

  .approches-table th,
  .approches-table td {
    padding: 13px;
    font-size: 0.88rem;
  }
}
