/* Page « Tarifs » — la structure commune (.page, .page-hero, .card)
   et les couleurs viennent de application.css */

/* --- Cotisations --- */

/* Rapproche l'échéancier de la grille de tarifs (bat `.page section`) */
.tarifs .cotisations {
  padding-bottom: 2rem;
}

.tarifs-liste {
  list-style: none;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.tarif {
  padding: 2.25rem 1.75rem;
  text-align: center;
}

.tarif-libelle {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin: 0;
}

/* Les exposants restent en bas de casse malgré le text-transform */
.tarif-libelle sup,
.echeancier thead th sup {
  text-transform: lowercase;
}

.tarif-prix {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.1;
  color: var(--color-heading);
  margin: 0.75rem 0 0.5rem;
}

.tarif-prix .devise {
  color: var(--color-accent);
}

.tarif-detail {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.9375rem;
}

/* --- Échéancier --- */

.reglement-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.reglement-intro {
  margin: 0 0 2.5rem;
}

.echeancier-wrapper {
  overflow-x: auto;
  padding: 0.5rem 1.5rem 1.5rem;
  text-align: left;
}

.echeancier {
  width: 100%;
  border-collapse: collapse;
}

.echeancier th,
.echeancier td {
  padding: 1rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.echeancier thead th {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

.echeancier .mois {
  display: block;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 400;
  color: var(--color-text-soft);
}

.echeancier tbody th {
  font-weight: 400;
  color: var(--color-text);
}

.echeancier tbody th .montant {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-heading);
}

.echeancier tbody tr + tr th,
.echeancier tbody tr + tr td {
  border-top: 1px solid color-mix(in srgb, var(--color-accent-soft) 45%, transparent);
}

.echeancier tbody td {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-heading);
  white-space: nowrap;
}

/* --- Mobile --- */

@media (max-width: 48rem) {
  .tarif-prix {
    font-size: 2.5rem;
  }

  .echeancier th,
  .echeancier td {
    padding: 0.875rem 0.5rem;
  }
}
