/* ============================================================
   pricing.html, calquee sur attio.com/pricing : titre centre, bascule
   Mensuel / Annuel, 3 cartes, bandeau des plateformes, tableau comparatif
   (en-tete et titres de section collants), FAQ. Nav, pied de page, jetons et
   boutons viennent de help.css (composants de lp-alt-1).
   ============================================================ */
.pr { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* ---- En-tete ---- */
.pr-hero { padding-top: 116px; text-align: center; }
.pr-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 60px; letter-spacing: -.015em; color: var(--ink); }
.pr-hero p { max-width: 460px; margin: 16px auto 0; font: 500 20px/26px var(--font-body); letter-spacing: -.01em; color: var(--text); }

/* ---- Bascule Mensuel / Annuel ---- */
.pr-cycle { display: inline-flex; padding: 2px; border-radius: 12px; background: #f1f2f4; }
.pr-cycle button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent;
  font: 500 14px/20px var(--font-body); color: var(--muted); cursor: pointer; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.pr-cycle button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 0 0 .5px rgba(16,24,40,.06); }
.pr-cycle button:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.pr-cycle .cycle-save { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--link); }
.pr-hero .pr-cycle { margin-top: 34px; }

/* ---- Cartes ---- */
.pr-frame { position: relative; max-width: 1240px; margin: 64px auto 0; padding: 0 46px; }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tier-card { position: relative; display: flex; flex-direction: column; padding: 21px 23px 23px; border: 1px solid #e9ebef; border-radius: 20px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease; }
.tier-card.is-featured { border-color: #b3c6f6; box-shadow: 0 0 0 3px rgba(79,124,255,.06); }
.tier-card.is-preselected { box-shadow: 0 0 0 3px rgba(79,124,255,.18); }
.tier-name { font: 500 24px/30px var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.tier-price-row { display: flex; align-items: center; gap: 10px; margin-top: 24px; min-height: 44px; }
.tier-price { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 44px; letter-spacing: -.02em; color: var(--ink); }
.tier-promo { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid #c9d8fb; border-radius: 8px; background: #eef3ff;
  font: 500 12px/18px var(--font-body); color: #2f5fe3; }
.tier-promo[hidden] { display: none; }
.tier-promo svg { display: none; }
.tier-billed { margin-top: 4px; min-height: 18px; font: 500 12px/18px var(--font-body); color: var(--muted); }
.tier-desc { margin-top: 24px; font: 600 14px/20px var(--font-body); color: var(--text); }
.tier-features { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tier-features li { display: flex; align-items: flex-start; gap: 10px; line-height: 20px; font: 500 14px/20px var(--font-body); color: #4b5361; }
/* Coche dans un petit carre gris, comme sur attio.com/pricing */
.feat-check { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #f1f2f4; color: #6f7988; }
.feat-check svg { width: 12px; height: 12px; }
.tier-cta { margin-top: auto; padding-top: 28px; }
a.tier-btn { text-decoration: none; }
.tier-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 36px; padding: 0 12px; border: 1px solid #d3d7de; border-radius: 10px;
  background: #fff; font: 500 14px/20px var(--font-body); color: var(--ink); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .2s ease; }
.tier-btn:hover:not(:disabled) { border-color: #9aa3b1; }
.tier-btn:disabled { cursor: default; opacity: .6; }
.tier-btn.is-primary { border: 0; color: #fff; font-family: var(--font-body); font-weight: 500;
  background: radial-gradient(90% 60% at 50% 0%, rgba(255,255,255,.05), rgba(255,255,255,0)), var(--navy);
  box-shadow: 0 8px 8px rgba(0,0,0,.03), 0 4px 4px rgba(0,0,0,.03), 0 2px 2px rgba(0,0,0,.03), inset 0 0 16px rgba(255,255,255,.1), inset 0 0 8px rgba(255,255,255,.2), inset 0 .5px 0 rgba(255,255,255,.1); }
.tier-btn.is-primary:hover:not(:disabled) { background-color: #0a2585; transform: translateY(-1px); }
.tier-btn:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }
.tier-note { min-height: 18px; margin-top: 8px; font: 500 12px/18px var(--font-body); color: var(--muted); text-align: center; }
.tier-note.is-current { color: #1f7a4d; }
.pricing-msg { display: none; max-width: 640px; margin: 24px auto 0; padding: 12px 16px; border-radius: 12px; background: var(--fill); border: 1px solid var(--line-2);
  font: 500 14px/20px var(--font-body); color: var(--text); text-align: center; }
.pricing-msg.is-visible { display: block; }
.pricing-msg.is-error { background: #fff4f4; border-color: #f5d0d0; color: #9b1c1c; }
.pricing-msg.is-success { background: #f1faf5; border-color: #cfe9da; color: #1f6b43; }

/* ---- Bandeau des plateformes ---- */
.pr-logos { margin-top: 72px; padding: 0 0 72px; text-align: center; }
.pr-logos p { font: 500 14px/20px var(--font-body); color: var(--muted); }
.pr-logos ul { list-style: none; margin: 28px auto 0; padding: 0; max-width: 1180px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 36px; }
.pr-logos li { display: inline-flex; align-items: center; gap: 10px; font: 600 20px/28px var(--font-display); letter-spacing: -.02em; color: #3d4450; }
.pr-logos svg, .pr-logos img { width: 22px; height: 22px; flex: none; }
.pr-logos img { filter: grayscale(1) contrast(1.1); opacity: .85; }

/* ---- Tableau comparatif ---- */
.cmp { max-width: 1180px; margin: 0 auto; padding-top: 44px; }
.cmp-head { position: sticky; top: var(--nav-h); z-index: 5; display: grid; grid-template-columns: 240px repeat(4, minmax(0, 1fr)); gap: 0 24px; padding: 40px 0 24px; background: #fff; }
.cmp-head .cmp-cycle { align-self: end; }
.cmp-head .cmp-cycle p { margin-bottom: 12px; font: 500 12px/18px var(--font-body); color: var(--muted); max-width: 120px; }
.cmp-plan h3 { display: flex; align-items: center; gap: 8px; font: 500 24px/30px var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.cmp-plan .badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid #c9d8fb; border-radius: 8px; background: #eef3ff; font: 500 12px/18px var(--font-body); color: #2f5fe3; }
.cmp-plan .cmp-price { min-height: 36px; margin: 6px 0 12px; font: 500 12px/18px var(--font-body); color: var(--muted); }
.cmp-sec { margin-top: 56px; }
.cmp-sec:first-of-type { margin-top: 16px; }
.cmp-sec h2 { position: sticky; top: calc(var(--nav-h) + var(--cmp-head, 200px)); z-index: 4; padding: 16px 0; border-bottom: 1px solid #edeff3; background: #fff;
  font: 500 18px/24px var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.cmp-row { display: grid; grid-template-columns: 240px repeat(4, minmax(0, 1fr)); gap: 0 24px; align-items: stretch; border-bottom: 1px solid #edeff3; }
.cmp-row > div { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 12px; text-align: center; font: 500 14px/20px var(--font-body); color: var(--text); }
.cmp-row > .cmp-label { justify-content: space-between; padding-left: 0; text-align: left; color: var(--ink); }
.cmp-row > div.is-hl, .cmp-head .cmp-plan.is-hl { position: relative; }
.cmp-row > div.is-hl { background: var(--fill); }
.cmp-yes { width: 14px; height: 14px; color: #505967; }
.cmp-no { width: 18px; height: 18px; color: #b8bfca; }
.cmp-tip { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 8px; border: 0; padding: 0; background: none; color: #cfd4dc; cursor: help; }
.cmp-tip svg { width: 14px; height: 14px; }
.cmp-tip:hover, .cmp-tip:focus-visible { color: var(--muted); outline: none; }
.cmp-tip span { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 10; width: 240px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff;
  font: 500 12px/17px var(--font-body); text-align: left; opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; pointer-events: none; }
.cmp-tip:hover span, .cmp-tip:focus-visible span { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cmp-sub { color: var(--muted); font-size: 12px; }

/* ---- FAQ ---- */
.pr-faq { max-width: 672px; margin: 0 auto; padding: 160px 0 160px; }
.pr-faq h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 44px; letter-spacing: -.015em; color: var(--ink); margin-bottom: 24px; }
.pr-faq details { border-bottom: 1px solid #edeff3; }
.pr-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; list-style: none; cursor: pointer;
  font: 500 16px/22px var(--font-body); color: var(--ink); }
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after { content: "[+]"; flex: none; font: 400 13px/1 var(--font-mono); color: var(--faint); }
.pr-faq details[open] summary::after { content: "[-]"; }
.pr-faq summary:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 4px; border-radius: 4px; }
.pr-faq details p { padding: 0 0 22px; font: 400 15px/24px var(--font-body); color: var(--muted); }
.pr-faq details a { color: var(--link); }

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .pr-frame { padding: 40px 0; }
  .tiers { grid-template-columns: minmax(0, 420px); justify-content: center; }
  .cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cmp { min-width: 980px; padding-right: 16px; }
  .cmp-head { position: static; }
  .cmp-sec h2 { position: static; }
}
@media (max-width: 640px) {
  .pr { padding: 0 16px; }
  .pr-hero { padding-top: 72px; }
  .pr-hero h1 { font-size: 40px; line-height: 44px; }
  .pr-hero p { font-size: 18px; line-height: 24px; }
  .pr-logos ul { gap: 20px 32px; }
  .pr-logos li { font-size: 17px; }
  .pr-faq { padding: 96px 0; }
  .pr-faq h2 { font-size: 32px; line-height: 36px; }
}
/* Audit mobile 2026-10-01 : le tableau defile a l'horizontale ; la colonne des
   libelles reste collee a gauche, sinon on ne sait plus quelle ligne on lit.
   Les infobulles s'ouvrent aussi au toucher (classe is-open, voir pricing.html) :
   iOS ne donne pas le focus a un bouton touche, :focus-visible ne suffisait pas. */
.cmp-tip.is-open { color: var(--muted); }
.cmp-tip.is-open span { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cmp-swipe { display: none; }
@media (max-width: 640px) {
  .cmp { min-width: 720px; padding-right: 0; }
  .cmp-head, .cmp-row { grid-template-columns: 150px repeat(4, minmax(118px, 1fr)); gap: 0 12px; }
  .cmp-head .cmp-cycle, .cmp-row > .cmp-label { position: sticky; left: 0; z-index: 3; background: #fff; box-shadow: 8px 0 12px -10px rgba(16,24,40,.25); }
  .cmp-row > .cmp-label { padding-right: 8px; font-size: 13px; line-height: 18px; }
  .cmp-row > div { font-size: 13px; }
  .cmp-tip { width: 32px; height: 32px; margin: -6px -6px -6px 2px; }
  .cmp-tip span { width: 200px; left: 0; transform: translate(0, 4px); }
  .cmp-tip:hover span, .cmp-tip:focus-visible span, .cmp-tip.is-open span { transform: translate(0, 0); }
  .cmp-plan h3 { font-size: 20px; line-height: 26px; }
  .cmp-swipe { display: flex; align-items: center; gap: 6px; margin: 32px 0 0; font: 500 13px/18px var(--font-body); color: var(--muted); }
  .cmp-swipe svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tier-btn, .pr-cycle button, .cmp-tip span { transition-duration: .01s; } }
