/* ── TARIFS PAGE ─────────────────────────────────────────────── */

.tarifs-main {
  padding-top: 80px;
  min-height: 100vh;
  position: relative;
}

/* ── En-tête ─────────────────────────────────────────────────── */
.tarifs-header {
  padding: 72px 0 40px;
  max-width: 720px;
}

.tarifs-title {
  font-size: clamp(52px, 8vw, 88px);
  margin: 12px 0 20px;
}

.tarifs-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 460px;
}

/* ── Pack de base ────────────────────────────────────────────── */
.tarifs-base-wrap {
  position: relative;
  max-width: 720px;
  padding-top: 14px;
  margin-bottom: 16px;
}

.tarifs-base-badge {
  position: absolute;
  top: 0;
  left: 28px;
  z-index: 2;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 16px;
  border-radius: 100px;
  border: 2px solid var(--ink);
}

.tarifs-base-card {
  overflow: hidden;
}

.tarifs-base-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tarifs-base-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -1px;
  margin-top: 8px;
}

.tarifs-base-price {
  text-align: right;
  flex-shrink: 0;
}

.tarifs-price-main {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -1.5px;
  display: block;
  line-height: 1;
}

.tarifs-price-monthly {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
  display: block;
}

.tarifs-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}

.tarifs-feature {
  font-size: 13px;
  opacity: 0.75;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tarifs-feature::before {
  content: '✓';
  color: var(--yellow);
  flex-shrink: 0;
  font-weight: 700;
}

/* ── Modules optionnels ──────────────────────────────────────── */
.tarifs-modules {
  max-width: 720px;
  margin: 32px 0 16px;
}

.tarifs-modules-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 14px;
}

.tarifs-modules-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tarifs-module {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.tarifs-module:hover {
  transform: translateY(-3px);
}

.tarifs-module.active {
  background: var(--yellow);
}

.tarifs-module-check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.tarifs-module.active .tarifs-module-check {
  background: var(--ink);
}

.tarifs-check-icon {
  opacity: 0;
  transition: opacity 0.15s;
}

.tarifs-module.active .tarifs-check-icon {
  opacity: 1;
}

.tarifs-module-info {
  flex: 1;
  min-width: 0;
}

.tarifs-module-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.3px;
}

.tarifs-module-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}

.tarifs-module.active .tarifs-module-desc {
  color: rgba(10, 10, 10, 0.55);
}

.tarifs-module-price {
  text-align: right;
  flex-shrink: 0;
}

.tarifs-module-price-main {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.5px;
}

.tarifs-module-price-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.tarifs-price-na {
  opacity: 0.28;
}

/* ── Module Autres ──────────────────────────────────────────── */
.tarifs-module--autres {
  text-decoration: none;
  color: inherit;
  border-style: dashed;
}

.tarifs-module--autres:hover {
  background: var(--cream);
  border-color: var(--orange);
  transform: translateY(-3px);
}

.tarifs-module-autres-arrow {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.tarifs-module--autres:hover .tarifs-module-autres-arrow {
  transform: translateX(4px);
}

/* ── Barre de total ──────────────────────────────────────────── */
.tarifs-total-spacer { display: none; }

.tarifs-total {
  background: var(--ink);
  color: var(--cream);
  border-radius: 0;
  position: relative;
  z-index: 90;
}

.tarifs-total.floating {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  box-shadow: 0 -8px 40px rgba(10, 10, 10, 0.25);
}

.tarifs-total-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tarifs-total-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.35);
}

.tarifs-total-prices {
  display: flex;
  align-items: center;
  gap: 28px;
}

.tarifs-total-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tarifs-total-amount {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -1.5px;
}

.tarifs-total-amount.pop {
  animation: tarifs-pop 0.18s ease-out both;
}

@keyframes tarifs-pop {
  0%   { opacity: 0.4; transform: translateY(-5px); }
  100% { opacity: 1;   transform: translateY(0); }
}

.tarifs-total-monthly {
  color: var(--yellow);
}

.tarifs-total-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.tarifs-total-sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
}

/* ── CTA ─────────────────────────────────────────────────────── */
.tarifs-cta {
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 96px;
}

.tarifs-cta-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tarifs-features-grid {
    grid-template-columns: 1fr;
  }

  .tarifs-module {
    flex-wrap: wrap;
  }

  .tarifs-module-check {
    order: 3;
  }

  .tarifs-module-price {
    text-align: right;
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .tarifs-module-price-sub {
    margin-top: 0;
  }

  /* Barre de total : bloc arrondi sur mobile */
  .tarifs-total {
    margin: 0 16px 40px;
    border-radius: var(--radius-card);
  }

  .tarifs-total.floating {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    margin: 0 16px;
    border-radius: var(--radius-card);
    box-shadow: 0 -8px 40px rgba(10, 10, 10, 0.25);
  }

  .tarifs-total-inner {
    padding: 16px 20px;
    gap: 6px 12px;
  }

  .tarifs-total-label {
    flex-basis: 100%;
  }

  .tarifs-total-prices {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .tarifs-total-sep {
    display: none;
  }

  .tarifs-total-amount {
    font-size: clamp(18px, 6vw, 28px);
  }

  #rdv-btn {
    margin: 0 auto;
  }

  .tarifs-total-spacer {
    margin: 0 16px 40px;
  }
}
