/* Page de tarifs publique.
 *
 * Elle se pose sur `telephonai.css`, qui porte les jetons `--tp-*` de la
 * marque. Aucune couleur n'est redefinie ici : la page suit donc le theme du
 * site — sombre par defaut, claire quand `theme.js` pose `.light-mode` — et
 * elle suivra la prochaine revision de la charte sans qu'on y revienne.
 *
 * La premiere version portait sa propre palette claire, au motif qu'un
 * visiteur sans compte n'a pas de theme. Elle se lisait bien et ne
 * ressemblait a aucune autre page du produit : on arrivait de l'accueil avec
 * l'impression d'avoir change de site.
 *
 * Feuille dediee malgre tout, comme `billing.css` et pour la meme raison : le
 * `tailwind.css` livre est pre-compile et purge, les classes de grille qu'il
 * faudrait ici n'y existent pas.
 */

/* Degrade signature, repris a l'identique de la page d'accueil. */
:root {
  --pr-gradient: linear-gradient(135deg, #0ea5e9, #14b8a6 55%, #f97316);
}

* { box-sizing: border-box; }

.pr-page {
  margin: 0;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

/* ── En-tete ─────────────────────────────────────────────────────────── */
.pr-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; max-width: 1180px; margin: 0 auto;
}
.pr-brand {
  font-size: 20px; font-weight: 700; letter-spacing: -.02em;
  color: var(--tp-text); text-decoration: none;
}
.pr-brand span { color: var(--tp-primary); }
.pr-nav a { color: var(--tp-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.pr-nav a:hover { color: var(--tp-primary); }

.pr-main { max-width: 1180px; margin: 0 auto; padding: 12px 28px 56px; }

/* ── Accroche ────────────────────────────────────────────────────────── */
.pr-intro { text-align: center; margin: 32px 0 40px; }
.pr-intro h1 {
  font-size: 38px; line-height: 1.15; letter-spacing: -.03em;
  margin: 0 0 14px; font-weight: 700; color: var(--tp-text);
}
.pr-intro p { margin: 0; color: var(--tp-muted); font-size: 15px; }
.pr-intro strong { color: var(--tp-text); }

/* ── Cartes ──────────────────────────────────────────────────────────── */
.pr-cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  align-items: stretch;
}
.pr-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--tp-surface); border: 1px solid var(--tp-border);
  border-radius: 18px; padding: 28px 22px 22px;
}
/* L'offre mise en avant porte le degrade en liseré : le regard s'y pose en
 * premier, ce qui est tout l'objet d'un « le plus choisi ». Deux fonds
 * superposes — `padding-box` puis `border-box` — parce qu'un degrade ne peut
 * pas etre une `border-color`. */
.pr-card.is-featured {
  background:
    linear-gradient(var(--tp-surface), var(--tp-surface)) padding-box,
    var(--pr-gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 10px 40px var(--tp-glow-1);
}
.pr-card.is-trial { background: var(--tp-surface-2); }

.pr-badge {
  position: absolute; top: -11px; left: 22px;
  background: var(--pr-gradient); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin: 0;
}
.pr-card-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tp-primary); margin: 0 0 8px;
}
.pr-card-price {
  font-size: 36px; font-weight: 700; letter-spacing: -.025em; margin: 0;
  color: var(--tp-text);
}
.pr-card-price small { font-size: 14px; font-weight: 500; color: var(--tp-muted); margin-left: 4px; }
.pr-card-price.is-muted { font-size: 24px; color: var(--tp-muted); }
.pr-card-for {
  font-size: 13px; color: var(--tp-muted); margin: 10px 0 18px; min-height: 38px;
}

.pr-features { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.pr-features li {
  font-size: 13.5px; color: var(--tp-text);
  padding: 8px 0 8px 22px; position: relative;
  border-bottom: 1px solid var(--tp-border);
}
.pr-features li:last-child { border-bottom: 0; }
.pr-features li::before {
  content: "→"; position: absolute; left: 0; color: var(--tp-primary); font-weight: 700;
}
/* Ce qui N'EST PAS inclus doit se lire comme tel du premier coup d'oeil : une
 * absence presentee comme une ligne ordinaire se lit comme une inclusion. */
.pr-features li.is-off, .pr-features .is-off { color: var(--tp-muted); }
.pr-features li.is-off::before { content: "—"; color: var(--tp-muted); }

.pr-overage {
  font-size: 11.5px; color: var(--tp-muted); margin: 0 0 16px;
  padding-top: 10px; border-top: 1px dashed var(--tp-border);
}

.pr-btn {
  display: block; text-align: center; text-decoration: none;
  padding: 12px 16px; border-radius: 11px;
  font-size: 14px; font-weight: 650;
  background: var(--tp-surface-2); color: var(--tp-text);
  border: 1px solid var(--tp-border);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pr-btn.is-primary { background: var(--pr-gradient); color: #fff; border-color: transparent; }
.pr-btn.is-ghost {
  background: transparent; color: var(--tp-primary); border-color: var(--tp-primary);
}
.pr-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px var(--tp-glow-1); }
.pr-btn:focus-visible { outline: 2px solid var(--tp-focus); outline-offset: 2px; }

/* ── Les unites, expliquees la ou on les vend ────────────────────────── */
.pr-note {
  margin: 38px auto 0; max-width: 760px; text-align: center;
  color: var(--tp-muted); font-size: 13px;
}
.pr-note p { margin: 0 0 8px; }
.pr-note strong { color: var(--tp-text); }

.pr-foot {
  text-align: center; padding: 28px; font-size: 12.5px; color: var(--tp-muted);
  border-top: 1px solid var(--tp-border);
}
.pr-foot a { color: var(--tp-muted); }
.pr-foot a:hover { color: var(--tp-primary); }

/* ── Fenetre modale d'entree ─────────────────────────────────────────────
 * Le visiteur reste sur la page de tarifs. Basculer vers une inscription nue
 * lui fait perdre le contexte de ce qu'il vient de choisir — et le taux
 * d'abandon suit.
 */
.pr-modal { position: fixed; inset: 0; z-index: 60; display: flex;
  align-items: center; justify-content: center; padding: 20px; }
.pr-modal[hidden] { display: none; }
.pr-modal-fond {
  position: absolute; inset: 0;
  background: rgba(2, 6, 23, .72); backdrop-filter: blur(2px);
}
.pr-modal-boite {
  position: relative; width: 100%; max-width: 420px;
  background: var(--tp-surface); color: var(--tp-text);
  border: 1px solid var(--tp-border); border-radius: 18px;
  padding: 28px 24px 22px;
  box-shadow: 0 26px 70px rgba(2, 6, 23, .55);
  max-height: 92vh; overflow-y: auto;
}
.pr-modal-x {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; font-size: 26px; line-height: 1;
  color: var(--tp-muted); cursor: pointer;
}
.pr-modal-x:hover { color: var(--tp-text); }
.pr-modal-kicker { margin: 0 0 18px; font-size: 13px; color: var(--tp-muted); }
.pr-modal-kicker strong { color: var(--tp-primary); }

.pr-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  background: var(--tp-bg); padding: 4px; border-radius: 11px;
  border: 1px solid var(--tp-border);
}
.pr-tab {
  flex: 1; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--tp-muted);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.pr-tab.is-on { background: var(--tp-surface-2); color: var(--tp-text); }

.pr-form label {
  display: block; margin-bottom: 14px; font-size: 13px;
  font-weight: 600; color: var(--tp-muted);
}
.pr-form input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid var(--tp-border); border-radius: 10px;
  font-size: 14px; color: var(--tp-text); background: var(--tp-bg);
  font-family: inherit;
}
.pr-form input:focus {
  outline: 2px solid var(--tp-focus); outline-offset: 1px; border-color: transparent;
}
.pr-form .pr-btn { width: 100%; margin-top: 6px; border: 0; cursor: pointer; font-family: inherit; }

/* Honeypot : hors flux et hors lecteur d'ecran, mais present dans le DOM —
 * c'est ce que remplissent les robots. */
.pr-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pr-modal-note { margin: 16px 0 0; font-size: 12px; color: var(--tp-muted); text-align: center; }
.pr-modal-note[hidden] { display: none; }

@media (max-width: 560px) {
  .pr-intro h1 { font-size: 27px; }
  .pr-main { padding: 8px 16px 40px; }
  .pr-head { padding: 16px; }
}

/* ── En-tete : logo, langue, theme ───────────────────────────────────────── */
.pr-brand { display: flex; align-items: center; gap: 11px; }
.pr-brand img { width: 34px; height: 34px; display: block; }
.pr-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.pr-brand strong { font-size: 16px; font-weight: 700; color: var(--tp-text); }
.pr-brand small { font-size: 11px; color: var(--tp-muted); font-weight: 500; }

.pr-actions { display: flex; align-items: center; gap: 10px; }
.pr-link {
  font-size: 13.5px; font-weight: 600; color: var(--tp-text); text-decoration: none;
  padding: 8px 14px; border: 1px solid var(--tp-border); border-radius: 10px;
}
.pr-link:hover { border-color: var(--tp-primary); color: var(--tp-primary); }

.pr-lang { position: relative; }
.pr-lang-btn, .pr-theme-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--tp-surface); color: var(--tp-text);
  border: 1px solid var(--tp-border); border-radius: 10px;
  padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; line-height: 1;
}
.pr-theme-btn { font-size: 15px; padding: 8px 11px; }
.pr-lang-btn:hover, .pr-theme-btn:hover { border-color: var(--tp-primary); }
.pr-lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  background: var(--tp-surface); border: 1px solid var(--tp-border);
  border-radius: 12px; padding: 6px; min-width: 168px;
  box-shadow: 0 14px 40px rgba(2, 6, 23, .45);
}
.pr-lang-menu[hidden] { display: none; }
.pr-lang-menu button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 8px;
  padding: 9px 11px; font-size: 13px; color: var(--tp-text);
  cursor: pointer; font-family: inherit;
}
.pr-lang-menu button:hover { background: var(--tp-surface-2); color: var(--tp-primary); }

/* ── Tableau comparatif ──────────────────────────────────────────────────
 * Les cartes vendent, ce tableau tranche. Il defile horizontalement sur
 * telephone plutot que de comprimer six colonnes en illisible.
 */
.pr-compare { margin-top: 56px; }
.pr-compare h2 {
  font-size: 26px; font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 20px; color: var(--tp-text);
}
.pr-compare-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--tp-border); }
.pr-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--tp-surface); }
.pr-table th, .pr-table td {
  padding: 11px 16px; font-size: 13.5px; text-align: right;
  border-bottom: 1px solid var(--tp-border);
}
.pr-table thead th {
  text-align: right; font-size: 14px; font-weight: 700; color: var(--tp-text);
  background: var(--tp-surface-2); position: sticky; top: 0;
}
.pr-table thead th:first-child, .pr-table tbody th[scope="row"] { text-align: left; }
.pr-table tbody th[scope="row"] { font-weight: 500; color: var(--tp-muted); }
.pr-table td { color: var(--tp-text); font-variant-numeric: tabular-nums; }
.pr-table .pr-group th {
  text-align: left; font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--tp-primary); background: var(--tp-bg); padding: 12px 16px;
}
/* L'offre mise en avant reste reperable sur toute la hauteur du tableau. */
.pr-table .is-featured { background: var(--tp-glow-1); }
.pr-table .is-nil { color: var(--tp-muted); }
.pr-oui { color: var(--tp-primary); font-weight: 700; }
.pr-inf { color: var(--tp-primary); font-size: 17px; }
