/* ============================================================
   landing.css — Better Searcher landing page (index.php)
   ============================================================ */

html { scroll-behavior: smooth; scroll-padding-top: 0; }   /* les ancres arrivent en haut de l'écran (bord haut de la section), pas sous le header ; l'espace avant le titre vient du padding de la section */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Menu plein écran : ouverture/fermeture instantanées (base.css ne coupe que animation-*, pas transition) */
  .bs-mobilemenu, .bs-mobilemenu__nav a, .bs-mobilemenu__cta, .bs-mobilemenu__prefs {
    transition: none !important; transform: none !important; transition-delay: 0s !important;
  }
}

.bs-container { max-width: 1280px; margin: 0 auto; padding-left: clamp(18px, 4vw, 34px); padding-right: clamp(18px, 4vw, 34px); }
.bs-accent { color: var(--accent); }

/* Boutons (.btn) et marque (.bs-brand) sont partagés → base.css */

/* ---------- Header ---------- */
.bs-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bs-header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bs-nav { display: flex; align-items: center; gap: 30px; font-size: 13.5px; color: var(--muted); }
.bs-nav a { position: relative; text-decoration: none; transition: color .2s; }
.bs-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.bs-nav a:hover { color: var(--text); }
.bs-nav a:hover::after { transform: scaleX(1); }
.bs-header__actions { display: flex; align-items: center; gap: 12px; }
.bs-burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--border2); border-radius: var(--r-sm); background: transparent; color: var(--text); cursor: pointer; }
.bs-burger:hover { border-color: var(--accent); }
.bs-mobilemenu { display: none; }
/* Verrou de défilement + état overlay : sur <html> (source unique, hors piège backdrop-filter) */
html.bs-menu-open { overflow: hidden; }

/* ---------- Grid background (hero + cta) ---------- */
.bs-gridbg {
  position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 58px 58px;
}
.bs-gridbg--hero { -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 35%, transparent 78%); mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 35%, transparent 78%); }
.bs-gridbg--cta  { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 25%, transparent 72%); }

/* ---------- Hero ---------- */
.bs-hero { position: relative; border-bottom: 1px solid var(--border); overflow: hidden; }
.bs-hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(34px, 5vw, 68px); align-items: center;
  padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(40px, 5vw, 72px);
}
/* Bannière d'invitation (parrainage) — affichée au-dessus du badge sur /?ref=<code> */
.bs-invite {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 20px; padding: 12px 16px;
  border: 1px solid var(--accent); border-radius: var(--r-lg);
  background: var(--surface);
}
.bs-invite__ic { display: inline-flex; flex: 0 0 auto; color: var(--accent); }
.bs-invite__txt { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--text); }
.bs-invite__txt strong { color: var(--accent); font-weight: 600; }
.bs-invite__cta { flex: 0 0 auto; }
.bs-hero__title { margin: 0; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.028em; font-weight: 600; }
.bs-hero__lead { margin: 20px 0 0; max-width: 520px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.62; color: var(--muted); }
.bs-hero__ctas { margin: 28px 0 0; display: flex; gap: 13px; align-items: center; }

.bs-stats { margin: 34px 0 0; display: flex; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.bs-stat__num { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.bs-stat__label { margin-top: 5px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; }
.bs-stats__sep { width: 1px; background: var(--border); }

/* hero art panel */
.bs-hero__art { position: relative; min-width: 0; }   /* grid item : autorise la colonne à rétrécir sous téléphone (sinon le min-content de la vignette force une largeur > écran) */
.bs-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--accent); }
.bs-live--bordered { border: 1px solid color-mix(in oklch, var(--accent) 45%, var(--border)); border-radius: 2px; padding: 5px 8px; }
.bs-live__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: bs-blink 1.4s ease-in-out infinite; }

/* Hero — vignette « dashboard » fidèle (même barre/filtres/stats que /dashboard) */
.bs-dashcard {
  position: relative; border: 1px solid var(--border2); background: var(--surface); border-radius: 8px; overflow: hidden;
  box-shadow: 0 24px 60px -30px color-mix(in oklch, var(--accent) 40%, transparent);
}
.bs-dashcard__bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid var(--border); background: var(--surface2); }
.bs-dashcard__eyebrow { font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }
.bs-dashcard__body { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.bs-dashcard__searchrow { display: flex; gap: 8px; }
.bs-dashfield {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 11px;
  background: var(--bg); border: 1px solid color-mix(in oklch, var(--accent) 55%, var(--border2)); border-radius: 6px;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 10%, transparent);
}
.bs-dashfield__ic { color: var(--accent); flex: none; }
.bs-dashfield__ph { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-dashfield__auto {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 5px;
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent) 32%, var(--border)); background: color-mix(in oklch, var(--accent) 12%, var(--surface));
}
/* Largeur réservée pour le plus long libellé cyclé (« Téléphone ») : le badge ne change
   plus de largeur au fil du cycle, donc ni le champ, ni la colonne, ni la section ne bougent. */
.bs-dashfield__auto [data-hero-auto-val] { flex: none; display: inline-block; min-width: 9.5ch; text-align: left; }
.bs-dashgo {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 6px;
  background: var(--accent); color: var(--bg); font-size: 12.5px; font-weight: 600;
}
.bs-dashfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.bs-fseg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bs-fseg + .bs-fseg { padding-left: 10px; border-left: 1px solid var(--border); }
.bs-fseg__label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.bs-fseg--leaks .bs-fseg__label { color: color-mix(in oklch, var(--accent) 70%, var(--muted)); }
.bs-dchip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 4px; border: 1px solid var(--border2); color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.bs-dchip svg { color: var(--faint); flex: none; }
.bs-dchip--leak { border-color: color-mix(in oklch, var(--accent) 40%, var(--border2)); }
.bs-dchip--auto { color: var(--text); }
.bs-dchip.is-on { background: var(--surface2); color: var(--text); border-color: transparent; box-shadow: inset 0 0 0 1px var(--accent); }
.bs-dchip.is-on svg { color: var(--accent); }
.bs-dashstats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.bs-dstat { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 2px; }
.bs-dstat + .bs-dstat { border-left: 1px solid var(--border); }
.bs-dstat__l { font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.bs-dstat__n { font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.bs-dstat__n--word { font-size: 16px; color: var(--accent); }

/* ---------- Generic section + headings ---------- */
.bs-section { border-bottom: 1px solid var(--border); }
.bs-section--alt { background: var(--bg2); }
.bs-section > .bs-container { padding-top: clamp(64px, 9vw, 124px); padding-bottom: clamp(64px, 9vw, 124px); }
.bs-h2 { margin: 16px 0 0; font-size: clamp(29px, 4vw, 50px); line-height: 1.06; letter-spacing: -0.022em; font-weight: 600; }
.bs-h2--center { text-align: center; }
.bs-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(34px, 4vw, 52px); }
.bs-section-head > div { max-width: 680px; }
.bs-section-head__lead { max-width: 360px; font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.bs-section-head--stack { display: block; max-width: 680px; }

/* ---------- App-window mockup ---------- */
.bs-window-link { display: block; position: relative; text-decoration: none; color: inherit; border-radius: 6px; }
.bs-window-link__overlay {
  position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--bg) 35%, transparent); backdrop-filter: blur(1px);
  opacity: 0; transition: opacity .25s; border-radius: 6px; pointer-events: none;
}
.bs-window-link__overlay span { background: var(--accent); color: var(--bg); font-size: 13px; font-weight: 600; padding: 11px 18px; border-radius: 3px; }
.bs-window-link:hover .bs-window-link__overlay, .bs-window-link:focus-visible .bs-window-link__overlay { opacity: 1; }
.bs-window {
  border: 1px solid var(--border2); border-radius: 6px; overflow: hidden; background: var(--surface);
  box-shadow: 0 40px 90px -50px color-mix(in oklch, var(--accent) 35%, transparent);
}
.bs-window__bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--surface2); }
.bs-window__dots { display: flex; gap: 6px; }
.bs-window__dots span { width: 9px; height: 9px; border-radius: 2px; background: var(--border2); }
.bs-window__dots span.is-accent { background: var(--accent); }
.bs-window__search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 7px 11px; min-width: 0; }
.bs-window__search svg { color: var(--faint); flex: none; }
.bs-window__query { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-savechip { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.04em; color: var(--muted); }
.bs-savechip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.bs-window__body { display: grid; grid-template-columns: 212px 1fr 286px; min-height: 440px; }

/* Sidebar app fidèle (mêmes items/icônes que includes/sidebar.php) */
.bs-win-side { border-right: 1px solid var(--border); padding: 14px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 3px; }
.bs-win-brand { display: flex; align-items: center; gap: 9px; padding: 2px 6px 12px; }
.bs-win-brand__tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bs-win-brand__name { font-size: 11px; font-weight: 600; letter-spacing: 0.13em; color: var(--text); }
.bs-win-brand__sub { font-size: 8px; letter-spacing: 0.26em; color: var(--faint); }
.bs-win-nav__group { font-size: 9px; letter-spacing: 0.16em; color: var(--faint); padding: 6px 8px 4px; }
.bs-win-link { display: flex; align-items: center; gap: 11px; padding: 8px 9px; border-radius: 4px; color: var(--muted); font-size: 12.5px; }
.bs-win-link .bs-win-ic { color: var(--faint); flex: none; }
.bs-win-link.is-active { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.bs-win-link.is-active .bs-win-ic { color: var(--accent); }

/* Board — réseau d'entités (nœuds DOM fidèles + arêtes SVG) */
.bs-board { position: relative; background: var(--board); overflow: hidden; min-height: 440px; }
.bs-board__grid { position: absolute; inset: 0; opacity: .6; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.bs-board__edges { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.bs-edge { stroke: color-mix(in oklch, var(--accent) 26%, transparent); stroke-width: 1; }
.bs-edge--on { stroke: color-mix(in oklch, var(--accent) 70%, transparent); stroke-width: 1.4; }
.bs-edge--sel { stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 4 3; animation: bs-antmarch 1s linear infinite; }
.bs-elabel { position: absolute; z-index: 2; transform: translate(-50%, -50%); font-size: 8.5px; color: var(--muted); background: var(--board); padding: 1px 4px; border-radius: 3px; white-space: nowrap; }
.bs-bnode {
  position: absolute; z-index: 3; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1.5px solid var(--border2); border-radius: 7px; padding: 6px 10px 6px 7px; max-width: 180px;
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .35);
}
.bs-bnode__ic { flex: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 5px; background: color-mix(in oklch, var(--accent) 13%, transparent); color: var(--accent); }
.bs-bnode__b { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bs-bnode__t { font-size: 12px; font-weight: 600; color: var(--text); max-width: 128px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-bnode__m { font-size: 8px; letter-spacing: 0.06em; color: var(--faint); }
.bs-bnode__sev { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--surface); }
.bs-bnode.is-sel { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent), 0 4px 14px -8px rgba(0, 0, 0, .35); }
.bs-board__legend { position: absolute; left: 12px; bottom: 11px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 6px 11px; border-radius: 6px; background: color-mix(in oklch, var(--surface) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.bs-lg { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; letter-spacing: 0.08em; color: var(--muted); }
.bs-lg__dot { width: 7px; height: 7px; border-radius: 50%; }
.bs-lg__hint { font-size: 8.5px; color: var(--faint); }
@keyframes bs-antmarch { to { stroke-dashoffset: -14; } }

/* Inspecteur d'entité fidèle (mêmes blocs que le vrai board) */
.bs-win-aside { border-left: 1px solid var(--border); padding: 16px 15px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.bs-insp__eyebrow { font-size: 8.5px; letter-spacing: 0.14em; color: var(--faint); }
.bs-insp__head { display: flex; align-items: center; gap: 11px; }
.bs-insp__avatar { flex: none; width: 40px; height: 40px; border-radius: 6px; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.bs-insp__id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bs-insp__name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.bs-insp__tag { align-self: flex-start; font-size: 8.5px; letter-spacing: 0.12em; color: var(--accent); border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--border)); border-radius: 3px; padding: 2px 6px; }
.bs-insp__fav { margin-left: auto; color: var(--accent); font-size: 15px; }
.bs-insp__rows { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--border); padding-top: 12px; }
.bs-insp__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bs-insp__k { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.bs-insp__v { font-size: 12px; color: var(--text); }
.bs-sevbadge { font-size: 9px; letter-spacing: 0.1em; padding: 2px 7px; border-radius: 3px; }
.bs-sevbadge--crit { color: var(--hi); border: 1px solid color-mix(in oklch, var(--hi) 45%, var(--border)); background: color-mix(in oklch, var(--hi) 12%, transparent); }
.bs-insp__block { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.bs-insp__block--conn { margin-top: auto; }
.bs-insp__bhead { font-size: 8.5px; letter-spacing: 0.14em; color: var(--faint); }
.bs-insp__kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bs-insp__kv-k { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-insp__kv-v { flex: none; font-size: 11px; color: var(--text); }
.bs-conn { display: flex; align-items: center; gap: 9px; }
.bs-conn__ic { flex: none; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: color-mix(in oklch, var(--accent) 12%, transparent); color: var(--accent); }
.bs-conn__b { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bs-conn__t { font-size: 11.5px; color: var(--text); max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-conn__m { font-size: 8.5px; letter-spacing: 0.04em; color: var(--faint); }

/* ---------- Capacités (features) ---------- */
.bs-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.bs-feature { background: var(--surface); padding: 30px 26px; display: flex; flex-direction: column; gap: 15px; transition: background .2s, box-shadow .2s; }
/* Cadre accent en `inset` (pas de transform : la grille a des gouttières de 1px). */
.bs-feature:hover { background: var(--surface2); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 22%, transparent); }
.bs-feature__title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.bs-feature p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.bs-feature__tag { margin-top: auto; font-size: 9.5px; letter-spacing: 0.14em; color: var(--faint); padding-top: 6px; }

/* ---------- Sources ---------- */
.bs-sources { overflow: hidden; }
.bs-sources > .bs-container { padding-bottom: clamp(40px, 5vw, 64px); }
.bs-sources__intro { max-width: 760px; }
.bs-sources__lead { margin: 18px 0 0; max-width: 560px; font-size: 15px; line-height: 1.62; color: var(--muted); }
.bs-breachgrid { margin-top: clamp(34px, 4vw, 52px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.bs-breach { background: var(--surface); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; transition: background .2s, box-shadow .2s; text-decoration: none; color: inherit; }
.bs-breach:hover { background: var(--surface2); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 22%, transparent); }
.bs-breach__top { display: flex; align-items: center; justify-content: space-between; }
.bs-breach__cat { font-size: 8.5px; letter-spacing: 0.14em; color: var(--faint); }
.bs-breach__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bs-breach__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.bs-breach__count { display: flex; align-items: baseline; gap: 6px; }
.bs-breach__num { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.bs-breach__unit { font-size: 9px; color: var(--faint); }
.bs-breach--more { background: var(--surface2); }
.bs-breach--more:hover { background: var(--chip); }
.bs-breach--more .bs-breach__cat, .bs-breach--more .bs-breach__name { color: var(--accent); }
.bs-breach__arrow { color: var(--accent); font-size: 13px; }
.bs-breach__more-sub { font-size: 9px; color: var(--faint); line-height: 1.5; }

/* marquee */
.bs-marquee-wrap { position: relative; display: flex; flex-direction: column; gap: 14px; padding-bottom: clamp(54px, 7vw, 92px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bs-marquee { display: flex; gap: 14px; width: max-content; animation: bs-marquee 46s linear infinite; }
.bs-marquee--rev { animation-duration: 54s; animation-direction: reverse; margin-left: -60px; }
.bs-chip { flex: none; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--text); background: var(--chip); border: 1px solid var(--border); border-radius: 3px; padding: 11px 16px; }

/* ---------- CTA final ---------- */
.bs-cta-final { position: relative; border-bottom: 1px solid var(--border); overflow: hidden; }
.bs-cta-final__inner { position: relative; max-width: 820px; margin: 0 auto; padding: clamp(72px, 11vw, 150px) clamp(18px, 4vw, 34px); text-align: center; }
.bs-cta-final__lead { margin: 22px auto 0; max-width: 480px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.bs-ctabtns { margin: 36px 0 0; display: flex; gap: 13px; align-items: center; }
.bs-ctabtns--center { justify-content: center; }
.bs-cta-final__note { margin: 28px 0 0; font-size: 10.5px; letter-spacing: 0.12em; color: var(--faint); }

/* ---------- Footer ---------- */
.bs-footer { background: var(--bg); }
.bs-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-top: clamp(48px, 6vw, 76px); }
.bs-footer__brand { max-width: 300px; }
.bs-footer__tagline { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 260px; }
.bs-footer__head { font-size: 9.5px; letter-spacing: 0.16em; color: var(--faint); margin-bottom: 14px; }
.bs-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.bs-footer__links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.bs-footer__links a:hover { color: var(--text); }
.bs-footer__bottom { margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bs-footer__bottom .mono { font-size: 10.5px; letter-spacing: 0.06em; color: var(--faint); }
.bs-footer__legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bs-footer__prefs { display: flex; align-items: center; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bs-hero__inner { grid-template-columns: 1fr; }
  .bs-window__body { grid-template-columns: 1fr; }
  .bs-win-side { display: none; }
  .bs-win-aside { border-left: none; border-top: 1px solid var(--border); }
  .bs-features { grid-template-columns: 1fr 1fr; }
  .bs-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .bs-breachgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .bs-nav { display: none; }
  .bs-header__actions { display: none; }
  .bs-burger { display: inline-flex; }
  .bs-breachgrid { grid-template-columns: repeat(2, 1fr); }

  /* ---- Overlay plein écran (opaque : le header/hero ne doivent pas transparaître) ---- */
  .bs-mobilemenu {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 200;
    background: var(--bg); padding: 0 clamp(18px, 6vw, 34px);
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s ease, visibility 0s linear .3s; /* masqué après le fondu */
  }
  html.bs-menu-open .bs-mobilemenu { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease, visibility 0s; }

  .bs-mobilemenu__top { flex: none; height: 64px; margin-top: env(safe-area-inset-top); display: flex; align-items: center; justify-content: space-between; }
  .bs-mobilemenu__nav { display: flex; flex-direction: column; gap: 2px; margin-top: clamp(20px, 6vh, 44px); }
  .bs-mobilemenu__nav a { font-size: clamp(30px, 9vw, 46px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: var(--text); text-decoration: none; padding: 10px 0; transition: color .2s; }
  .bs-mobilemenu__nav a:hover { color: var(--accent); }
  .bs-mobilemenu__cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: clamp(22px, 4vh, 34px); }
  .bs-mobilemenu__prefs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(16px, 3vh, 22px); padding-top: clamp(16px, 3vh, 20px); border-top: 1px solid var(--border); }

  /* Entrée : fondu + montée, en cascade. Transform sur les CONTENEURS (jamais sur .btn
     qui possède déjà un transform:hover, base.css:158). */
  .bs-mobilemenu__nav a, .bs-mobilemenu__cta, .bs-mobilemenu__prefs { opacity: 0; transform: translateY(14px); transition: opacity .42s ease, transform .42s cubic-bezier(.16, 1, .3, 1); }
  html.bs-menu-open .bs-mobilemenu__nav a, html.bs-menu-open .bs-mobilemenu__cta, html.bs-menu-open .bs-mobilemenu__prefs { opacity: 1; transform: none; }
  /* Délais SUR L'ÉTAT OUVERT → cascade à l'ouverture, fermeture simultanée (pas de cascade inverse) */
  html.bs-menu-open .bs-mobilemenu__nav a:nth-child(1) { transition-delay: .05s; }
  html.bs-menu-open .bs-mobilemenu__nav a:nth-child(2) { transition-delay: .11s; }
  html.bs-menu-open .bs-mobilemenu__nav a:nth-child(3) { transition-delay: .17s; }
  html.bs-menu-open .bs-mobilemenu__cta   { transition-delay: .24s; }
  html.bs-menu-open .bs-mobilemenu__prefs { transition-delay: .30s; }
}
@media (max-width: 620px) {
  .bs-features { grid-template-columns: 1fr; }
  .bs-footer__grid { grid-template-columns: 1fr 1fr; }
  .bs-herostats { flex-wrap: wrap; gap: 20px 28px; }
  .bs-herostats .bs-stats__sep { display: none; } /* hairlines orphelines quand ça wrap */
  .bs-ctabtns { flex-direction: column; align-items: stretch; }

  /* Vignette dashboard : stats en 2 colonnes pour tenir sur mobile */
  .bs-dashstats { grid-template-columns: repeat(2, 1fr); }
  .bs-dstat:nth-child(odd) { border-left: none; }
  .bs-dstat:nth-child(n+3) { border-top: 1px solid var(--border); padding-top: 12px; }
  /* Board : nœuds plus compacts pour moins de débordement/rognage sur petit écran */
  .bs-bnode { max-width: 132px; gap: 6px; padding: 5px 8px 5px 6px; }
  .bs-bnode__ic { width: 22px; height: 22px; }
  .bs-bnode__t { max-width: 84px; font-size: 11px; }
  .bs-elabel { font-size: 8px; padding: 1px 3px; }
}
@media (max-width: 480px) {
  .bs-breachgrid { grid-template-columns: 1fr; }
  .bs-board { min-height: 300px; }
  .bs-dashcard__body { padding: 14px; gap: 13px; }
  .bs-window__bar { gap: 10px; padding: 10px 12px; }
  .bs-win-aside { padding: 14px; }
}

/* ---------- Cas d'usage (#cas-usage) ---------- */
.bs-uc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 5px; overflow: hidden;
}
.bs-uc-card {
  background: var(--surface); padding: 26px 24px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 12px; transition: background .2s, box-shadow .2s;
}
.bs-uc-card:hover { background: var(--surface2); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 22%, transparent); }
.bs-uc-card__name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.bs-uc-card__desc { font-size: 13px; line-height: 1.55; color: var(--muted); }
.bs-uc-card__more { margin-top: auto; font-size: 11px; letter-spacing: 0.06em; color: var(--accent); }
.bs-uc-card--pillar { background: var(--surface2); }
.bs-uc-card--pillar:hover { background: var(--surface); }

/* ---------- FAQ (#faq) ---------- */
.bs-faq { max-width: 820px; border-top: 1px solid var(--border); }
.bs-faq__item { border-bottom: 1px solid var(--border); }
.bs-faq__q {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 40px 20px 2px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--text);
}
.bs-faq__q::-webkit-details-marker { display: none; }
.bs-faq__q::after {
  content: "+"; position: absolute; right: 6px; top: 18px;
  font-family: var(--font-mono); font-size: 18px; line-height: 1; color: var(--muted); transition: color .2s;
}
.bs-faq__item[open] .bs-faq__q::after { content: "\2212"; color: var(--accent); }
.bs-faq__a { padding: 0 40px 22px 2px; margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 68ch; }

@media (max-width: 980px) { .bs-uc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .bs-uc-grid { grid-template-columns: 1fr; } }

/* ---------- Communauté (Telegram) ---------- */
.bs-footer__tg {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 14px; border-radius: 8px;
  color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 500;
  border: 1px solid color-mix(in oklch, var(--accent) 34%, var(--border)); background: color-mix(in oklch, var(--accent) 8%, transparent);
  transition: background .18s, border-color .18s, transform .18s;
}
.bs-footer__tg:hover { background: color-mix(in oklch, var(--accent) 14%, transparent); border-color: var(--accent); transform: translateY(-1px); }
.bs-footer__tg svg { flex: none; }

.bs-community { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bs-community__ic {
  display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 16px; margin-bottom: 22px;
  color: var(--accent); background: color-mix(in oklch, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 30%, var(--border));
}
.bs-community .eyebrow { display: block; margin-bottom: 12px; }
.bs-community__lead { margin: 16px 0 0; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; color: var(--muted); }
.bs-community__cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px; }
.bs-community__badge { margin-top: 16px; font-size: 11.5px; letter-spacing: 0.05em; color: var(--faint); }
