/* ============================================================
   offre.css — dentikOo v4
   Dépend de _var.css (variables déjà chargées globalement)
   ============================================================ */

/* ── Wrapper page ── */
.body {
  position: relative;
  background: var(--white);
  min-height: calc(100vh - 70px);
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 120px;
}

/* ============================================================
   HERO
   ============================================================ */
.pricing-hero {
  position: relative;
  background: var(--navy);
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: 80px 48px 72px;
  text-align: center;
  margin-bottom: 60px;
}

.pricing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 20% 40%,
      rgba(20, 85, 192, 0.35) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 40% at 80% 70%,
      rgba(245, 158, 11, 0.12) 0%,
      transparent 55%
    );
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  margin-bottom: 28px;
}

.hero-badge i {
  color: var(--amber);
}

.pricing-hero h1 {
  font-size: clamp(26px, 4vw, 50px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 18px;
}

.pricing-hero h1 span {
  background: linear-gradient(135deg, var(--amber) 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: Adeliafont !important;
  font-size: 40px;
  margin-left: 10px;
}

.pricing-hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 300;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 44px;
}

/* Toggle */
.toggle-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  padding: 5px;
  gap: 4px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  padding: 10px 24px;
  border-radius: var(--r-pill);
  transition: all var(--t) var(--ease);
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
}

.toggle-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(20, 85, 192, 0.4);
}

.toggle-btn:hover:not(.active) {
  color: #fff;
}

/* ============================================================
   PLANS GRID
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 80px;
}

/* ── Card base ── */
.plan-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--line);
  padding: 36px 28px 32px;
  position: relative;
  transition:
    transform var(--t) var(--spring),
    box-shadow var(--t) var(--ease),
    border-color var(--t);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--s-xl);
  border-color: rgba(20, 85, 192, 0.2);
}

/* ── Featured (Standard) ── */
.plan-featured {
  background: var(--navy);
  border-color: transparent;
  box-shadow: var(--s-xl);
  transform: scale(1.03);
  z-index: 2;
}

.plan-featured:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: var(--s-xl);
}

/* ── Free card ── */
.plan-free {
  background: var(--mist);
  border-color: var(--line);
}

/* Badge "populaire" */
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #6366f1, var(--blue));
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  white-space: nowrap;
}

/* ── Plan name row ── */
.plan-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.plan-featured .plan-name {
  color: rgba(255, 255, 255, 0.4);
}
.plan-free .plan-name {
  color: var(--faint);
}

.plan-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--blue-lt);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.plan-featured .plan-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #7dd3fc;
}

.plan-icon-free {
  background: var(--mist);
  color: var(--faint);
  border: 1px solid var(--line);
}

/* ── Price ── */
.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--ink);
}

.plan-featured .price-amount {
  color: var(--white);
}

.price-free {
  color: var(--faint);
}

.price-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.3;
  margin-bottom: 4px;
}

.price-unit small {
  font-size: 11px;
  font-weight: 400;
  color: var(--faint);
}

.plan-featured .price-unit {
  color: rgba(255, 255, 255, 0.4);
}
.plan-featured .price-unit small {
  color: rgba(255, 255, 255, 0.25);
}
.price-unit-free {
  color: var(--faint);
}

.plan-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--body);
  font-weight: 300;
}

.plan-featured .plan-desc {
  color: rgba(255, 255, 255, 0.42);
}

/* ── Divider ── */
.plan-divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}

.plan-featured .plan-divider {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Features ── */
.features-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.plan-featured .features-label {
  color: rgba(255, 255, 255, 0.28);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--body);
  font-weight: 400;
  line-height: 1.5;
}

.plan-featured .feature-item {
  color: rgba(255, 255, 255, 0.62);
}

.fi {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 1px;
}

.fi-yes {
  background: #dcfce7;
  color: #16a34a;
}

.fi-no {
  background: var(--mist);
  color: var(--faint);
}

.fi-yes-free {
  background: var(--line);
  color: var(--body);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-featured .fi-yes {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.plan-featured .fi-no {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.2);
}

/* Sub-detail under a feature */
.fi-has-detail > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fi-has-detail > span small {
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 300;
  line-height: 1.6;
}

.plan-featured .fi-has-detail > span small {
  color: rgba(255, 255, 255, 0.28);
}

/* ── CTA ── */
.plan-cta {
  margin-top: 28px;
}

.btn-plan-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
  transition: all var(--t) var(--ease);
  font-family: var(--font);
  text-decoration: none;
}

.btn-plan-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-lt);
}

.btn-plan-solid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(20, 85, 192, 0.35);
  transition: all var(--t) var(--spring);
  font-family: var(--font);
  text-decoration: none;
}

.btn-plan-solid:hover {
  background: #1a60d4;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(20, 85, 192, 0.45);
  color: #fff;
}

.btn-plan-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
  transition: all var(--t) var(--ease);
  font-family: var(--font);
  text-decoration: none;
}

.btn-plan-outline:hover {
  border-color: var(--body);
  color: var(--body);
}

.plan-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   BOTTOM — CTA BANNER
   ============================================================ */
.bottomOffert {
  margin-top: 20px;
}

.cta-banner {
  position: relative;
  background: var(--navy);
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 80px;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 50% 80% at 0% 50%,
      rgba(20, 85, 192, 0.4) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 60% at 100% 50%,
      rgba(245, 158, 11, 0.1) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.cta-deco {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-deco-2 {
  position: absolute;
  right: 40px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.08);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.cta-banner p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 300;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Boutons (réutilisés depuis _var.css logique) ── */
.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--night);
  background: var(--amber);
  padding: 16px 32px;
  border-radius: var(--r-pill);
  transition:
    background var(--t) var(--ease),
    transform var(--t) var(--spring),
    box-shadow var(--t);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  text-decoration: none;
  /* white-space: nowrap; */
}

.btn-amber:hover {
  background: #fbbf24;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 36px rgba(245, 158, 11, 0.45);
  color: var(--night);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 15px 26px;
  border-radius: var(--r-pill);
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.tableCompare {
  margin-top: 20px;
}

.titreTableCompte {
  margin-bottom: 40px;
  text-align: center;
}

.s-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--blue);
  background: var(--blue-lt);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}

.titreTableCompte h2 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -1.5px;
  margin-bottom: 10px;
}

.titreTableCompte p {
  font-size: 14px;
  color: var(--body);
  font-weight: 300;
}

.compare-table-wrap {
  border-radius: var(--r-xl);
  border: 1.5px solid var(--line);
  overflow: hidden;
  box-shadow: var(--s-md);
}

table.ctable {
  width: 100%;
  border-collapse: collapse;
}

.ctable thead tr {
  background: var(--navy);
}

.ctable thead th {
  padding: 18px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  font-family: var(--font);
}

.ctable thead th:first-child {
  text-align: left;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.ctable thead .th-highlight {
  background: rgba(20, 85, 192, 0.3);
  color: #93c5fd;
}

.ctable thead .th-free {
  color: rgba(255, 255, 255, 0.3);
}

.ctable tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background var(--t);
}

.ctable tbody tr:last-child {
  border-bottom: none;
}
.ctable tbody tr:hover {
  background: var(--snow);
}

.ctable tbody td {
  padding: 13px 22px;
  font-size: 13.5px;
  color: var(--body);
  text-align: center;
  font-family: var(--font);
}

.ctable tbody td:first-child {
  text-align: left;
  color: var(--ink);
  font-weight: 500;
}

.cell-highlight {
  background: rgba(20, 85, 192, 0.04);
}
.ctable tbody tr:hover .cell-highlight {
  background: rgba(20, 85, 192, 0.08);
}

/* Row group headers */
.row-group td {
  background: var(--mist) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--faint) !important;
  padding: 9px 22px !important;
}

.cell-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--body);
}

.icon-yes {
  color: #16a34a;
  font-size: 17px;
}
.icon-no {
  color: var(--faint);
  font-size: 17px;
  opacity: 0.35;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-ani] {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

[data-ani="up"] {
  transform: translateY(36px);
}
[data-ani="scale"] {
  transform: scale(0.94);
}

[data-ani].ani-in {
  opacity: 1;
  transform: none !important;
}

[data-delay="1"] {
  transition-delay: 0.08s;
}
[data-delay="2"] {
  transition-delay: 0.16s;
}
[data-delay="3"] {
  transition-delay: 0.24s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .pricing-hero {
    padding: 60px 28px 56px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .plan-featured {
    transform: none;
    order: -1;
  }

  .plan-featured:hover {
    transform: translateY(-6px);
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 44px 28px;
  }

  .cta-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .pricing-hero {
    padding: 48px 20px 44px;
    border-radius: var(--r-lg);
  }
  .plan-card {
    padding: 28px 20px 24px;
  }
  .cta-banner {
    border-radius: var(--r-lg);
    padding: 36px 20px;
  }
  .compare-table-wrap {
    border-radius: var(--r-lg);
  }
}
