/* =======================================
   TARIFS PAGE - custom styles
   Palette héritée du thème : #361CC1 (violet), #fe7a7b / #fe8464 (corail),
   #2E2E2E (titres), #6A6972 (texte)
======================================= */

:root {
  --tp-primary: #361cc1;
  --tp-primary-light: #6a4bff;
  --tp-accent: #fe7a7b;
  --tp-accent-2: #fe8464;
  --tp-dark: #2e2e2e;
  --tp-text: #6a6972;
  --tp-bg-soft: #f7f6fd;
  --tp-border: #ece9fb;
}

/* ---------- Hero tarifs ---------- */
.tarif-hero {
  background: linear-gradient(135deg, #170a5c 0%, var(--tp-primary) 55%, #6a2fd0 100%);
  padding: 170px 0 110px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.tarif-hero > .container {
  width: 100%;
}

@media (max-width: 767px) {
  .tarif-hero {
    min-height: auto;
    padding: 150px 0 90px;
  }
}

.tarif-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(254, 122, 123, 0.25) 0, transparent 45%);
  pointer-events: none;
}

.tarif-hero .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.tarif-hero h1 {
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.tarif-hero h1 span {
  background: linear-gradient(90deg, #ffd6d6, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tarif-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 35px;
  line-height: 1.8;
}

.tarif-hero .hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 45px;
}

.tarif-hero .hero-stats .stat-item {
  text-align: center;
}

.tarif-hero .hero-stats .stat-item h3 {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tarif-hero .hero-stats .stat-item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ---------- Section titles ---------- */
.tp-section {
  padding: 100px 0;
}

.tp-section.bg-soft {
  background: var(--tp-bg-soft);
}

.tp-section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.tp-section-title .eyebrow {
  display: inline-block;
  color: var(--tp-primary);
  background: #ecebff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.tp-section-title h2 {
  color: var(--tp-dark);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
}

.tp-section-title h2 span {
  color: var(--tp-primary);
}

.tp-section-title p {
  color: var(--tp-text);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- How it works ---------- */
.how-it-works {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.how-step {
  flex: 1 1 280px;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 16px;
  padding: 34px 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(54, 28, 193, 0.1);
}

.how-step .step-number {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-light));
}

.how-step h4 {
  color: var(--tp-dark);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.how-step p {
  color: var(--tp-text);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Credit cards grid ---------- */
.credit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .credit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .credit-grid {
    grid-template-columns: 1fr;
  }
}

.credit-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.credit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(54, 28, 193, 0.12);
  border-color: transparent;
}

.credit-card.is-popular {
  background: linear-gradient(160deg, var(--tp-primary) 0%, #5a34e0 100%);
  border-color: transparent;
  box-shadow: 0 24px 50px rgba(54, 28, 193, 0.28);
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .credit-card.is-popular {
    transform: none;
  }
}

.credit-card .popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tp-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(254, 122, 123, 0.4);
}

.credit-card .credit-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--tp-dark);
  margin-bottom: 4px;
}

.credit-card.is-popular .credit-amount {
  color: #fff;
}

.credit-card .credit-label {
  font-size: 13px;
  color: var(--tp-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.credit-card.is-popular .credit-label {
  color: rgba(255, 255, 255, 0.75);
}

.credit-card .credit-divider {
  width: 40px;
  height: 3px;
  background: var(--tp-border);
  border-radius: 4px;
  margin: 0 auto 18px;
}

.credit-card.is-popular .credit-divider {
  background: rgba(255, 255, 255, 0.3);
}

.credit-card .credit-hours {
  font-size: 26px;
  font-weight: 700;
  color: var(--tp-primary);
  margin-bottom: 4px;
}

.credit-card.is-popular .credit-hours {
  color: #fff;
}

.credit-card .credit-hours small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--tp-text);
  margin-top: 4px;
}

.credit-card.is-popular .credit-hours small {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Forfait mensuel cards ---------- */
.forfait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 991px) {
  .forfait-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .forfait-grid {
    grid-template-columns: 1fr;
  }
}

.forfait-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 28px 32px;
  text-align: center;
  border: 1px solid var(--tp-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.forfait-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(54, 28, 193, 0.12);
}

.forfait-card.is-featured {
  background: linear-gradient(160deg, #fe7a7b 0%, #fe8464 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 24px 50px rgba(254, 122, 123, 0.3);
}

.forfait-card .popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tp-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(54, 28, 193, 0.35);
}

.forfait-card .forfait-name {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tp-primary);
  margin-bottom: 6px;
}

.forfait-card.is-featured .forfait-name {
  color: #fff;
}

.forfait-card .forfait-hours {
  font-size: 14px;
  color: var(--tp-text);
  margin-bottom: 24px;
}

.forfait-card.is-featured .forfait-hours {
  color: rgba(255, 255, 255, 0.85);
}

.forfait-card .forfait-price {
  font-size: 40px;
  font-weight: 700;
  color: var(--tp-dark);
  line-height: 1;
}

.forfait-card.is-featured .forfait-price {
  color: #fff;
}

.forfait-card .forfait-price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--tp-text);
}

.forfait-card.is-featured .forfait-price span {
  color: rgba(255, 255, 255, 0.85);
}

.forfait-card .forfait-price-ar {
  font-size: 14px;
  color: var(--tp-text);
  margin: 8px 0 12px;
}

.forfait-card.is-featured .forfait-price-ar {
  color: rgba(255, 255, 255, 0.8);
}

.forfait-card .forfait-validity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tp-text);
  margin-bottom: 10px;
}

.forfait-card.is-featured .forfait-validity {
  color: rgba(255, 255, 255, 0.85);
}

.forfait-card .forfait-condition {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 20px;
  text-align: left;
}

.forfait-card .forfait-condition i {
  flex-shrink: 0;
  margin-top: 1px;
}

.forfait-card ul.forfait-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
  flex-grow: 1;
}

.forfait-card ul.forfait-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--tp-text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.forfait-card.is-featured ul.forfait-features li {
  color: rgba(255, 255, 255, 0.92);
}

.forfait-card ul.forfait-features li i {
  color: var(--tp-primary);
  font-size: 16px;
  margin-top: 2px;
}

.forfait-card.is-featured ul.forfait-features li i {
  color: #fff;
}

.forfait-card .forfait-btn {
  display: inline-block;
  padding: 12px 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  background: var(--tp-bg-soft);
  color: var(--tp-primary);
  border: 1px solid var(--tp-border);
  text-decoration: none;
  transition: all 0.3s ease;
}

.forfait-card .forfait-btn:hover {
  background: var(--tp-primary);
  color: #fff;
}

.forfait-card.is-featured .forfait-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.forfait-card.is-featured .forfait-btn:hover {
  background: #fff;
  color: var(--tp-accent);
}

/* ---------- Note / disclaimer ---------- */
.tp-note {
  max-width: 780px;
  margin: 50px auto 0;
  background: #fff;
  border: 1px dashed var(--tp-border);
  border-radius: 14px;
  padding: 22px 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tp-note i {
  color: var(--tp-primary);
  font-size: 20px;
  margin-top: 2px;
}

.tp-note p {
  margin: 0;
  color: var(--tp-text);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- Skills strip ---------- */
.skills-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.skills-strip span {
  background: #fff;
  border: 1px solid var(--tp-border);
  color: var(--tp-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
}

/* ---------- CTA ---------- */
.tarif-cta {
  background: linear-gradient(135deg, #170a5c 0%, var(--tp-primary) 60%, #6a2fd0 100%);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tarif-cta h2 {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}

.tarif-cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.tarif-cta .main-btn {
  background: #fff;
  color: var(--tp-primary);
}

.tarif-cta .main-btn:hover {
  background: var(--tp-accent);
  color: #fff;
}
