/**
 * Page tarifs : prolonge l'identité de l'accueil (css/home-v2.css, portée .hv2).
 * Réutilise les composants de l'accueil (.hv2-hero, .block, .price-card, .faq, .closing, .hv2-footer)
 * et n'ajoute ici que ce qui est propre à la page. Tout est préfixé .pv2- pour ne pas
 * rencontrer les anciennes règles .pricing-* de auth.css (page tarifs d'avant la refonte).
 */

/* Barre de navigation collante, comme sur l'accueil (où c'est body.home-body qui le fait : cette classe
   marquerait « Accueil » comme page courante, d'où une classe propre à la page). */
body.pricing-body > header { position: sticky; top: 0; z-index: 1000; }

.pv2 { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .pv2 { scroll-behavior: auto; } }

/* ---------- En-tête ---------- */
.pv2 .pv2-hero { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.pv2 .pv2-hero .hero__inner { align-items: start; }
.pv2 .pv2-hero .hero__lede { max-width: 50ch; }
.pv2 .pv2-hero .cta-row { margin-bottom: 0; }

.pv2 .pv2-incl { background: #1e1e26; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--hv2-radius-md); box-shadow: 0 30px 60px -28px rgba(0,0,0,0.55); padding: 1.4rem 1.5rem 1.5rem; }
.pv2 .pv2-incl__title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #ffb199; margin-bottom: 1.1rem; }
.pv2 .pv2-incl__list { list-style: none; display: flex; flex-direction: column; }
.pv2 .pv2-incl__list li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.75rem; padding: 0.85rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.pv2 .pv2-incl__list li:first-child { border-top: 0; padding-top: 0; }
.pv2 .pv2-incl__list li::before { content: "\2713"; color: #ff8a72; font-weight: 800; line-height: 1.5; }
.pv2 .pv2-incl__list b { display: block; color: #fff; font-weight: 800; font-size: 0.98rem; }
.pv2 .pv2-incl__list span { display: block; color: rgba(255,255,255,0.72); font-size: 0.86rem; font-weight: 500; margin-top: 0.1rem; }
.pv2 .pv2-incl__free { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.86rem; font-weight: 500; color: rgba(255,255,255,0.72); }
.pv2 .pv2-incl__free strong { color: #fff; font-weight: 700; }

/* ---------- Formules ---------- */
.pv2 .pv2-plans { padding-top: clamp(2.75rem, 5vw, 3.75rem); }
.pv2 .pv2-status { display: flex; justify-content: center; margin: -0.75rem 0 2.25rem; }
.pv2 .pv2-status p { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.6rem; margin: 0; padding: 0.55rem 1rem; background: var(--hv2-card); border: 1px solid var(--hv2-line-strong); border-radius: 999px; color: var(--hv2-ink); font-size: 0.9rem; font-weight: 600; }
.pv2 .pv2-status p[hidden] { display: none; }
.pv2 .pv2-status a { color: var(--hv2-accent-deep); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.pv2 .pv2-status a:hover { color: var(--hv2-ink); }
.pv2 .pv2-status button { font: inherit; font-weight: 700; color: var(--hv2-ink-soft); background: none; border: 0; border-left: 1px solid var(--hv2-line-strong); padding: 0 0 0 0.7rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pv2 .pv2-status button:hover { color: var(--hv2-accent-deep); }
.pv2 .pv2-status button[hidden] { display: none; }

.pv2 .pv2-error { max-width: 640px; margin: 0 auto 1.75rem; padding: 0.85rem 1.1rem; border-radius: var(--hv2-radius-md); border: 1.5px solid var(--hv2-accent); background: var(--hv2-accent-soft); color: #8f2312; font-size: 0.92rem; font-weight: 700; text-align: center; }
.pv2 .pv2-error[hidden] { display: none; }

.pv2 .pv2-plans .pricing-grid { margin-top: 0.75rem; }
.pv2 .price-card__equiv { display: block; margin: -1rem 0 1.25rem; font-size: 0.84rem; font-weight: 700; color: var(--hv2-accent-deep); }
.pv2 .price-card--featured .price-card__equiv { color: #ffb199; }
.pv2 .price-card__unit { color: var(--hv2-ink-soft); }
.pv2 .price-card--featured .price-card__unit { color: rgba(255,255,255,0.72); }
.pv2 .price-card__name { color: var(--hv2-ink-soft); }
.pv2 .price-card--featured .price-card__name { color: rgba(255,255,255,0.72); }
.pv2 .price-card__per { color: var(--hv2-ink-soft); }
.pv2 .price-card--featured .price-card__per { color: rgba(255,255,255,0.72); }
.pv2 .price-card--featured .btn--outline { border-color: rgba(255,255,255,0.45); color: #fff; }
.pv2 .price-card--featured .btn--accent { box-shadow: 0 10px 24px -12px rgba(239,74,52,0.7); }
.pv2 .price-card .btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.pv2 .price-card--highlight { box-shadow: 0 0 0 3px var(--hv2-accent), var(--hv2-shadow); }
.pv2 .price-card--featured.price-card--highlight { box-shadow: 0 0 0 3px var(--hv2-accent), 0 30px 60px -24px rgba(20,20,26,0.5); }

.pv2 .pv2-legal { max-width: 62ch; margin: 2rem auto 0; text-align: center; font-size: 0.86rem; font-weight: 500; color: var(--hv2-ink-soft); }
.pv2 .pv2-legal a { color: var(--hv2-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pv2 .pv2-legal a:hover { color: var(--hv2-accent-deep); }

/* Compte qui a déjà l'accès complet : remplace la grille des formules. */
.pv2 .pv2-access { max-width: 720px; margin: 0 auto; background: var(--hv2-card); border-radius: var(--hv2-radius-lg); box-shadow: var(--hv2-shadow); padding: 2rem 2rem 1.9rem; text-align: center; }
.pv2 .pv2-access[hidden] { display: none; }
.pv2 .pv2-access__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.pv2 .pv2-access__text { color: var(--hv2-ink-soft); font-size: 0.98rem; font-weight: 500; max-width: 52ch; margin: 0 auto 1.4rem; }
.pv2 .pv2-access__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }

/* ---------- Comparatif ---------- */
.pv2 .pv2-compare { max-width: 900px; margin: 0 auto; background: var(--hv2-card); border-radius: var(--hv2-radius-lg); box-shadow: var(--hv2-shadow); overflow: hidden; }
.pv2 .pv2-compare table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pv2 .pv2-compare caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pv2 .pv2-compare th, .pv2 .pv2-compare td { padding: 1.05rem 1.4rem; text-align: left; vertical-align: top; font-size: 0.95rem; }
.pv2 .pv2-compare thead th { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--hv2-ink-soft); border-bottom: 1px solid var(--hv2-line-strong); padding-top: 1.25rem; padding-bottom: 1.25rem; }
.pv2 .pv2-compare thead th:last-child { background: var(--hv2-ink); color: #fff; border-bottom-color: var(--hv2-ink); }
.pv2 .pv2-compare tbody th { width: 28%; font-weight: 800; color: var(--hv2-ink); }
.pv2 .pv2-compare tbody tr + tr th, .pv2 .pv2-compare tbody tr + tr td { border-top: 1px solid var(--hv2-line); }
.pv2 .pv2-compare td { color: var(--hv2-ink-soft); font-weight: 600; }
.pv2 .pv2-compare td:last-child { color: var(--hv2-ink); font-weight: 700; background: #fbf7ef; }
.pv2 .pv2-compare tfoot th, .pv2 .pv2-compare tfoot td { border-top: 1px solid var(--hv2-line-strong); font-weight: 800; color: var(--hv2-ink); }
.pv2 .pv2-compare tfoot td:last-child { background: #fbf7ef; }
.pv2 .pv2-compare .pv2-no { color: var(--hv2-ink-soft); font-weight: 600; }
.pv2 .pv2-compare-note { max-width: 900px; margin: 1.1rem auto 0; font-size: 0.88rem; font-weight: 500; color: var(--hv2-ink-soft); }
.pv2 .pv2-compare-note a { color: var(--hv2-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pv2 .pv2-compare-note a:hover { color: var(--hv2-accent-deep); }

@media (max-width: 680px) {
  .pv2 .pv2-compare table, .pv2 .pv2-compare tbody, .pv2 .pv2-compare tfoot, .pv2 .pv2-compare tr, .pv2 .pv2-compare th, .pv2 .pv2-compare td { display: block; width: auto; }
  .pv2 .pv2-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pv2 .pv2-compare tbody tr, .pv2 .pv2-compare tfoot tr { padding: 1rem 1.25rem 1.1rem; }
  .pv2 .pv2-compare tbody tr + tr, .pv2 .pv2-compare tfoot tr { border-top: 1px solid var(--hv2-line); }
  .pv2 .pv2-compare tbody tr + tr th, .pv2 .pv2-compare tbody tr + tr td, .pv2 .pv2-compare tfoot th, .pv2 .pv2-compare tfoot td { border-top: 0; }
  .pv2 .pv2-compare th, .pv2 .pv2-compare td { padding: 0; }
  .pv2 .pv2-compare tbody th { width: auto; margin-bottom: 0.5rem; font-size: 1rem; }
  .pv2 .pv2-compare td { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0.35rem 0; background: none !important; }
  .pv2 .pv2-compare td::before { content: attr(data-label); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--hv2-ink-soft); padding-top: 0.15rem; }
  .pv2 .pv2-compare td:last-child { color: var(--hv2-ink); }
}

/* ---------- Ce qui ne change pas d'une formule à l'autre ---------- */
.pv2 .perk p { color: var(--hv2-ink-soft); }

/* ---------- Questions ---------- */
.pv2 .faq-item p a { color: var(--hv2-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pv2 .faq-item p a:hover { color: var(--hv2-accent-deep); }
.pv2 .faq-item summary:focus-visible, .pv2 .pv2-status button:focus-visible, .pv2 .pv2-status a:focus-visible { outline: 3px solid var(--hv2-accent); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 560px) {
  .pv2 .pv2-status p { border-radius: var(--hv2-radius-md); }
  .pv2 .pv2-access { padding: 1.6rem 1.25rem; }
}
