:root {
  color-scheme: light;
  --ink: #102019;
  --muted: #607067;
  --soft: #edf5f1;
  --line: rgba(16, 32, 25, 0.12);
  --paper: rgba(255, 255, 255, 0.7);
  --paper-strong: rgba(255, 255, 255, 0.92);
  --green: #13936b;
  --green-strong: #075f45;
  --blue: #216f98;
  --cyan: #2aaeb3;
  --amber: #c67a28;
  --rose: #b14367;
  --shadow: 0 18px 70px rgba(17, 39, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 8%, rgba(19, 147, 107, 0.28), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(42, 174, 179, 0.24), transparent 30%),
    radial-gradient(circle at 78% 76%, rgba(198, 122, 40, 0.16), transparent 32%),
    linear-gradient(135deg, #f8fcfa 0%, #e8f4ef 45%, #f7f0e9 100%);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(16, 32, 25, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 25, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.7), transparent 55%);
  background-size: 52px 52px, 52px 52px, auto;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 40px rgba(17, 39, 31, 0.1);
  backdrop-filter: blur(22px) saturate(135%);
}

.topbar > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 8px 20px rgba(22, 132, 91, 0.25);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.topbar-action {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 680;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--ink);
  background: rgba(22, 132, 91, 0.1);
}

.topbar-action {
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #24463a);
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(460px, 0.78fr);
  gap: 18px;
  align-items: center;
  padding: 24px 0 14px;
}

.hero-copy,
.command-panel,
.market-grid > *,
.workbench,
.page-head,
.article {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.65rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.lead {
  max-width: 540px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-actions button,
.filter-chip,
.quick-chip {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(23, 33, 28, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  font-weight: 740;
  min-width: 0;
}

.hero-actions button:hover,
.filter-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 10px 24px rgba(19, 147, 107, 0.18);
}

.command-panel,
.map-card,
.prospect-panel,
.workbench,
.kpi-strip article,
.feature-link,
.note-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(135%);
}

.command-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.52)),
    radial-gradient(circle at 100% 0%, rgba(42, 174, 179, 0.14), transparent 40%);
}

.panel-title,
.section-head {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.panel-title span,
.section-head > p,
.result-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.panel-title strong {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green-strong);
  background: rgba(22, 132, 91, 0.1);
  font-size: 0.78rem;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(23, 33, 28, 0.18);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: var(--paper-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
  border-color: rgba(22, 132, 91, 0.62);
  box-shadow: 0 0 0 4px rgba(22, 132, 91, 0.13);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.mode-tab {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 780;
}

.mode-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kpi-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.kpi-strip article {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 13px 15px;
  box-shadow: 0 10px 36px rgba(17, 39, 31, 0.08);
}

.kpi-strip span,
.kpi-strip small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.kpi-strip strong {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
}

.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.68fr);
  gap: 14px;
  margin-top: 14px;
}

.map-card,
.prospect-panel,
.workbench {
  padding: 16px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 99px;
}

.dot.hot {
  background: var(--rose);
}

.dot.cool {
  background: var(--blue);
}

.france-map {
  position: relative;
  min-height: 520px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 28, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(19, 147, 107, 0.16), transparent 34%),
    radial-gradient(circle at 74% 20%, rgba(42, 174, 179, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.46);
}

.map-silhouette {
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
}

.map-silhouette svg {
  width: min(82%, 480px);
  max-height: 480px;
  fill: rgba(255, 255, 255, 0.62);
  stroke: rgba(7, 95, 69, 0.16);
  stroke-width: 4;
  filter: drop-shadow(0 28px 42px rgba(23, 33, 28, 0.1));
}

.map-silhouette .corsica {
  fill: rgba(255, 255, 255, 0.64);
}

.map-bubbles {
  position: absolute;
  inset: 0;
}

.map-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 33, 28, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.map-bubble span {
  font-size: 0.72rem;
  font-weight: 860;
}

.map-bubble.is-hot {
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

.map-bubble.is-cool {
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.map-bubble.is-selected,
.map-bubble:hover {
  z-index: 3;
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow: 0 14px 32px rgba(23, 33, 28, 0.28);
}

.map-readout {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(310px, calc(100% - 36px));
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(23, 33, 28, 0.12);
}

.map-readout span {
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 840;
  text-transform: uppercase;
}

.map-readout strong {
  display: block;
  margin-top: 6px;
  font-size: 1.5rem;
}

.map-readout p,
.result-card p,
.feature-link p,
.article p,
.panel-foot {
  margin: 0;
  color: var(--muted);
}

.prospect-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.55)),
    radial-gradient(circle at 100% 0%, rgba(177, 67, 103, 0.1), transparent 36%);
}

.prospect-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.card-kicker {
  margin: 0 0 7px;
  color: var(--green-strong);
  font-size: 0.72rem;
  font-weight: 860;
  text-transform: uppercase;
}

.score-ring {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 8px solid rgba(19, 147, 107, 0.18);
  border-top-color: var(--green);
  border-radius: 999px;
  background: #fff;
}

.score-ring.is-risk {
  border-color: rgba(163, 63, 95, 0.16);
  border-top-color: var(--rose);
}

.score-ring strong {
  font-size: 1.45rem;
  line-height: 0.9;
}

.score-ring span {
  margin-top: -18px;
  color: var(--muted);
  font-size: 0.74rem;
}

dl,
.prospect-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

dd {
  margin: 2px 0 0;
  font-weight: 820;
}

.blurred-contacts {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.blurred-contacts div,
.competitive-box {
  padding: 12px;
  border: 1px dashed rgba(23, 33, 28, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.blurred-contacts span,
.competitive-box span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 780;
  text-transform: uppercase;
}

.blurred-contacts strong {
  display: block;
  margin-top: 4px;
  filter: blur(1.2px);
  user-select: none;
}

.competitive-box {
  margin-top: 14px;
}

.competitive-box p {
  margin-top: 6px;
}

.tag-row,
.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span,
.signal-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(23, 33, 28, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  font-weight: 740;
}

.action-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.action-stack button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  font-weight: 780;
}

.action-stack button:last-child {
  color: var(--ink);
  background: rgba(23, 33, 28, 0.09);
}

.panel-foot {
  margin-top: 12px;
  font-size: 0.82rem;
}

.workbench {
  margin-top: 16px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.result-card {
  display: grid;
  gap: 10px;
  min-height: 218px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 32px rgba(23, 33, 28, 0.08);
}

.company-card {
  cursor: pointer;
}

.company-card:hover {
  border-color: rgba(22, 132, 91, 0.38);
  box-shadow: 0 16px 40px rgba(23, 33, 28, 0.14);
}

.page-head {
  padding: 82px 0 28px;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-link {
  display: grid;
  gap: 16px;
  min-height: 260px;
  padding: 24px;
}

.feature-link span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-strong);
  font-weight: 820;
}

.article {
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 82px;
}

.article.narrow {
  max-width: 760px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  margin-top: 34px;
}

.article section {
  display: grid;
  gap: 16px;
}

.note-panel {
  padding: 20px;
}

.note-panel strong {
  display: block;
  margin-bottom: 10px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(23, 33, 28, 0.1);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.primary-link {
  width: fit-content;
  margin-top: 24px;
}

@media (max-width: 1080px) {
  .market-hero,
  .market-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prospect-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-shell {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    padding-top: 10px;
  }

  .topbar {
    display: flex;
    flex-wrap: wrap;
    top: 8px;
    gap: 10px;
  }

  .brand {
    flex: 1 1 210px;
    font-size: 0.94rem;
  }

  .topbar-action {
    flex: 1 1 100%;
    text-align: center;
  }

  .nav-links {
    order: 3;
    flex: 1 1 100%;
    justify-content: start;
    overflow-x: auto;
  }

  .market-hero,
  .page-head,
  .article {
    padding-top: 46px;
  }

  .market-hero {
    display: block;
  }

  .hero-copy,
  .command-panel,
  .kpi-strip,
  .market-grid,
  .map-card,
  .prospect-panel,
  .workbench {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    overflow: hidden;
  }

  h1 {
    max-width: min(350px, calc(100vw - 20px));
    font-size: clamp(1.9rem, 9.6vw, 2.6rem);
    line-height: 1.05;
  }

  .lead {
    max-width: min(350px, calc(100vw - 20px));
  }

  .command-panel,
  .map-card,
  .prospect-panel,
  .workbench {
    padding: 12px;
  }

  .command-panel {
    margin-top: 18px;
  }

  .mode-tabs,
  .kpi-strip,
  .results-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .filter-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-chip {
    width: 100%;
    padding-inline: 8px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .france-map {
    min-height: 470px;
  }

  .map-silhouette {
    inset: 18px 0;
  }

  .map-silhouette svg {
    width: 96%;
  }

  .section-head,
  .panel-title {
    flex-direction: column;
    gap: 8px;
  }

  .action-stack,
  dl,
  .prospect-metrics {
    grid-template-columns: 1fr;
  }
}
