/* ═══════════════════════════════════════════════════════════
   tarifs.css  –  Pricing page + global button upgrade
   ═══════════════════════════════════════════════════════════ */

/* ── Google Font fallback (already loaded via link tag) ── */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ══════════════════════════════════════════════════════════
   1. PREMIUM BUTTON SYSTEM  (replaces old .button / .header-cta)
   ══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.15s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* subtle shine sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

/* Primary – solid blue gradient */
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35), 0 1px 3px rgba(29, 78, 216, 0.2);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.45), 0 2px 6px rgba(29, 78, 216, 0.25);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Outline – bordered, transparent bg */
.btn--outline {
  color: var(--blue);
  background: transparent;
  border-color: #c3d3f5;
  box-shadow: 0 1px 4px rgba(29, 78, 216, 0.06);
}

.btn--outline:hover {
  background: rgba(29, 78, 216, 0.05);
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.14);
  transform: translateY(-2px);
}

/* White – for dark backgrounds (CTA card) */
.btn--white {
  color: #0f766e;
  background: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
  background: #f0fdfa;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Ghost – for hero dark overlay */
.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Full width modifier */
.btn--full {
  width: 100%;
}

/* ── Make old .button / .header-cta classes use the new system ── */
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s, box-shadow 0.22s, transform 0.15s;
  white-space: nowrap;
}

.header-cta,
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}

.header-cta:hover,
.button.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.45);
  transform: translateY(-2px);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(4px);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   2. NAV – active link
   ══════════════════════════════════════════════════════════ */

.nav-active {
  color: var(--blue) !important;
  font-weight: 800;
}

/* ══════════════════════════════════════════════════════════
   3. PRICING HERO
   ══════════════════════════════════════════════════════════ */

.pricing-hero {
  padding: 88px 0 72px;
  background: linear-gradient(160deg, #f8faff 0%, #eef3fc 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.pricing-hero__inner {
  max-width: 700px;
  margin-inline: auto;
}

.pricing-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--blue);
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pricing-hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 18px;
}

.pricing-hero__title em {
  font-style: italic;
  color: var(--blue);
}

.pricing-hero__sub {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   4. PLANS GRID
   ══════════════════════════════════════════════════════════ */

.pricing-plans {
  padding: 80px 0 60px;
  background: #fff;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* ── Base card ── */
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(16, 26, 51, 0.05);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.plan-card:hover {
  box-shadow: 0 16px 50px rgba(16, 26, 51, 0.12);
  transform: translateY(-4px);
  border-color: #c3d3f5;
}

/* ── Popular card ── */
.plan-card--popular {
  border-color: var(--blue);
  box-shadow: 0 8px 40px rgba(29, 78, 216, 0.16);
  background: linear-gradient(165deg, #ffffff 0%, #f5f8ff 100%);
}

.plan-card--popular:hover {
  box-shadow: 0 20px 60px rgba(29, 78, 216, 0.24);
}

.plan-card__popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fff;
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

/* ── Card head ── */
.plan-card__head {
  margin-bottom: 20px;
}

.plan-card__label {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.plan-card__range {
  margin: 0;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Price block ── */
.plan-card__price {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.plan-card__price small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.plan-card__price strong {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 2px;
}

.plan-card__price span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.plan-card__price--custom strong {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-style: italic;
  color: var(--blue);
}

/* ── Features list ── */
.plan-card__features {
  flex: 1;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.plan-card__features li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.plan-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
  font-size: 0.9rem;
}

/* ── Plans note ── */
.plans-note {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.83rem;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   5. INCLUDED SECTION
   ══════════════════════════════════════════════════════════ */

.included-section {
  padding: 88px 0;
  background: linear-gradient(160deg, #f8faff 0%, #eef3fc 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.centered-heading {
  text-align: center;
  margin-bottom: 52px;
}

.centered-heading h2,
.centered-heading p {
  text-align: center;
  margin-inline: auto;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.included-item {
  padding: 30px 26px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  text-align: center;
  transition: box-shadow 0.22s, transform 0.22s;
}

.included-item:hover {
  box-shadow: 0 10px 36px rgba(16, 26, 51, 0.09);
  transform: translateY(-3px);
}

.included-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.included-item h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.included-item p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   6. FAQ SECTION
   ══════════════════════════════════════════════════════════ */

.faq-section {
  padding: 88px 0 96px;
  background: #fff;
}

.faq-header {
  text-align: center;
  margin-bottom: 52px;
}

.faq-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.07);
  border: 1.5px solid rgba(29, 78, 216, 0.15);
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.faq-header h2 em {
  font-style: italic;
  color: var(--blue);
}

.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 0;
}

/* ── FAQ accordion item ── */
.faq-item {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.22s, border-color 0.22s;
}

.faq-item[open] {
  border-color: rgba(29, 78, 216, 0.28);
  box-shadow: 0 4px 20px rgba(29, 78, 216, 0.08);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.18s;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q:hover {
  background: rgba(29, 78, 216, 0.03);
}

.faq-item[open] .faq-item__q {
  color: var(--blue);
  border-bottom: 1px solid rgba(29, 78, 216, 0.14);
}

/* Chevron arrow */
.faq-chevron {
  flex-shrink: 0;
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--soft);
  position: relative;
  transition: background 0.2s, transform 0.3s;
}

.faq-chevron::before,
.faq-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  background: var(--muted);
  height: 2px;
  width: 7px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.3s;
}

.faq-chevron::before {
  left: 4px;
  transform: translateY(-50%) rotate(45deg);
}

.faq-chevron::after {
  right: 4px;
  transform: translateY(-50%) rotate(-45deg);
}

.faq-item[open] .faq-chevron {
  background: rgba(29, 78, 216, 0.1);
  transform: rotate(180deg);
}

.faq-item[open] .faq-chevron::before,
.faq-item[open] .faq-chevron::after {
  background: var(--blue);
}

.faq-item__a {
  padding: 0 24px 20px;
  animation: fadeSlide 0.2s ease;
}

.faq-item__a p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════════════
   7. RESPONSIVE
   ══════════════════════════════════════════════════════════ */

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

@media (max-width: 760px) {

  .plans-grid,
  .included-grid {
    grid-template-columns: 1fr;
  }

  .pricing-hero {
    padding: 60px 0 48px;
  }

  .faq-item__q {
    padding: 16px 18px;
    font-size: 0.91rem;
  }

  .faq-item__a {
    padding: 0 18px 16px;
  }
}