/* Liberty Jail — pages publiques (accueil, modèles, docs, tarifs, parrainage...).
   S'appuie sur base.css : uniquement des variables, aucune couleur en dur (sauf blanc sur rouge). */

:root { --wrap: 1200px; --gutter: 24px; --nav-h: 64px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body.site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
body.site main { flex: 1; position: relative; z-index: 1; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(820px + var(--gutter) * 2); }

/* ---------- Lignes guides (pointillés verticaux + traits horizontaux, comme le site de référence) ---------- */
.guides { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.guides > div { height: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; position: relative; }
.guides > div::before, .guides > div::after { content: ""; position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--border); }
.guides > div::before { left: calc(var(--gutter) - 1px); }
.guides > div::after { right: var(--gutter); }
.hline { height: 0; border-top: 1px dashed var(--border); position: relative; z-index: 1; }

/* Petits carrés aux coins des blocs encadrés */
[data-corners] { position: relative; }
.cm { position: absolute; width: 7px; height: 7px; border: 1px solid var(--border-strong); background: var(--bg); z-index: 3; pointer-events: none; }
.cm.tl { top: -4px; left: -4px; } .cm.tr { top: -4px; right: -4px; }
.cm.bl { bottom: -4px; left: -4px; } .cm.br { bottom: -4px; right: -4px; }

/* ---------- En-tête (verre dépoli, collant) ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background .3s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .bar { height: var(--nav-h); display: flex; align-items: center; gap: 20px; padding: 0 calc(var(--gutter) + 22px); max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; }
.site-header .brand { flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
.site-header .right { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav > .dd > button {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease);
}
.nav > a:hover, .nav > .dd > button:hover, .nav > .dd.open > button { color: var(--text); }
.nav > a.active { color: var(--text); }
.nav .dd { position: relative; }
.nav .dd > button .icon { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.nav .dd.open > button .icon { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 300px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--text-2); transition: background .15s, color .15s; }
.dd-panel a:hover { background: var(--hover); color: var(--text); }
.dd-panel a .vendor-logo { width: 22px; height: 22px; border: 0; background: none; }
.dd-panel a .vendor-logo svg { width: 15px; height: 15px; }
.dd-panel a .tag-preview { margin-left: auto; }
.dd-panel .dd-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 6px; padding: 10px 10px 6px; font-size: 13px; color: var(--muted); }
.dd-panel .dd-foot:hover { color: var(--text); background: none; }
.dd-panel .dd-foot .icon { width: 15px; height: 15px; }
.dd-panel .dd-empty { padding: 12px 10px; font-size: 13px; color: var(--muted); }
.btn-console { height: 34px; padding: 0 14px; border-radius: var(--r-md); font-size: 14px; }
.menu-btn { display: none; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .site-header .bar { padding: 0 var(--gutter); }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: block; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); border-top: 1px solid transparent; }
  .site-header.menu-open .mobile-nav { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; border-top-color: var(--border); }
  .mobile-nav .inner { padding: 10px var(--gutter) 22px; display: flex; flex-direction: column; }
  .mobile-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 16px; color: var(--text); }
  .mobile-nav .sub a { font-size: 14px; color: var(--text-2); padding: 9px 4px 9px 14px; }
  .mobile-nav .sub a .vendor-logo { width: 20px; height: 20px; border: 0; background: none; }
  .mobile-nav .sub a .vendor-logo svg { width: 14px; height: 14px; }
  .mobile-nav .label-sm { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); padding: 16px 4px 4px; }
}
@media (max-width: 480px) { .site-header .btn-console { padding: 0 11px; } }

/* ---------- Titres et textes ---------- */
.display { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5vw, 68px); line-height: 1.03; letter-spacing: -0.035em; }
.display mark, .h-sec mark { background: var(--red); color: #fff; padding: 0 .1em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h-sec { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); letter-spacing: -0.3px; font-weight: 400; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.inline-code { font-family: var(--mono); font-size: .88em; letter-spacing: 0; color: var(--text); background: var(--surface-3); border-radius: 5px; padding: 1px 6px; word-break: break-all; }
.ulink { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--border-strong); transition: text-decoration-color .2s; }
.ulink:hover { text-decoration-color: var(--red); }

/* ---------- Bloc héros encadré ---------- */
.hero-zone { padding: 18px 0 0; }
.hero-box {
  position: relative; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 85% 0%, var(--red-soft), transparent 55%), linear-gradient(180deg, var(--surface), var(--bg-elev));
}
.hero-box .grid-bg { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 56px 56px 52px; }
.hero-inner .lede { margin-top: 26px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-ctas .btn { height: 46px; padding: 0 18px; font-size: 15px; border-radius: var(--r-md); }
.hero-ctas .btn .vsvg svg, .vsvg svg { width: 17px; height: 17px; }
.btn .arrow { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.wave { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none; color: var(--faint); opacity: .55; overflow: hidden; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.wave svg { width: 100%; height: 100%; }

/* Bande du bas du héros */
.strip { position: relative; display: grid; border-top: 1px solid var(--border); background: var(--bg-elev); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.strip > * { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 22px; border-left: 1px solid var(--border); font-size: 14px; color: var(--text-2); min-width: 0; }
.strip > *:first-child { border-left: 0; }
.strip .muted { font-size: 13px; }
.strip .val { margin-left: auto; white-space: nowrap; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.strip .val small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 3px; }
.strip a { transition: background .2s var(--ease), color .2s; }
.strip a:hover { background: var(--hover); color: var(--text); }
.strip .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .vsvg { color: var(--text); display: inline-flex; }
.strip .active-cell { background: var(--surface); color: var(--text); }
.strip-home { grid-template-columns: 1.05fr 1.2fr 1.2fr 1.2fr .8fr; }
.pay-icons { display: inline-flex; gap: 8px; color: var(--muted); }
.pay-icons svg { width: 15px; height: 15px; }

/* ---------- Terminal animé ---------- */
.term { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.term-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.term-head .dots { display: inline-flex; gap: 6px; }
.term-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.term-head .mid { flex: 1; text-transform: uppercase; }
.term-head .model { letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.term-body { padding: 16px 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; letter-spacing: 0; color: var(--text-2); height: 300px; overflow: hidden; }
.term-body .ln { margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; animation: fade .3s var(--ease); }
.term-body .ln.ask { color: var(--text); }
.term-body .ln.ask::before { content: "› "; color: var(--red-text); }
.term-body .ln.think { color: var(--faint); font-style: italic; }
.term-body .ln.tool { color: var(--muted); }
.term-body .ln.tool b { font-weight: 400; color: var(--red-text); margin-right: 8px; }
.term-body .ln.out { color: var(--text); }
.term-body .ln.out code { color: var(--green); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--red-text); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-foot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0; }
.term-foot .spacer { flex: 1; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; padding: 0 22px; margin-bottom: 40px; }
.sec-head .lede { font-size: 17px; max-width: 520px; }
.sec-head.stack { grid-template-columns: 1fr; gap: 14px; }
.inset { padding: 0 22px; }

/* Grille de 3 (bordures fines communes) */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.fgrid > * { padding: 34px 32px 36px; border-left: 1px solid var(--border); transition: background .3s var(--ease); }
.fgrid > *:first-child { border-left: 0; }
.fgrid > *:hover { background: var(--surface); }
.fgrid h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.3px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.fgrid h3 .ic { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red-text); flex: none; }
.fgrid h3 .ic .icon { width: 16px; height: 16px; }
.fgrid p { color: var(--muted); line-height: 1.6; }
.fgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fgrid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fgrid .step { font-family: var(--mono); font-size: 12px; color: var(--red-text); letter-spacing: 1px; margin-bottom: 18px; display: block; }

/* Panneau générique (carte encadrée) */
.panel { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-head .unit { font-size: 13px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ---------- Tableau des modèles ---------- */
.models-block + .models-block { margin-top: 72px; }
.models-block .mb-title { display: flex; align-items: baseline; gap: 10px; }
.models-block .mb-title h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.4px; }
.models-block .mb-title .n { color: var(--muted); font-size: 14px; }
.models-block .mb-sub { color: var(--muted); margin-top: 6px; }
.mb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.mb-tools .search { width: 240px; margin-left: auto; }
.mb-tools .search .icon { width: 15px; height: 15px; }
.mb-tools .unit { font-size: 13px; color: var(--muted); white-space: nowrap; }
.mtable { font-size: 14px; }
.mtable th { padding: 14px 14px; }
.mtable td { padding: 16px 14px; }
.mtable th:first-child, .mtable td:first-child { padding-left: 0; }
.mtable th:last-child, .mtable td:last-child { padding-right: 0; }
.mtable .mcell { display: flex; align-items: center; gap: 14px; min-width: 270px; }
.mtable .mname { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; color: var(--text); }
.mtable .mname .icon { width: 14px; height: 14px; color: var(--muted); }
.mtable a.mname:hover { color: var(--red-text); }
.mid-copy { display: inline-block; margin-top: 3px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0; cursor: copy; background: none; border: 0; padding: 0; transition: color .15s; }
.mid-copy:hover { color: var(--text); }
.mtable .p { text-align: right; font-family: var(--mono); font-size: 13.5px; letter-spacing: 0; white-space: nowrap; color: var(--text); font-weight: 500; }
.mtable .p .strike { font-weight: 400; margin-right: 6px; }
.mtable .p .green { color: var(--green); }
.mtable .m { text-align: right; font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.mtable .m.blue { color: var(--blue); }
.mtable .disc { text-align: right; font-family: var(--mono); font-size: 13px; letter-spacing: 0; white-space: nowrap; color: var(--faint); }
.mtable .disc.on { color: var(--green); }
.mtable th.r, .mtable td.r { text-align: right; }
.mtable .mods { display: flex; gap: 5px; justify-content: flex-end; }
.mtable tbody tr { cursor: pointer; }
.mtable tr.soon { opacity: .5; }
.mtable tr.soon:hover { opacity: .75; }
.mtable .status { white-space: nowrap; }
.mtable .empty-row td { text-align: center; color: var(--muted); padding: 34px 0; cursor: default; }
.mtable .empty-row:hover { background: none; }

/* ---------- Bloc de code (complément de .code dans base.css) ---------- */
.code { position: relative; }
.code-tabs { min-height: 41px; }
.code-tabs .lbl { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 8px 2px 10px; letter-spacing: .5px; }
.code-tabs .copy-btn { margin-left: auto; margin-bottom: 4px; width: 30px; height: 30px; }
.code-tabs .copy-btn .icon { width: 15px; height: 15px; }
.code pre { max-height: 560px; }
.code .n { color: var(--blue); }

/* ---------- Questions fréquentes (accordéon) ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 22px 4px; cursor: pointer; font-size: 17px; font-weight: 500; letter-spacing: -0.3px; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-text); }
.faq summary .pm { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex: none; transition: transform .3s var(--ease), background .2s; }
.faq summary .pm .icon { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--surface-3); color: var(--text); }
.faq .ans { padding: 0 52px 24px 4px; color: var(--muted); line-height: 1.65; max-width: 760px; }
.faq .ans p + p { margin-top: 10px; }

/* ---------- Appel final ---------- */
.cta-box { position: relative; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; padding: 72px 40px; text-align: center; background: radial-gradient(80% 120% at 50% 0%, var(--red-soft), transparent 70%), var(--surface); }
.cta-box .h-sec { max-width: 760px; margin: 0 auto; }
.cta-box .lede { max-width: 560px; margin: 18px auto 0; font-size: 17px; }
.cta-box .hero-ctas { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); background: var(--bg); margin-top: 40px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: 56px 22px 40px; }
.site-footer .tagline { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 280px; line-height: 1.55; }
.site-footer .pay { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 6px 12px; }
.site-footer h4 { font-size: 12px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer li a { font-size: 14px; color: var(--text-2); transition: color .15s; display: inline-flex; align-items: center; gap: 6px; }
.site-footer li a:hover { color: var(--red-text); }
.site-footer li a .icon { width: 13px; height: 13px; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 22px 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--faint); }

/* ---------- Pages de contenu (texte long) ---------- */
.page-hero { padding: 72px 22px 40px; }
.page-hero .lede { margin-top: 18px; max-width: 680px; }
.page-hero .display { font-size: clamp(38px, 5.4vw, 64px); }
.prose { max-width: 760px; color: var(--text-2); line-height: 1.7; font-size: 16px; }
.prose h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.4px; margin: 44px 0 12px; color: var(--text); scroll-margin-top: 90px; }
.prose h3 { font-size: 18px; font-weight: 500; margin: 28px 0 8px; color: var(--text); scroll-margin-top: 90px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.prose a:not(.btn):hover { text-decoration-color: var(--red); }
.prose .code { margin: 14px 0 22px; }
.prose .table-wrap { margin: 14px 0 22px; border: 1px solid var(--border); border-radius: var(--r-md); }
.prose .table { font-size: 14px; }
.prose .table th, .prose .table td { padding: 11px 14px; }
.note { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-left: 2px solid var(--red); border-radius: var(--r-md); background: var(--surface); font-size: 14.5px; color: var(--text-2); margin: 16px 0 22px; line-height: 1.6; }
.note .icon { color: var(--red-text); margin-top: 2px; }
.legal-meta { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* ---------- Docs : barre latérale + contenu ---------- */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 48px 22px 40px; }
.docs-side { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; }
.docs-side .grp { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); margin: 18px 0 6px 10px; }
.docs-side .grp:first-child { margin-top: 0; }
.docs-side a { display: block; padding: 6px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--muted); border-left: 2px solid transparent; transition: color .15s, background .15s; }
.docs-side a:hover { color: var(--text); background: var(--hover); }
.docs-side a.active { color: var(--text); font-weight: 600; background: var(--surface); }
.docs-main { min-width: 0; }
.docs-main .prose { max-width: 820px; }
.docs-main section { scroll-margin-top: 90px; padding-bottom: 12px; }
.docs-main section + section { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 4px; }
.docs-jump { display: none; }
.method { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: 0; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-elev); margin: 4px 0 14px; max-width: 100%; overflow-x: auto; white-space: nowrap; }
.method b { color: var(--green); font-weight: 600; }
.method b.post { color: var(--red-text); }
.params { width: 100%; }
.params td:first-child { font-family: var(--mono); font-size: 13px; color: var(--text); white-space: nowrap; letter-spacing: 0; }
.params td:nth-child(2) { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; letter-spacing: 0; }
@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; }
  .docs-side { display: none; }
  .docs-jump { display: block; position: sticky; top: var(--nav-h); z-index: 5; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 10px 0; margin-bottom: 10px; }
}

/* ---------- Fiche d'un modèle ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 32px 22px 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs .icon { width: 13px; height: 13px; }
.mhead { display: flex; gap: 22px; align-items: flex-start; padding: 26px 22px 0; }
.mhead .vendor-logo { width: 64px; height: 64px; border-radius: 14px; }
.mhead .vendor-logo svg { width: 32px; height: 32px; }
.mhead h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.03em; line-height: 1.08; }
.mhead .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.mhead .desc { color: var(--muted); margin-top: 16px; max-width: 700px; font-size: 16.5px; line-height: 1.6; }
.mhead .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.id-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-elev); font-family: var(--mono); font-size: 13px; letter-spacing: 0; color: var(--text); cursor: copy; max-width: 100%; }
.id-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-chip .icon { width: 15px; height: 15px; color: var(--muted); }
.id-chip:hover { border-color: var(--border-strong); }
.badge-plain { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); font-size: 12px; font-weight: 500; color: var(--text-2); }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pcard { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 22px 22px 20px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.pcard .k { font-size: 13px; color: var(--muted); }
.pcard .v { font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.pcard .v.green { color: var(--green); }
.pcard .was { font-family: var(--mono); font-size: 13px; letter-spacing: 0; margin-top: 2px; min-height: 20px; }
.pcard .u { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.specs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.specs > div { padding: 20px 20px; border-left: 1px solid var(--border); min-width: 0; }
.specs > div:first-child { border-left: 0; }
.specs .k { font-size: 12.5px; color: var(--muted); }
.specs .v { font-size: 19px; font-weight: 500; margin-top: 6px; letter-spacing: -0.3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.specs .v .modality { width: 26px; height: 26px; }
.notfound { text-align: center; padding: 120px 22px; }
.notfound .big { font-family: var(--mono); font-size: 14px; color: var(--red-text); letter-spacing: 2px; }
.notfound h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 500; margin-top: 14px; }
.notfound p { color: var(--muted); margin-top: 12px; }
.notfound .hero-ctas { justify-content: center; }

/* ---------- Calculateur parrainage ---------- */
.calc { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.calc .row2 { display: grid; grid-template-columns: 1fr 1fr; }
.calc .row2 > div { padding: 22px 26px; border-left: 1px solid var(--border); min-width: 0; }
.calc .row2 > div:first-child { border-left: 0; }
.calc .row2 + .row2 { border-top: 1px solid var(--border); }
.calc .k { font-size: 13px; color: var(--muted); }
.calc .v { font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -0.03em; margin: 4px 0 10px; font-variant-numeric: tabular-nums; transition: color .2s; }
.calc .v.win { color: var(--red-text); }
.calc .verdict { border-top: 1px solid var(--border); padding: 16px 26px; font-size: 14px; color: var(--text-2); }
.calc .winner-tag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-family: var(--mono); letter-spacing: 1px; color: var(--red-text); vertical-align: 3px; }
input[type=range].range { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; margin: 0; }
input[type=range].range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--text) var(--pct, 0%), var(--border-strong) var(--pct, 0%)); }
input[type=range].range::-moz-range-track { height: 3px; border-radius: 3px; background: var(--border-strong); }
input[type=range].range::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--text); }
input[type=range].range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--border-strong); margin-top: -7.5px; transition: transform .15s; }
input[type=range].range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--border-strong); }
input[type=range].range:active::-webkit-slider-thumb { transform: scale(1.15); }
.strip-aff { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ways td, .ways th { vertical-align: top; }
.ways td { padding: 22px 16px; line-height: 1.55; color: var(--text-2); }
.ways td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; padding-left: 0; font-size: 16px; }
.ways th:first-child { padding-left: 0; }
.ways td b { color: var(--text); }
.ways tbody tr { cursor: default; }
.ways tbody tr:hover { background: none; }

/* ---------- Carte de connexion ---------- */
.auth-zone { display: flex; align-items: center; justify-content: center; padding: 64px var(--gutter) 80px; min-height: calc(100vh - var(--nav-h) - var(--banner-h) - 120px); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 38px 34px 30px; animation: pop .35s var(--ease); }
.auth-card .mark { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-card .mark .logo svg { width: 34px; height: 34px; }
.auth-card .mark .logo .name, .auth-card .mark .logo .ai { display: none; }
.auth-card h1 { text-align: center; font-size: 26px; font-weight: 600; letter-spacing: -0.5px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.auth-card .input { height: 44px; font-size: 15px; }
.auth-card .btn-lg { margin-top: 4px; }
.auth-card .err { display: none; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-md); background: var(--red-soft); border: 1px solid var(--red-line); color: var(--text); font-size: 13.5px; line-height: 1.45; }
.auth-card .err.show { display: flex; }
.auth-card .err .icon { color: var(--red-text); width: 16px; height: 16px; margin-top: 1px; }
.auth-card .field-err { font-size: 12.5px; color: var(--red-text); display: none; }
.auth-card .field.bad .input { border-color: var(--red-line); }
.auth-card .field.bad .field-err { display: block; }
.auth-card .switch { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-card .switch a { color: var(--red-text); font-weight: 500; }
.auth-card .switch a:hover { text-decoration: underline; }
.auth-card .foot-note { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.auth-card .foot-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-wrap .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; }
.ref-note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); background: var(--green-soft); color: var(--text); font-size: 13px; }
.ref-note .icon { color: var(--green); width: 16px; height: 16px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Estimateur de coût (tarifs) ---------- */
.est { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.est .in { padding: 24px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.est .in .full { grid-column: 1 / -1; }
.est .out { padding: 24px 26px; border-left: 1px solid var(--border); background: var(--bg-elev); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.est .out .v { font-family: var(--font-display); font-size: 40px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.est .out .line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 44px 32px 40px; gap: 36px; }
  .strip-home { grid-template-columns: 1fr 1fr; }
  .strip-home > * { border-top: 1px solid var(--border); }
  .strip-home > *:nth-child(-n+2) { border-top: 0; }
  .strip-home > *:nth-child(odd) { border-left: 0; }
  .strip-home > *:last-child { grid-column: 1 / -1; border-left: 0; }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs > div { border-top: 1px solid var(--border); }
  .specs > div:nth-child(-n+3) { border-top: 0; }
  .specs > div:nth-child(3n+1) { border-left: 0; }
  .fgrid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid.four > *:nth-child(3) { border-left: 0; }
  .fgrid.four > *:nth-child(n+3) { border-top: 1px solid var(--border); }
  .site-footer .top { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer .top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .fgrid, .fgrid.two, .fgrid.four { grid-template-columns: 1fr; }
  .fgrid > *, .fgrid.four > * { border-left: 0 !important; border-top: 1px solid var(--border); padding: 28px 24px; }
  .fgrid > *:first-child { border-top: 0; }
  .pcards { grid-template-columns: 1fr; }
  .est { grid-template-columns: 1fr; }
  .est .out { border-left: 0; border-top: 1px solid var(--border); }
  .strip-aff { grid-template-columns: 1fr; }
  .strip-aff > * { border-left: 0; border-top: 1px solid var(--border); }
  .strip-aff > *:first-child { border-top: 0; }
  .mb-tools .search { width: 100%; margin-left: 0; order: 3; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero-inner { padding: 32px 20px 30px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .strip-home { grid-template-columns: 1fr; }
  .strip-home > * { border-left: 0 !important; border-top: 1px solid var(--border) !important; }
  .strip-home > *:first-child { border-top: 0 !important; }
  .sec-head, .inset, .page-hero, .crumbs, .mhead, .docs { padding-left: 4px; padding-right: 4px; }
  .mhead { flex-direction: column; gap: 16px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs > div { border-left: 1px solid var(--border) !important; border-top: 1px solid var(--border) !important; }
  .specs > div:nth-child(odd) { border-left: 0 !important; }
  .specs > div:nth-child(-n+2) { border-top: 0 !important; }
  .calc .row2 > div { padding: 18px 18px; }
  .calc .v { font-size: 30px; }
  .cta-box { padding: 52px 20px; }
  .term-body { height: 330px; font-size: 12px; }
  .faq .ans { padding-right: 4px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; padding: 44px 4px 32px; }
  .site-footer .bottom { padding: 18px 4px 28px; }
  .auth-card { padding: 30px 22px 24px; }
  .est .in { grid-template-columns: 1fr; }
}

/* ---------- Accueil : morceaux en plus ---------- */
.hero-top { position: relative; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; padding: 0 22px; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.steps li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.steps .no { font-family: var(--mono); font-size: 12px; color: var(--red-text); letter-spacing: 1px; padding-top: 3px; flex: none; width: 24px; }
.steps b { display: block; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.steps p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 44px 44px; border: 1px solid var(--border); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--surface), var(--bg-elev)); }
.teaser .lede { font-size: 17px; margin-top: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.stats > div { padding: 22px 22px; border-left: 1px solid var(--border); }
.stats > div:first-child { border-left: 0; }
.stats .k { font-size: 13px; color: var(--muted); }
.stats .v { font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: -0.03em; margin-top: 4px; }
.stats .v.red { color: var(--red-text); }
.stats .u { font-size: 12.5px; color: var(--faint); margin-top: 4px; }
@media (max-width: 960px) {
  .split, .teaser { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .teaser { padding: 32px 24px; }
}
@media (max-width: 600px) {
  .split { padding: 0 4px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-left: 0; border-top: 1px solid var(--border); }
  .stats > div:first-child { border-top: 0; }
}

/* Grille de 3 sur deux rangées (parrainage, revendeurs) */
@media (min-width: 821px) {
  .fgrid.rows > *:nth-child(3n+1) { border-left: 0; }
  .fgrid.rows > *:nth-child(n+4) { border-top: 1px solid var(--border); }
}
.fgrid h3 .ic svg.icon { width: 16px; height: 16px; }

/* Connexion : lien « mot de passe oublié », message de réussite */
.auth-card .lbl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.auth-card .lbl-row a { font-size: 13px; color: var(--red-text); font-weight: 500; }
.auth-card .lbl-row a:hover { text-decoration: underline; }
.auth-card .ok { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--green-soft); border: 1px solid var(--border); color: var(--text); font-size: 14px; line-height: 1.5; margin-top: 26px; }
.auth-card .ok .icon { color: var(--green); width: 17px; height: 17px; margin-top: 1px; }
.auth-card .err a, .auth-card .ok a { color: var(--red-text); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.auth-card .after { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }

/* Tableau des modèles resserré (11 colonnes dans 1200 px) */
.mtable th { padding: 13px 9px; }
.mtable td { padding: 15px 9px; }
.mtable .mcell { min-width: 250px; gap: 12px; }
.mtable .mname { font-size: 14px; line-height: 1.35; }
.mid-copy { display: block; text-align: left; white-space: nowrap; }
.mtable .p .strike, .mtable .p .green { display: block; }
.mtable .p .strike { margin-right: 0; font-size: 12px; }
.mtable .status, .mtable .m, .mtable .disc { white-space: nowrap; }
