/* Page publique Tarifs — décembre 2026.
   Couleurs, polices, champs et boutons de console.css (clair et sombre).
   Repères : pages de tarifs open source de Supabase (cartes alignées sur une
   même ligne, forfait conseillé surélevé, bouton plein seulement pour lui) et
   de Dub (tableau comparatif par groupes) ; typographie et surfaces Apple
   (grands titres serrés, cartes blanches sur fond gris, filets fins).
   Pas de pastille, de badge ni de dégradé (préférence de l’utilisateur). */

body {
  font-size: 15px;
  line-height: 22px;
}
h3 {
  margin: 0;
}
.btn {
  color: var(--text);
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
}
.btn.large {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}
.btn.block {
  width: 100%;
}

/* ---- En-tête ---------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 0.5px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 0 0 0.5px var(--line);
}
.site-head nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

/* ---- Accroche --------------------------------------------------------------- */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 0 24px;
  text-align: center;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.45;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 13px;
}

/* ---- Sections --------------------------------------------------------------- */
.section {
  margin-top: 72px;
}
.section > h2,
.section-head h2,
.request-intro h2 {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section > h2 {
  margin-bottom: 22px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

/* Contrôle segmenté (iOS) : Mensuel | Annuel. */
.segmented {
  display: inline-flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--selected);
}
.segmented button {
  min-height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--line), 0 2px 6px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}
.seg-note {
  color: #09634a;
  font-weight: 500;
}
@media (prefers-color-scheme: dark) {
  .seg-note {
    color: var(--accent-text);
  }
}

/* ---- Cartes des forfaits ------------------------------------------------------
   Une ligne de quatre cartes jointes ; Pro est surélevée, les autres partagent
   leurs bords (comme sur la page de Supabase). Les rangées s’alignent d’une
   carte à l’autre grâce à subgrid. */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
}
.plan {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  border: 0.5px solid var(--line-strong);
  border-right-width: 0;
  background: var(--surface);
}
.plan:first-child {
  border-radius: 18px 0 0 18px;
}
.plan:last-child {
  border-right-width: 0.5px;
  border-radius: 0 18px 18px 0;
}
.plan.featured {
  position: relative;
  z-index: 1;
  margin: -10px 0;
  border: 1.5px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}
.plan.featured + .plan {
  border-left-width: 0;
}
.plan-top {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 20px;
}
.plan.featured .plan-top {
  padding-top: 36px;
}
.plan h3 {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.audience {
  min-height: 2lh;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
}
.price-box {
  margin: 18px 0 20px;
}
/* Montant seul sur sa ligne, unité dessous : les cartes restent alignées
   même avec un prix à sept chiffres. */
.price {
  display: flex;
  flex-direction: column;
}
.amount {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.unit {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.price-sub {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 13px;
}
.figures,
.perks {
  margin: 0;
  padding: 0 24px;
  list-style: none;
}
.figures {
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 0.5px solid var(--line);
}
.figures li {
  padding: 3px 0;
  color: var(--text-2);
  font-size: 14px;
}
.figures strong {
  color: var(--text);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.perks {
  padding-top: 14px;
  padding-bottom: 24px;
  border-top: 0.5px solid var(--line);
}
.perks li {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  line-height: 20px;
}
.perks .ic-check {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--accent-text);
  stroke-width: 2.4;
}
.plan.featured .perks {
  padding-bottom: 34px;
}

/* Bande Entreprise : sous les cartes, sur toute la largeur. */
.enterprise {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 24px 28px;
  border: 0.5px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
}
.enterprise h3 {
  font-size: 21px;
  font-weight: 700;
}
.enterprise .audience {
  min-height: 0;
}
.ent-price {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14px;
}
.ent-price strong {
  color: var(--text);
  font-size: 17px;
}
.enterprise .perks {
  padding: 0;
  border: 0;
}
.fineprint {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}
.load-error {
  margin-top: 16px;
  color: var(--red);
  text-align: center;
}

/* ---- Tableau comparatif ------------------------------------------------------ */
.compare-wrap {
  overflow-x: auto;
  border: 0.5px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
}
.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare th,
.compare td {
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--line);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.compare tbody:last-child tr:last-child th,
.compare tbody:last-child tr:last-child td {
  border-bottom: 0;
}
.compare th[scope="row"] {
  width: 26%;
  color: var(--text);
  font-weight: 500;
  text-align: left;
}
.compare thead th {
  position: sticky;
  top: 0;
  padding-top: 18px;
  padding-bottom: 14px;
  background: var(--surface);
  vertical-align: bottom;
}
.col-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.col-link {
  font-size: 13px;
  font-weight: 500;
}
.compare thead th.featured .col-name {
  color: var(--accent-text);
}
.compare td.featured {
  background: var(--hover);
}
.compare tr.group th {
  padding-top: 22px;
  padding-bottom: 8px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.compare .icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.compare .ic-check {
  color: var(--accent-text);
  stroke-width: 2.4;
}
.compare .ic-dash {
  color: var(--text-3);
}
.compare th:first-child,
.compare td:first-child {
  padding-left: 22px;
}

/* ---- Bon à savoir ------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.fact {
  padding: 20px 22px;
  border: 0.5px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
}
.fact h3 {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 650;
}
.fact p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
}

/* ---- Questions fréquentes (liste groupée) ------------------------------------- */
.faq {
  border: 0.5px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
.faq details + details {
  border-top: 0.5px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}
.faq summary:hover {
  background: var(--hover);
}
.faq details p {
  max-width: 72ch;
  padding: 0 22px 18px;
  color: var(--text-2);
}

/* ---- Demande d’accès ---------------------------------------------------------- */
.request {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
  scroll-margin-top: 72px;
}
.steps {
  display: grid;
  gap: 14px;
  margin: 22px 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 40px;
  color: var(--text-2);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.steps strong {
  color: var(--text);
  font-weight: 600;
}
.request-card {
  padding: 26px;
  border: 0.5px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
}
.request-form .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
}
.field select {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 0.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}
.request-form .btn {
  margin-top: 6px;
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.done strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

/* ---- Pied de page --------------------------------------------------------------- */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1120px;
  margin: 48px auto 0;
  padding: 22px 24px 36px;
  border-top: 0.5px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}

/* ---- Tablette : deux cartes par ligne ---------------------------------------- */
@media (max-width: 1020px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 16px;
  }
  .plan,
  .plan:first-child,
  .plan:last-child,
  .plan.featured,
  .plan.featured + .plan {
    grid-row: auto;
    grid-template-rows: auto auto 1fr;
    margin: 0;
    border-width: 0.5px;
    border-radius: 18px;
  }
  .plan.featured {
    border: 1.5px solid var(--accent);
  }
  .plan.featured .plan-top {
    padding-top: 26px;
  }
  .plan.featured .perks {
    padding-bottom: 24px;
  }
  .enterprise {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .enterprise .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .request {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* ---- Téléphone ------------------------------------------------------------------ */
@media (max-width: 640px) {
  .site-head-in,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-head nav a:not(.btn) {
    display: none;
  }
  .hero {
    padding-top: 40px;
    text-align: left;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.1;
  }
  .lead {
    margin-left: 0;
    font-size: 17px;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .section {
    margin-top: 52px;
  }
  .section > h2,
  .section-head h2,
  .request-intro h2 {
    font-size: 26px;
  }
  .plans,
  .facts,
  .enterprise {
    grid-template-columns: minmax(0, 1fr);
  }
  .audience {
    min-height: 0;
  }
  .enterprise {
    padding: 22px;
  }
  .request-card {
    padding: 20px;
  }
  .request-form .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .fineprint {
    text-align: left;
  }
  .site-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---- Exemple d’appel (sous l’accroche) ------------------------------------------ */
.sample {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 40px 0 0;
  border: 0.5px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  text-align: left;
  overflow: hidden;
}
.sample-col {
  min-width: 0;
  padding: 18px 22px 20px;
}
.sample-col + .sample-col {
  border-left: 0.5px solid var(--line);
  background: var(--surface-2);
}
.sample-title {
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
}
.sample pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
}
@media (max-width: 640px) {
  .sample {
    grid-template-columns: minmax(0, 1fr);
  }
  .sample-col + .sample-col {
    border-left: 0;
    border-top: 0.5px solid var(--line);
  }
}

/* Téléphone : la colonne des critères reste visible quand le tableau défile. */
@media (max-width: 760px) {
  .compare th[scope="row"],
  .compare tr.group th,
  .compare thead th.corner {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
  }
  .compare th[scope="row"] {
    min-width: 150px;
    box-shadow: 0.5px 0 0 var(--line);
  }
}
