/* ==========================================================================
   Assurance Provisoire — interface 2026 : page des tarifs
   Chargée en plus de ap.css et ap-page.css sur la vue pages/tarifs.
   Onglets en CSS pur : les trois grilles sont dans le HTML, un bouton radio
   (masqué mais focalisable au clavier) choisit celle qui s'affiche.
   ========================================================================== */

.tarifs { max-width: 760px; margin-inline: 0; }
.tarifs__intro { color: var(--muted); }
.tarifs__intro strong { color: var(--ink); font-weight: 600; }
.tarifs__note { margin-top: 28px; font-size: 14px; color: var(--muted); }
.tarifs__note a { color: var(--ink); font-weight: 500; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tarifs__sub { margin: 32px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.tarifs__sub:first-child { margin-top: 0; }

/* ---------- Onglets ---------- */
.tabs { margin-top: 28px; }
.tabs > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.tabs__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.tabs__nav label { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 6px; border-radius: 9px; font-size: 14px; font-weight: 500; line-height: 1.2; text-align: center; cursor: pointer; }
.tabs__nav label:hover { background: var(--soft); }

.tabs__panel { display: none; }

#tab-vl:checked ~ .tabs__nav label[for="tab-vl"],
#tab-fro:checked ~ .tabs__nav label[for="tab-fro"],
#tab-pl:checked ~ .tabs__nav label[for="tab-pl"] { background: var(--navy); color: #fff; }

#tab-vl:focus-visible ~ .tabs__nav label[for="tab-vl"],
#tab-fro:focus-visible ~ .tabs__nav label[for="tab-fro"],
#tab-pl:focus-visible ~ .tabs__nav label[for="tab-pl"] { outline: 2px solid var(--navy); outline-offset: 3px; }

#tab-vl:checked ~ #panel-vl,
#tab-fro:checked ~ #panel-fro,
#tab-pl:checked ~ #panel-pl { display: block; }

@media (min-width: 600px) {
  .tabs__nav { max-width: 480px; }
  .tabs__nav label { font-size: 15px; }
}
