    @font-face {
      font-family: "Inter";
      src: url("fonts/inter-v20-latin.woff2") format("woff2");
      font-weight: 400 800;
      font-display: swap;
    }

    .skip-link {
      position: absolute;
      left: -9999px;
      top: 0;
      z-index: 1000;
      padding: 10px 16px;
      background: #fff;
      color: #101418;
      font-weight: 700;
      border-radius: 0 0 6px 0;
    }
    .skip-link:focus {
      left: 0;
    }

    :root {
      --bg: #0a0a0a;
      --surface: #111111;
      --surface-2: #181818;
      --light: #f5f6ee;
      --ink: #f4f7f5;
      --soft: #d7ddd7;
      --muted: #aeb8b4;
      --text: #181a16;
      --text-soft: #4a4d45;
      --line: rgba(255, 255, 255, 0.12);
      --line-dark: rgba(24, 26, 22, 0.12);
      --gold: #d4a017;
      /* Même doré, deux surfaces : --gold sur fond sombre, --gold-ink dès que
         l'encre dorée se pose sur une carte claire (le #d4a017 y plafonne à 2,15). */
      --gold-ink: #8D7B22;
      --radius: 10px;
      --max: 1060px;
      --wide: 1060px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: "Inter", Arial, sans-serif;
      color: var(--ink);
      background: var(--bg);
      letter-spacing: 0;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      display: block;
      max-width: 100%;
    }

    .nav {
      position: sticky;
      top: 0;
      z-index: 10;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(17, 17, 17, 0.92);
      backdrop-filter: blur(18px);
    }

    .nav-inner {
      width: min(var(--wide), calc(100% - 64px));
      height: 68px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .brand {
      flex-shrink: 0;
    }
    .brand img {
      width: auto;
      height: 32px;
      max-width: none;
      flex-shrink: 0;
      object-fit: contain;
      display: block;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
    }


    .nav-links a {
      display: inline-flex;
      align-items: center;
      min-height: 36px;
      padding: 8px 10px;
      border-radius: 4px;
      color: var(--soft);
      font-size: 0.9rem;
      font-weight: 700;
      transition: color 160ms ease, background 160ms ease;
    }

    .nav-links a:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.08);
    }

    .nav-links a.nav-cta {
      color: #101418;
      background: #ffffff;
      border-radius: 6px;
      padding: 8px 14px;
      font-weight: 800;
      transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
      box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    }

    .nav-links a.nav-cta:hover {
      color: #101418;
      background: #f0f0f0;
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    }

    .hero {
      position: relative;
      width: min(var(--wide), calc(100% - 64px));
      min-height: auto;
      margin: 0 auto;
      padding: 58px 0 86px;
      display: grid;
      grid-template-columns: minmax(320px, 0.8fr) minmax(400px, 1fr);
      gap: 74px;
      align-items: end;
      background: var(--bg);
      box-shadow: 0 0 0 100vmax var(--bg);
      clip-path: inset(0 -100vmax);
      isolation: isolate;
    }

    .hero > * {
      position: relative;
      z-index: 1;
    }

    .hero > .company-save-button {
      z-index: 2;
    }

    .company-save-button.saved {
      color: #ffffff !important;
      border-color: rgba(255, 255, 255, 0.42) !important;
      background: rgba(255, 255, 255, 0.1) !important;
    }

    .eyebrow {
      width: fit-content;
      margin: 0 0 20px;
      padding: 0;
      border: 0;
      border-radius: 0;
      color: #f2d991;
      background: transparent;
      font-size: 0.72rem;
      font-weight: 820;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    h1,
    h2,
    h3,
    p {
      margin-top: 0;
    }

    h1 {
      max-width: 680px;
      margin-bottom: 24px;
      color: #fff;
      font-size: clamp(2.4rem, 4.8vw, 3.8rem);
      line-height: 0.9;
      font-weight: 820;
    }

    .hero-lead {
      max-width: 610px;
      margin-bottom: 28px;
      color: var(--soft);
      font-size: 1.05rem;
      line-height: 1.72;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 12px 16px;
      border-radius: 4px;
      color: #101418;
      background: #fff;
      font-weight: 800;
      transition: transform 160ms ease, background 160ms ease;
    }

    .btn:hover {
      transform: translateY(-1px);
      background: #f4f4f4;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .btn-secondary {
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: transparent;
    }

    .btn-secondary:hover {
      border-color: rgba(255, 255, 255, 0.34);
      background: rgba(255, 255, 255, 0.08);
    }

    .microcopy {
      margin: 14px 0 0;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .hero-art {
      position: relative;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #111;
      box-shadow: none;
      overflow: hidden;
      aspect-ratio: 1 / 1;
    }

    .hero-art::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      border-radius: inherit;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 -150px 120px rgba(10, 10, 10, 0.42);
    }

    .hero-art img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: 56% 50%;
    }

    .hero-art-caption {
      position: absolute;
      left: 18px;
      right: 18px;
      bottom: 18px;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 13px 14px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 4px;
      color: #fff;
      background: rgba(10, 10, 10, 0.46);
      backdrop-filter: blur(16px);
    }

    .hero-art-caption strong {
      display: block;
      margin-bottom: 2px;
      font-size: 0.95rem;
    }

    .hero-art-caption span span {
      color: rgba(255, 255, 255, 0.76);
      font-size: 0.8rem;
    }

    .hero-art-caption b {
      color: #f2d991;
      font-size: 0.82rem;
      white-space: nowrap;
    }

    .section {
      padding: 84px 0;
    }

    .section-light {
      position: relative;
      color: var(--text);
      background: var(--light);
      z-index: 1;
    }

    .section-dark {
      color: var(--ink);
      background: var(--bg);
    }

    .container {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    .sources-layout {
      display: grid;
      grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
      gap: 42px;
      align-items: center;
    }

    .sources-visual {
      margin: 0;
      border: 1px solid rgba(24, 26, 22, 0.12);
      border-radius: 8px;
      overflow: hidden;
      background: #ebe5d6;
    }

    .sources-visual img {
      width: 100%;
      height: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
    }

    .section-kicker {
      margin-bottom: 12px;
      color: var(--gold-ink);
      font-size: 0.78rem;
      font-weight: 820;
      text-transform: uppercase;
    }

    .section-dark .section-kicker {
      color: #f2d991;
    }

    .section-heading {
      max-width: var(--max);
      margin-bottom: 18px;
      font-size: clamp(1.9rem, 6.5vw, 2.7rem);
      line-height: 1.06;
      font-weight: 820;
    }

    .section-copy {
      max-width: var(--max);
      margin-bottom: 34px;
      color: var(--text-soft);
      font-size: 1rem;
      line-height: 1.66;
    }

    .section-dark .section-copy {
      color: var(--soft);
    }

    .topic-signals .section-copy {
      max-width: 860px;
      margin-bottom: 22px;
    }

    .topic-signal-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      align-items: stretch;
    }

    .topic-signal-column {
      min-width: 0;
      padding: 16px;
      border: 1px solid var(--line-dark);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.76);
    }

    .topic-signal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .topic-signal-head span {
      color: #101418;
      font-size: 0.82rem;
      font-weight: 800;
      letter-spacing: 0;
    }

    .topic-signal-head strong {
      display: inline-grid;
      min-width: 28px;
      height: 28px;
      place-items: center;
      border-radius: 999px;
      color: #fff;
      background: #101418;
      font-size: 0.78rem;
      font-weight: 800;
    }

    .topic-signal-column p {
      margin: 0 0 12px;
      color: var(--text-soft);
      font-size: 0.82rem;
      line-height: 1.45;
    }

    .topic-signal-list {
      gap: 8px;
      margin-top: 0;
    }

    /* Surface et géométrie : bloc CARTE DE FLUX en fin de fichier. */
    .topic-signal-list a {
      line-height: 1.4;
    }

    .topic-signal-more {
      display: inline-block;
      margin-top: 10px;
      color: #101418;
      font-size: 0.82rem;
      font-weight: 800;
      text-decoration: none;
    }

    .topic-signal-more:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
    }

    .card {
      min-height: 0;
      padding: 20px 22px;
      border: 1px solid var(--line-dark);
      border-radius: 6px;
      background: #fff;
      box-shadow: none;
    }

    .card-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 0;
    }

    .card-icon {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border: 1px solid rgba(24, 26, 22, 0.12);
      border-radius: 4px;
      color: #101418;
      background: #f5f6ee;
    }

    .card-icon svg {
      width: 19px;
      height: 19px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .card h3 {
      margin-bottom: 0;
      color: #101418;
      font-size: 1.14rem;
    }

    .card p {
      margin-bottom: 0;
      color: #4a4d45;
      line-height: 1.55;
    }

    .wide {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
      gap: 56px;
      align-items: center;
    }

    .usage-copy {
      min-width: 0;
    }

    .usage-art {
      margin: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: var(--surface);
    }

    .usage-art img {
      width: 100%;
      height: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      display: block;
    }

    .dark-list {
      display: grid;
      gap: 10px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .dark-list li {
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 6px;
      color: var(--soft);
      background: var(--surface);
      line-height: 1.52;
    }

    .seo-cluster {
      padding: 64px 0;
      color: var(--text);
      background: var(--light);
      border-top: 1px solid var(--line-dark);
    }

    .seo-cluster-inner {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    .seo-cluster h2 {
      margin: 0 0 18px;
      font-size: clamp(1.7rem, 4vw, 2.35rem);
      line-height: 1.05;
      color: #101418;
    }

    .seo-cluster ul {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .seo-cluster a {
      min-height: 56px;
      display: block;
      padding: 13px 14px;
      border: 1px solid rgba(24, 26, 22, 0.14);
      border-radius: 6px;
      color: #181a16;
      background: #fff;
      text-decoration: none;
      font-weight: 760;
    }

    .seo-cluster a:hover {
      border-color: rgba(24, 26, 22, 0.34);
      background: #f7f8f1;
    }

    .sector-radar {
      padding-top: 50px;
      padding-bottom: 56px;
      border-top: 1px solid rgba(24, 26, 22, 0.1);
      overflow: hidden;
    }

    .sector-radar .container {
      container-type: inline-size;
    }

    .sector-radar-layout {
      display: grid;
      grid-template-columns: minmax(260px, 0.38fr) minmax(420px, 0.62fr);
      grid-template-areas:
        "copy chart"
        "copy insights";
      gap: 18px;
      align-items: start;
    }

    .sector-radar-copy {
      grid-area: copy;
      min-width: 0;
    }

    .sector-radar-copy .section-heading {
      max-width: 760px;
      margin-bottom: 12px;
      font-size: clamp(1.65rem, 3.7vw, 2.25rem);
    }

    .sector-radar-copy .section-copy {
      max-width: 720px;
      margin-bottom: 20px;
    }

    .sector-radar-chart {
      border: 1px solid rgba(24, 26, 22, 0.12);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.86);
      color: #101418;
      box-shadow: 0 12px 34px rgba(24, 26, 22, 0.06);
      min-width: 0;
      overflow: hidden;
    }

    .sector-radar-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      max-width: 720px;
    }

    .sector-radar-pills span {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border: 1px solid rgba(24, 26, 22, 0.12);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.68);
      color: #30342d;
      font-size: 0.84rem;
      line-height: 1.15;
      white-space: nowrap;
    }

    .sector-radar-pills b {
      color: #866414;
      font-size: 0.68rem;
      font-weight: 820;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .sector-radar-score {
      grid-area: score;
      min-height: 174px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      text-align: center;
    }

    .sector-radar-score-label,
    .sector-radar-metric span {
      color: #6f756b;
      font-size: 0.72rem;
      font-weight: 820;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .sector-radar-score-ring {
      width: 104px;
      height: 104px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background:
        radial-gradient(circle at center, #fff 0 56%, transparent 57%),
        conic-gradient(var(--radar-color) var(--radar-score), #e7eadf 0);
      box-shadow: inset 0 0 0 1px rgba(24, 26, 22, 0.08);
    }

    .sector-radar-score-ring strong {
      color: var(--radar-color);
      font-size: 2.55rem;
      line-height: 0.95;
      font-weight: 820;
    }

    .sector-radar-score-status {
      max-width: 100%;
      color: #30342d;
      font-size: 0.84rem;
      font-weight: 760;
      line-height: 1.16;
      overflow-wrap: anywhere;
      text-align: center;
    }

    .sector-radar-metric {
      grid-area: metric;
      min-height: 174px;
      padding: 18px;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      align-items: center;
      row-gap: 12px;
    }

    .sector-radar-metric strong {
      display: block;
      align-self: center;
      font-size: clamp(2.65rem, 8cqi, 3.35rem);
      line-height: 0.86;
      font-weight: 820;
      letter-spacing: 0;
    }

    .sector-radar-metric em {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      color: #4a4d45;
      font-size: 0.9rem;
      font-style: normal;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .sector-radar-metric em::before {
      content: "";
      width: 8px;
      height: 8px;
      display: block;
      flex: 0 0 auto;
      margin-right: 0;
      border-radius: 50%;
      background: var(--gold);
    }

    .sector-radar-metric em.is-up::before { background: #22c55e; }
    .sector-radar-metric em.is-down::before { background: #ef4444; }

    .sector-radar-chart {
      grid-area: chart;
      min-height: 274px;
      padding: 24px 28px 18px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 16px;
    }

    .sector-radar-card-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      color: #6f756b;
      font-size: 0.78rem;
      font-weight: 820;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      min-width: 0;
    }

    .sector-radar-card-head b {
      min-width: 0;
      color: #30342d;
      font-size: 0.84rem;
      font-weight: 760;
      letter-spacing: 0;
      text-transform: none;
      white-space: nowrap;
    }

    .sector-radar-sparkline {
      width: 100%;
      height: 190px;
      display: block;
    }

    /* Courbe d'activite : ecrite en tokens, pas en couleurs figees. Elle etait
       calee sur un fond clair (trace #101418, grille et libelles sombres) et
       ne devait sa lisibilite en sombre qu'aux !important de sector-detail.css.
       Les pages secteur ne chargent plus cette feuille : la courbe doit tenir
       dans les deux themes par elle-meme. */
    .sector-radar-sparkline line {
      stroke: rgba(var(--w), 0.14);
      stroke-width: 1;
    }

    .sector-radar-sparkline .sector-radar-area {
      fill: rgba(var(--w), 0.07);
      stroke: none;
    }

    .sector-radar-sparkline .sector-radar-line {
      fill: none;
      stroke: var(--ink);
      stroke-width: 2.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .sector-radar-sparkline circle {
      fill: var(--card, #101010);
      stroke: var(--ink);
      stroke-width: 2.2;
    }

    .sector-radar-sparkline text {
      fill: var(--muted);
      font-family: "Inter", Arial, sans-serif;
      font-size: 10px;
      font-weight: 760;
    }

    .sector-radar-bars {
      grid-area: bars;
      margin: 0;
      padding: 18px;
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 14px;
    }

    .sector-radar-bars ul {
      min-width: 0;
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 13px;
      align-content: center;
    }

    .sector-radar-bar {
      display: grid;
      grid-template-columns: minmax(92px, 1fr) minmax(74px, 1fr) minmax(28px, auto) minmax(30px, auto);
      gap: 10px;
      align-items: center;
      color: #30342d;
      font-size: 0.82rem;
      font-weight: 760;
    }

    .sector-radar-bar-label {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .sector-radar-bar-track {
      height: 9px;
      overflow: hidden;
      border-radius: 99px;
      background: #e7eadf;
    }

    .sector-radar-bar-track i {
      display: block;
      height: 100%;
      width: var(--bar-width);
      min-width: 3px;
      border-radius: inherit;
      background: var(--bar-color);
    }

    .sector-radar-bar strong {
      text-align: right;
      font-size: 0.9rem;
    }

    .sector-radar-bar em {
      color: #6f756b;
      font-size: 0.78rem;
      font-style: normal;
      text-align: right;
    }

    .sector-radar-insights {
      grid-area: insights;
      min-height: 100%;
      padding: 24px;
      display: grid;
      align-content: start;
      gap: 16px;
      border: 1px solid rgba(24, 26, 22, 0.1);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.52);
      color: #101418;
      min-width: 0;
    }

    .sector-radar-insights-head {
      display: grid;
      gap: 8px;
      min-width: 0;
    }

    .sector-radar-insights > span,
    .sector-radar-insights-head > span {
      color: #866414;
      font-size: 0.72rem;
      font-weight: 820;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .sector-radar-insights > strong,
    .sector-radar-insights-head > strong {
      color: #101418;
      font-size: clamp(1.2rem, 2.2vw, 1.55rem);
      line-height: 1.05;
      font-weight: 840;
      letter-spacing: 0;
    }

    .sector-radar-insights > p,
    .sector-radar-insights-head > p {
      margin: 0;
      color: #30342d;
      font-size: 0.95rem;
      line-height: 1.48;
      font-weight: 620;
    }

    .sector-radar-insights ul {
      margin: 4px 0 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 10px;
    }

    .sector-radar-insights li {
      display: grid;
      grid-template-columns: minmax(86px, 0.38fr) minmax(0, 0.62fr);
      gap: 3px 14px;
      padding-top: 10px;
      border-top: 1px solid rgba(24, 26, 22, 0.1);
    }

    .sector-radar-insights li b {
      grid-row: 1 / span 2;
      align-self: start;
      min-width: 0;
      color: #6f756b;
      font-size: 0.68rem;
      font-weight: 820;
      letter-spacing: 0.06em;
      line-height: 1.2;
      text-transform: uppercase;
      overflow-wrap: anywhere;
    }

    .sector-radar-insights li span {
      color: #101418;
      font-size: 0.98rem;
      line-height: 1.18;
      font-weight: 820;
    }

    .sector-radar-insights li em {
      min-width: 0;
      color: #4a4d45;
      font-size: 0.78rem;
      font-style: normal;
      line-height: 1.28;
      overflow-wrap: anywhere;
    }

    @container (max-width: 700px) {
      .sector-radar-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
          "copy"
          "chart"
          "insights";
      }

      .sector-radar-chart {
        min-height: 190px;
        padding: 14px;
      }

      .sector-radar-sparkline {
        height: 138px;
      }

    }

    @container (max-width: 420px) {
      .sector-radar-card-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
      }

      .sector-radar-card-head b {
        white-space: normal;
      }

      .sector-radar-insights {
        padding: 18px;
      }

      .sector-radar-insights li {
        grid-template-columns: 1fr;
      }
    }

    .faq {
      display: grid;
      gap: 10px;
    }

    details {
      border: 1px solid var(--line-dark);
      border-radius: 6px;
      background: #fff;
    }

    summary {
      cursor: pointer;
      padding: 18px 20px;
      color: #101418;
      font-weight: 780;
    }

    details p {
      margin: 0;
      padding: 0 20px 20px;
      color: #4a4d45;
      line-height: 1.58;
    }

    .final-cta {
      padding: 78px 0;
      color: #fff;
      background: var(--bg);
      text-align: center;
    }

    .final-cta-inner {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    .final-cta h2 {
      margin: 0 0 16px;
      font-size: clamp(1.95rem, 6.5vw, 2.8rem);
      line-height: 1.04;
      font-weight: 820;
    }

    .final-cta p {
      margin: 0 auto 24px;
      color: var(--soft);
      line-height: 1.62;
    }

    .final-cta .actions {
      justify-content: center;
    }

    .directory-source-note {
      padding: 22px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      background: #0a0a0a;
      color: rgba(255, 255, 255, 0.72);
      font-size: 0.86rem;
    }

    .directory-source-note p {
      margin: 0;
      line-height: 1.55;
    }

    .directory-source-note a {
      color: #fff;
      font-weight: 720;
    }

    .official-footer {
      padding: 28px 0 30px;
      border-top: 1px solid rgba(24, 26, 22, 0.14);
      background: #f5f6ee;
      color: #6f756b;
      font-size: 0.94rem;
    }

    @media (max-width: 720px) { .seo-cluster { padding:58px 0; } .seo-cluster-inner { width:min(100% - 28px, var(--max)); } .seo-cluster ul { grid-template-columns:1fr; } }

    .footer-shell {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    /* ── Footer top : logo BizNC + nav pages principales ── */
    .footer-top {
      display: flex;
      align-items: center;
      gap: 32px;
      flex-wrap: wrap;
      padding: 36px 0 28px;
    }

    .footer-home-brand {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      transition: opacity 0.18s ease;
    }

    .footer-home-brand:hover {
      opacity: 0.65;
    }

    .footer-biznc-logo {
      display: block;
      height: 28px;
      width: auto;
    }

    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 2px;
      align-items: center;
    }

    .footer-nav-link {
      display: inline-flex;
      align-items: center;
      padding: 5px 12px;
      border-radius: 6px;
      font-size: 0.84rem;
      font-weight: 540;
      color: #5a5f57;
      letter-spacing: 0.01em;
      transition: color 0.16s ease, background 0.16s ease;
    }

    .footer-nav-link:hover {
      color: #101418;
      background: rgba(16, 20, 24, 0.07);
    }

    .footer-divider {
      height: 1px;
      background: linear-gradient(to right, rgba(24,26,22,0.14) 0%, rgba(24,26,22,0.06) 100%);
      margin-bottom: 24px;
    }

    /* ── Éléments contact/liens ── */
    .footer-contact,
    .footer-link,
    .footer-brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
    }

    .footer-contact {
      color: #20231f;
      font-weight: 680;
      margin-bottom: 24px;
    }

    .footer-icon {
      width: 22px;
      height: 22px;
      color: #8d9286;
      stroke: currentColor;
      stroke-width: 1.8;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex: 0 0 auto;
    }

    .footer-socials {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      padding: 0 0 14px;
    }

    .footer-socials a {
      min-width: 54px;
      height: 44px;
      display: inline-grid;
      place-items: center;
      padding: 0 14px;
      border: 1px solid rgba(24, 26, 22, 0.16);
      border-radius: 8px;
      color: #8d9286;
      background: rgba(255, 255, 255, 0.28);
      font-weight: 820;
      transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    }

    .footer-socials a:hover {
      color: #101418;
      border-color: rgba(24, 26, 22, 0.34);
      background: rgba(255, 255, 255, 0.55);
    }

    .footer-socials svg {
      width: 21px;
      height: 21px;
      fill: currentColor;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      padding: 16px 0 24px;
    }

    .footer-link {
      color: #5a5f57;
    }

    .footer-link:hover,
    .footer-brand:hover {
      color: #101418;
    }

    .footer-bottom {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 12px;
      padding-top: 16px;
      color: #5a5f57;
    }

    .footer-version {
      display: inline-flex;
      align-items: center;
      /* Pas de couleur en dur ici : le footer est crème sur les fiches et le
         blog, mais quasi noir sur radar.html et les pages légales. Un hex fixe
         échoue forcément d'un côté (#8d9286 donnait 2,9:1 sur crème, #5a5f57
         3,0:1 sur sombre). En héritant de .footer-bottom, la version suit la
         couleur déjà calibrée pour la surface qui la porte. */
      color: inherit;
    }

    .neonea-footer-logo {
      display: block;
      width: auto;
      height: 18px;
      flex: 0 0 auto;
    }

    @media (max-width: 880px) {
      .hero,
      .wide,
      .sources-layout,
      .grid {
        grid-template-columns: 1fr;
      }

      .sector-radar-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
          "copy"
          "chart"
          "insights";
      }

      .hero {
        min-height: auto;
        padding: 42px 0 56px;
      }

      .hero-art {
        max-width: 420px;
      }

      .sources-visual {
        max-width: 520px;
      }

      .usage-art {
        max-width: 520px;
      }

      .topic-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .nav-inner,
      .hero,
      .container,
      .footer-shell,
      .final-cta-inner {
        width: min(100% - 28px, var(--max));
      }

      h1 {
        font-size: clamp(2.18rem, 10vw, 3rem);
        line-height: 0.96;
      }

      .hero-lead {
        font-size: 1rem;
        line-height: 1.58;
      }

      .section {
        padding: 64px 0;
      }

      .sector-radar {
        padding-top: 46px;
        padding-bottom: 50px;
      }

      .sector-radar-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
          "copy"
          "chart"
          "insights";
      }

      .sector-radar-chart {
        min-height: 190px;
        padding: 14px;
      }

      .sector-radar-sparkline {
        height: 138px;
      }

      .actions {
        align-items: stretch;
        flex-direction: column;
      }

      .hero-art-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        align-items: flex-start;
        flex-direction: column;
      }

      .nav-inner {
        height: 60px;
        gap: 6px;
      }
      .brand img { height: 26px; }
      .nav-links { gap: 2px; }
      .nav-links a { padding: 6px 6px; font-size: 0.78rem; }
      .nav-links a.nav-cta { padding: 6px 10px; font-size: 0.78rem; }

      .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 28px 0 20px;
      }

      .footer-nav {
        gap: 4px;
      }

      .footer-nav-link {
        padding: 5px 10px;
        font-size: 0.82rem;
      }

      .topic-signal-grid {
        grid-template-columns: 1fr;
      }

      .topic-signal-column {
        padding: 14px;
      }
    }

    @media (max-width: 460px) {
      .sector-radar-copy .section-heading {
        font-size: 1.55rem;
      }

      .sector-radar-card-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
      }

      .sector-radar-card-head b {
        white-space: normal;
      }

      .sector-radar-pills span {
        width: 100%;
        justify-content: space-between;
        white-space: normal;
      }
    }

    /* ===================================================================
       Satellite extensions — listes d'items, grille blog, corps d'article
       =================================================================== */

    .breadcrumb {
      width: min(var(--max), calc(100% - 64px));
      margin: 18px auto 0;
      color: #8f9894;
      font-size: 0.78rem;
      font-weight: 700;
    }
    .breadcrumb a { color: #c6cfca; }
    .breadcrumb a:hover { color: #fff; }

    /* Cards (sector landing pages) — white cards over light/dark sections */
    .sat-cards {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin: 0;
      padding: 0;
    }
    @media (min-width: 720px) {
      .sat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    .sat-card {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 16px;
      padding: 18px 20px;
      border: 1px solid rgba(24, 26, 22, 0.12);
      border-radius: 8px;
      background: #fff;
      color: #101418;
      text-decoration: none;
      transition: border-color 0.16s ease, transform 0.16s ease;
    }
    .sat-card:hover {
      border-color: rgba(24, 26, 22, 0.36);
      transform: translateY(-1px);
    }
    .sat-card-icon {
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border: 1px solid rgba(24, 26, 22, 0.12);
      border-radius: 6px;
      color: #101418;
      background: #f5f6ee;
    }
    .sat-card-icon svg {
      width: 22px;
      height: 22px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .sat-card-icon svg.material-icon {
      fill: currentColor !important;
      stroke: none !important;
    }
    .sat-card-content {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }
    .sat-card-title {
      font-weight: 760;
      line-height: 1.35;
      color: #101418;
      overflow: hidden;
    }
    /* When a .sat-list is wrapped in a .sat-card, neutralize the wrapper so each li renders as its own card */
    .sat-card:has(> .sat-list) {
      display: contents;
      border: 0;
      padding: 0;
      background: transparent;
    }
    .company-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 6px;
    }
    .company-chip {
      display: inline-block;
      padding: 2px 8px;
      border: 1px solid rgba(0,0,0,.18);
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 600;
      color: inherit;
      text-decoration: none;
      background: transparent;
    }
    .company-chip--linked {
      border-color: #fff;
      background: #fff;
      color: #0a0a0a;
    }
    .company-chip--linked:visited {
      color: #0a0a0a;
    }
    /* Chips de navigation des pages /annuaire/ (secteur×commune, maillage interne) */
    .sat-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 8px;
    }
    .sat-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 12px;
      border: 1px solid rgba(24, 26, 22, 0.16);
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 600;
      color: #101418;
      text-decoration: none;
      background: #fff;
      transition: border-color 0.16s ease, transform 0.16s ease;
    }
    .sat-chip:hover {
      border-color: rgba(24, 26, 22, 0.42);
      transform: translateY(-1px);
    }
    .sat-chip-count {
      font-size: 0.72rem;
      font-weight: 700;
      color: #6f756b;
    }
    .section-dark .sat-chip {
      color: var(--ink, #f6f6f2);
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(255, 255, 255, 0.18);
    }
    .section-dark .sat-chip:hover { border-color: rgba(255, 255, 255, 0.42); }
    .section-dark .sat-chip-count { color: rgba(255, 255, 255, 0.6); }
    .sat-cat-title {
      margin: 36px 0 4px;
      color: #101418;
      font-size: 1.15rem;
      font-weight: 820;
    }

    .tool-title-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 2px;
    }
    .tool-tag {
      display: inline-flex;
      align-items: center;
      padding: 1px 8px;
      font-size: 0.66rem;
      font-weight: 600;
      color: #686c62;
      background: transparent;
      border: 1px solid rgba(24, 26, 22, 0.18);
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      line-height: 1.4;
    }

    /* Tags publications légales */
    .publeg-title-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 2px;
    }
    .publeg-tag {
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
      padding: 2px 7px;
      font-size: 0.64rem;
      font-weight: 700;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      line-height: 1.4;
      border: 1px solid;
    }
    .publeg-tag-creation   { color: #1a6e3a; background: #e8f7ed; border-color: #a8ddb8; }
    .publeg-tag-modification { color: #1a4a8a; background: #e8f0fb; border-color: #a8c4f0; }
    .publeg-tag-dissolution { color: #8a1a1a; background: #fbe8e8; border-color: #f0a8a8; }
    .publeg-tag-liquidation { color: #7a3a00; background: #fdf0e5; border-color: #f0c890; }
    .publeg-tag-cession     { color: #4a1a7a; background: #f2e8fc; border-color: #c8a8f0; }
    .publeg-tag-default     { color: #4a5045; background: #f0f1ec; border-color: #c8ccc4; }
    .publeg-title-text {
      color: #101418;
      font-weight: 760;
      line-height: 1.4;
    }

    .post-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }
    .post-card {
      display: block;
      padding: 22px 24px;
      border: 1px solid var(--line-dark);
      border-radius: 6px;
      background: #fff;
      text-decoration: none;
      color: inherit;
      transition: border-color 0.16s ease;
    }
    .post-card:hover { border-color: rgba(24, 26, 22, 0.34); }
    .post-card .post-date {
      display: block;
      margin-bottom: 8px;
      color: var(--gold-ink);
      font-size: 0.74rem;
      font-weight: 820;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .post-card .post-title {
      display: block;
      margin-bottom: 8px;
      color: #101418;
      font-size: 1.16rem;
      font-weight: 820;
      line-height: 1.26;
    }
    .post-card .post-excerpt {
      display: block;
      color: #4a4d45;
      font-size: 0.95rem;
      line-height: 1.55;
    }

    .article-wrap {
      width: min(740px, calc(100% - 40px));
      margin: 0 auto;
      padding: 56px 0 30px;
    }
    .article-meta {
      margin-bottom: 26px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .article-body { color: var(--soft); font-size: 1.06rem; line-height: 1.75; }
    .article-body h2 { color: #fff; font-size: 1.5rem; margin: 38px 0 14px; line-height: 1.2; }
    .article-body h3 { color: #fff; font-size: 1.2rem; margin: 28px 0 10px; }
    .article-body p { margin: 0 0 18px; }
    .article-body ul, .article-body ol { margin: 14px 0 22px 22px; }
    .article-body li { margin-bottom: 8px; }
    .article-body a { color: #f2d991; overflow-wrap: anywhere; }
    .article-body strong { color: #fff; }
    .article-body hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
    .chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .chip {
      padding: 5px 11px;
      border: 1px solid var(--line);
      border-radius: 20px;
      color: var(--soft);
      font-size: 0.8rem;
      font-weight: 600;
    }
    .article-video {
      margin: 0 auto 30px;
      max-width: 420px;
    }
    .article-video .frame {
      position: relative;
      aspect-ratio: 9 / 16;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: #111;
    }
    .article-video iframe { width: 100%; height: 100%; border: 0; display: block; }
    .article-video figcaption {
      margin-top: 8px;
      color: var(--muted);
      font-size: 0.78rem;
      text-align: center;
    }

    @media (max-width: 720px) {
      .post-grid { grid-template-columns: 1fr; }
      .breadcrumb { width: min(100% - 28px, var(--max)); }
    }

    /* Hero sans illustration (pages satellites) */
    .hero.hero-solo { grid-template-columns: 1fr; padding-bottom: 64px; }
.hero.hero-satellite{width:min(1320px,calc(100% - 2 * clamp(16px,4vw,48px)));max-width:none;min-height:calc(100svh - 68px);margin:auto;padding:clamp(54px,8vw,112px) 0;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:clamp(44px,8vw,120px);align-items:center}.hero.hero-satellite h1{max-width:900px;font-size:clamp(54px,7vw,104px);line-height:.91;letter-spacing:-.07em;overflow-wrap:anywhere}.hero.hero-satellite .hero-lead{max-width:610px;font-size:clamp(18px,1.7vw,24px);color:#aaaab0}.sat-hero-visual{position:relative;min-height:560px;display:grid;place-items:center;overflow:hidden}.sat-radar{position:relative;width:min(500px,92%);aspect-ratio:1;border:1px solid #29292d;border-radius:50%;overflow:hidden;background:#050505}.sat-ring{position:absolute;inset:50%;border:1px solid #29292d;border-radius:50%;transform:translate(-50%,-50%)}.sat-ring.r1{width:34%;height:34%}.sat-ring.r2{width:66%;height:66%}.sat-radar:before,.sat-radar:after{content:"";position:absolute;background:#222225}.sat-radar:before{width:1px;height:100%;left:50%}.sat-radar:after{height:1px;width:100%;top:50%}.sat-sweep{position:absolute;inset:50% 50% 0 0;transform-origin:100% 0;background:conic-gradient(from 270deg at 100% 0,rgba(255,255,255,.22),transparent 32deg);animation:sat-scan 7s linear infinite}.sat-signal{position:absolute;width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 0 7px rgba(255,255,255,.07);animation:sat-ping 3.4s ease-in-out infinite}.sat-signal.s1{left:27%;top:31%}.sat-signal.s2{right:20%;top:48%;animation-delay:1.1s}.sat-signal.s3{left:46%;bottom:20%;animation-delay:2.2s}.sat-radar b{position:absolute;left:50%;bottom:12%;transform:translateX(-50%);font-size:10px;letter-spacing:.16em;color:#77777d;white-space:nowrap}.sat-stream{position:absolute;right:0;bottom:7%;width:44%;padding:18px;border:1px solid #29292d;border-radius:7px;background:rgba(8,8,9,.94)}.sat-stream i{display:block;height:1px;margin:14px 0;background:linear-gradient(90deg,#77777d 0 18%,#303034 18% 100%);animation:sat-line 4s ease-in-out infinite}@keyframes sat-scan{to{transform:rotate(360deg)}}@keyframes sat-ping{0%,35%,100%{opacity:.18;transform:scale(.65)}45%,72%{opacity:1;transform:scale(1)}}@keyframes sat-line{50%{transform:translateX(7px);opacity:.55}}@media(max-width:880px){.hero.hero-satellite{min-height:auto;grid-template-columns:1fr;padding-top:36px;gap:26px}.sat-hero-visual{min-height:390px;order:-1}.sat-radar{width:min(380px,88%)}}@media(max-width:520px){.hero.hero-satellite h1{font-size:clamp(45px,14vw,68px)}.sat-hero-visual{min-height:300px}}@media(prefers-reduced-motion:reduce){.sat-sweep,.sat-signal,.sat-stream i{animation:none!important}}

    /* Bloc éditorial (texte long sur fond sombre) */
    .editorial {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
      padding: 4px 0 8px;
    }
    .editorial h2 {
      margin: 30px 0 12px;
      color: #fff;
      font-size: clamp(1.6rem, 4vw, 2.1rem);
      line-height: 1.12;
      font-weight: 820;
    }
    .editorial h3 { margin: 24px 0 8px; color: #fff; font-size: 1.15rem; font-weight: 780; }
    .editorial p { margin: 0 0 14px; color: var(--soft); line-height: 1.7; }
    .editorial p:last-child { margin-bottom: 0; }
    .editorial .legal-table {
      width: 100%;
      margin: 22px 0 28px;
      border-collapse: collapse;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 8px;
      overflow: hidden;
      font-size: 0.9rem;
    }
    .editorial .legal-table th,
    .editorial .legal-table td {
      padding: 12px 14px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      vertical-align: top;
      text-align: left;
    }
    .editorial .legal-table th {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      font-weight: 760;
    }
    .editorial .legal-table td {
      color: var(--soft);
      line-height: 1.55;
    }
    .editorial .legal-table tr:last-child td { border-bottom: 0; }
    .editorial .legal-table strong { color: #fff; }
    @media (max-width: 720px) {
      .editorial .legal-table,
      .editorial .legal-table thead,
      .editorial .legal-table tbody,
      .editorial .legal-table tr,
      .editorial .legal-table th,
      .editorial .legal-table td {
        display: block;
      }
      .editorial .legal-table thead { display: none; }
      .editorial .legal-table tr {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
      }
      .editorial .legal-table tr:last-child { border-bottom: 0; }
      .editorial .legal-table td {
        padding: 5px 14px;
        border-bottom: 0;
      }
      .editorial .legal-table td:nth-child(2)::before {
        content: "Apport : ";
        color: #fff;
        font-weight: 760;
      }
      .editorial .legal-table td:nth-child(3)::before {
        content: "Usage : ";
        color: #fff;
        font-weight: 760;
      }
    }

    .article-wrap h1 {
      max-width: none;
      margin: 0 0 14px;
      color: #fff;
      font-size: clamp(2rem, 4.5vw, 3rem);
      line-height: 1.06;
      font-weight: 820;
    }

    /* ===================================================================
       VEILLE landing pages (SEO/GEO acquisition family)
       GEO answer block + inline contextual signup form
       =================================================================== */
    .container.narrow { width: min(720px, calc(100% - 40px)); }

    .geo-answer .geo-lead {
      max-width: 760px;
      margin: 8px 0 28px;
      font-size: 1.2rem;
      line-height: 1.55;
      color: var(--text);
    }
    .geo-facts {
      display: grid;
      gap: 18px;
      max-width: 820px;
      margin: 0;
    }
    .geo-facts dt {
      margin: 0 0 4px;
      font-weight: 800;
      color: var(--text);
      font-size: 1.02rem;
    }
    .geo-facts dd {
      margin: 0;
      color: var(--text-soft);
      line-height: 1.6;
    }

    .btn.btn-ghost {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.28);
      color: #fff;
    }
    .btn.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }

    .signup-inline-lead {
      max-width: 620px;
      margin: 6px 0 24px;
      color: var(--soft);
      line-height: 1.6;
    }
    .signup-inline .form-card {
      padding: 28px;
      border: 1px solid var(--line-dark);
      border-radius: 6px;
      color: var(--text);
      background: #f4efe3;
      text-align: left;
    }
    .signup-inline .field { margin-bottom: 16px; }
    .signup-inline label {
      display: block;
      margin-bottom: 8px;
      color: #101418;
      font-size: 0.92rem;
      font-weight: 780;
    }
    .signup-inline input,
    .signup-inline textarea {
      width: 100%;
      min-height: 50px;
      padding: 12px 13px;
      border: 1px solid rgba(23, 33, 44, 0.18);
      border-radius: 4px;
      color: #101418;
      background: #fff;
      font: inherit;
      font-size: 1rem;
    }
    .signup-inline textarea { min-height: 92px; resize: vertical; }
    .signup-inline input:focus,
    .signup-inline textarea:focus {
      outline: 3px solid color-mix(in srgb, var(--gold-ink) 20%, transparent);
      border-color: var(--gold-ink);
    }
    .signup-inline .btn {
      width: 100%;
      min-height: 52px;
      border: 0;
      border-radius: 4px;
      color: #fff;
      background: #101418;
      font-weight: 820;
      cursor: pointer;
    }
    .signup-inline .reassurance {
      margin: 14px 0 0;
      color: #65706b;
      font-size: 0.9rem;
      text-align: center;
    }
    .signup-inline .honeypot {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    /* ===== Alerte entreprise / organisme (modal partagé, cf. scripts/lib/entity_alert.js) ===== */
    .company-alert-modal{position:fixed;inset:0;z-index:210;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.62);backdrop-filter:blur(3px)}
    .company-alert-modal[aria-hidden="false"]{display:flex}
    .company-alert-dialog{position:relative;width:min(100%,460px);padding:26px 26px 24px;background:var(--card);border:1px solid var(--hair);border-radius:14px;color:var(--ink);box-shadow:0 24px 80px rgba(0,0,0,.5)}
    .company-alert-close{position:absolute;top:12px;right:12px;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#4a4d45;font-size:28px;line-height:1;cursor:pointer}
    .company-alert-close:hover{background:rgba(var(--w),.08);color:var(--ink);border-color:var(--hair)}
    .company-alert-close:focus-visible{outline:2px solid #181a16;outline-offset:2px}
    .company-alert-dialog h2{margin:0 40px 8px 0;color:var(--ink);font-size:1.06rem;font-weight:700;letter-spacing:-.01em;line-height:1.3}
    .company-alert-dialog p{margin:0 0 18px;color:var(--muted);font-size:.88rem;line-height:1.6}
    .company-alert-form{display:grid;gap:12px}
    .company-alert-form label{color:var(--soft);font-size:.83rem;font-weight:600}
    .company-alert-form input[type="email"]{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--hair);border-radius:8px;background:var(--card-2);color:var(--ink);font:inherit;box-sizing:border-box}
    .company-alert-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:4px}
    .company-alert-actions .btn-secondary{color:var(--soft);border-color:var(--hair);background:transparent}
    .company-alert-actions .btn-secondary:hover{color:var(--ink);background:rgba(var(--w),.07);border-color:rgba(var(--w),.3)}
    .company-alert-status{min-height:20px;margin:2px 0 0;color:var(--muted);font-size:.84rem;line-height:1.45}
    .company-alert-status.error{color:#8a2f2f}
    .company-alert-status.success{color:#1f7a3d}
    /* En sombre, les verts et rouges sombres passent sous 4.5:1 sur la carte : nuances claires. */
    :root[data-theme="dark"] .company-alert-status.error{color:#f29b9b}
    :root[data-theme="dark"] .company-alert-status.success{color:#7fd39a}
    .company-alert-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
    .company-alert-icon{width:18px;height:18px;flex:0 0 18px;margin-right:8px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:none;vertical-align:middle}
    .company-hero .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
    .company-hero .actions .btn{display:inline-flex;align-items:center}
    @media (max-width:560px){.company-alert-dialog{padding:42px 22px 22px}.company-alert-actions{flex-direction:column-reverse;align-items:stretch}.company-alert-actions .btn{width:100%;text-align:center}}

    /* Cartes « Réseaux sociaux » — mêmes classes sur les trois familles de fiches
       (scripts/lib/social_profiles.js) ; sur /societes/ le CSS est dupliqué inline
       dans build_company_page.js, qui redéfinit .sat-card et ne peut pas le réutiliser.
       Calques sur .sat-card : même géométrie, même pastille d'icône, même survol. */
    .social-cards{display:grid;grid-template-columns:1fr;gap:12px;margin:8px 0 0}
    @media (min-width:720px){.social-cards{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}}
    .social-card{display:flex;flex-direction:row;align-items:center;gap:16px;padding:18px 20px;border:1px solid var(--line-dark);border-radius:8px;background:#fff;color:#101418;text-decoration:none;transition:border-color .16s ease,transform .16s ease}
    .social-card:hover{border-color:rgba(24,26,22,.36);transform:translateY(-1px)}
    .social-card-icon{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border:1px solid var(--line-dark);border-radius:6px;background:#f5f6ee;color:#101418}
    .social-card-icon .social-icon{width:20px;height:20px;fill:currentColor}
    .social-card-body{display:flex;flex-direction:column;gap:4px;min-width:0}
    .social-card-title{font-weight:760;line-height:1.35}
    .social-card-meta{color:#6f756b;font-size:.84rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .section-dark .social-card{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.18);color:#eef1ee}
    .section-dark .social-card:hover{border-color:rgba(255,255,255,.36)}
    .section-dark .social-card-icon{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18);color:#eef1ee}
    .section-dark .social-card-meta{color:rgba(255,255,255,.6)}

    /* Bloc site officiel */
    .website-block {
      display: flex;
      align-items: center;
      gap: 18px;
      margin: 8px 0 0;
      padding: 22px 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      text-decoration: none;
      color: inherit;
      transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    }
    .website-block:hover,
    .website-block:focus-visible {
      border-color: rgba(255, 255, 255, 0.28);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
      transform: translateY(-2px);
      outline: none;
    }
    .website-block:hover .website-cta {
      background: #f4f4f4;
      transform: translateY(-1px);
      color: #101418;
    }
    .website-block img.favicon {
      width: 48px; height: 48px;
      border-radius: 6px;
      flex: 0 0 48px;
      background: #fff;
      padding: 4px;
    }
    .website-block .website-meta { flex: 1; min-width: 0; }
    .website-block .website-url {
      color: #fff;
      font-weight: 800;
      font-size: 1.05rem;
      word-break: break-all;
    }
    .website-block .website-desc {
      margin-top: 6px;
      color: var(--soft);
      font-size: 0.95rem;
      line-height: 1.55;
    }
    .website-block .website-cta { flex: 0 0 auto; }

/* Badge de notation externe pour outils BDD */
.tool-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #1e293b;
  text-decoration: none !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
  cursor: pointer;
  vertical-align: middle;
}
.tool-rating-badge:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}
.tool-rating-star { color: #d97706; font-size: 0.8rem; line-height: 1; }
.tool-rating-val { font-weight: 700; color: #0f172a; }
.tool-rating-source { font-size: 0.68rem; color: #64748b; font-weight: 500; margin-left: 2px; }
.tool-rating-source::before { content: "·"; margin-right: 4px; opacity: 0.5; }




    /* =====================================================================
       Système de fiches — nouvelle direction artistique (bento).
       Ajout PUREMENT ADDITIF : aucune classe existante n'est redéfinie.
       .btn-ghost coexiste avec .btn.btn-ghost (spécificité supérieure).
       Utilisé par build_company_page.js et les builders d'entités.
       ===================================================================== */

:root { --card: #101010; --card-2: #141414; --hair: rgba(var(--w),0.09); }
main.fiche { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 8px 0 72px; display: grid; gap: 16px; }
@media (max-width: 720px) { main.fiche { width: min(100% - 28px, var(--max)); } }
.panel {
      background: var(--card);
      border: 1px solid var(--hair);
      border-radius: 14px;
    }
.panel-pad { padding: 22px 24px; }
@media (max-width: 560px) { .panel-pad { padding: 18px 18px; } }
/* Bento sans trou. Deux règles suffisent :
       - pas d'align-items:start, donc les cartes d'une même ligne s'étirent à la
         même hauteur (plus de vide sous la plus courte) ;
       - un panneau masqué sort du flux, les suivants remontent, et si le nombre
         de cartes visibles est impair la dernière prend toute la largeur (.span-2,
         posée par layoutBento() puisque :nth-child compte aussi les masquées). */
    .bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bento > section.span-2 { grid-column: 1 / -1; }
/* Colonne empilée (Contact + Presence en ligne) posee face a la carte : deux
   cadres courts qui tiennent une seule cellule du bento. */
.bento > .panel-stack { display: flex; flex-direction: column; gap: 16px; align-self: start; min-width: 0; }
.bento > .panel-stack > .panel { margin: 0; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }
/* Pas d'align-items:start : les deux cartes de la ligne héros s'étirent à la
       même hauteur, sinon la ligne suivante démarre en décalé d'un côté. */
    .grid-hero { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-hero { grid-template-columns: 1fr; } }
.panel-title {
      display: flex; align-items: center; gap: 10px;
      margin: 0 0 18px;
      font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
    }
.panel-title svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.panel-sub { margin: -12px 0 18px 28px; color: var(--muted); font-size: 0.86rem; }
/* ---------- Hero ---------- */
    .hero-card { position: relative; display: grid; grid-template-columns: 176px minmax(0, 1fr); overflow: hidden; }
@media (max-width: 700px) { .hero-card { grid-template-columns: 1fr; } }
.hero-logo {
      display: grid; place-items: start center;
      padding: 44px 24px 24px;
      background: radial-gradient(120% 120% at 20% 0%, rgba(var(--w),0.06), rgba(var(--w),0) 60%), #0d0d0d;
      border-right: 1px solid var(--hair);
    }
@media (max-width: 700px) { .hero-logo { border-right: 0; border-bottom: 1px solid var(--hair); padding: 26px; } }
.hero-logo img { width: 100%; max-width: 116px; height: auto; opacity: 0.92; }
/* Favicon de site (souvent 16x16, fond blanc) : on l'enchâsse dans une
       pastille blanche à liseré et coins arrondis plutôt que de l'agrandir. */
    .hero-logo img.hero-favicon {
      width: 46px; max-width: 46px; height: 46px; padding: 6px;
      box-sizing: border-box; object-fit: contain; opacity: 1;
      background: rgba(var(--w),0.07); border: 1px solid var(--hair); border-radius: 9px;
    }
    /* Emblème des pages listing : même créneau, même gabarit que le favicon
       d'une fiche société (.hero-favicon) et que l'initiale de repli. */
    .hero-emblem {
      display: grid; place-items: center;
      width: 46px; height: 46px; padding: 9px;
      box-sizing: border-box;
      border: 1px solid var(--hair); border-radius: 9px;
      background: rgba(var(--w),0.07); color: var(--ink);
    }
    .hero-emblem svg { width: 100%; height: 100%; display: block; fill: currentColor; }

    .hero-initial {
      display: grid; place-items: center;
      width: 46px; height: 46px;
      box-sizing: border-box;
      border: 1px solid var(--hair); border-radius: 9px;
      background: rgba(var(--w),0.07); color: var(--ink);
      font-size: 1.35rem; font-weight: 800; line-height: 1;
    }
.hero-body { padding: 26px 26px 22px; min-width: 0; }
.hero-kicker { margin: 0 0 8px; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-body h1 { margin: 0 0 10px; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero-naf { margin: 0 0 6px; color: var(--soft); font-size: 0.95rem; }
.hero-place { margin: 0 0 14px; color: var(--muted); font-size: 0.82rem; }
.hero-place span + span::before { content: "•"; margin: 0 6px; color: rgba(var(--w),0.28); }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.chip-ridet { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.02em; }
.hero-desc { margin: 0 0 20px; max-width: 52ch; color: var(--soft); font-size: 0.95rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.hero-meta { margin: 0; color: rgba(var(--w),0.5); font-size: 0.76rem; }
.btn-ghost {
      display: inline-flex; align-items: center; gap: 9px;
      padding: 10px 13px;
      border: 1px solid rgba(var(--w),0.16); border-radius: 8px;
      background: rgba(var(--w),0.03);
      color: var(--ink); font-size: 0.8rem; font-weight: 600; font-family: inherit;
      cursor: pointer;
      transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
    }
.btn-ghost:hover { background: rgba(var(--w),0.07); border-color: rgba(var(--w),0.3); transform: translateY(-1px); }
.btn-ghost:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn-ghost.is-cta {
      border-color: #fff; background: #fff; color: #101418; font-weight: 700;
      box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    }
.btn-ghost.is-cta:hover { background: #f0f0f0; border-color: #f0f0f0; box-shadow: 0 3px 10px rgba(0,0,0,0.22); }
.btn-ghost.is-cta:focus-visible { outline-offset: 3px; }
.btn-ghost svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.save-btn {
      position: absolute; top: 18px; right: 18px;
      width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0;
      border: 1px solid rgba(var(--w),0.14); border-radius: 9px;
      background: rgba(var(--w),0.03); color: var(--soft); cursor: pointer;
      transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    }
.save-btn:hover { background: rgba(var(--w),0.08); border-color: rgba(var(--w),0.3); color: #fff; }
.save-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.save-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.save-btn.saved { color: #fff; border-color: rgba(var(--w),0.4); }
.save-btn.saved svg { fill: currentColor; }
/* ---------- Informations clés ---------- */
    .kv { display: grid; gap: 0; }
/* Libellé dimensionné sur son texte (il est en nowrap), valeur sur le reste
       avec min-width 0 : une valeur longue passe à la ligne au lieu de
       chevaucher le libellé. */
    .kv-row { display: grid; grid-template-columns: 20px auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--hair); }
.kv-row:first-child { border-top: 0; }
.kv-row svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.establishment-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.establishment-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}
.establishment-list li:first-child { border-top: 0; }
.establishment-name {
  min-width: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.establishment-place {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}
.establishment-activity {
  grid-column: 1 / -1;
  color: var(--soft);
  font-size: 0.8rem;
  line-height: 1.4;
}
@media (max-width: 460px) {
  .establishment-list li { grid-template-columns: 1fr; }
  .establishment-place { text-align: left; }
}
.kv-label { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.kv-value { color: var(--ink); font-size: 0.84rem; font-weight: 600; text-align: right; }
address.kv-value { font-style: normal; }
/* Une valeur peut porter un lien (le secteur) : il reste dans la couleur de la
       colonne et sans soulignement, pour ne pas rompre la lecture du tableau. */
    .kv-value a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.kv-value a:hover { color: #fff; border-bottom-color: rgba(var(--w),0.35); }
:root[data-theme="light"] .kv-value a:hover { color: #000; }
.panel-note { margin: 16px 0 0; color: rgba(var(--w),0.5); font-size: 0.74rem; }
.formation-provider-panel .panel-copy { margin: 0 0 16px; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.formation-dfpc { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card-2); }
.formation-dfpc span { color: var(--muted); font-size: 0.78rem; }
.formation-dfpc strong { color: var(--ink); font-size: 0.9rem; font-weight: 650; text-align: right; }
.formation-subtitle { margin: 18px 0 10px; color: var(--ink); font-size: 0.86rem; font-weight: 650; }
.formation-provider-panel .tag-list li { font-size: 0.76rem; }
.formation-details { border: 1px solid var(--hair); border-radius: 10px; background: var(--card-2); }
.formation-details summary { cursor: pointer; padding: 12px 14px; color: var(--ink); font-size: 0.82rem; font-weight: 650; }
.formation-details .tag-list { padding: 0 14px 14px; }
.formation-warning { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
@media (max-width: 460px) {
  .formation-dfpc { align-items: flex-start; flex-direction: column; gap: 4px; }
  .formation-dfpc strong { text-align: left; }
}
/* ---------- Localisation ---------- */
    /* Carte MapLibre sur fond Protomaps auto-hébergé. Le conteneur garde sa
       hauteur avant l'initialisation différée, pour que la page ne saute pas
       sous le doigt du visiteur quand la carte apparaît. */
    .map-address { display: flex; align-items: flex-start; gap: 10px; font-style: normal; margin: 0 0 16px; color: var(--ink); font-size: 0.92rem; font-weight: 600; line-height: 1.5; }
.map-address svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.map-figure { position: relative; isolation: isolate; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(var(--w),0.14); background: #f6f6f4; }
.map-canvas { width: 100%; height: clamp(280px, 42vw, 360px); background: #f6f6f4; }
:root[data-theme="dark"] .map-canvas { background: #1a1c1a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-canvas { background: #1a1c1a; } }
/* Pendant le chargement, un état calme occupe exactement la place du plan. */
    .map-status {
      position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
      padding: 24px; background: #f6f6f4; color: #6b6f6a; text-align: center;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }
:root[data-theme="dark"] .map-status { background: #1a1c1a; color: #a9aea6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-status { background: #1a1c1a; color: #a9aea6; } }
.map-status-inner { display: grid; justify-items: center; gap: 10px; max-width: 280px; font-size: 0.78rem; line-height: 1.45; }
.map-status-spinner { width: 24px; height: 24px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: map-spin 0.8s linear infinite; }
.map-figure.is-ready .map-status { opacity: 0; visibility: hidden; pointer-events: none; }
.map-figure.has-error .map-status { background: transparent; }
.map-figure.has-error .map-status-spinner { display: none; }
.map-figure.has-error .map-status-copy { color: var(--ink); font-weight: 650; }
@keyframes map-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .map-status-spinner { animation: none; border-right-color: currentColor; opacity: 0.45; } }
/* Repère monochrome : il désigne un lieu sans emprunter la couleur rouge,
       réservée aux erreurs dans la direction artistique BizNC. */
    .map-pin {
      position: relative; display: block;
      width: 20px; height: 20px;
      border-radius: 50%;
      background: #181a16;
      border: 3px solid #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.38), 0 0 0 1px rgba(0,0,0,0.12);
      cursor: default;
    }
:root[data-theme="dark"] .map-pin { background: #f4f5f1; border-color: #181a16; box-shadow: 0 2px 8px rgba(0,0,0,0.72), 0 0 0 1px rgba(255,255,255,0.24); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-pin { background: #f4f5f1; border-color: #181a16; box-shadow: 0 2px 8px rgba(0,0,0,0.72), 0 0 0 1px rgba(255,255,255,0.24); } }
/* Point approximatif : un halo, pour ne pas suggérer une précision au mètre. */
    .map-pin.is-approx::after {
      content: ''; position: absolute; z-index: -1; left: 50%; top: 50%;
      width: 72px; height: 72px; margin: -36px 0 0 -36px;
      border-radius: 50%;
      background: rgba(24,26,22,0.11);
      border: 1px solid rgba(24,26,22,0.24);
    }
:root[data-theme="dark"] .map-pin.is-approx::after { background: rgba(244,245,241,0.1); border-color: rgba(244,245,241,0.22); }
/* Libellé au survol du repère, commun aux cartes de fiche et d'annuaire.
   Il remplace l'attribut `title` : celui-ci met une seconde à apparaître,
   n'existe ni au clavier ni au toucher, et ne se style pas. */
.map-pin { cursor: pointer; }
.map-pin-label {
  position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  max-width: 220px; width: max-content;
  padding: 5px 9px; border-radius: 7px;
  background: #181a16; color: #f4f5f1;
  font-size: 0.74rem; font-weight: 650; line-height: 1.3; text-align: center;
  white-space: normal; overflow-wrap: anywhere;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.map-pin:hover .map-pin-label,
.map-pin:focus-visible .map-pin-label { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .map-pin-label { transition: none; } }
/* Sur un repère survolé, le libellé doit passer devant les repères voisins. */
.maplibregl-marker:hover, .maplibregl-marker:focus-within { z-index: 3; }
/* ---------- Carte multi-points des pages d'annuaire ---------- */
/* Un repère par société géocodée. Deux états seulement : la société a une
   fiche BizNC (repère plein, comme sur les fiches) ou non (repère creux). Le
   repère est un vrai <button> : il s'atteint au clavier et annonce le nom. */
.dirmap-pin { cursor: pointer; padding: 0; appearance: none; transition: transform 0.12s ease; }
.dirmap-pin:hover, .dirmap-pin:focus-visible { transform: scale(1.18); }
.dirmap-pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dirmap-pin.is-plain { background: #f6f6f4; border-color: #181a16; }
:root[data-theme="dark"] .dirmap-pin.is-plain { background: #2a2d29; border-color: #f4f5f1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dirmap-pin.is-plain { background: #2a2d29; border-color: #f4f5f1; } }
/* La légende réutilise le repère lui-même comme pastille : aucune couleur à
   maintenir en double entre le plan et son explication. */
/* Halo « position approximative » resserré : à 200 repères dans le Grand
   Nouméa, le halo de 72 px des fiches transforme la carte en pâté. */
.dirmap-pin.is-approx::after { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.dirmap-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; font-size: 0.78rem; color: var(--muted); }
.dirmap-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.dirmap-legend .map-pin { width: 12px; height: 12px; border-width: 2px; flex: 0 0 12px; cursor: default; }
.dirmap-popup { display: grid; gap: 6px; font-size: 0.82rem; line-height: 1.45; }
.dirmap-popup-name { font-size: 0.9rem; font-weight: 700; color: #181a16; }
.dirmap-popup-address { color: #55594f; }
.dirmap-popup-link { font-weight: 650; color: #181a16; text-decoration: underline; text-underline-offset: 2px; }
/* Le plan reste clair dans les deux thèmes : l'infobulle garde donc ses encres
   sombres sur fond blanc, y compris en thème sombre. */
.map-figure .maplibregl-popup-content { border-radius: 10px; padding: 12px 14px; box-shadow: 0 6px 20px rgba(0,0,0,0.22); background: #fff; }
.map-figure .maplibregl-popup-close-button { font-size: 1.1rem; color: #55594f; padding: 2px 7px; }
.map-figure .maplibregl-popup-tip { border-top-color: #fff; border-bottom-color: #fff; }
/* Commandes MapLibre réalignées sur la DA du site : carré, sobre, sans ombre
       bleutée. Le défaut de la bibliothèque jure avec le reste des panneaux. */
    .map-figure .maplibregl-ctrl-group {
      border-radius: 7px; box-shadow: 0 1px 4px rgba(0,0,0,0.24); background-color: #fff; border: 0;
    }
.map-figure .maplibregl-ctrl-group button { width: 38px; height: 38px; min-width: 38px; padding: 0; }
/* `background-color`, jamais la notation raccourcie : `background` écraserait
       l'image de fond de MapLibre. */
    .map-figure .maplibregl-ctrl-attrib { color: #33372f; font-size: 0.62rem; background-color: rgba(255,255,255,0.82); }
/* Les styles de bouton du site gonflent la pastille « i » à 40x36, et comme
       elle hérite de background-repeat: repeat, l'icône se carrelle en quatre.
       On fixe donc la boîte ET le rendu de l'image. */
    .map-figure .maplibregl-ctrl-attrib-button {
      width: 28px; height: 28px; min-width: 0; padding: 0; border: 0;
      background-repeat: no-repeat; background-position: center; background-size: 16px 16px;
    }
.map-figure .maplibregl-ctrl-attrib a { color: #33372f; }
.map-figure .maplibregl-ctrl-scale { font-size: 0.62rem; background-color: rgba(255,255,255,0.7); border-color: #8a8f88; color: #33372f; }
/* En theme sombre, les commandes blanches de MapLibre font trois taches
       lumineuses sur un plan volontairement sourd : on les accorde au fond. */
    :root[data-theme="dark"] .map-figure .maplibregl-ctrl-group button { background-color: #242724; color: #e8ece6; }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-group button + button { border-top-color: #333733; }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-icon { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-attrib { color: #9aa096; background-color: rgba(20,22,20,0.82); }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-attrib a { color: #9aa096; }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-attrib-button { filter: invert(1); }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-scale { background-color: rgba(20,22,20,0.7); border-color: #6a6f68; color: #c9cec5; }
.map-precision { position: absolute; z-index: 3; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 72px); padding: 7px 10px; border: 1px solid rgba(24,26,22,0.12); border-radius: 999px; background: rgba(255,255,255,0.9); color: #3f433d; box-shadow: 0 1px 4px rgba(0,0,0,0.12); font-size: 0.68rem; font-weight: 650; backdrop-filter: blur(8px); }
.map-precision-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; opacity: 0.72; }
:root[data-theme="dark"] .map-precision { border-color: rgba(255,255,255,0.12); background: rgba(30,33,30,0.9); color: #d8dcd5; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
/* Compatibilité avec les fiches déjà générées avant le retrait de Géorép. */
.map-actions a[href^="https://georep.nc"] { display: none; }
.map-cta { min-height: 42px; }
.map-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.map-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; }
.map-meta .panel-note { margin: 0; }
.map-meta .report-error-link { appearance: none; margin: 0; padding: 0 0 2px; border: 0; border-bottom: 1px solid rgba(var(--w),0.3); border-radius: 0; background: transparent; color: var(--soft); font: inherit; line-height: inherit; cursor: pointer; }
.map-meta .report-error-link:hover { border-bottom-color: currentColor; color: var(--ink); }
.map-meta .report-error-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
:root[data-theme="light"] .map-figure { border-color: rgba(24,26,22,0.16); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .map-figure .maplibregl-ctrl-group button { background-color: #242724; color: #e8ece6; }
  :root:not([data-theme="light"]) .map-figure .maplibregl-ctrl-group button + button { border-top-color: #333733; }
  :root:not([data-theme="light"]) .map-figure .maplibregl-ctrl-icon { filter: invert(1) hue-rotate(180deg); }
  :root:not([data-theme="light"]) .map-figure .maplibregl-ctrl-attrib { color: #9aa096; background-color: rgba(20,22,20,0.82); }
  :root:not([data-theme="light"]) .map-figure .maplibregl-ctrl-attrib a { color: #9aa096; }
  :root:not([data-theme="light"]) .map-figure .maplibregl-ctrl-attrib-button { filter: invert(1); }
  :root:not([data-theme="light"]) .map-figure .maplibregl-ctrl-scale { background-color: rgba(20,22,20,0.7); border-color: #6a6f68; color: #c9cec5; }
  :root:not([data-theme="light"]) .map-precision { border-color: rgba(255,255,255,0.12); background: rgba(30,33,30,0.9); color: #d8dcd5; }
}
@media (max-width: 560px) {
  .map-canvas { height: 300px; }
  .map-actions { display: grid; grid-template-columns: 1fr; }
  .map-cta { width: 100%; justify-content: center; }
  .map-precision { top: 10px; left: 10px; }
}
/* La carte conserve volontairement son rendu clair dans le thème sombre : le
   panneau reste sombre, mais le territoire ne perd ni routes ni végétation. */
:root[data-theme="dark"] .map-figure,
:root[data-theme="dark"] .map-canvas,
:root[data-theme="dark"] .map-status { background: #f6f6f4; color: #6b6f6a; }
:root[data-theme="dark"] .map-pin { background: #181a16; border-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.38), 0 0 0 1px rgba(0,0,0,0.12); }
:root[data-theme="dark"] .map-pin.is-approx::after { background: rgba(24,26,22,0.11); border-color: rgba(24,26,22,0.24); }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-group button { background-color: #fff; color: #33372f; }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-group button + button { border-top-color: #ddd; }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-icon,
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-attrib-button { filter: none; }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-attrib { color: #33372f; background-color: rgba(255,255,255,0.82); }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-attrib a { color: #33372f; }
:root[data-theme="dark"] .map-figure .maplibregl-ctrl-scale { color: #33372f; background-color: rgba(255,255,255,0.7); border-color: #8a8f88; }
:root[data-theme="dark"] .map-precision { border-color: rgba(24,26,22,0.12); background: rgba(255,255,255,0.9); color: #3f433d; }
/* ---------- Signaux ---------- */
    .signal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
/* Quatre cartes sur une ligne des que la bande occupe toute la largeur : dans
   le bento c'est le .span-2, sur les pages listing (secteurs, annuaire, emploi)
   la bande est posee directement dans main.fiche, donc sans span-2 — elle
   restait a deux colonnes alors qu'elle avait la place. */
.panel.span-2 .signal-grid,
.span-2.panel .signal-grid,
.span-2#signaux-section .signal-grid,
main.fiche > .panel > .signal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .panel.span-2 .signal-grid,
  .span-2.panel .signal-grid,
  .span-2#signaux-section .signal-grid,
  main.fiche > .panel > .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .signal-grid,
  .panel.span-2 .signal-grid,
  .span-2.panel .signal-grid,
  .span-2#signaux-section .signal-grid,
  main.fiche > .panel > .signal-grid { grid-template-columns: 1fr; }
}
.signal {
      padding: 16px 18px;
      background: var(--card-2); border: 1px solid var(--hair); border-radius: 11px;
      display: block; color: inherit;
      transition: border-color 0.16s ease, transform 0.16s ease;
    }
a.signal:hover { border-color: rgba(var(--w),0.24); transform: translateY(-2px); }
.signal-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.signal-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; }
.signal-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.signal-icon { background: rgba(var(--w),0.05); border: 1px solid var(--hair); color: var(--muted); }
.signal-name { color: var(--soft); font-size: 0.84rem; font-weight: 600; }
.signal-count { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.signal-note { margin: 8px 0 0; color: rgba(var(--w),0.5); font-size: 0.76rem; }
/* Mini-courbe 12 mois d'une carte signal (scripts/lib/fiche_trend.js). */
.signal-spark { display: block; width: 100%; max-width: 150px; height: 28px; margin-top: 10px; color: rgba(var(--w),0.6); overflow: visible; }
.signal-spark polyline { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.signal-spark-cap { display: block; margin-top: 2px; color: rgba(var(--w),0.45); font-size: 0.7rem; }
/* Frise 12 mois de la chronologie (scripts/lib/fiche_trend.js, laneFrise) :
   un couloir par famille, un point par mois dont la surface suit le volume. */
.fiche-frise { margin: 4px 0 18px; padding: 0; --frise-jobs: #3987e5; --frise-awards: #c98500; --frise-actus: #9085e9; --frise-pubLeg: #d55181; }
:root[data-theme="light"] .fiche-frise { --frise-jobs: #2a78d6; --frise-awards: #b07400; --frise-actus: #4a3aa7; --frise-pubLeg: #c0396f; }
.fiche-frise-row, .fiche-frise-axis { display: grid; grid-template-columns: 8.6em minmax(0, 1fr); align-items: center; gap: 8px; }
@media (max-width: 480px) { .fiche-frise-row, .fiche-frise-axis { grid-template-columns: 6.6em minmax(0, 1fr); } }
.fiche-frise-row { min-height: 26px; border-bottom: 1px solid var(--hair); }
.fiche-frise-lane { color: var(--soft); font-size: 0.78rem; line-height: 1.2; }
.fiche-frise-cells { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; height: 26px; }
.fiche-frise-cells i { justify-self: center; width: 4px; height: 4px; border-radius: 50%; background: rgba(var(--w),0.14); }
.fiche-frise-cells i[style] { width: calc(35% + 60% * var(--s)); max-width: 18px; height: auto; aspect-ratio: 1; background: var(--frise-c); }
.fiche-frise-row.is-jobs { --frise-c: var(--frise-jobs); } .fiche-frise-row.is-awards { --frise-c: var(--frise-awards); }
.fiche-frise-row.is-actus { --frise-c: var(--frise-actus); } .fiche-frise-row.is-pubLeg { --frise-c: var(--frise-pubLeg); }
.fiche-frise-ticks { display: flex; justify-content: space-between; margin-top: 6px; color: rgba(var(--w),0.45); font-size: 0.7rem; white-space: nowrap; }
/* ---------- Services ---------- */
    .field-label { margin: 0 0 10px; color: var(--soft); font-size: 0.83rem; font-weight: 600; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.tag-list li {
      padding: 6px 11px;
      background: rgba(var(--w),0.04); border: 1px solid var(--hair); border-radius: 7px;
      color: var(--soft); font-size: 0.78rem; line-height: 1.3;
    }
/* ---------- Activité récente ---------- */
    .feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.feed li { border-top: 1px solid var(--hair); }
.feed li:first-child { border-top: 0; }
.feed a { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 13px 0; align-items: start; }
.feed a:hover .feed-title { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.feed-thumb { width: 46px; height: 46px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--hair); display: grid; place-items: center; overflow: hidden; }
.feed-thumb img { width: 26px; height: 26px; object-fit: contain; }
.feed-thumb span { color: var(--muted); font-size: 0.95rem; font-weight: 700; }
.feed-date { display: block; margin-bottom: 4px; color: rgba(var(--w),0.34); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.feed-title { display: block; color: var(--soft); font-size: 0.92rem; font-weight: 600; line-height: 1.4; }
.feed-meta { display: block; margin-top: 4px; color: rgba(var(--w),0.48); font-size: 0.78rem; }
.feed-src { display: block; margin-top: 4px; color: rgba(var(--w),0.34); font-size: 0.78rem; }
.feed .article-business-line { min-width: 0; gap: 6px; padding: 0 0 12px 60px; }
.feed .article-business-tag { display: inline-flex; grid-template-columns: none; min-width: 0; max-width: 100%; gap: 4px; padding: 3px 8px; font-size: 0.7rem; white-space: normal; overflow-wrap: anywhere; }
.panel-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--soft); font-size: 0.85rem; font-weight: 600; }
/* display:inline-flex l'emporte sur la règle UA [hidden]{display:none}
: à réaffirmer. */
    .panel-more[hidden] { display: none; }
.panel-more:hover { color: #fff; }
.empty { margin: 0; color: rgba(var(--w),0.4); font-size: 0.88rem; }
/* ---------- Présence en ligne ---------- */
    .site-row {
      display: flex; align-items: center; justify-content: space-between; gap: 14px;
      padding: 14px 16px;
      background: var(--card-2); border: 1px solid var(--hair); border-radius: 9px;
      color: var(--ink); font-size: 0.9rem; word-break: break-all;
      transition: border-color 0.16s ease;
    }
.site-row:hover { border-color: rgba(var(--w),0.26); }
.site-row svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.directory-presence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.directory-presence-card {
      display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; align-items: center; gap: 10px;
      min-height: 62px; padding: 10px 12px;
      background: var(--card-2); border: 1px solid var(--hair); border-radius: 9px;
      color: var(--ink); text-decoration: none;
      transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
    }
.directory-presence-card:hover { border-color: rgba(var(--w),0.28); transform: translateY(-1px); }
.directory-presence-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.directory-presence-card img { width: 28px; height: 28px; padding: 2px; border-radius: 6px; background: #fff; object-fit: contain; }
.directory-presence-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.directory-presence-copy strong { color: var(--ink); font-size: 0.86rem; overflow-wrap: anywhere; }
.directory-presence-copy small { overflow: hidden; color: var(--muted); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.directory-presence-card > svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .directory-presence-grid { grid-template-columns: 1fr; } }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn {
      display: inline-flex; align-items: center; gap: 9px;
      padding: 10px 14px;
      background: var(--card-2); border: 1px solid var(--hair); border-radius: 8px;
      color: var(--soft); font-size: 0.85rem; font-weight: 600;
      transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
    }
.social-btn:hover { border-color: rgba(var(--w),0.26); color: #fff; transform: translateY(-1px); }
.social-btn svg { width: 16px; height: 16px; flex: 0 0 16px; fill: currentColor; }
/* ---------- Contact ----------
       Le formulaire vit dans la modale .company-alert-*, dont le CSS ne stylait
       que input[type=email] : on complète pour le nom et le message. */
    .company-alert-form input[type="text"]:not(.company-alert-honeypot),
    .company-alert-form textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--hair);border-radius:8px;background:var(--card-2);color:var(--ink);font:inherit;box-sizing:border-box}
.company-alert-form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.company-alert-form input:focus, .company-alert-form textarea:focus { outline: 2px solid #181a16; outline-offset: 1px; }
.company-alert-form button[disabled] { opacity: 0.55; cursor: default; }
/* ---------- Filtre des pages spécialité de l'annuaire ----------
       Le style vivait dans directory-modern.css, feuille retirée : sans lui, le
       libellé et le champ s'affichaient bruts sur la même ligne. */
.specialty-filter { margin: 0 0 18px; }
.specialty-filter .field-label { display: block; margin-bottom: 8px; }
.specialty-filter input[type="search"] { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card-2); color: var(--ink); font: inherit; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.specialty-filter input[type="search"]::placeholder { color: var(--muted); }
.specialty-filter input[type="search"]:focus { outline: 2px solid #181a16; outline-offset: 1px; }
:root[data-theme="dark"] .specialty-filter input[type="search"]:focus { outline-color: #f4f7f5; }
.specialty-filter .panel-note { margin: 8px 0 0; }
/* ---------- Demande de devis (modale partagée, cf. scripts/lib/quote_widget.js) ----------
       Trois étapes dans une seule boîte : besoin, prestataires, envoi. Monochrome,
       mêmes tokens que la modale d'alerte ; vert et rouge réservés au statut. */
.quote-dialog { width: min(100%, 560px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px 28px 24px; }
.quote-kicker { margin: 0 0 4px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.quote-dialog h2 { margin-bottom: 14px; font-size: 1.2rem; }
.quote-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.quote-step-dot { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 0 10px; border-top: 2px solid var(--hair); color: var(--muted); font-size: .78rem; font-weight: 600; }
.quote-step-dot.is-current { border-top-color: var(--ink); color: var(--ink); }
.quote-step-dot.is-done { border-top-color: var(--soft); color: var(--soft); }
.quote-step-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 20px; border: 1.5px solid currentColor; border-radius: 50%; font-size: .7rem; font-weight: 700; }
.quote-step-dot.is-current .quote-step-num { background: var(--ink); color: var(--card); border-color: var(--ink); }
.quote-step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-step { display: grid; gap: 12px; }
.quote-step[hidden] { display: none; }
.quote-step-title { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.quote-step-copy { margin: -4px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.quote-form .panel-note { margin: -6px 0 0; }
.quote-form select { width: 100%; min-height: 44px; padding: 10px 40px 10px 12px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card-2); color: var(--ink); font: inherit; box-sizing: border-box; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.quote-form select:focus { outline: 2px solid #181a16; outline-offset: 1px; }
.quote-recipients-head { display: flex; justify-content: flex-end; }
.quote-count { color: var(--muted); font-size: .8rem; font-weight: 600; }
.quote-form input[type="search"] { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card-2); color: var(--ink); font: inherit; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.quote-recipient-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; border: 1px solid var(--hair); border-radius: 10px; background: var(--card-2); }
.quote-recipient + .quote-recipient { border-top: 1px solid var(--hair); }
.quote-recipient[hidden] { display: none; }
.quote-recipient label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; margin: 0; cursor: pointer; color: var(--ink); font-size: .92rem; font-weight: 600; }
.quote-recipient label:hover { background: rgba(var(--w), .05); }
.quote-recipient input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #181a16; }
.quote-recipient input[type="checkbox"]:disabled + .quote-recipient-name { color: var(--muted); }
.quote-recipient-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-recipient-meta { flex: 0 0 auto; color: var(--muted); font-size: .8rem; font-weight: 500; }
.quote-summary { display: grid; gap: 10px; margin: 0; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card-2); }
.quote-summary div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.quote-summary dt { margin: 0; color: var(--muted); font-size: .8rem; font-weight: 600; padding-top: 2px; }
.quote-summary dd { margin: 0; color: var(--ink); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.quote-sum-chip { display: inline-block; margin: 0 6px 6px 0; padding: 3px 9px; border: 1px solid var(--hair); border-radius: 999px; font-size: .8rem; font-weight: 600; }
.quote-consent { display: flex; align-items: flex-start; gap: 12px; margin: 2px 0 0; color: var(--soft); font-size: .84rem; line-height: 1.55; font-weight: 500; cursor: pointer; }
.quote-consent input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: #181a16; }
.quote-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.quote-actions { margin-top: 10px; }
.quote-actions [hidden] { display: none !important; }
/* Champs de saisie en blanc, même en sombre : la zone à remplir attire l'œil. */
.quote-form input[type="email"], .quote-form input[type="text"]:not(.company-alert-honeypot), .quote-form textarea, .quote-form select, .quote-form input[type="search"] { background: #fff; color: #181a16; border-color: rgba(24, 26, 22, .18); }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #8d9286; opacity: 1; }
.quote-form select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23181a16' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.quote-form select option { color: #181a16; background: #fff; }
:root[data-theme="dark"] .quote-form input[type="email"]:focus, :root[data-theme="dark"] .quote-form textarea:focus, :root[data-theme="dark"] .quote-form select:focus, :root[data-theme="dark"] .quote-form input[type="search"]:focus { outline-color: #f4f7f5; }
:root[data-theme="dark"] .quote-recipient input[type="checkbox"], :root[data-theme="dark"] .quote-consent input[type="checkbox"] { accent-color: #f4f7f5; }
:root[data-theme="dark"] .quote-form select:focus { outline-color: #f4f7f5; }
@media (max-width: 560px) {
  .quote-dialog { max-height: 100vh; padding: 46px 18px 18px; }
  .quote-step-label { font-size: .72rem; }
  .quote-summary div { grid-template-columns: 1fr; gap: 2px; }
}
/* ---------- FAQ ---------- */
    .faq-list { display: grid; gap: 8px; }
.faq-list details { background: var(--card-2); border: 1px solid var(--hair); border-radius: 9px; }
.faq-list summary {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      padding: 13px 16px; cursor: pointer; list-style: none;
      color: var(--soft); font-size: 0.88rem; font-weight: 600;
    }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
      content: ""; width: 9px; height: 9px; flex: 0 0 9px;
      border-right: 1.7px solid var(--muted); border-bottom: 1.7px solid var(--muted);
      transform: rotate(45deg) translateY(-2px); transition: transform 0.18s ease;
    }
.faq-list details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq-list details[open] summary { color: #fff; }
.faq-list p { margin: 0; padding: 0 16px 15px; color: var(--muted); font-size: 0.86rem; line-height: 1.65; }
/* ---------- Sociétés similaires ---------- */
    .similar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 460px) { .similar-grid { grid-template-columns: 1fr; } }
.similar-card {
      display: block; padding: 13px 15px;
      background: var(--card-2); border: 1px solid var(--hair); border-radius: 9px;
      transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
    }
.similar-card:hover { border-color: rgba(var(--w),0.26); background: rgba(var(--w),0.05); transform: translateY(-2px); }
.similar-name { display: block; color: var(--ink); font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.similar-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 0.78rem; }
/* ---------- Hero des pages d'index ---------- */
    .page-hero { padding: 34px 30px; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.05; letter-spacing: -0.03em; }
.page-hero .panel-copy { max-width: 68ch; }
@media (max-width: 560px) { .page-hero { padding: 24px 20px; } }
/* Un annuaire compte des centaines d'entrées : trois colonnes sur grand écran
       évitent une colonne unique interminable, la grille des fiches en garde deux. */
    .similar-grid.is-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .similar-grid.is-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .similar-grid.is-index { grid-template-columns: 1fr; } }
/* ---------- Explorer ---------- */
    .explore-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.explore-list a {
      display: flex; align-items: center; justify-content: space-between; gap: 14px;
      padding: 13px 16px;
      background: var(--card-2); border: 1px solid var(--hair); border-radius: 9px;
      color: var(--soft); font-size: 0.87rem; font-weight: 600;
      transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
    }
.explore-list a:hover { border-color: rgba(var(--w),0.24); background: rgba(var(--w),0.05); color: #fff; }
.explore-list a:visited { color: var(--soft); }
.explore-list a:active { border-color: rgba(var(--w),0.38); background: rgba(var(--w),0.11); color: #fff; }
.explore-list svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; }

    /* ---------- Répartitions chiffrées (statsPanel) ----------
       Barres proportionnelles au maximum de la série, pas au total : sur une
       longue traîne, un ratio au total rend toutes les barres invisibles. */

    /* Texte réservé aux lecteurs d'écran : l'unité d'un compteur, le contexte
       d'un chiffre. Rien de cliquable dedans, donc jamais révélé au clavier. */
    .sr-only {
      position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
    }
    /* Focus clavier : les cadres cliquables du bento suivent la même règle que
       .btn-ghost (2 px, offset 2 px) — sinon la tabulation devient invisible
       sur les cartes de signaux, les puces et les lignes de listing. */
    .signal:focus-visible,
    .chip-link:focus-visible,
    .listing-row > a:focus-visible,
    .stat-label:focus-visible,
    .explore-list a:focus-visible,
    .similar-card:focus-visible,
    .panel-more:focus-visible,
    .feed li a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 10px; }
.stat-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
    /* Courbe d'activite du panneau « Activite du secteur ». Les traces de la
       sparkline sont deja stylees plus haut (.sector-radar-sparkline). */
    .pulse-chart { margin: 0 0 18px; }
    .pulse-chart svg { width: 100%; height: auto; }
    .pulse-rows .pulse-row {
      display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
      gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair);
    }
    .pulse-rows .pulse-row:first-child { border-top: 0; }
    .stat-row {
      display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
      column-gap: 12px; row-gap: 7px;
    }
    .stat-label { min-width: 0; color: var(--soft); font-size: 0.88rem; overflow-wrap: anywhere; }
    a.stat-label { text-decoration: none; }
    a.stat-label:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
    .stat-value { color: var(--ink); font-size: 0.88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
    .stat-bar {
      grid-column: 1 / -1; display: block; height: 4px; border-radius: 999px;
      background: rgba(var(--w),0.08); overflow: hidden;
    }
    .stat-bar > i { display: block; height: 100%; border-radius: 999px; background: rgba(var(--w),0.34); }

    /* ---------- Liste longue hors bento (listingPanel) ----------
       Le contenu d'une page d'annuaire, pas un aperçu : pas de coupe à 3. */
    .listing-panel { grid-column: 1 / -1; }
    /* Une catégorie = une case du bento (ex. /outils.html). */
    .bento > .listing-panel.is-cell { grid-column: auto; align-self: start; }
    .bento > .listing-panel.is-cell.span-2 { grid-column: 1 / -1; }
    .listing-panel.is-cell { scroll-margin-top: 90px; }
    .listing-panel.is-cell .listing-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
    .listing-grid {
      list-style: none; padding: 0; margin: 0;
      display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px;
    }
    .listing-row > a,
    .listing-row > span {
      display: grid; gap: 3px; height: 100%; padding: 12px 14px; box-sizing: border-box;
      border: 1px solid var(--hair); border-radius: 11px;
      background: rgba(var(--w),0.02); color: var(--ink); text-decoration: none;
    }
    .listing-row > a:hover { border-color: rgba(var(--w),0.24); background: rgba(var(--w),0.06); }
    .listing-name { font-size: 0.9rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
    .listing-meta { min-width: 0; color: var(--muted); font-size: 0.76rem; overflow-wrap: anywhere; word-break: break-word; }
    .listing-row.has-sub { display: grid; grid-template-rows: 1fr auto; gap: 4px; }
    /* Spécificité renforcée : `.listing-row > a` (et sa variante thème clair)
       peindrait sinon ce lien secondaire comme une seconde carte. */
    .listing-panel .listing-grid .listing-row > a.listing-sub {
      display: inline-block; justify-self: start; height: auto; margin-left: 14px; padding: 2px 8px;
      border: 1px solid var(--hair); border-radius: 999px; background: none;
      color: var(--muted); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
    }
    .listing-panel .listing-grid .listing-row > a.listing-sub:hover { color: var(--ink); border-color: var(--muted); background: none; }
    .listing-badge { justify-self: start; margin-top: 4px; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }

    /* ---------- Listes segmentées par sous-catégorie ---------- */
    .listing-jump { margin: 0 0 18px; }
    .listing-group + .listing-group { margin-top: 22px; }
    .listing-group-title {
      display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
      margin: 0 0 10px; font-size: 0.86rem; font-weight: 700; color: var(--ink);
      letter-spacing: 0.04em; text-transform: uppercase;
    }
    .listing-group-title > span { color: var(--muted); font-size: 0.76rem; font-variant-numeric: tabular-nums; }
    /* Libellé NAF raccourci : le curseur d'aide signale qu'un texte complet
       existe en infobulle, sinon la troncature passe pour une erreur. */
    .listing-group-title[title], .chip-link[title] { cursor: help; }
    .listing-group-more {
      margin-left: auto; color: var(--muted); font-size: 0.74rem; font-weight: 500;
      letter-spacing: 0; text-transform: none; text-decoration: none;
    }
    .listing-group-more:hover { color: var(--ink); text-decoration: underline; }

    /* ---------- Maillage à compteurs (chipsPanel) ---------- */
    .chip-links { display: flex; flex-wrap: wrap; gap: 8px; }
    .chip-link {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 7px 12px; border: 1px solid var(--hair); border-radius: 999px;
      background: rgba(var(--w),0.02); color: var(--soft); font-size: 0.82rem; text-decoration: none;
    }
    .chip-link:hover { border-color: rgba(var(--w),0.24); background: rgba(var(--w),0.06); color: var(--ink); }
    .chip-link > span {
      color: var(--muted); font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums;
    }
@media (max-width: 880px) { .official-footer .footer-columns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .official-footer .footer-columns { grid-template-columns: 1fr; gap: 24px; } }
/* Header aligné sur l'app : navigation Flux/Radar/Points IA + tiroir Menu.
       Les liens Blog et Newsletter passent dans le tiroir. */
    /* La barre de base est en space-between, ce qui éparpillait les quatre éléments.
       Ici la recherche absorbe tout l'espace libre : « Ouvrir l'app » et « Menu »
       restent groupés à droite. margin-left:auto sert de filet quand la recherche
       est masquée (mobile) et qu'il n'y a plus rien pour pousser la CTA. */
    .nav .nav-inner { gap: 14px; justify-content: flex-start; }
.nav .nav-cta { margin-left: auto; }
.nav .nav-cta + .nav-menu-btn { margin-left: 0; }
.nav-search { position: relative; flex: 1 1 260px; min-width: 0; }
/* Recherche mobile. Sur grand écran la loupe-bouton et la croix n'existent pas :
       le champ est déjà là. Sous 860px c'est l'inverse — le champ sort du flux et
       ne réapparaît, en pleine largeur de la barre, que sur clic de la loupe. */
    .nav-search-btn, .nav-search-close { display: none; }
.nav-search-btn, .nav-menu-btn {
      background: none; border: 0; color: var(--ink); cursor: pointer; font-family: inherit;
    }
.nav-search-btn {
      width: 38px; height: 38px; flex: 0 0 38px; place-items: center; padding: 0;
      border: 1px solid rgba(var(--w),0.14); border-radius: 8px;
      background: rgba(var(--w),0.03);
      transition: background 0.16s ease, border-color 0.16s ease;
    }
.nav-search-btn:hover { background: rgba(var(--w),0.08); border-color: rgba(var(--w),0.3); }
.nav-search-btn:focus-visible, .nav-search-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nav-search-close {
      position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
      width: 28px; height: 28px; padding: 0;
      border: 0; border-radius: 6px; background: none;
      color: rgba(var(--w),0.55); cursor: pointer;
    }
.nav-search-close:hover { color: #fff; }
@media (max-width: 860px) {
      .nav .nav-inner { position: relative; }
      .nav .nav-search { display: none; }
      /* Ouverte, la recherche recouvre la barre : sur 375px il n'y a pas la place
         de la faire cohabiter avec la marque, la CTA et le Menu. */
      .nav .nav-search.is-open {
        display: block; position: absolute; left: 0; right: 0; z-index: 3;
        background: rgba(17, 17, 17, 0.98);
      }
      .nav .nav-search.is-open input[type="search"] { padding-right: 40px; }
      .nav-search-btn { display: inline-grid; margin-left: auto; }
      /* La loupe reprend le rôle de pousseur : la CTA n'a plus à le faire. */
      .nav .nav-cta { margin-left: 0; }
      .nav-search.is-open .nav-search-close { display: inline-grid; place-items: center; }
    }
/* Le CTA principal reste toujours accessible sur mobile. Sur les très petits
       écrans, on compacte les espacements plutôt que de masquer l'action. */
    @media (max-width: 420px) {
      .nav .nav-inner { gap: 8px; }
      .nav .brand img { height: 26px; }
      .nav .nav-cta { display: inline-flex; flex: 0 0 auto; padding: 8px; font-size: 0.72rem; white-space: nowrap; }
    }
.nav-search-glass { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(var(--w),0.4); pointer-events: none; }
.nav-search input[type="search"] {
      width: 100%; padding: 9px 12px 9px 34px;
      background: rgba(var(--w),0.05); border: 1px solid rgba(var(--w),0.12);
      border-radius: 8px; color: #fff; font-family: inherit; font-size: 0.86rem;
    }
.nav-search input[type="search"]::placeholder { color: rgba(var(--w),0.38); }
/* satellite.css stylise la CTA via .nav-links a.nav-cta ; ce parent n'existe
       plus dans le nouveau header, on la restyle ici. */
    .nav .nav-cta {
      padding: 8px 14px; border-radius: 7px;
      background: #fff; color: #101418; font-size: 0.84rem; font-weight: 800;
      text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,0.18);
      transition: background 0.16s ease, transform 0.16s ease;
    }
.nav .nav-cta:hover { background: #f0f0f0; color: #101418; transform: translateY(-1px); }
.nav-menu-btn {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 8px 11px; border: 1px solid rgba(var(--w),0.14); border-radius: 8px;
      background: rgba(var(--w),0.04); color: rgba(var(--w),0.82);
      font-family: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer;
    }
.nav-menu-btn:hover { background: rgba(var(--w),0.09); color: #fff; }
.nav-menu-btn svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .nav-menu-btn span { display: none; } }
@media (max-width: 620px) { .nav-search { flex-basis: 120px; } }
/* Tiroir Menu — repris à l'identique de l'app (style.css, .menu-drawer et
       .menu-item) : mêmes entrées, mêmes icônes, même panneau ancré sous le
       header à droite. Les tokens de l'app (--bg-surface, --text-ghost…) sont
       traduits ici en tokens du gabarit satellite, pour que le tiroir suive la
       bascule clair/sombre comme le reste de la page. */
    .menu-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); display: flex; justify-content: center; }
.menu-overlay[hidden] { display: none; }
.menu-overlay-inner {
      width: 100%; max-width: var(--wide);
      pointer-events: none;
      display: flex; justify-content: flex-end; align-items: flex-start;
      padding-right: 16px; padding-top: 72px;
    }
.menu-drawer {
      pointer-events: auto;
      width: 264px; max-width: 84vw;
      background: var(--card); border: 1px solid var(--hair); border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.5);
      display: flex; flex-direction: column;
      max-height: calc(100vh - 92px); overflow-y: auto; overflow-x: hidden;
      scrollbar-width: thin; scrollbar-color: rgba(var(--w),0.22) transparent;
      animation: slideDownMenu 0.2s ease;
    }
.menu-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.menu-drawer-head h2 { margin: 0; font-size: 1.05rem; }
.menu-overlay-inner { width: 100%; max-width: var(--wide); pointer-events: none; display: flex; justify-content: flex-end; align-items: flex-start; padding-right: 16px; padding-top: 72px; }
.menu-drawer { pointer-events: auto; width: 264px; max-width: 84vw; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); display: flex; flex-direction: column; max-height: calc(100vh - 92px); overflow-y: auto; overflow-x: hidden;
      scrollbar-width: thin; scrollbar-color: rgba(var(--w),0.22) transparent; }
.menu-drawer::-webkit-scrollbar { width: 6px; }
.menu-drawer::-webkit-scrollbar-track { background: transparent; }
.menu-drawer::-webkit-scrollbar-thumb { background: rgba(var(--w),0.18); border-radius: 3px; }
.menu-drawer::-webkit-scrollbar-thumb:hover { background: rgba(var(--w),0.3); }
.menu-drawer-header { padding: 14px 16px; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; }
.menu-drawer-header h2 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.menu-close { background: none; border: 0; color: var(--soft); font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.menu-drawer-body { padding: 8px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; background: none; border: 0; border-radius: 8px; color: var(--soft); font-size: 0.88rem; font-weight: 500; font-family: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.menu-item:hover { background: rgba(var(--w),0.07); color: var(--ink); }
.menu-item svg { flex-shrink: 0; color: var(--muted); }
.menu-item-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.menu-item-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--card); font-size: 0.65rem; font-weight: 700; }
.menu-divider { height: 1px; background: var(--hair); margin: 4px 12px; }
.menu-item-small { font-size: 0.78rem; padding: 8px 14px; color: var(--muted); }
.menu-social { display: flex; align-items: center; gap: 8px; padding: 8px 12px 4px; }
.menu-social .social-link { flex: 0 0 44px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--card-2); border: 1px solid var(--hair); border-radius: 8px; color: var(--muted); }
.biznc-menu-footer { margin-top: 10px; padding: 12px 16px; display: flex; justify-content: flex-end; align-items: center; border-top: 1px solid var(--hair); font-size: 0.75rem; color: var(--muted); }
.biznc-footer-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; font-weight: 500; }
.menu-drawer .neonea-footer-logo { display: block; width: auto; height: 18px; }
.menu-close { background: none; border: 0; color: rgba(var(--w),0.6); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.menu-close:hover { color: #fff; }
.menu-group { margin-bottom: 22px; }
.menu-group-title { margin: 0 0 8px; color: rgba(var(--w),0.34); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.menu-group a { display: block; padding: 8px 0; color: rgba(var(--w),0.8); font-size: 0.9rem; text-decoration: none; }
.menu-group a:hover { color: #fff; }
.menu-theme {
      display: flex; align-items: center; gap: 10px; width: 100%;
      padding: 9px 0; background: none; border: 0;
      color: rgba(var(--w),0.8); font-family: inherit; font-size: 0.9rem; text-align: left; cursor: pointer;
    }
.menu-item:hover { background: rgba(var(--w),0.07); color: var(--ink); }
.menu-item svg { flex-shrink: 0; color: var(--muted); }
.menu-item:hover svg { color: var(--ink); }
.menu-item-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.menu-item-badge {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
      background: var(--ink); color: var(--card);
      font-size: 0.65rem; font-weight: 700; flex: 0 0 auto;
    }
.menu-divider { height: 1px; background: var(--hair); margin: 4px 12px; }
.menu-item-small { font-size: 0.78rem; padding: 8px 14px; color: var(--muted); }
.menu-item-small svg { width: 14px; height: 14px; }
.menu-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; padding: 8px 12px 4px; }
.menu-social .social-link {
      flex: 0 0 44px; width: 44px; height: 44px;
      display: flex; align-items: center; justify-content: center;
      background: var(--card-2); border: 1px solid var(--hair); border-radius: 8px;
      color: var(--muted);
      transition: transform 0.2s cubic-bezier(0.2,0.8,0.2,1), color 0.16s ease, border-color 0.16s ease;
    }
.menu-social .social-link:hover { background: rgba(var(--w),0.07); color: var(--ink); border-color: rgba(var(--w),0.3); transform: translateY(-2px); }
.menu-social .social-link svg { width: 20px; height: 20px; }
.biznc-menu-footer {
      margin-top: 10px; padding: 12px 16px;
      display: flex; justify-content: flex-end; align-items: center; gap: 8px;
      border-top: 1px solid var(--hair);
      font-size: 0.75rem; color: var(--muted);
    }
.biznc-footer-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; font-weight: 500; }
.biznc-footer-link:hover { color: var(--ink); text-decoration: underline; }
.biznc-footer-version { color: var(--muted); font-weight: 400; }
.menu-drawer .neonea-footer-logo { display: block; width: auto; height: 18px; flex: 0 0 auto; }
/* Thème clair/sombre : même attribut data-theme et même clé de stockage que
       l'app, pour que le choix suive l'utilisateur d'une page à l'autre.
       --w porte la triplette des blancs alpha : la basculer suffit à inverser
       toutes les surfaces, bordures et survols du gabarit. */
    :root { --w: 255,255,255; }
:root[data-theme="light"] {
      --w: 24,26,22;
      --bg: #f5f6ee;
      --ink: #101418;
      --soft: #3f443c;
      --muted: #686c62;
      --card: #ffffff;
      --card-2: #f7f8f3;
      --hair: rgba(24,26,22,0.12);
      /* Ces quatre tokens restaient aux valeurs du thème sombre : les surfaces
         --surface/--surface-2 (#111/#181818) gardaient un aplat noir sous une
         encre devenue sombre — cas des cartes outil des pages /projets/, où le
         titre tombait à 1,02. --line dessinait des filets blancs invisibles sur
         fond clair, et le doré --gold plafonnait à 2,15 en texte. */
      --surface: #ffffff;
      --surface-2: #f1f2ea;
      --line: rgba(24,26,22,0.14);
      --gold: #8D7B22;
    }
:root[data-theme="light"] body { background: var(--bg); }
:root[data-theme="light"] .hero-logo {
      background: radial-gradient(120% 120% at 20% 0%, rgba(24,26,22,0.05), rgba(24,26,22,0) 60%), #fbfbf7;
    }
/* La CTA s'inverse : encre sur fond clair. */
    :root[data-theme="light"] .btn-ghost.is-cta {
      background: #101418; border-color: #101418; color: #fff;
    }
:root[data-theme="light"] .btn-ghost.is-cta:hover { background: #2a2f28; border-color: #2a2f28; color: #fff; }
:root[data-theme="light"] .feed a:hover .feed-title,
    :root[data-theme="light"] .menu-item:hover,
    :root[data-theme="light"] .nav-menu-btn:hover { color: #000; }
/* satellite.css force color:#fff sur h1 : invisible en thème clair. */
    :root[data-theme="light"] h1,
    :root[data-theme="light"] .panel-title,
    :root[data-theme="light"] .signal-count,
    :root[data-theme="light"] .kv-value,
    :root[data-theme="light"] .similar-name,
    :root[data-theme="light"] .feed-title { color: var(--ink); }
    :root[data-theme="light"] .feed-meta { color: var(--muted); }
/* Header en thème clair. Il restait sombre dans les deux thèmes : sur une page
       claire il posait un bandeau noir, le libellé « Menu » disparaissait (encre
       sombre sur fond sombre) et le logo blanc devenait invisible dès que le fond
       s'éclaircissait. Le header suit désormais le thème comme le reste. */
    :root[data-theme="light"] .nav {
      background: rgba(255,255,255,0.92);
      border-bottom-color: rgba(24,26,22,0.12);
    }
:root[data-theme="light"] .nav-menu-btn,
    :root[data-theme="light"] .nav-search-btn {
      color: var(--ink); border-color: rgba(24,26,22,0.16); background: rgba(24,26,22,0.03);
    }
:root[data-theme="light"] .nav-menu-btn:hover,
    :root[data-theme="light"] .nav-search-btn:hover { background: rgba(24,26,22,0.07); border-color: rgba(24,26,22,0.3); }
:root[data-theme="light"] .nav-search input[type="search"] {
      background: rgba(24,26,22,0.04); border-color: rgba(24,26,22,0.14); color: var(--ink);
    }
:root[data-theme="light"] .nav-search input[type="search"]::placeholder { color: rgba(24,26,22,0.42); }
:root[data-theme="light"] .nav-search-glass { color: rgba(24,26,22,0.4); }
:root[data-theme="light"] .nav .nav-search.is-open { background: rgba(255,255,255,0.98); }
/* La CTA s'inverse comme celle des fiches : encre sur fond clair. */
    :root[data-theme="light"] .nav .nav-cta { background: #101418; border-color: #101418; color: #fff; }
:root[data-theme="light"] .nav .nav-cta:hover { background: #2a2f28; border-color: #2a2f28; color: #fff; }
/* Logo : variante noire en clair, blanche en sombre. Une inversion par filtre
       abîmerait le logo, qui n'est pas un aplat. */
    .brand .is-light-logo { display: none; }
:root[data-theme="light"] .brand .is-dark-logo { display: none; }
:root[data-theme="light"] .brand .is-light-logo { display: block; }
:root[data-theme="light"] .menu-drawer { background: #fff; }
:root[data-theme="light"] .menu-overlay { background: rgba(24,26,22,0.35); }
:root[data-theme="light"] .hero-favicon { border-color: rgba(24,26,22,0.18); }

    /* ===================================================================
       Thème clair — encres restées calées sur le thème sombre
       ===================================================================
       Toutes les règles ci-dessous corrigent le même défaut : une couche qui
       repeint sa surface en clair (via les tokens) sans recolorer son encre,
       restée en quasi-blanc. Mesuré au compositing alpha réel, seuil AA 4.5.

       Le cas central est .section-dark : elle vaut `background: var(--bg)`,
       donc en thème clair elle n'est PAS sombre — c'est une section crème.
       Ses descendants gardaient pourtant une encre #eef1ee, soit 1,09 sur les
       240 liens sociétés d'une page d'annuaire. */
:root[data-theme="light"] .section-dark .sat-chip { border-color: rgba(24,26,22,0.16); color: var(--ink); }
:root[data-theme="light"] .section-dark .sat-chip:hover { border-color: rgba(24,26,22,0.42); }
:root[data-theme="light"] .section-dark .sat-chip-count { color: var(--muted); }
:root[data-theme="light"] .section-dark .section-kicker { color: var(--gold); }
:root[data-theme="light"] .section-dark .social-card { background: #fff; border-color: rgba(24,26,22,0.14); color: var(--ink); }
:root[data-theme="light"] .section-dark .social-card:hover { border-color: rgba(24,26,22,0.34); }
:root[data-theme="light"] .section-dark .social-card-icon { background: rgba(24,26,22,0.06); border-color: rgba(24,26,22,0.14); color: var(--ink); }
:root[data-theme="light"] .section-dark .social-card-meta { color: var(--muted); }

    /* Fil d'Ariane : #8f9894 et #c6cfca sont des gris pensés pour un fond noir
       (2,72 et 1,46 sur crème). Le lien doit rester plus appuyé que le libellé
       courant, d'où --soft pour l'un et --muted pour l'autre. */
:root[data-theme="light"] .breadcrumb { color: var(--muted); }
:root[data-theme="light"] .breadcrumb a { color: var(--soft); }
:root[data-theme="light"] .breadcrumb a:hover { color: #000; }

    /* Le doré clair des intertitres tombe à 1,28 sur crème. */
:root[data-theme="light"] .eyebrow { color: var(--gold); }

    /* Ces trois notes suivent bien --w (l'encre bascule), mais un alpha de 0,30
       à 0,36 qui porte sur fond noir devient un gris trop pâle sur fond blanc.
       C'est l'alpha qu'il faut relever, pas la couleur. */
:root[data-theme="light"] .hero-meta { color: rgba(24,26,22,0.64); }
:root[data-theme="light"] .panel-note { color: rgba(24,26,22,0.62); }
:root[data-theme="light"] .signal-note { color: rgba(24,26,22,0.64); }
:root[data-theme="light"] .stat-bar { background: rgba(24,26,22,0.10); }
:root[data-theme="light"] .stat-bar > i { background: rgba(24,26,22,0.42); }
:root[data-theme="light"] .listing-row > a,
    :root[data-theme="light"] .listing-row > span,
    :root[data-theme="light"] .chip-link { background: rgba(24,26,22,0.03); }
:root[data-theme="light"] .listing-row > a:hover,
    :root[data-theme="light"] .chip-link:hover { background: rgba(24,26,22,0.07); }
:root[data-theme="light"] .explore-list a:hover {
      background: rgba(24,26,22,0.07);
      border-color: rgba(24,26,22,0.30);
      color: var(--ink);
    }
:root[data-theme="light"] .explore-list a:visited { color: var(--soft); }
:root[data-theme="light"] .explore-list a:active {
      background: rgba(24,26,22,0.13);
      border-color: rgba(24,26,22,0.42);
      color: var(--ink);
    }

    /* Corps d'article : <strong> et titres éditoriaux en blanc pur sur crème,
       soit 1,09 pour les uns et 1,04 pour les autres. */
:root[data-theme="light"] .article-body strong,
    :root[data-theme="light"] .editorial .legal-table strong { color: var(--ink); }
:root[data-theme="light"] .editorial h2,
    :root[data-theme="light"] .editorial h3 { color: var(--ink); }

    /* Pas de règle de pied de page ici. Ses couleurs vivent dans le <style>
       inline que les builders recopient depuis le footer d'index.html : c'est
       cette source qui a été corrigée (#6f756b et #73786e plafonnaient à 4,16).
       Dupliquer l'override ici créerait une seconde source de vérité, et le
       bloc inline étant écrit clair-d'abord avec des overrides
       [data-theme="dark"], il porte déjà la bonne valeur dans les deux thèmes. */

    /* Notes de la fiche outil : l'ambre et l'ardoise sont sous le seuil sur le
       fond crème des cartes (2,87 et 4,28). */
:root[data-theme="light"] .tool-rating-star { color: #a8590a; }
:root[data-theme="light"] .tool-rating-source { color: #4d5764; }

    /* Les composants du bento se masquent réellement quand la donnée manque. */
    .panel[hidden], .signal[hidden], .panel-more[hidden], .menu-overlay[hidden] { display: none !important; }

    /* Compléments du panneau « en bref » (fiche société). */
    .panel-copy { margin: 0; color: var(--soft); font-size: 0.95rem; line-height: 1.7; }
    .panel .ai-content-notice {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 0.68rem;
      line-height: 1.45;
      font-weight: 400;
    }
    .panel-address { font-style: normal; display: block; margin-top: 16px; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
    .panel-address strong { color: var(--ink); font-weight: 600; }
    .site-favicon { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; flex: 0 0 22px; }

    /* Valeur trop longue pour la colonne de droite (dénomination légale) :
       on la passe sous son libellé plutôt que de la réduire à un mot par ligne. */
    .kv-row.kv-row-wide { grid-template-columns: 20px minmax(0, 1fr); }
    .kv-row.kv-row-wide .kv-value { grid-column: 1 / -1; text-align: left; margin-top: 4px; font-weight: 600; }

    /* Raisons sociales à rallonge : on réduit le corps du titre plutôt que de
       laisser filer quatre lignes dans le héros (ex. « Centre Hospitalier
       Territorial Gaston Bourret »). Le nom n'est jamais tronqué. */
    .hero-body h1.is-long { font-size: clamp(1.5rem, 2.9vw, 2rem); line-height: 1.12; }
    .hero-body h1.is-xlong { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.15; }
.directory-stack{position:relative;width:min(500px,92%);height:360px}.directory-stack i{position:absolute;display:block;width:74%;height:88px;left:10%;border:1px solid #353538;border-radius:7px;background:#0b0b0c;transform:translateY(calc(var(--n,0)*54px)) translateX(calc(var(--n,0)*10px));animation:directory-float 6s ease-in-out infinite}.directory-stack i:nth-child(1){--n:0}.directory-stack i:nth-child(2){--n:1}.directory-stack i:nth-child(3){--n:2}.directory-stack i:nth-child(4){--n:3}.directory-stack i:nth-child(5){--n:4}.directory-stack i:before{content:"";position:absolute;left:20px;top:22px;width:38px;height:38px;border:1px solid #55555a;border-radius:5px}.directory-stack i:after{content:"";position:absolute;left:76px;right:24px;top:30px;height:18px;border-top:7px solid #77777d;border-bottom:1px solid #333336}@keyframes directory-float{50%{margin-top:-7px}}@media(prefers-reduced-motion:reduce){.directory-stack i{animation:none}}
.institution-map{position:relative;width:min(480px,90%);aspect-ratio:1;border:1px solid #29292d;border-radius:50%}.institution-map:before,.institution-map:after{content:"";position:absolute;inset:18%;border:1px solid #29292d;border-radius:50%}.institution-map:after{inset:38%;background:#fff;border:0}.institution-map i{position:absolute;width:54px;height:54px;border:1px solid #4b4b51;border-radius:7px;background:#09090a}.institution-map i:after{content:"";position:absolute;inset:16px;border-top:2px solid #aaaab0;border-bottom:2px solid #55555a}.institution-map i:nth-child(1){left:8%;top:25%}.institution-map i:nth-child(2){right:7%;top:18%}.institution-map i:nth-child(3){right:3%;bottom:20%}.institution-map i:nth-child(4){left:16%;bottom:8%}.institution-map i:nth-child(5){left:44%;top:3%}

/* Lien d'évitement clavier : jamais visible. Le partial l'émet sous .skip et
   les fiches sous .skip-link ; les deux sont sortis du flux tant qu'ils n'ont
   pas le focus, pour qu'il n'apparaisse jamais à l'écran. */
.skip, .skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 10px 16px; background: #fff; color: #101418; font-weight: 700; border-radius: 0 0 6px 0; }
.skip:focus, .skip-link:focus { left: 0; }

/* ==========================================================================
   Report Error Component (Discreet Link & Modal)
   ========================================================================== */
.report-error-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 20px;
  background: transparent;
  margin-top: 24px;
}
.report-error-trigger {
  background: transparent;
  border: none;
  padding: 6px 12px;
  color: var(--muted, #6f756b);
  font-size: 0.84rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.report-error-trigger:hover {
  color: var(--ink, #181a16);
  background: rgba(var(--w, 24, 26, 22), 0.05);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.report-error-trigger svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  stroke: currentColor;
  fill: none;
}
:root[data-theme="dark"] .report-error-trigger {
  color: rgba(255, 255, 255, 0.45);
}
:root[data-theme="dark"] .report-error-trigger:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.report-error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: reportErrorFadeIn 0.2s ease-out;
}
.report-error-overlay.active {
  display: flex;
}
@keyframes reportErrorFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes reportErrorSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.report-error-modal {
  background: #ffffff;
  color: #181a16;
  border: 1px solid rgba(24, 26, 22, 0.16);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: reportErrorSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
:root[data-theme="dark"] .report-error-modal {
  background: #111113;
  color: #f4f7f5;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.report-error-header {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(24, 26, 22, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
:root[data-theme="dark"] .report-error-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.report-error-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.report-error-header-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex: 0 0 20px;
}
.report-error-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: inherit;
}
.report-error-close {
  background: transparent;
  border: none;
  color: #6f756b;
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.16s ease;
}
.report-error-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #181a16;
}
:root[data-theme="dark"] .report-error-close {
  color: rgba(255, 255, 255, 0.5);
}
:root[data-theme="dark"] .report-error-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.report-error-body {
  padding: 22px;
}
.report-error-subtitle {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #5a5f57;
  margin: 0 0 18px;
}
:root[data-theme="dark"] .report-error-subtitle {
  color: rgba(255, 255, 255, 0.6);
}
.report-error-group {
  margin-bottom: 16px;
}
.report-error-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3f473f;
  margin-bottom: 6px;
}
:root[data-theme="dark"] .report-error-group label {
  color: rgba(255, 255, 255, 0.7);
}
.report-error-group .required-star {
  color: var(--gold);
}
.report-error-group input,
.report-error-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: #fcfdfe;
  border: 1px solid rgba(24, 26, 22, 0.2);
  border-radius: 8px;
  color: #181a16;
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
:root[data-theme="dark"] .report-error-group input,
:root[data-theme="dark"] .report-error-group textarea {
  background: #18181a;
  border-color: rgba(255, 255, 255, 0.16);
  color: #f4f7f5;
}
.report-error-group input:focus,
.report-error-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(210, 162, 58, 0.16);
}
.report-error-group textarea {
  resize: vertical;
  min-height: 100px;
}
.report-error-page-info {
  margin: 14px 0 18px;
  padding: 10px 12px;
  background: rgba(24, 26, 22, 0.04);
  border-radius: 6px;
  font-size: 0.78rem;
  color: #5a5f57;
  word-break: break-all;
}
:root[data-theme="dark"] .report-error-page-info {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
}
.report-error-page-label {
  font-weight: 600;
  margin-right: 4px;
}
.report-error-status {
  margin-bottom: 14px;
  font-size: 0.84rem;
  color: #d9381e;
}
.report-error-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.report-error-cancel-btn {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(24, 26, 22, 0.16);
  border-radius: 8px;
  color: #5a5f57;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}
.report-error-cancel-btn:hover {
  background: rgba(24, 26, 22, 0.06);
  color: #181a16;
}
:root[data-theme="dark"] .report-error-cancel-btn {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
}
:root[data-theme="dark"] .report-error-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.report-error-submit-btn {
  padding: 10px 20px;
  background: var(--gold);
  color: #0d0d0d;
  border: none;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.report-error-submit-btn:hover:not(:disabled) {
  background: #e8b947;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(210, 162, 58, 0.3);
}
.report-error-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.report-error-success {
  text-align: center;
  padding: 20px 10px;
}
.report-error-success-icon {
  width: 52px;
  height: 52px;
  background: rgba(76, 175, 80, 0.12);
  color: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.report-error-success-icon svg {
  width: 28px;
  height: 28px;
}
.report-error-success-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: inherit;
}
.report-error-success-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5a5f57;
  margin: 0 0 20px;
}
:root[data-theme="dark"] .report-error-success-text {
  color: rgba(255, 255, 255, 0.6);
}
.report-error-success-btn {
  padding: 10px 24px;
  background: var(--gold);
  color: #0d0d0d;
  border: none;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* ===================================================================
   CARTE DE FLUX — source unique de vérité
   ===================================================================
   Même carte que le flux de l'app (.article-card dans style.css) :
   avatar 40px, titre en premier, ligne méta (source · date · étiquette)
   dessous, puis résumé, puces société et compteurs vues/clics.

   Les couches satellite-modern.css, project-sector-modern.css et
   directory-modern.css redéfinissaient chacune ces cartes à leur façon
   (grille éditoriale à flèche, bento arrondi doré, pastilles colorées) :
   leurs règles ont été retirées. Ne pas les réintroduire — tout se règle
   ici, pour toutes les pages satellites d'un coup.

   Le markup généré met .sat-hd (pastille + méta) AVANT le titre ; l'ordre
   visuel du flux est rétabli par `order` plutôt qu'en régénérant les
   ~12 000 pages statiques. */

.sat-list {
  --fc-card: #222222;
  --fc-card-hover: #2c2c2c;
  --fc-line: #2f2f2f;
  --fc-avatar: #363636;
  --fc-tag-line: #777777;
  --fc-title: #ffffff;
  --fc-text: #d0d0d0;
  --fc-meta: #a8a8a8;
  --fc-ghost: #8c8c8c;

  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--fc-card);
}

:root[data-theme="light"] .sat-list {
  --fc-card: #ffffff;
  --fc-card-hover: #ffffff;
  --fc-line: #D7D9CF;
  --fc-avatar: #EEF0E7;
  --fc-tag-line: #C4C7BC;
  --fc-title: #181A16;
  --fc-text: #4A4D45;
  --fc-meta: #686C62;
  --fc-ghost: #8E9288;
}

.sat-list > li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 12px;
  margin: 0;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--fc-line);
  border-radius: 0;
  background: var(--fc-card);
  box-shadow: none;
  transform: none;
  transition: background .18s ease;
}
.sat-list > li:last-child { border-bottom: 0; }
.sat-list > li::after { content: none; }

/* Carte société entièrement cliquable : le lien du nom couvre toute la carte,
   les autres liens (site officiel, chips…) repassent au-dessus. */
.sat-list > li.sat-li--clickable { cursor: pointer; }
.sat-list a.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}
.sat-list > li.sat-li--clickable .meta a,
.sat-list > li.sat-li--clickable .company-chip,
.sat-list > li.sat-li--clickable .sat-chip {
  position: relative;
  z-index: 2;
}

@media (hover: hover) {
  .sat-list > li:hover {
    background: var(--fc-card-hover);
    transform: none;
  }
  :root[data-theme="light"] .sat-list > li:hover {
    box-shadow: inset 0 0 0 1px var(--fc-tag-line);
  }
}

/* Avatar monogramme / favicon de la source */
.sat-av {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: var(--fc-title);
  background: var(--fc-avatar);
  border: 1px solid var(--fc-line);
  overflow: hidden;
  user-select: none;
}
.sat-av:has(img) { background: transparent; border-color: transparent; }
.sat-av img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  display: block;
}

.sat-bd {
  flex: 1 1 calc(100% - 52px);
  max-width: calc(100% - 52px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Ordre du flux : titre, méta, résumé, sociétés liées, compteurs. */
.sat-bd > .sat-title,
.sat-bd > .sat-title--dead { order: 1; }
.sat-bd > .sat-hd { order: 2; }
.sat-bd > .sat-sum { order: 3; }
.sat-bd > .company-chips { order: 4; }
.sat-bd > .sat-metrics { order: 5; }

.sat-list .sat-title,
.sat-list a.sat-title,
.sat-list .sat-title--dead {
  display: -webkit-box;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--fc-title);
  text-decoration: none;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sat-list a.sat-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.sat-list .sat-title--dead {
  color: var(--fc-ghost);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: .75;
}

/* Ligne méta : pastille de catégorie + source · date */
.sat-hd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin: 4px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--fc-meta);
}
.sat-list > li .meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fc-meta);
}
.sat-list > li .meta a { color: var(--fc-text); font-weight: 500; text-decoration: none; }
.sat-list > li .meta a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Étiquette de catégorie : contour neutre, comme .article-tag du flux. */
.sat-list .sat-pill,
.sat-list .sat-pill--Job,
.sat-list .sat-pill--AO,
.sat-list .sat-pill--PubLeg,
.sat-list .sat-pill--Actu {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid var(--fc-tag-line);
  border-radius: 4px;
  background: transparent;
  color: var(--fc-meta);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
}

.sat-sum {
  margin: 6px 0 0;
  color: var(--fc-text);
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sat-list .company-chips { margin-top: 8px; }

/* Compteurs vues / clics, posés par item-interactions.js */
.sat-metrics {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fc-ghost);
  opacity: .8;
  white-space: nowrap;
  pointer-events: none;
}

.sat-list .link-dead-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  padding: 2px 6px;
  border: 1px solid #991b1b;
  border-radius: 4px;
  background-color: #7f1d1d;
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
  text-decoration: none !important;
}
:root[data-theme="light"] .sat-list .link-dead-badge {
  background-color: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}
.sat-list .link-dead-badge::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9.5 14.5-1 1a4.24 4.24 0 0 1-6-6l3-3a4.24 4.24 0 0 1 6 0M14.5 9.5l1-1a4.24 4.24 0 0 1 6 6l-3 3a4.24 4.24 0 0 1-6 0M3 21l18-18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9.5 14.5-1 1a4.24 4.24 0 0 1-6-6l3-3a4.24 4.24 0 0 1 6 0M14.5 9.5l1-1a4.24 4.24 0 0 1 6 6l-3 3a4.24 4.24 0 0 1-6 0M3 21l18-18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Listes simples (annuaire, signaux d'un secteur) : pas d'avatar ni de
   .sat-bd, juste un lien et sa ligne méta. Même carte, contenu empilé. */
.sat-list > li:not(:has(.sat-bd)) {
  display: block;
}
.sat-list > li > a {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fc-title);
  text-decoration: none;
}
.sat-list > li > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sat-list > li > .meta { margin-top: 4px; }

/* Les en-têtes de groupe de l'annuaire ne sont pas des cartes. */
.sat-list > .directory-group-heading {
  display: flex;
  padding: 24px 16px 12px;
  background: transparent;
}

/* Cartes société / entité (grilles « similaires », annuaire, outils) :
   mêmes encres et mêmes surfaces que la carte de flux ci-dessus. Le
   !important répond à directory-modern.css, qui repeint .similar-card. */
.similar-grid {
  --fc-card: #222222;
  --fc-card-hover: #2c2c2c;
  --fc-line: #2f2f2f;
  --fc-tag-line: #777777;
  --fc-title: #ffffff;
  --fc-meta: #a8a8a8;
  gap: 10px;
}
:root[data-theme="light"] .similar-grid {
  --fc-card: #ffffff;
  --fc-card-hover: #ffffff;
  --fc-line: #D7D9CF;
  --fc-tag-line: #C4C7BC;
  --fc-title: #181A16;
  --fc-meta: #686C62;
}
.similar-grid .similar-card {
  display: block !important;
  padding: 16px !important;
  border: 1px solid var(--fc-line) !important;
  border-radius: 8px !important;
  background: var(--fc-card) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .18s ease, border-color .18s ease !important;
}
@media (hover: hover) {
  .similar-grid .similar-card:hover {
    background: var(--fc-card-hover) !important;
    border-color: var(--fc-tag-line) !important;
    transform: none !important;
  }
}
.similar-grid .similar-name {
  display: block !important;
  color: var(--fc-title) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}
.similar-grid .similar-meta {
  display: block !important;
  margin-top: 4px !important;
  color: var(--fc-meta) !important;
}
.sat-list .sat-title,
.sat-list a.sat-title,
.sat-list .sat-title--dead {
  display: -webkit-box;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--fc-title);
  text-decoration: none;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sat-list a.sat-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.sat-list .sat-title--dead {
  color: var(--fc-ghost);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: .75;
}

/* Ligne méta : pastille de catégorie + source · date */
.sat-hd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin: 4px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--fc-meta);
}
.sat-list > li .meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fc-meta);
}
.sat-list > li .meta a { color: var(--fc-text); font-weight: 500; text-decoration: none; }
.sat-list > li .meta a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Étiquette de catégorie : contour neutre, comme .article-tag du flux. */
.sat-list .sat-pill,
.sat-list .sat-pill--Job,
.sat-list .sat-pill--AO,
.sat-list .sat-pill--PubLeg,
.sat-list .sat-pill--Actu {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid var(--fc-tag-line);
  border-radius: 4px;
  background: transparent;
  color: var(--fc-meta);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
}

.sat-sum {
  margin: 6px 0 0;
  color: var(--fc-text);
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sat-list .company-chips { margin-top: 8px; }

/* Compteurs vues / clics, posés par item-interactions.js */
.sat-metrics {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fc-ghost);
  opacity: .8;
  white-space: nowrap;
  pointer-events: none;
}

.sat-list .link-dead-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  padding: 2px 6px;
  border: 1px solid #991b1b;
  border-radius: 4px;
  background-color: #7f1d1d;
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
  text-decoration: none !important;
}
:root[data-theme="light"] .sat-list .link-dead-badge {
  background-color: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}
.sat-list .link-dead-badge::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9.5 14.5-1 1a4.24 4.24 0 0 1-6-6l3-3a4.24 4.24 0 0 1 6 0M14.5 9.5l1-1a4.24 4.24 0 0 1 6 6l-3 3a4.24 4.24 0 0 1-6 0M3 21l18-18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9.5 14.5-1 1a4.24 4.24 0 0 1-6-6l3-3a4.24 4.24 0 0 1 6 0M14.5 9.5l1-1a4.24 4.24 0 0 1 6 6l-3 3a4.24 4.24 0 0 1-6 0M3 21l18-18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Listes simples (annuaire, signaux d'un secteur) : pas d'avatar ni de
   .sat-bd, juste un lien et sa ligne méta. Même carte, contenu empilé. */
.sat-list > li:not(:has(.sat-bd)) {
  display: block;
}
.sat-list > li > a {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fc-title);
  text-decoration: none;
}
.sat-list > li > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sat-list > li > .meta { margin-top: 4px; }

/* Les en-têtes de groupe de l'annuaire ne sont pas des cartes. */
.sat-list > .directory-group-heading {
  display: flex;
  padding: 24px 16px 12px;
  background: transparent;
}

/* Cartes société / entité (grilles « similaires », annuaire, outils) :
   mêmes encres et mêmes surfaces que la carte de flux ci-dessus. Le
   !important répond à directory-modern.css, qui repeint .similar-card. */
.similar-grid {
  --fc-card: #222222;
  --fc-card-hover: #2c2c2c;
  --fc-line: #2f2f2f;
  --fc-tag-line: #777777;
  --fc-title: #ffffff;
  --fc-meta: #a8a8a8;
  gap: 10px;
}
:root[data-theme="light"] .similar-grid {
  --fc-card: #ffffff;
  --fc-card-hover: #ffffff;
  --fc-line: #D7D9CF;
  --fc-tag-line: #C4C7BC;
  --fc-title: #181A16;
  --fc-meta: #686C62;
}
.similar-grid .similar-card {
  display: block !important;
  padding: 16px !important;
  border: 1px solid var(--fc-line) !important;
  border-radius: 8px !important;
  background: var(--fc-card) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .18s ease, border-color .18s ease !important;
}
@media (hover: hover) {
  .similar-grid .similar-card:hover {
    background: var(--fc-card-hover) !important;
    border-color: var(--fc-tag-line) !important;
    transform: none !important;
  }
}
.similar-grid .similar-name {
  display: block !important;
  color: var(--fc-title) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}
.similar-grid .similar-meta {
  display: block !important;
  margin-top: 4px !important;
  color: var(--fc-meta) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

/* ==========================================================================
   Timeline / Chronologie des signaux collectés
   DA BizNC pure : Ligne continue à gauche + bullet points + métas et liens à droite
   Noir et blanc / Monochrome strict (sombre & clair)
   ========================================================================== */

.timeline-count-badge {
  font-feature-settings: "tnum";
}

/* Conteneur de l'axe vertical (bento & modale) */
.timeline-spine {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  position: relative;
}

/* La ligne verticale continue à gauche */
.timeline-spine::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 12px;
  left: 4px;
  width: 1px;
  background: var(--hair, rgba(255, 255, 255, 0.14));
}

:root[data-theme="light"] .timeline-spine::before {
  background: var(--line-dark, rgba(24, 26, 22, 0.14));
}

/* Ligne d'événement individuelle */
.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 12px;
  padding-bottom: 18px;
}

.timeline-row:last-child {
  padding-bottom: 4px;
}

/* Le bullet point posé sur la ligne */
.timeline-bullet {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg, #0a0a0a);
  border: 2px solid var(--ink, #ffffff);
  box-sizing: border-box;
  margin-top: 5px;
  z-index: 1;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

:root[data-theme="light"] .timeline-bullet {
  background: #ffffff;
  border-color: #181a16;
}

.timeline-row:hover .timeline-bullet {
  transform: scale(1.3);
  background: var(--ink, #ffffff);
}

:root[data-theme="light"] .timeline-row:hover .timeline-bullet {
  background: #181a16;
}

/* Contenu à droite du bullet point */
.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Ligne de métadonnées : Catégorie (pill ou tag) + Date + Source */
.timeline-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.74rem;
  line-height: 1.3;
}

/* Catégorie : tag monochrome sobre comme .sat-pill de l'annuaire */
.timeline-cat {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.22));
  border-radius: 4px;
  background: transparent;
  color: var(--soft, #d7ddd7);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

:root[data-theme="light"] .timeline-cat {
  border-color: rgba(24, 26, 22, 0.2);
  color: #33372f;
}

/* Date */
.timeline-meta-line time {
  font-weight: 600;
  color: var(--muted, #aeb8b4);
}

:root[data-theme="light"] .timeline-meta-line time {
  color: #686C62;
}

/* Source de l'élément */
.timeline-origin {
  color: var(--muted, #aeb8b4);
  font-size: 0.72rem;
  white-space: nowrap;
  position: relative;
  padding-left: 8px;
}

.timeline-origin::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--hair, rgba(255, 255, 255, 0.3));
}

:root[data-theme="light"] .timeline-origin {
  color: #686C62;
}

:root[data-theme="light"] .timeline-origin::before {
  color: rgba(24, 26, 22, 0.3);
}

/* Titre cliquable */
.timeline-title-link {
  color: var(--ink, #ffffff);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

:root[data-theme="light"] .timeline-title-link {
  color: #181A16;
}

.timeline-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Bouton Voir plus dans le Bento (reprise directe de .panel-more canonique) */
button.timeline-trigger-btn {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

button.timeline-trigger-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ==========================================================================
   Modale Chronologie Complète
   ========================================================================== */
.timeline-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
  box-sizing: border-box;
  animation: timelineFadeIn 0.2s ease-out;
}

.timeline-modal-overlay[aria-hidden="false"] {
  display: flex;
}

@keyframes timelineFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes timelineSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.timeline-modal-dialog {
  background: #111113;
  color: var(--ink, #f4f7f5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  animation: timelineSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

:root[data-theme="light"] .timeline-modal-dialog {
  background: #ffffff;
  color: #181a16;
  border: 1px solid rgba(24, 26, 22, 0.16);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.timeline-modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
}

:root[data-theme="light"] .timeline-modal-header {
  border-bottom-color: rgba(24, 26, 22, 0.1);
}

.timeline-modal-header-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timeline-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-modal-title svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.timeline-modal-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted, #aeb8b4);
}

:root[data-theme="light"] .timeline-modal-sub {
  color: #686C62;
}

.timeline-modal-close {
  background: transparent;
  border: none;
  color: var(--muted, #aeb8b4);
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.timeline-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .timeline-modal-close:hover {
  color: #000000;
  background: rgba(24, 26, 22, 0.06);
}

.timeline-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

:root[data-theme="light"] .timeline-modal-body {
  scrollbar-color: rgba(24, 26, 22, 0.2) transparent;
}

/* Groupes mensuels dans la modale */
.timeline-modal-flow {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.timeline-month-block {
  display: flex;
  flex-direction: column;
}

.timeline-month-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair, rgba(255, 255, 255, 0.08));
  margin-bottom: 12px;
}

:root[data-theme="light"] .timeline-month-heading {
  border-bottom-color: rgba(24, 26, 22, 0.08);
}

.timeline-month-label {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink, #ffffff);
}

:root[data-theme="light"] .timeline-month-label {
  color: #181a16;
}

.timeline-month-count {
  font-size: 0.72rem;
  color: var(--muted, #aeb8b4);
}

:root[data-theme="light"] .timeline-month-count {
  color: #686C62;
}

.timeline-modal-footer {
  padding: 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

:root[data-theme="light"] .timeline-modal-footer {
  border-top-color: rgba(24, 26, 22, 0.1);
}

.timeline-modal-tip {
  font-size: 0.76rem;
  color: var(--muted, #aeb8b4);
}

:root[data-theme="light"] .timeline-modal-tip {
  color: #686C62;
}

@media (max-width: 600px) {
  .timeline-modal-overlay {
    padding: 10px;
  }
  .timeline-modal-dialog {
    max-height: 94vh;
  }
  .timeline-modal-header {
    padding: 14px 16px;
  }
  .timeline-modal-body {
    padding: 16px;
  }
  .timeline-modal-footer {
    padding: 12px 16px;
  }
}
