/* ============================================================
   tarifs.css — Page publique /tarifs (AOScore)
   Fichier séparé de style.css (intra-app). Ne pas mutualiser.
   Palette : bleu de marque #2563eb + neutres clairs.
   ============================================================ */

:root {
  --t-primary: #2563eb;
  --t-primary-dark: #1d4ed8;
  --t-primary-light: #dbeafe;
  --t-ink: #0f172a;
  --t-body: #334155;
  --t-muted: #64748b;
  --t-border: #e2e8f0;
  --t-bg: #f8fafc;
  --t-surface: #ffffff;
  --t-ok: #16a34a;
  --t-radius: 14px;
  --t-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
  --t-shadow-hover: 0 10px 30px rgba(37, 99, 235, .12);
}

* { box-sizing: border-box; }

body.tarifs-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--t-body);
  background: var(--t-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--t-primary); text-decoration: none; }

/* ---------- Bandeau promo sticky ---------- */
.promo-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--t-primary);
  color: #fff;
  text-align: center;
  padding: .6rem 1rem;
  font-size: .9rem;
  font-weight: 500;
}
.promo-banner strong { font-weight: 700; }
.promo-banner .promo-code {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  padding: .05rem .45rem;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* ---------- Header ---------- */
.tarifs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--t-border);
}
.tarifs-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tarifs-header .logo img { height: 32px; display: block; }
.tarifs-nav { display: flex; align-items: center; gap: .5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.15rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-ghost { color: var(--t-body); }
.btn-ghost:hover { color: var(--t-primary); background: var(--t-primary-light); }
.btn-primary { background: var(--t-primary); color: #fff; }
.btn-primary:hover { background: var(--t-primary-dark); }
.btn-outline { border-color: var(--t-border); color: var(--t-ink); background: #fff; }
.btn-outline:hover { border-color: var(--t-primary); color: var(--t-primary); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--t-ink);
  margin: 0 0 .75rem;
  letter-spacing: -.5px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--t-muted);
  margin: 0;
}

/* ---------- Grille tarifaire ---------- */
.pricing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--t-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--t-shadow-hover); }

.plan-card.featured {
  border: 2px solid var(--t-primary);
  box-shadow: 0 10px 30px rgba(37, 99, 235, .14);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--t-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--t-ink);
  margin: 0 0 .3rem;
}
.plan-baseline {
  font-size: .9rem;
  color: var(--t-muted);
  min-height: 2.6em;
  margin: 0 0 1.1rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin-bottom: .3rem;
}
.plan-price .amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--t-ink);
  letter-spacing: -1px;
}
.plan-price .period { font-size: .95rem; color: var(--t-muted); font-weight: 500; }
.plan-promo {
  font-size: .8rem;
  color: var(--t-primary-dark);
  background: var(--t-primary-light);
  border-radius: 6px;
  padding: .3rem .5rem;
  margin-bottom: 1.25rem;
  min-height: 1.2em;
}
.plan-promo-spacer { min-height: 1.2em; margin-bottom: 1.25rem; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1 1 auto;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .9rem;
  padding: .4rem 0;
  color: var(--t-body);
}
.plan-features li .ic { flex: 0 0 auto; font-weight: 700; line-height: 1.5; }
.plan-features li.feat-yes .ic { color: var(--t-ok); }
.plan-features li.feat-no { color: var(--t-muted); }
.plan-features li.feat-no .ic { color: #cbd5e1; }

.plan-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.faq h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--t-ink);
  margin: 0 0 2rem;
}
.faq-item {
  border: 1px solid var(--t-border);
  border-radius: 12px;
  background: var(--t-surface);
  margin-bottom: .85rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--t-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--t-primary);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--t-body);
  font-size: .95rem;
}

/* ---------- Footer ---------- */
.tarifs-footer {
  border-top: 1px solid var(--t-border);
  background: var(--t-surface);
  padding: 2rem 1.5rem;
}
.tarifs-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--t-muted);
  font-size: .875rem;
}
.tarifs-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.tarifs-footer nav a { color: var(--t-muted); }
.tarifs-footer nav a:hover { color: var(--t-primary); }

/* ============================================================
   Responsive : 4 col → 2 col (tablet) → 1 col (mobile)
   ============================================================ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card.featured { grid-column: auto; }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .tarifs-header-inner { padding: .75rem 1rem; }
  .promo-banner { font-size: .8rem; }
  .btn-ghost { display: none; } /* garder l'inscription visible, masquer "se connecter" sur très petit écran */
}
