/* ============================================
   BLAFA — tarifs.css
   Page /tarifs — pricing éditorial
   ============================================ */

/* ========== HERO ========== */
.t-hero {
  padding-top: calc(var(--space-10) + 48px);
  padding-bottom: var(--space-8);
}

.t-hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--stone-light);
}

.t-hero__meta-right {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.t-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 10vw, 160px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.t-hero__title em {
  font-style: italic;
  color: var(--seal);
}

.t-hero__sub {
  max-width: 56ch;
  font-size: var(--fs-body-l);
  line-height: 1.6;
  color: var(--ink);
}

/* ========== COMPARAISON EMPLOYÉ VS VANSO ========== */
.t-compare {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--space-9);
}

.t-compare__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.t-compare__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: var(--space-5);
}

.t-compare__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-7);
  align-items: center;
  margin-bottom: var(--space-6);
}

.t-compare__col {
  text-align: center;
}

.t-compare__col-name {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--stone-light);
  margin-bottom: var(--space-3);
}

.t-compare__col-price {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 88px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.t-compare__col-price--old {
  color: rgba(244, 241, 234, 0.5);
  text-decoration: line-through;
  text-decoration-color: var(--correction);
  text-decoration-thickness: 3px;
}

.t-compare__col-price--new {
  color: var(--seal);
}

.t-compare__col-unit {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--stone-light);
  margin-top: var(--space-2);
  letter-spacing: 0.02em;
}

.t-compare__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--stone-light);
}

.t-compare__savings {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--seal);
  border-radius: var(--radius-full);
  color: var(--seal);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .t-hero {
    padding-top: calc(var(--nav-h) + var(--space-7));
    padding-bottom: var(--space-6);
  }

  .t-compare__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .t-compare__vs { margin: 0 auto; }
}

/* ========== TABLEAU ÉDITORIAL ========== */
.t-table {
  padding-block: var(--space-10);
}

.t-table__head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  align-items: baseline;
}

.t-table__title {
  font-family: var(--font-display);
  font-size: var(--fs-display-l);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}

.t-table__intro {
  max-width: 52ch;
  font-size: var(--fs-body-l);
  line-height: 1.6;
}

.t-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.t-plan {
  padding: var(--space-6) var(--space-4);
  border-left: 1px solid var(--stone-light);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.t-plan:first-child { border-left: none; }

.t-plan--popular {
  background: var(--paper-soft);
  position: relative;
}

.t-plan--popular::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--seal);
}

.t-plan__ribbon {
  position: absolute;
  top: -1px;
  left: 3px;
  padding: 4px 10px;
  background: var(--seal);
  color: var(--paper);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.t-plan__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-2);
  margin-top: var(--space-4);
}

.t-plan__trial {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: var(--space-4);
}

.t-plan__price {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-2);
}

.t-plan__price-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0.02em;
  display: inline;
}

.t-plan__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--stone);
  margin-bottom: var(--space-5);
  min-height: 48px;
}

.t-plan__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-5);
  flex: 1;
}

.t-plan__feature {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  align-items: start;
}

.t-plan__feature-check {
  width: 14px;
  height: 14px;
  position: relative;
  margin-top: 3px;
}

.t-plan__feature-check::before,
.t-plan__feature-check::after {
  content: "";
  position: absolute;
  background: var(--seal);
}

.t-plan__feature-check::before {
  left: 1px;
  top: 7px;
  width: 4px;
  height: 1.5px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.t-plan__feature-check::after {
  left: 3px;
  top: 6px;
  width: 8px;
  height: 1.5px;
  transform: rotate(-45deg);
  transform-origin: left center;
}

.t-plan__feature--muted {
  color: var(--stone);
  font-style: italic;
}

.t-plan__feature--muted .t-plan__feature-check::before,
.t-plan__feature--muted .t-plan__feature-check::after {
  background: var(--stone);
}

.t-plan__feature--highlight {
  color: var(--seal-deep);
  font-weight: 500;
}

.t-plan__cta {
  margin-top: auto;
  width: 100%;
  padding: 14px;
  text-align: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background var(--dur-base) var(--ease-out-quart),
              color var(--dur-base) var(--ease-out-quart);
}

.t-plan__cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.t-plan--popular .t-plan__cta {
  background: var(--ink);
  color: var(--paper);
}

.t-plan--popular .t-plan__cta:hover {
  background: var(--seal-deep);
  border-color: var(--seal-deep);
}

@media (max-width: 1024px) {
  .t-table__head { grid-template-columns: 1fr; gap: var(--space-3); }
  .t-plans { grid-template-columns: repeat(2, 1fr); }
  .t-plan:nth-child(3) { padding-left: 0; border-left: none; }
  .t-plan--popular::before { top: -3px; bottom: auto; left: 0; right: 0; height: 3px; width: auto; }
}

@media (max-width: 640px) {
  .t-plans { grid-template-columns: 1fr; }
  .t-plan {
    padding-inline: var(--space-4);
    border-left: none;
    border-top: 1px solid var(--stone-light);
    padding-top: var(--space-5);
  }
  .t-plan:first-child {
    padding-left: var(--space-4);
    border-top: none;
  }
  .t-plan--popular { background: var(--paper); }
  .t-plan--popular::before { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .t-plan__ribbon { left: 0; }
}

/* ========== NOTES / GARANTIES ========== */
.t-notes {
  padding-block: var(--space-8) var(--space-9);
  background: var(--paper-soft);
}

.t-notes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.t-note {
  padding-top: var(--space-4);
  border-top: 1px solid var(--stone-light);
  border-radius: var(--radius-lg);
}

.t-note__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.t-note__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone);
}

@media (max-width: 768px) {
  .t-notes__grid { grid-template-columns: 1fr; }
}

/* ========== FAQ ========== */
.t-faq {
  padding-block: var(--space-10);
}

.t-faq__head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
  align-items: baseline;
}

.t-faq__title {
  font-family: var(--font-display);
  font-size: var(--fs-display-l);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}

.t-faq__list {
  max-width: 880px;
}

.t-faq__item {
  border-top: 1px solid var(--stone-light);
}

.t-faq__item:last-child {
  border-bottom: 1px solid var(--stone-light);
}

.t-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-md);
}

.t-faq__q-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}

.t-faq__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.t-faq__icon::before,
.t-faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%;
  left: 50%;
  transition: transform var(--dur-base) var(--ease-out-quart);
}

.t-faq__icon::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.t-faq__icon::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.t-faq__item.is-open .t-faq__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.t-faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-in-out-quart);
}

.t-faq__a-inner {
  padding-bottom: var(--space-5);
  max-width: 68ch;
}

.t-faq__a-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--stone);
}

@media (max-width: 768px) {
  .t-faq__head { grid-template-columns: 1fr; gap: var(--space-3); }
  .t-faq__q-text { font-size: 17px; }
}
