/* ==========================================================================
   Prescriptio — feuille de style du tier Rust (apps/prescriptio-rs)
   Pass 1 : fondations (tokens + reset + typo) + SHELL (header sombre,
   mega-menu <details>, recherche, auth, footer). Embarquée dans le binaire
   via include_str! et servie sur /assets/app.css (zéro fichier sur scratch).

   Thème (parité home-v6/home-v7 Next) : SHELL sombre + contenu clair.
   Sans-serif (Prescriptio = sans, pas de serif — serif réservé à Escouade).
   Mega-menu fonctionnel SANS JS : <details name="nav-mega"> (accordéon
   exclusif natif). Les îlots WASM (hover, pill, typeahead) viendront après.
   ========================================================================== */

/* ===== Tokens ============================================================= */
:root {
  /* Contenu clair */
  --page: #ffffff;
  --surface-soft: #f8fafc;        /* slate-50 */
  --ink-strong: #020617;          /* slate-950 */
  --ink: #0f172a;                 /* slate-900 */
  --ink-dim: #475569;             /* slate-600 */
  --ink-faint: #64748b;           /* slate-500 */
  --line: #e2e8f0;                /* slate-200 */
  --line-soft: #f1f5f9;           /* slate-100 */

  /* Shell sombre */
  --dark: #0a0d14;
  --dark-2: #0f1320;
  --dark-3: #141a2a;
  --dark-border: #1c2333;
  --dark-border-2: #273247;
  --dark-text: #cbd5e1;           /* slate-300 */
  --dark-text-dim: #94a3b8;       /* slate-400 */
  --dark-text-faint: #64748b;     /* slate-500 */

  /* Accent */
  --brand: #2563eb;               /* blue-600 */
  --brand-hover: #1d4ed8;         /* blue-700 */
  --brand-soft: #3b82f6;          /* blue-500 */
  --brand-300: #93c5fd;
  --emerald: #34d399;
  --amber: #fbbf24;

  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --maxw: 1440px;
  --header-h: 56px;
  --gutter: clamp(1rem, 4vw, 1.5rem);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

/* ===== Reset & base ====================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  /* Offset d'ancre = header sticky (56px) + marge (parité prod scroll-padding-top:5rem).
     PAS de scroll-behavior:smooth ici : le moteur inertiel (assets/app.js §7)
     pilote window.scrollTo par RAF — un smooth CSS entrerait en conflit (double anim). */
  scroll-padding-top: 5rem;
  scrollbar-width: thin;                          /* Firefox */
  scrollbar-color: rgb(203 213 225) transparent;
}
/* Scrollbar WebKit fine et discrète (parité prod globals.css). */
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  background: rgb(203 213 225);                    /* slate-300 */
  border-radius: 9999px; border: 2px solid transparent; background-clip: padding-box;
  transition: background-color 150ms ease;
}
html::-webkit-scrollbar-thumb:hover { background: rgb(100 116 139); }  /* slate-500 */
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
small { color: var(--ink-faint); }
strong { font-weight: 600; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: 0.2rem 0; }
blockquote {
  margin: 0 0 1rem;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid var(--line);
  color: var(--ink-dim);
}
code, pre, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }
code { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.35em; }
pre { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }

table { border-collapse: collapse; width: 100%; margin: 0 0 1.25rem; font-size: 0.93rem; }
th, td { padding: 0.55rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--ink-dim); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
tbody tr:hover { background: var(--surface-soft); }

/* Conteneur de contenu : toutes les pages enveloppent dans <main>. */
main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
}
main section { margin-bottom: 2.5rem; }

/* CTA génériques réutilisés par les pages (home, fiches, walls…). */
.cta-primary, .offer-cta, .hero-unlock {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  background: var(--brand); color: #fff;
  border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
}
.cta-primary:hover, .offer-cta:hover, .hero-unlock:hover { background: var(--brand-hover); text-decoration: none; }
.cta-secondary {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; background: #fff;
}
.cta-secondary:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ===== Surface SOMBRE des pages DATA (parité prod body.prescriptio-data-page) =
   Wrapper plein écran que les pages data (fiches, annuaire, observatoire, DVF,
   permis) enveloppent autour de leur contenu : fond #0a0d14 + grille subtile +
   glow bleu (::before/::after fixes). Le marketing (home/solutions/tarifs/
   glossaire/légal) reste CLAIR — il n'utilise pas cette classe. Le <main>
   interne reste centré (max-width) sur fond transparent. */
/* Le <body> (et le footer hors .data-surface) prend le fond sombre dès qu'une
   page data est rendue → supprime la « bande blanche » entre le contenu sombre
   et le footer (la grille fixe s'affichait sinon sur le fond clair par défaut). */
body:has(.data-surface) { background: var(--dark); }
.data-surface {
  position: relative; isolation: isolate; min-height: 100vh; overflow-x: hidden;
  background: var(--dark);            /* #0a0d14 */
  color: var(--dark-text);            /* slate-300 */
}
.data-surface::before, .data-surface::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.data-surface::before {                /* grille blueprint */
  background-image:
    linear-gradient(var(--dark-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-border) 1px, transparent 1px);
  background-position: -1px -1px; background-size: 64px 64px; opacity: 0.22;
}
.data-surface::after {                  /* glow radial bleu sous le header */
  left: 50%; top: 84px; height: 980px; width: min(1320px, 160vw);
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(37, 99, 235, 0.28), transparent 58%),
    radial-gradient(circle at 78% 42%, rgba(14, 165, 233, 0.11), transparent 40%);
  filter: blur(42px); opacity: 0.78;
  mask-image: linear-gradient(to bottom, transparent 0, transparent 54px, black 178px, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 54px, black 178px, black 100%);
}
.data-surface > * { position: relative; z-index: 1; }
.data-surface main { background: transparent; }   /* contenu centré sur le fond sombre */

/* Tokens spécifiques au shell ============================================= */
/* Mega-menu + footer Next sont en max-w-[1600px] (header.tsx l.1116,
   footer.tsx l.7/26/51). La barre header reste à --maxw (1440px, l.736). */
:root { --maxw-wide: 1600px; }

/* ===== Header (sombre, sticky, full-bleed + contenu centré) ============== */
.site-header {
  position: sticky; top: 0; z-index: 1100;
  display: flex; align-items: center; gap: 0.75rem;  /* gap-3 = 12px */
  min-height: var(--header-h);
  background: var(--dark);
  /* Bordure basse transparente au sommet → visible au scroll (parité HeaderV6
     scrolled state). Smart-hide via transform translateY (cf. .is-hidden). */
  border-bottom: 1px solid transparent;
  /* bg pleine largeur, contenu plafonné à --maxw (1440px) via gouttière calculée.
     Next = `max-w-[1440px] px-6 mx-auto` : la box fait 1440px MAIS le px-6 (24px)
     est À L'INTÉRIEUR → le contenu commence à (100%-1440)/2 + 24px. D'où le
     `+ 1.5rem` (sinon le logo est 24px trop à gauche). */
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + 1.5rem));
  color: var(--dark-text);
  /* parité Next : transition-[transform,background,border,box-shadow] duration-300 ease-out */
  transition: transform 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out;
  will-change: transform;
}
/* px-6 fixe (24px) dès qu'on a la place ; le clamp ne sert qu'en mobile. */
@media (min-width: 768px) {
  .site-header { padding-inline: max(1.5rem, calc((100% - var(--maxw)) / 2 + 1.5rem)); }
}
/* Au scroll (y>20) : la bordure basse apparaît (parité scrolled state). */
.site-header.is-scrolled { border-bottom-color: var(--dark-border); }
/* Smart-hide : scroll vers le bas masque le header, scroll vers le haut le rend
   (classe togglée par app.js §6). Le header sticky garde son slot, juste décalé. */
.site-header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  /* Pas de masquage au scroll si réduction de mouvement : header stable. */
  .site-header.is-hidden { transform: none; }
}

.brand {
  flex: 0 0 auto;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em;  /* text-[17px] font-bold */
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand-tld { color: #90a1b9; }

/* ----- Groupe central nav + recherche ------------------------------------
   Parité HeaderV6 : `min-w-0 flex-1 items-center gap-4 ... min-[1760px]:gap-6
   2xl:absolute 2xl:left-1/2 2xl:-translate-x-1/2 2xl:flex-none`.
   < 1536px : grandit (flex-1) entre le logo et l'auth (nav+search adjacents).
   ≥ 1536px : centré via 1fr sur les flancs (bloc `@media 2xl` plus bas, APRÈS
   `.header-auth`, pour gagner la cascade sans bump de spécificité). */
.header-center {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 1rem;  /* gap-4 */
}
@media (min-width: 1760px) { .header-center { gap: 1.5rem; } }  /* min-[1760px]:gap-6 */

/* ----- Navigation principale (onglets + mega-menus) ---------------------- */
.site-nav { flex: 0 0 auto; display: flex; align-items: center; gap: 0.25rem; }  /* gap-1 = 4px */

.nav-menu { position: static; }           /* le panel se positionne / .site-header */
.nav-menu > summary,
.nav-link {
  display: inline-flex; align-items: center; gap: 0.25rem;  /* gap-1 = 4px */
  height: 32px; padding: 0 0.75rem;          /* h-8 px-3 */
  border-radius: var(--radius-sm);           /* rounded-md = 6px */
  font-size: 0.844rem; font-weight: 500;     /* text-[13.5px] */
  color: var(--dark-text); cursor: pointer; list-style: none; white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
/* Chevron SVG 10×10 (parité HeaderV6 : « ⌄ », pas un coin de bordure CSS).
   opacité 0.5 → 0.7 + rotation 180° à l'ouverture. */
.nav-menu > summary .nav-caret {
  flex: 0 0 auto; opacity: 0.5;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.nav-menu[open] > summary .nav-caret { transform: rotate(180deg); opacity: 0.7; }
.nav-menu > summary:hover,
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-menu[open] > summary {
  /* Reproduit la pill active bg-white/10 du Next (slide framer omis sans JS). */
  color: #fff; background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px -14px rgba(37, 99, 235, 0.45);
  transition: box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-menu > summary:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--dark), 0 0 0 4px var(--brand-soft); }

/* ----- Mega-menu (panneau sombre pleine largeur sous le header) ---------- */
.nav-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  /* Parité HeaderV6 : grille à colonnes ÉGALES (pas un flex-wrap qui étirait le
     featured et faisait wrapper les colonnes). N colonnes = nb de cols + featured,
     porté par `data-cols` (cf. règles ≥1025px). Mobile = 1 colonne (accordéon). */
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;  /* row+col gap 24px (gap-6) */
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.92), rgba(10, 13, 20, 0.92)), radial-gradient(ellipse 62% 42% at 50% 0%, rgba(37, 99, 235, 0.14), transparent 56%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 90px -42px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  /* Panel en max-w-[1600px] + px-7 (Next) : la box fait 1600 MAIS px-7 (28px) est
     dedans → contenu = (100%-1600)/2 + 28px (d'où le `+ 1.75rem`). pt-8 / pb-7. */
  padding: 2rem max(var(--gutter), calc((100% - var(--maxw-wide)) / 2 + 1.75rem)) 1.75rem;
  animation: nav-mega-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) {
  .nav-mega { padding-inline: max(1.75rem, calc((100% - var(--maxw-wide)) / 2 + 1.75rem)); }  /* px-7 */
}
/* Colonnes égales selon le nombre de slots (cols + featured) — parité grid-cols-N
   de HeaderV6. gap-x : 24px (≥5), 28px (3-4), 32px (2). ≥1025px uniquement
   (mobile reste à 1 colonne via la base + l'override accordéon de globals.css). */
@media (min-width: 1025px) {
  .nav-mega[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 1.5rem; }
  .nav-mega[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1.75rem; }
  .nav-mega[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.75rem; }
  .nav-mega[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}
@keyframes nav-mega-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nav-mega-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

/* Item de grille : min-width:0 pour autoriser le rétrécissement sous le contenu
   (sinon un titre long déborderait la piste minmax(0,1fr)). */
.nav-col { min-width: 0; }
/* Pas de séparateur visuel : prod (HeaderV6) rend des colonnes égales sans
   bordure. La classe `nav-col--divider` (data `divider`) reste sans style. */

/* Titre de colonne mega-menu = text-[11px] (header.tsx l.1284), DISTINCT du
   footer/featured eyebrow (10.5px = type-eyebrow-tight). */
.nav-col-title {
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;       /* 11px */
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--dark-text-dim);  /* slate-400 */
}
.nav-col ul { list-style: none; margin: 0; padding: 0; }
.nav-col li { margin: 0; }

/* Lien mega-menu : icône lucide + texte + chevron (parité <a flex items-start
   gap-2.5 rounded-lg px-2 py-2 hover:bg-white/[0.07]>). */
.nav-link-item {
  display: flex; align-items: flex-start; gap: 0.625rem;  /* gap-2.5 = 10px */
  padding: 0.5rem;                                          /* px-2 py-2 = 8px */
  border-radius: var(--radius);                            /* rounded-lg = 8px */
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link-item:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); text-decoration: none; }
/* Pastille icône : h-6 w-6 rounded-md text-blue-300 (= 24px). */
.nav-link-icon {
  flex: 0 0 auto; margin-top: 0.125rem;   /* mt-0.5 */
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: var(--radius-sm);
  color: var(--brand-300);  /* text-blue-300 (#93c5fd) */
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.nav-link-icon svg { width: 14px; height: 14px; }  /* h-3.5 w-3.5 */
.nav-link-item:hover .nav-link-icon { background: rgba(255, 255, 255, 0.1); color: #bfdbfe; transform: translateY(-2px); }
.nav-link-text { flex: 1; min-width: 0; }
.nav-link-title { display: block; font-size: 0.844rem; font-weight: 600; color: #fff; line-height: 1.35; }  /* text-[13.5px] font-semibold */
.nav-desc { display: block; margin-top: 0.1rem; font-size: 0.6875rem; font-weight: 400; color: rgba(255, 255, 255, 0.55); transition: color 0.3s ease; }  /* text-[11px] text-white/55 */
.nav-link-item:hover .nav-desc { color: rgba(255, 255, 255, 0.7); }  /* group-hover:text-white/70 */
/* Chevron révélé au hover : ChevronRight opacity-0 -translate-x-2 → visible. */
.nav-link-chevron {
  flex: 0 0 auto; margin-top: 0.375rem;  /* mt-1.5 */
  opacity: 0; transform: translateX(-8px) scale(0.9); color: rgba(255, 255, 255, 0.3);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link-chevron svg { width: 14px; height: 14px; }
.nav-link-item:hover .nav-link-chevron { opacity: 1; transform: translateX(0) scale(1); color: #bfdbfe; }

.nav-badge {
  display: inline-block; margin-left: 0.35rem;
  padding: 0.05rem 0.4rem; border-radius: 5px;
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  vertical-align: middle;
  color: var(--dark-text-dim); background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.2);
}
.nav-badge.nouveau { color: var(--emerald); background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }
.nav-badge.alpha { color: var(--amber); background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.3); }
.nav-badge.bientot { color: var(--dark-text-dim); background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.2); }

/* Carte mise en avant (featured) + son titre de colonne — item de grille. */
.nav-featured-wrap { min-width: 0; }
/* Titre « Accès rapide / Produit phare » : text-[11px] uppercase tracking-[0.14em]
   text-slate-500 (header.tsx QuickAccessColumn). */
.nav-featured-label {
  margin: 0 0 0.75rem; padding-left: 0.25rem;  /* mb-3 px-1 */
  font-size: 0.6875rem;  /* 11px */
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--dark-text-faint);  /* slate-500 */
}
.nav-featured {
  display: flex; align-items: flex-start; gap: 0.75rem;  /* flex gap-3 */
  padding: 1rem;                                          /* px-4 py-4 */
  border: 1px solid var(--dark-border-2); border-radius: var(--radius);  /* border-[#273247] rounded-lg */
  background: rgba(15, 19, 32, 0.9);                      /* bg-[rgba(15,19,32,0.9)] */
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18), 0 28px 80px -42px rgba(37, 99, 235, 0.7);
  transition:
    border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-featured:hover {
  transform: translateY(-2px);                           /* hover:-translate-y-0.5 */
  border-color: rgba(59, 130, 246, 0.45);                /* hover:border-blue-500/45 */
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.32), 0 34px 90px -40px rgba(37, 99, 235, 0.95);
  text-decoration: none;
}
/* Pastille bleue + icône : h-9 w-9 rounded-lg bg-blue-600 (= 36px). */
.nav-featured-icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(37, 99, 235, 0.7);
  transition: transform 0.3s;
}
.nav-featured:hover .nav-featured-icon { transform: scale(1.05); }
.nav-featured-icon svg { width: 16px; height: 16px; }  /* h-4 w-4 */
.nav-featured-text { flex: 1; min-width: 0; }
.nav-featured-eyebrow { display: block; font-size: 0.656rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brand-300); }  /* type-eyebrow-tight = 10.5px text-blue-300 */
.nav-featured-title { display: block; margin-top: 0.25rem; font-size: 0.938rem; font-weight: 600; color: #fff; }  /* mt-1 text-[15px] font-semibold */
.nav-featured-body { display: block; margin-top: 0.375rem; font-size: 0.75rem; color: var(--dark-text-dim); line-height: 1.625; }  /* mt-1.5 text-[12px] leading-relaxed text-slate-400 */
.nav-featured-cta { display: inline-flex; align-items: center; gap: 0.125rem; margin-top: 0.75rem; font-size: 0.781rem; font-weight: 600; color: var(--brand-300); }  /* mt-3 text-[12.5px] font-semibold text-blue-300 */
.nav-featured-cta-icon { display: inline-flex; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-featured-cta-icon svg { width: 12px; height: 12px; }  /* ChevronRight h-3 w-3 */
.nav-featured:hover .nav-featured-cta-icon { transform: translateX(3px); }

.nav-footer-link {
  grid-column: 1 / -1;  /* span toutes les colonnes de la grille */
  margin-top: 0.4rem; padding-top: 1rem; border-top: 1px solid var(--dark-border);
  display: inline-flex; align-items: center;
  font-size: 0.82rem; font-weight: 600; color: var(--dark-text-dim);
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-footer-link::after { content: "\2192"; margin-left: 0.35rem; opacity: 0; transform: translateX(-4px); transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-footer-link:hover { color: #fff; }
.nav-footer-link:hover::after { opacity: 1; transform: translateX(0); }

/* ----- Recherche header -------------------------------------------------- */
.header-search {
  /* flex-1 max-w-440 DANS le groupe central (plus de margin-left:auto : c'est
     le groupe .header-center qui grandit, l'auth qui va à droite). */
  flex: 1 1 auto; min-width: 0; max-width: 440px;
  display: flex; align-items: center; gap: 0.25rem;
  height: 36px; padding: 0 0.5rem 0 0.875rem;   /* h-9 pl-3.5 pr-2 */
  background: rgba(255, 255, 255, 0.05);          /* bg-white/5 */
  border: 1px solid rgba(255, 255, 255, 0.15);    /* border-white/15 */
  border-radius: var(--radius-lg);                /* rounded-xl = 12px */
  transition: border-color 0.15s ease, background 0.15s ease;
}
.header-search:hover { border-color: rgba(255, 255, 255, 0.25); }  /* hover:border-white/25 */
.header-search:focus-within {
  border-color: var(--brand-soft); background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}
/* Loupe submit, à GAUCHE (parité pl-3.5 + bouton sans fond). */
.header-search-submit {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; padding: 0; border: 0; background: transparent; cursor: pointer;
  color: var(--dark-text-dim);  /* text-slate-400 */
  transition: color 0.15s ease;
}
.header-search-submit:hover { color: #fff; }
.header-search-submit svg { width: 17px; height: 17px; }
.header-search input:focus-visible { outline: none; }
.header-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  padding: 0 0.5rem;  /* px-3 ≈ marge gauche de l'input vs loupe */
  color: #fff; font-size: 0.875rem; outline: none;  /* text-[14px] */
}
.header-search input::placeholder { color: var(--dark-text-faint); }  /* placeholder:text-slate-500 */
/* Badge ⌘K (hidden md:inline-flex) — blue-200 / blue-50/70 / blue-700. */
.header-search-kbd {
  display: none; align-items: center; gap: 0.25rem; flex: 0 0 auto;
  border: 1px solid #bfdbfe;                       /* border-blue-200 */
  background: rgba(239, 246, 255, 0.7);            /* bg-blue-50/70 */
  border-radius: var(--radius-sm);
  padding: 0.125rem 0.25rem 0.125rem 0.375rem;
  font-family: var(--font-mono); font-size: 0.656rem; color: #1d4ed8;  /* text-[10.5px] text-blue-700 */
}
@media (min-width: 768px) { .header-search-kbd { display: inline-flex; } }
.header-search-kbd kbd {
  display: inline-flex; align-items: center; justify-content: center;
  height: 16px; min-width: 16px; border-radius: 4px;
  background: var(--brand); padding: 0 0.25rem;
  font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600; color: #fff;  /* text-[10px] */
}

/* ----- Typeahead annuaire (dropdown live, créé par app.js) --------------- */
/* `.header-search` est position:relative pour ancrer le dropdown sous la barre. */
.header-search { position: relative; }
.header-typeahead {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  max-height: 60vh; overflow-y: auto;
  background: rgba(15, 19, 32, 0.98);                /* #0f1320/98 (parité dropdown) */
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);                   /* rounded-xl */
  box-shadow: 0 24px 70px -36px rgba(0, 0, 0, 0.95);
  padding: 0.25rem 0;
}
.header-typeahead[hidden] { display: none; }
.ta-section {
  padding: 0.6rem 1rem 0.35rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dark-text-dim);
}
.ta-item {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 1rem; color: var(--dark-text);
  font-size: 0.844rem; text-decoration: none;
}
.ta-item:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.ta-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; padding: 0.1rem 0.35rem; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.ta-ent { color: #60a5fa; background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.25); }
.ta-dir { color: #a5b4fc; background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.25); }
.ta-ach { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.25); }
.ta-q   { color: #93c5fd; background: rgba(37, 99, 235, 0.10); border-color: rgba(37, 99, 235, 0.20); }
.ta-text { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.ta-label { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-sub { font-size: 0.72rem; color: var(--dark-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ----- Auth (connexion + CTA / cluster icônes connecté) ----------------- */
/* margin-left:auto = parité `ml-auto` : pousse le cluster à droite (utile à
   ≥1536px quand .header-center sort du flux). gap-1 sm:gap-2. */
.header-auth { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }  /* gap-1 */
@media (min-width: 640px) { .header-auth { gap: 0.5rem; } }  /* sm:gap-2 */

/* Icône d'action du cluster connecté (h-8 w-8 rounded-md, svg 16px).
   Parité : text-slate-400 hover:bg-white/10 hover:text-white. */
.header-icon {
  position: relative; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; width: 32px; border-radius: var(--radius-sm);  /* h-8 w-8 rounded-md */
  color: var(--dark-text-dim);  /* text-slate-400 */
  transition: color 0.15s ease, background 0.15s ease;
}
.header-icon:hover { background: rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; }
.header-icon svg { width: 16px; height: 16px; }  /* w-4 h-4 */
/* Déconnexion : hover rouge (parité hover:text-red-400). */
.header-icon--logout:hover { background: rgba(255, 255, 255, 0.1); color: #f87171; }
.auth-link {
  display: inline-flex; align-items: center; height: 32px; padding: 0 0.75rem;  /* h-8 px-3 */
  font-size: 0.844rem; font-weight: 500; color: var(--dark-text);  /* text-[13.5px] text-slate-300 */
}
.auth-link:hover { color: #fff; text-decoration: none; }
@media (max-width: 767px) { .auth-link { display: none; } }  /* hidden md:inline-flex */
.auth-cta {
  display: inline-flex; align-items: center; gap: 0.375rem;       /* gap-1.5 entre texte et flèche */
  height: 36px; padding: 0 1rem;                                  /* h-9 px-4 */
  background: var(--brand); color: #fff; border-radius: var(--radius);  /* rounded-lg = 8px */
  font-size: 0.844rem; font-weight: 600;                         /* text-[13.5px] */
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.auth-cta:hover { background: var(--brand-hover); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); text-decoration: none; }
.auth-cta svg { width: 12px; height: 12px; }

/* ----- Centrage 2xl du groupe nav+recherche (≥1536px) -------------------- */
/* Placé APRÈS .header-auth pour que l'override `margin-left/flex` gagne la
   cascade (même spécificité → l'ordre source tranche). Centrage via 1fr sur les
   flancs (logo / auth), SANS position:absolute NI transform : un containing-block
   ici ré-ancrerait le mega-menu (position:absolute) sur ce groupe étroit → perte
   de pleine largeur + wrap des colonnes. Le mega reste ancré sur `.site-header`
   (full-bleed). Équivalent visuel à HeaderV6 `2xl:absolute left-1/2 -translate-x-1/2`. */
@media (min-width: 1536px) {
  .brand { flex: 1 1 0; }
  .header-center { flex: 0 0 auto; }
  .header-auth { flex: 1 1 0; margin-left: 0; justify-content: flex-end; }
  /* 2xl:w-[440px] 2xl:flex-none → recherche figée à 440px (plus de flex-grow). */
  .header-center .header-search { flex: 0 0 440px; width: 440px; max-width: 440px; }
}

/* ===== Hamburger + drawer mobile (CSS-only, zéro JS, < lg 1024px) ======== */
/* Checkbox body-level (focusable, invisible) ; le label .nav-burger la coche. */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }            /* desktop : caché */
.header-search-mobile { display: none; }
.nav-scrim, .nav-drawer { display: none; }

@media (max-width: 1023px) {
  /* Méga-menu + recherche centrée desktop → cachés (vont dans le drawer / ligne 2). */
  .header-center { display: none; }
  /* Header sur 2 lignes : barre (☰ + logo + cluster) puis recherche pleine largeur. */
  .site-header { flex-wrap: wrap; padding-block: 0.5rem; row-gap: 0.5rem; }
  /* Au-dessus du scrim quand ouvert → le ☰ morphé en × reste cliquable pour fermer. */
  .nav-toggle:checked ~ .site-header { z-index: 1250; }
  /* ☰ (3 barres). */
  .nav-burger {
    flex: 0 0 auto; display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 34px; padding: 8px 7px; border-radius: var(--radius-sm);
    color: var(--dark-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-burger:hover { background: rgba(255, 255, 255, 0.1); }
  .nav-burger-bar { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle:focus-visible ~ .site-header .nav-burger { box-shadow: 0 0 0 2px var(--dark), 0 0 0 4px var(--brand-soft); }
  /* ☰ → × à l'ouverture. */
  .nav-toggle:checked ~ .site-header .nav-burger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .site-header .nav-burger-bar:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .site-header .nav-burger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  /* Recherche pleine largeur, ligne 2. */
  .header-search-mobile { display: flex; order: 99; flex-basis: 100%; max-width: none; height: 38px; }
  /* Scrim + drawer (body-level → fixed = viewport, pas contraint par le header). */
  .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 1200;
    background: rgba(2, 6, 16, 0.62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
  }
  .nav-drawer {
    display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 1300;
    width: min(86vw, 340px); background: var(--dark); border-right: 1px solid var(--dark-border);
    transform: translateX(-100%); transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 90px -28px rgba(0, 0, 0, 0.9);
  }
  .nav-toggle:checked ~ .nav-scrim { opacity: 1; pointer-events: auto; }
  .nav-toggle:checked ~ .nav-drawer { transform: translateX(0); }
}

/* Contenu du drawer (parent caché en display:none hors mobile → inerte desktop). */
.nav-drawer-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); padding: 0 1rem; border-bottom: 1px solid var(--dark-border);
}
.nav-drawer-close { font-size: 1.6rem; line-height: 1; color: var(--dark-text-dim); cursor: pointer; padding: 0.1rem 0.5rem; border-radius: var(--radius-sm); }
.nav-drawer-close:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-drawer-nav { flex: 1 1 auto; overflow-y: auto; padding: 0.25rem 0 1.5rem; }
.nav-drawer-section { border-bottom: 1px solid var(--dark-border); }
.nav-drawer-section > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.85rem 1rem; font-size: 0.9rem; font-weight: 600; color: #fff; cursor: pointer; list-style: none;
}
.nav-drawer-section > summary::-webkit-details-marker { display: none; }
.nav-drawer-caret { flex: 0 0 auto; opacity: 0.5; transition: transform 0.2s ease; }
.nav-drawer-section[open] > summary .nav-drawer-caret { transform: rotate(180deg); opacity: 0.8; }
.nav-drawer-links { padding: 0 0.5rem 0.7rem; display: flex; flex-direction: column; gap: 0.05rem; }
.nav-drawer-link {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm); font-size: 0.84rem; color: var(--dark-text-dim);
}
.nav-drawer-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; }
.nav-drawer-link-icon { flex: 0 0 auto; display: inline-flex; align-items: center; color: var(--brand-300); }
.nav-drawer-link-icon svg { width: 15px; height: 15px; }
.nav-drawer-flat {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem;
  font-size: 0.9rem; font-weight: 600; color: #fff; border-bottom: 1px solid var(--dark-border);
}
.nav-drawer-flat:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-drawer-flat svg { width: 16px; height: 16px; color: var(--dark-text-dim); }
.nav-drawer-flat--logout, .nav-drawer-flat--logout svg { color: #f87171; }
.nav-drawer-flat--cta { color: var(--brand-300); }
.nav-drawer-divider { height: 0.5rem; }

/* ===== Footer (sombre, full-bleed + contenu centré) ===================== */
.site-footer {
  margin-top: 4rem;
  background: var(--ink-strong); color: var(--dark-text-dim);   /* bg-slate-950 */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-image: linear-gradient(to bottom, rgba(59, 130, 246, 0.08), transparent 56px);
  /* Footer en max-w-[1600px] + px-6 (24px). */
  padding: 0 max(var(--gutter), calc((100% - var(--maxw-wide)) / 2)) 1.25rem;
}
@media (min-width: 768px) {
  .site-footer { padding-inline: max(1.5rem, calc((100% - var(--maxw-wide)) / 2)); }
}
/* Bande éditoriale : py-14 lg:py-20 (56→80px), mb-8 sur le brand. */
.footer-editorial {
  padding-block: clamp(3.5rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-editorial .brand { display: inline-block; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 2rem; }  /* text-[20px] mb-8 */
/* Phrase édito : text-[32px] md:[44px] lg:[52px] tracking-[-0.035em] leading-[1.02] max-w-4xl. */
.footer-lead { margin: 0; max-width: 56rem; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.02; color: #fff; font-weight: 700; letter-spacing: -0.035em; }
.footer-lead-muted { color: rgba(255, 255, 255, 0.4); }  /* text-white/40 */

/* Grille fixe parité grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-8 + py-12. */
.footer-nav {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem;  /* lg:grid-cols-6 gap-8 */
  padding-block: 3rem;                                              /* py-12 = 48px */
}
@media (max-width: 1023px) { .footer-nav { grid-template-columns: repeat(3, 1fr); } }  /* sm:grid-cols-3 */
@media (max-width: 639px)  { .footer-nav { grid-template-columns: repeat(2, 1fr); } }  /* grid-cols-2 */
/* Titre de colonne footer : type-eyebrow-tight text-white/40 (= 10.5px, 40%). */
.footer-col-title {
  margin: 0 0 1rem;  /* mb-4 */
  font-size: 0.656rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 0.5rem; }  /* space-y-2 = 8px */
.footer-col a {
  display: inline-flex; align-items: center;
  color: rgba(255, 255, 255, 0.75); font-size: 0.78rem; line-height: 1.375;  /* text-[12.5px] text-white/75 leading-snug */
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #60a5fa; text-decoration: none; }  /* hover:text-blue-400 (parité stricte : pas de transform/shadow) */

.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;  /* gap-x-5 */
  padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1);       /* py-5 border-t white/10 */
  padding-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.719rem; font-weight: 400; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.01em;  /* text-[11.5px] text-white/50 */
}
.footer-legal a { color: rgba(255, 255, 255, 0.5); font-family: var(--font-mono); font-weight: 400; transition: color 0.2s ease; }
.footer-legal a:hover { color: #fff; }

/* ----- Page /connexion (auth V4 indépendante) --------------------------- */
.connexion {
  max-width: 28rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter) 6rem;
}
.connexion-head { text-align: center; margin-bottom: 1.75rem; }
.connexion-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.875rem, 4vw, 2.375rem);
  font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
}
.connexion-lead { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-dim); }
.connexion-error {
  margin: 1.5rem 0 0; padding: 0.75rem 1rem; border-radius: var(--radius);
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;  /* rose-50 / rose-200 / red-700 */
  font-size: 0.875rem; text-align: center;
}
.connexion-providers {
  display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.75rem;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface-soft);
}
.connexion-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  height: 48px; padding: 0 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--page); color: var(--ink);
  font-size: 0.9375rem; font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.connexion-btn:hover { text-decoration: none; border-color: var(--ink-faint); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
.connexion-btn-google:hover { border-color: var(--brand); }
.connexion-btn-microsoft:hover { border-color: #00a4ef; }
.connexion-btn svg { flex-shrink: 0; }
.connexion-btn:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 2px; }
.connexion-note { margin-top: 1.25rem; text-align: center; font-size: 0.8125rem; color: var(--ink-faint); }

/* ----- A11y : focus-visible renforcé + respect prefers-reduced-motion ---- */
.footer-col a:focus-visible, .footer-legal a:focus-visible {
  outline: 2px solid var(--brand-300); outline-offset: 3px; border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: reduce) {
  .footer-col a, .footer-legal a, .nav-link-item, .nav-link-icon, .nav-link-chevron,
  .offer, .pain, .usecase, .pipeline-step, .hero-theme, .nav-featured, .nav-featured-icon,
  .nav-featured-cta-icon, .mcp-tool::before { transition: none !important; }
}
/* ==========================================================================
   Page d'accueil `/` — parité PIXEL home-v7 Next
   (apps/prescriptio/src/components/home-v7/index.tsx + globals.css v7-*).

   Thème : LIGHT partout, SAUF le HERO (dark #0a0d14).
   Chaque section porte son propre fond ; `main.home` est full-bleed (override
   du `main {max-width/padding}` de base.css). Les valeurs sont extraites du
   Tailwind Next (chaque bloc cite la section source).

   Familles incluses :
   - Utilitaires globaux portés : type-* (globals.css l.53-75) + v7-* (l.315-668)
   - Hero, Démo, KPI, Preuve, OS, Douleur, Modules, Roadmap, Acteurs, Sources,
     Prix, Pricing + FAQ.
   ========================================================================== */

/* ── Full-bleed : la home n'utilise pas le conteneur centré de base.css ── */
main.home {
  max-width: none;
  margin: 0;
  padding: 0;
}
main.home > section { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   B0 — UTILITAIRES GLOBAUX PORTÉS
   ═══════════════════════════════════════════════════════════════════════ */

/* type-* (globals.css l.53-75) */
.type-eyebrow { font-family: var(--font-sans); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
.type-eyebrow-wide { font-family: var(--font-sans); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; }
.type-eyebrow-tight { font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
.type-micro-badge { font-family: var(--font-sans); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.type-micro-label { font-family: var(--font-sans); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.type-data { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Statuts (globals.css l.599-608) */
.v7-status-live { background: rgba(16, 185, 129, 0.1); color: #047857; border: 1px solid rgba(16, 185, 129, 0.3); }
.v7-status-soon { background: rgba(99, 102, 241, 0.1); color: #4338ca; border: 1px solid rgba(99, 102, 241, 0.3); }

/* KPI strip (globals.css l.470-480) */
.v7-kpi-strip { border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; background: #fff; }
.v7-kpi-cell { padding: 22px 16px; text-align: left; border-right: 1px solid #f1f5f9; }
.v7-kpi-cell:last-child { border-right: none; }

/* Tabs persona (globals.css l.483-499) */
.v7-tab-trigger { padding: 10px 20px; font-size: 13.5px; font-weight: 600; color: #64748b; background: transparent; border: none; cursor: pointer; transition: all 0.2s; position: relative; text-decoration: none; }
.v7-tab-trigger:hover { color: #2563eb; text-decoration: none; }
.v7-tab-trigger.active { color: #2563eb; background: #eff6ff; border-radius: 8px; }

/* Sections backgrounds (globals.css l.502-573) */
.v7-pipeline-section { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(37, 99, 235, 0.04), transparent 60%), linear-gradient(180deg, #f8fafc 0%, #fff 100%); }
.v7-os-section { background: linear-gradient(180deg, #f8fafc 0%, #fff 48%, #f8fafc 100%); }
.v7-os-grid {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 18%, black 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 18%, black 76%, transparent 100%);
}
.v7-douleur-section { background: radial-gradient(ellipse 70% 42% at 50% 0%, rgba(37, 99, 235, 0.045), transparent 64%), linear-gradient(180deg, #fff 0%, #f8fafc 52%, #fff 100%); }
.v7-roi-section { background: linear-gradient(180deg, #fff 0%, #fefce8 30%, #fff 100%); }

/* Meters (globals.css l.592-596) — état statique = plein (pas d'anim JS). */
.v7-meter-fill { transform-origin: left center; }

/* FAQ accordion (globals.css l.611-631) — natif <details>/<summary>. */
.v7-faq summary { cursor: pointer; list-style: none; }
.v7-faq summary::-webkit-details-marker { display: none; }
.v7-faq summary::after { content: "+"; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: #2563eb; transition: transform 200ms; }
.v7-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }

/* Pricing best (globals.css l.640-644) */
.v7-pricing-best { border: 2px solid #2563eb; box-shadow: 0 25px 60px -25px rgba(37, 99, 235, 0.4); transform: translateY(-8px); }

/* Source card (globals.css l.647-668) */
.v7-source-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; transition: all 0.2s; text-align: center; }
.v7-source-card:hover { border-color: #93c5fd; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.2); transform: translateY(-2px); }
.v7-source-card .src-name { font-weight: 700; font-size: 14px; color: #0f172a; }
.v7-source-card .src-cat { font-size: 11px; color: #64748b; margin-top: 3px; }

/* Glass badge (globals.css l.322-328) */
.v7-glass-badge { background: rgba(248, 250, 252, 0.66); border: 1px solid rgba(226, 232, 240, 0.58); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 6px 14px rgba(15, 23, 42, 0.035); }

/* VR card (globals.css l.330-371) — simplifié, état au repos (sans anim entrée). */
.v7-vr-stage { isolation: isolate; perspective: 1200px; position: relative; }
.v7-vr-card {
  position: relative; z-index: 1;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
  border: 1px solid transparent;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.045),
    0 14px 34px rgba(15, 23, 42, 0.085),
    0 34px 72px rgba(37, 99, 235, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* ═══════════════════════════════════════════════════════════════════════
   B1 — SECTION 1 · HERO (DARK)  [Next l.196-368]
   ═══════════════════════════════════════════════════════════════════════ */
.hero-v7 {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; overflow: hidden;
  min-height: calc(100svh - 3.5rem);
  background: #0a0d14; color: #e6e9f2;
}
.hero-glow {
  pointer-events: none; position: absolute; left: 50%; top: 24%; z-index: -10;
  height: 600px; width: 1200px; max-width: 150vw; transform: translateX(-50%);
  opacity: 0.32; filter: blur(40px);
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.35) 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 120px, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 120px, black 100%);
}
.hero-grid {
  pointer-events: none; position: absolute; inset: 0; z-index: -10; opacity: 0.22;
  background-image: linear-gradient(#1c2333 1px, transparent 1px), linear-gradient(90deg, #1c2333 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
}
.hero-inner {
  position: relative; z-index: 1; margin: 0 auto; width: 100%; max-width: 1200px;
  display: flex; flex: 1; flex-direction: column; padding: 48px 24px 32px;
}
@media (min-width: 1024px) { .hero-inner { padding: 52px 32px 32px; } }

.hero-head { margin: 0 auto 32px; max-width: 1080px; text-align: center; }
.hero-title { margin: 0 auto; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; color: #e6e9f2; text-wrap: balance; }
.hero-title-em { display: block; font-size: 0.58em; font-weight: 400; font-style: italic; line-height: 1.12; color: #8b93a7; }
.hero-sub { margin: 20px auto 0; max-width: 760px; font-size: 16px; line-height: 1.6; color: #8b93a7; }

/* Cartes-preuve — double rangée scrollable [Next l.244] */
.hero-themes-grid {
  margin: 0 -4px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px; overflow-x: auto; padding: 0 4px 8px;
  scrollbar-width: thin; scrollbar-color: #2a3447 transparent;
}
.hero-theme-card {
  width: 230px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px;
  border-radius: 8px; border: 1px solid #1c2333; background: rgba(15, 19, 32, 0.5);
  padding: 10px 14px; transition: border-color 0.15s; text-decoration: none;
}
.hero-theme-card:hover { border-color: #2a3447; text-decoration: none; }
.hero-theme-card.accent { border-color: rgba(37, 99, 235, 0.7); background: rgba(37, 99, 235, 0.08); box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25); }
.hero-theme-card.accent:hover { border-color: #3b82f6; }
.hero-theme-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; color: #e6e9f2; }
.hero-theme-card.accent .hero-theme-label { color: #93c5fd; }
.hero-theme-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #5a6478; }
.hero-theme-verbatim { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; font-style: italic; line-height: 1.35; color: #aeb6c8; }
.hero-theme-lock { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding-top: 6px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #5a6478; }
.hero-theme-lock-ic svg { width: 12px; height: 12px; flex-shrink: 0; }
.hero-theme-cctp { font-weight: 500; color: #8b93a7; }
.hero-theme-see { color: rgba(96, 165, 250, 0.8); transition: color 0.15s; }
.hero-theme-card:hover .hero-theme-see { color: #93c5fd; }

.hero-themes-more {
  width: 230px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; border-radius: 8px; border: 1px dashed #2a3447; padding: 10px 14px; text-align: center;
  transition: border-color 0.15s, background 0.15s; text-decoration: none;
}
.hero-themes-more:hover { border-color: rgba(59, 130, 246, 0.6); background: rgba(37, 99, 235, 0.05); text-decoration: none; }
.hero-themes-more-n { font-size: 18px; font-weight: 500; color: #e6e9f2; }
.hero-themes-more-label { font-size: 11.5px; line-height: 1.35; color: #8b93a7; }
.hero-themes-more-cta { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #60a5fa; }

/* Ligne d'info [Next l.252] */
.hero-infoline { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
@media (min-width: 640px) { .hero-infoline { flex-direction: row; justify-content: space-between; align-items: center; } }
.hero-infoline-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: #5a6478; }
.hero-infoline-unlock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; color: #60a5fa; transition: color 0.15s; text-decoration: none; }
.hero-infoline-unlock:hover { color: #93c5fd; text-decoration: none; }
.hero-infoline-lock-ic svg { width: 12px; height: 12px; }

/* Double offre [Next l.266] */
.hero-offers { margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .hero-offers { grid-template-columns: 1fr 1fr; } }
.hero-offer { display: flex; flex-direction: column; gap: 16px; border-radius: 12px; border: 1px solid #1c2333; background: rgba(15, 19, 32, 0.6); padding: 20px 24px; }
@media (min-width: 640px) { .hero-offer { flex-direction: row; align-items: center; gap: 20px; } }
.hero-offer-featured { position: relative; border-color: #2563eb; background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(15, 19, 32, 0.8) 60%); box-shadow: 0 16px 60px -20px rgba(37, 99, 235, 0.35); }
.hero-offer-badge { position: absolute; top: -8px; left: 22px; border-radius: 4px; background: #2563eb; padding: 3px 9px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; }
.hero-offer-main { min-width: 0; flex: 1; }
.hero-offer-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: #e6e9f2; }
.hero-offer-eyebrow-accent { color: #60a5fa; }
.hero-offer-title { margin: 6px 0 0; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: #e6e9f2; }
.hero-offer-body { margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; color: #8b93a7; }
.hero-offer-price { flex-shrink: 0; text-align: left; }
@media (min-width: 640px) { .hero-offer-price { min-width: 96px; text-align: right; } .hero-offer-price-wide { min-width: 138px; } }
.hero-offer-amount { margin: 0; font-size: 22px; font-weight: 500; line-height: 1; color: #e6e9f2; }
.hero-offer-per { font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: #5a6478; }
.hero-offer-per-accent { color: #60a5fa; }
.hero-offer-note { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: #5a6478; }
.hero-offer-note-bright { color: #8b93a7; }
.hero-offer-cta { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px; border: 1px solid #2a3447; border-radius: 8px; padding: 12px 20px; font-size: 14.5px; font-weight: 500; color: #e6e9f2; transition: border-color 0.15s, background 0.15s; text-decoration: none; }
.hero-offer-cta:hover { border-color: #3a4459; background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.hero-offer-cta-arrow { font-family: var(--font-mono); color: #8b93a7; }
.hero-offer-cta-primary { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px; border: 1px solid #3b82f6; background: #2563eb; border-radius: 8px; padding: 13px 20px; font-size: 14.5px; font-weight: 600; color: #fff; box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15); transition: background 0.15s; text-decoration: none; }
.hero-offer-cta-primary:hover { background: #3b82f6; text-decoration: none; }
.hero-offer-cta-primary .hero-offer-cta-arrow { color: #fff; }

/* Barre de pied [Next l.352] */
.hero-footer { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #1c2333; background: rgba(10, 13, 20, 0.6); padding: 12px 24px; text-align: center; }
@media (min-width: 640px) { .hero-footer { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; } }
@media (min-width: 1024px) { .hero-footer { padding-left: 32px; padding-right: 32px; } }
.hero-footer-live { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (min-width: 640px) { .hero-footer-live { justify-content: flex-start; } }
.hero-footer-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: #5a6478; }
.hero-live-dot { position: relative; display: inline-flex; height: 8px; width: 8px; border-radius: 9999px; background: #34d399; }
.hero-live-dot::before { content: ""; position: absolute; inset: 0; border-radius: 9999px; background: #34d399; opacity: 0.5; animation: hero-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes hero-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* ═══════════════════════════════════════════════════════════════════════
   B2 — SECTION 2 · DÉMO PRODUIT (LIGHT)  [Next l.412-558]
   ═══════════════════════════════════════════════════════════════════════ */
.demo-section { border-top: 1px solid var(--line); background: rgba(248, 250, 252, 0.7); scroll-margin-top: 90px; }
.demo-inner { max-width: 1400px; margin: 0 auto; padding: 64px 24px; }
@media (min-width: 1024px) { .demo-inner { padding: 80px 40px; } }
.demo-head { margin: 0 auto 36px; max-width: 780px; text-align: center; }
.demo-eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px; border: 1px solid #dbeafe; background: #fff; padding: 6px 12px; color: #1d4ed8; box-shadow: 0 8px 24px -18px rgba(37, 99, 235, 0.5); }
.demo-eyebrow-play svg { width: 14px; height: 14px; display: block; }
.demo-title { margin: 16px 0 0; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: normal; color: var(--ink-strong); }
@media (min-width: 640px) { .demo-title { font-size: 38px; } }
.demo-sub { margin: 12px auto 0; max-width: 660px; font-size: 15px; line-height: 1.6; color: var(--ink-dim); }
.demo-stage { max-width: 920px; margin: 0 auto; }
.demo-card { max-width: 860px; margin: 0 auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: 0 28px 80px -32px rgba(15, 23, 42, 0.42); }
.demo-chrome { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: #f8fafc; padding: 10px 16px; }
.demo-dots { display: flex; gap: 6px; }
.demo-dot { height: 10px; width: 10px; border-radius: 9999px; }
.demo-dot-1, .demo-dot-2 { background: #cbd5e1; }
.demo-dot-3 { background: rgba(59, 130, 246, 0.8); }
.demo-chrome-title { margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; color: #64748b; }
.demo-chrome-status { margin-left: auto; border-radius: 9999px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; background: #eff6ff; color: #1d4ed8; }
.demo-tabs { border-bottom: 1px solid var(--line); background: #fff; padding: 10px 16px; display: flex; gap: 8px; overflow-x: auto; }
.demo-tab { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; border-radius: 9999px; border: 1px solid var(--line); background: #fff; padding: 4px 10px; font-size: 11px; font-weight: 600; color: #475569; text-decoration: none; transition: all 0.2s; }
.demo-tab:hover { border-color: #cbd5e1; background: #f8fafc; text-decoration: none; }
.demo-tab.active { background: #2563eb; color: #fff; border-color: transparent; box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.25); }
.demo-tab-n { display: flex; height: 16px; width: 16px; align-items: center; justify-content: center; border-radius: 9999px; font-size: 9px; font-weight: 700; background: #eff6ff; color: #1d4ed8; }
.demo-tab.active .demo-tab-n { background: rgba(255, 255, 255, 0.2); color: #fff; }
.demo-progress { margin: 10px 16px 0; height: 4px; overflow: hidden; border-radius: 9999px; background: #f1f5f9; }
.demo-progress-fill { height: 100%; width: 100%; border-radius: 9999px; background: #2563eb; }
.demo-panel { min-height: 390px; background: linear-gradient(to bottom right, #fff, rgba(248, 250, 252, 0.7), #fff); padding: 16px; }
@media (min-width: 640px) { .demo-panel { min-height: 410px; } }
.demo-panel-head { margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.demo-panel-eyebrow { color: #2563eb; }
.demo-panel-title { margin: 4px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.demo-panel-tag { border-radius: 9999px; border: 1px solid #bfdbfe; padding: 4px 10px; font-size: 11px; font-weight: 600; background: #eff6ff; color: #1d4ed8; }
.demo-foot { margin-top: 12px; text-align: center; font-size: 11.5px; color: #64748b; }

/* Panneau Détecter (carrousel) */
.demo-detect { display: flex; flex-direction: column; gap: 16px; }
.demo-detect-searchwrap { border-radius: 12px; border: 1px solid #bfdbfe; background: rgba(239, 246, 255, 0.5); padding: 12px; }
.demo-detect-search { display: flex; align-items: center; gap: 12px; border-radius: 8px; border: 1px solid #bfdbfe; background: #fff; padding: 10px 12px; }
.demo-detect-search svg { display: block; flex-shrink: 0; }
.demo-detect-query { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink); }
.demo-detect-count { font-family: var(--font-mono); font-size: 10.5px; color: #1d4ed8; }
.demo-detect-rows { display: flex; flex-direction: column; gap: 8px; }
.demo-opp { border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.demo-opp-top { display: flex; align-items: center; gap: 8px; }
.demo-tag { border-radius: 4px; padding: 2px 6px; }
.tag-blue { background: #dbeafe; color: #1d4ed8; }
.tag-blue-soft { background: #eff6ff; color: #1d4ed8; }
.tag-emerald { background: #d1fae5; color: #047857; }
.tag-amber { background: #fef3c7; color: #b45309; }
.demo-opp-title { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.demo-opp-amount { font-size: 11px; font-weight: 700; color: var(--ink); }
.demo-opp-bot { margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.demo-opp-meta { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: #64748b; }
.demo-opp-score { font-size: 10.5px; font-weight: 600; color: #1d4ed8; }
.demo-detect-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-ministat { border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.demo-ministat-v { margin: 0; font-size: 20px; font-weight: 700; line-height: 1; color: var(--ink); }
.demo-ministat-l { margin: 4px 0 0; font-size: 11px; color: #64748b; }

/* ═══════════════════════════════════════════════════════════════════════
   B3 — SECTION 3 · KPI STRIP (LIGHT)  [Next l.987-1071]
   ═══════════════════════════════════════════════════════════════════════ */
.kpi-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .kpi-grid { grid-template-columns: repeat(6, 1fr); } }
.kpi-row { display: flex; align-items: flex-start; gap: 10px; }
.kpi-icon { margin-top: 4px; flex-shrink: 0; }
.kpi-value { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1; }
.kpi-label { margin: 4px 0 0; font-size: 11.5px; color: #64748b; line-height: 1.35; }

/* ═══════════════════════════════════════════════════════════════════════
   B4 — SECTION 4 · PREUVE (LIGHT)  [Next l.1077-1129]
   ═══════════════════════════════════════════════════════════════════════ */
.preuve-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.preuve-inner { max-width: 1400px; margin: 0 auto; padding: 64px 24px; }
@media (min-width: 1024px) { .preuve-inner { padding: 80px 40px; } }
.preuve-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.preuve-eyebrow { color: #1d4ed8; }
.preuve-h2 { margin: 12px 0 0; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 640px) { .preuve-h2 { font-size: 34px; } }
.preuve-br { display: none; }
@media (min-width: 640px) { .preuve-br { display: block; } }
.preuve-h2-accent { color: #2563eb; }
.preuve-sub { margin: 16px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-dim); }
.preuve-sub em { font-style: italic; }
.preuve-sub strong { color: var(--ink); font-weight: 600; }
.preuve-cards { max-width: 48rem; margin: 40px auto 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .preuve-cards { grid-template-columns: repeat(2, 1fr); } }
.preuve-card-grey { border-radius: 16px; border: 1px solid var(--line); background: #f8fafc; padding: 24px; }
.preuve-card-blue { border-radius: 16px; border: 2px solid #93c5fd; background: rgba(239, 246, 255, 0.4); padding: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.preuve-card-grey .preuve-card-eyebrow { color: #94a3b8; }
.preuve-card-blue .preuve-card-eyebrow { color: #1d4ed8; }
.preuve-card-q { margin: 8px 0 0; font-size: 15px; font-weight: 600; }
.preuve-card-grey .preuve-card-q { color: #334155; }
.preuve-card-blue .preuve-card-q { color: var(--ink); }
.preuve-card-body { margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
.preuve-card-grey .preuve-card-body { color: #64748b; }
.preuve-card-blue .preuve-card-body { color: #475569; }
.preuve-cta-wrap { margin-top: 40px; text-align: center; }
.btn-primary-lg { display: inline-flex; height: 48px; align-items: center; gap: 8px; border-radius: 12px; background: #2563eb; padding: 0 24px; font-size: 14.5px; font-weight: 600; color: #fff; box-shadow: 0 10px 28px -10px rgba(37, 99, 235, 0.55); transition: background 0.15s; text-decoration: none; }
.btn-primary-lg:hover { background: #1d4ed8; text-decoration: none; }
.btn-arrow svg { width: 16px; height: 16px; display: block; }

/* ═══════════════════════════════════════════════════════════════════════
   B5 — SECTION 5 · SCHÉMA OS (LIGHT)  [Next l.1284-1343]
   ═══════════════════════════════════════════════════════════════════════ */
.os-section { position: relative; overflow: hidden; scroll-margin-top: 90px; }
.os-grid-overlay { position: absolute; inset: 0; pointer-events: none; }
.os-inner { position: relative; max-width: 1360px; margin: 0 auto; padding: 80px 24px; }
@media (min-width: 1024px) { .os-inner { padding: 96px 40px; } }
.os-head { max-width: 1120px; margin: 0 auto; text-align: center; }
.os-eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px; border: 1px solid #dbeafe; background: rgba(255, 255, 255, 0.8); padding: 6px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: #1d4ed8; box-shadow: 0 8px 24px -18px rgba(37, 99, 235, 0.5); }
.os-eyebrow-ic svg { width: 14px; height: 14px; display: block; }
.os-title { margin: 16px auto 0; max-width: 1120px; font-size: 34px; font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; color: var(--ink-strong); }
@media (min-width: 640px) { .os-title { font-size: 42px; } }
@media (min-width: 1024px) { .os-title { font-size: 50px; } }
.os-sub { margin: 16px auto 0; max-width: 960px; font-size: 15px; line-height: 1.6; color: var(--ink-dim); }
@media (min-width: 1024px) { .os-sub { font-size: 15.5px; } }
.os-cards { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .os-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .os-cards { grid-template-columns: repeat(5, 1fr); } }
.os-card { display: flex; flex-direction: column; min-height: 220px; border-radius: 16px; border: 1px solid var(--line); background: #fff; padding: 16px; box-shadow: 0 18px 46px -38px rgba(15, 23, 42, 0.5); transition: all 0.2s; text-decoration: none; }
.os-card:hover { transform: translateY(-2px); box-shadow: 0 24px 56px -40px rgba(15, 23, 42, 0.62); text-decoration: none; }
.os-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.os-card-icon { display: grid; place-items: center; height: 40px; width: 40px; border-radius: 12px; }
.os-card-icon svg { width: 20px; height: 20px; }
.os-card-status { border-radius: 9999px; padding: 2px 8px; }
.os-card-layer { margin-top: 16px; }
.os-card-title { margin: 4px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink-strong); }
.os-card-proof { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #334155; }
.os-card-desc { margin: 8px 0 0; flex: 1; font-size: 12.5px; line-height: 1.6; color: #64748b; }
.os-card-link { margin-top: 16px; display: inline-flex; width: fit-content; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.os-card-link-arrow svg { width: 14px; height: 14px; display: block; }
.os-card:hover .os-card-link-arrow { transform: translateX(2px); }
/* Tons OS (Next SYSTEM_LAYER_TONES l.1194-1228) */
.os-card.tone-blue .os-card-icon { background: #eff6ff; color: #2563eb; box-shadow: 0 0 0 1px #dbeafe; }
.os-card.tone-blue:hover { border-color: #bfdbfe; }
.os-card.tone-blue .os-card-layer, .os-card.tone-blue .os-card-link { color: #2563eb; }
.os-card.tone-amber .os-card-icon { background: #fffbeb; color: #b45309; box-shadow: 0 0 0 1px #fef3c7; }
.os-card.tone-amber:hover { border-color: #fde68a; }
.os-card.tone-amber .os-card-layer, .os-card.tone-amber .os-card-link { color: #b45309; }
.os-card.tone-emerald .os-card-icon { background: #ecfdf5; color: #047857; box-shadow: 0 0 0 1px #d1fae5; }
.os-card.tone-emerald:hover { border-color: #a7f3d0; }
.os-card.tone-emerald .os-card-layer, .os-card.tone-emerald .os-card-link { color: #047857; }
.os-card.tone-indigo .os-card-icon { background: #eef2ff; color: #4f46e5; box-shadow: 0 0 0 1px #e0e7ff; }
.os-card.tone-indigo:hover { border-color: #c7d2fe; }
.os-card.tone-indigo .os-card-layer, .os-card.tone-indigo .os-card-link { color: #4f46e5; }
.os-card.tone-cyan .os-card-icon { background: #ecfeff; color: #0891b2; box-shadow: 0 0 0 1px #cffafe; }
.os-card.tone-cyan:hover { border-color: #a5f3fc; }
.os-card.tone-cyan .os-card-layer, .os-card.tone-cyan .os-card-link { color: #0891b2; }

/* ═══════════════════════════════════════════════════════════════════════
   B6 — SECTION 6 · DOULEUR (LIGHT)  [Next l.1376-1417]
   ═══════════════════════════════════════════════════════════════════════ */
.douleur-section { position: relative; overflow: hidden; }
.douleur-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 96px 24px; }
@media (min-width: 1024px) { .douleur-inner { padding: 112px 40px; } }
.douleur-head { max-width: 860px; }
.douleur-title { margin: 0; font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 1024px) { .douleur-title { font-size: 48px; } }
.douleur-sub { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-dim); }
.douleur-cards { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .douleur-cards { grid-template-columns: repeat(2, 1fr); } }
.douleur-card { border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); padding: 24px; box-shadow: 0 18px 50px -42px rgba(15, 23, 42, 0.45); transition: all 0.2s; }
@media (min-width: 1024px) { .douleur-card { padding: 28px; } }
.douleur-card:hover { transform: translateY(-2px); border-color: #bfdbfe; box-shadow: 0 24px 64px -46px rgba(37, 99, 235, 0.35); }
.douleur-card-top { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.douleur-friction { border-radius: 9999px; border: 1px solid var(--line); background: #f8fafc; padding: 4px 10px; font-size: 11px; font-weight: 600; color: #64748b; }
.douleur-metric { font-size: 13px; font-weight: 700; color: #1d4ed8; }
.douleur-card-title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink-strong); }
.douleur-card-text { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-dim); }
.douleur-note { margin-top: 40px; max-width: 860px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.8); padding: 20px; box-shadow: 0 18px 50px -44px rgba(15, 23, 42, 0.35); }
@media (min-width: 1024px) { .douleur-note { padding: 24px; } }
.douleur-note p { margin: 0; font-size: 16px; line-height: 1.6; color: #334155; }
.douleur-note strong { color: var(--ink-strong); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════════
   B7 — SECTIONS 7-11 · MODULES (LIGHT)  [Next l.1423 + bullets l.1493-1571]
   ═══════════════════════════════════════════════════════════════════════ */
.module-section { scroll-margin-top: 64px; }
.module-bg-white { background: #fff; }
.module-bg-slate { background: #f8fafc; }
.module-bg-indigo { background: linear-gradient(135deg, rgba(238, 242, 255, 0.4), #fff 50%, rgba(239, 246, 255, 0.4)); }
.module-bg-cyan { background: linear-gradient(135deg, rgba(236, 254, 255, 0.4), #fff 50%, rgba(239, 246, 255, 0.4)); }
.module-inner { max-width: 1280px; margin: 0 auto; padding: 96px 24px; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .module-inner { padding: 112px 40px; grid-template-columns: 1fr 1fr; gap: 80px; } }
/* Inversion mockup-first (Analyser, Répondre) : sur grand écran, mockup à gauche */
@media (min-width: 1024px) {
  .module-order-first { order: 1; }
  .module-order-second { order: 2; }
}
.module-step { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.module-step-n { font-size: 14px; font-weight: 700; }
.module-text.tone-blue .module-step-n { color: #2563eb; }
.module-text.tone-amber .module-step-n { color: #b45309; }
.module-text.tone-emerald .module-step-n { color: #047857; }
.module-text.tone-indigo .module-step-n { color: #4f46e5; }
.module-text.tone-cyan .module-step-n { color: #0891b2; }
.module-step-rule { height: 1px; flex: 1; max-width: 80px; background: var(--line); }
.module-status { border-radius: 9999px; padding: 2px 8px; }
.module-title { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 1024px) { .module-title { font-size: 44px; } }
.module-text.tone-blue .module-title-accent { color: #2563eb; }
.module-text.tone-amber .module-title-accent { color: #d97706; }
.module-text.tone-emerald .module-title-accent { color: #047857; }
.module-text.tone-indigo .module-title-accent { color: #4f46e5; }
.module-text.tone-cyan .module-title-accent { color: #0891b2; }
.module-lead { margin: 20px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-dim); }
.module-lead strong { color: var(--ink); font-weight: 600; }
.module-bullets { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.module-bullet { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.module-bullet-icon { display: inline-flex; align-items: center; justify-content: center; height: 24px; width: 24px; border-radius: 9999px; flex-shrink: 0; margin-top: 2px; }
.module-bullet-icon svg { width: 14px; height: 14px; }
.module-text.tone-blue .module-bullet-icon { background: #dbeafe; color: #2563eb; }
.module-text.tone-amber .module-bullet-icon { background: #fef3c7; color: #b45309; }
.module-text.tone-emerald .module-bullet-icon { background: #d1fae5; color: #047857; }
.module-text.tone-indigo .module-bullet-icon { background: #e0e7ff; color: #4f46e5; }
.module-text.tone-cyan .module-bullet-icon { background: #cffafe; color: #0891b2; }
/* Bullet « bientôt » (icône horloge ambre) */
.module-bullet:has(.module-bullet-badge) .module-bullet-icon { background: #fffbeb; color: #d97706; }
.module-bullet-text { font-size: 15px; color: #334155; }
.module-bullet-text strong { color: var(--ink); font-weight: 600; }
.module-bullet-badge { border-radius: 4px; padding: 2px 6px; background: #fffbeb; color: #b45309; border: 1px solid #fde68a; vertical-align: middle; }
/* Callout module (Répondre/Connecter) */
.module-callout { margin-top: 32px; display: flex; align-items: flex-start; gap: 12px; border-radius: 12px; background: #fff; padding: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.module-callout-indigo { border: 1px solid #c7d2fe; }
.module-callout-cyan { border: 1px solid #a5f3fc; }
.module-callout-ic { flex-shrink: 0; margin-top: 2px; }
.module-callout-ic svg { width: 20px; height: 20px; }
.module-callout-indigo .module-callout-ic { color: #4338ca; }
.module-callout-cyan .module-callout-ic { color: #0891b2; }
.module-callout-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.module-callout-body { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-dim); }
.module-callout-indigo .module-callout-body strong { color: #4338ca; }

/* Mockups (carte navigateur + macbar) */
.mockup-card { border-radius: 16px; border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.4); }
.mockup-card-indigo { border-color: #c7d2fe; }
.macbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.macbar-dots { display: flex; gap: 6px; }
.macbar-dot { height: 10px; width: 10px; border-radius: 9999px; }
.macbar-dot-red { background: rgba(248, 113, 113, 0.7); }
.macbar-dot-amber { background: rgba(251, 191, 36, 0.7); }
.macbar-dot-green { background: rgba(52, 211, 153, 0.7); }
.macbar-url { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: #64748b; }

/* Mockup Détecter */
.mk-detect { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mk-detect-search { display: flex; align-items: center; gap: 12px; height: 48px; border-radius: 8px; border: 2px solid #3b82f6; background: rgba(239, 246, 255, 0.3); padding: 0 12px; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.mk-detect-search svg { display: block; }
.mk-detect-query { flex: 1; font-size: 14px; font-weight: 500; color: var(--ink); }
.mk-detect-count { font-family: var(--font-mono); font-size: 10px; color: #2563eb; }
.mk-detect-rows { display: flex; flex-direction: column; gap: 6px; }
.recherche-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.recherche-row-priv { border-color: #fde68a; background: rgba(255, 251, 235, 0.3); }
.recherche-row-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: #334155; }
.recherche-row-amount { font-size: 11px; font-weight: 600; color: var(--ink); }
.recherche-row-delay { font-size: 10px; color: #64748b; background: #f1f5f9; border-radius: 4px; padding: 0 6px; }
.recherche-row-signal { font-size: 10px; color: #b45309; background: #fef3c7; border-radius: 4px; padding: 0 6px; }
.mk-detect-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f1f5f9; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #64748b; }
.mk-detect-dot { height: 6px; width: 6px; border-radius: 9999px; background: #10b981; }

/* Mockup Analyser */
.mk-ao-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.mk-ao-chrome-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; color: #334155; }
.mk-ao-chrome-ref { margin-left: auto; font-size: 10.5px; color: #64748b; }
.mk-ao-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mk-ao-synth { border-radius: 12px; background: linear-gradient(to bottom right, #eef2ff, #eff6ff); padding: 16px; border: 1px solid rgba(199, 210, 254, 0.5); }
.mk-ao-synth-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mk-ao-star svg { width: 14px; height: 14px; display: block; }
.mk-ao-synth-eyebrow { color: #4338ca; }
.mk-ao-synth-text { margin: 0; font-size: 12.5px; line-height: 1.6; color: #334155; }
.mk-ao-synth-text strong { font-weight: 600; }
.mk-ao-crit-eyebrow { margin: 0 0 10px; color: #64748b; }
.mk-ao-crit-list { display: flex; flex-direction: column; gap: 6px; }
.mk-ao-crit { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 8px; }
.mk-ao-crit-ic { margin-top: 2px; flex-shrink: 0; }
.mk-ao-crit-ic svg { width: 14px; height: 14px; display: block; }
.mk-ao-crit-rose { background: #fff1f2; border: 1px solid #fecdd3; }
.mk-ao-crit-amber { background: #fffbeb; border: 1px solid #fde68a; }
.mk-ao-crit-blue { background: #eff6ff; border: 1px solid #bfdbfe; }
.mk-ao-crit-text { font-size: 12px; color: #334155; }
.mk-ao-crit-rose-txt { color: #be123c; }
.mk-ao-crit-amber-txt { color: #b45309; }
.mk-ao-crit-blue-txt { color: #1d4ed8; }
.mk-ao-foot { padding-top: 8px; font-size: 11px; color: #64748b; }

/* Mockup Suivre (kanban) */
.mk-kb-chrome { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.mk-kb-chrome-title { font-size: 12px; font-weight: 600; color: #334155; }
.mk-kb-chrome-view { font-size: 10.5px; color: #64748b; }
.mk-kb-cols { padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-kb-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 0 4px; }
.mk-kb-col-title { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.mk-kb-col-count { font-size: 10.5px; }
.mk-kb-col-title.kb-slate, .mk-kb-col-count.kb-slate { color: #475569; }
.mk-kb-col-title.kb-amber, .mk-kb-col-count.kb-amber { color: #b45309; }
.mk-kb-col-title.kb-emerald, .mk-kb-col-count.kb-emerald { color: #047857; }
.mk-kb-col-count.kb-slate { color: #64748b; }
.mk-kb-cards { display: flex; flex-direction: column; gap: 6px; }
.mk-kb-card { border-radius: 6px; padding: 8px; border: 1px solid var(--line); background: #fff; }
.mk-kb-card-urgent { border: 2px solid #fcd34d; background: rgba(255, 251, 235, 0.5); }
.mk-kb-card-emerald { border: 1px solid #a7f3d0; background: rgba(236, 253, 245, 0.3); }
.mk-kb-card-title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; font-weight: 600; color: var(--ink); }
.mk-kb-card-meta { margin: 4px 0 0; font-size: 9px; color: #64748b; }
.mk-kb-meta-urgent { color: #b45309; }
.mk-kb-meta-emerald { color: #047857; }
.mk-kb-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); background: #f8fafc; font-size: 11px; color: #64748b; }
.mk-kb-foot strong { color: #334155; }
.mk-kb-rate { color: #047857; }

/* Mockup Répondre */
.mk-rep-chrome { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #e0e7ff; background: rgba(238, 242, 255, 0.5); }
.mk-rep-chrome-left { display: flex; align-items: center; gap: 8px; }
.mk-rep-star svg { width: 14px; height: 14px; display: block; }
.mk-rep-chrome-title { font-size: 12px; font-weight: 600; color: #4338ca; }
.mk-rep-chrome-ver { font-size: 10.5px; color: #4f46e5; }
.mk-rep-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mk-rep-sec-eyebrow { margin: 0 0 6px; color: #64748b; }
.mk-rep-block { border-radius: 8px; padding: 12px; }
.mk-rep-block-emerald { border: 1px solid #a7f3d0; background: rgba(236, 253, 245, 0.3); }
.mk-rep-block-dashed { border: 1px dashed #cbd5e1; background: #f8fafc; }
.mk-rep-block-text { margin: 0; font-size: 12px; line-height: 1.6; color: #334155; }
.mk-rep-block-text strong { font-weight: 600; }
.mk-rep-tag-emerald { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 10px; color: #047857; }
.mk-rep-tag-bordered { margin-top: 8px; padding-top: 8px; border-top: 1px solid #a7f3d0; }
.mk-rep-check svg { width: 11px; height: 11px; display: block; }
.mk-rep-ref { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #334155; margin-bottom: 6px; }
.mk-rep-ref-dot svg { width: 10px; height: 10px; display: block; }
.mk-rep-dashed-text { margin: 0; font-size: 11.5px; font-style: italic; color: #64748b; }
.mk-rep-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid #e0e7ff; background: rgba(238, 242, 255, 0.3); }
.mk-rep-foot span:first-child { font-size: 11px; color: #4338ca; }
.mk-rep-foot .type-data { font-size: 10.5px; color: #4f46e5; }

/* Mockup Connecter (terminal cyan) [Next l.1976-2038] */
.mk-enrich { display: flex; flex-direction: column; gap: 16px; }
.mk-term { background: #0b1220; border-radius: 14px; border: 1px solid rgba(34, 211, 238, 0.25); overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 25px 60px -20px rgba(15, 23, 42, 0.45), 0 8px 20px -8px rgba(37, 99, 235, 0.25); font-family: var(--font-mono); }
.mk-term-head { background: #050912; padding: 10px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(148, 163, 184, 0.15); }
.mk-term-dot { height: 11px; width: 11px; border-radius: 50%; }
.mk-term-dot-red { background: #ef4444; }
.mk-term-dot-amber { background: #f59e0b; }
.mk-term-dot-green { background: #10b981; }
.mk-term-host { font-size: 11px; color: #94a3b8; margin-left: 8px; }
.mk-term-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: #22d3ee; }
.mk-term-live-dot { position: relative; display: inline-flex; height: 6px; width: 6px; border-radius: 9999px; background: #22d3ee; }
.mk-term-live-dot::before { content: ""; position: absolute; inset: 0; border-radius: 9999px; background: #22d3ee; opacity: 0.6; animation: hero-ping 2s infinite; }
.mk-term-body { padding: 18px 20px; color: #cbd5e1; font-size: 13px; line-height: 1.65; }
.mk-term-line { margin: 2px 0; }
.mk-term-prompt { color: #22d3ee; font-weight: 600; }
.mk-term-cmd { color: #f1f5f9; }
.mk-term-arg { color: #64748b; }
.mk-term-val { color: #f8fafc; font-weight: 500; }
.mk-term-ok { color: #34d399; font-weight: 500; }
.mk-term-block { margin: 12px 0; }
.mk-term-json { margin: 12px 0; font-size: 12px; line-height: 1.6; color: #94a3b8; }
.mk-j-i1 { padding-left: 12px; }
.mk-j-i2 { padding-left: 24px; }
.mk-j-i3 { padding-left: 36px; }
.mk-j-key { color: #fbbf24; }
.mk-j-str { color: #34d399; }
.mk-j-num { color: #c084fc; }
.mk-term-cursor { display: inline-block; width: 8px; height: 16px; background: #22d3ee; vertical-align: middle; margin-left: 2px; animation: mk-term-blink 1s step-end infinite; }
@keyframes mk-term-blink { 50% { opacity: 0; } }
.mk-term-foot { background: #050912; padding: 10px 16px; border-top: 1px solid rgba(148, 163, 184, 0.15); font-size: 10.5px; color: #94a3b8; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mk-term-link { color: #22d3ee; }
.mk-enrich-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 11.5px; }
.mk-enrich-badge { border-radius: 9999px; padding: 4px 10px; color: #475569; }

/* ═══════════════════════════════════════════════════════════════════════
   B8 — SECTION 12 · ROADMAP (LIGHT)  [Next l.2048-2174]
   ═══════════════════════════════════════════════════════════════════════ */
.roadmap-section { background: #fff; }
.roadmap-inner { max-width: 1280px; margin: 0 auto; padding: 96px 24px; }
@media (min-width: 1024px) { .roadmap-inner { padding: 112px 40px; } }
.roadmap-head { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.roadmap-eyebrow { margin: 0 0 12px; color: #2563eb; }
.roadmap-title { margin: 0; font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 1024px) { .roadmap-title { font-size: 48px; } }
.roadmap-sub { margin: 24px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-dim); }
.roadmap-cols { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .roadmap-cols { grid-template-columns: repeat(3, 1fr); } }
.roadmap-col { border-radius: 16px; padding: 24px; }
@media (min-width: 1024px) { .roadmap-col { padding: 28px; } }
.roadmap-col-livre { background: linear-gradient(135deg, rgba(236, 253, 245, 0.6), #fff); border: 1px solid #a7f3d0; }
.roadmap-col-encours { background: linear-gradient(135deg, rgba(255, 251, 235, 0.6), #fff); border: 1px solid #fde68a; }
.roadmap-col-avenir { background: linear-gradient(135deg, rgba(236, 254, 255, 0.6), #fff); border: 1px solid #a5f3fc; }
.roadmap-col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.roadmap-col-icon { display: inline-flex; align-items: center; justify-content: center; height: 44px; width: 44px; border-radius: 12px; flex-shrink: 0; }
.roadmap-col-icon svg { width: 22px; height: 22px; }
.roadmap-col-livre .roadmap-col-icon { background: #d1fae5; color: #047857; }
.roadmap-col-encours .roadmap-col-icon { background: #fef3c7; color: #b45309; }
.roadmap-col-avenir .roadmap-col-icon { background: #cffafe; color: #0e7490; }
.roadmap-col-eyebrow { margin: 0; }
.roadmap-col-livre .roadmap-col-eyebrow { color: #047857; }
.roadmap-col-encours .roadmap-col-eyebrow { color: #b45309; }
.roadmap-col-avenir .roadmap-col-eyebrow { color: #0e7490; }
.roadmap-col-h3 { margin: 2px 0 0; font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.roadmap-col-lead { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--ink-dim); }
.roadmap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.roadmap-item { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13.5px; }
.roadmap-dot { flex-shrink: 0; margin-top: 2px; }
.roadmap-dot svg { width: 14px; height: 14px; display: block; }
.roadmap-item-text { color: #334155; }
.roadmap-item-text strong { color: var(--ink); font-weight: 600; }
.roadmap-status-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.roadmap-status-item { border-radius: 8px; background: #fff; border: 1px solid #fef3c7; padding: 12px; margin: 0; }
.roadmap-status-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.roadmap-status-title { margin: 0; min-width: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); font-size: 13px; }
.roadmap-status-badge { flex-shrink: 0; white-space: nowrap; border-radius: 9999px; padding: 2px 8px; }
.roadmap-status-desc { margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-dim); }
.roadmap-avenir-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid #cffafe; }
.roadmap-avenir-note p { margin: 0; font-size: 11.5px; font-style: italic; line-height: 1.6; color: #0e7490; }
.roadmap-engage { margin: 48px auto 0; max-width: 820px; display: flex; align-items: flex-start; gap: 16px; border-radius: 16px; background: linear-gradient(135deg, #eff6ff, rgba(236, 254, 255, 0.4)); border: 1px solid #bfdbfe; padding: 24px; }
@media (min-width: 1024px) { .roadmap-engage { padding: 28px; } }
.roadmap-engage-ic { flex-shrink: 0; margin-top: 2px; }
.roadmap-engage-ic svg { width: 28px; height: 28px; display: block; }
.roadmap-engage-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.roadmap-engage-body { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-dim); }

/* ═══════════════════════════════════════════════════════════════════════
   B9 — SECTION 13 · ACTEURS / TABS (LIGHT)  [Next l.2212-2402]
   ═══════════════════════════════════════════════════════════════════════ */
.acteurs-section { background: #fff; }
.acteurs-inner { max-width: 1280px; margin: 0 auto; padding: 96px 24px; }
@media (min-width: 1024px) { .acteurs-inner { padding: 112px 40px; } }
.acteurs-head { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.acteurs-eyebrow { margin: 0 0 12px; color: #2563eb; }
.acteurs-title { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 1024px) { .acteurs-title { font-size: 44px; } }
.acteurs-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 48px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.acteurs-content { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .acteurs-content { grid-template-columns: repeat(3, 1fr); } }
.acteurs-col-title { margin: 0 0 12px; font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.acteurs-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #334155; }
.acteurs-bullet { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.acteurs-bullet-ic { flex-shrink: 0; margin-top: 2px; }
.acteurs-bullet-ic svg { width: 16px; height: 16px; display: block; }
.acteurs-col-link { margin-top: 24px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #1d4ed8; text-decoration: none; }
.acteurs-col-link:hover { color: #1e40af; text-decoration: none; }
.acteurs-col-link-arrow svg { width: 14px; height: 14px; display: block; }
.acteurs-col-eyebrow { margin: 0 0 12px; color: #64748b; }
.acteurs-opps { display: flex; flex-direction: column; gap: 10px; }
.acteurs-opp { border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 16px; }
.acteurs-opp-top { display: flex; align-items: baseline; gap: 8px; }
.acteurs-opp-n { font-size: 18px; font-weight: 700; color: #2563eb; }
.acteurs-opp-new { margin-left: auto; border-radius: 4px; padding: 2px 6px; background: #dbeafe; color: #1d4ed8; }
.acteurs-opp-title { margin: 8px 0 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.acteurs-opp-meta { margin: 4px 0 0; font-size: 12px; color: #64748b; }
.persona-map { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--line); background: #f8fafc; padding: 16px; overflow: hidden; }
.persona-map-svg { width: 100%; height: 100%; }
.persona-map-badge { position: absolute; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 6px; padding: 4px 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); border: 1px solid var(--line); }
.persona-map-badge-dot { height: 6px; width: 6px; border-radius: 9999px; background: #2563eb; }
.persona-map-badge-label { font-size: 10.5px; font-weight: 600; color: #334155; }

/* ═══════════════════════════════════════════════════════════════════════
   B10 — SECTION 14 · SOURCES (LIGHT)  [Next l.2631-2665]
   ═══════════════════════════════════════════════════════════════════════ */
.sources-section { background: rgba(248, 250, 252, 0.7); }
.sources-inner { max-width: 1280px; margin: 0 auto; padding: 80px 24px; }
@media (min-width: 1024px) { .sources-inner { padding: 96px 40px; } }
.sources-head { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.sources-eyebrow { margin: 0 0 12px; color: #2563eb; }
.sources-title { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 1024px) { .sources-title { font-size: 36px; } }
.sources-sub { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-dim); }
.sources-sub strong { color: var(--ink); font-weight: 600; }
.sources-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .sources-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sources-grid { grid-template-columns: repeat(6, 1fr); } }
.sources-cta { margin-top: 32px; text-align: center; }
.sources-cta-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #1d4ed8; text-decoration: none; }
.sources-cta-link:hover { color: #1e40af; text-decoration: none; }
.sources-cta-arrow svg { width: 14px; height: 14px; display: block; }

/* ═══════════════════════════════════════════════════════════════════════
   B11 — SECTION 15 · PRIX PÉDAGOGIQUE (LIGHT)  [Next l.2826-2934]
   ═══════════════════════════════════════════════════════════════════════ */
.prix-inner { max-width: 1280px; margin: 0 auto; padding: 96px 24px; }
@media (min-width: 1024px) { .prix-inner { padding: 112px 40px; } }
.prix-head { text-align: center; max-width: 820px; margin: 0 auto; }
.prix-eyebrow { margin: 0 0 12px; color: #d97706; }
.prix-title { margin: 0; font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 1024px) { .prix-title { font-size: 52px; } }
.prix-intro { margin: 24px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-dim); }
.prix-switch { margin-top: 32px; display: inline-flex; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.8); padding: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.prix-switch-btn { min-width: 138px; border-radius: 8px; padding: 10px 16px; text-align: left; transition: all 0.2s; text-decoration: none; }
.prix-switch-btn:hover { background: #fff; text-decoration: none; }
.prix-switch-btn.active { background: #2563eb; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.prix-switch-label { display: block; font-size: 13px; font-weight: 700; color: #475569; }
.prix-switch-btn.active .prix-switch-label { color: #fff; }
.prix-switch-sub { display: block; font-size: 11px; color: #64748b; }
.prix-switch-btn.active .prix-switch-sub { color: #bfdbfe; }
.prix-stage { margin-top: 48px; display: flex; justify-content: center; }
.prix-card { border-radius: 16px; padding: 32px 40px; text-align: center; }
.prix-card-eyebrow { margin: 0 0 12px; color: #94a3b8; }
.prix-card-amount { margin: 0; font-size: 64px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
@media (min-width: 1024px) { .prix-card-amount { font-size: 88px; } }
.prix-card-eur { color: #2563eb; }
.prix-card-period { margin: 8px 0 0; font-size: 14px; color: #64748b; }
.prix-card-period strong { color: var(--ink); }
.prix-card-pill { margin: 12px 0 0; display: inline-block; border-radius: 9999px; background: #eff6ff; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #1d4ed8; }
.prix-grid { margin-top: 64px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .prix-grid { grid-template-columns: repeat(3, 1fr); } }
.prix-col { border-radius: 16px; padding: 28px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.prix-col-white { background: #fff; border: 1px solid var(--line); }
.prix-col-roi { background: linear-gradient(to bottom right, #eff6ff, rgba(219, 234, 254, 0.4)); border: 1px solid #bfdbfe; }
.prix-col-eyebrow { margin: 0 0 12px; }
.prix-col-eyebrow-blue { color: #2563eb; }
.prix-col-eyebrow-amber { color: #d97706; }
.prix-col-h3 { margin: 0 0 20px; font-size: 20px; font-weight: 700; color: var(--ink); }
.prix-included { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.prix-check { display: flex; align-items: flex-start; gap: 10px; }
.prix-check-ic { flex-shrink: 0; margin-top: 2px; }
.prix-check-ic svg { width: 16px; height: 16px; display: block; }
.prix-check-text { font-size: 13.5px; color: #334155; }
.prix-check-text strong { color: var(--ink); font-weight: 600; }
.prix-excluded { border-top: 1px solid #f1f5f9; padding-top: 16px; }
.prix-excluded-eyebrow { margin: 0 0 10px; color: #94a3b8; }
.prix-excluded-list { display: flex; flex-direction: column; gap: 6px; }
.prix-x { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #64748b; }
.prix-x-ic { flex-shrink: 0; margin-top: 2px; }
.prix-x-ic svg { width: 14px; height: 14px; display: block; }
.prix-roi-cards { display: flex; flex-direction: column; gap: 16px; }
.prix-roi-card { border-radius: 12px; background: #fff; padding: 16px; border: 1px solid #bfdbfe; }
.prix-roi-label { margin: 0; font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.prix-roi-value { margin: 4px 0 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.prix-roi-outcome { margin: 4px 0 0; font-size: 12.5px; font-weight: 600; color: #047857; }
.prix-roi-note { margin: 20px 0 0; font-size: 12px; font-style: italic; color: #64748b; }
.prix-bars { display: flex; flex-direction: column; gap: 14px; }
.prix-bar-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.prix-bar-label { font-size: 13px; font-weight: 600; color: #334155; }
.prix-bar-primary .prix-bar-label { color: #1d4ed8; }
.prix-bar-amount { font-size: 13px; font-weight: 700; color: var(--ink); }
.prix-bar-primary .prix-bar-amount { font-size: 16px; color: #2563eb; }
.prix-bar-amount-sub { font-size: 10px; color: #64748b; }
.prix-bar-track { height: 8px; background: #f1f5f9; border-radius: 9999px; overflow: hidden; }
.prix-bar-primary .prix-bar-track { height: 10px; background: #dbeafe; }
.prix-bar-fill { height: 100%; border-radius: 9999px; }
.bar-slate-light { background: #94a3b8; }
.bar-slate { background: #64748b; }
.bar-blue { background: #2563eb; }
.prix-bar-sub { margin: 6px 0 0; font-size: 11px; color: #64748b; }
.prix-bar-primary .prix-bar-sub { color: #1d4ed8; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   B12 — SECTION 16 · PRICING + FAQ (LIGHT)  [Next l.2999-3134]
   ═══════════════════════════════════════════════════════════════════════ */
.pricing-section { background: #f8fafc; }
.pricing-inner { max-width: 1280px; margin: 0 auto; padding: 96px 24px; }
@media (min-width: 1024px) { .pricing-inner { padding: 112px 40px; } }
.pricing-head { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.pricing-eyebrow { margin: 0 0 12px; color: #2563eb; }
.pricing-title { margin: 0; font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 1024px) { .pricing-title { font-size: 48px; } }
.pricing-sub { margin: 16px 0 0; font-size: 17px; color: var(--ink-dim); }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }
.pricing-card { position: relative; border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.pricing-card-best { background: #fff; }
.pricing-best-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; background: #2563eb; color: #fff; border-radius: 9999px; padding: 4px 12px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.pricing-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pricing-card-name { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.pricing-card-name-best { color: #1d4ed8; }
.pricing-card-badge { font-size: 11px; }
.pricing-badge-emerald { color: #047857; font-weight: 600; }
.pricing-badge-blue { color: #2563eb; }
.pricing-badge-slate { color: #94a3b8; }
.pricing-card-price { margin: 16px 0 0; display: flex; align-items: baseline; gap: 4px; }
.pricing-card-amount { font-size: 36px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.pricing-card-amount-text { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.pricing-card-suffix { font-size: 12px; color: #64748b; }
.pricing-card-subtitle { margin: 4px 0 0; font-size: 11px; color: #64748b; }
.pricing-features { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.pricing-feature { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.pricing-feature-ic { flex-shrink: 0; margin-top: 2px; }
.pricing-feature-ic svg { width: 14px; height: 14px; display: block; }
.pricing-cta { margin-top: 24px; width: 100%; display: inline-flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; border: 1px solid #cbd5e1; color: var(--ink); font-size: 13.5px; font-weight: 600; transition: background 0.15s; text-decoration: none; }
.pricing-cta:hover { background: #f8fafc; text-decoration: none; }
.pricing-cta-best { gap: 8px; height: 44px; border: none; background: #2563eb; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5); }
.pricing-cta-best:hover { background: #1d4ed8; text-decoration: none; }
.pricing-cta-arrow svg { width: 14px; height: 14px; display: block; }
.pricing-note { margin: 24px 0 0; text-align: center; font-size: 12px; color: #64748b; }

/* FAQ */
.faq-block { max-width: 760px; margin: 96px auto 0; }
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-eyebrow { margin: 0 0 12px; color: #2563eb; }
.faq-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 1024px) { .faq-title { font-size: 36px; } }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { position: relative; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.faq-summary { position: relative; padding: 20px 56px 20px 24px; font-size: 15px; font-weight: 600; color: var(--ink); }
.faq-body { padding: 0 24px 20px; font-size: 14px; line-height: 1.6; color: var(--ink-dim); }
.faq-body strong { color: var(--ink); font-weight: 600; }
/* ===== Responsive ======================================================== */
@media (max-width: 1024px) {
  .site-header { flex-wrap: wrap; row-gap: 0.5rem; padding-block: 0.55rem; }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 0.1rem; }
  .header-search { order: 2; max-width: none; margin-left: 0.75rem; }
  /* Sur mobile, le mega-menu s'ouvre en flux (accordéon) plutôt qu'en overlay. */
  .nav-menu { flex: 0 0 auto; }
  .nav-mega { position: static; box-shadow: none; padding-inline: 0; gap: 1.25rem; }
}
@media (max-width: 680px) {
  .header-search { order: 4; flex-basis: 100%; max-width: none; margin-left: 0; }
  .auth-link { display: none; }
  main { padding-top: 1.75rem; }
}

/* ===== Préférences utilisateur ========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===== Animations (100% CSS, zéro JS) ==================================== */
/* Entrées au scroll via timeline de vue (scroll-driven, sans JS) + respiration
   ambiante du glow hero. Neutralisées si l'utilisateur prefere moins de mouvement. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes glow-breathe {
    0%, 100% { opacity: 0.82; }
    50%      { opacity: 1; }
  }
  @supports (animation-timeline: view()) {
    .hero-theme, .offer, .kpi, .pain, .usecase, .pipeline-step,
    .ecosystem-pillar, .source-group, .mcp-tool, .pricing-plan, .faq-item {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
  }
  .home-hero::before { animation: glow-breathe 9s ease-in-out infinite; }
}

/* ==========================================================================
   PASS 2 — PAGES DE CONTENU CLAIR (parité Next).
   Primitives partagées (fil d'Ariane, lead/intro, cta, note, grid, inline)
   puis blocs par famille de pages. Thème CLAIR : fond #fff/--surface-soft,
   texte --ink/--ink-dim/--ink-faint, bordures --line, accent --brand.
   Aucune de ces pages n'a `main.home` (le shell sombre vit dans le header/footer).
   ========================================================================== */

/* ----- Fil d'Ariane (fiches + pages internes) ---------------------------- */
nav[aria-label="breadcrumb"] {
  margin: 0 0 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; color: var(--ink-faint);
}
nav[aria-label="breadcrumb"] a {
  color: var(--ink-faint); font-weight: 400;
  padding: 0.125rem 0.25rem; border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
nav[aria-label="breadcrumb"] a:hover {
  color: var(--brand-hover); background: rgba(37, 99, 235, 0.06);
  text-decoration: none;
}
nav[aria-label="breadcrumb"] span { color: #334155; font-weight: 500; padding: 0.125rem 0.25rem; }

/* ----- Primitives de texte ----------------------------------------------- */
.lead, .intro {
  max-width: 68ch; margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--ink-dim);
}
.note {
  margin: 1rem 0 0; padding: 0.7rem 0.95rem;
  font-size: 0.82rem; line-height: 1.5; color: var(--ink-faint);
  background: var(--surface-soft); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line); border-radius: var(--radius);
}

/* ----- CTA générique : encart (glossaire p.cta>a ; comparateur div.cta>h2+p+a) */
.cta {
  margin: 2.5rem 0 0; padding: 2rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), var(--surface-soft));
  border: 1px solid rgba(37, 99, 235, 0.18); border-radius: var(--radius-lg);
}
.cta h2 { margin: 0; font-size: 1.4rem; color: var(--ink-strong); }
.cta p { margin: 0; color: var(--ink-dim); }
.cta a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.2rem; border-radius: var(--radius);
  background: var(--brand); color: #fff; font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s ease;
}
.cta a:hover { background: var(--brand-hover); text-decoration: none; }

/* ----- Grilles de liens / listes inline ---------------------------------- */
.grid {
  list-style: none; margin: 0 0 1.25rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.85rem;
}
.grid > li { margin: 0; }
.inline {
  list-style: none; margin: 0 0 0.75rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem;
}
.inline > li { margin: 0; }

/* ==========================================================================
   FICHES (entreprise · établissement · acheteur public · dirigeant · marché)
   Système « data fiche » : H1 + sous-titre + sections-cartes titrées,
   listes clé/valeur (dl), listes de cartes (marché/mandat), pastilles.
   Le marché public a son propre système dédié `.fm-*` (tableau de bord) en bas.

   THÈME SOMBRE (parité prod `body.prescriptio-data-page`). Toute la structure
   et le layout sont identiques au thème clair ; seules les couleurs changent.
   Les fiches enveloppent leur `<main>` dans `.data-surface` (base.css) qui
   fournit le fond #0a0d14 + grille blueprint + glow bleu en backdrop fixe.

   Palette canonique (globals.css prod) :
     texte titres  #e6e9f2 · corps #c4ccda · muted #9aa4b8 · faint #7f8aa1
     carte (bg-white)      rgba(15, 19, 32, 0.74)
     surface douce (50/100) rgba(17, 24, 39, 0.58)
     bordure (slate/100)   rgba(42, 52, 71, 0.82)
     bordure accent (200+) rgba(96, 165, 250, 0.34)
     liens                 #60a5fa
   ========================================================================== */

/* Conteneur fiche annuaire : largeur réduite (parité Next max-w-5xl ≈ 1024px) */
main.fiche { max-width: 64rem; }
.fiche-h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.6rem); /* parité text-xl/2xl Next */
  margin-bottom: 0.4rem; overflow-wrap: break-word;
  color: #e6e9f2;
}

/* Breadcrumb (nav direct enfant de main.fiche) sur fond sombre */
main.fiche > nav[aria-label="breadcrumb"] { color: #7f8aa1; }
main.fiche > nav[aria-label="breadcrumb"] span { color: #9aa4b8; }

/* Sous-titres sous le H1 */
.enseigne, .acheteur-type, .etab-type, .dirigeant-sub, .marche-statut {
  margin: -0.1rem 0 0.85rem; font-size: 0.95rem; color: #9aa4b8;
}

/* Pastilles d'en-tête (NAF bleu · RGE vert · effectif/dept gris) */
.fiche-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem; }
.fiche-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.65rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.2;
}
.fiche-badge svg { width: 13px; height: 13px; }
.fiche-badge-naf { background: rgba(37, 99, 235, 0.16); color: #93c5fd; box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.34); }
.fiche-badge-rge { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.32); }
.fiche-badge-effectif { background: rgba(17, 24, 39, 0.58); color: #c4ccda; box-shadow: inset 0 0 0 1px rgba(42, 52, 71, 0.82); }

/* ==========================================================================
   En-tête fiche entreprise (titre + sous-titre SEO + bouton Suivre + onglets)
   Parité prod page.tsx (en-tête + CompanyTabs) — thème sombre.
   ========================================================================== */
.fiche-breadcrumb { color: #7f8aa1; margin-bottom: 1rem; font-size: 0.78rem; display: flex; flex-wrap: wrap; gap: 0.15rem; align-items: center; }
.fiche-breadcrumb a { color: #7f8aa1; }
.fiche-breadcrumb a:hover { color: #93c5fd; }
.fiche-breadcrumb span[aria-current] { color: #c4ccda; font-weight: 500; }

.fiche-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; margin-bottom: 0.85rem; }
.fiche-head-main { flex: 1; min-width: 0; }
.fiche-subtitle { margin: 0.35rem 0 0; font-size: 0.95rem; color: #c4ccda; }
.fiche-follow {
  display: inline-flex; align-items: center; gap: 0.45rem; flex-shrink: 0;
  padding: 0.5rem 0.9rem; border-radius: 0.5rem; font-size: 0.85rem; font-weight: 500;
  color: #cfe0ff; background: rgba(37, 99, 235, 0.14);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.34); transition: 0.15s;
}
.fiche-follow:hover { background: rgba(37, 99, 235, 0.24); color: #fff; }
.fiche-follow svg { width: 15px; height: 15px; }

/* ----- Onglets fiche (CSS-only via radios) ----- */
.ctab-radio { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.ctabs-bar { display: flex; overflow-x: auto; scrollbar-width: none; }
.ctabs-bar::-webkit-scrollbar { display: none; }
.ctabs-pub { border-bottom: 1px solid rgba(42, 52, 71, 0.82); }
.ctab {
  flex: 0 0 auto; white-space: nowrap; padding: 0.55rem 0.85rem;
  font-size: 0.85rem; font-weight: 500; color: #9aa4b8;
  border-bottom: 2px solid transparent; cursor: pointer; transition: 0.15s;
  display: inline-flex; align-items: center; gap: 0.1rem;
}
.ctabs-pub .ctab:hover:not(.ctab-disabled) { color: #e6e9f2; border-bottom-color: rgba(96, 165, 250, 0.4); }
.ctab-disabled { color: #5b6577; cursor: default; }
.ctab-count {
  margin-left: 0.35rem; padding: 0.02rem 0.4rem; border-radius: 9999px;
  font-size: 0.66rem; font-weight: 600; background: rgba(42, 52, 71, 0.7); color: #c4ccda;
}
.ctabs-pro {
  align-items: center; gap: 0.6rem; padding: 0 0.4rem;
  border-bottom: 1px solid #253149; background: rgba(15, 19, 32, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ctabs-pro-label {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #93c5fd;
}
.ctabs-pro-label svg { width: 12px; height: 12px; }
.ctabs-pro-nav { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ctabs-pro-nav::-webkit-scrollbar { display: none; }
.ctabs-pro .ctab { color: #9aa4b8; }
.ctabs-pro .ctab-disabled { color: #54607a; }

.ctab-panels { margin-top: 1.5rem; }
.ctab-panel { display: none; }

/* Onglet actif (radio checked) → panel visible + label souligné bleu.
   15 onglets (fiche + 14 modules) ; les inactifs n'émettent ni radio ni panel. */
#ct-fiche:checked ~ .ctab-panels > #cp-fiche,
#ct-sante:checked ~ .ctab-panels > #cp-sante,
#ct-direction:checked ~ .ctab-panels > #cp-direction,
#ct-etablissements:checked ~ .ctab-panels > #cp-etablissements,
#ct-reseau:checked ~ .ctab-panels > #cp-reseau,
#ct-finances:checked ~ .ctab-panels > #cp-finances,
#ct-certifications:checked ~ .ctab-panels > #cp-certifications,
#ct-similaires:checked ~ .ctab-panels > #cp-similaires,
#ct-attributions:checked ~ .ctab-panels > #cp-attributions,
#ct-dce:checked ~ .ctab-panels > #cp-dce,
#ct-projets:checked ~ .ctab-panels > #cp-projets,
#ct-patrimoine:checked ~ .ctab-panels > #cp-patrimoine,
#ct-web:checked ~ .ctab-panels > #cp-web,
#ct-assureur:checked ~ .ctab-panels > #cp-assureur,
#ct-accords:checked ~ .ctab-panels > #cp-accords { display: block; }

#ct-fiche:checked ~ .ctabs-pub label[for="ct-fiche"],
#ct-sante:checked ~ .ctabs-pub label[for="ct-sante"],
#ct-direction:checked ~ .ctabs-pub label[for="ct-direction"],
#ct-etablissements:checked ~ .ctabs-pub label[for="ct-etablissements"],
#ct-reseau:checked ~ .ctabs-pub label[for="ct-reseau"],
#ct-finances:checked ~ .ctabs-pub label[for="ct-finances"],
#ct-certifications:checked ~ .ctabs-pub label[for="ct-certifications"],
#ct-similaires:checked ~ .ctabs-pub label[for="ct-similaires"],
#ct-attributions:checked ~ .ctabs-pro label[for="ct-attributions"],
#ct-dce:checked ~ .ctabs-pro label[for="ct-dce"],
#ct-projets:checked ~ .ctabs-pro label[for="ct-projets"],
#ct-patrimoine:checked ~ .ctabs-pro label[for="ct-patrimoine"],
#ct-web:checked ~ .ctabs-pro label[for="ct-web"],
#ct-assureur:checked ~ .ctabs-pro label[for="ct-assureur"],
#ct-accords:checked ~ .ctabs-pro label[for="ct-accords"] {
  color: #60a5fa; border-bottom-color: #60a5fa;
}
#ct-fiche:checked ~ .ctabs-pub label[for="ct-fiche"] .ctab-count,
#ct-sante:checked ~ .ctabs-pub label[for="ct-sante"] .ctab-count,
#ct-direction:checked ~ .ctabs-pub label[for="ct-direction"] .ctab-count,
#ct-etablissements:checked ~ .ctabs-pub label[for="ct-etablissements"] .ctab-count,
#ct-reseau:checked ~ .ctabs-pub label[for="ct-reseau"] .ctab-count,
#ct-finances:checked ~ .ctabs-pub label[for="ct-finances"] .ctab-count,
#ct-certifications:checked ~ .ctabs-pub label[for="ct-certifications"] .ctab-count,
#ct-similaires:checked ~ .ctabs-pub label[for="ct-similaires"] .ctab-count,
#ct-attributions:checked ~ .ctabs-pro label[for="ct-attributions"] .ctab-count,
#ct-dce:checked ~ .ctabs-pro label[for="ct-dce"] .ctab-count,
#ct-projets:checked ~ .ctabs-pro label[for="ct-projets"] .ctab-count,
#ct-patrimoine:checked ~ .ctabs-pro label[for="ct-patrimoine"] .ctab-count,
#ct-web:checked ~ .ctabs-pro label[for="ct-web"] .ctab-count,
#ct-assureur:checked ~ .ctabs-pro label[for="ct-assureur"] .ctab-count,
#ct-accords:checked ~ .ctabs-pro label[for="ct-accords"] .ctab-count {
  background: rgba(37, 99, 235, 0.22); color: #bfdbfe;
}

/* ----- Cartes de l'onglet « Fiche » (infos légales / activité / INPI…) ----- */
.fc-card {
  margin: 0 0 1.25rem; padding: 1.5rem;
  background: rgba(15, 19, 32, 0.74); border: 1px solid rgba(42, 52, 71, 0.82);
  border-radius: var(--radius-lg); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}
.fc-card > h2 {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; padding-bottom: 0.6rem;
  font-size: 1rem; font-weight: 700; color: #e6e9f2; border-bottom: 1px solid rgba(42, 52, 71, 0.66);
}
.fc-card > h2 > svg { width: 16px; height: 16px; color: #60a5fa; flex-shrink: 0; }
.fc-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin: 0; }
.fc-dl > div { min-width: 0; }
.fc-full { grid-column: 1 / -1; }
.fc-dl dt { margin: 0 0 0.25rem; font-size: 0.68rem; font-weight: 600; color: #7f8aa1; text-transform: uppercase; letter-spacing: 0.025em; }
.fc-dl dd { margin: 0; color: #c4ccda; font-size: 0.9rem; }
.fc-strong { color: #e6e9f2 !important; font-weight: 500; }
.fc-sub { margin-top: 0.15rem !important; font-size: 0.78rem !important; color: #7f8aa1 !important; }
.fc-mono { font-family: var(--font-mono); }
.fc-muted { color: #9aa4b8; }
.fc-faint { color: #7f8aa1; font-size: 0.8rem; }
.fc-inscrit {
  display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.4rem; border-radius: 0.3rem;
  font-size: 0.7rem; font-weight: 600; color: #6ee7b7; background: rgba(16, 185, 129, 0.14);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.32);
}
.fc-inscrit svg { width: 12px; height: 12px; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fc-chip {
  display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.5rem; border-radius: 9999px;
  font-size: 0.72rem; font-weight: 500;
}
.fc-chip svg { width: 12px; height: 12px; }
.fc-chip-blue { color: #93c5fd; background: rgba(37, 99, 235, 0.16); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3); }
.fc-chip-green { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3); }
.fc-chip-amber { color: #fcd34d; background: rgba(245, 158, 11, 0.14); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3); }
.fc-chip-gray { color: #c4ccda; background: rgba(42, 52, 71, 0.7); }
.fc-bullets { list-style: none; margin: 0; padding: 0; }
.fc-bullets li { margin: 0.2rem 0; color: #c4ccda; font-size: 0.88rem; }
.fc-bullets li::before { content: "\2022\00A0"; color: #60a5fa; }
.fc-address { font-style: normal; }
.fc-address p { margin: 0.1rem 0; }

@media (max-width: 640px) { .fc-dl { grid-template-columns: 1fr; } }

/* Icône en tête de section-carte (parité h2 icon Next) */
.identite > h2, .finances > h2, .dirigeants > h2, .activite > h2,
.derniers-marches > h2, .parent > h2, .mandats > h2 {
  display: flex; align-items: center; gap: 0.5rem;
}
.identite > h2 > svg, .finances > h2 > svg, .dirigeants > h2 > svg,
.activite > h2 > svg, .derniers-marches > h2 > svg, .parent > h2 > svg,
.mandats > h2 > svg {
  width: 16px; height: 16px; color: #60a5fa; flex-shrink: 0;
}

/* Ligne de stats mise en avant (acheteur / dirigeant) */
.acheteur-kpi, .dirigeant-stats { margin: 0 0 1.5rem; font-size: 1rem; color: #9aa4b8; }
.acheteur-kpi strong, .dirigeant-stats strong {
  font-size: 1.4rem; font-weight: 800; color: #e6e9f2;
  font-variant-numeric: tabular-nums; margin-right: 0.15rem;
}

/* Sections-cartes sombres titrées */
.identite, .finances, .rge, .dirigeants, .objet, .marche-cle, .cpv,
.attribution, .liens, .activite, .derniers-marches, .parent, .mandats {
  margin: 0 0 1.5rem; padding: 1.5rem;
  background: rgba(15, 19, 32, 0.74); border: 1px solid rgba(42, 52, 71, 0.82); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}
.identite > h2, .finances > h2, .rge > h2, .dirigeants > h2, .objet > h2,
.marche-cle > h2, .cpv > h2, .attribution > h2, .liens > h2, .activite > h2,
.derniers-marches > h2, .parent > h2, .mandats > h2 {
  margin: 0 0 1rem; padding-bottom: 0.6rem;
  font-size: 1rem; font-weight: 700; color: #e6e9f2;
  border-bottom: 1px solid rgba(42, 52, 71, 0.66);
}
.rge { background: rgba(16, 185, 129, 0.10); border-color: rgba(52, 211, 153, 0.34); }
.rge > h2 { border-bottom-color: rgba(52, 211, 153, 0.24); }
.rge > h2::before { content: "\2713\00A0"; color: #6ee7b7; }
.objet p, .parent p, .activite p { margin: 0 0 0.5rem; color: #c4ccda; }
.objet p:last-child, .parent p:last-child, .activite p:last-child { margin-bottom: 0; }

/* Listes clé/valeur (dl) */
.identite dl, .marche-cle dl, .attribution dl {
  display: grid; grid-template-columns: minmax(130px, max-content) 1fr;
  gap: 0.55rem 1.25rem; margin: 0;
}
.identite dt, .marche-cle dt, .attribution dt {
  margin: 0; font-size: 0.7rem; font-weight: 600; color: #7f8aa1;
  text-transform: uppercase; letter-spacing: 0.025em;
}
.identite dd, .marche-cle dd, .attribution dd {
  margin: 0; color: #c4ccda; font-weight: 500;
}

/* CPV : pastilles mono (miroir sombre de .source-code) */
.cpv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cpv-list li {
  margin: 0; padding: 0.2rem 0.55rem; border-radius: 5px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  color: #93c5fd; background: rgba(37, 99, 235, 0.16); border: 1px solid rgba(96, 165, 250, 0.34);
}

/* Listes de liens simples */
.dirigeants ul, .liens ul, .pour-aller-plus-loin ul { list-style: none; margin: 0; padding: 0; }
.dirigeants li, .liens li, .pour-aller-plus-loin li { margin: 0.35rem 0; }
.dirigeants li { color: #c4ccda; }
.finances table { margin: 0; }

/* Tableaux de fiche (finances) — fond sombre, en-têtes lisibles */
.finances table { background: rgba(15, 19, 32, 0.58); }
.finances th, .finances td { border-bottom: 1px solid rgba(42, 52, 71, 0.66); }
.finances thead th {
  background: rgba(17, 24, 39, 0.58); color: #9aa4b8;
  border-bottom: 1px solid rgba(42, 52, 71, 0.82);
}
.finances td { color: #c4ccda; }
.finances tbody tr:hover { background: rgba(17, 24, 39, 0.5); }

/* Section de maillage interne (sobre, fond doux) */
.pour-aller-plus-loin {
  margin: 2rem 0 0; padding: 1.5rem;
  background: rgba(17, 24, 39, 0.58); border: 1px solid rgba(42, 52, 71, 0.66); border-radius: var(--radius-lg);
}
.pour-aller-plus-loin > h2 { margin: 0 0 0.75rem; font-size: 0.95rem; color: #e6e9f2; }
.pour-aller-plus-loin a { font-weight: 600; color: #60a5fa; }

/* Listes de cartes marché / mandat */
.marche-list, .mandat-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.marche-card, .mandat-card {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.9rem 1.1rem; background: rgba(17, 24, 39, 0.58);
  border: 1px solid rgba(42, 52, 71, 0.82); border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.marche-card:hover, .mandat-card:hover {
  background: rgba(15, 19, 32, 0.84); border-color: rgba(96, 165, 250, 0.34);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.6); transform: translateY(-1px);
}
.marche-title, .mandat-nom { font-size: 0.875rem; font-weight: 600; color: #60a5fa; }
.marche-meta, .mandat-meta { font-size: 0.82rem; color: #7f8aa1; }

/* Pastilles mandat */
.mandat-ferme, .mandat-rge {
  display: inline-block; padding: 0.05rem 0.45rem; border-radius: 5px;
  font-size: 0.68rem; font-weight: 700; vertical-align: middle;
}
.mandat-ferme { color: #9aa4b8; background: rgba(17, 24, 39, 0.58); border: 1px solid rgba(42, 52, 71, 0.82); }
.mandat-rge { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(52, 211, 153, 0.34); }

@media (max-width: 560px) {
  .identite dl, .marche-cle dl, .attribution dl { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .identite dt, .marche-cle dt, .attribution dt { margin-top: 0.55rem; }
  .identite dd, .marche-cle dd, .attribution dd { margin-bottom: 0.2rem; }
}

/* ==========================================================================
   FICHE-MARCHÉ — tableau de bord « Bloomberg » (THÈME SOMBRE)
   Parité MarchePublicDetailDesign.tsx rendu via body.prescriptio-data-page :
   conteneur 1056px, hero 2 col + pills + carte acheteur, onglets sticky,
   grille 1fr/250px, cartes sombres, timeline dates, bannière CTA, footer SEO.
   Les teintes de statut (emerald/rose/blue) sont conservées mais portées sur
   fond sombre translucide + texte clair (contraste AA).
   ========================================================================== */

main.fm-detail {
  max-width: 1056px;
  padding: 0 1rem 0;
}
/* Neutralise le `main section { margin-bottom: 2.5rem }` global (base.css) :
   l'espacement interne de la fiche marché est piloté par les grilles/cartes. */
main.fm-detail section { margin-bottom: 0; }

/* ----- Topbar : retour + méta (l.834-853) -------------------------------- */
.fm-topbar {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 1.25rem 0 1rem; font-size: 13px; color: #7f8aa1;
}
.fm-back {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 36px;
  padding: 0 0.75rem; border: 1px solid var(--brand); background: var(--brand);
  color: #fff; border-radius: 8px; font-weight: 600; font-size: 13px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); white-space: nowrap;
}
.fm-back:hover { background: var(--brand-hover); border-color: var(--brand-hover); text-decoration: none; }
.fm-back svg { width: 16px; height: 16px; }
.fm-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; align-items: center; }
.fm-meta b { font-weight: 600; color: #c4ccda; }
.fm-meta b.mono { font-family: var(--font-mono); }
@media (max-width: 640px) { .fm-topbar { flex-direction: column; align-items: flex-start; } }

/* ----- Hero 2 colonnes (l.732-786) --------------------------------------- */
.fm-hero {
  display: grid; grid-template-columns: 1fr 250px; gap: 1rem;
  padding: 0.5rem 0; align-items: start;
}
.fm-hero-main { min-width: 0; }
.fm-h1 {
  margin: 0; max-width: 760px; font-size: 28px; font-weight: 700;
  line-height: 1.12; letter-spacing: -0.02em; color: #e6e9f2; text-wrap: balance;
}
.fm-summary {
  margin: 0.75rem 0 0; max-width: 700px; font-size: 14px; line-height: 1.5rem;
  color: #9aa4b8;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.fm-loc {
  margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.625rem; font-size: 14px; color: #7f8aa1;
}
.fm-loc svg { width: 16px; height: 16px; }
.fm-dot { display: inline-block; height: 4px; width: 4px; border-radius: 9999px; background: #475569; }
.fm-pills { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fm-hero-aside { display: grid; gap: 0.5rem; align-content: start; }
@media (max-width: 768px) { .fm-hero { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .fm-h1 { font-size: 30px; } }

/* ----- Pills (Pill l.881-887 + statusClasses l.101-108) ------------------ */
.fm-pill {
  display: inline-flex; align-items: center; border-radius: 9999px;
  padding: 0.25rem 0.625rem; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.025em;
  /* défaut / type : bg-blue translucide texte clair */
  background: rgba(37, 99, 235, 0.18); color: #93c5fd;
}
.fm-pill-open { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }       /* emerald */
.fm-pill-closed { background: rgba(244, 63, 94, 0.16); color: #fda4af; }      /* rose */
.fm-pill-attributed { background: rgba(37, 99, 235, 0.18); color: #93c5fd; }
.fm-pill-slate, .fm-pill-src { background: rgba(17, 24, 39, 0.62); color: #9aa4b8; }
.fm-pill-deadline { background: rgba(37, 99, 235, 0.24); color: #bfdbfe; }    /* blue accent */

/* ----- Carte acheteur (BuyerMiniCard l.856-879) -------------------------- */
.fm-buyer {
  display: grid; grid-template-columns: 44px 1fr; align-items: center;
  gap: 0.75rem; padding: 0.75rem; background: rgba(15, 19, 32, 0.74); border: 1px solid rgba(42, 52, 71, 0.82);
  border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.fm-buyer-ico {
  display: grid; place-items: center; height: 44px; width: 44px;
  border: 1px solid rgba(42, 52, 71, 0.82); background: rgba(17, 24, 39, 0.58);
  border-radius: 10px; color: #60a5fa;
}
.fm-buyer-ico svg { width: 20px; height: 20px; }
.fm-buyer-body { min-width: 0; }
.fm-buyer-eyebrow { font-size: 11px; font-weight: 500; color: #7f8aa1; }
.fm-buyer-name {
  font-size: 14px; font-weight: 600; color: #e6e9f2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fm-buyer-city { margin-top: 0.125rem; font-size: 12px; color: #7f8aa1; }
.fm-buyer-link {
  margin-top: 0.25rem; display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 12px; font-weight: 600; color: #60a5fa;
}
.fm-buyer-link:hover { color: #93c5fd; text-decoration: none; }
.fm-buyer-link svg { width: 12px; height: 12px; }

/* ----- Boutons hero / CTA ------------------------------------------------ */
.fm-btn-dark, .fm-btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1rem; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: background 0.15s ease; white-space: nowrap;
}
/* Bouton primaire : blanc lumineux sur sombre (parité .mp-cta-primary prod) */
.fm-btn-dark { border: 1px solid rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.98); color: #0f2f86; }
.fm-btn-dark:hover { background: #eff6ff; color: #0b2a78; text-decoration: none; }
.fm-btn-light { border: 1px solid rgba(42, 52, 71, 0.82); background: rgba(15, 19, 32, 0.74); color: #c4ccda; }
.fm-btn-light:hover { background: rgba(17, 24, 39, 0.7); text-decoration: none; }
.fm-btn-dark svg, .fm-btn-light svg { width: 16px; height: 16px; }

/* ----- Onglets (l.788-818) ----------------------------------------------- */
.fm-tabs {
  margin-top: 0.5rem; display: flex; gap: 0.25rem; overflow-x: auto;
  border-bottom: 1px solid rgba(42, 52, 71, 0.82);
  scrollbar-width: none;
}
.fm-tabs::-webkit-scrollbar { display: none; }
.fm-tab {
  margin-bottom: -1px; display: inline-flex; align-items: center; gap: 0.375rem;
  white-space: nowrap; border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem; font-size: 14px; font-weight: 500; color: #7f8aa1;
  transition: color 0.15s ease;
}
.fm-tab:hover { color: #c4ccda; text-decoration: none; }
.fm-tab-on { border-bottom-color: var(--brand-soft); color: #e6e9f2; }
.fm-tab-badge {
  border-radius: 9999px; padding: 0.125rem 0.5rem; font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums; background: rgba(17, 24, 39, 0.62); color: #9aa4b8;
}
.fm-tab-on .fm-tab-badge { background: rgba(37, 99, 235, 0.24); color: #bfdbfe; }

/* ----- Grille de contenu (l.689) ----------------------------------------- */
.fm-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px;
  gap: 1.25rem; padding: 1.25rem 0; align-items: start;
}
.fm-col, .fm-aside { display: grid; gap: 1rem; min-width: 0; }
@media (max-width: 1024px) { .fm-grid { grid-template-columns: 1fr; } }

/* ----- Card générique (Card l.889-895) ----------------------------------- */
.fm-card {
  background: rgba(15, 19, 32, 0.74); border: 1px solid rgba(42, 52, 71, 0.82); border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.3);
}
.fm-card > h2 {
  margin: 0 0 1rem; padding: 0; border: 0;
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #e6e9f2;
}
.fm-card-h2-count {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.75rem; font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em; color: #e6e9f2;
}
.fm-count {
  border-radius: 9999px; background: rgba(17, 24, 39, 0.62); padding: 0.125rem 0.5rem;
  font-size: 12px; font-weight: 600; color: #9aa4b8; font-variant-numeric: tabular-nums;
}
.fm-muted { margin: 0; font-size: 14px; color: #7f8aa1; }

/* Liens documents officiels (DCE / avis) dans la carte Documents */
.fm-doc-links { display: grid; gap: 0.5rem; }
.fm-doc-link {
  display: grid; grid-template-columns: 18px 1fr 14px; align-items: center; gap: 0.6rem;
  border: 1px solid rgba(42, 52, 71, 0.82); border-radius: 10px; padding: 0.625rem 0.75rem;
  font-size: 13px; font-weight: 600; color: #c4ccda;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fm-doc-link:hover { background: rgba(37, 99, 235, 0.14); border-color: rgba(96, 165, 250, 0.34); color: #93c5fd; text-decoration: none; }
.fm-doc-link > svg:first-child { width: 16px; height: 16px; color: #60a5fa; }
.fm-doc-link > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fm-doc-link > svg:last-child { width: 14px; height: 14px; color: #475569; }
.fm-doc-link:hover > svg:last-child { color: #60a5fa; }

/* ----- L'essentiel (l.456-473 + EssentialItem l.984-1012) ---------------- */
.fm-essentiel {
  margin-top: 0.75rem; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  column-gap: 1.5rem; row-gap: 0.75rem;
}
.fm-ei { display: flex; align-items: flex-start; gap: 0.625rem; min-width: 0; }
.fm-ei-icon { flex-shrink: 0; margin-top: 0.125rem; color: #7f8aa1; }
.fm-ei-icon svg { width: 16px; height: 16px; stroke-width: 1.9; }
.fm-ei-body { min-width: 0; flex: 1; }
.fm-ei-label { font-size: 11px; font-weight: 600; line-height: 1; color: #7f8aa1; }
.fm-ei-value {
  margin-top: 0.25rem; font-size: 14px; font-weight: 600; line-height: 1.3;
  color: #e6e9f2; overflow-wrap: break-word;
}
.fm-ei-value.mono { font-family: var(--font-mono); font-size: 12.5px; word-break: break-all; }
.fm-ei-sub { margin-top: 0.25rem; font-size: 11.5px; line-height: 1.3; color: #7f8aa1; overflow-wrap: break-word; }
.fm-ei-deadline {
  margin-top: 0.25rem; display: inline-flex; width: fit-content; border-radius: 6px;
  background: rgba(37, 99, 235, 0.20); padding: 0.125rem 0.5rem; font-size: 12px; font-weight: 600; color: #bfdbfe;
}
@media (min-width: 640px) and (max-width: 1280px) {
  .fm-essentiel-card .fm-ei-wide { grid-column: span 2; }
}

/* ----- Objet du marché (l.475-501) --------------------------------------- */
.fm-objet p { margin: 0 0 0.75rem; font-size: 14.5px; line-height: 1.75rem; color: #c4ccda; }
.fm-objet p:last-child { margin-bottom: 0; }
.fm-objet-more { margin-top: 0.25rem; }
.fm-objet-more > * { margin-top: 0.75rem; }
.fm-objet-more summary {
  display: inline-flex; align-items: center; gap: 0.25rem; font-size: 14px;
  font-weight: 500; color: #60a5fa; cursor: pointer; list-style: none; margin: 0;
}
.fm-objet-more summary::-webkit-details-marker { display: none; }
.fm-objet-more summary:hover { color: #93c5fd; }
.fm-objet-more summary svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.fm-objet-more[open] summary svg { transform: rotate(180deg); }

/* ----- DetailList (l.905-922) -------------------------------------------- */
.fm-dl { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
.fm-dl-compact { grid-template-columns: 1fr; }
.fm-dl-item { min-width: 0; }
.fm-dl-wide { grid-column: 1 / -1; }
.fm-dl dt { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.025em; color: #7f8aa1; }
.fm-dl dd {
  margin: 0.25rem 0 0; font-size: 14px; font-weight: 600; line-height: 1.5rem;
  color: #e6e9f2; overflow-wrap: break-word;
}
.fm-dl dd.mono { font-family: var(--font-mono); }
.fm-dl-detail { margin-top: 0.125rem; font-size: 12px; font-weight: 400; line-height: 1.25rem; color: #7f8aa1; }
@media (max-width: 640px) { .fm-dl { grid-template-columns: 1fr; } }

/* Contact et recours (ContactRecoursCard l.924-955) */
.fm-contact-dl { display: grid; gap: 0; margin: 0; }
.fm-contact-dl > div { padding: 0.75rem 0; border-top: 1px solid rgba(42, 52, 71, 0.66); }
.fm-contact-dl > div:first-child { padding-top: 0; border-top: 0; }
.fm-contact-dl dt { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.025em; color: #7f8aa1; }
.fm-contact-dl dd { margin: 0.25rem 0 0; font-size: 14px; font-weight: 600; line-height: 1.5rem; color: #e6e9f2; overflow-wrap: break-word; }
.fm-contact-dl dd a { color: #60a5fa; }
.fm-contact-recours { margin-top: 1.25rem; border-top: 1px solid rgba(42, 52, 71, 0.82); padding-top: 1rem; }
.fm-contact-recours h3 { margin: 0 0 0.75rem; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.025em; color: #7f8aa1; }

/* ----- InfoTrio (l.1304-1384) -------------------------------------------- */
.fm-trio { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 1024px) { .fm-trio { grid-template-columns: 1fr 1fr 1fr; } }
.fm-trio-card h3 {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem;
  font-size: 16px; font-weight: 700; color: #e6e9f2;
}
.fm-trio-card h3 svg { width: 16px; height: 16px; color: #7f8aa1; }
.fm-trio-reqs { display: grid; gap: 0.5rem; font-size: 14px; color: #c4ccda; }
.fm-req { display: flex; align-items: flex-start; gap: 0.5rem; }
.fm-req b { font-weight: 600; color: #e6e9f2; }
.fm-req-ok, .fm-req-warn { flex-shrink: 0; margin-top: 0.125rem; }
.fm-req-ok svg, .fm-req-warn svg { width: 16px; height: 16px; }
.fm-req-ok { color: #34d399; }       /* emerald */
.fm-req-warn { color: #fbbf24; }     /* amber */
.fm-trio-strong { font-weight: 600; color: #e6e9f2; }
.fm-trio-text { margin-top: 0.5rem; font-size: 14px; line-height: 1.5rem; color: #7f8aa1; }
.fm-trio-link {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 14px; font-weight: 500; color: #60a5fa;
}
.fm-trio-link:hover { color: #93c5fd; text-decoration: none; }
.fm-trio-link svg { width: 14px; height: 14px; }
.fm-trio-h4 {
  display: flex; align-items: center; gap: 0.5rem; margin: 1.25rem 0 0;
  font-size: 14px; font-weight: 600; color: #e6e9f2;
}
.fm-trio-h4 svg { width: 16px; height: 16px; color: #7f8aa1; }
.fm-trio-reserved { margin-top: 0.5rem; font-size: 14px; line-height: 1.5rem; color: #7f8aa1; }
.fm-trio-reserved b { color: #e6e9f2; }
.fm-trio-reserved .fm-trio-link { margin-top: 0.5rem; }

/* ----- Dates clés (DatesCard l.1014-1056) -------------------------------- */
.fm-dates { display: grid; gap: 0.875rem; }
.fm-date { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 0.75rem; }
.fm-date::after {
  content: ""; position: absolute; left: 8px; top: 18px; bottom: -16px;
  width: 1px; background: rgba(42, 52, 71, 0.82);
}
.fm-date-last::after { display: none; }
.fm-date-dot {
  position: relative; z-index: 1; margin-top: 0.125rem; height: 16px; width: 16px;
  border-radius: 9999px; border: 2px solid #475569; background: #475569;
}
.fm-date-current { border-color: var(--brand-soft); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22); }
.fm-date-done { border-color: #475569; background: #475569; }
.fm-date-future { border-color: #475569; background: rgba(15, 19, 32, 0.9); }
.fm-date-label { font-size: 12px; font-weight: 500; color: #7f8aa1; }
.fm-date-label-current { font-weight: 600; color: #60a5fa; }
.fm-date-val { font-size: 14px; font-weight: 600; color: #e6e9f2; }

/* ----- Bannière CTA (CtaRow l.1397-1455) --------------------------------- */
.fm-cta-wrap { padding-bottom: 1.5rem; }
.fm-cta {
  border: 1px solid rgba(96, 165, 250, 0.34); background: rgba(15, 19, 32, 0.74); border-radius: 14px; padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column; gap: 1rem;
}
.fm-cta-left { display: flex; align-items: flex-start; gap: 0.75rem; }
.fm-cta-ico {
  display: grid; place-items: center; height: 40px; width: 40px; flex-shrink: 0;
  border-radius: 10px; background: rgba(37, 99, 235, 0.18); color: #93c5fd;
}
.fm-cta-ico svg { width: 20px; height: 20px; }
.fm-cta-eyebrow { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #60a5fa; }
.fm-cta-title { margin: 0.25rem 0 0; font-size: 16px; font-weight: 700; color: #e6e9f2; }
.fm-cta-desc { margin: 0.25rem 0 0; max-width: 42rem; font-size: 14px; line-height: 1.5rem; color: #7f8aa1; }
.fm-cta-actions { display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 768px) {
  .fm-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .fm-cta-actions { flex-direction: row; flex-shrink: 0; }
}

/* ----- EmptyTabCard (l.957-982) ------------------------------------------ */
.fm-empty { display: flex; align-items: flex-start; gap: 1rem; }
.fm-empty-ico {
  display: grid; place-items: center; height: 44px; width: 44px; flex-shrink: 0;
  border-radius: 10px; background: rgba(37, 99, 235, 0.18); color: #93c5fd;
}
.fm-empty-ico svg { width: 20px; height: 20px; }
.fm-empty-body { min-width: 0; }
.fm-empty-body h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #e6e9f2; }
.fm-empty-body p { margin: 0.5rem 0 0; max-width: 42rem; font-size: 14px; line-height: 1.5rem; color: #7f8aa1; }

/* ----- Footer SEO (clone MarcheSeoFooter.tsx) ---------------------------- */
.fm-seo { border-top: 1px solid rgba(42, 52, 71, 0.82); padding: 1.5rem 0 2.5rem; }
.fm-seo-inner { max-width: 1056px; margin: 0 auto; padding: 0 1rem; display: grid; gap: 1rem; }
.fm-seo-intro {
  display: flex; align-items: flex-start; gap: 0.75rem;
  border-radius: 14px; border: 1px solid rgba(42, 52, 71, 0.82); background: rgba(15, 19, 32, 0.74); padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.fm-seo-intro-ico {
  display: grid; place-items: center; height: 40px; width: 40px; flex-shrink: 0;
  border-radius: 10px; background: rgba(17, 24, 39, 0.58); color: #9aa4b8;
}
.fm-seo-intro-ico svg { width: 20px; height: 20px; }
.fm-seo-intro-body { max-width: 48rem; }
.fm-seo-intro-body h2 { margin: 0; padding: 0; border: 0; font-size: 16px; font-weight: 700; color: #e6e9f2; }
.fm-seo-intro-body p { margin: 0.5rem 0 0; font-size: 14px; line-height: 1.5rem; color: #c4ccda; }
.fm-seo-pilier { font-weight: 600; color: #60a5fa; }
.fm-seo-pilier:hover { color: #93c5fd; }
.fm-seo-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .fm-seo-grid { grid-template-columns: 1fr 1fr; } }
.fm-seo-group {
  border-radius: 14px; border: 1px solid rgba(42, 52, 71, 0.82); background: rgba(15, 19, 32, 0.74); padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.fm-seo-group h3 {
  margin: 0 0 0.75rem; display: flex; align-items: center; gap: 0.5rem;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #7f8aa1;
}
.fm-seo-group-ico { display: inline-flex; color: #7f8aa1; }
.fm-seo-group-ico svg { width: 16px; height: 16px; }
.fm-seo-links { display: grid; gap: 0.375rem; }
.fm-seo-link {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border-radius: 9px; padding: 0.5rem 0.75rem; font-size: 14px; font-weight: 500; color: #c4ccda;
  transition: background 0.15s ease, color 0.15s ease;
}
.fm-seo-link:hover { background: rgba(17, 24, 39, 0.62); color: #93c5fd; text-decoration: none; }
.fm-seo-link svg { width: 14px; height: 14px; flex-shrink: 0; color: #475569; transition: color 0.15s ease; }
.fm-seo-link:hover svg { color: #60a5fa; }

/* ===== Onglet Finances (graphe SVG + tableau) ===== */
.fin-legend { display: flex; gap: 1.25rem; margin: 0 0 0.75rem; }
.fin-leg { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: #c4ccda; }
.fin-leg::before { content: ""; width: 11px; height: 11px; border-radius: 9999px; }
.fin-leg-ca::before { background: #60a5fa; }
.fin-leg-rn::before { background: #f59e0b; }
.fin-chart { width: 100%; height: 260px; display: block; }
.fin-grid { stroke: rgba(42, 52, 71, 0.5); stroke-width: 1; stroke-dasharray: 3 3; }
.fin-line { fill: none; stroke-width: 2.5; }
.fin-line-ca { stroke: #60a5fa; }
.fin-line-rn { stroke: #f59e0b; }
.fin-dot-ca { fill: #60a5fa; }
.fin-dot-rn { fill: #f59e0b; }
.fin-xlabel { fill: #7f8aa1; font-size: 11px; text-anchor: middle; }
.fin-table { width: 100%; }

/* ===== Onglet Établissements (carte + tableau) ===== */
.etab-sub { margin: 0 0 1rem; color: #9aa4b8; font-size: 0.9rem; }
.etab-map {
  height: 340px; border-radius: 0.6rem; margin: 0 0 0.75rem;
  background: rgba(17, 24, 39, 0.5); border: 1px solid rgba(42, 52, 71, 0.66);
}
.etab-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin: 0 0 1.25rem; font-size: 0.78rem; color: #9aa4b8; }
.etab-leg { display: inline-flex; align-items: center; gap: 0.4rem; }
.etab-leg::before { content: ""; width: 10px; height: 10px; border-radius: 9999px; }
.etab-leg-siege::before { background: #60a5fa; }
.etab-leg-actif::before { background: #34d399; }
.etab-leg-ferme::before { background: #6b7280; }
.etab-tablewrap { overflow-x: auto; }
.etab-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.etab-table th { text-align: left; padding: 0.5rem 0.65rem; color: #9aa4b8; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid rgba(42, 52, 71, 0.82); }
.etab-table td { padding: 0.6rem 0.65rem; color: #c4ccda; border-bottom: 1px solid rgba(42, 52, 71, 0.5); vertical-align: top; }
.etab-siret { font-size: 0.82rem; }
.etab-badge-siege { margin-left: 0.4rem; padding: 0.05rem 0.4rem; border-radius: 0.3rem; font-size: 0.66rem; font-weight: 600; color: #93c5fd; background: rgba(37, 99, 235, 0.18); }
.etab-etat { padding: 0.1rem 0.5rem; border-radius: 9999px; font-size: 0.72rem; font-weight: 600; }
.etab-etat-a { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); }
.etab-etat-f { color: #9aa4b8; background: rgba(42, 52, 71, 0.6); }

/* ===== Onglet Similaires (cartes) ===== */
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.sim-card {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem;
  background: rgba(17, 24, 39, 0.5); border: 1px solid rgba(42, 52, 71, 0.66);
  border-radius: 0.6rem; transition: 0.15s;
}
.sim-card:hover { border-color: rgba(96, 165, 250, 0.34); background: rgba(17, 24, 39, 0.72); }
.sim-name { color: #60a5fa; font-weight: 600; font-size: 0.9rem; }
.sim-ville { color: #c4ccda; font-size: 0.8rem; }
.sim-naf { color: #7f8aa1; font-size: 0.75rem; }
.sim-rge { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.2rem; font-size: 0.72rem; font-weight: 600; color: #6ee7b7; }
.sim-rge svg { width: 12px; height: 12px; }
@media (max-width: 640px) { .sim-grid { grid-template-columns: 1fr; } }

/* ===== Onglet Assureur (2 cartes) ===== */
.ass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ass-item { padding: 1rem 1.1rem; background: rgba(17, 24, 39, 0.5); border: 1px solid rgba(42, 52, 71, 0.66); border-radius: 0.6rem; }
.ass-type { margin: 0 0 0.4rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; color: #7f8aa1; }
.ass-name { margin: 0 0 0.3rem; color: #e6e9f2; font-weight: 600; font-size: 0.92rem; }
.ass-police { margin: 0; color: #9aa4b8; font-size: 0.8rem; }
@media (max-width: 640px) { .ass-grid { grid-template-columns: 1fr; } }

/* ===== Onglet Attributions (DECP) ===== */
.attr-sub { margin: 0 0 1rem; color: #9aa4b8; font-size: 0.9rem; }
.attr-sub strong { color: #e6e9f2; }
.attr-list { display: flex; flex-direction: column; gap: 0.6rem; }
.attr-item { padding: 0.85rem 1rem; background: rgba(17, 24, 39, 0.5); border: 1px solid rgba(42, 52, 71, 0.6); border-radius: 0.5rem; }
.attr-titre { margin: 0 0 0.3rem; color: #e6e9f2; font-weight: 500; font-size: 0.88rem; line-height: 1.35; }
.attr-meta { margin: 0; color: #9aa4b8; font-size: 0.8rem; }
.attr-montant { color: #6ee7b7; font-weight: 600; }

/* ===== Onglet DCE ===== */
.dce-sub { margin: 0 0 1rem; color: #9aa4b8; font-size: 0.9rem; }
.dce-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.dce-item { padding: 0.85rem 1rem; background: rgba(17, 24, 39, 0.5); border: 1px solid rgba(42, 52, 71, 0.6); border-radius: 0.5rem; }
.dce-titre { margin: 0 0 0.25rem; color: #c4ccda; font-size: 0.85rem; line-height: 1.35; }
.dce-date { margin: 0; color: #7f8aa1; font-size: 0.76rem; }
@media (max-width: 640px) { .dce-grid { grid-template-columns: 1fr; } }

/* ===== Onglet Patrimoine (DVF) ===== */
.pat-sub { margin: 0 0 1rem; color: #9aa4b8; font-size: 0.9rem; }
.pat-list { display: flex; flex-direction: column; gap: 0.5rem; }
.pat-item { padding: 0.75rem 1rem; background: rgba(17, 24, 39, 0.5); border: 1px solid rgba(42, 52, 71, 0.6); border-radius: 0.5rem; }
.pat-main { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.25rem; }
.pat-type { color: #e6e9f2; font-weight: 500; font-size: 0.86rem; }
.pat-date { color: #7f8aa1; font-size: 0.78rem; white-space: nowrap; }
.pat-meta { color: #9aa4b8; font-size: 0.8rem; display: flex; align-items: center; gap: 0.1rem; flex-wrap: wrap; }
.pat-val { color: #e6e9f2; font-weight: 600; }
.pat-pv { margin-left: 0.5rem; padding: 0.05rem 0.4rem; border-radius: 0.3rem; font-size: 0.74rem; font-weight: 600; }
.pat-pv-up { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); }
.pat-pv-down { color: #f87171; background: rgba(239, 68, 68, 0.14); }

/* ===== Onglet Réseau (graphe + panneau) ===== */
.net-sub { margin: 0 0 1rem; color: #9aa4b8; font-size: 0.9rem; }
.net-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 1.25rem; align-items: start; }
.net-graph { width: 100%; max-width: 360px; height: auto; background: rgba(10, 13, 20, 0.5); border: 1px solid rgba(42, 52, 71, 0.6); border-radius: 0.6rem; }
.net-edge { stroke: rgba(96, 165, 250, 0.35); stroke-width: 1.5; }
.net-node { fill: #2563eb; stroke: #60a5fa; stroke-width: 1.5; }
.net-center { fill: #1d4ed8; stroke: #93c5fd; stroke-width: 2; }
.net-center-label { fill: #fff; font-size: 13px; font-weight: 700; text-anchor: middle; }
.net-list { display: flex; flex-direction: column; gap: 0.5rem; }
.net-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; background: rgba(17, 24, 39, 0.5); border: 1px solid rgba(42, 52, 71, 0.6); border-radius: 0.5rem; transition: 0.15s; }
.net-row:hover { border-color: rgba(96, 165, 250, 0.34); background: rgba(17, 24, 39, 0.72); }
.net-dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 9999px; background: #60a5fa; }
.net-row-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.net-name { color: #60a5fa; font-weight: 600; font-size: 0.86rem; }
.net-via { color: #7f8aa1; font-size: 0.76rem; }
.net-row svg { width: 14px; height: 14px; color: #7f8aa1; flex-shrink: 0; }
@media (max-width: 720px) { .net-wrap { grid-template-columns: 1fr; } .net-graph { margin: 0 auto; } }
/* Onglet « Santé » — statut global + signaux colorés, thème sombre. */
.sante-summary { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.1rem; border-radius: 0.6rem; border: 1px solid; }
.sante-summary svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.sante-summary-body { display: flex; flex-direction: column; gap: 0.1rem; }
.sante-summary-body strong { color: #e6e9f2; font-weight: 600; font-size: 0.92rem; }
.sante-summary-body small { color: #9aa4b8; font-size: 0.8rem; }
.sante-ok { background: rgba(37, 99, 235, 0.08); border-color: rgba(96, 165, 250, 0.28); }
.sante-ok svg { color: #60a5fa; }
.sante-warn { background: rgba(245, 158, 11, 0.08); border-color: rgba(251, 191, 36, 0.3); }
.sante-warn svg { color: #fcd34d; }
.sante-signal {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1rem;
  margin: 0 0 0.6rem; border-radius: 0.5rem; border-left: 3px solid;
  background: rgba(17, 24, 39, 0.5);
}
.sante-signal svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.sante-signal-body { display: flex; flex-direction: column; gap: 0.1rem; }
.sante-signal-body strong { color: #e6e9f2; font-weight: 600; font-size: 0.88rem; }
.sante-signal-body small { color: #9aa4b8; font-size: 0.8rem; }
.lvl-critique { border-left-color: #f87171; }
.lvl-critique svg { color: #f87171; }
.lvl-warning { border-left-color: #fcd34d; }
.lvl-warning svg { color: #fcd34d; }
.lvl-info { border-left-color: #60a5fa; }
.lvl-info svg { color: #60a5fa; }
/* Onglet « Direction » (dirigeants) — cartes cliquables PP/PM, thème sombre. */
.dir-sub { margin: 0 0 1.25rem; color: #9aa4b8; font-size: 0.9rem; }
.dir-card {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.8rem 1rem; margin: 0 0 0.6rem;
  background: rgba(17, 24, 39, 0.5); border: 1px solid rgba(42, 52, 71, 0.66);
  border-radius: 0.6rem; transition: 0.15s;
}
.dir-card:hover { border-color: rgba(96, 165, 250, 0.34); background: rgba(17, 24, 39, 0.72); }
.dir-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9999px;
  background: rgba(37, 99, 235, 0.14); color: #60a5fa;
}
.dir-icon svg { width: 17px; height: 17px; }
.dir-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.dir-name { color: #60a5fa; font-weight: 600; font-size: 0.92rem; }
.dir-name:hover { text-decoration: underline; }
.dir-name-plain { color: #e6e9f2; }
.dir-role { color: #9aa4b8; font-size: 0.82rem; }
.dir-pm-label {
  margin: 1.35rem 0 0.6rem; font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: #7f8aa1;
}
/* Onglet « etablissements » de la fiche entreprise — styles dédiés (préfixe .fct-etablissements-).
   Vide : à remplir par l'agent de cet onglet. Thème sombre, parité prod. */
/* Onglet « reseau » de la fiche entreprise — styles dédiés (préfixe .fct-reseau-).
   Vide : à remplir par l'agent de cet onglet. Thème sombre, parité prod. */
/* Onglet « finances » de la fiche entreprise — styles dédiés (préfixe .fct-finances-).
   Vide : à remplir par l'agent de cet onglet. Thème sombre, parité prod. */
/* Onglet « Certifications RGE » — grille de cartes vertes, thème sombre. */
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cert-item {
  padding: 1rem 1.1rem; background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.28); border-radius: 0.6rem;
}
.cert-name { margin: 0 0 0.4rem; color: #e6e9f2; font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.cert-meta { margin: 0; color: #9aa4b8; font-size: 0.78rem; }
@media (max-width: 640px) { .cert-grid { grid-template-columns: 1fr; } }
/* Onglet « similaires » de la fiche entreprise — styles dédiés (préfixe .fct-similaires-).
   Vide : à remplir par l'agent de cet onglet. Thème sombre, parité prod. */
/* Onglet « attributions » de la fiche entreprise — styles dédiés (préfixe .fct-attributions-).
   Vide : à remplir par l'agent de cet onglet. Thème sombre, parité prod. */
/* Onglet « dce » de la fiche entreprise — styles dédiés (préfixe .fct-dce-).
   Vide : à remplir par l'agent de cet onglet. Thème sombre, parité prod. */
/* Onglet « Projets » de la fiche entreprise — permis de construire (préfixe .fct-projets-).
   Thème sombre, parité prod (page.tsx ~3504-3739). */

.fct-projets-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Carte des permis géolocalisés (conteneur data-attr, hydraté par îlot WASM) ── */
.fct-projets-map {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 0.75rem;
  border: 1px solid rgba(42, 52, 71, 0.82);
  background:
    radial-gradient(circle at 22% 28%, rgba(96, 165, 250, 0.07), transparent 55%),
    radial-gradient(circle at 78% 72%, rgba(110, 231, 183, 0.05), transparent 55%),
    rgba(11, 14, 24, 0.6);
  overflow: hidden;
}

.fct-projets-map-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #7f8aa1;
  font-size: 0.82rem;
}

.fct-projets-map-ph svg {
  width: 22px;
  height: 22px;
  color: #60a5fa;
  opacity: 0.85;
}

/* ── Bande stats ── */
.fct-projets-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.fct-projets-stat {
  border-radius: 0.6rem;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.75rem;
  text-align: center;
}

.fct-projets-stat-k {
  margin: 0;
  font-size: 0.72rem;
  color: #93c5fd;
}

.fct-projets-stat-v {
  margin: 0.2rem 0 0;
  font-weight: 600;
  font-size: 1rem;
  color: #e6e9f2;
}

/* ── Liste des permis ── */
.fct-projets-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fct-projets-list-h {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4ccda;
}

.fct-projets-item {
  border-radius: 0.6rem;
  border: 1px solid rgba(42, 52, 71, 0.82);
  background: rgba(15, 19, 32, 0.74);
  transition: border-color 0.15s ease;
}

.fct-projets-item:hover {
  border-color: rgba(64, 78, 107, 0.95);
}

.fct-projets-item[open] {
  border-color: rgba(64, 78, 107, 0.95);
}

/* summary */
.fct-projets-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  list-style: none;
}

.fct-projets-sum::-webkit-details-marker {
  display: none;
}

.fct-projets-sum-main {
  flex: 1;
  min-width: 0;
}

.fct-projets-sum-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fct-projets-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.3rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.fct-projets-badge-blue {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3);
}

.fct-projets-badge-green {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3);
}

.fct-projets-badge-red {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.3);
}

.fct-projets-badge-amber {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3);
}

.fct-projets-badge-gray {
  color: #c4ccda;
  background: rgba(42, 52, 71, 0.7);
}

.fct-projets-typelabel {
  font-size: 0.72rem;
  color: #9aa4b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fct-projets-state {
  display: inline-flex;
  align-items: center;
  border-radius: 0.3rem;
  padding: 0.08rem 0.4rem;
  font-size: 0.64rem;
  font-weight: 600;
  color: #c4ccda;
  background: rgba(42, 52, 71, 0.7);
}

.fct-projets-sum-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: #7f8aa1;
  flex-wrap: wrap;
}

.fct-projets-num {
  font-size: 0.66rem;
}

.fct-projets-sum-aside {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.fct-projets-log {
  margin: 0;
  font-size: 0.72rem;
  color: #7f8aa1;
}

.fct-projets-surf {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e6e9f2;
}

.fct-projets-chev svg {
  width: 16px;
  height: 16px;
  color: #7f8aa1;
  transition: transform 0.15s ease;
}

.fct-projets-item[open] .fct-projets-chev svg {
  transform: rotate(180deg);
}

/* detail */
.fct-projets-detail {
  border-top: 1px solid rgba(42, 52, 71, 0.82);
  padding: 1rem;
  background: rgba(11, 14, 24, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fct-projets-addr {
  font-size: 0.85rem;
  color: #c4ccda;
}

.fct-projets-dt {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #7f8aa1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fct-projets-dd {
  margin: 0;
  font-size: 0.78rem;
  color: #c4ccda;
}

.fct-projets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.fct-projets-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.78rem;
  color: #c4ccda;
}

.fct-projets-tagk {
  color: #7f8aa1;
}

.fct-projets-tagv {
  font-weight: 500;
}

.fct-projets-neg,
.fct-projets-neg .fct-projets-tagk {
  color: #fca5a5;
}

@media (min-width: 768px) {
  .fct-projets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fct-projets-grid {
    grid-template-columns: 1fr;
  }
}
/* Onglet « patrimoine » de la fiche entreprise — styles dédiés (préfixe .fct-patrimoine-).
   Vide : à remplir par l'agent de cet onglet. Thème sombre, parité prod. */
/* Onglet « Web » de la fiche entreprise — styles dédiés (préfixe .fct-web-).
   Thème sombre, parité prod (bloc `web:` de page.tsx). */

/* Sous-titre sous le h2 de chaque carte (prod: text-xs text-gray-400, -mt sous h2). */
.fct-web-subtitle {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.75rem;
  color: #7f8aa1;
}

/* ── État vide (prod: text-center py-10, icône grise, libellés gris) ───────── */
.fct-web-empty {
  text-align: center;
  padding: 2.5rem 0;
}
.fct-web-empty > svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  display: block;
  color: #3a4358;
  stroke: #3a4358;
}
.fct-web-empty-title {
  margin: 0;
  font-size: 0.875rem;
  color: #9aa4b8;
}
.fct-web-empty-sub {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #7f8aa1;
}

/* ── Carte 1 : Actualités ──────────────────────────────────────────────────
   prod: <ul space-y-4>, <li border-l-2 border-blue-200 pl-4>. */
.fct-web-actus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fct-web-actu {
  border-left: 2px solid rgba(96, 165, 250, 0.35);
  padding-left: 1rem;
}
.fct-web-actu-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
}
.fct-web-actu-date {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #7f8aa1;
}
.fct-web-actu-type {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3);
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
}
.fct-web-actu-source {
  font-size: 0.75rem;
  color: #9aa4b8;
}
.fct-web-actu-title {
  display: block;
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e6e9f2;
}
.fct-web-actu-link {
  text-decoration: none;
  transition: color 0.15s ease;
}
.fct-web-actu-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}
.fct-web-actu-resume {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #c4ccda;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Carte 2 : Écosystème opérateur immobilier (table) ─────────────────────── */
.fct-web-table-wrap {
  overflow-x: auto;
}
.fct-web-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.fct-web-table thead tr {
  border-bottom: 1px solid rgba(42, 52, 71, 0.82);
}
.fct-web-table th {
  padding: 0.5rem 0.75rem 0.5rem 0;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  color: #7f8aa1;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}
.fct-web-th-right {
  text-align: right;
}
.fct-web-table tbody tr {
  border-bottom: 1px solid rgba(42, 52, 71, 0.5);
  transition: background 0.15s ease;
}
.fct-web-table tbody tr:last-child {
  border-bottom: 0;
}
.fct-web-table tbody tr:hover {
  background: rgba(42, 52, 71, 0.28);
}
.fct-web-table td {
  padding: 0.625rem 0.75rem 0.625rem 0;
  vertical-align: middle;
}
.fct-web-td-deno {
  font-size: 0.875rem;
  font-weight: 500;
  color: #e6e9f2;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fct-web-td-naf {
  font-size: 0.75rem;
  color: #9aa4b8;
}
.fct-web-td-permis {
  text-align: right;
  font-size: 0.75rem;
  color: #9aa4b8;
  font-variant-numeric: tabular-nums;
}
.fct-web-td-lieu {
  font-size: 0.75rem;
  color: #9aa4b8;
  padding-right: 0;
}

/* Badge relation (prod roleColor → palette sombre). */
.fct-web-role {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  white-space: nowrap;
}
.fct-web-role-self {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3);
}
.fct-web-role-parent {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.16);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.3);
}
.fct-web-role-peer {
  color: #c4ccda;
  background: rgba(42, 52, 71, 0.7);
}
.fct-web-role-sub {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3);
}

/* Note de source sous la table (prod: text-[10px] text-gray-400 italic). */
.fct-web-source-note {
  margin: 0.75rem 0 0;
  font-size: 0.625rem;
  color: #7f8aa1;
  font-style: italic;
}
/* Onglet « assureur » de la fiche entreprise — styles dédiés (préfixe .fct-assureur-).
   Vide : à remplir par l'agent de cet onglet. Thème sombre, parité prod. */
/* Onglet « Vie sociale » (accords ACCO) — thème sombre, parité prod.
   Préfixe `vs-` (vie sociale). Réutilise `.fc-card` (carte + espacement). */

.vs-stack { display: block; }

/* ── Card 1 : en-tête résumé ─────────────────────────────────────────── */
.vs-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
/* L'en-tête de la Card 1 porte son propre h2 → annuler la bordure/marge du
   fc-card>h2 (parité prod : titre + date alignés, sans séparateur). */
.vs-head > h2 {
  margin: 0; padding: 0; border: 0;
}
.vs-lastsign {
  font-size: 0.72rem; color: #9aa4b8; white-space: nowrap; flex-shrink: 0;
  padding-top: 0.2rem;
}

.vs-summary {
  margin: 0 0 1rem; font-size: 0.9rem; color: #9aa4b8; line-height: 1.55;
}
.vs-summary strong { color: #e6e9f2; font-weight: 600; }

/* ── Badges signaux sociaux actifs (Card 1) ──────────────────────────── */
.vs-flags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vs-flag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-radius: 9999px; padding: 0.28rem 0.75rem;
  font-size: 0.74rem; font-weight: 500; line-height: 1.2;
}
.vs-flag svg { width: 13px; height: 13px; flex-shrink: 0; }
.vs-flag-red     { color: #fca5a5; background: rgba(239, 68, 68, 0.14);  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.3); }
.vs-flag-orange  { color: #fdba74; background: rgba(249, 115, 22, 0.14); box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.3); }
.vs-flag-green   { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3); }
.vs-flag-emerald { color: #6ee7b7; background: rgba(5, 150, 105, 0.16);  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3); }
.vs-flag-blue    { color: #93c5fd; background: rgba(37, 99, 235, 0.16);  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3); }
.vs-flag-indigo  { color: #a5b4fc; background: rgba(79, 70, 229, 0.16);  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.3); }
.vs-nosignal { font-size: 0.74rem; color: #7f8aa1; font-style: italic; }

.vs-source { margin: 1rem 0 0; font-size: 0.72rem; color: #7f8aa1; }

/* ── Card 2 : liste des accords ──────────────────────────────────────── */
.vs-list { display: flex; flex-direction: column; gap: 0.75rem; }

.vs-acc {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; text-decoration: none; color: inherit;
  border: 1px solid rgba(42, 52, 71, 0.55); border-radius: var(--radius-lg, 0.75rem);
  padding: 1rem; transition: background 0.15s ease, border-color 0.15s ease;
}
.vs-acc:hover {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(96, 165, 250, 0.45);
}
.vs-acc-body { flex: 1 1 auto; min-width: 0; }

.vs-acc-tags {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.vs-acc-origine {
  display: inline-flex; align-items: center; border-radius: 9999px;
  background: rgba(42, 52, 71, 0.7); color: #9aa4b8;
  padding: 0.1rem 0.5rem; font-size: 0.625rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.vs-acc-signal {
  display: inline-flex; align-items: center; border-radius: 9999px;
  padding: 0.1rem 0.5rem; font-size: 0.625rem; font-weight: 600;
}
.vs-acc-niveau {
  font-size: 0.625rem; color: #7f8aa1;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.vs-acc-title {
  margin: 0; font-size: 0.9rem; font-weight: 500; color: #e6e9f2;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.vs-acc:hover .vs-acc-title { color: #60a5fa; }

.vs-acc-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 0.85rem; row-gap: 0.25rem; margin-top: 0.4rem;
  font-size: 0.74rem; color: #9aa4b8;
}
.vs-acc-mi { display: inline-flex; align-items: center; gap: 0.3rem; }
.vs-acc-mi svg { width: 12px; height: 12px; flex-shrink: 0; color: #7f8aa1; }

.vs-acc-themes {
  display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.55rem;
  align-items: center;
}
.vs-acc-theme {
  display: inline-flex; align-items: center; border-radius: 0.25rem;
  background: rgba(42, 52, 71, 0.5); color: #9aa4b8;
  padding: 0.1rem 0.4rem; font-size: 0.625rem;
}
.vs-acc-theme-more { font-size: 0.625rem; color: #7f8aa1; }

.vs-acc-ico { flex-shrink: 0; margin-top: 0.2rem; color: #475569; }
.vs-acc-ico svg { width: 16px; height: 16px; }
.vs-acc:hover .vs-acc-ico { color: #60a5fa; }

.vs-more {
  margin: 1rem 0 0; text-align: center;
  font-size: 0.74rem; color: #9aa4b8;
}

/* ── Badges « signal » par couleur (liste) ───────────────────────────── */
.vs-sig-red     { color: #fca5a5; background: rgba(239, 68, 68, 0.18); }
.vs-sig-orange  { color: #fdba74; background: rgba(249, 115, 22, 0.18); }
.vs-sig-green   { color: #6ee7b7; background: rgba(16, 185, 129, 0.18); }
.vs-sig-emerald { color: #6ee7b7; background: rgba(5, 150, 105, 0.2); }
.vs-sig-blue    { color: #93c5fd; background: rgba(37, 99, 235, 0.2); }
.vs-sig-indigo  { color: #a5b4fc; background: rgba(79, 70, 229, 0.2); }
.vs-sig-pink    { color: #f9a8d4; background: rgba(236, 72, 153, 0.18); }
.vs-sig-purple  { color: #c4b5fd; background: rgba(147, 51, 234, 0.18); }

/* ── État vide ───────────────────────────────────────────────────────── */
.vs-empty { text-align: center; padding: 2.5rem 1.5rem; }
.vs-empty svg { width: 40px; height: 40px; margin: 0 auto 0.75rem; color: #475569; display: block; }
.vs-empty-title { margin: 0; font-size: 0.9rem; color: #9aa4b8; }
.vs-empty-sub {
  margin: 0.5rem auto 0; max-width: 28rem;
  font-size: 0.74rem; color: #7f8aa1; line-height: 1.5;
}
/* ==========================================================================
   OBSERVATOIRES (hub · marchés publics · DVF · permis · métier) + piliers DVF
   + ANNUAIRE (agrégats : métier, lieu, département).
   THÈME SOMBRE — parité prod `body.prescriptio-data-page`.
   Les vues enveloppent leur `<main>` dans `.data-surface` (base.css) qui
   fournit le fond #0a0d14 + grille blueprint + glow bleu en backdrop fixe.

   Palette canonique (globals.css prod) :
     texte titres  #e6e9f2 · corps #c4ccda · muted #9aa4b8 · faint #7f8aa1
     carte (bg-white)       rgba(15, 19, 32, 0.74)
     surface douce (50/100) rgba(17, 24, 39, 0.58)
     bordure (slate/100)    rgba(42, 52, 71, 0.82)
     bordure douce          rgba(42, 52, 71, 0.66)
     bordure accent (200+)  rgba(96, 165, 250, 0.34)
     liens / accent         #60a5fa
   ========================================================================== */

/* ── Liens internes (data-surface main) — bleu clair lisible sur sombre ──── */
.data-surface main a { color: #60a5fa; }
.data-surface main a:hover { color: #93c5fd; }

/* Breadcrumb (parité nav text-slate-500 → muted sombre) */
.data-surface main nav[aria-label="breadcrumb"] {
  margin: 0 0 1.5rem; font-size: 0.875rem; color: #9aa4b8;
}
.data-surface main nav[aria-label="breadcrumb"] a { color: #9aa4b8; }
.data-surface main nav[aria-label="breadcrumb"] a:hover { color: #60a5fa; }
.data-surface main nav[aria-label="breadcrumb"] span { color: #e6e9f2; font-weight: 500; }

/* Titres sur fond sombre */
.data-surface main h1 { color: #e6e9f2; }
.data-surface main h2, .data-surface main h3 { color: #e6e9f2; }
.data-surface main .lead { font-size: 1.05rem; color: #c4ccda; }
.data-surface main p { color: #c4ccda; }

/* Lignes de contexte sous le H1 (période, classement, note) */
.periode, .rang, .note { margin: -0.3rem 0 1.5rem; font-size: 0.95rem; color: #9aa4b8; }

/* ── Sections-cartes (même recette que les fiches, en sombre) ───────────── */
.kpis, .attributaires, .acheteurs, .evolution, .prix, .communes, .depts,
.types, .metiers, .methodo {
  margin: 0 0 1.5rem; padding: 1.5rem;
  background: rgba(15, 19, 32, 0.74);
  border: 1px solid rgba(42, 52, 71, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}
.kpis > h2, .attributaires > h2, .acheteurs > h2, .evolution > h2, .prix > h2,
.communes > h2, .depts > h2, .types > h2, .metiers > h2, .methodo > h2,
.observatoires > h2 {
  margin: 0 0 1rem; padding-bottom: 0.6rem;
  font-size: 1.05rem; font-weight: 700; color: #e6e9f2;
  border-bottom: 1px solid rgba(42, 52, 71, 0.66);
}
.attributaires table, .evolution table, .prix table, .communes table,
.depts table, .types table, .metiers table { margin: 0; }

/* Tables sur fond sombre : fond, séparateurs, thead, corps lisibles */
.attributaires table, .evolution table, .prix table, .communes table,
.depts table, .types table, .metiers table {
  background: rgba(15, 19, 32, 0.58);
}
.attributaires th, .attributaires td, .evolution th, .evolution td,
.prix th, .prix td, .communes th, .communes td, .depts th, .depts td,
.types th, .types td, .metiers th, .metiers td {
  border-bottom: 1px solid rgba(42, 52, 71, 0.66);
}
.attributaires thead th, .evolution thead th, .prix thead th, .communes thead th,
.depts thead th, .types thead th, .metiers thead th {
  background: rgba(17, 24, 39, 0.58); color: #9aa4b8;
  border-bottom: 1px solid rgba(42, 52, 71, 0.82);
}
.attributaires td, .evolution td, .prix td, .communes td, .depts td,
.types td, .metiers td { color: #c4ccda; }
.attributaires tbody tr:hover, .evolution tbody tr:hover, .prix tbody tr:hover,
.communes tbody tr:hover, .depts tbody tr:hover, .types tbody tr:hover,
.metiers tbody tr:hover { background: rgba(17, 24, 39, 0.5); }
.attributaires td a, .depts td a, .metiers td a, .communes td a { color: #93c5fd; }

/* Colonnes numériques alignées à droite (parité Next text-right + tabular-nums) ;
   1re colonne (dimension/label) à gauche, appuyée. */
.prix th:not(:first-child), .prix td:not(:first-child),
.communes th:not(:first-child), .communes td:not(:first-child),
.evolution th:not(:first-child), .evolution td:not(:first-child),
.types th:not(:first-child), .types td:not(:first-child),
.depts th:not(:first-child), .depts td:not(:first-child),
.attributaires th:not(:first-child):not(:nth-child(2)),
.attributaires td:not(:first-child):not(:nth-child(2)),
.metiers th:not(:first-child), .metiers td:not(:first-child) {
  text-align: right; font-variant-numeric: tabular-nums;
}
.prix tbody td:first-child, .communes tbody td:first-child,
.evolution tbody td:first-child, .types tbody td:first-child,
.depts tbody td:first-child, .metiers tbody td:first-child {
  color: #e6e9f2; font-weight: 500;
}

/* Méthodologie : encart discret sombre */
.methodo { background: rgba(17, 24, 39, 0.58); border-color: rgba(42, 52, 71, 0.66); }
.methodo > h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 0.5rem; }
.methodo p { margin: 0; font-size: 0.88rem; color: #9aa4b8; line-height: 1.55; }

/* Top acheteurs : liste de lignes lisibles (parité divide-y) */
.acheteurs ul { list-style: none; margin: 0; padding: 0; }
.acheteurs li {
  padding: 0.55rem 0; border-top: 1px solid rgba(42, 52, 71, 0.66);
  font-size: 0.9rem; color: #c4ccda;
}
.acheteurs li:first-child { border-top: 0; }

/* « Chiffres clés » en feuille clé→valeur (observatoire marchés : section.kpis > dl) */
.kpis dl {
  display: grid; grid-template-columns: minmax(160px, 1fr) auto;
  gap: 0.55rem 1.5rem; margin: 0; align-items: baseline;
}
.kpis dt { margin: 0; font-size: 0.85rem; color: #7f8aa1; }
.kpis dd {
  margin: 0; text-align: right; font-size: 1.15rem; font-weight: 700;
  color: #e6e9f2; font-variant-numeric: tabular-nums;
}

/* KPI en tuiles (observatoire métier : section.kpis > div.kpi) */
.kpis:has(> .kpi) {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 0.9rem;
}
.kpis > .kpi {
  padding: 1rem; text-align: left;
  background: rgba(17, 24, 39, 0.58); border: 1px solid rgba(42, 52, 71, 0.66);
  border-radius: var(--radius);
}
.kpis > .kpi .kpi-value { font-size: clamp(1.2rem, 2vw, 1.55rem); color: #e6e9f2; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpis > .kpi .kpi-label { display: block; margin-top: 0.25rem; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #7f8aa1; }

/* ── Hub : bande de KPI tiles bordées (section.kpi-strip > div.kpi-tile) ── */
.kpi-strip {
  margin: 0 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}
.kpi-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1.25rem 1.25rem 1.25rem 1.45rem;
  background: rgba(15, 19, 32, 0.74);
  border: 1px solid rgba(42, 52, 71, 0.82); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}
.kpi-tile::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 2px; height: 100%; background: var(--brand-soft);
}
.kpi-tile .kpi-value { font-size: 1.5rem; color: #e6e9f2; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-tile .kpi-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: #7f8aa1;
}
.kpi-tile .kpi-sub { font-size: 0.75rem; color: #9aa4b8; }
.kpi-delta {
  align-self: flex-start; display: inline-flex; align-items: center;
  padding: 0.1rem 0.4rem; border-radius: var(--radius-sm);
  background: rgba(17, 24, 39, 0.7); color: #9aa4b8;
  font-size: 0.6875rem; font-weight: 600; font-variant-numeric: tabular-nums;
}

/* ── Hub : grille de cartes-liens vers les sous-observatoires ──────────── */
.observatoires { margin: 0 0 1.5rem; }
.obs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.obs-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1.75rem;
  background: rgba(15, 19, 32, 0.74); color: #c4ccda;
  border: 1px solid rgba(42, 52, 71, 0.82); border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.obs-card::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 2px; height: 100%; background: var(--brand-soft);
}
.obs-card:hover {
  transform: translateY(-3px); border-color: rgba(96, 165, 250, 0.34);
  background: rgba(15, 19, 32, 0.84);
  box-shadow: 0 18px 50px -28px rgba(37, 99, 235, 0.5); text-decoration: none;
}
.obs-card h3 { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #e6e9f2; }
.obs-card-kpis { list-style: none; margin: 0; padding: 0; flex: 1; }
.obs-card-kpis li {
  padding: 0.35rem 0; border-top: 1px solid rgba(42, 52, 71, 0.66);
  font-size: 0.88rem; color: #9aa4b8;
}
.obs-card-kpis li:first-child { border-top: 0; }
.obs-card-kpis strong { color: #e6e9f2; font-weight: 700; font-variant-numeric: tabular-nums; }
.obs-card-cta { font-size: 0.8rem; font-weight: 600; color: #60a5fa; }

/* ── Annuaire (agrégats) : sections-cartes + grilles de liens ───────────── */
/* Bande KPI métier/lieu/département (section.ann-stats > div.ann-stat) */
.ann-stats {
  margin: 0 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem;
}
.ann-stat {
  padding: 1.25rem; text-align: center;
  background: rgba(15, 19, 32, 0.74); border: 1px solid rgba(42, 52, 71, 0.82);
  border-radius: var(--radius-lg); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}
.ann-stat .ann-stat-value { display: block; font-size: 1.75rem; font-weight: 700; color: #e6e9f2; font-variant-numeric: tabular-nums; }
.ann-stat .ann-stat-label { display: block; margin-top: 0.35rem; font-size: 0.8rem; color: #9aa4b8; }

/* Sections-cartes annuaire (par dept / par ville / par métier / villes proches) */
.ann-section {
  margin: 0 0 1.5rem; padding: 1.5rem;
  background: rgba(15, 19, 32, 0.74); border: 1px solid rgba(42, 52, 71, 0.82);
  border-radius: var(--radius-lg); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}
.ann-section > h2 {
  margin: 0 0 1rem; padding-bottom: 0.6rem;
  font-size: 1.05rem; font-weight: 700; color: #e6e9f2;
  border-bottom: 1px solid rgba(42, 52, 71, 0.66);
}

/* Grille de cartes-liens (métiers / départements / villes) — parité grid Next */
.ann-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; }
.ann-grid li {
  margin: 0;
}
.ann-grid li a, .ann-grid li > .ann-cell {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: rgba(17, 24, 39, 0.58); border: 1px solid rgba(42, 52, 71, 0.66);
  border-radius: var(--radius); color: #c4ccda; font-size: 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.ann-grid li a:hover {
  border-color: rgba(96, 165, 250, 0.34); background: rgba(15, 19, 32, 0.84);
  color: #e6e9f2; text-decoration: none; transform: translateY(-1px);
}
.ann-grid li .ann-count { font-weight: 700; color: #e6e9f2; font-variant-numeric: tabular-nums; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .kpis dl { grid-template-columns: 1fr auto; gap: 0.4rem 1rem; }
}

/* Tables stats denses : scroll horizontal sur mobile (parité overflow-x-auto Next) */
@media (max-width: 640px) {
  .prix, .communes, .evolution, .types, .depts, .attributaires, .metiers { overflow-x: auto; }
}
/* ==========================================================================
   ÉDITORIAL (84 pages : solutions, sous-piliers, hubs, guides) + glossaire +
   pages légales — DOCUMENT DE LECTURE en colonne, parité PIXEL avec le Next.

   Référence Next (valeurs Tailwind exactes, citées par bloc) :
   - apps/prescriptio/src/components/marketing/feature-pages/* (Hero, FAQ, CTA)
   - apps/prescriptio/src/app/glossaire/* + cgv/mentions/cookies/...

   ⚠ CONTRAINTE DATA : `EditorialPage` ne porte qu'un document prose
   (intro + sections h2/body + faq + links + cta). Le template 9-sections
   Next (Metrics/ValueProps/Comparison/Steps avec icônes + données chiffrées)
   n'a PAS d'équivalent dans la struct → on rend un document de lecture clair
   et soigné, dont la typo/espacements/couleurs sont alignés au pixel sur les
   sections Hero + FAQ + CTA des feature-pages Next.

   Thème : document CLAIR sur fond blanc (le shell est sombre, le contenu
   éditorial est un document lumineux). Colonne de lecture max-w-3xl (768px).
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   COLONNE DE LECTURE
   base.css `main { max-width:1440px; padding:2.5rem ... 4rem }` est trop large
   pour un document éditorial. Next utilise `max-w-3xl px-6` (article container,
   page-container.tsx l.16). On reprend 768px + gouttière px-6 (24px).
   ────────────────────────────────────────────────────────────────────────── */
main.editorial {
  max-width: calc(768px + 2 * 24px);  /* max-w-3xl + px-6 de chaque côté */
  padding: 0 24px 96px;                /* pb ~ py-24 Next, pas de top : le header gère */
}
main.editorial > * { max-width: 768px; margin-left: auto; margin-right: auto; }

/* ── Breadcrumb (parité components/seo/breadcrumb.tsx) ──────────────────────
   <nav> <ol flex gap-1 text-sm slate-400> · ChevronRight 14px slate-300 ·
   dernier maillon slate-600. */
main.editorial > nav[aria-label] {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem;
  margin: 2.5rem 0 1.25rem;            /* respire sous le header */
  font-size: 0.875rem; line-height: 1.25rem;  /* text-sm */
  color: #94a3b8;                      /* slate-400 */
}
main.editorial > nav[aria-label] a { color: #94a3b8; transition: color 0.15s ease; }
main.editorial > nav[aria-label] a:hover { color: #475569; text-decoration: none; }  /* slate-600 */
main.editorial > nav[aria-label] span { color: #475569; }  /* page courante slate-600 */
/* Séparateur « › » : on remplace le texte par un chevron visuel slate-300. */
main.editorial > nav[aria-label] {
  /* le séparateur littéral « › » reste lisible et discret */
  --bc-sep: #cbd5e1;
}

/* ──────────────────────────────────────────────────────────────────────────
   EN-TÊTE DE DOCUMENT (parité FeaturePageHero / page-shell hero)
   Next FeaturePageHero : h1 text-4xl→6xl bold tracking-tight slate-900 ;
   sous-titre text-lg leading-relaxed slate-600 (mais en colonne, pas centré).
   ────────────────────────────────────────────────────────────────────────── */
main.editorial > h1 {
  margin: 0 0 0;
  font-size: clamp(2.25rem, 5vw, 3rem);   /* text-4xl → ~text-5xl */
  font-weight: 700;                        /* font-bold */
  letter-spacing: -0.025em;                /* tracking-tight */
  line-height: 1.1;
  color: #0f172a;                          /* slate-900 */
  text-wrap: balance;
}

/* Chapeau éditorial = lead (parité hero subtitle : text-lg slate-600). */
.editorial-intro {
  margin: 1.5rem 0 2.5rem;                 /* mt-6 sous H1 + respiration avant sections */
  max-width: 768px;
  font-size: 1.125rem; line-height: 1.7;   /* text-lg leading-relaxed */
  color: #475569;                          /* slate-600 */
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTIONS (h2 + prose)
   Parité Pains/ValueProps/Comparison headers : h2 text-3xl bold tracking-tight
   slate-900. En document de lecture on reste à text-2xl pour le rythme vertical.
   Body : slate-700, leading-relaxed (les feature-page descriptions sont slate-600/700).
   ────────────────────────────────────────────────────────────────────────── */
main.editorial > section { margin: 0 auto 2.5rem; }
main.editorial > section > h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem; line-height: 1.25;    /* text-2xl */
  font-weight: 700;                        /* font-bold */
  letter-spacing: -0.02em;                 /* tracking-tight */
  color: #0f172a;                          /* slate-900 */
}
main.editorial > section > p {
  margin: 0 0 1rem;
  font-size: 1rem; line-height: 1.75;      /* text-base leading-relaxed */
  color: #334155;                          /* slate-700 */
}
main.editorial > section > p:last-child { margin-bottom: 0; }
main.editorial > section > ul {
  margin: 0 0 1rem; padding-left: 1.25rem;
  color: #334155; line-height: 1.7;
}
main.editorial > section > ul li { margin: 0.4rem 0; }
main.editorial a { font-weight: 500; }

/* ──────────────────────────────────────────────────────────────────────────
   FAQ — parité EXACTE FeaturePageFAQ (feature-page-faq.tsx)
   Section bg-slate-50 px-6 py-20 → en document on garde le bloc <details>
   border-b slate-200, summary py-5 text-base font-semibold slate-900
   hover:blue-600 + ChevronDown 20px slate-400 group-open:rotate-180,
   answer pb-5 text-sm slate-600. Pas de carte/bordure latérale.
   ────────────────────────────────────────────────────────────────────────── */
.editorial-faq, main.editorial section.editorial-faq { margin: 3rem auto 2.5rem; }
.editorial-faq > h2,
main.editorial > section.editorial-faq > h2 {
  margin: 0 0 0.5rem;
  font-size: 1.875rem; line-height: 1.2;   /* text-3xl */
  font-weight: 700; letter-spacing: -0.02em;
  color: #0f172a;
}

main.editorial details {
  margin: 0;
  border: 0; border-bottom: 1px solid #e2e8f0;  /* border-b slate-200 */
  border-radius: 0; background: transparent; overflow: visible;
}
main.editorial details > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0;                      /* py-5 */
  font-size: 1rem; line-height: 1.5;       /* text-base */
  font-weight: 600;                        /* font-semibold */
  color: #0f172a;                          /* slate-900 */
  transition: color 0.15s ease;
}
main.editorial details > summary:hover { color: #2563eb; }  /* hover:text-blue-600 */
main.editorial details > summary::-webkit-details-marker { display: none; }
/* ChevronDown 20px slate-400, rotate 180 à l'ouverture (parité lucide). */
main.editorial details > summary::after {
  content: "";
  flex-shrink: 0; width: 1.25rem; height: 1.25rem;  /* h-5 w-5 */
  background-color: #94a3b8;               /* slate-400 */
  -webkit-mask: var(--chevron-down) center / contain no-repeat;
  mask: var(--chevron-down) center / contain no-repeat;
  transition: transform 0.2s ease;
}
main.editorial details[open] > summary::after { transform: rotate(180deg); }
main.editorial details > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
main.editorial details > p {
  margin: 0; padding: 0 0 1.25rem;          /* pb-5 */
  font-size: 0.875rem; line-height: 1.625;  /* text-sm leading-relaxed */
  color: #475569;                          /* slate-600 */
}
/* Chevron lucide en data-URI (ChevronDown : m6 9 6 6 6-6). */
:root {
  --chevron-down: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
}

/* ──────────────────────────────────────────────────────────────────────────
   LIENS « POUR ALLER PLUS LOIN » + related-links glossaire
   Grid responsive, ancres font-semibold bleu (maillage interne préservé).
   ────────────────────────────────────────────────────────────────────────── */
.editorial-links { margin: 3rem auto 0; }
.editorial-links > h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem; line-height: 1.3;
  font-weight: 700; letter-spacing: -0.01em;
  color: #0f172a;
}
.editorial-links ul, .related-links {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
}
.related-links { margin: 1.5rem auto; }
.editorial-links li, .related-links li { margin: 0; }
.editorial-links a, .related-links a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.95rem; font-weight: 600; color: #2563eb;   /* blue-600 */
}
.editorial-links a:hover, .related-links a:hover { color: #1d4ed8; text-decoration: none; }  /* blue-700 */

/* ──────────────────────────────────────────────────────────────────────────
   CTA ÉDITORIAL FINAL — parité FeaturePageCTA (feature-page-cta.tsx)
   center, h2 text-3xl bold tracking-tight slate-900 + accent blue-600,
   sub text-lg slate-600, primary pill bg-slate-900 rounded-full px-8 py-3.5
   text-base font-semibold white + arrow, secondary pill border-slate-200
   bg-white slate-700. py-20.
   ────────────────────────────────────────────────────────────────────────── */
.editorial-cta {
  margin: 4rem auto 0; padding: 0;
  display: block; text-align: center;
  background: none; border: 0; border-radius: 0;
}
.editorial-cta-title {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);  /* text-3xl → md:text-4xl */
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
  color: #0f172a;                            /* slate-900 */
}
.editorial-cta-title em { font-style: normal; color: #2563eb; }  /* span accent blue-600 */
.editorial-cta-sub {
  margin: 0 auto 2.5rem; max-width: 36rem;   /* max-w-xl */
  font-size: 1.125rem; line-height: 1.6;     /* text-lg */
  color: #475569;                            /* slate-600 */
}
.editorial-cta-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: center;
}
/* Boutons pill exacts du Next (overrides .cta-primary/.cta-secondary de base.css). */
.editorial-cta .cta-primary {
  gap: 0.5rem; padding: 0.875rem 2rem;       /* py-3.5 px-8 */
  border-radius: 9999px;                     /* rounded-full */
  background: #0f172a;                        /* bg-slate-900 */
  font-size: 1rem; font-weight: 600;         /* text-base font-semibold */
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.editorial-cta .cta-primary:hover {
  background: #1e293b;                        /* hover:bg-slate-800 */
  transform: translateY(-2px);               /* hover:-translate-y-0.5 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.editorial-cta .cta-primary svg { width: 1rem; height: 1rem; }
.editorial-cta .cta-secondary {
  gap: 0.5rem; padding: 0.875rem 2rem;       /* py-3.5 px-8 */
  border-radius: 9999px;                     /* rounded-full */
  border: 1px solid #e2e8f0;                  /* border-slate-200 */
  background: #fff; color: #334155;           /* text-slate-700 */
  font-size: 1rem; font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.editorial-cta .cta-secondary:hover {
  border-color: #cbd5e1;                      /* hover:border-slate-300 */
  background: #f8fafc; color: #334155;        /* hover:bg-slate-50 */
}

/* ──────────────────────────────────────────────────────────────────────────
   GLOSSAIRE — encart définition + lien pilier (parité glossaire/[term])
   ────────────────────────────────────────────────────────────────────────── */
.definition {
  margin: 1.5rem auto 1.5rem; padding: 1.5rem;
  background: rgba(37, 99, 235, 0.06);        /* bg-blue-50/6 */
  border: 1px solid #bfdbfe;                  /* border-blue-200/300 */
  border-radius: var(--radius-lg);
}
.definition p {
  margin: 0; font-size: 1.0625rem; line-height: 1.65;  /* lead lisible */
  color: #334155;                             /* slate-700 */
}
.pillar-link {
  margin: 1rem auto 1.5rem; max-width: 768px;
  font-size: 1rem; line-height: 1.625; color: #475569;  /* slate-600 */
}
.pillar-link a { font-weight: 500; color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.pillar-link a:hover { color: #1d4ed8; }

/* « Pour aller plus loin » glossaire (lien unique terminal). */
main.editorial > p.cta {
  margin: 2.5rem auto 0; max-width: 768px;
}
main.editorial > p.cta a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.95rem; font-weight: 600; color: #2563eb;
}
main.editorial > p.cta a:hover { color: #1d4ed8; text-decoration: none; }

/* ──────────────────────────────────────────────────────────────────────────
   PAGES LÉGALES — document sobre (parité cgv/mentions/cookies)
   ────────────────────────────────────────────────────────────────────────── */
.updated {
  margin: 0.75rem auto 2.5rem; max-width: 768px;
  font-size: 0.9375rem; color: #64748b;       /* slate-500 */
}

/* ──────────────────────────────────────────────────────────────────────────
   INDEX BETA (/_beta) — non éditorial, géré ailleurs mais ses classes vivent ici.
   ────────────────────────────────────────────────────────────────────────── */
.counts { font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink-dim); }
.counts strong { color: var(--ink-strong); }

/* ──────────────────────────────────────────────────────────────────────────
   HUBS DATA — thème SOMBRE (parité prod body.prescriptio-data-page).
   Scopé sous `.data-surface` : wrapper posé par views_editorial UNIQUEMENT sur
   les slugs hubs (marches-publics / attributions / dce / permis-de-construire /
   dvf / entreprises-rge). Les guides/solutions/glossaire NON wrappés gardent le
   document CLAIR ci-dessus. Palette prod : titres #e6e9f2, corps #c4ccda,
   muted #9aa4b8, liens #60a5fa, cartes rgba(15,19,32,.74-.84), bordures
   rgba(42,52,71,.82). Le fond #0a0d14 + grille + glow viennent de .data-surface
   (base.css).
   ────────────────────────────────────────────────────────────────────────── */
.data-surface main.editorial > h1,
.data-surface main.editorial > section > h2,
.data-surface main.editorial > section.editorial-faq > h2,
.data-surface main.editorial .editorial-links > h2,
.data-surface main.editorial .editorial-cta-title { color: #e6e9f2; }

.data-surface main.editorial .editorial-intro,
.data-surface main.editorial > section > p,
.data-surface main.editorial > section > ul,
.data-surface main.editorial details > p,
.data-surface main.editorial .editorial-cta-sub,
.data-surface main.editorial .pillar-link,
.data-surface main.editorial .definition p { color: #c4ccda; }

/* Fil d'Ariane sombre */
.data-surface main.editorial > nav[aria-label],
.data-surface main.editorial > nav[aria-label] a { color: #9aa4b8; }
.data-surface main.editorial > nav[aria-label] a:hover { color: #60a5fa; text-decoration: none; }
.data-surface main.editorial > nav[aria-label] span { color: #e6e9f2; font-weight: 500; }
.data-surface main.editorial > nav[aria-label] { --bc-sep: #3a4451; }

/* Liens (corps + maillage interne préservé) */
.data-surface main.editorial a { color: #60a5fa; }
.data-surface main.editorial a:hover { color: #93c5fd; }
.data-surface main.editorial .editorial-links a,
.data-surface main.editorial .related-links a,
.data-surface main.editorial > p.cta a,
.data-surface main.editorial .pillar-link a { color: #60a5fa; }
.data-surface main.editorial .editorial-links a:hover,
.data-surface main.editorial .related-links a:hover,
.data-surface main.editorial > p.cta a:hover,
.data-surface main.editorial .pillar-link a:hover { color: #93c5fd; }

/* FAQ accordéon sombre */
.data-surface main.editorial details { border-bottom-color: rgba(42, 52, 71, 0.82); }
.data-surface main.editorial details > summary { color: #e6e9f2; }
.data-surface main.editorial details > summary:hover { color: #93c5fd; }
.data-surface main.editorial details > summary::after { background-color: #9aa4b8; }
.data-surface main.editorial .editorial-cta-title em { color: #60a5fa; }

/* CTA final : primaire = pastille claire lumineuse (contraste fort sur sombre,
   parité .mp-cta-primary des fiches) ; secondaire = pill bordé sombre. */
.data-surface main.editorial .editorial-cta .cta-primary { background: #f8fafc; color: #0a0d14; }
.data-surface main.editorial .editorial-cta .cta-primary:hover { background: #ffffff; }
.data-surface main.editorial .editorial-cta .cta-secondary {
  border-color: rgba(42, 52, 71, 0.82);
  background: rgba(15, 19, 32, 0.74);
  color: #c4ccda;
}
.data-surface main.editorial .editorial-cta .cta-secondary:hover {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(17, 24, 39, 0.58);
  color: #e6e9f2;
}

/* Encart définition glossaire (si présent dans un hub) — surface sombre */
.data-surface main.editorial .definition {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(96, 165, 250, 0.34);
}
.data-surface main.editorial .updated { color: #7f8aa1; }
/* ==========================================================================
   HUBS DATA-PRODUCT — layout 2 colonnes SOMBRE (parité prod prescriptio.fr,
   body.prescriptio-data-page). Hero gauche (copy + recherche déco + suggestions
   + 2 CTAs + mini-KPI) / carte data droite (gros chiffre + bar-chart + flux).
   Puis teaser observatoire + grille sous-pages + CTA final.

   Tout est SCOPÉ sous `.data-surface .hub` pour ne rien polluer (le fond
   #0a0d14 + grille + glow viennent de .data-surface, base.css). Les blocs
   éditoriaux (h1/h2/prose/faq) restent gérés par editorial.css + ses overrides
   sombres `.data-surface main.editorial …`.

   La spec source décrit le thème CLAIR (Tailwind prod) ; ici on rend le SOMBRE :
     bg-white            → rgba(15,19,32,.84)        (cartes vr)
     bg-slate-50/70-100  → rgba(17,24,39,.55) / .5   (surfaces secondaires)
     bordures slate-200  → rgba(42,52,71,.82)
     titres / big-metric → #e6e9f2
     corps / labels      → #c4ccda ; slate-500 #9aa4b8 ; slate-400 #7f8aa1
   Accent par hub via la classe parente .hub-accent-{blue|sky|orange}.
   ========================================================================== */

/* ── Accent par hub (var --hub / --hub-strong) ──────────────────────────── */
.data-surface .hub.hub-accent-blue   { --hub: #60a5fa; --hub-strong: #2563eb; }
.data-surface .hub.hub-accent-sky    { --hub: #38bdf8; --hub-strong: #0284c7; }
.data-surface .hub.hub-accent-orange { --hub: #fb923c; --hub-strong: #ea580c; }
.data-surface .hub { --hub: #60a5fa; --hub-strong: #2563eb; }  /* fallback */

/* main.hub : on élargit la colonne data (l'éditorial sous le hero garde 768px
   via editorial.css `main.editorial > *`). Le hero a sa propre largeur. */
.data-surface main.editorial.hub {
  max-width: calc(1200px + 2 * 24px);
  padding: 0 24px 96px;
}
/* Le hero (et toutes les sections hub-*) débordent la colonne 768px de l'éditorial. */
.data-surface main.editorial.hub > .hub-crumbbar,
.data-surface main.editorial.hub > .hub-hero,
.data-surface main.editorial.hub > .hub-insights,
.data-surface main.editorial.hub > .hub-searchblock,
.data-surface main.editorial.hub > .hub-obs,
.data-surface main.editorial.hub > .hub-guide,
.data-surface main.editorial.hub > .hub-subpages,
.data-surface main.editorial.hub > .hub-cta-final {
  max-width: 1200px;
}

/* ──────────────────────────────────────────────────────────────────────────
   HERO 2-COLONNES — grid [minmax(0,540px) 1fr], gap-16, pt-7 pb-14
   ────────────────────────────────────────────────────────────────────────── */
.data-surface .hub .hub-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;                  /* gap-16 */
  align-items: start;
  margin: 0 0 3.5rem;
  padding-top: 1.75rem;       /* pt-7 */
}
@media (min-width: 1024px) {
  .data-surface .hub .hub-hero { grid-template-columns: minmax(0, 540px) 1fr; }
}
.data-surface .hub .hub-hero-left,
.data-surface .hub .hub-hero-right { min-width: 0; }

/* ── Eyebrow pill (glassmorphism sombre) ────────────────────────────────── */
.data-surface .hub .hub-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-radius: 9999px;
  padding: 5px 12px;          /* px-3 py-[5px] */
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--hub);
  background: rgba(15, 19, 32, 0.76);
  border: 1px solid rgba(42, 52, 71, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
              0 18px 54px -42px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
}
.data-surface .hub .hub-eyebrow svg { width: 14px; height: 14px; }

/* ── H1 + accent ────────────────────────────────────────────────────────── */
.data-surface .hub .hub-hero-left h1 {
  margin: 1rem 0;
  font-size: 3rem; line-height: 1.05;     /* text-5xl, leading-[1.05] */
  font-weight: 800; letter-spacing: -0.02em;
  color: #e6e9f2;
  text-wrap: balance;
}
@media (min-width: 1024px) {
  .data-surface .hub .hub-hero-left h1 { font-size: 3.375rem; }  /* text-[54px] */
}
.data-surface .hub .hub-h1-accent { color: var(--hub); font-weight: 800; }

/* ── Sous-titre ─────────────────────────────────────────────────────────── */
.data-surface .hub .hub-subtitle {
  margin: 0 0 1.75rem; max-width: 500px;
  font-size: 1rem; line-height: 1.5;
  color: #c4ccda;
}

/* ── Recherche décorative (lien stylé en form) ──────────────────────────── */
.data-surface .hub .hub-search {
  display: flex; width: 100%; align-items: center; gap: 0.375rem;
  border-radius: 0.75rem;     /* rounded-xl */
  border: 1px solid rgba(42, 52, 71, 0.82);
  background: rgba(15, 19, 32, 0.84);
  padding: 0.375rem;          /* p-1.5 */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 1px 2px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}
.data-surface .hub .hub-search:hover { text-decoration: none; border-color: rgba(96, 165, 250, 0.34); }
.data-surface .hub .hub-search-icon {
  margin-left: 0.75rem; display: inline-flex; flex-shrink: 0; color: #7f8aa1;
}
.data-surface .hub .hub-search-icon svg { width: 1rem; height: 1rem; }
.data-surface .hub .hub-search-input {
  min-width: 0; flex: 1; background: transparent; border: 0;
  padding: 0 0.25rem; font-size: 0.875rem; font-weight: 500;
  color: #e6e9f2; outline: none; cursor: pointer;
  font-family: inherit;
}
.data-surface .hub .hub-search-input::placeholder { color: #7f8aa1; }
.data-surface .hub .hub-search-submit {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.5rem; flex-shrink: 0; border-radius: 0.5rem;
  padding: 0 1rem;
  background: var(--hub-strong); color: #fff;
  transition: background 0.15s ease;
}
.data-surface .hub .hub-search:hover .hub-search-submit { filter: brightness(1.08); }
.data-surface .hub .hub-search-submit svg { width: 1rem; height: 1rem; }

/* ── Pastilles de suggestion ────────────────────────────────────────────── */
.data-surface .hub .hub-suggestions {
  margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.data-surface .hub .hub-suggestions-label { font-size: 0.75rem; color: #9aa4b8; }
.data-surface .hub .hub-suggestion {
  border-radius: 9999px; padding: 0.25rem 0.625rem;
  font-size: 0.75rem; font-weight: 500; color: #c4ccda;
  background: rgba(15, 19, 32, 0.76);
  border: 1px solid rgba(42, 52, 71, 0.82);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.data-surface .hub .hub-suggestion:hover {
  text-decoration: none; color: #e6e9f2; border-color: rgba(96, 165, 250, 0.34);
}

/* ── CTAs hero (réutilise .hub-ctas — défini ici) ───────────────────────── */
.data-surface .hub .hub-ctas {
  margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem;
}
@media (min-width: 640px) {
  .data-surface .hub .hub-ctas { flex-direction: row; }
}
.data-surface .hub .hub-cta-primary,
.data-surface .hub .hub-cta-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%;
  border-radius: 10px; padding: 0.75rem 1.25rem;
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
@media (min-width: 640px) {
  .data-surface .hub .hub-cta-primary,
  .data-surface .hub .hub-cta-secondary { width: auto; }
}
.data-surface .hub .hub-cta-primary {
  background: var(--hub-strong); color: #fff;
}
.data-surface .hub .hub-cta-primary:hover { filter: brightness(1.1); text-decoration: none; }
.data-surface .hub .hub-cta-primary svg { width: 1rem; height: 1rem; }
.data-surface .hub .hub-cta-secondary {
  background: rgba(15, 19, 32, 0.74);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: var(--hub);
}
.data-surface .hub .hub-cta-secondary:hover {
  background: rgba(17, 24, 39, 0.6); border-color: rgba(96, 165, 250, 0.5); text-decoration: none;
}

/* ── Mini-KPI (3) ───────────────────────────────────────────────────────── */
.data-surface .hub .hub-mini-kpis {
  margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 0.625rem;
}
@media (min-width: 430px) {
  .data-surface .hub .hub-mini-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .data-surface .hub .hub-mini-kpis { grid-template-columns: repeat(3, 1fr); }
}
.data-surface .hub .hub-mini-kpi {
  display: flex; align-items: flex-start; gap: 0.625rem;
  border-radius: 0.75rem; padding: 0.625rem;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(42, 52, 71, 0.6);
}
.data-surface .hub .hub-mini-kpi-icon {
  display: flex; align-items: center; justify-content: center;
  height: 2rem; width: 2rem; flex-shrink: 0;
  border-radius: 0.5rem;
  background: rgba(42, 52, 71, 0.5); color: #c4ccda;
}
.data-surface .hub .hub-mini-kpi-icon svg { width: 1rem; height: 1rem; }
.data-surface .hub .hub-mini-kpi-text { min-width: 0; font-size: 11px; line-height: 1.2; }
@media (min-width: 640px) {
  .data-surface .hub .hub-mini-kpi-text { font-size: 0.75rem; }
}
.data-surface .hub .hub-mini-kpi-title { font-weight: 600; color: #e6e9f2; }
.data-surface .hub .hub-mini-kpi-desc { color: #9aa4b8; }

/* ──────────────────────────────────────────────────────────────────────────
   CARTE DATA (droite)
   ────────────────────────────────────────────────────────────────────────── */
.data-surface .hub .hub-update-badge {
  margin-bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.25rem 0.625rem;
  font-size: 0.75rem; color: #9aa4b8;
  background: rgba(15, 19, 32, 0.76);
  border: 1px solid rgba(42, 52, 71, 0.82);
}
.data-surface .hub .hub-live-dot {
  height: 0.5rem; width: 0.5rem; border-radius: 9999px;
  background: var(--hub-strong);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}
.data-surface .hub.hub-accent-sky .hub-live-dot { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2); }
.data-surface .hub.hub-accent-orange .hub-live-dot { box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.2); }

.data-surface .hub .hub-vr-stage { position: relative; isolation: isolate; }
.data-surface .hub .hub-vr-card {
  position: relative;
  border-radius: 14px; padding: 1.25rem;     /* rounded-[14px], p-5 */
  background: linear-gradient(145deg, rgba(15, 19, 32, 0.86), rgba(10, 13, 20, 0.72));
  border: 1px solid rgba(42, 52, 71, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07),
              0 28px 76px -48px rgba(37, 99, 235, 0.55);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}
.data-surface .hub.hub-accent-sky .hub-vr-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 28px 76px -48px rgba(14, 165, 233, 0.5); }
.data-surface .hub.hub-accent-orange .hub-vr-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 28px 76px -48px rgba(234, 88, 12, 0.5); }

/* Card header (titre + badge) */
.data-surface .hub .hub-card-header {
  margin-bottom: 0.25rem; display: flex; flex-wrap: wrap;
  align-items: flex-start; justify-content: space-between; gap: 0.5rem;
}
.data-surface .hub .hub-card-title-group { flex: 1; min-width: 0; }
.data-surface .hub .hub-card-eyebrow {
  font-size: 11px; font-weight: 700; color: var(--hub);
}
.data-surface .hub .hub-card-subtext {
  margin-top: 0.125rem; font-size: 11px; font-weight: 500; color: #9aa4b8;
}
.data-surface .hub .hub-card-badge {
  flex-shrink: 0; border-radius: 9999px; padding: 0.25rem 0.625rem;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: #9aa4b8;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(42, 52, 71, 0.82);
}

/* Gros chiffre + label */
.data-surface .hub .hub-big-metric {
  font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.25;
  color: #e6e9f2;
}
.data-surface .hub .hub-metric-label {
  font-size: 0.75rem; font-weight: 600; color: #9aa4b8;
}
.data-surface .hub .hub-metric-secondary {
  margin-top: 0.5rem; font-size: 11px; font-weight: 600; color: var(--hub);
}

/* Bar-chart grid (support | barres) */
.data-surface .hub .hub-chart-grid {
  margin-top: 0.75rem; display: grid; gap: 1rem; grid-template-columns: auto 1fr;
}
@media (min-width: 640px) {
  .data-surface .hub .hub-chart-grid { grid-template-columns: 150px 1fr; }
}
.data-surface .hub .hub-chart-support-value {
  font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; color: #e6e9f2;
}
.data-surface .hub .hub-bars { display: flex; flex-direction: column; gap: 0.625rem; }
.data-surface .hub .hub-bar-row {
  display: grid; grid-template-columns: 80px 1fr 32px;
  align-items: center; gap: 0.75rem; font-size: 0.75rem;
}
.data-surface .hub .hub-bar-label { font-weight: 600; color: #c4ccda; }
.data-surface .hub .hub-bar-track {
  height: 0.5rem; border-radius: 9999px; overflow: hidden;
  background: rgba(42, 52, 71, 0.5);
}
.data-surface .hub .hub-bar-fill { height: 100%; border-radius: 9999px; background: var(--hub-strong); }
.data-surface .hub .hub-bar-count { text-align: right; font-size: 11px; font-weight: 700; color: #7f8aa1; }

/* Flux (derniers dossiers) */
.data-surface .hub .hub-feed {
  margin-top: 1rem; border-top: 1px solid rgba(42, 52, 71, 0.66); padding-top: 0.75rem;
}
.data-surface .hub .hub-feed-header {
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem;
  font-size: 11px; font-weight: 700; color: #9aa4b8;
}
.data-surface .hub .hub-feed-dot {
  height: 0.5rem; width: 0.5rem; border-radius: 9999px; background: var(--hub-strong);
}
.data-surface .hub .hub-feed-list { display: grid; gap: 0.5rem; }
.data-surface .hub .hub-feed-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 0.75rem;
  border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.75rem;
  background: rgba(17, 24, 39, 0.55);
  text-decoration: none; transition: background 0.15s ease;
}
.data-surface .hub .hub-feed-item:hover { background: rgba(37, 99, 235, 0.14); text-decoration: none; }
.data-surface .hub .hub-feed-badge {
  border-radius: 9999px; padding: 0.25rem 0.5rem; text-align: center;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  color: var(--hub);
  background: rgba(15, 19, 32, 0.84);
  align-self: center;
}
.data-surface .hub .hub-feed-title {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-weight: 600; color: #c4ccda; align-self: center;
}

/* ──────────────────────────────────────────────────────────────────────────
   TEASER OBSERVATOIRE
   ────────────────────────────────────────────────────────────────────────── */
.data-surface .hub .hub-obs {
  margin: 0 0 3rem; padding: 1.75rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 19, 32, 0.86), rgba(10, 13, 20, 0.72));
  border: 1px solid rgba(42, 52, 71, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.data-surface .hub .hub-obs h2 { margin: 0.85rem 0 0.5rem; font-size: 1.5rem; color: #e6e9f2; }
.data-surface .hub .hub-obs p { margin: 0 0 1rem; max-width: 720px; color: #c4ccda; line-height: 1.6; }
.data-surface .hub .hub-obs-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--hub);
}
.data-surface .hub .hub-obs-cta:hover { color: #93c5fd; text-decoration: none; }
.data-surface .hub .hub-obs-cta svg { width: 1rem; height: 1rem; }

/* ──────────────────────────────────────────────────────────────────────────
   GRILLE SOUS-PAGES (SubPillars) — cards sombres
   ────────────────────────────────────────────────────────────────────────── */
.data-surface .hub .hub-subpages { margin: 3rem 0; }
.data-surface .hub .hub-subpages > .hub-eyebrow { margin-bottom: 0.5rem; }
.data-surface .hub .hub-subpages h2 { margin: 0.5rem 0 1.5rem; font-size: 1.875rem; color: #e6e9f2; }
.data-surface .hub .hub-cards {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .data-surface .hub .hub-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .data-surface .hub .hub-cards { grid-template-columns: repeat(3, 1fr); } }
.data-surface .hub .hub-card {
  display: flex; gap: 1rem; align-items: flex-start;
  border-radius: 0.75rem; padding: 1.25rem;
  background: linear-gradient(145deg, rgba(15, 19, 32, 0.86), rgba(10, 13, 20, 0.72));
  border: 1px solid rgba(42, 52, 71, 0.82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.data-surface .hub .hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.34);
  box-shadow: 0 28px 76px -48px rgba(37, 99, 235, 0.55);
  text-decoration: none;
}
.data-surface .hub .hub-card-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  height: 2.5rem; width: 2.5rem; border-radius: 0.5rem;
  background: rgba(37, 99, 235, 0.12); color: var(--hub);
}
.data-surface .hub .hub-card-icon svg { width: 1.25rem; height: 1.25rem; }
.data-surface .hub .hub-card-body { flex: 1; min-width: 0; }
.data-surface .hub .hub-card-title {
  display: block; font-size: 1.0625rem; font-weight: 700; color: #e6e9f2;
}
.data-surface .hub .hub-card-desc {
  display: block; margin-top: 0.35rem; font-size: 0.875rem; line-height: 1.5; color: #c4ccda;
}
.data-surface .hub .hub-card-arrow { flex-shrink: 0; color: #7f8aa1; transition: color 0.2s ease, transform 0.2s ease; }
.data-surface .hub .hub-card:hover .hub-card-arrow { color: var(--hub); transform: translateX(2px); }
.data-surface .hub .hub-card-arrow svg { width: 1rem; height: 1rem; }

/* ──────────────────────────────────────────────────────────────────────────
   CTA FINAL — bandeau gradient (slate-950 → blue) + 2 boutons
   ────────────────────────────────────────────────────────────────────────── */
.data-surface .hub .hub-cta-final {
  position: relative; overflow: hidden;
  margin: 3.5rem 0 0; padding: 2.5rem 2rem;
  border-radius: 16px; color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.4), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.3), transparent 50%),
    linear-gradient(135deg, #0b1120 0%, #1e3a8a 45%, #2563eb 100%);
  display: grid; gap: 1.75rem;
}
@media (min-width: 768px) { .data-surface .hub .hub-cta-final { padding: 2.5rem 2.75rem; } }
@media (min-width: 1024px) {
  .data-surface .hub .hub-cta-final { grid-template-columns: 1fr auto; align-items: center; }
}
.data-surface .hub .hub-cta-final h2 {
  margin: 0; max-width: 42rem;
  font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em;
  color: #fff;
}
.data-surface .hub .hub-cta-final p {
  margin: 0.75rem 0 0; max-width: 36rem;
  font-size: 0.875rem; line-height: 1.5; color: #dbeafe;
}
/* CTAs du CTA final : pas de var--hub, blanc lumineux / contour blanc. */
.data-surface .hub .hub-cta-final .hub-ctas { margin-top: 0; }
.data-surface .hub .hub-cta-final .hub-cta-primary {
  background: #fff; color: #1d4ed8;
}
.data-surface .hub .hub-cta-final .hub-cta-primary:hover { background: #eff6ff; filter: none; }
.data-surface .hub .hub-cta-final .hub-cta-secondary {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff;
}
.data-surface .hub .hub-cta-final .hub-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5);
}

/* ── Responsive : mono-colonne sous 1024px (déjà géré par les grids) ─────── */
@media (max-width: 1023px) {
  .data-surface .hub .hub-hero { gap: 2.5rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   BARRE FIL D'ARIANE (parité HubBreadcrumb data-surface) — breadcrumb GAUCHE +
   jump-links DROITE, UNE rangée, NON sticky (relative, défile avec le contenu).
   ══════════════════════════════════════════════════════════════════════════ */
.data-surface .hub .hub-crumbbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.25rem;
  padding: 1rem 0 0.75rem;            /* pt-4 pb-3 (parité) */
}
/* Fil d'Ariane (n'est plus enfant direct de main → styles dédiés). */
.data-surface .hub .hub-crumb {
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 0.8125rem;               /* text-[13px] */
  color: #475569;
}
.data-surface .hub .hub-crumb a { color: #94a3b8; transition: color 0.15s ease; }  /* slate-400 */
.data-surface .hub .hub-crumb a:hover { color: var(--hub); text-decoration: none; }
.data-surface .hub .hub-crumb span { color: #e2e8f0; font-weight: 600; }  /* page courante */

/* Jump-links (onglets ancres) : cachés < md (parité hidden md:flex). */
.data-surface .hub .hub-tabnav { display: none; }
@media (min-width: 768px) {
  .data-surface .hub .hub-tabnav {
    display: flex; flex-wrap: nowrap; align-items: center;
    gap: 1.25rem;                      /* gap-5 */
    flex-shrink: 0;
  }
}
.data-surface .hub .hub-tab {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  height: 2.25rem;                     /* h-9 */
  font-size: 0.75rem; font-weight: 500;  /* text-xs */
  white-space: nowrap;
  color: #94a3b8;                      /* slate-400 */
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.data-surface .hub .hub-tab:hover { color: #e2e8f0; text-decoration: none; }  /* slate-200 */
/* Onglet actif (scroll-spy via app.js §8). */
.data-surface .hub .hub-tab.is-active {
  color: var(--hub);
  border-bottom-color: var(--hub);
  font-weight: 600;
}
/* Fallback no-JS : 1er onglet surligné tant que le scroll-spy n'a pas pris la main. */
.data-surface .hub .hub-tabnav:not(.js-spy) .hub-tab:first-child {
  color: var(--hub);
  border-bottom-color: var(--hub);
  font-weight: 600;
}

/* Ancres de section : décalage pour ne pas passer sous le header sticky
   (parité prod scroll-mt-24 = 96px). La tabnav n'étant plus sticky, 96px
   dégage confortablement le seul header (56px). */
.data-surface .hub [id] { scroll-margin-top: 96px; }

/* ══════════════════════════════════════════════════════════════════════════
   CARTES SECONDAIRES (col droite) — « Pièces dans le flux live » / « Recherche active »
   ══════════════════════════════════════════════════════════════════════════ */
.data-surface .hub .hub-sec-cards {
  margin-top: 1.25rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.data-surface .hub .hub-sec-card {
  border-radius: 14px; padding: 1rem;
  background: rgba(15, 19, 32, 0.84);
  border: 1px solid rgba(42, 52, 71, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.data-surface .hub .hub-sec-label {
  font-size: 0.75rem; font-weight: 500; color: #9aa4b8;
}
.data-surface .hub .hub-sec-value {
  margin-top: 0.25rem;
  font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  color: #e6e9f2;
}
.data-surface .hub .hub-sec-sub {
  margin-top: 0.25rem;
  font-size: 11px; font-weight: 600; color: var(--hub);
}

/* ══════════════════════════════════════════════════════════════════════════
   CARTE LARGE (col droite, pleine largeur) — « Documents visibles dans la liasse »
   ══════════════════════════════════════════════════════════════════════════ */
.data-surface .hub .hub-wide-card {
  margin-top: 1.25rem;
  border-radius: 14px; padding: 1rem;
  background: rgba(15, 19, 32, 0.84);
  border: 1px solid rgba(42, 52, 71, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.data-surface .hub .hub-wide-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500; color: #9aa4b8;
}
.data-surface .hub .hub-wide-label svg { width: 1rem; height: 1rem; color: #7f8aa1; flex-shrink: 0; }
.data-surface .hub .hub-wide-items {
  margin-top: 0.625rem;
  display: grid; grid-template-columns: 1fr; gap: 0.5rem;
}
@media (min-width: 640px) {
  .data-surface .hub .hub-wide-items { grid-template-columns: repeat(2, 1fr); }
}
.data-surface .hub .hub-wide-item {
  display: block;
  border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.75rem;
  background: rgba(17, 24, 39, 0.55);
  text-decoration: none; transition: background 0.15s ease;
}
.data-surface .hub .hub-wide-item:hover { background: rgba(37, 99, 235, 0.14); text-decoration: none; }
.data-surface .hub.hub-accent-sky .hub-wide-item:hover { background: rgba(14, 165, 233, 0.14); }
.data-surface .hub.hub-accent-orange .hub-wide-item:hover { background: rgba(234, 88, 12, 0.14); }
.data-surface .hub .hub-wide-badge {
  display: block; margin-bottom: 0.25rem;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--hub);
}
.data-surface .hub .hub-wide-title {
  display: block;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-weight: 500; color: #c4ccda;
}

/* ══════════════════════════════════════════════════════════════════════════
   GUIDE ÉDITORIAL 2-COLONNES (id=guide) — SOMMAIRE sticky (gauche) + prose (droite)
   ══════════════════════════════════════════════════════════════════════════ */
.data-surface .hub .hub-guide {
  margin: 3rem 0;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 1024px) {
  .data-surface .hub .hub-guide { grid-template-columns: minmax(0, 240px) 1fr; gap: 3rem; }
}

/* Sommaire (TOC) sticky */
.data-surface .hub .hub-toc { min-width: 0; }
@media (min-width: 1024px) {
  .data-surface .hub .hub-toc {
    position: sticky; top: calc(var(--header-h, 56px) + 3rem);
    align-self: start;
  }
}
.data-surface .hub .hub-toc-title {
  margin-bottom: 0.75rem;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: #7f8aa1;
}
.data-surface .hub .hub-toc-item {
  display: flex; align-items: baseline; gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.875rem; font-weight: 500;
  color: #9aa4b8; text-decoration: none;
  border-left: 2px solid transparent; padding-left: 0.625rem; margin-left: -0.625rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.data-surface .hub .hub-toc-item:hover { color: var(--hub); text-decoration: none; }
.data-surface .hub .hub-toc-item:first-of-type {
  color: var(--hub); border-left-color: var(--hub);
}
.data-surface .hub .hub-toc-num {
  flex-shrink: 0;
  font-size: 0.75rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--hub);
}
.data-surface .hub .hub-toc-item:not(:first-of-type) .hub-toc-num { color: #7f8aa1; }
.data-surface .hub .hub-toc-label { min-width: 0; }

/* Carte « gagner du temps » sous le TOC */
.data-surface .hub .hub-toc-cta {
  margin-top: 1.5rem;
  border-radius: 14px; padding: 1.25rem;
  background: linear-gradient(145deg, rgba(15, 19, 32, 0.86), rgba(10, 13, 20, 0.72));
  border: 1px solid rgba(42, 52, 71, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.data-surface .hub .hub-toc-cta > p:first-child {
  margin: 0 0 0.375rem;
  font-size: 1rem; font-weight: 700; color: #e6e9f2;
}
.data-surface .hub .hub-toc-cta-sub {
  margin: 0 0 1rem;
  font-size: 0.8125rem; line-height: 1.5; color: #c4ccda;
}
.data-surface .hub .hub-toc-cta .hub-cta-primary {
  width: 100%; margin-top: 0;
}

/* Corps du guide — prose. Les sections du guide sont imbriquées (≠ enfant direct
   de main.editorial), donc les overrides `main.editorial > section > h2/p` ne
   matchent plus : on redéfinit ici la prose sombre. */
.data-surface .hub .hub-guide-body { min-width: 0; max-width: 780px; }
.data-surface .hub .hub-guide-body .editorial-intro {
  margin: 0 0 3rem; max-width: none;
  font-size: 1.125rem; line-height: 1.7; color: #c4ccda;
}
.data-surface .hub .hub-guide-body > section { margin: 0 0 2.5rem; }
.data-surface .hub .hub-guide-body > section > h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em;
  color: #e6e9f2;
}
.data-surface .hub .hub-guide-body > section > p {
  margin: 0 0 1rem;
  font-size: 1rem; line-height: 1.75; color: #c4ccda;
}
.data-surface .hub .hub-guide-body > section > p:last-child { margin-bottom: 0; }
.data-surface .hub .hub-guide-body > section.editorial-faq { margin: 3rem 0 0; }
.data-surface .hub .hub-guide-body > section.editorial-faq > h2 {
  margin: 0 0 0.5rem;
  font-size: 1.875rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em;
  color: #e6e9f2;
}
.data-surface .hub .hub-guide-body details > summary { color: #e6e9f2; }
.data-surface .hub .hub-guide-body details > summary:hover { color: var(--hub); }
.data-surface .hub .hub-guide-body details > p { color: #c4ccda; }

/* Responsive : sous 1024px, le TOC passe au-dessus (mono-colonne), non-sticky. */
@media (max-width: 1023px) {
  .data-surface .hub .hub-guide { gap: 2rem; }
  .data-surface .hub .hub-toc-cta { margin-top: 1.25rem; }
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION « MÉTÉO » (insights) — entête + grille de cartes résumé statiques
   ────────────────────────────────────────────────────────────────────────── */
.data-surface .hub .hub-insights { margin: 0 0 3rem; }
.data-surface .hub .hub-insights-head { margin-bottom: 1.5rem; }
.data-surface .hub .hub-insights-head > .hub-eyebrow { margin-bottom: 0.65rem; }
.data-surface .hub .hub-insights-head h2 {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.875rem; line-height: 1.15;
  font-weight: 800; letter-spacing: -0.01em;
  color: #e6e9f2;
}
.data-surface .hub .hub-insights-head p {
  margin: 0 0 1rem; max-width: 650px;
  color: #c4ccda; line-height: 1.6; font-size: 0.9375rem;
}
.data-surface .hub .hub-insights-head .hub-obs-cta { margin-top: 0; }

.data-surface .hub .hub-insights-cards {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .data-surface .hub .hub-insights-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .data-surface .hub .hub-insights-cards { grid-template-columns: repeat(4, 1fr); } }

.data-surface .hub .hub-insight-card {
  border-radius: 14px; padding: 1rem 1.1rem;
  background: rgba(15, 19, 32, 0.84);
  border: 1px solid rgba(42, 52, 71, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 1px 2px rgba(0, 0, 0, 0.3);
}
.data-surface .hub .hub-insight-label {
  font-size: 0.75rem; font-weight: 600;
  color: #9aa4b8; letter-spacing: 0.01em;
}
.data-surface .hub .hub-insight-value {
  margin-top: 0.35rem;
  font-size: 1.5rem; line-height: 1.1; font-weight: 800;
  color: #e6e9f2; letter-spacing: -0.01em;
}
.data-surface .hub .hub-insight-hint {
  margin-top: 0.3rem;
  font-size: 0.6875rem; font-weight: 600;
  color: var(--hub); line-height: 1.4;
}

/* ──────────────────────────────────────────────────────────────────────────
   BLOC RECHERCHE À FILTRES — carte large sombre (entête + chips + CTA)
   ────────────────────────────────────────────────────────────────────────── */
.data-surface .hub .hub-searchblock {
  margin: 0 0 3rem; padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 19, 32, 0.88), rgba(10, 13, 20, 0.74));
  border: 1px solid rgba(42, 52, 71, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
              0 28px 90px -60px rgba(0, 0, 0, 0.9);
}
@media (min-width: 640px) { .data-surface .hub .hub-searchblock { padding: 2rem; } }
.data-surface .hub .hub-searchblock > .hub-eyebrow { margin-bottom: 0.85rem; }
.data-surface .hub .hub-searchblock h2 {
  margin: 0.5rem 0 0.6rem;
  font-size: 1.75rem; line-height: 1.15;
  font-weight: 800; letter-spacing: -0.01em;
  color: #e6e9f2; max-width: 760px;
}
@media (min-width: 768px) { .data-surface .hub .hub-searchblock h2 { font-size: 2.125rem; } }
.data-surface .hub .hub-searchblock p {
  margin: 0 0 1.25rem; max-width: 720px;
  color: #c4ccda; line-height: 1.65; font-size: 0.9375rem;
}
.data-surface .hub .hub-search-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.data-surface .hub .hub-chip {
  display: inline-flex; align-items: center;
  border-radius: 9999px; padding: 0.375rem 0.75rem;
  font-size: 0.75rem; font-weight: 500;
  color: #c4ccda;
  background: rgba(15, 19, 32, 0.76);
  border: 1px solid rgba(42, 52, 71, 0.82);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.data-surface .hub .hub-chip:hover {
  border-color: var(--hub); color: #e6e9f2;
  background: rgba(15, 19, 32, 0.92);
  text-decoration: none;
}

/* Responsive : mono-colonne sous 1024px (déjà couvert par les grilles ci-dessus). */
@media (max-width: 1023px) {
  .data-surface .hub .hub-insights,
  .data-surface .hub .hub-searchblock { margin-bottom: 2.5rem; }
}
/* ==========================================================================
   ANNUAIRE-LISTING — layout SOMBRE (parité prod prescriptio.fr,
   body.prescriptio-data-page) pour les 3 pages :
     /annuaire/acheteur-public, /annuaire/dirigeant, /annuaire/metiers.

   Forme prod : breadcrumb → header → onglets pills (actif bleu plein) →
   formulaire de filtres → liste de cartes (icône + nom + type/lieu + SIRET +
   métrique + bouton Suivre + flèche).

   Tout est SCOPÉ sous `.data-surface .listing` (le fond #0a0d14 + grille + glow
   viennent de .data-surface dans base.css). Le wrapper `.data-surface` est posé
   par le LEAD ; ce fichier ne style QUE l'intérieur.

   Le thème prod est CLAIR (Tailwind slate) → ici on rend le SOMBRE :
     bg-white            → rgba(15,19,32,.84)        (cartes)
     bg-slate-50         → rgba(17,24,39,.55)         (champs)
     bordures slate-200  → rgba(42,52,71,.82)
     titres              → #e6e9f2 ; corps #c4ccda ; muted #9aa4b8 / #7f8aa1
     accent bleu         → #2563eb (plein) / #60a5fa (texte)
   ========================================================================== */

.data-surface main.listing {
  max-width: calc(1200px + 2 * 24px);
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ── Breadcrumb (parité .data-surface main nav[aria-label=breadcrumb]) ─────── */
.data-surface main.listing > nav[aria-label="breadcrumb"] {
  padding-top: 1.5rem;
  font-size: 12px;
  color: #7f8aa1;
}
.data-surface main.listing > nav[aria-label="breadcrumb"] a {
  color: #9aa4b8;
  text-decoration: none;
}
.data-surface main.listing > nav[aria-label="breadcrumb"] a:hover {
  color: #60a5fa;
}
.data-surface main.listing > nav[aria-label="breadcrumb"] span {
  color: #e6e9f2;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.data-surface .listing-header {
  margin: 1.75rem 0 1.75rem;
}
.data-surface .listing-header h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e6e9f2;
  text-wrap: balance;
}
.data-surface .listing-header .listing-sub {
  margin: 0.85rem 0 0;
  max-width: 56rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #c4ccda;
}

/* ── Onglets de filtre (pills) ──────────────────────────────────────────────── */
.data-surface .listing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.data-surface .listing-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: #c4ccda;
  background: rgba(15, 19, 32, 0.76);
  border: 1px solid rgba(42, 52, 71, 0.82);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.data-surface .listing-tab:hover {
  border-color: rgba(96, 165, 250, 0.5);
  color: #e6e9f2;
}
.data-surface .listing-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.data-surface .listing-tab-count {
  font-size: 0.75rem;
  color: #7f8aa1;
}
.data-surface .listing-tab.active .listing-tab-count {
  color: rgba(255, 255, 255, 0.78);
}

/* ── Formulaire de filtres (carte sombre) ───────────────────────────────────── */
.data-surface .listing-filters {
  margin: 0 0 1.75rem;
  padding: 1rem;
  border-radius: 0.875rem;
  background: rgba(15, 19, 32, 0.84);
  border: 1px solid rgba(42, 52, 71, 0.82);
}
.data-surface .listing-filters-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .data-surface .listing-filters-row { grid-template-columns: repeat(3, 1fr); }
  .data-surface .listing-field-search { grid-column: span 2; }
}

/* champ générique (input / select) */
.data-surface .listing-field {
  position: relative;
  display: flex;
  align-items: center;
}
.data-surface .listing-field-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: #7f8aa1;
  pointer-events: none;
}
.data-surface .listing-field-icon svg { width: 16px; height: 16px; }

.data-surface .listing-field input[type="text"],
.data-surface .listing-field select {
  height: 2.5rem;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(42, 52, 71, 0.82);
  background: rgba(17, 24, 39, 0.55);
  color: #c4ccda;
  font-size: 0.875rem;
  padding: 0 0.85rem;
}
.data-surface .listing-field-search input[type="text"] { padding-left: 2.25rem; }
.data-surface .listing-field input::placeholder { color: #7f8aa1; }
.data-surface .listing-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  cursor: default;
  background-image:
    linear-gradient(45deg, transparent 50%, #7f8aa1 50%),
    linear-gradient(135deg, #7f8aa1 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* checkbox + actions sur une ligne sous les filtres */
.data-surface .listing-field-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #c4ccda;
}
.data-surface .listing-field-checkbox input { accent-color: #2563eb; }

.data-surface .listing-filters-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}
.data-surface .listing-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.5rem;
  padding: 0 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.data-surface .listing-search-btn:hover { background: #1d4ed8; }
.data-surface .listing-search-btn svg { width: 16px; height: 16px; }

/* ── Total + liste de résultats ─────────────────────────────────────────────── */
.data-surface .listing-total {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: #9aa4b8;
}
.data-surface .listing-results {
  display: grid;
  gap: 0.75rem;
}

/* ── Carte de résultat ──────────────────────────────────────────────────────── */
.data-surface .listing-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 0.875rem;
  background: rgba(15, 19, 32, 0.84);
  border: 1px solid rgba(42, 52, 71, 0.82);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.data-surface .listing-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(17, 24, 39, 0.92);
}
.data-surface .listing-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(37, 99, 235, 0.16);
  color: #60a5fa;
}
.data-surface .listing-card-icon svg { width: 20px; height: 20px; }

.data-surface .listing-card-body {
  flex: 1;
  min-width: 0;
}
.data-surface .listing-card-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e6e9f2;
}
.data-surface .listing-card:hover .listing-card-name { color: #60a5fa; }

.data-surface .listing-card-meta {
  margin-top: 0.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #9aa4b8;
}
.data-surface .listing-card-dot { color: #4b5568; }

.data-surface .listing-card-siret {
  margin-top: 0.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: #7f8aa1;
}

.data-surface .listing-card-tags {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.data-surface .listing-card-metric {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.14);
}
.data-surface .listing-card-last {
  font-size: 0.72rem;
  color: #7f8aa1;
}

.data-surface .listing-card-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.6rem;
}
.data-surface .listing-follow {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(42, 52, 71, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  color: #c4ccda;
}
.data-surface .listing-card:hover .listing-follow {
  border-color: rgba(96, 165, 250, 0.5);
  color: #e6e9f2;
}
.data-surface .listing-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: #4b5568;
  transition: color 0.15s ease, background 0.15s ease;
}
.data-surface .listing-card:hover .listing-card-arrow {
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.14);
}
.data-surface .listing-card-arrow svg { width: 16px; height: 16px; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .data-surface .listing-header h1 { font-size: 2.1rem; }
  .data-surface .listing-card { flex-wrap: wrap; }
  .data-surface .listing-card-actions { width: 100%; justify-content: flex-end; }
}
/* ==========================================================================
   OBSERVATOIRES NATIONAUX (dashboards sombres)
   Pages : /observatoire/{marches-publics, transactions-immobilieres,
           permis-de-construire, dpe}
   THÈME SOMBRE — parité prod `body.prescriptio-data-page`. Le LEAD enveloppe
   le <main class="obs-national"> dans `.data-surface` (base.css : fond #0a0d14
   + grille blueprint + glow). Tout est scopé `.data-surface .obs-national`.

   Palette canonique (globals.css prod) :
     titres   #e6e9f2 · corps #c4ccda · muted #9aa4b8 · faint #7f8aa1
     carte    rgba(15, 19, 32, 0.84)
     surface  rgba(17, 24, 39, 0.58)
     bordure  rgba(42, 52, 71, 0.82) · douce rgba(42, 52, 71, 0.66)
     accent   #60a5fa (liens) · hover #93c5fd
   ========================================================================== */

.data-surface .obs-national {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ── Breadcrumb (parité observatoire.css : muted sombre) ─────────────────── */
.data-surface .obs-national nav[aria-label="breadcrumb"] {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: #9aa4b8;
}
.data-surface .obs-national nav[aria-label="breadcrumb"] a { color: #9aa4b8; }
.data-surface .obs-national nav[aria-label="breadcrumb"] a:hover { color: #60a5fa; }
.data-surface .obs-national nav[aria-label="breadcrumb"] span {
  color: #e6e9f2;
  font-weight: 500;
}

/* ── Header (h1 + sous-titre) ────────────────────────────────────────────── */
.data-surface .obs-national .obs-header { margin: 0 0 2.25rem; max-width: 760px; }
.data-surface .obs-national .obs-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #e6e9f2;
}
.data-surface .obs-national .obs-subtitle {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #c4ccda;
}

/* ── Bande de KPIs nationaux ─────────────────────────────────────────────── */
.data-surface .obs-national .obs-kpis {
  margin: 0 0 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.data-surface .obs-national .obs-kpi {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 1.4rem 1.4rem 1.6rem;
  background: rgba(15, 19, 32, 0.84);
  border: 1px solid rgba(42, 52, 71, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}
.data-surface .obs-national .obs-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: #60a5fa;
}
.data-surface .obs-national .obs-kpi-value {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  color: #e6e9f2;
  font-variant-numeric: tabular-nums;
}
.data-surface .obs-national .obs-kpi-label {
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9aa4b8;
}
.data-surface .obs-national .obs-kpi-hint {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #7f8aa1;
}

/* ── Ventilation par département (tableau) ───────────────────────────────── */
.data-surface .obs-national .obs-table-wrap {
  padding: 1.5rem;
  background: rgba(15, 19, 32, 0.84);
  border: 1px solid rgba(42, 52, 71, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}
.data-surface .obs-national .obs-table-title {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e6e9f2;
  border-bottom: 1px solid rgba(42, 52, 71, 0.66);
}
.data-surface .obs-national .obs-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: rgba(15, 19, 32, 0.58);
}
.data-surface .obs-national .obs-table thead th {
  padding: 0.6rem 0.85rem;
  background: rgba(17, 24, 39, 0.58);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9aa4b8;
  border-bottom: 1px solid rgba(42, 52, 71, 0.82);
  text-align: left;
}
.data-surface .obs-national .obs-table tbody td {
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: #c4ccda;
  border-bottom: 1px solid rgba(42, 52, 71, 0.66);
  vertical-align: middle;
}
.data-surface .obs-national .obs-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-surface .obs-national .obs-table tbody tr:hover {
  background: rgba(17, 24, 39, 0.5);
}

/* Colonnes numériques alignées à droite, tabular-nums */
.data-surface .obs-national .obs-table .obs-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 1re colonne (département) : lien accent, appuyée */
.data-surface .obs-national .obs-table .obs-dept a {
  color: #60a5fa;
  font-weight: 500;
}
.data-surface .obs-national .obs-table .obs-dept a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* « Voir le détail » par ligne — discret, à droite */
.data-surface .obs-national .obs-table .obs-detail {
  text-align: right;
  white-space: nowrap;
}
.data-surface .obs-national .obs-table .obs-detail a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #60a5fa;
}
.data-surface .obs-national .obs-table .obs-detail a:hover { color: #93c5fd; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .data-surface .obs-national .obs-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}
@media (max-width: 480px) {
  .data-surface .obs-national .obs-kpis { grid-template-columns: 1fr; }
}

/* Table dense : scroll horizontal sur mobile (parité overflow-x-auto Next) */
@media (max-width: 640px) {
  .data-surface .obs-national .obs-table-wrap { overflow-x: auto; }
  .data-surface .obs-national .obs-table { min-width: 560px; }
}
/* ==========================================================================
   TARIFS (/tarifs) + COMPARATEURS (/prescriptio-vs-*) — parité PIXEL Next.

   Cibles :
   - apps/prescriptio/src/app/tarifs/page.tsx
     + apps/prescriptio/src/components/tarifs/pricing-cards.tsx
   - apps/prescriptio/src/app/prescriptio-vs-*/page.tsx

   Thème : LIGHT, sections full-bleed (chaque <section> porte son fond + bordure).
   `main.tarifs` / `main.cmp` annulent le conteneur centré de base.css (comme
   `main.home`). Valeurs extraites du Tailwind Next, chaque bloc cite sa source.
   ========================================================================== */

/* ── Full-bleed : ces pages n'utilisent pas le conteneur centré de base.css ── */
main.tarifs,
main.cmp {
  max-width: none;
  margin: 0;
  padding: 0;
}
main.tarifs > section,
main.cmp > section { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   /tarifs — page bg slate-50 [Next l.623 `min-h-screen bg-slate-50`]
   ═══════════════════════════════════════════════════════════════════════ */
.tarifs { background: var(--surface-soft); }

/* ── Hero [Next l.627-638 `px-6 pb-12 pt-24 text-center`] ── */
.tar-hero { padding: 96px 24px 48px; text-align: center; }
.tar-hero-inner { max-width: 42rem; margin: 0 auto; }
.tar-hero h1 {
  margin: 0;
  font-size: 36px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.025em; color: var(--ink);
}
@media (min-width: 640px) { .tar-hero h1 { font-size: 48px; } }
.tar-hero h1 .accent { color: var(--brand); }
.tar-hero-sub { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-dim); }

/* ── Cartes pricing [Next pricing-cards.tsx l.31-172] ── */
.tar-cards-section { padding: 0 24px 56px; }
.tar-cards {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 768px) { .tar-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tar-cards { grid-template-columns: repeat(3, 1fr); } }

/* Carte : `relative flex flex-col rounded-2xl border p-8` */
.tar-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); padding: 32px;
}
/* Gratuit : `border-slate-200 bg-slate-50` */
.tar-card-free { background: var(--surface-soft); }
/* Highlight : `border-blue-400 bg-blue-600 text-white shadow-xl shadow-blue-200` */
.tar-card-best {
  border-color: #60a5fa; background: var(--brand); color: #fff;
  box-shadow: 0 20px 25px -5px rgba(191, 219, 254, 0.6), 0 8px 10px -6px rgba(191, 219, 254, 0.5);
}

/* Badge : `-top-3.5 left-1/2 -translate-x-1/2 bg-amber-500 px-3 py-1 text-xs` */
.tar-card-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  border-radius: 9999px; background: #f59e0b; color: #fff;
  padding: 4px 12px; font-size: 12px; font-weight: 600; white-space: nowrap;
}

.tar-card-name { font-size: 18px; font-weight: 600; color: var(--ink); }
.tar-card-best .tar-card-name { color: #fff; }

/* Prix : `mt-4 flex items-baseline gap-2` */
.tar-card-price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tar-card-amount { font-size: 36px; font-weight: 700; color: var(--ink); line-height: 1; }
.tar-card-best .tar-card-amount { color: #fff; }
.tar-card-unit { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1; }
.tar-card-best .tar-card-unit { color: #fff; }
.tar-card-period { font-size: 14px; color: var(--ink-faint); }
.tar-card-best .tar-card-period { color: #bfdbfe; }

/* Description : `mt-2 text-sm text-slate-500` */
.tar-card-desc { margin: 8px 0 0; font-size: 14px; color: var(--ink-faint); }
.tar-card-best .tar-card-desc { color: #dbeafe; }

/* Features : `mt-6 flex flex-col gap-3` */
.tar-card-features { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tar-feat { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.tar-feat-ic { flex-shrink: 0; margin-top: 2px; color: var(--brand-soft); }
.tar-feat-ic svg { width: 16px; height: 16px; display: block; }
.tar-card-best .tar-feat-ic { color: #86efac; } /* green-300 */
.tar-feat-text { font-size: 14px; color: var(--ink-dim); }
.tar-card-best .tar-feat-text { color: #dbeafe; }

/* CTA : `mt-8 block rounded-lg px-5 py-3 text-center text-sm font-semibold` */
.tar-card-cta {
  margin-top: 32px; display: block; border-radius: 8px; padding: 12px 20px;
  text-align: center; font-size: 14px; font-weight: 600; transition: background 0.15s, color 0.15s;
  background: var(--brand); color: #fff;
}
.tar-card-cta:hover { background: var(--brand-hover); text-decoration: none; }
.tar-card-free .tar-card-cta {
  border: 1px solid #cbd5e1; background: #fff; color: var(--ink-dim);
}
.tar-card-free .tar-card-cta:hover { background: var(--line-soft); color: var(--ink-dim); }
.tar-card-best .tar-card-cta { background: #fff; color: var(--brand-hover); }
.tar-card-best .tar-card-cta:hover { background: #eff6ff; color: var(--brand-hover); }

/* Mentions légales [Next l.645-656 `mt-8 ... text-sm text-slate-500`] */
.tar-legal { max-width: 72rem; margin: 32px auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; color: var(--ink-faint); }
.tar-legal-note { max-width: 36rem; font-size: 12px; color: #94a3b8; }

/* ── Bloc Sur-mesure [Next l.918-945 `border-t ... bg-white`] ── */
.tar-custom-section { border-top: 1px solid var(--line); padding: 64px 24px; }
.tar-custom {
  max-width: 56rem; margin: 0 auto; border-radius: 16px;
  border: 1px solid var(--line); background: #fff; padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 640px) {
  .tar-custom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.tar-custom-main { max-width: 36rem; }
.tar-custom-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; }
.tar-custom-title { margin: 4px 0 0; font-size: 20px; font-weight: 700; color: var(--ink); }
.tar-custom-body { margin: 8px 0 0; font-size: 14px; color: var(--ink-faint); }
.tar-custom-cta {
  display: inline-flex; flex-shrink: 0; justify-content: center;
  border-radius: 8px; border: 1px solid #cbd5e1; background: #fff;
  padding: 12px 24px; font-size: 14px; font-weight: 600; color: var(--ink-dim);
  transition: background 0.15s;
}
.tar-custom-cta:hover { background: var(--line-soft); text-decoration: none; }

/* ── Comparatifs grid [Next l.867-898 `border-t px-6 py-20`] ── */
.tar-cmp-section { border-top: 1px solid var(--line); padding: 80px 24px; }
.tar-cmp-inner { max-width: 64rem; margin: 0 auto; }
.tar-section-h2 { text-align: center; font-size: 24px; font-weight: 700; color: var(--ink); margin: 0; }
.tar-section-sub { max-width: 42rem; margin: 12px auto 0; text-align: center; font-size: 14px; color: var(--ink-faint); }
.tar-cmp-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .tar-cmp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tar-cmp-grid { grid-template-columns: repeat(4, 1fr); } }
.tar-cmp-card {
  display: flex; flex-direction: column;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 20px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tar-cmp-card:hover { transform: translateY(-2px); border-color: var(--brand-300); box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08); text-decoration: none; }
.tar-cmp-card-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.tar-cmp-card-hint { margin-top: 8px; font-size: 12px; color: var(--ink-faint); }
.tar-cmp-card-more { margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--brand); }
.tar-cmp-card-more svg { width: 12px; height: 12px; display: block; transition: transform 0.15s; }
.tar-cmp-card:hover .tar-cmp-card-more svg { transform: translateX(2px); }

/* ── FAQ [Next l.900-916 + FAQItem l.601-617] ── */
.tar-faq-section { border-top: 1px solid var(--line); background: #fff; padding: 80px 24px; }
.tar-faq-inner { max-width: 42rem; margin: 0 auto; }
.tar-faq-h2 { margin: 0 0 40px; text-align: center; font-size: 24px; font-weight: 700; color: var(--ink); }
.tar-faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.tar-faq-summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 500; color: #1e293b; /* slate-800 */
}
.tar-faq-summary::-webkit-details-marker { display: none; }
.tar-faq-chevron { flex-shrink: 0; color: #94a3b8; transition: transform 0.2s; }
.tar-faq-chevron svg { width: 16px; height: 16px; display: block; }
.tar-faq-item[open] .tar-faq-chevron { transform: rotate(90deg); }
.tar-faq-answer { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-dim); }

/* ── CTA final [Next l.947-972 `bg-blue-600 py-20 text-center text-white`] ── */
.tar-cta { background: var(--brand); padding: 80px 24px; text-align: center; color: #fff; }
.tar-cta-inner { max-width: 36rem; margin: 0 auto; }
.tar-cta-h2 { margin: 0; font-size: 30px; font-weight: 700; color: #fff; }
.tar-cta-sub { margin: 12px 0 0; color: #bfdbfe; }
.tar-cta-row { margin-top: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
@media (min-width: 640px) { .tar-cta-row { flex-direction: row; } }
.tar-cta-primary {
  border-radius: 8px; background: #fff; padding: 12px 24px;
  font-size: 14px; font-weight: 600; color: var(--brand-hover); transition: background 0.15s;
}
.tar-cta-primary:hover { background: #eff6ff; text-decoration: none; }
.tar-cta-secondary {
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px; font-size: 14px; font-weight: 600; color: #fff; transition: border-color 0.15s, background 0.15s;
}
.tar-cta-secondary:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════════
   /prescriptio-vs-* — comparateurs [Next prescriptio-vs-*/page.tsx]
   Page bg blanc, contenu centré `max-w-3xl px-6 py-16 md:py-24`.
   Données dispo (Comparateur) : badge, h1, intro, table 3 colonnes, CTA.
   Table = Prescriptio-first (col 2 surlignée bleu), comme le Next.
   ═══════════════════════════════════════════════════════════════════════ */
.cmp { background: #fff; color: var(--ink); }
.cmp-inner { max-width: 48rem; margin: 0 auto; padding: 64px 24px; }
@media (min-width: 768px) { .cmp-inner { padding: 96px 24px; } }

/* Breadcrumb [Breadcrumb component] */
.cmp-breadcrumb { margin-bottom: 32px; font-size: 13px; color: var(--ink-faint); }
.cmp-breadcrumb a { color: var(--ink-faint); }
.cmp-breadcrumb a:hover { color: var(--brand); }
.cmp-breadcrumb-sep { margin: 0 6px; color: #cbd5e1; }
.cmp-breadcrumb-current { color: var(--ink-dim); }

/* Badge [Next l.76-80 `rounded-full border border-blue-200 bg-blue-50 px-4 py-1.5`] */
.cmp-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  border-radius: 9999px; border: 1px solid #bfdbfe; background: #eff6ff;
  padding: 6px 16px; font-size: 14px; font-weight: 500; color: var(--brand-hover);
}

/* H1 [Next l.82-84 `text-3xl font-extrabold ... md:text-4xl`] */
.cmp-h1 { margin: 0 0 16px; font-size: 30px; font-weight: 800; line-height: 1.2; color: var(--ink); }
@media (min-width: 768px) { .cmp-h1 { font-size: 36px; } }

/* Intro [Next l.86-92 `text-lg text-slate-600`] */
.cmp-intro { margin: 0 0 40px; font-size: 18px; line-height: 1.6; color: var(--ink-dim); }

/* Tableau [Next l.110-159] */
.cmp-table-title { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: var(--ink); }
.cmp-table-wrap { margin-bottom: 48px; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.cmp-table { width: 100%; margin: 0; font-size: 14px; border-collapse: collapse; }
.cmp-table thead tr { border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.cmp-table thead th { padding: 12px 16px; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 14px; border-bottom: none; background: var(--surface-soft); }
.cmp-table thead th.cmp-th-crit { text-align: left; color: var(--ink-dim); }
.cmp-table thead th.cmp-th-presc { text-align: center; color: var(--brand-hover); }
.cmp-table thead th.cmp-th-comp { text-align: center; color: var(--ink-dim); }
.cmp-table tbody tr { border-bottom: 1px solid var(--line-soft); }
.cmp-table tbody tr:last-child { border-bottom: none; }
.cmp-table tbody tr:hover { background: var(--surface-soft); }
.cmp-table td { padding: 12px 16px; border-bottom: none; vertical-align: middle; }
.cmp-td-crit { color: var(--ink-dim); text-align: left; }
.cmp-td-presc { text-align: center; font-weight: 500; color: var(--brand-hover); }
.cmp-td-comp { text-align: center; color: var(--ink-dim); }

/* CTA final comparateur [Next l.373-389 `rounded-2xl bg-blue-600 p-8 text-white`] */
.cmp-cta { margin-bottom: 48px; border-radius: 16px; background: var(--brand); padding: 32px; text-align: center; color: #fff; }
.cmp-cta-h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: #fff; }
.cmp-cta-body { margin: 0 0 24px; color: #bfdbfe; }
.cmp-cta-btn {
  display: inline-block; border-radius: 8px; background: #fff;
  padding: 12px 32px; font-weight: 600; color: var(--brand-hover);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); transition: background 0.15s;
}
.cmp-cta-btn:hover { background: #eff6ff; text-decoration: none; }
.cmp-cta-note { margin: 12px 0 0; font-size: 12px; color: #93c5fd; }

/* Maillage SEO « Découvrir aussi » [DecouvrirAussi component, préservé] */
.cmp-related { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.cmp-related-title { margin: 0 0 16px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; }
.cmp-related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .cmp-related-list { grid-template-columns: repeat(2, 1fr); } }
.cmp-related-list li { margin: 0; }
.cmp-related-list a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--brand); }
.cmp-related-list a:hover { color: var(--brand-hover); }
.cmp-related-list a svg { width: 14px; height: 14px; display: block; flex-shrink: 0; }
/* ==========================================================================
   SERP — recherche unifiée (/recherche, /recherche/resultats, /recherche/quota)
   Pages CLAIRES. Le DOM de .serp-card est PLAT (badge/titre/meta/snippet frères,
   sans wrapper) → layout block/inline (pas de grid fragile).
   ========================================================================== */

main.search-landing, main.search-quota { max-width: 760px; text-align: center; padding-top: 4rem; }
main.search-landing > p, main.search-quota p { max-width: 58ch; margin-inline: auto; color: var(--ink-dim); }
main.search-quota .home-cta { margin-top: 1.5rem; }
main.serp { max-width: 960px; }

/* Barre de recherche (input + bouton) */
.search-form { display: flex; gap: 0.5rem; margin: 0 0 1.5rem; }
main.search-landing .search-form { margin: 2rem auto 0; max-width: 620px; }
.search-form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 1rem;
  font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-form input::placeholder { color: var(--ink-faint); }
.search-form input:focus { outline: none; border-color: var(--brand-soft); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.search-form button {
  flex: 0 0 auto; height: 46px; padding: 0 1.4rem; border: 0; border-radius: var(--radius);
  background: var(--brand); color: #fff; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: background 0.15s ease;
}
.search-form button:hover { background: var(--brand-hover); }

/* États + compteur */
.serp-count { margin: 0 0 1.25rem; font-size: 0.9rem; color: var(--ink-faint); }
.serp-empty, .serp-noresult { margin: 2rem 0; color: var(--ink-dim); }

/* Liste de résultats */
/* Barre de facettes (filtre par source — liens GET, zéro JS) */
.serp-facets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; }
.serp-facet {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; color: var(--ink-dim);
  background: #fff; border: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.serp-facet:hover { border-color: var(--brand); color: var(--brand); background: rgba(37, 99, 235, 0.05); text-decoration: none; }
.serp-facet.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }
.serp-facet-n {
  font-size: 0.7rem; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 0.02rem 0.4rem; border-radius: 999px;
  background: var(--line-soft); color: var(--ink-faint);
}
.serp-facet.is-active .serp-facet-n { background: rgba(255, 255, 255, 0.22); color: #fff; }
.serp-facet:hover .serp-facet-n { background: rgba(37, 99, 235, 0.12); color: var(--brand); }

.serp-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }

/* Carte de résultat — accent latéral + chrome par type (parité cards-v3) */
.serp-card {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1rem 1.15rem; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--brand-300));
  border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.serp-card:hover { border-color: rgba(37, 99, 235, 0.3); box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.2); transform: translateY(-2px); }
/* Accent + teinte par source (badge AO=bleu, ATTR=émeraude, PC=ambre…) */
.serp-card--marche      { --accent: #2563eb; --tint: rgba(37, 99, 235, 0.09); }
.serp-card--entreprise  { --accent: #4f46e5; --tint: rgba(79, 70, 229, 0.09); }
.serp-card--dce         { --accent: #7c3aed; --tint: rgba(124, 58, 237, 0.09); }
.serp-card--permis      { --accent: #d97706; --tint: rgba(217, 119, 6, 0.11); }
.serp-card--attribution { --accent: #059669; --tint: rgba(5, 150, 105, 0.11); }

/* En-tête : badge source + titre */
.serp-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.serp-kind {
  flex: 0 0 auto; padding: 0.1rem 0.5rem; border-radius: 999px;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--tint);
}
.serp-card-title { font-size: 0.9rem; font-weight: 600; line-height: 1.375; }
a.serp-card-title { color: var(--brand); }
a.serp-card-title:hover { text-decoration: underline; }
span.serp-card-title { color: var(--ink-strong); }

/* Ligne de chips (méta icône + texte) */
.serp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.serp-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.5rem; border-radius: var(--radius-sm);
  background: var(--surface-soft); border: 1px solid var(--line-soft);
  font-size: 0.76rem; color: var(--ink-dim); max-width: 100%;
}
.serp-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
.serp-ic { width: 13px; height: 13px; flex: 0 0 auto; color: var(--ink-faint); }

/* Chip doc_type DCE (CCTP, RC, CCAP…) */
.serp-doctype {
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.5rem; border-radius: var(--radius-sm);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); background: var(--tint);
}

/* Pills à ton (échéance marché, RGE entreprise) */
.serp-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
}
.serp-pill .serp-ic { color: currentColor; }
.serp-pill--red     { color: #b91c1c; background: rgba(239, 68, 68, 0.1);   border: 1px solid rgba(239, 68, 68, 0.25); }
.serp-pill--amber   { color: #b45309; background: rgba(251, 191, 36, 0.14); border: 1px solid rgba(251, 191, 36, 0.35); }
.serp-pill--default { color: var(--brand-hover); background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.22); }
.serp-pill--muted   { color: var(--ink-faint); background: var(--line-soft); border: 1px solid var(--line); }
.serp-pill--green   { color: #047857; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); }

.serp-card-snippet { margin: 0; font-size: 0.78rem; color: var(--ink-dim); line-height: 1.6; }

/* ==========================================================================
   LANDING /recherche — rendu riche SOMBRE (parité prescriptio-search-page).
   Enveloppé dans .data-surface (fond #0a0d14 + grille + glow, cf. base.css).
   Hero + command-shell (barre + chips) + pill-bar onglets + panneaux clairs.
   ========================================================================== */
main.srch-landing { max-width: 1000px; padding-top: clamp(2rem, 7vh, 4.5rem); padding-bottom: 3.5rem; }
.srch-hero { text-align: center; margin-bottom: 1.6rem; }
.srch-h1 { font-size: clamp(2rem, 4.4vw, 2.65rem); font-weight: 700; letter-spacing: -0.025em; color: #fff; margin: 0 0 0.5rem; }
.srch-sub { max-width: 62ch; margin: 0 auto; color: var(--dark-text-dim); font-size: 1.02rem; line-height: 1.5; }

/* Command shell : conteneur sombre arrondi (barre + chips) */
.srch-shell {
  max-width: 920px; margin: 0 auto;
  background: rgba(15, 23, 40, 0.92); border: 1px solid var(--dark-border);
  border-radius: 16px; padding: 0.55rem 0.6rem 0.45rem;
  box-shadow: 0 32px 90px -52px rgba(0, 0, 0, 0.72); backdrop-filter: blur(14px);
}
.srch-bar { display: flex; align-items: center; gap: 0.55rem; height: 52px; padding: 0 0.45rem 0 0.85rem; }
.srch-bar-ic { display: inline-flex; align-items: center; color: var(--dark-text-faint); }
.srch-bar-ic .serp-ic { width: 20px; height: 20px; }
.srch-bar input {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none;
  color: #e6e9f2; font-size: 1.02rem; font-family: inherit;
}
.srch-bar input::placeholder { color: var(--dark-text-faint); }
.srch-bar button {
  flex: 0 0 auto; height: 40px; width: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 11px; background: var(--brand); color: #fff; cursor: pointer; transition: background 0.15s ease;
}
.srch-bar button:hover { background: var(--brand-hover); }
.srch-bar button .serp-ic { width: 18px; height: 18px; }

/* Rangée de chips (source / filtres / phrase exacte) */
.srch-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0.5rem 0.45rem 0.2rem; margin-top: 0.35rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.srch-chip-dd { position: relative; }
.srch-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.32rem 0.7rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500; color: var(--dark-text-dim);
  background: transparent; border: 1px dashed var(--dark-border-2); cursor: pointer;
  list-style: none; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.srch-chip::-webkit-details-marker { display: none; }
.srch-chip:hover { background: rgba(255, 255, 255, 0.06); color: #e6e9f2; }
.srch-chip .serp-ic { width: 14px; height: 14px; }
.srch-chip--ghost { cursor: default; }
.srch-chip-dd[open] > .srch-chip { background: rgba(37, 99, 235, 0.15); border-color: rgba(37, 99, 235, 0.45); border-style: solid; color: #cfe0ff; }
.srch-chip-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--dark-2); border: 1px solid var(--dark-border); border-radius: 12px; padding: 0.4rem;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
}
.srch-menu-hd { margin: 0; padding: 0.3rem 0.55rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dark-text-faint); }
.srch-menu-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.55rem; border-radius: 8px; font-size: 0.85rem; color: var(--dark-text); }
a.srch-menu-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; }
.srch-menu-item .serp-ic { width: 15px; height: 15px; flex: 0 0 auto; color: var(--dark-text-dim); }

/* Pill-bar d'onglets */
.srch-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; width: fit-content; max-width: 100%; margin: 1.4rem auto 0; padding: 0.3rem; border-radius: 999px; border: 1px solid var(--dark-border); background: rgba(15, 23, 40, 0.7); backdrop-filter: blur(8px); }
.srch-tab { display: inline-flex; align-items: center; gap: 0.4rem; height: 34px; padding: 0 0.9rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--dark-text-dim); border: 1px solid transparent; transition: background 0.15s ease, color 0.15s ease; }
.srch-tab:hover { background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; }
.srch-tab.is-active { background: rgba(37, 99, 235, 0.15); border-color: rgba(37, 99, 235, 0.38); color: #cfe0ff; }
.srch-tab .serp-ic { width: 15px; height: 15px; }

/* Panneaux d'onglets (cartes CLAIRES encapsulées dans la surface sombre) */
.srch-panel { max-width: 1120px; margin: 1.6rem auto 0; }
.srch-panel-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px -34px rgba(0, 0, 0, 0.6); }
.srch-panel-hd { display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.15rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink-strong); }
.srch-panel-hd .serp-ic { width: 16px; height: 16px; color: var(--ink-faint); }
.srch-empty { padding: 2.6rem 1.15rem; text-align: center; color: var(--ink-dim); }
.srch-empty .serp-ic { width: 26px; height: 26px; margin: 0 auto 0.7rem; color: var(--ink-faint); }
.srch-empty p { margin: 0.15rem 0; }
.srch-empty-title { font-weight: 600; color: var(--ink); }

/* ==========================================================================
   SERP /recherche/resultats — rendu riche SOMBRE (parité prod).
   Surface .data-surface + cartes navy, type-tabs, vue groupée « Tous »
   (head + 4 sections + tail), sidebar (Raccourcis + Sources).
   ========================================================================== */
main.serp { max-width: 1280px; }
.serp .srch-shell--serp { max-width: none; margin: 0 0 1.1rem; }

/* Vars d'accent par source posées sur le badge LUI-MÊME (pour qu'il colore hors
   d'une .serp-card : lignes de section, carte de tête). */
.serp-kind--marche      { --accent: #2563eb; --tint: rgba(37, 99, 235, 0.1); }
.serp-kind--entreprise  { --accent: #4f46e5; --tint: rgba(79, 70, 229, 0.1); }
.serp-kind--dce         { --accent: #7c3aed; --tint: rgba(124, 58, 237, 0.1); }
.serp-kind--permis      { --accent: #d97706; --tint: rgba(217, 119, 6, 0.12); }
.serp-kind--attribution { --accent: #059669; --tint: rgba(5, 150, 105, 0.12); }
.serp-kind--contact     { --accent: #0891b2; --tint: rgba(8, 145, 178, 0.12); }

/* Type-tabs */
.serp-tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 1.2rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--dark-border); }
.serp-tab { display: inline-flex; align-items: center; gap: 0.4rem; height: 32px; padding: 0 0.7rem; border-radius: 9px; font-size: 0.82rem; font-weight: 500; color: var(--dark-text-dim); border: 1px solid transparent; }
.serp-tab:hover { background: rgba(255, 255, 255, 0.05); color: #fff; text-decoration: none; }
.serp-tab.is-active { background: rgba(37, 99, 235, 0.16); border-color: rgba(37, 99, 235, 0.38); color: #cfe0ff; }
.serp-tab-n { font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0.82; }

/* Layout principal + rail droit */
.serp-layout { display: grid; gap: 1.3rem; align-items: start; }
@media (min-width: 1080px) { .serp-layout:not(.serp-layout--flat) { grid-template-columns: minmax(0, 1fr) 320px; } }
.serp-main { min-width: 0; }
.serp-rail { display: flex; flex-direction: column; gap: 0.9rem; }
@media (min-width: 1080px) { .serp-rail { position: sticky; top: 72px; } }

/* Carte de tête (Lecture recommandée / future synthèse) */
.serp-head { background: var(--dark-2); border: 1px solid var(--dark-border); border-left: 3px solid var(--brand-soft); border-radius: 14px; padding: 1.05rem 1.2rem; margin-bottom: 1.2rem; }
.serp-head-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; }
.serp-head-flag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; color: #cfe0ff; background: rgba(37, 99, 235, 0.16); }
.serp-head-flag .serp-ic { width: 13px; height: 13px; }
.serp-head-title { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.55rem; color: #fff; }
a.serp-head-title:hover { color: #cfe0ff; text-decoration: none; }

/* Sections groupées (grille 2 colonnes) */
.serp-sections { display: grid; gap: 0.9rem; }
@media (min-width: 760px) { .serp-sections { grid-template-columns: 1fr 1fr; } }
.serp-section { background: var(--dark-2); border: 1px solid var(--dark-border); border-radius: 14px; padding: 0.85rem 0.95rem; }
.serp-section-hd { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.serp-section-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); color: var(--dark-text-dim); flex: 0 0 auto; }
.serp-section-ic .serp-ic { width: 16px; height: 16px; }
.serp-section-title { margin: 0; font-size: 0.92rem; font-weight: 600; color: #e6e9f2; flex: 1 1 auto; min-width: 0; }
.serp-section-n { font-size: 0.72rem; color: var(--dark-text-faint); width: 100%; order: 3; }
.serp-section-all { display: inline-flex; align-items: center; gap: 0.1rem; font-size: 0.78rem; font-weight: 600; color: var(--brand-soft); flex: 0 0 auto; }
.serp-section-all .serp-ic { width: 14px; height: 14px; }
.serp-section-rows { display: flex; flex-direction: column; gap: 0.35rem; }
.serp-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.42rem 0.5rem; border-radius: 8px; background: rgba(255, 255, 255, 0.02); border: 1px solid transparent; }
.serp-row:hover { border-color: var(--dark-border); background: rgba(255, 255, 255, 0.05); }
.serp-row-title { font-size: 0.82rem; line-height: 1.35; color: #cfe0ff; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
a.serp-row-title:hover { text-decoration: underline; }
span.serp-row-title { color: var(--dark-text); }

/* Tail (Résultats classés) */
.serp-tail { margin-top: 1.5rem; }
.serp-tail-hd { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 0.75rem; }
.serp-tail-hd h3 { margin: 0; font-size: 0.95rem; color: #e6e9f2; }
.serp-tail-n { font-size: 0.75rem; color: var(--dark-text-faint); font-variant-numeric: tabular-nums; }

/* Sidebar (cartes) */
.serp-rail-card { background: var(--dark-2); border: 1px solid var(--dark-border); border-radius: 14px; padding: 0.65rem 0.7rem; }
.serp-rail-hd { display: flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0.3rem 0.55rem; font-size: 0.82rem; font-weight: 600; color: #e6e9f2; }
.serp-rail-hd .serp-ic { width: 15px; height: 15px; color: var(--brand-soft); }
.serp-shortcut { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem; border-radius: 9px; color: var(--dark-text); }
.serp-shortcut:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; color: #fff; }
.serp-shortcut.is-disabled { opacity: 0.4; }
.serp-shortcut > .serp-ic { width: 16px; height: 16px; color: var(--dark-text-dim); flex: 0 0 auto; }
.serp-shortcut-l { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.serp-shortcut-label { font-size: 0.84rem; font-weight: 600; }
.serp-shortcut-help { font-size: 0.72rem; color: var(--dark-text-faint); }
.serp-source-row { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.5rem; align-items: center; padding: 0.4rem; border-radius: 8px; color: var(--dark-text); }
.serp-source-row:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.serp-source-label { font-size: 0.8rem; }
.serp-source-n { font-size: 0.76rem; font-variant-numeric: tabular-nums; color: var(--dark-text-dim); }
.serp-source-bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.serp-source-bar-fill { display: block; height: 100%; background: var(--brand-soft); border-radius: 999px; }

/* ── Cartes SERP en thème SOMBRE (override des cartes claires de base) ─────── */
.data-surface main.serp { color: var(--dark-text); }
.data-surface .serp-count, .data-surface .serp-empty, .data-surface .serp-noresult { color: var(--dark-text-dim); }
.data-surface .serp-card { background: var(--dark-2); border-color: var(--dark-border); box-shadow: none; }
.data-surface .serp-card:hover { border-color: rgba(37, 99, 235, 0.4); box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.7); }
.data-surface a.serp-card-title { color: #cfe0ff; }
.data-surface span.serp-card-title { color: #e6e9f2; }
.data-surface .serp-chip { background: rgba(255, 255, 255, 0.04); border-color: var(--dark-border); color: var(--dark-text-dim); }
.data-surface .serp-ic { color: var(--dark-text-faint); }
.data-surface .serp-card-snippet { color: var(--dark-text-dim); }
.data-surface .serp-pill--default { color: #cfe0ff; background: rgba(37, 99, 235, 0.16); border-color: rgba(37, 99, 235, 0.3); }
.data-surface .serp-pill--muted { color: var(--dark-text-faint); background: rgba(255, 255, 255, 0.06); border-color: var(--dark-border); }
/* Accents de source plus lumineux sur fond sombre (badges + bordure de carte) */
.data-surface .serp-card--marche, .data-surface .serp-kind--marche           { --accent: #60a5fa; --tint: rgba(96, 165, 250, 0.16); }
.data-surface .serp-card--entreprise, .data-surface .serp-kind--entreprise   { --accent: #a5b4fc; --tint: rgba(165, 180, 252, 0.16); }
.data-surface .serp-card--dce, .data-surface .serp-kind--dce                 { --accent: #c4b5fd; --tint: rgba(196, 181, 253, 0.18); }
.data-surface .serp-card--permis, .data-surface .serp-kind--permis           { --accent: #fbbf24; --tint: rgba(251, 191, 36, 0.18); }
.data-surface .serp-card--attribution, .data-surface .serp-kind--attribution { --accent: #34d399; --tint: rgba(52, 211, 153, 0.18); }
.data-surface .serp-card--contact, .data-surface .serp-kind--contact         { --accent: #22d3ee; --tint: rgba(34, 211, 238, 0.18); }

/* Barre de filtres (chips <details> + liens GET, réutilise .srch-chip de la landing) */
.serp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 1.1rem; }
a.srch-chip { text-decoration: none; }
a.srch-chip:hover { text-decoration: none; }
.srch-chip--active { background: rgba(37, 99, 235, 0.18); border-color: rgba(37, 99, 235, 0.5); border-style: solid; color: #cfe0ff; }
.srch-chip-val { display: inline-flex; align-items: center; justify-content: center; min-width: 1.05rem; height: 1.05rem; padding: 0 0.25rem; font-size: 0.68rem; font-weight: 700; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.srch-menu-item.is-on { background: rgba(37, 99, 235, 0.14); color: #cfe0ff; }
.serp-filters-reset { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.32rem 0.6rem; font-size: 0.78rem; font-weight: 500; color: var(--dark-text-faint); }
.serp-filters-reset:hover { color: #fff; text-decoration: none; }
.serp-filters-reset .serp-ic { width: 13px; height: 13px; }

/* Carte synthèse IA « Insight Prescriptio » (sombre, parité serp-synthesis) */
.serp-synth { margin-bottom: 1.2rem; border: 1px solid rgba(96, 165, 250, 0.3); border-radius: 16px; background: #0d1424; box-shadow: 0 28px 70px -44px rgba(37, 99, 235, 0.5); overflow: hidden; }
.serp-synth-hd { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; background: #121a2b; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.serp-synth-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(96, 165, 250, 0.35); background: rgba(37, 99, 235, 0.12); color: #93c5fd; flex: 0 0 auto; }
.serp-synth-ic .serp-ic { width: 16px; height: 16px; }
.serp-synth-ttl { display: flex; flex-direction: column; line-height: 1.25; flex: 1 1 auto; min-width: 0; }
.serp-synth-name { font-size: 0.85rem; font-weight: 600; color: #e6e9f2; }
.serp-synth-sub { font-size: 0.72rem; color: var(--dark-text-dim); }
.serp-synth-check { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(16, 185, 129, 0.12); color: #6ee7b7; flex: 0 0 auto; }
.serp-synth-check .serp-ic { width: 14px; height: 14px; }
.serp-synth-body { margin: 0; padding: 0.85rem 1rem; font-size: 0.95rem; line-height: 1.55; color: #e6e9f2; }
.serp-cite { display: inline-flex; align-items: center; justify-content: center; min-width: 1.15rem; height: 1.15rem; margin: 0 0.12rem; padding: 0 0.25rem; font-size: 0.68rem; font-weight: 700; font-family: var(--font-mono); vertical-align: super; border-radius: 999px; border: 1px solid rgba(96, 165, 250, 0.35); background: rgba(37, 99, 235, 0.18); color: #bfdbfe; }
.serp-synth-sources { padding: 0.6rem 1rem 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(17, 24, 39, 0.4); }
.serp-synth-srclabel { margin: 0 0 0.5rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dark-text-faint); }
.serp-synth-srcrow { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.2rem; }
.serp-synth-src { flex: 0 0 11rem; width: 11rem; display: flex; flex-direction: column; gap: 0.25rem; padding: 0.5rem 0.65rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: #101827; }
.serp-synth-srcn { display: inline-flex; align-items: center; justify-content: center; width: 1.2rem; height: 1.2rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; font-family: var(--font-mono); border: 1px solid rgba(96, 165, 250, 0.35); background: rgba(37, 99, 235, 0.15); color: #bfdbfe; }
.serp-synth-srctype { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dark-text-faint); }
.serp-synth-srctitle { font-size: 0.78rem; font-weight: 600; color: #e6e9f2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ── Sources additionnelles (PV Mairies, BODACC, DVF) : accents (V1) ───────── */
.serp-card--mairie { --accent: #0284c7; --tint: rgba(2, 132, 199, 0.1); }
.serp-card--bodacc { --accent: #ea580c; --tint: rgba(234, 88, 12, 0.1); }
.serp-card--dvf    { --accent: #db2777; --tint: rgba(219, 39, 119, 0.1); }
.serp-kind--mairie { --accent: #0284c7; --tint: rgba(2, 132, 199, 0.1); }
.serp-kind--bodacc { --accent: #ea580c; --tint: rgba(234, 88, 12, 0.1); }
.serp-kind--dvf    { --accent: #db2777; --tint: rgba(219, 39, 119, 0.1); }
.data-surface .serp-card--mairie, .data-surface .serp-kind--mairie { --accent: #38bdf8; --tint: rgba(56, 189, 248, 0.16); }
.data-surface .serp-card--bodacc, .data-surface .serp-kind--bodacc { --accent: #fb923c; --tint: rgba(251, 146, 60, 0.16); }
.data-surface .serp-card--dvf,    .data-surface .serp-kind--dvf    { --accent: #f472b6; --tint: rgba(244, 114, 182, 0.18); }

/* Chip-lien (carte mairie/bodacc → ouvrir le PV / l'annonce) */
.serp-chip--link { color: var(--brand); border-style: solid; text-decoration: none; }
.serp-chip--link:hover { text-decoration: none; }
.data-surface .serp-chip--link { color: #93c5fd; border-color: rgba(96, 165, 250, 0.3); background: rgba(37, 99, 235, 0.1); }
.data-surface .serp-chip--link:hover { background: rgba(37, 99, 235, 0.18); }

/* ── Outils de la barre de filtres : bascule Liste/Carte + rafraîchir (V2) ─── */
.serp-filters-tools { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.serp-view-toggle { display: inline-flex; padding: 0.15rem; border-radius: 999px; border: 1px solid var(--dark-border); background: rgba(255, 255, 255, 0.03); }
.serp-view { display: inline-flex; align-items: center; gap: 0.3rem; height: 28px; padding: 0 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 500; color: var(--dark-text-dim); }
.serp-view:hover { color: #fff; text-decoration: none; }
.serp-view.is-on { background: rgba(37, 99, 235, 0.16); color: #cfe0ff; }
.serp-view .serp-ic { width: 14px; height: 14px; }
.serp-filters-refresh { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--dark-border); color: var(--dark-text-dim); }
.serp-filters-refresh:hover { color: #fff; background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.serp-filters-refresh .serp-ic { width: 15px; height: 15px; }

/* ── Synthèse PRO : insights cross-source (carte) + « Par où commencer » (rail) (V3) ── */
.serp-synth-slot { display: contents; }
.serp-synth-insights { margin-top: 0.75rem; }
.serp-synth-insights .serp-synth-srclabel { margin-bottom: 0.4rem; }
.serp-synth-insight { display: flex; align-items: flex-start; gap: 0.45rem; padding: 0.45rem 0.6rem; margin-top: 0.35rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(11, 19, 36, 0.85); font-size: 0.85rem; line-height: 1.45; color: #e6e9f2; }
.serp-synth-insight > .serp-ic { width: 13px; height: 13px; margin-top: 3px; flex: 0 0 auto; color: var(--brand-soft); }
.serp-starts { border-color: rgba(167, 139, 250, 0.3); }
.serp-starts .serp-rail-hd .serp-ic { color: #c4b5fd; }
.serp-start { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; margin-top: 0.35rem; border-radius: 9px; border: 1px solid rgba(167, 139, 250, 0.2); background: rgba(124, 58, 237, 0.08); color: var(--dark-text); }
a.serp-start:hover { background: rgba(124, 58, 237, 0.16); text-decoration: none; }
.serp-start-l { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.serp-start-label { font-size: 0.82rem; font-weight: 600; color: #ddd6fe; }
.serp-start-help { font-size: 0.72rem; color: var(--dark-text-faint); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.serp-start-n { display: inline-flex; align-items: center; justify-content: center; width: 1.2rem; height: 1.2rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; font-family: var(--font-mono); border: 1px solid rgba(167, 139, 250, 0.4); background: rgba(124, 58, 237, 0.15); color: #ddd6fe; flex: 0 0 auto; }

/* ── Vue Carte (#serp-map, MapLibre) (V4) ──────────────────────────────────── */
#serp-map { height: clamp(420px, 62vh, 720px); width: 100%; margin-bottom: 1.3rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--dark-border); background: var(--dark-2); }
.serp-map-fallback { padding: 2.5rem 1rem; text-align: center; color: var(--dark-text-faint); }
.serp-map-pop { display: flex; flex-direction: column; gap: 0.2rem; }
.serp-map-pop-src { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }
.serp-map-pop-title { font-size: 0.85rem; font-weight: 600; color: #0f172a; line-height: 1.3; }
.serp-map-pop-link { font-size: 0.78rem; font-weight: 600; color: #2563eb; margin-top: 0.15rem; }

/* ── Actions du rail (Créer une alerte) + listes per-user de l'accueil (V5) ── */
.serp-actions { padding: 0.5rem; }
.serp-action { display: flex; align-items: center; justify-content: center; gap: 0.45rem; width: 100%; height: 38px; border-radius: 10px; border: 1px solid transparent; font-size: 0.84rem; font-weight: 600; font-family: inherit; cursor: pointer; }
.serp-action .serp-ic { width: 15px; height: 15px; }
.serp-action--primary { background: var(--brand); color: #fff; }
.serp-action--primary:hover { background: var(--brand-hover); }
.serp-action:disabled { opacity: 0.75; cursor: default; }
.serp-action.is-done { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.4); cursor: default; }
/* Listes Récentes / Sauvegardées (panneaux clairs de l'accueil) */
.srch-list { list-style: none; margin: 0; padding: 0.4rem; display: flex; flex-direction: column; gap: 0.12rem; }
.srch-list-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.6rem; border-radius: 9px; color: var(--ink); }
.srch-list-item:hover { background: var(--surface-soft); text-decoration: none; }
.srch-list-item > .serp-ic { width: 15px; height: 15px; color: var(--ink-faint); flex: 0 0 auto; }
.srch-list-l { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.srch-list-label { font-size: 0.88rem; font-weight: 600; color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-list-sub { font-size: 0.74rem; color: var(--ink-faint); }

/* ── Carte « Navigation » du rail (liste numérotée des sources) (V6) ────────── */
.serp-nav-badge { margin-left: auto; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.66rem; font-weight: 700; color: #cfe0ff; background: rgba(37, 99, 235, 0.16); }
.serp-nav-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.42rem 0.4rem; border-radius: 9px; color: var(--dark-text); }
.serp-nav-item:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; color: #fff; }
.serp-nav-n { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, 0.07); color: var(--dark-text-dim); flex: 0 0 auto; }
.serp-nav-item > .serp-ic { width: 15px; height: 15px; color: var(--dark-text-dim); flex: 0 0 auto; }
.serp-nav-label { flex: 1 1 auto; min-width: 0; font-size: 0.84rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-nav-item > .serp-ic:last-child { width: 13px; height: 13px; color: var(--dark-text-faint); }

/* ── Typeahead annuaire sur la grosse barre de l'accueil (.srch-bar) ────────── */
.srch-bar { position: relative; } /* ancre le dropdown sous la barre */
.srch-typeahead {
  position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 60;
  max-height: 56vh; overflow-y: auto; text-align: left;
  background: rgba(15, 19, 32, 0.98); border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg); box-shadow: 0 24px 70px -36px rgba(0, 0, 0, 0.95);
  padding: 0.25rem 0;
}
.srch-typeahead[hidden] { display: none; }

/* ==========================================================================
   PREMIUM INTELLIGENCE (gated) — carto chantiers · égonet réseau ·
   qui-prescrit-quoi · recherche PV mairie. Pages CLAIRES (outils data).
   Classes analogues groupées. Les landings réutilisent .search-form.
   ========================================================================== */

/* En-têtes d'outil + lignes d'intro */
.chantiers-head, .reseau-head, .prescripteurs-head, .pvmairie-head { margin-bottom: 1.5rem; }
.chantiers-lead, .prescripteurs-lead, .pvmairie-lead,
.reseau-center, .prescripteurs-center, .pvmairie-center {
  max-width: 70ch; margin: 0.4rem 0 0; font-size: 1rem; color: var(--ink-dim);
}
.reseau-center strong, .prescripteurs-center strong, .pvmairie-center strong { color: var(--ink-strong); }

/* Bandes de KPI (chips stat) */
.chantiers-kpi, .prescripteurs-kpi, .pvmairie-kpi, .reseau-axes {
  list-style: none; margin: 0 0 1.75rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.chantiers-kpi li, .prescripteurs-kpi li, .pvmairie-kpi li, .reseau-axes li {
  margin: 0; padding: 0.5rem 0.85rem; font-size: 0.85rem; color: var(--ink-dim);
  background: var(--surface-soft); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.chantiers-kpi strong, .prescripteurs-kpi strong, .pvmairie-kpi strong, .reseau-axes strong {
  color: var(--ink-strong); font-weight: 800; font-variant-numeric: tabular-nums;
}

/* Raccourcis / presets (chips cliquables) */
.prescripteurs-presets, .pvmairie-presets { margin: 1.5rem 0; }
.prescripteurs-presets-title, .pvmairie-presets-title {
  margin: 0 0 0.6rem; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint);
}
.prescripteurs-presets ul, .pvmairie-presets ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.prescripteurs-presets li, .pvmairie-presets li { margin: 0; }
.prescripteurs-presets a, .pvmairie-presets a {
  display: inline-block; padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--ink-dim);
  background: #fff; border: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.prescripteurs-presets a:hover, .pvmairie-presets a:hover {
  border-color: var(--brand); color: var(--brand); background: rgba(37, 99, 235, 0.05); text-decoration: none;
}

/* Notes discrètes + états vides */
.chantiers-map-note, .chantiers-list-note, .prescripteurs-list-note, .prescripteurs-roles-note,
.pvmairie-list-note, .prescripteurs-mode {
  margin: 0.85rem 0 0; font-size: 0.8rem; color: var(--ink-faint); line-height: 1.5;
}
.chantiers-noresult, .prescripteurs-noresult, .pvmairie-noresult { margin: 2rem 0; color: var(--ink-dim); }

/* Sections-cartes d'outil */
.chantiers-filters, .chantiers-map-wrap, .chantiers-list,
.prescripteurs-roles, .prescripteurs-list, .reseau-relations, .reseau-viz {
  margin: 0 0 1.5rem; padding: 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.chantiers-list > h2, .prescripteurs-roles > h2, .prescripteurs-list > h2, .reseau-relations > h2 {
  margin: 0 0 1rem; padding-bottom: 0.6rem; font-size: 1.05rem; color: var(--ink-strong);
  border-bottom: 1px solid var(--line-soft);
}
.chantiers-table { margin: 0; }
.chantiers-dot, .chantiers-legend-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle;
}

/* Filtres chantiers (chips) */
.chantiers-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.chantiers-filter-row:last-child { margin-bottom: 0; }
.chantiers-filter-label { margin-right: 0.3rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.chantiers-filters a {
  display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px;
  font-size: 0.85rem; color: var(--ink-dim); background: var(--surface-soft); border: 1px solid var(--line);
}
.chantiers-filters a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* Carte SVG chantiers + légende */
.chantiers-map-wrap { padding: 1rem; }
.chantiers-map { display: block; width: 100%; height: auto; background: var(--surface-soft); border-radius: var(--radius); }
.chantiers-legend { list-style: none; margin: 0.85rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.chantiers-legend li { margin: 0; display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--ink-dim); }

/* Listes d'items (prescripteurs / PV mairie) */
.prescripteurs-list ol, .pvmairie-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.prescripteurs-item {
  padding: 0.85rem 1rem; background: var(--surface-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.prescripteurs-item-role {
  display: inline-block; margin-right: 0.4rem; padding: 0.1rem 0.5rem; border-radius: 5px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brand); background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.2);
}
.prescripteurs-item-name { font-weight: 600; color: var(--brand); }
.prescripteurs-item-loc, .prescripteurs-item-projets { font-size: 0.85rem; color: var(--ink-faint); }
.prescripteurs-badge-confirm {
  display: inline-block; padding: 0.05rem 0.4rem; border-radius: 5px; font-size: 0.64rem; font-weight: 700;
  color: var(--amber); background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Répartition par rôle (la largeur de barre est en style inline) */
.prescripteurs-roles ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.prescripteurs-roles li { display: grid; grid-template-columns: minmax(120px, max-content) 1fr auto; gap: 0.75rem; align-items: center; }
.prescripteurs-role-label { font-size: 0.85rem; }
.prescripteurs-role-bar { border-radius: 4px; }
.prescripteurs-role-count { font-size: 0.85rem; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; }

/* Item PV mairie */
.pvmairie-item { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.95rem 1.1rem; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.pvmairie-item-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.pvmairie-item-commune { font-weight: 600; color: var(--ink-strong); }
.pvmairie-item-score {
  padding: 0.1rem 0.5rem; border-radius: 5px; font-size: 0.74rem; font-weight: 700;
  color: var(--brand); background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.2);
}
.pvmairie-item-snippet { margin: 0; font-size: 0.88rem; color: var(--ink-dim); line-height: 1.5; }
.pvmairie-item-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.pvmairie-item-file { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); }
.pvmairie-item-link { font-size: 0.85rem; font-weight: 600; }

/* Égonet réseau (SVG SSR) */
.reseau-viz { padding: 1rem; }
.reseau-svg { display: block; width: 100%; height: auto; background: var(--surface-soft); border-radius: var(--radius); }
.reseau-svg .reseau-edges line { stroke: var(--line); stroke-opacity: 0.7; }
.reseau-svg .reseau-nodes circle { stroke: #fff; stroke-width: 1.5; }
.reseau-svg .reseau-nodes text { font-family: var(--font-sans); font-size: 11px; fill: var(--ink); }
.reseau-relations ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.reseau-relations li { padding: 0.4rem 0; border-top: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--ink-dim); }
.reseau-relations li:first-child { border-top: 0; }
.reseau-rel-via {
  display: inline-block; padding: 0.05rem 0.45rem; border-radius: 5px; font-size: 0.68rem; font-weight: 700;
  color: var(--brand); background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Murs paywall Intelligence (centrés) */
.chantiers-wall, .reseau-wall, .prescripteurs-wall, .pvmairie-wall {
  max-width: 680px; text-align: center; padding-top: 4rem;
}
.chantiers-wall-lead, .reseau-wall-lead, .prescripteurs-wall-lead, .pvmairie-wall-lead {
  max-width: 58ch; margin: 0.5rem auto 0; color: var(--ink-dim);
}
.chantiers-wall .home-cta, .reseau-wall .home-cta,
.prescripteurs-wall .home-cta, .pvmairie-wall .home-cta { margin-top: 1.5rem; }

/* ==========================================================================
   Pages Intelligence branchées (2026-06-23) : détection de marque, cartos
   (terrain · panneaux), agents IA (×4 contenu), prospection LinkedIn (×4
   onglets). Mêmes conventions « outil data clair » que ci-dessus.
   ========================================================================== */

/* En-têtes + intros */
.detection-head, .cartos-head, .agents-head, .prospection-head { margin-bottom: 1.5rem; }
.detection-lead, .cartos-lead, .agents-lead, .prospection-lead {
  max-width: 70ch; margin: 0.4rem 0 0; font-size: 1rem; color: var(--ink-dim);
}
.detection-lead strong, .cartos-lead strong, .agents-lead strong, .prospection-lead strong {
  color: var(--ink-strong);
}
.agents-eyebrow, .prospection-eyebrow {
  margin: 0 0 0.4rem; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint);
}

/* Sections-cartes communes */
.detection-how, .cartos-feature, .agents-section, .prospection-panel {
  margin: 0 0 1.5rem; padding: 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.detection-how > h2, .agents-section > h2 {
  margin: 0 0 1rem; padding-bottom: 0.6rem; font-size: 1.05rem; color: var(--ink-strong);
  border-bottom: 1px solid var(--line-soft);
}

/* Détection de marque : formulaire + étapes */
.detection-form { margin: 0 0 1.5rem; }
.detection-form-label {
  display: block; margin-bottom: 0.5rem; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint);
}
.detection-form-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.detection-form-row input {
  flex: 1 1 280px; min-width: 0; height: 44px; padding: 0 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 0.95rem; color: var(--ink); background: #fff;
}
.detection-form-row input:focus-visible {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.detection-steps, .cartos-points, .prospection-points {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem;
}
.detection-steps li, .cartos-points li, .prospection-points li {
  padding: 0.6rem 0.85rem; font-size: 0.92rem; color: var(--ink-dim);
  background: var(--surface-soft); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.detection-steps strong { color: var(--ink-strong); }
.detection-note { margin: 0.85rem 0 0; font-size: 0.8rem; color: var(--ink-faint); line-height: 1.5; }

/* Cartos : placeholder de carte (la carte interactive = îlot WASM phase 2) */
.cartos-map-wrap { margin: 0 0 1.5rem; }
.cartos-map-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 280px; padding: 2rem;
  background: var(--surface-soft); border: 1px dashed var(--line);
  border-radius: var(--radius-lg); color: var(--ink-faint); font-size: 0.95rem;
}

/* Agents IA : grille de cartes de contenu */
.agents-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem;
}
.agents-card {
  display: flex; flex-direction: column; gap: 0.35rem; padding: 0.95rem 1.05rem;
  background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.agents-card-title { font-weight: 600; color: var(--ink-strong); }
.agents-card-desc { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.45; }
.agents-cta, .prospection-cta { margin-top: 0.5rem; }

/* Prospection LinkedIn : onglets */
.prospection-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; }
.prospection-tab {
  display: inline-block; padding: 0.45rem 0.95rem; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; color: var(--ink-dim);
  background: #fff; border: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.prospection-tab:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.prospection-tab--on { color: #fff; background: var(--brand); border-color: var(--brand); }
.prospection-tab--on:hover { color: #fff; }
.prospection-tab-lead { max-width: 70ch; margin: 0 0 1rem; color: var(--ink-dim); }

/* Murs premium (centrés) — mêmes valeurs que .chantiers-wall & co. */
.detection-wall, .cartos-wall, .agents-wall, .prospection-wall {
  max-width: 680px; text-align: center; padding-top: 4rem;
}
.detection-wall-lead, .cartos-wall-lead, .agents-wall-lead, .prospection-wall-lead {
  max-width: 58ch; margin: 0.5rem auto 0; color: var(--ink-dim);
}
.detection-wall .home-cta, .cartos-wall .home-cta,
.agents-wall .home-cta, .prospection-wall .home-cta { margin-top: 1.5rem; }

/* ==========================================================================
   THÈME SOMBRE des outils premium dans .data-surface (parité dashboard Next
   `bg-[#070b12]`). Les classes ci-dessus restent claires par défaut ; sous
   `.data-surface` elles passent en sombre (cartes slate-900, texte clair).
   Détection de marque d'abord (les autres outils suivront, même mécanique).
   ========================================================================== */

/* ----- Détection de marque (landing) ------------------------------------- */
.data-surface .detection-head h1 { color: #fff; }
.data-surface .detection-lead { color: var(--dark-text-dim); }
.data-surface .detection-lead strong { color: #fff; }

.data-surface .detection-form-label { color: var(--dark-text-faint); }
.data-surface .detection-form-row input {
  background: rgba(15, 19, 32, 0.9); border-color: var(--dark-border-2); color: #fff;
}
.data-surface .detection-form-row input::placeholder { color: var(--dark-text-faint); }
.data-surface .detection-form-row input:focus-visible {
  outline: none; border-color: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.data-surface .detection-how {
  background: rgba(15, 19, 32, 0.9); border-color: var(--dark-border);
  box-shadow: 0 24px 70px -48px rgba(0, 0, 0, 0.9);
}
.data-surface .detection-how > h2 {
  color: #fff; border-bottom-color: var(--dark-border);
}
.data-surface .detection-steps li {
  background: rgba(10, 13, 20, 0.6); border-color: var(--dark-border); color: var(--dark-text);
}
.data-surface .detection-steps strong { color: #fff; }
.data-surface .detection-note { color: var(--dark-text-faint); }

/* ----- Mur Intelligence sombre + table de preview floutée (réutilisable) -- */
.intel-wall { max-width: 760px; margin: 0 auto; text-align: center; padding-top: 3.5rem; }
.intel-wall h1 { color: #fff; }
.intel-wall-badge {
  display: inline-block; margin-bottom: 1.1rem; padding: 0.3rem 0.85rem; border-radius: 999px;
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand-300); background: rgba(37, 99, 235, 0.12); border: 1px solid rgba(37, 99, 235, 0.32);
}
.intel-wall-lead { max-width: 60ch; margin: 0.75rem auto 0; color: var(--dark-text-dim); font-size: 1rem; }

.intel-wall-preview {
  position: relative; margin: 2.25rem auto 0; max-width: 660px; overflow: hidden;
  border: 1px solid var(--dark-border); border-radius: var(--radius-lg);
  background: rgba(15, 19, 32, 0.85); text-align: left;
  box-shadow: 0 28px 80px -54px rgba(0, 0, 0, 0.95);
}
.intel-wall-preview-head, .intel-wall-preview-row {
  display: grid; grid-template-columns: 1.2fr 1.6fr 0.9fr 0.7fr; gap: 0.75rem;
  padding: 0.72rem 1.1rem; align-items: center;
}
.intel-wall-preview-head {
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--dark-text-dim); background: rgba(10, 13, 20, 0.6);
  border-bottom: 1px solid var(--dark-border);
}
.intel-wall-preview-row {
  font-size: 0.84rem; color: var(--dark-text);
  border-top: 1px solid rgba(28, 35, 51, 0.55);
  filter: blur(2.5px); user-select: none;
}
.intel-wall-preview-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Dégradé bas : la table « se perd » dans le fond (incite au déverrouillage). */
.intel-wall-fade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 28%, rgba(15, 19, 32, 0.95) 100%);
}
.intel-wall-cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.9rem;
}
/* Bouton secondaire sombre (le `.cta-secondary` blanc par défaut jure sur fond sombre). */
.intel-wall-cta .cta-secondary {
  background: rgba(255, 255, 255, 0.04); border-color: var(--dark-border-2); color: var(--dark-text);
}
.intel-wall-cta .cta-secondary:hover {
  border-color: var(--brand-soft); color: #fff; background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Détection de marque — OUTIL SSR sombre (?marques=…). Cartes comparatives,
   barres annuelles + YoY, sélecteur de marque, liste DCE avec extraits.
   Toutes les classes `.dm-*` vivent sur la surface sombre `.data-surface`.
   ========================================================================== */
.detection-tool { max-width: 1100px; }

/* ----- Formulaire (marques + filtres) ------------------------------------ */
.dm-form { display: flex; flex-direction: column; gap: 0.75rem; margin: 0 0 1.75rem; }
.dm-form-main { display: flex; gap: 0.6rem; }
.dm-form-main input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 1rem;
  background: rgba(15, 19, 32, 0.9); border: 1px solid var(--dark-border-2);
  border-radius: var(--radius); color: #fff; font-size: 0.95rem;
}
.dm-form-main input::placeholder { color: var(--dark-text-faint); }
.dm-form-main input:focus-visible {
  outline: none; border-color: var(--brand-soft); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.dm-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dm-filter-dept, .dm-filter-sel {
  height: 38px; padding: 0 0.7rem;
  background: rgba(15, 19, 32, 0.9); border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm); color: var(--dark-text); font-size: 0.85rem;
}
.dm-filter-dept { width: 5rem; text-align: center; }
.dm-filter-sel { cursor: pointer; }
.dm-filter-dept:focus-visible, .dm-filter-sel:focus-visible { outline: none; border-color: var(--brand-soft); }

.dm-empty {
  margin: 1.5rem 0; padding: 2.25rem; text-align: center;
  border: 1px dashed var(--dark-border-2); border-radius: var(--radius-lg);
  background: rgba(15, 19, 32, 0.5); color: var(--dark-text-dim);
}

/* ----- Pastille couleur (réutilisée cartes + sélecteur) ------------------ */
.dm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }

/* ----- Cartes comparatives ----------------------------------------------- */
.dm-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem; margin: 0 0 1.5rem;
}
.dm-card {
  padding: 1rem 1.1rem; border: 1px solid var(--dark-border); border-radius: var(--radius-lg);
  background: rgba(15, 23, 40, 0.92); box-shadow: 0 24px 70px -52px rgba(0, 0, 0, 0.9);
}
.dm-card-head { display: flex; align-items: center; gap: 0.5rem; }
.dm-card-name { font-weight: 700; color: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-card-mine {
  padding: 0.05rem 0.4rem; border-radius: 5px; font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brand-300); background: rgba(37, 99, 235, 0.15); border: 1px solid rgba(37, 99, 235, 0.25);
}
.dm-card-rank {
  margin-left: auto; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  color: var(--dark-text); background: rgba(10, 13, 20, 0.7); border: 1px solid var(--dark-border);
  font-variant-numeric: tabular-nums;
}
.dm-card-total { margin-top: 0.75rem; display: flex; align-items: baseline; gap: 0.5rem; }
.dm-card-num { font-size: 1.6rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.dm-card-unit { font-size: 0.72rem; color: var(--dark-text-faint); }

/* Barres annuelles */
.dm-years { margin-top: 0.85rem; display: flex; align-items: flex-end; gap: 0.35rem; min-height: 56px; }
.dm-year { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.2rem; }
.dm-year-n { font-size: 0.56rem; color: var(--dark-text-faint); font-variant-numeric: tabular-nums; }
.dm-year-bar { width: 100%; border-radius: 3px; opacity: 0.85; }
.dm-year-lab { font-size: 0.56rem; color: var(--dark-text-faint); font-variant-numeric: tabular-nums; }

.dm-yoy { margin-top: 0.6rem; display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; }
.dm-yoy--up { color: var(--emerald); }
.dm-yoy--down { color: #fb7185; }
.dm-yoy-sub { color: var(--dark-text-faint); font-weight: 400; }

/* ----- Sélecteur de marque (pour la liste DCE) --------------------------- */
.dm-selector { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; }
.dm-sel-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  font-size: 0.82rem; color: var(--dark-text);
  background: rgba(10, 13, 20, 0.7); border: 1px solid var(--dark-border);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dm-sel-chip:hover { border-color: var(--dark-border-2); text-decoration: none; color: #fff; }
.dm-sel-chip--on { color: #fff; border-color: rgba(59, 130, 246, 0.55); background: rgba(37, 99, 235, 0.15); }
.dm-sel-count { color: var(--dark-text-faint); font-variant-numeric: tabular-nums; }

/* ----- Liste DCE citants ------------------------------------------------- */
.dm-dce {
  border: 1px solid var(--dark-border); border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(15, 23, 40, 0.92);
}
.dm-dce-head {
  padding: 0.6rem 1rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--dark-text-dim);
  background: rgba(10, 13, 20, 0.6); border-bottom: 1px solid var(--dark-border);
}
.dm-dce-empty { margin: 0; padding: 2.25rem; text-align: center; color: var(--dark-text-dim); }
.dm-dce-list { list-style: none; margin: 0; padding: 0; }
.dm-dce-item { padding: 0.8rem 1rem; border-top: 1px solid rgba(28, 35, 51, 0.55); }
.dm-dce-item:first-child { border-top: 0; }
.dm-dce-title { font-weight: 600; color: #fff; }
a.dm-dce-title:hover { color: var(--brand-300); text-decoration: underline; }
.dm-dce-meta {
  margin-top: 0.2rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.85rem;
  font-size: 0.74rem; color: var(--dark-text-faint);
}
.dm-dce-doctype { text-transform: uppercase; letter-spacing: 0.04em; }
.dm-dce-excerpt { margin: 0.4rem 0 0; font-size: 0.78rem; line-height: 1.55; color: var(--dark-text-dim); }
.dm-hl {
  border-radius: 3px; padding: 0 0.15em; font-weight: 600;
  color: #fde68a; background: rgba(253, 224, 71, 0.16); box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.2);
}

.dm-foot { margin: 1rem 0 0; font-size: 0.76rem; color: var(--dark-text-faint); line-height: 1.5; }

/* Feedback pendant un swap WASM (fragment en cours de fetch) : outil estompé. */
.detection-tool.is-swapping { opacity: 0.5; pointer-events: none; transition: opacity 0.12s ease; }

/* ----- MES VUES (barre de vues sauvegardées) ----------------------------- */
.dm-views { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1.25rem; }
.dm-views-label {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--dark-text-faint); margin-right: 0.25rem;
}
/* Pill = chip de chargement (à gauche) + × de suppression (à droite). */
.dm-view {
  display: inline-flex; align-items: center; border-radius: 999px;
  border: 1px solid var(--dark-border); background: rgba(10, 13, 20, 0.7);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dm-view:hover { border-color: var(--dark-border-2); }
.dm-view--on { border-color: rgba(59, 130, 246, 0.55); background: rgba(37, 99, 235, 0.15); }
.dm-view-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.3rem 0.35rem 0.8rem;
  font-size: 0.82rem; font-weight: 500; color: var(--dark-text); border: 0; background: transparent;
}
.dm-view-chip:hover { color: #fff; text-decoration: none; }
.dm-view-chip svg { width: 13px; height: 13px; color: var(--brand-300); }
.dm-view--on .dm-view-chip { color: #fff; }
.dm-view-del-form { display: inline-flex; margin: 0; }
.dm-view-del {
  border: 0; background: transparent; color: var(--dark-text-faint); cursor: pointer;
  padding: 0.2rem 0.6rem 0.2rem 0.25rem; font-size: 1.05rem; line-height: 1;
  border-radius: 0 999px 999px 0; transition: color 0.15s ease, background 0.15s ease;
}
.dm-view-del:hover { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.dm-view-new {
  display: inline-flex; align-items: center; padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; color: var(--dark-text-dim);
  border: 1px dashed var(--dark-border-2);
}
.dm-view-new:hover { color: #fff; border-color: var(--brand-soft); text-decoration: none; }

/* ----- Ajouter une marque ------------------------------------------------ */
.dm-add { margin: 0 0 1rem; }
.dm-add-row { display: flex; gap: 0.6rem; }
.dm-add-row input {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 1rem;
  background: rgba(15, 19, 32, 0.9); border: 1px solid var(--dark-border-2);
  border-radius: var(--radius); color: #fff; font-size: 0.95rem;
}
.dm-add-row input::placeholder { color: var(--dark-text-faint); }
.dm-add-row input:focus-visible {
  outline: none; border-color: var(--brand-soft); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.dm-add-row .cta-primary { white-space: nowrap; }

/* ----- Chips marques (MA MARQUE + retrait) ------------------------------- */
.dm-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.dm-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.5rem 0.4rem 0.7rem;
  border-radius: 999px; font-size: 0.85rem; color: #fff;
  background: rgba(15, 23, 40, 0.92); border: 1px solid var(--dark-border-2);
}
.dm-chip-mine {
  padding: 0.05rem 0.4rem; border-radius: 5px; font-size: 0.58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brand-300); background: rgba(37, 99, 235, 0.18); border: 1px solid rgba(37, 99, 235, 0.3);
}
.dm-chip-name { font-weight: 600; }
.dm-chip-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 0.3rem; border-radius: 999px; font-size: 0.66rem; font-weight: 700;
  color: var(--dark-text-dim); background: rgba(10, 13, 20, 0.7); font-variant-numeric: tabular-nums;
}
.dm-chip-x {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 50%; color: var(--dark-text-faint); font-size: 1.05rem; line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}
.dm-chip-x:hover { color: #fff; background: rgba(248, 113, 113, 0.2); text-decoration: none; }

/* ----- Toolbar (filtres + actions) --------------------------------------- */
.dm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1.5rem; }
.dm-period { display: inline-flex; padding: 0.15rem; border-radius: var(--radius-sm); border: 1px solid var(--dark-border); background: rgba(10, 13, 20, 0.6); }
.dm-period-btn {
  padding: 0.3rem 0.7rem; border: 0; background: transparent; border-radius: 5px; cursor: pointer;
  font-size: 0.78rem; font-weight: 500; color: var(--dark-text-dim);
  transition: color 0.15s ease, background 0.15s ease;
}
.dm-period-btn:hover { color: #fff; }
.dm-period-btn--on { color: #fff; background: var(--brand); }
.dm-toolbar-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.dm-toolbar-link {
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 500;
  color: var(--dark-text-dim); border: 1px solid var(--dark-border);
}
.dm-toolbar-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.dm-toolbar-save {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 600; color: #fff; background: var(--brand);
}
.dm-toolbar-save:hover { background: var(--brand-hover); text-decoration: none; }

/* ----- Carte : marque active + actions ----------------------------------- */
.dm-card--mine { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 18px 50px -36px rgba(37, 99, 235, 0.8); }
.dm-card-actions { margin-top: 0.85rem; display: flex; gap: 0.5rem; }
.dm-card-btn {
  flex: 1; text-align: center; padding: 0.4rem 0.6rem; border-radius: var(--radius-sm);
  font-size: 0.76rem; font-weight: 500; color: var(--dark-text); border: 1px solid var(--dark-border);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.dm-card-btn:hover { color: #fff; border-color: var(--dark-border-2); background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.dm-card-btn--alert { color: #fff; background: var(--brand); border-color: var(--brand); }
.dm-card-btn--alert:hover { background: var(--brand-hover); }

/* ----- Courbe « Évolution des citations » (SVG multi-marques) ------------- */
.dm-trend {
  margin: 0 0 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg); background: rgba(15, 23, 40, 0.92);
}
.dm-trend-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.dm-trend-head h2 { margin: 0; font-size: 0.95rem; color: #fff; }
.dm-trend-gran { display: inline-flex; padding: 0.15rem; border-radius: var(--radius-sm); border: 1px solid var(--dark-border); background: rgba(10, 13, 20, 0.6); }
.dm-gran-btn { padding: 0.25rem 0.7rem; border-radius: 5px; font-size: 0.74rem; font-weight: 500; color: var(--dark-text-dim); }
.dm-gran-btn:hover { color: #fff; text-decoration: none; }
.dm-gran-btn--on, .dm-gran-btn--on:hover { color: #fff; background: var(--brand); }
.dm-trend-svg { display: block; width: 100%; height: auto; }
.dm-trend-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.5rem; }
.dm-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--dark-text-dim); }

/* ----- Panneaux détail (régions · typologies · prescripteurs) ------------- */
.dm-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin: 0 0 0.85rem; }
@media (max-width: 720px) { .dm-detail-grid { grid-template-columns: 1fr; } }
.dm-detail-card {
  margin: 0 0 0.85rem; padding: 1rem 1.1rem; border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg); background: rgba(15, 23, 40, 0.92);
}
.dm-detail-grid .dm-detail-card { margin: 0; }
.dm-detail-title { margin: 0 0 0.85rem; font-size: 0.9rem; color: #fff; }
.dm-detail-note { margin: 0.6rem 0 0; font-size: 0.74rem; color: var(--dark-text-faint); }

.dm-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.dm-bar-row { display: grid; grid-template-columns: 2.5rem 1fr 2rem; gap: 0.6rem; align-items: center; }
.dm-bar-key { font-family: var(--font-mono); font-size: 0.72rem; color: var(--dark-text-dim); }
.dm-bar-key--wide { font-family: var(--font-sans); font-size: 0.76rem; color: var(--dark-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-bar-track { height: 12px; border-radius: 3px; background: rgba(10, 13, 20, 0.7); overflow: hidden; }
.dm-bar-fill { display: block; height: 100%; border-radius: 3px; opacity: 0.85; }
.dm-bar-val { text-align: right; font-size: 0.74rem; font-variant-numeric: tabular-nums; color: var(--dark-text); }

.dm-typo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .dm-typo-grid { grid-template-columns: 1fr; } }
.dm-typo-title { margin-bottom: 0.5rem; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dark-text-faint); }
.dm-typo-col .dm-bar-row { grid-template-columns: 6rem 1fr 1.5rem; }

/* Prescripteurs : rôles + table */
.dm-presc-roles { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.85rem; }
.dm-role-chip {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; color: var(--dark-text-dim); background: rgba(10, 13, 20, 0.7); border: 1px solid var(--dark-border);
}
.dm-role-chip:hover { color: #fff; border-color: var(--dark-border-2); text-decoration: none; }
.dm-role-chip--on { color: #fff; border-color: rgba(59, 130, 246, 0.55); background: rgba(37, 99, 235, 0.15); }
.dm-role-count { color: var(--dark-text-faint); font-variant-numeric: tabular-nums; }
.dm-presc-table-wrap { overflow-x: auto; border: 1px solid var(--dark-border); border-radius: var(--radius); }
.dm-presc-table { width: 100%; margin: 0; font-size: 0.78rem; border-collapse: collapse; }
.dm-presc-table thead th {
  background: rgba(10, 13, 20, 0.6); color: var(--dark-text-dim); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; text-align: left;
  padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--dark-border);
}
.dm-presc-table td { padding: 0.5rem 0.7rem; border-bottom: 1px solid rgba(28, 35, 51, 0.5); color: var(--dark-text); vertical-align: top; }
.dm-presc-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.dm-presc-role { display: inline-block; padding: 0.05rem 0.4rem; border-radius: 5px; font-size: 0.6rem; color: var(--dark-text-dim); background: rgba(10, 13, 20, 0.7); white-space: nowrap; }
.dm-presc-name { color: #fff; font-weight: 500; }
.dm-presc-name:hover { color: var(--brand-300); text-decoration: underline; }
.dm-presc-loc { color: var(--dark-text-dim); }
.dm-presc-num { text-align: center; font-variant-numeric: tabular-nums; }
.dm-presc-contact { color: var(--dark-text-faint); }
