/* ═══════════════════════════════════════════════════════════════════
   WynaGraph — styles des pages de vente (particuliers.html, professionnels.html)
   À charger APRÈS styles.css. Toutes les classes sont préfixées « pv- »
   pour ne jamais entrer en conflit avec les composants existants.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Bandeau de bascule entre les deux offres ───────────────────── */
.pv-switch {
  display: flex; justify-content: center; gap: .5rem;
  margin: 0 0 2rem;
}
.pv-switch a {
  font-size: .82rem; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted-foreground);
  transition: all .2s;
}
.pv-switch a:hover { border-color: var(--cyan); color: var(--cyan); }
.pv-switch a[aria-current="page"] {
  background: rgba(66, 235, 226, .12);
  border-color: rgba(66, 235, 226, .5);
  color: var(--cyan);
}

/* ── Deux colonnes texte / visuel ───────────────────────────────── */
.pv-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: start;
}
@media (max-width: 900px) { .pv-split { grid-template-columns: 1fr; } }

/* ── Listes à coches (bénéfices) ────────────────────────────────── */
.pv-check { list-style: none; margin: 0; padding: 0; }
.pv-check li {
  position: relative; padding: 0 0 .85rem 1.7rem;
  color: var(--muted-foreground); line-height: 1.6; font-size: .95rem;
}
.pv-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--cyan); font-weight: 600;
}
.pv-check strong { color: var(--foreground); font-weight: 600; }

/* ── Liste des limites (honnêteté) ──────────────────────────────── */
.pv-limits { list-style: none; margin: 0; padding: 0; }
.pv-limits li {
  position: relative; padding: 0 0 .85rem 1.7rem;
  color: var(--muted-foreground); line-height: 1.6; font-size: .95rem;
}
.pv-limits li::before {
  content: "—"; position: absolute; left: 0; top: 0; color: #e05454;
}
.pv-limits strong { color: var(--foreground); font-weight: 600; }

/* ── Encadré d'information ──────────────────────────────────────── */
.pv-callout {
  background: rgba(66, 235, 226, .06);
  border: 1px solid rgba(66, 235, 226, .25);
  border-radius: 12px; padding: 1.2rem 1.4rem; margin: 1.5rem 0;
}
.pv-callout p { margin: 0; color: var(--muted-foreground); font-size: .92rem; line-height: 1.65; }
.pv-callout p + p { margin-top: .7rem; }
.pv-callout strong { color: var(--foreground); }
.pv-callout--warn {
  background: rgba(224, 84, 84, .07);
  border-color: rgba(224, 84, 84, .3);
}

/* ── Carte de prix ──────────────────────────────────────────────── */
.pv-price {
  background: var(--surface);
  border: 1px solid rgba(66, 235, 226, .35);
  border-radius: 16px; padding: 2rem 1.8rem;
  box-shadow: var(--shadow-tile);
  max-width: 480px; margin: 0 auto;
  text-align: center;
}
.pv-price-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--cyan); margin-bottom: .8rem;
}
.pv-price-amount {
  font-size: 3rem; font-weight: 600; line-height: 1; color: var(--foreground);
}
.pv-price-unit { font-size: 1rem; color: var(--muted-foreground); font-weight: 400; }
.pv-price-note { color: var(--muted-foreground); font-size: .9rem; margin: .7rem 0 1.5rem; }
.pv-price .pv-check { text-align: left; margin-bottom: 1.6rem; }
.pv-price .pv-check li { font-size: .9rem; padding-bottom: .65rem; }
.pv-price .btns { justify-content: center; }
.pv-legal {
  font-size: .78rem; color: var(--muted-foreground);
  margin-top: 1.2rem; line-height: 1.6;
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.pv-faq { max-width: 780px; }
.pv-faq details {
  border-bottom: 1px solid var(--border);
  padding: .2rem 0;
}
.pv-faq summary {
  cursor: pointer; list-style: none;
  padding: 1rem 2rem 1rem 0; position: relative;
  font-weight: 500; font-size: .98rem;
}
.pv-faq summary::-webkit-details-marker { display: none; }
.pv-faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: .9rem;
  color: var(--cyan); font-size: 1.3rem; line-height: 1;
  transition: transform .2s;
}
.pv-faq details[open] summary::after { content: "−"; }
.pv-faq summary:hover { color: var(--cyan); }
.pv-faq .pv-faq-body {
  padding: 0 2rem 1.2rem 0;
  color: var(--muted-foreground); font-size: .93rem; line-height: 1.7;
}
.pv-faq .pv-faq-body p + p { margin-top: .7rem; }

/* ── Démo : cadre plus haut que la carte d'article ──────────────── */
.pv-demo .graph-card-frame { height: 460px; }
@media (max-width: 700px) { .pv-demo .graph-card-frame { height: 340px; } }
.pv-demo-hint {
  color: var(--muted-foreground); font-size: .88rem;
  margin-top: .9rem; text-align: center;
}

/* ── Accessibilité ──────────────────────────────────────────────── */
.pv-faq summary:focus-visible,
.pv-switch a:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .pv-switch a, .pv-faq summary::after { transition: none; }
}

/* ── Formules (page professionnels) ─────────────────────────────── */
.pv-formules {
  text-align: left;
  border-top: 1px solid var(--border);
  margin: 0 0 1.6rem;
}
.pv-formule {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem .8rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--border);
}
.pv-formule-nom {
  font-weight: 600; font-size: .95rem; color: var(--foreground);
}
.pv-formule-prix {
  font-weight: 600; font-size: .95rem; color: var(--cyan);
  white-space: nowrap; text-align: right;
}
.pv-formule-desc {
  grid-column: 1 / -1;
  font-size: .86rem; line-height: 1.55; color: var(--muted-foreground);
}

/* ── Pages légales (cgv.html) ───────────────────────────────────── */
.cgv-doc { max-width: 820px; }
.cgv-doc h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--foreground);
  margin: 2.2rem 0 .8rem; padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.cgv-doc h3:first-of-type { border-top: none; padding-top: 0; }
.cgv-doc p, .cgv-doc li {
  color: var(--muted-foreground); font-size: .93rem; line-height: 1.75;
}
.cgv-doc p { margin: 0 0 .9rem; }
.cgv-doc ul { margin: 0 0 .9rem; padding-left: 1.2rem; }
.cgv-doc li { margin-bottom: .4rem; }
.cgv-doc strong { color: var(--foreground); font-weight: 600; }
.cgv-doc a { color: var(--cyan); }
.cgv-meta {
  font-size: .82rem; color: var(--muted-foreground);
  margin-bottom: 2rem; padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

/* ── Page de commande ───────────────────────────────────────────── */
.pv-lu {
  text-align: left;
  font-size: .86rem; line-height: 1.55;
  color: var(--muted-foreground);
  margin: 0 0 1.4rem;
}
.pv-lu label {
  display: flex; gap: .6rem; align-items: flex-start;
  cursor: pointer;
}
.pv-lu input[type="checkbox"] {
  margin-top: .2rem; flex-shrink: 0;
  width: 16px; height: 16px;
  accent-color: var(--cyan); cursor: pointer;
}
.btn.btn-inactif {
  opacity: .45;
  cursor: not-allowed;
}

.btn-copy {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 0 .4rem;
  font: inherit;
  color: var(--cyan, #3ED9DE);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-copy:hover { color: var(--secondary-800, #0DBAC1); }

.btn-copy:focus-visible {
  outline: 2px solid var(--cyan, #3ED9DE);
  outline-offset: 2px;
  border-radius: 2px;
}