/* Inklura Partenaires, in the inklura.fr register: brand blue #146BFF, Inter Tight
   display + Inter body, pill buttons with a pressed edge, soft dotted ground with
   wires and hollow nodes, white cards with a hairline and soft shadow. */
@font-face { font-family: Inter; src: url("/inter-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/inter-tight-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --blue: #146bff;
  --blue-deep: #0a3f9e;
  --gold: #ffc83d;
  --ink: #14161c;
  --mute: #526073;
  --page: #fff;
  --soft: #f4f7fc;
  --card: #fff;
  --tile: #eef4ff;
  --line: rgba(18, 38, 74, .11);
  --input: rgba(18, 38, 74, .22);
  --wire: #9dbde6;
  --dot: rgba(102, 146, 189, .3);
  --ground: radial-gradient(at 50% 34%, rgba(255, 255, 255, .72), transparent 60%), radial-gradient(at 0 0, rgba(255, 200, 61, .08), transparent 38%), linear-gradient(120deg, #edf5ff, #f3f8ff 52%, #eaf6f0);
  --shadow: 0 1px 2px rgba(18, 38, 74, .06), 0 20px 44px -28px rgba(18, 38, 74, .32);
  --frame: min(100% - 32px, 1240px);
  --display: "Inter Tight", Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --blue: #3d86ff;
    --blue-deep: #1b4fae;
    --ink: #f0f2f6;
    --mute: #b8c3d1;
    --page: #11161f;
    --soft: #172330;
    --card: #1c2431;
    --tile: #1f2d44;
    --line: rgba(255, 255, 255, .13);
    --input: rgba(255, 255, 255, .24);
    --wire: #5f86b5;
    --dot: rgba(141, 181, 228, .2);
    --ground: radial-gradient(at 50% 34%, rgba(61, 134, 255, .08), transparent 60%), linear-gradient(120deg, #131c29, #141d2b 52%, #13201d);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 44px -28px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, sans-serif; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: color-mix(in srgb, var(--blue) 22%, transparent); }
.frame { width: var(--frame); margin-inline: auto; }
@media (min-width: 720px) { :root { --frame: min(100% - 64px, 1240px); } }
a { color: var(--blue); text-underline-offset: 4px; }
:is(a, button, input, select, label):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
h1 em { font-style: normal; color: var(--blue); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; }
p { max-width: 62ch; }
.icon { flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand b { font: 600 20px/1 var(--display); letter-spacing: -.02em; }
.brand-tag { font-size: 12.5px; font-weight: 600; color: var(--blue); background: var(--tile); padding: 4px 10px; border-radius: 999px; }
.logo-tile { display: block; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav form { margin: 0; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 999px; }
.nav-link:hover { background: var(--soft); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font: 700 16px/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform 120ms ease, box-shadow 120ms ease, background-color 150ms ease; }
.button.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue-deep); }
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--blue-deep); }
.button.primary:active { transform: translateY(3px); box-shadow: 0 0 0 var(--blue-deep); }
.button.ghost, .button.secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 80%, transparent), 0 3px 0 color-mix(in srgb, var(--ink) 80%, transparent); }
.button.small.ghost { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); font-weight: 500; }
.button.ghost:hover, .button.secondary:hover { transform: translateY(-1px); }
.text-action { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue); font: 600 15.5px/1.2 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.text-action:hover { text-decoration: underline; }
.text-action .icon { transition: transform 150ms ease; }
.text-action:hover .icon { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }

/* Tags and pills */
.tag { display: inline-block; background: var(--gold); color: #14161c; font-weight: 700; font-size: 13.5px; line-height: 1.2; padding: 7px 14px; border-radius: 999px; transform: rotate(-2deg); margin-bottom: 22px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff; }
.pill.soft { background: var(--tile); color: var(--blue); }

/* Ground with dots and wires */
.ground { position: relative; isolation: isolate; overflow: hidden; background: var(--ground); }
.ground::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.wires { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.wire { stroke: var(--wire); stroke-width: 1.5; }
.wire.dash { stroke-dasharray: 4 7; opacity: .8; }
.node { stroke: var(--wire); stroke-width: 1.5; fill: var(--page); }
.node.gold { stroke: var(--gold); stroke-width: 2; fill: none; }
.plus { stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 88px); padding-block: clamp(56px, 9vw, 120px); }
.lead { margin-top: 22px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--mute); max-width: 46ch; }
.kit-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 14px; }
.kit-bar { display: flex; align-items: center; gap: 12px; padding: 6px 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--mute); }
.kit-bar span:nth-child(2) { flex: 1; }
.kit-dots { display: inline-flex; gap: 6px; }
.kit-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.kit-sheet { background: var(--soft); border-radius: 16px; padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 20px; }
.kit-sheet img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); }
.kit-lines { list-style: none; padding: 0; display: grid; gap: 10px; }
.kit-lines li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-weight: 500; font-size: 15px; }
.kit-lines .icon { color: var(--blue); }
.kit-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 8px 4px; font-family: var(--display); font-size: 1.05rem; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--mute); font-size: 1.08rem; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.role-card { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(24px, 3vw, 36px); transition: transform 150ms ease; }
.role-card:hover { transform: translateY(-2px); }
.role-card p { color: var(--mute); max-width: 44ch; }
.role-icon, .step-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tile); color: var(--blue); }
.steps-section { background: var(--soft); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.step { position: relative; display: grid; gap: 12px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.step p { color: var(--mute); font-size: 15.5px; }
.step-num { position: absolute; top: 24px; right: 26px; font: 500 14px/1 var(--display); color: var(--mute); font-feature-settings: "tnum" 1; }
.closing { background: #0d1a2e; color: #f0f2f6; }
.closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: clamp(44px, 6vw, 72px); }
.closing p { margin-top: 10px; color: #b8c3d1; }
.closing a:not(.button) { color: #9fc4ff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 40px; }
.footer-brand p { margin-top: 10px; color: var(--mute); font-size: 14.5px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; padding-top: 6px; }
.footer-inner nav a { color: var(--ink); text-decoration: none; }
.footer-inner nav a:hover { color: var(--blue); }

/* Workspace (espace) */
.workspace-ground { min-height: calc(100svh - 69px - 120px); }
.workspace { max-width: 760px; padding-block: clamp(40px, 8vw, 96px); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(26px, 5vw, 52px); }
.panel h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.panel h1 + p { margin-top: 14px; color: var(--mute); overflow-wrap: anywhere; }
.muted-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.feedback { display: flex; gap: 12px; align-items: flex-start; background: var(--tile); border-radius: 16px; padding: 14px 16px; margin-block: 0 22px; }
.panel h1 ~ .feedback, .hero-copy .feedback { margin-block: 22px 0; }
.feedback-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--card); color: var(--blue); }
.feedback p { padding-top: 4px; }
.feedback .actions { margin-top: 14px; }
.feedback form { margin: 0; }
.application-form { margin-top: 30px; display: grid; justify-items: start; gap: 22px; }
.field { width: 100%; display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.field input, .field select { color: var(--ink); background: var(--page); min-height: 50px; padding: 10px 14px; font: 400 16px/1.3 Inter, system-ui, sans-serif; border: 1px solid var(--input); border-radius: 12px; width: 100%; transition: border-color 150ms ease, box-shadow 150ms ease; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.choices { width: 100%; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.choices label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 1px solid var(--input); border-radius: 14px; cursor: pointer; font-weight: 500; transition: border-color 150ms ease, background-color 150ms ease; }
.choices label:has(input:checked) { border-color: var(--blue); background: var(--tile); }
.choices input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.field-info { font-size: 13.5px; color: var(--mute); }
.state { background: var(--soft); border-radius: 20px; margin-top: 28px; padding: clamp(20px, 3vw, 30px); }
.state.approved { background: var(--tile); }
.state h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.state p { margin-top: 10px; }
.state .button { margin-top: 20px; }


/* Partner space */
.space-ground { min-height: calc(100svh - 69px - 120px); }
.space-ground .plus, .workspace-ground .plus { display: none; }
.space { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: clamp(28px, 5vw, 56px); }
.space-side { position: sticky; top: 92px; display: grid; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 18px; }
.space-id { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.space-id > div { display: grid; min-width: 0; }
.space-id strong { font-family: var(--display); font-size: 16px; overflow-wrap: anywhere; }
.space-id > div span { font-size: 13px; color: var(--mute); }
.space-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--blue); color: #fff; font: 700 17px/1 var(--display); box-shadow: 0 3px 0 var(--blue-deep); }
.space-nav { display: grid; gap: 4px; }
.space-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.space-nav a:hover { background: var(--soft); }
.space-nav a[aria-current="page"] { background: var(--tile); color: var(--blue); font-weight: 600; }
.space-help { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); text-decoration: none; padding: 0 12px; }
.space-help:hover { color: var(--blue); }
.space-main { display: grid; gap: 22px; min-width: 0; }
.space-main > .feedback { margin: 0; }
.space-head { display: grid; gap: 10px; justify-items: start; }
.space-head .tag { margin-bottom: 4px; }
.space-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.space-head p { color: var(--mute); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { display: grid; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform 150ms ease; }
.stat:hover { transform: translateY(-2px); }
.stat span { font-size: 13.5px; color: var(--mute); font-weight: 500; }
.stat b { font: 600 34px/1 var(--display); letter-spacing: -.03em; font-feature-settings: "tnum" 1; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card h2 { font-size: 1.2rem; letter-spacing: -.02em; }
.card p { color: var(--mute); font-size: 15px; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); min-width: 0; }
.block h2 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 14px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.note-block { background: var(--soft); box-shadow: none; }
.note-block h2 { margin-bottom: 8px; }
.note-block p { color: var(--mute); }
.empty { color: var(--mute); }
.kit-list, .referral-list, .resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kit-row, .resource { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.kit-row-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--tile); color: var(--blue); }
.kit-row-copy, .resource-copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.kit-row-copy span, .resource-copy span { font-size: 13.5px; color: var(--mute); }
.resource-copy a { font-size: 14px; overflow-wrap: anywhere; }
.referral-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.referral-row > div { display: grid; min-width: 0; }
.referral-row strong { overflow-wrap: anywhere; }
.referral-row span { font-size: 13.5px; color: var(--mute); }
.status { flex: none; display: inline-block; font-size: 12.5px !important; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--mute) !important; }
.status-sent { background: var(--tile); color: var(--blue) !important; }
.status-contacted { background: color-mix(in srgb, var(--gold) 28%, var(--card)); color: var(--ink) !important; }
.status-won { background: color-mix(in srgb, #1f9d55 18%, var(--card)); color: color-mix(in srgb, #1f9d55 80%, var(--ink)) !important; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.referral-form { margin-top: 0; gap: 16px; }
.field-row { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field textarea { color: var(--ink); background: var(--page); padding: 10px 14px; font: 400 15px/1.45 Inter, system-ui, sans-serif; border: 1px solid var(--input); border-radius: 12px; width: 100%; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.referral-form .field-info { margin-top: -8px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.legend { margin: 18px 0 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--mute); }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend dt { width: 100px; flex: none; }
.legend dd { margin: 0; }
@media (max-width: 1080px) {
  .space { grid-template-columns: 1fr; }
  .space-side { position: static; }
  .space-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .space-nav a { justify-content: center; text-align: center; font-size: 14px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: 1fr; }
  .space-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr; }
  .kit-row, .resource { flex-wrap: wrap; }
  .kit-row .button, .resource .button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .hero-copy > *, .panel { animation: arrive .5s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 110ms; }
  .hero-copy > :nth-child(4) { animation-delay: 160ms; }
  @keyframes arrive-kit { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .kit-card { animation: arrive-kit .6s 120ms cubic-bezier(.2, .7, .2, 1) both; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .kit-card { max-width: 560px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-nav .nav-link:first-child { display: none; }
  .brand-tag { display: none; }
  .role-grid, .choices { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .closing-inner .button { width: 100%; }
}
@media (max-width: 380px) {
  .header-nav .nav-link { display: none; }
}
.kit-groups { display: grid; gap: 26px; }
.kit-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.kit-group-head h2 { margin: 0; }
.kit-group-head span { font-size: 13.5px; color: var(--mute); }
