@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --surface-2: #efeff2;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --text: #111114;
  --muted: #555a64;
  --faint: #686d77;
  --accent: #5b5bd6;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-tint: #3f40b0;
  --primary-hover: #2e2e35;
  --header-bg: rgba(255, 255, 255, 0.82);
  --panel: #fbfbfc;
  --ligue-cell: #eeeffd;
  --no: #a0a4ac;
  --amber: #9a5f00;
  --scrollbar: #d4d4da;
  --inset: rgba(255, 255, 255, 0.6);
  --scheme: light;
  --shadow: rgba(20, 20, 40, 0.14);

  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --page: min(70rem, 100% - 3rem);
  --radius: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: var(--scheme);
  scrollbar-color: var(--scrollbar) var(--bg);
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Boutons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: var(--radius);
  font: 500 0.95rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.button-ghost:hover {
  background: var(--surface-2);
}

.button:active {
  transform: translateY(1px);
}

.button-small {
  height: 2.1rem;
  padding: 0 0.85rem;
  font-size: 0.875rem;
}

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo svg {
  width: 1.4rem;
  height: 1.4rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav a:not(.button):hover {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(4.5rem, 10vw, 8rem);
}

.hero h1 span {
  color: var(--muted);
}

.hero .lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* ---------- Fenêtre produit : le tableau de mission ---------- */

.board {
  margin: clamp(3.5rem, 7vw, 5rem) 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow:
    0 1px 0 var(--inset) inset,
    0 40px 90px -30px var(--shadow);
  overflow: hidden;
}

.board-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  min-width: 0;
}

.crumbs b {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.5rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.pill .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.board-body {
  display: grid;
  grid-template-columns: 15rem 1fr;
}

.team {
  border-right: 1px solid var(--line);
  padding: 1rem 0.75rem;
}

.team-title {
  font-size: 0.75rem;
  color: var(--faint);
  padding: 0 0.5rem 0.5rem;
}

.team ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.member {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.3;
}

.member small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: 0.75rem;
  font-weight: 600;
}

.member.is-you {
  background: var(--accent-soft);
}

.timeline {
  padding: 1rem 1.25rem 1.25rem;
  overflow-x: auto;
}

.lanes {
  min-width: 34rem;
  display: grid;
  grid-template-columns: 6.5rem repeat(12, 1fr);
  grid-template-rows: auto 4.5rem repeat(3, 2.25rem);
  row-gap: 0.4rem;
}

.lane-label {
  grid-column: 1;
  align-self: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.week {
  grid-row: 1;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  text-align: center;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.week.is-now {
  color: var(--accent);
}

.load {
  grid-row: 2;
  align-self: end;
  margin-inline: 2px;
  height: calc(var(--n) / 2 * 100%);
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}

.seg {
  align-self: center;
  height: 1.5rem;
  margin-inline: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: 0.75rem;
  color: var(--muted);
  padding-inline: 0.5rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.seg.is-accent {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent-tint);
}

.handoff {
  grid-row: 2 / 5;
  width: 1px;
  justify-self: start;
  background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--accent) 70%, transparent) 0 3px, transparent 3px 6px);
}

.activity {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.activity li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
}

.activity time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  padding-top: 0.1rem;
}

.activity b {
  color: var(--text);
  font-weight: 500;
}

@media (prefers-reduced-motion: no-preference) {
  .load {
    animation: grow 0.9s var(--ease) both;
    animation-delay: calc(var(--i) * 45ms + 150ms);
    transform-origin: bottom;
  }

  .seg {
    animation: draw 0.9s var(--ease) both;
    animation-delay: calc(var(--i) * 45ms + 300ms);
    transform-origin: left;
  }

  @keyframes grow {
    from {
      transform: scaleY(0.15);
      opacity: 0.3;
    }
  }

  @keyframes draw {
    from {
      transform: scaleX(0.2);
      opacity: 0.3;
    }
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.features,
.charter {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.features li,
.charter li {
  padding: 2rem 2.5rem 2.25rem 0;
  border-bottom: 1px solid var(--line);
}

.features li:nth-child(even),
.charter li:nth-child(even) {
  padding-left: 2.5rem;
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.features li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.features h3,
.charter h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.features h3 .icon {
  color: var(--accent);
}

.charter h3 span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--faint);
}

.features p,
.charter p {
  color: var(--muted);
  max-width: 30rem;
}

/* ---------- Comparatif ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.compare {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}

.compare caption {
  caption-side: bottom;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--faint);
  border-top: 1px solid var(--line);
}

.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 1.25rem;
}

.compare thead th {
  font-weight: 600;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
}

.compare thead th small {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
}

.compare tbody th {
  width: 9.5rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
}

.compare tbody tr + tr > * {
  border-top: 1px solid var(--line);
}

.compare .ligue {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.compare thead .ligue {
  box-shadow: inset 0 2px 0 var(--accent);
}

.compare ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  line-height: 1.45;
}

.compare li {
  display: flex;
  gap: 0.6rem;
}

.compare li .icon {
  margin-top: 0.2rem;
  width: 0.95rem;
  height: 0.95rem;
}

.plus .icon {
  color: var(--accent);
}

.minus {
  color: var(--muted);
}

.minus .icon {
  color: var(--faint);
}

/* ---------- Étapes ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 2.4rem;
  right: -1.5rem;
  height: 1px;
  background: var(--line);
}

.steps li:last-child::after {
  display: none;
}

.steps h3 {
  margin-bottom: 0.4rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.95rem;
}

.domain-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 3.5rem;
}

.domain-label {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

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

.domains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.domains li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Équipe ---------- */

.founders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1100px) {
  .founders {
    grid-template-columns: repeat(2, 1fr);
  }
}

.founder {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.founder.is-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 2rem;
  padding: 2rem;
}

.founder-id {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar:has(img) {
  overflow: hidden;
  padding: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.founder .avatar {
  width: 3rem;
  height: 3rem;
  font-size: 0.95rem;
}

.founder.is-lead .avatar {
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.25rem;
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.founder h3 small {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0;
}

.founder.is-lead h3 {
  font-size: 1.35rem;
}

.founder-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.founder p {
  color: var(--muted);
  font-size: 0.95rem;
}

.founder.is-lead p {
  font-size: 1.05rem;
  max-width: 44rem;
}

.tags {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags li {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: var(--surface-2);
}

.fictif {
  align-self: flex-start;
  font-size: 0.75rem;
  color: var(--amber);
  border: 1px solid rgba(229, 181, 103, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

/* ---------- Commercial partagé ---------- */

.requests {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow-x: auto;
  margin-bottom: 3.5rem;
}

.requests table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.requests caption {
  caption-side: bottom;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--faint);
  border-top: 1px solid var(--line);
}

.requests th,
.requests td {
  text-align: left;
  padding: 0.8rem 1.25rem;
}

.requests thead th {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.requests tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.requests tfoot td {
  border-top: 1px solid var(--line-strong);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.status.is-yes {
  color: var(--accent-tint);
}

.status.is-yes .icon {
  color: var(--accent);
}

.status.is-no {
  color: var(--faint);
}

/* ---------- Gratuité ---------- */

.terms {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.terms li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.terms .icon {
  color: var(--accent);
}

/* ---------- Appel final ---------- */

.cta {
  padding-block: clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta h2 {
  max-width: 40rem;
  margin-inline: auto;
}

.cta p {
  margin: 1.25rem auto 0;
  max-width: 32rem;
  color: var(--muted);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  font-size: 0.85rem;
  color: var(--faint);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
  }

  .board-body {
    grid-template-columns: 1fr;
  }

  .team {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .team ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

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

  .steps li:nth-child(2)::after {
    display: none;
  }

  .founders,
  .founder.is-lead {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav a:not(.button) {
    display: none;
  }

  .features,
  .charter,
  .steps {
    grid-template-columns: 1fr;
  }

  .features li,
  .features li:nth-child(even),
  .charter li,
  .charter li:nth-child(even) {
    padding: 1.75rem 0;
    border-left: 0;
  }

  .steps li::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .table-scroll {
    border: 0;
    background: none;
    overflow: visible;
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td,
  .compare caption {
    display: block;
    min-width: 0;
  }

  .compare thead {
    display: none;
  }

  .compare caption {
    border: 0;
    padding: 0 0 1rem;
  }

  .compare tbody tr + tr > * {
    border-top: 0;
  }

  .compare tbody th {
    width: auto;
    padding: 1.5rem 0 0.75rem;
  }

  .compare td {
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }

  .compare td.ligue {
    background: var(--ligue-cell);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  }

  .compare td::before {
    content: attr(data-option);
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text);
  }

  .requests table {
    min-width: 0;
    font-size: 0.85rem;
  }

  .requests th,
  .requests td {
    padding: 0.7rem 0.75rem;
  }
}

@media (max-width: 680px) {
  .site-header .wrap {
    gap: 0.75rem;
  }

  .logo {
    font-size: 0.9rem;
  }

  .board-bar {
    flex-wrap: wrap;
  }

  .timeline {
    padding: 1rem 0.75rem;
  }

  .lanes {
    min-width: 0;
    grid-template-columns: 4.25rem repeat(12, 1fr);
  }

  .lanes .week:nth-child(even) {
    color: transparent;
  }

  .seg {
    font-size: 0;
    padding: 0;
    margin-inline: 1px;
  }

  .load {
    margin-inline: 1px;
  }

  .compare {
    display: flex;
    flex-direction: column;
  }

  .compare caption {
    order: 1;
    padding: 0.25rem 0 0;
  }
}

/* ---------- Page unique : navigation, logo, matrice, partie freelances ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.logo svg {
  width: 1.5rem;
  height: 1.5rem;
}

.logo-text span {
  color: var(--muted);
  font-weight: 500;
}

.nav a[aria-current] {
  color: var(--text);
}

.matrix-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.95rem;
}

.matrix th,
.matrix td {
  padding: 1rem 1.25rem;
  text-align: center;
}

.matrix thead th {
  font-weight: 600;
  font-size: 0.95rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.matrix thead th.ligue {
  box-shadow: inset 0 2px 0 var(--accent);
}

.matrix thead .ligue-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.matrix thead .ligue-name svg {
  width: 1.1rem;
  height: 1.1rem;
}

.matrix thead td {
  width: 42%;
}

.matrix tbody th,
.matrix tfoot th {
  text-align: left;
  font-weight: 400;
  color: var(--text);
}

.matrix tbody tr + tr > *,
.matrix tfoot > tr > * {
  border-top: 1px solid var(--line);
}

.matrix .ligue {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.yes,
.no {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  vertical-align: middle;
}

.yes {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-tint);
}

.ligue .yes {
  background: var(--accent);
  color: var(--bg);
}

.no {
  color: var(--no);
}

.yes .icon,
.no .icon {
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 2.25;
}

.matrix tfoot th,
.matrix tfoot td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding-block: 1.25rem;
}

.matrix tfoot td {
  color: var(--muted);
}

.matrix tfoot td.ligue {
  color: var(--text);
}

.band {
  background: var(--panel);
  border-top: 1px solid var(--line-strong);
}

.band-intro {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.band-intro h2 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.band-intro h2 span {
  color: var(--muted);
}

.band-intro .lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.band .section + .section,
.band-intro + .section {
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .nav a[href="#avantages"],
  .nav a[href="#equipe"] {
    display: none;
  }
}

@media (max-width: 680px) {
  .logo-text span {
    display: none;
  }

  .matrix {
    font-size: 0.85rem;
  }

  .matrix th,
  .matrix td {
    padding: 0.85rem 0.4rem;
  }

  .matrix thead td {
    width: 46%;
  }

  .matrix tbody th,
  .matrix tfoot th {
    padding-left: 0.9rem;
  }

  .matrix thead th {
    font-size: 0.8rem;
  }

  .matrix thead .ligue-name svg {
    display: none;
  }
}

/* ---------- Piliers du haut de page ---------- */

.pillars {
  list-style: none;
  margin: clamp(4rem, 8vw, 6rem) 0 0;
  padding: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  border-top: 1px solid var(--line);
}

.pillars h3 {
  margin-bottom: 0.5rem;
}

.pillars p {
  color: var(--muted);
}

.hero {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.hero + .section {
  border-top: 1px solid var(--line);
}

#relais .board {
  margin-top: 0;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .nav a[href="#relais"] {
    display: none;
  }
}

/* ---------- Freelances : page autonome ---------- */

.band {
  border-top: 0;
}

.band-intro h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.band-intro h1 span {
  color: var(--muted);
}

.section-head {
  align-items: start;
}

.section-head h2 span {
  display: block;
  color: var(--muted);
}

/* Coûts partagés : un poste par ligne, deux barres */

.ledger {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.ledger-head,
.ledger li {
  display: grid;
  grid-template-columns: minmax(12rem, 1.2fr) 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
}

.ledger-head {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.ledger-head span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ledger .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
}

.ledger ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger li + li {
  border-top: 1px solid var(--line);
}

.ledger-item b {
  display: block;
  font-weight: 500;
}

.ledger-item small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.ledger-bar {
  height: 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
}

.ledger-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.dot.is-solo,
.ledger-bar.is-solo span {
  background: var(--no);
}

.ledger-bar.is-solo span {
  width: 100%;
}

.dot.is-ligue,
.ledger-bar.is-ligue span {
  background: var(--accent);
}

.ledger-bar.is-ligue span {
  width: 12.5%;
}

.ledger-note {
  margin: 0;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--faint);
}

/* Trois phrases coup de poing */

.punches {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.punches li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--text);
}

.punches h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.punches p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .punches {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ledger-head,
  .ledger li {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.25rem;
  }

  .ledger-head span:first-child,
  .ledger-item {
    grid-column: 1 / -1;
  }
}

/* Objectif : tarifs d'ESN */

.ambition {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.75rem 4rem;
  align-items: start;
  margin-top: 3.5rem;
  padding: 2.25rem 2.5rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.ambition-label {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-tint);
}

.ambition-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ambition-title span {
  color: var(--accent-tint);
}

.ambition p:last-child {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .ambition {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
}
