/* ═══════════════════════════════════════════════════════════
   DANC·R — Page Tarifs
   ═══════════════════════════════════════════════════════════ */

body.page-tarifs {
  --tr-ecole: var(--blue);
  --tr-prof: var(--violet);
  --tr-amateur: var(--orange);
  --tr-marque: #e8dcc8;
}

.page-tarifs-main {
  padding-top: 0;
}

.tr-hero {
  padding: calc(var(--header-offset) + 3.5rem) 0 1.5rem;
  background: #000;
}

.tr-hero__eyebrow {
  color: var(--text-muted, #a1a1aa);
}

.tr-hero__title {
  max-width: 16ch;
  margin-bottom: 1rem;
}

.tr-hero__lead {
  max-width: 40rem;
  margin-bottom: 0;
}

.tr-plans {
  padding: 1.5rem 0 4rem;
  background: #000;
}

.tr-plans__grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .tr-plans__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .tr-plans__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }
}

.tr-plan {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  scroll-margin-top: calc(var(--header-offset) + 1rem);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) {
  .tr-plan[data-actor="amateur"]:hover,
  .tr-plan[data-actor="amateur"]:focus-within {
    border-color: rgba(230, 145, 56, 0.55);
    background: rgba(230, 145, 56, 0.08);
  }

  .tr-plan[data-actor="prof"]:hover,
  .tr-plan[data-actor="prof"]:focus-within {
    border-color: rgba(177, 100, 238, 0.55);
    background: rgba(177, 100, 238, 0.08);
  }

  .tr-plan[data-actor="ecole"]:hover,
  .tr-plan[data-actor="ecole"]:focus-within {
    border-color: rgba(94, 197, 255, 0.55);
    background: rgba(94, 197, 255, 0.08);
  }

  .tr-plan[data-actor="marque"]:hover,
  .tr-plan[data-actor="marque"]:focus-within {
    border-color: rgba(232, 220, 200, 0.5);
    background: rgba(232, 220, 200, 0.08);
  }
}

.tr-plan__name {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.tr-plan[data-actor="ecole"] .tr-plan__name { color: var(--tr-ecole); }
.tr-plan[data-actor="prof"] .tr-plan__name { color: var(--tr-prof); }
.tr-plan[data-actor="amateur"] .tr-plan__name { color: var(--tr-amateur); }
.tr-plan[data-actor="marque"] .tr-plan__name { color: var(--tr-marque); }

.tr-plan__tagline {
  margin: 0 0 1.15rem;
  min-height: 2.7em;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.58);
}

.tr-plan__price {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 3.4vw, 2.55rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.tr-plan__price small {
  margin-left: 0.12em;
  font-size: 0.38em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.5);
}

.tr-plan__price--text {
  font-size: clamp(1.7rem, 2.8vw, 2.1rem);
}

.tr-plan__meta {
  margin: 0.45rem 0 1.15rem;
  min-height: 2.6em;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

.tr-plan__cta {
  width: 100%;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  background: #09090b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-out);
}

html.theme-dark .tr-plan .tr-plan__cta.btn-ghost,
html.theme-dark .tr-plan .tr-plan__cta.btn-primary {
  background: #09090b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

@media (hover: hover) {
  html.theme-dark .tr-plan:hover .tr-plan__cta.btn-ghost,
  html.theme-dark .tr-plan:hover .tr-plan__cta.btn-primary,
  html.theme-dark .tr-plan:hover .tr-plan__cta.btn-ghost:hover,
  html.theme-dark .tr-plan:hover .tr-plan__cta.btn-primary:hover,
  html.theme-dark .tr-plan:focus-within .tr-plan__cta.btn-ghost,
  html.theme-dark .tr-plan:focus-within .tr-plan__cta.btn-primary {
    background: #fff;
    color: #09090b;
    border-color: #fff;
  }
}

.tr-plan__more {
  display: block;
  margin: 0.7rem 0 1.25rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.tr-plan__more:hover {
  color: #fff;
}

.tr-plan__features-title {
  margin: 0 0 0.65rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.tr-plan__features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-plan__features li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1.35rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.tr-plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 1.6px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1.6px solid rgba(255, 255, 255, 0.72);
  transform: translateY(-70%) rotate(-45deg);
}

@media (max-width: 720px) {
  .tr-hero {
    padding-top: calc(var(--header-offset) + 1.5rem);
  }

  .tr-plan__tagline,
  .tr-plan__meta {
    min-height: 0;
  }
}
