/* UltimeBots — pages secondaires (informations légales, 404) dans le thème de l'accueil.
   Chargé après home.css : en-tête, pied, boutons et fond viennent de là. */

body.page main { overflow-x: clip; }

/*
  Bug « bandes noires » sur les côtés :
  sur légal / 404 / stub compte, <main> avait la largeur shell (--shell / 1120px) ET
  overflow-x: clip. L’aura full-bleed (50vw) était donc coupée → gouttières noires.
  Solution : main pleine largeur ; le contenu reste centré ; aura en inset 0.
*/
body.page main.lp,
body.page main.nf.hero {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--pad);
  box-sizing: border-box;
}

/* ── Pages légales ─────────────────────────────────────────────────── */
.lp { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 6rem); }
.lp-aura {
  position: absolute; inset: -140px 0 auto; width: 100%; height: 760px; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent);
}
.lp-body { width: min(1120px, 100%); margin-inline: auto; }
.lp-head { width: min(1120px, 100%); max-width: 46rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-align: center; }
.legal-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0.35rem 0.85rem; border-radius: 999px;
  color: var(--mist); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.lp-head h1 {
  font: 800 clamp(2.5rem, 6vw, 4.6rem)/0.98 var(--font-display); letter-spacing: -0.05em; text-wrap: balance;
  padding: 0 0.06em 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, #ececef 40%, #a9a9b1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.legal-updated { margin-top: 1rem; color: var(--mist-2); font-size: 0.9rem; }

.lp-body { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
/* Sommaire collant, construit par page.js à partir des titres */
.lp-toc { position: sticky; top: 104px; display: grid; gap: 0.1rem; padding-left: 0.9rem; border-left: 1px solid rgb(255 255 255 / 0.08); font-size: 0.86rem; }
.lp-toc:empty { display: none; }
.lp-toc-title { margin: 0 0 0.6rem; color: var(--mist-2); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.lp-toc a { position: relative; display: block; padding: 0.35rem 0; color: var(--mist-2); text-decoration: none; line-height: 1.35; transition: color 0.2s; }
.lp-toc a:hover { color: var(--text); }
.lp-toc a.is-active { color: var(--text); }
.lp-toc a.is-active::before { content: ""; position: absolute; left: calc(-0.9rem - 1px); top: 0.3rem; bottom: 0.3rem; width: 2px; border-radius: 2px; background: var(--text); }

.lp-article { color: var(--mist); font-size: 1.02rem; line-height: 1.75; }
.lp-article > * + * { margin-top: 1rem; }
.lp-article h2 {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgb(255 255 255 / 0.07); scroll-margin-top: 100px;
  color: var(--text); font: 700 clamp(1.25rem, 2vw, 1.5rem)/1.25 var(--font-display); letter-spacing: -0.02em;
}
.lp-article > h2:first-of-type { margin-top: 2.5rem; }
.lp-article h3 { margin-top: 1.8rem; color: var(--text); font: 650 1.08rem/1.3 var(--font-display); }
.lp-article strong { color: var(--text); font-weight: 600; }
.lp-article a { color: var(--text); text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.lp-article a:hover { text-decoration-color: currentColor; }
.lp-article ul, .lp-article ol { padding-left: 1.3rem; }
.lp-article ul { list-style: disc; }
.lp-article ol { list-style: decimal; }
.lp-article li + li { margin-top: 0.4rem; }
.lp-article li::marker { color: var(--mist-2); }
.lp-article table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.lp-article th, .lp-article td { padding: 0.7rem 0.6rem; border-bottom: 1px solid rgb(255 255 255 / 0.07); text-align: left; vertical-align: top; }
.lp-article th { color: var(--text); font-weight: 600; }
.lp-article code { padding: 0.1em 0.35em; border-radius: 6px; background: rgb(255 255 255 / 0.07); color: var(--text); font-size: 0.88em; }
.legal-todo { padding: 0.05em 0.4em; border-radius: 6px; color: var(--gold); background: rgb(var(--gold-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb) / 0.35); font-size: 0.92em; }
/* Liens vers les autres pages légales : pastilles de verre */
.legal-nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3.5rem !important; padding-top: 2rem; border-top: 1px solid rgb(255 255 255 / 0.07); }
.legal-nav-links a {
  padding: 0.55rem 1rem; border-radius: 999px; color: var(--text); font-size: 0.9rem; font-weight: 500; text-decoration: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.03));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), inset 0 0 0 1px rgb(255 255 255 / 0.1); transition: background-color 0.2s;
}
.legal-nav-links a:hover { background-color: rgb(255 255 255 / 0.06); }
.legal-nav-links a[aria-current="page"] { color: #0b0d14; background: #f5f5f4; box-shadow: none; }

@media (max-width: 900px) {
  .lp-body { grid-template-columns: minmax(0, 1fr); }
  .lp-toc { position: static; padding: 1rem 1.1rem; border: 0; border-radius: 18px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07); }
  .lp-toc a.is-active::before { display: none; }
}

/* ── 404 / stub compte ─────────────────────────────────────────────── */
.nf.hero {
  min-height: calc(100vh - 160px); min-height: calc(100svh - 160px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 4rem; padding-bottom: 5rem; text-align: center;
}
.nf .hero-aura {
  inset: -140px 0 auto; width: 100%; height: 1000px;
}
.nf-code {
  font: 800 clamp(7rem, 26vw, 15rem)/0.82 var(--font-display); letter-spacing: -0.07em; padding: 0 0.06em 0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #d4d4d8 45%, #52525b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 30px 60px rgb(0 0 0 / 0.6));
}
.nf h1 { margin-top: 1.2rem; font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--font-display); letter-spacing: -0.03em; }
.nf-lead { margin-top: 0.8rem; color: var(--mist); font-size: 1.05rem; max-width: 30rem; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 2.2rem; }

/* ── Pages SEO : fonctionnalités, Perso (tools/build-seo-pages.js) ─────────── */
.lp-crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin: 0 0 1.1rem; padding: 0; list-style: none; color: var(--mist-2); font-size: 0.85rem; }
.lp-crumbs li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.6; }
.lp-crumbs a { color: var(--mist); text-decoration: none; }
.lp-crumbs a:hover { color: var(--text); }
.lp-lead { margin: 1.25rem auto 0; max-width: 40rem; color: var(--mist); font-size: 1.08rem; line-height: 1.65; text-wrap: pretty; }
.lp-lead code { padding: 0.1em 0.35em; border-radius: 6px; background: rgb(255 255 255 / 0.07); color: var(--text); font-size: 0.9em; }
.lp-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lp-table td:not(:first-child), .lp-table th[scope="col"]:not(:first-child) { white-space: nowrap; }
.lp-table td code { white-space: normal; }
.lp-badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--mist); background: rgb(255 255 255 / 0.07); }
.lp-badge--vip { color: var(--gold); background: rgb(var(--gold-rgb) / 0.12); }
.lp-article h3 a { color: var(--text); }
.lp-cta { margin-top: 3rem !important; padding: 1.6rem; border-radius: 22px; text-align: center; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.lp-cta-title { color: var(--text); font: 700 1.25rem/1.3 var(--font-display); }
.lp-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.1rem !important; }
.lp-article .lp-cta-row a, .lp-cta a { text-decoration: none; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; padding: 0 !important; list-style: none !important; }
.feat-grid li + li { margin-top: 0; }
.feat-card a {
  display: grid; gap: 0.35rem; height: 100%; padding: 1.1rem; border-radius: 18px; text-decoration: none !important;
  background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); transition: background-color 0.2s;
}
.feat-card a:hover { background: rgb(255 255 255 / 0.08); }
.feat-card svg { color: var(--gold); }
.feat-card strong { color: var(--text); }
.feat-card span { color: var(--mist-2); font-size: 0.88rem; line-height: 1.45; }
.lp--seo .lp-body:has(> .lp-article:only-child) { grid-template-columns: minmax(0, 760px); }
/* Boutons dans l'article : garder les couleurs des boutons (le style des liens d'article les écrasait). */
.lp-article a.btn-light { color: #0b0d14; }
.lp-article a.btn-gold { color: #17130a; }
.lp-article a.btn-glass { color: var(--text); }
.lp-article .lp-related { margin-top: 1rem !important; padding-top: 0; border-top: 0; }

/* ── Pages /faq/ et /tarifs/ ── */
.lp-wide { width: min(1120px, 100%); margin: 0 auto clamp(3.5rem, 7vw, 5rem); }
.lp-article .faq-list { margin-top: 0.5rem !important; }
.lp-article .faq-list summary { font-size: clamp(1rem, 1.4vw, 1.12rem); padding-block: 1.1rem; color: var(--text); }
.lp-article .faq-list .faq-a p { padding-bottom: 1.2rem; font-size: 0.98rem; }
.lp-article .faq-list details + details { margin-top: 0; }

/* ── Pages dédiées (fonctionnalités, Perso, hub, Tarifs, FAQ) ─────────────────────────────
   Même grammaire que l'accueil : grand titre en Display, texte à gauche, fiche technique en
   monospace, et la vraie démo Discord quand la page parle d'une fonction (cf. Control/guides/EVITER.md :
   pas de halo, pas de pastilles, pas de filets décoratifs).
   Rayons imbriqués : rayon intérieur = rayon extérieur − marge (voir docs-dev/site/RAYONS.md). */
.lp--seo .lp-head { max-width: none; width: min(1120px, 100%); text-align: left; margin-bottom: clamp(2.2rem, 4vw, 3rem); }
.lp--seo .lp-crumbs ol { justify-content: flex-start; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.lp-eyebrow { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1.1rem; color: var(--mist-2); font: 500 0.78rem/1 var(--font-mono, ui-monospace, "SF Mono", Consolas, monospace); letter-spacing: 0.14em; text-transform: uppercase; }
.lp--seo .lp-head h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 0.95; padding-bottom: 0.1em; }
.lp--seo .lp-lead { margin: 0; max-width: 34rem; font-size: 1.05rem; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.lp-hero-cta .btn { text-decoration: none; }
.lp-hero-cta .ext-ic { opacity: 0.6; }
.lp-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: clamp(2rem, 4vw, 3rem) 0 0; }
.lp-spec dt { color: var(--mist-2); font: 500 0.7rem/1 var(--font-mono, ui-monospace, "SF Mono", Consolas, monospace); letter-spacing: 0.12em; text-transform: uppercase; }
.lp-spec dd { margin: 0.5rem 0 0; color: var(--text); font: 600 1.05rem/1.3 var(--font-display); }
.lp-spec code { font: 500 0.95rem/1 var(--font-mono, ui-monospace, "SF Mono", Consolas, monospace); }
.lp-demo { width: min(1120px, 100%); margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.lp-demo .dc-tabs { justify-content: flex-start; }
@media (max-width: 860px) {
  .lp-hero-grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 560px) {
  .lp-spec dt { font-size: 0.62rem; letter-spacing: 0.08em; }
  .lp-spec dd { font-size: 0.92rem; }
  .lp-hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}
/* Recherche FAQ */
.lp-search {
  --r: 16px; --p: 5px;
  display: flex; align-items: center; gap: 0.6rem; max-width: 30rem; margin-top: 1.5rem; padding: var(--p) var(--p) var(--p) 1rem; border-radius: var(--r);
  color: var(--mist-2); background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  transition: box-shadow 0.2s;
}
.lp-search:focus-within { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.32); }
.lp-search input { flex: 1; min-width: 0; padding: 0.6rem 0.4rem; border: 0; border-radius: calc(var(--r) - var(--p)); background: none; color: var(--text); font: inherit; font-size: 0.95rem; outline: none; }
.lp-search input::-webkit-search-cancel-button { filter: invert(1); opacity: 0.5; }
.lp-search-none { margin-top: 0.8rem; color: var(--mist-2); font-size: 0.9rem; }
.lp-article .is-hidden { display: none !important; }

/* Contenu : étapes numérotées comme le puzzle de l'accueil (01, 02…) */
.lp--seo .lp-article > ol:not([class]) { counter-reset: lp-step; display: grid; gap: 0.2rem; padding: 0; list-style: none; }
.lp--seo .lp-article > ol:not([class]) > li {
  counter-increment: lp-step; position: relative; margin: 0; padding: 0.5rem 0 0.5rem 3rem;
}
.lp--seo .lp-article > ol:not([class]) > li::before { content: counter(lp-step, decimal-leading-zero); position: absolute; left: 0; top: 0.5rem; color: var(--mist-2); font: 500 0.85rem/1.9 var(--font-mono, ui-monospace, "SF Mono", Consolas, monospace); }
.lp--seo .lp-cta { --r: 24px; border-radius: var(--r); padding: 2rem 1.6rem; background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.lp--seo .lp-article > .legal-updated { margin-top: 3rem; font-size: 0.8rem; }
/* FAQ en accordéon dans les pages dédiées */
.lp-article .faq-list { margin-top: 1.2rem; }

/* ══ Audit design 23/11 : pages indépendantes plus aérées ══════════════════════════════════
   - le haut de page n'a plus qu'une phrase (tools/seo-short.js) ; le texte complet ouvre l'article ;
   - tableaux en carte : en-têtes discrets, colonne VIP mise en valeur, coches en pastille ;
   - étapes « Comment ça se passe » en cartes numérotées, encart final plus visible. */
.lp--seo .lp-lead { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); line-height: 1.45; color: #d4d4d8; text-wrap: balance; }
.lp-article > .lp-intro { margin: 0; color: #c8c8cf; font-size: 1.08rem; line-height: 1.7; }
.lp-article > .lp-intro + h2 { margin-top: 2.25rem; }

/* Tableaux */
.lp-table {
  margin-top: 1.25rem !important; border-radius: 18px; overflow-x: auto;
  background: rgb(255 255 255 / 0.025); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.lp-table table { font-size: 0.92rem; }
.lp-table th, .lp-table td { padding: 0.85rem 1rem; border-bottom: 1px solid rgb(255 255 255 / 0.06); vertical-align: middle; }
.lp-table tbody tr:last-child > * { border-bottom: 0; }
.lp-table thead th {
  padding-block: 0.9rem; background: rgb(255 255 255 / 0.03); color: var(--mist-2);
  font: 600 0.68rem/1.2 var(--font-mono, ui-monospace, monospace); letter-spacing: 0.12em; text-transform: uppercase;
}
.lp-table tbody th[scope="row"] { color: #e4e4e7; font-weight: 500; }
.lp-table tbody tr { transition: background-color 0.15s; }
.lp-table tbody tr:hover { background: rgb(255 255 255 / 0.025); }
/* Tableaux comparatifs (Gratuit / VIP) : valeurs centrées, colonne VIP en or */
.lp-table:has(.ic-yes) td, .lp-table:has(.ic-yes) thead th:not(:first-child) { text-align: center; width: 8.5rem; }
.lp-table:has(.ic-yes) td { color: #d4d4d8; font-variant-numeric: tabular-nums; }
.lp-table:has(.ic-yes) td:last-child, .lp-table:has(.ic-yes) thead th:last-child { background: rgb(var(--gold-rgb) / 0.06); }
.lp-table:has(.ic-yes) thead th:last-child { color: var(--gold); }
.lp-table:has(.ic-yes) td:last-child { color: var(--text); font-weight: 600; }
.lp-table .ic-yes, .lp-table .ic-no { width: 22px; height: 22px; padding: 4px; border-radius: 50%; opacity: 1; }
.lp-table .ic-yes, .lp-table td:not(.is-vip) .ic-yes { color: #0b0d14; background: #e4e4e7; }
.lp-table td:last-child .ic-yes { background: var(--gold); }
.lp-table .ic-no { color: var(--mist-2); background: rgb(255 255 255 / 0.05); }
/* Tableau des commandes : la commande ressort, l'accès est aligné à droite */
.lp-table td:first-child code { white-space: nowrap; }
.lp-table:not(:has(.ic-yes)) td:last-child, .lp-table:not(:has(.ic-yes)) thead th:last-child { text-align: right; }

/* Étapes numérotées en cartes */
.lp--seo .lp-article > ol:not([class]) { gap: 0.6rem; margin-top: 1.25rem; }
.lp--seo .lp-article > ol:not([class]) > li {
  padding: 1rem 1.1rem 1rem 3.6rem; border-radius: 14px; color: #d4d4d8;
  background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}
.lp--seo .lp-article > ol:not([class]) > li + li { margin-top: 0; }
.lp--seo .lp-article > ol:not([class]) > li::before {
  left: 1rem; top: 50%; translate: 0 -50%; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%;
  color: var(--gold); background: rgb(var(--gold-rgb) / 0.12); font-size: 0.75rem; line-height: 1; font-weight: 700;
}

/* Encart final */
.lp--seo .lp-cta {
  padding: clamp(2rem, 4vw, 2.75rem) 1.6rem;
  background: radial-gradient(80% 120% at 50% 0%, rgb(var(--gold-rgb) / 0.08), transparent 70%), rgb(255 255 255 / 0.03);
}
.lp--seo .lp-cta-title { font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; }

@media (max-width: 640px) {
  .lp-table th, .lp-table td { padding: 0.7rem 0.75rem; }
  .lp-table table { font-size: 0.86rem; }
  .lp-table:has(.ic-yes) td, .lp-table:has(.ic-yes) thead th:not(:first-child) { width: 5.5rem; }
  .lp--seo .lp-article > ol:not([class]) > li { padding-left: 3.2rem; }
}

/* Titres en dégradé : marge de peinture pour ne pas couper la fin des lettres (23/11). */
.lp-head h1 { padding-right: 0.14em; padding-bottom: 0.12em; }
.lp-head h1.has-chalk { padding-bottom: 0.32em; margin-bottom: -0.32em; }

/* Téléphone (27/11) : fonctionnalités en grille de 2, cartes plus compactes. */
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .feat-card a { align-content: start; gap: 0.3rem; padding: 0.95rem 0.9rem 1rem; border-radius: 16px; }
  .feat-card strong { font-size: 0.95rem; }
  .feat-card span { font-size: 0.8rem; line-height: 1.4; }
}
