/* courtages.ch — v2. Polices du système, aucune ressource externe, aucun cookie. */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --ink: #0f1d2c;
  --text: #1f2b38;
  --muted: #4a5868;
  --rule: #d9dee4;
  --rule-strong: #c3cbd4;
  --accent: #a4582a;
  --accent-strong: #8a4720;
  --accent-soft: #f4e8de;
  --navy: #0e1f33;
  --navy-2: #15304d;
  --navy-3: #1d3c5e;
  --on-navy: #eef2f6;
  --on-navy-muted: #b3c0ce;
  --accent-on-navy: #e3a676;
  --shadow: 0 1px 2px rgba(15, 29, 44, .06), 0 8px 24px rgba(15, 29, 44, .07);
  --shadow-lg: 0 2px 4px rgba(15, 29, 44, .06), 0 18px 44px rgba(15, 29, 44, .12);
  --radius: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Inter, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c141d;
    --surface: #121d29;
    --surface-2: #172434;
    --ink: #f0f3f7;
    --text: #e2e8ef;
    --muted: #a9b6c4;
    --rule: #243445;
    --rule-strong: #2f4357;
    --accent: #e3a676;
    --accent-strong: #efbb92;
    --accent-soft: #2a2119;
    --navy: #091521;
    --navy-2: #10243a;
    --navy-3: #18334f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 44px rgba(0, 0, 0, .35);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: .6rem 1rem; border-radius: 6px;
  box-shadow: var(--shadow); transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 20px rgba(15, 29, 44, .06); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { font-size: 1.02rem; white-space: nowrap; }
.brand-text .brand-co { color: var(--accent); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.main-nav a {
  display: block; padding: .5rem .7rem; border-radius: 6px; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  position: relative; transition: color .2s var(--ease), background-color .2s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.lang { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 2px; font-size: .82rem; font-weight: 650; letter-spacing: .04em; }
.lang a, .lang span { display: block; padding: .28rem .62rem; border-radius: 999px; text-decoration: none; line-height: 1.2; }
.lang span[aria-current] { background: var(--navy); color: var(--on-navy); }
.lang a { color: var(--muted); transition: color .2s var(--ease), background-color .2s var(--ease); }
.lang a:hover { color: var(--ink); background: var(--surface-2); }
.nav-toggle {
  display: none; align-items: center; gap: .45rem; font: inherit; font-size: .92rem; font-weight: 600;
  color: var(--ink); background: transparent; border: 1px solid var(--rule-strong); border-radius: 8px;
  padding: .42rem .7rem; cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1180px) {
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-lg);
    padding: .5rem var(--gutter) 1rem;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .js .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .js .main-nav ul { flex-direction: column; max-width: var(--wrap); margin: 0 auto; }
  .js .main-nav a { padding: .8rem .25rem; font-size: 1.02rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .js .main-nav li:last-child a { border-bottom: 0; }
  .js .main-nav a::after { display: none; }
  .js .main-nav a.is-active { color: var(--accent); }
  /* Sans script : la navigation passe à la ligne sous la marque */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: .5rem; }
  html:not(.js) .main-nav { order: 3; width: 100%; }
  html:not(.js) .main-nav ul { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  :root { --header-h: 60px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-text { font-size: .93rem; }
  .brand-text .brand-name { display: block; }
  .brand-text .brand-sep { display: none; }
  .brand-text { line-height: 1.15; }
  .nav-toggle .label { display: none; }
  .nav-toggle { padding: .42rem .5rem; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(227, 166, 118, .14), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-navy);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(7.5rem, 13vw, 10.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-art {
  position: absolute; z-index: -1; right: 0; bottom: clamp(3.5rem, 6vw, 5.5rem); width: 54%; height: clamp(240px, 31vw, 450px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  pointer-events: none;
}
.hero-art .ha { fill: none; stroke: rgba(238, 242, 246, .2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.hero-art .ha-soft { stroke: rgba(238, 242, 246, .1); }
.hero-art .ha-accent { fill: none; stroke: rgba(227, 166, 118, .55); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .ha-fill { fill: rgba(238, 242, 246, .04); }
.hero-art .ha-ground { stroke: rgba(238, 242, 246, .28); stroke-width: 1.5; }
.hero-copy { max-width: 46rem; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem;
  font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-on-navy);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { color: #fff; font-size: clamp(2.05rem, 1.25rem + 3.3vw, 3.6rem); font-weight: 680; letter-spacing: -0.025em; line-height: 1.08; }
.hero-lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--on-navy-muted); margin: 1.4rem 0 0; max-width: 38rem; }
.hero-lead strong { color: var(--on-navy); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .82rem 1.25rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent-on-navy); color: #1a0f07; }
.btn-primary:hover { background: #ecb88d; color: #1a0f07; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.btn-ghost { color: var(--on-navy); border: 1px solid rgba(238, 242, 246, .35); }
.btn-ghost:hover { color: #fff; border-color: rgba(238, 242, 246, .7); background: rgba(255, 255, 255, .06); }
.hero-terms { list-style: none; margin: 2.5rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid rgba(238, 242, 246, .14); display: flex; flex-wrap: wrap; gap: .75rem 2rem; font-size: .95rem; color: var(--on-navy); }
.hero-terms li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-terms .icon { width: 18px; height: 18px; color: var(--accent-on-navy); stroke-width: 2; }
.hero :focus-visible { outline-color: var(--accent-on-navy); }

/* Audience cards (overlapping the hero) */
.audience { position: relative; z-index: 2; margin-top: clamp(-5.5rem, -8vw, -4rem); }
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.aud-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  color: var(--text); text-decoration: none; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.aud-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(.25); transform-origin: top; transition: transform .35s var(--ease); }
.aud-card:hover { transform: translateY(-3px); border-color: var(--rule-strong); color: var(--text); }
.aud-card:hover::before { transform: scaleY(1); }
.aud-head { display: flex; align-items: center; gap: .85rem; }
.aud-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.aud-card h2 { font-size: 1.3rem; }
.aud-card p { color: var(--muted); }
.aud-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 600; font-size: .95rem; }
.aud-more .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.aud-card:hover .aud-more .icon { transform: translateX(4px); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.kicker { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-head h2 { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.5rem); font-weight: 680; }
.section-intro { margin-top: 1.1rem; font-size: 1.1rem; color: var(--muted); }
h3 { font-size: 1.15rem; font-weight: 650; }

/* How it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.how-grid .section-head { margin-bottom: 0; }
.how-fig { margin: 0; }
.triad { width: 100%; height: auto; display: block; }
.triad .t-line { stroke: var(--rule-strong); stroke-width: 2; fill: none; }
.triad .t-line-accent { stroke: var(--accent); stroke-width: 2; fill: none; }
.triad .t-dash { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 7; fill: none; }
.triad .t-node { fill: var(--surface); stroke: var(--rule-strong); stroke-width: 2; }
.triad .t-node-core { fill: var(--navy); stroke: var(--navy); }
.triad .t-ico { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.triad .t-ico-core { fill: none; stroke: #eef2f6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.triad .t-ico-core-accent { fill: #e3a676; }
.triad .t-label { fill: var(--ink); font: 650 15px var(--font); }
.triad .t-pill { fill: var(--bg); stroke: var(--rule-strong); stroke-width: 1.2; }
.triad .t-pill-text { fill: var(--muted); font: 500 13px var(--font); }
.section-alt .triad .t-pill { fill: var(--surface); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 2.2rem; right: calc((100% - 3.75rem) / 4 - 2.2rem); top: 2.2rem; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--rule-strong));
  transform-origin: left; transition: transform 1.2s var(--ease) .2s;
}
.js .steps.reveal-group:not(.is-visible)::before { transform: scaleX(0); }
.step { position: relative; display: flex; flex-direction: column; gap: .75rem; }
.step-badge {
  position: relative; z-index: 1; display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); color: var(--accent);
  box-shadow: 0 0 0 8px var(--bg);
}
.section-alt .step-badge { box-shadow: 0 0 0 8px var(--surface); }
.step-badge .icon { width: 28px; height: 28px; }
.step-num { position: absolute; top: -.35rem; right: -.35rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.step-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.35rem; flex: 1; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.step-card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.section-alt .step-card { background: var(--bg); }
.step-card h3 { margin-bottom: .45rem; }
.step-card p { color: var(--muted); font-size: .98rem; }
.note {
  display: flex; gap: .9rem; align-items: flex-start; margin-top: 2rem; padding: 1.1rem 1.25rem;
  border-radius: var(--radius); background: var(--accent-soft); color: var(--text); font-size: 1rem;
}
.note .icon { color: var(--accent); margin-top: .1rem; }

/* Commission */
.commission-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.panel-title { font-size: 1.05rem; margin-bottom: 1rem; }
.scale { width: 100%; border-collapse: collapse; font-size: 1rem; }
.scale caption { text-align: left; font-weight: 650; color: var(--ink); font-size: 1.05rem; padding-bottom: .9rem; }
.scale th, .scale td { text-align: left; padding: .9rem .25rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.scale thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; padding-top: 0; }
.scale tbody tr:last-child th, .scale tbody tr:last-child td { border-bottom: 0; }
.scale tbody th { font-weight: 500; color: var(--text); }
.scale .rate { width: 44%; }
.rate-cell { display: flex; align-items: center; gap: .9rem; }
.rate-value { font-size: 1.35rem; font-weight: 700; color: var(--ink); min-width: 3.6rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--accent), #c98a5e); border-radius: inherit; transform-origin: left; transition: transform 1s var(--ease) .3s; }
.js .reveal:not(.is-visible) .bar i { transform: scaleX(0); }
.scale-foot { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.example { background: var(--navy); color: var(--on-navy); border: 0; }
.example .panel-title { color: #fff; }
.example-sub { color: var(--on-navy-muted); font-size: .95rem; margin-bottom: 1rem; }
.calc { margin: 0; }
.calc div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed rgba(238, 242, 246, .2); font-variant-numeric: tabular-nums; }
.calc dt { color: var(--on-navy-muted); }
.calc dd { margin: 0; font-weight: 600; white-space: nowrap; }
.calc .total { border-bottom: 0; padding-top: .9rem; }
.calc .total dt { color: #fff; font-weight: 650; }
.calc .total dd { color: var(--accent-on-navy); font-size: 1.35rem; font-weight: 700; }
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks .icon { width: 20px; height: 20px; color: var(--accent); stroke-width: 2; margin-top: .2rem; }
.example .checks li { color: var(--on-navy); font-size: .98rem; }
.example .checks .icon { color: var(--accent-on-navy); }

/* Manufacturers / buyers */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.prose p { font-size: 1.05rem; }
.prose .lede { font-size: 1.15rem; color: var(--ink); }
.tags { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { padding: .4rem .85rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: .92rem; font-weight: 550; border: 1px solid var(--rule); }
.letter { position: relative; }
.letter::after {
  content: ""; position: absolute; right: 0; top: 0; width: 34px; height: 34px;
  background: linear-gradient(225deg, var(--bg) 50%, var(--rule) 50%, var(--rule-strong) 100%);
  border-bottom-left-radius: 6px;
}
.letter .panel-title { display: flex; align-items: center; gap: .6rem; padding-right: 2rem; }
.letter .panel-title .icon { color: var(--accent); }
.letter ul { list-style: none; margin: 0; padding: 0; counter-reset: li; }
.letter li { position: relative; padding: .85rem 0 .85rem 2.4rem; border-top: 1px solid var(--rule); font-size: .98rem; color: var(--text); counter-increment: li; }
.letter li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .9rem; font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.buyer-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.buyer-points li { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.15rem; display: flex; flex-direction: column; gap: .6rem; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.buyer-points li:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.buyer-points .icon { color: var(--accent); width: 26px; height: 26px; }
.buyer-points strong { color: var(--ink); font-weight: 650; display: block; }
.buyer-points span { color: var(--muted); font-size: .95rem; }
.plain { margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--text); }

/* Sectors */
.sector-list { list-style: none; margin: 0 0 3rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.sector-list li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-weight: 550; color: var(--ink); font-size: .97rem; }
.sector-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sector-list li.other { background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; }
.sector-list li.other::before { background: var(--rule-strong); }
.opps { max-width: none; }
.opps h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.opps-intro { color: var(--text); font-size: 1.08rem; max-width: 52rem; }
.families { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .85rem; }
.families li {
  display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem; min-height: 8.5rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); font-weight: 600; font-size: .98rem; line-height: 1.35;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.families li:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.fam-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.fam-icon .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.exclusions { display: flex; gap: .9rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: .98rem; }
.exclusions .icon { color: var(--muted); margin-top: .1rem; }
.exclusions strong { color: var(--ink); }

/* Principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.principles li { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem 1.35rem; display: flex; flex-direction: column; gap: .8rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.principles li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--rule-strong); }
.pr-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--accent-on-navy); }
.pr-icon .icon { width: 24px; height: 24px; }
.principles p { color: var(--muted); font-size: .97rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.facts { margin: 0; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 1.35rem; border-bottom: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-top: .1rem; }
.facts dd { margin: 0; color: var(--ink); font-weight: 550; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-navy); position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.contact .kicker { color: var(--accent-on-navy); }
.contact h2 { color: #fff; }
.contact .section-intro { color: var(--on-navy-muted); }
.contact :focus-visible { outline-color: var(--accent-on-navy); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 56rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border: 1px solid rgba(238, 242, 246, .16); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.contact-card .icon { color: var(--accent-on-navy); width: 28px; height: 28px; margin-top: .15rem; }
.contact-card h3 { color: var(--on-navy-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; margin-bottom: .45rem; }
.contact-card a.mail { color: #fff; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 650; text-decoration: none; background-image: linear-gradient(var(--accent-on-navy), var(--accent-on-navy)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease); overflow-wrap: anywhere; }
.contact-card a.mail:hover { background-size: 100% 2px; }
.contact-card address { font-style: normal; color: var(--on-navy); line-height: 1.6; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding: 2rem 0 2.25rem; border-top: 1px solid rgba(238, 242, 246, .1); font-size: .93rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--on-navy); font-weight: 600; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--accent-on-navy); }

/* Legal pages */
.page-hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-navy); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.25rem, 5vw, 3.25rem); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 680; }
.crumbs { margin: 0 0 1rem; font-size: .9rem; }
.crumbs a { color: var(--accent-on-navy); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.crumbs a:hover { color: #fff; }
.crumbs .icon { width: 16px; height: 16px; }
.page-hero :focus-visible { outline-color: var(--accent-on-navy); }
.legal-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); font-size: .92rem; }
.toc p { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc ol ol { border-left: 0; padding-left: .8rem; }
.toc a { display: block; padding: .3rem 0 .3rem .9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .2s var(--ease), border-color .2s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); }
.legal { max-width: 46rem; }
.legal section + section { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.legal h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.legal h3 { font-size: 1.1rem; margin: 2rem 0 .6rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .55rem; }
.legal li::marker { color: var(--accent); }
.legal strong { font-weight: 650; color: var(--ink); }
.operator { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.35rem; }
.version { color: var(--muted); font-size: .95rem; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-group > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal-group.is-visible > * { opacity: 1; transform: none; }
.js .reveal-group.is-visible > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-group.is-visible > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-group.is-visible > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-group.is-visible > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-group.is-visible > *:nth-child(6) { transition-delay: .4s; }
.js .reveal-group.is-visible > *:nth-child(n+7) { transition-delay: .46s; }
.js .hero .reveal { transition-duration: .9s; }
.triad .draw { stroke-dasharray: 400; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.js .reveal:not(.is-visible) .triad .draw { stroke-dashoffset: 400; }

/* Responsive */
@media (max-width: 1080px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .families { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .how-grid, .commission-grid, .split, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .triad { max-width: 34rem; margin: 0 auto; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .steps::before { display: none; }
  .step { flex-direction: row; align-items: flex-start; gap: 1rem; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: calc(2.2rem - 1px); top: 4.4rem; bottom: -1rem; width: 2px; background: var(--rule-strong); }
  .step:first-child::after { background: var(--accent); }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .audience-grid, .contact-grid, .buyer-points { grid-template-columns: minmax(0, 1fr); }
  .families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { width: 100%; height: 230px; bottom: 4.5rem; opacity: .55; -webkit-mask-image: none; mask-image: none; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .families { grid-template-columns: minmax(0, 1fr); }
  .families li { flex-direction: row; align-items: center; min-height: 0; padding: .9rem 1rem; }
  .fam-icon { width: 46px; height: 46px; flex: none; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .step-badge { width: 3.6rem; height: 3.6rem; flex: none; }
  .step:not(:last-child)::after { left: calc(1.8rem - 1px); top: 3.6rem; }
  .step-badge .icon { width: 24px; height: 24px; }
  .scale th, .scale td { padding: .75rem .15rem; }
  .scale .rate { width: 46%; }
  .rate-cell { gap: .55rem; }
  .rate-value { font-size: 1.15rem; min-width: 3rem; }
  .hero-terms { gap: .6rem 1.4rem; }
  .btn { width: 100%; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal, .js .reveal-group > * { opacity: 1; transform: none; }
  .js .reveal:not(.is-visible) .bar i, .js .steps.reveal-group:not(.is-visible)::before { transform: none; }
  .js .reveal:not(.is-visible) .triad .draw { stroke-dashoffset: 0; }
  .aud-card:hover, .step-card:hover, .families li:hover, .principles li:hover, .buyer-points li:hover, .btn-primary:hover { transform: none; }
}

/* Print */
@media print {
  .site-header, .skip, .hero-art, .toc, .nav-toggle { display: none !important; }
  .hero, .contact, .page-hero, .site-footer { background: none !important; color: #000 !important; }
  .hero h1, .contact h2, .page-hero h1 { color: #000 !important; }
  .js .reveal, .js .reveal-group > * { opacity: 1 !important; transform: none !important; }
}

/* Emplacements d'images (fichiers attendus dans /img/, voir img/LISEZMOI.md).
   Tant qu'un fichier manque, le repli (dégradé bleu nuit et dessin SVG) reste visible. */
.media { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 80% 0%, var(--navy-3) 0%, var(--navy-2) 45%, var(--navy) 100%); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; z-index: 1; transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.js .media > img:not(.is-loaded) { opacity: 0; }
.media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(14, 31, 51, 0) 40%, rgba(14, 31, 51, .45) 100%); }
.media-fallback { position: absolute; z-index: 0; color: var(--accent-on-navy); opacity: .9; }
.media.has-photo .media-fallback { visibility: hidden; }
.media-fallback.icon { width: 64px; height: 64px; stroke-width: 1.1; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.media::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 32px 32px; }
.media.has-photo::before { display: none; }

/* Photo d'en-tête : voile sombre pour la lisibilité */
.hero-media { position: absolute; inset: 0; z-index: -3; background: none; }
.hero-media::before { display: none; }
.hero-media::after { background: linear-gradient(90deg, rgba(14, 31, 51, .96) 0%, rgba(14, 31, 51, .86) 45%, rgba(14, 31, 51, .62) 100%), linear-gradient(0deg, rgba(14, 31, 51, .9) 0%, rgba(14, 31, 51, 0) 45%); }
.hero-media:not(.has-photo)::after { display: none; }
.hero:has(.hero-media.has-photo) .hero-art { display: none; }

/* Cartes fabricants / acheteurs */
.aud-card { padding: 0; gap: 0; }
.aud-media { height: clamp(150px, 15vw, 200px); }
.aud-body { display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem 1.75rem 1.5rem; flex: 1; }
.aud-card:hover .media > img.is-loaded { transform: scale(1.04); }
.aud-card::before { z-index: 3; }

/* Mosaïque d'images d'illustration (secteurs) */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.mosaic li { border-radius: var(--radius); height: clamp(140px, 13.5vw, 190px); }
.mosaic li:hover > img.is-loaded { transform: scale(1.04); }
.mosaic .media-fallback.icon { width: 52px; height: 52px; }

/* Image « Suisse » (section qui je suis) */
.about-media { margin-top: 2rem; border-radius: var(--radius); height: clamp(200px, 22vw, 280px); }
.about-media .alps { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; z-index: 0; }
.about-media .alps .m1 { fill: rgba(238, 242, 246, .06); stroke: rgba(238, 242, 246, .35); stroke-width: 1.5; stroke-linejoin: round; }
.about-media .alps .m2 { fill: rgba(238, 242, 246, .04); stroke: rgba(238, 242, 246, .18); stroke-width: 1.2; stroke-linejoin: round; }
.about-media .alps .snow { fill: none; stroke: rgba(227, 166, 118, .7); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.about-media .alps .lake { stroke: rgba(238, 242, 246, .16); stroke-width: 1.2; stroke-linecap: round; }

@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .mosaic li { height: 120px; }
  .mosaic .media-fallback.icon { width: 40px; height: 40px; }
}
@media (max-width: 520px) {
  .aud-body { padding: 1.25rem 1.25rem 1.25rem; }
  .aud-media { height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .aud-card:hover .media > img.is-loaded, .mosaic li:hover > img.is-loaded { transform: none; }
}

/* Version discrète : frise à trois étapes, repères en encadré */
@media (min-width: 901px) {
  .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-3::before { right: calc((100% - 2.5rem) / 3 - 2.2rem); }
}
.commission-grid { align-items: center; }
.checks-lg, .checks-panel { margin: 0; gap: 0; }
.checks-lg li, .checks-panel li { padding: .85rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
.checks-lg li { border-bottom-color: rgba(238, 242, 246, .16); }
.checks-lg li:last-child, .checks-panel li:last-child { border-bottom: 0; }
.checks-panel li { color: var(--ink); font-weight: 550; }
.sector-list { margin-bottom: 0; }

/* Voile plus dense sur téléphone : le texte couvre toute la largeur de la photo */
@media (max-width: 720px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(14, 31, 51, .95) 0%, rgba(14, 31, 51, .9) 55%, rgba(14, 31, 51, .94) 100%); }
}

/* Principes : trois cartes */
.principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* Commission : sous-titre dans la section fabricants */
.prose .sub-h { margin: 2rem 0 .6rem; font-size: 1.2rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.section-alt .principles li, .section-alt .buyer-points li { background: var(--bg); }
.section:not(.section-alt) .principles li, .section:not(.section-alt) .buyer-points li { background: var(--surface); }
