:root {
  --bg: #f6f7fb; --card: #ffffff; --ink: #18202f; --muted: #5b6475; --line: #e2e6ee;
  --brand: #0a5fe0; --brand-ink: #ffffff; --brand-soft: #e6effe; --ok: #137a4b; --ok-soft: #e3f5ec;
  --warn: #9a5b00; --warn-soft: #fff3dc; --bad: #b3261e; --bad-soft: #fde8e6;
  --field: #f8fafd; --field-line: #d5dceb; --focus: rgba(3,106,253,.18);
  --hero: #0c1e43; --hero-ink: #ffffff; --taf: #3d8bff; /* couleurs du logo : bleu #036afd, bleu nuit #0c1e43 */ --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f131b; --card: #171c27; --ink: #e8ebf2; --muted: #a2abbd; --line: #2a3242;
    --brand: #7aa2ff; --brand-ink: #0f131b; --brand-soft: #1d2a4a; --ok: #5fd39a; --ok-soft: #133526;
    --warn: #f0b85a; --warn-soft: #3a2b10; --bad: #ff8a80; --bad-soft: #3d1a18;
    --hero: #0b1430; --shadow: none; color-scheme: dark;
    --field: #111622; --field-line: #333c50; --focus: rgba(122,162,255,.25);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
header.top { background: var(--hero); color: var(--hero-ink); }
header.top .in, main, footer .in { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.top .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
header.top a.logo { display: block; line-height: 0; }
.logo-img { height: 34px; width: auto; }
.hero-logo { display: block; width: 300px; max-width: 100%; height: auto; margin: 0 0 18px; }
.brand .taf { color: var(--taf); }
header.top nav { display: flex; gap: 14px; flex-wrap: wrap; }
header.top nav a { color: inherit; opacity: .85; text-decoration: none; font-size: .95rem; }
header.top nav a:hover, header.top nav a[aria-current] { opacity: 1; text-decoration: underline; }
main { padding-top: 24px; padding-bottom: 48px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .in { padding-top: 16px; padding-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 0 0 16px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hero { background: var(--hero); color: var(--hero-ink); border-radius: 18px; padding: 28px 24px; margin-bottom: 20px; }
.hero p { opacity: .9; }
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--brand); color: var(--brand-ink); }
.btn.secondary { background: var(--brand-soft); color: var(--brand); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .82rem; background: var(--brand-soft); color: var(--brand); margin: 2px 4px 2px 0; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.notice { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; background: var(--brand-soft); }
.notice.ok { background: var(--ok-soft); }
.notice.warn { background: var(--warn-soft); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q { margin: 0 0 18px; }
.q > label, .q > legend { display: block; font-weight: 600; margin-bottom: 6px; }
.q .help { color: var(--muted); font-size: .88rem; margin: -2px 0 6px; }
.q .err { color: var(--bad); font-size: .88rem; margin-top: 4px; }
.req { color: var(--bad); }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=month], input[type=date], select, textarea {
  width: 100%; max-width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; background: var(--card); font-weight: 400; }
.choices label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choices input { accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
dl.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.linkbox { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbox input { flex: 1 1 260px; font-family: ui-monospace, monospace; font-size: .85rem; }
details.more > summary { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 4px; padding: 6px 12px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600; cursor: pointer; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸"; }
details.more[open] > summary::before { content: "▾"; }
details > summary { cursor: pointer; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair > .card { margin: 0; box-shadow: none; }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .filters { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs + input[type=search] { margin-bottom: 16px; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { white-space: nowrap; }
table.t th, table.t td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.scroll { overflow-x: auto; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
@media (max-width: 560px) { h1 { font-size: 1.5rem; } dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 6px; } .card { padding: 16px; } }
@media print { header.top, footer, .btn { display: none; } }

/* ---------- Formulaires (habillage, 29/10/2026) ---------- */
.form-hero { background: linear-gradient(135deg, var(--hero) 0%, #133a8a 100%); color: var(--hero-ink); border-radius: 18px; padding: 26px 24px; margin-bottom: 20px; }
.form-hero h1 { margin-bottom: 8px; }
.form-hero .lead { color: rgba(255,255,255,.88); margin-bottom: 14px; }
.form-hero .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.form-hero .tags span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px 12px; font-size: .85rem; }
.form-hero .tags span::before { content: "✓ "; color: var(--taf); font-weight: 700; }
.form-sec { padding: 22px; box-shadow: inset 0 4px 0 var(--brand), var(--shadow); }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; }
.sec-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, #036afd, #0a4fc4); color: #fff; }
form.nice .q { margin-bottom: 22px; }
form.nice .q:last-child { margin-bottom: 4px; }
form.nice .q > label, form.nice .q > legend { font-size: 1rem; color: var(--ink); }
form.nice .req { color: var(--brand); }
form.nice input[type=text], form.nice input[type=email], form.nice input[type=tel], form.nice input[type=url],
form.nice input[type=number], form.nice input[type=month], form.nice input[type=date], form.nice select, form.nice textarea {
  background: var(--field); border: 1.5px solid var(--field-line); border-radius: 12px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
form.nice input:hover, form.nice select:hover, form.nice textarea:hover { border-color: #a9b8d6; }
form.nice input:focus, form.nice select:focus, form.nice textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); background: var(--card); }
form.nice select, .filters select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23036afd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
form.nice .choices label { position: relative; padding: 8px 14px; border: 1.5px solid var(--field-line); background: var(--field); transition: all .15s; }
form.nice .choices label:hover { border-color: var(--brand); }
form.nice .choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
form.nice .choices label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
form.nice .choices label:has(input:checked)::before { content: "✓"; font-weight: 700; }
form.nice .choices label:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--focus); }
form.nice .q.has-err input, form.nice .q.has-err select, form.nice .q.has-err textarea { border-color: var(--bad); }
form.nice .q.has-err .choices label { border-color: var(--bad); }
form.nice .q .err:not(:empty)::before { content: "⚠ "; }
form.nice input[type=file] { font: inherit; max-width: 100%; }
form.nice input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 8px 14px; margin-right: 10px;
  background: var(--brand-soft); color: var(--brand); cursor: pointer; }
.submit-card { border: 1.5px solid var(--brand-soft); }
.submit-card input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.btn { transition: filter .15s, transform .05s; }
.btn:not(.secondary):not(.ghost):not(.danger):not(.hh-alt) { background: linear-gradient(135deg, #036afd, #0a4fc4); color: #fff; }
.btn:hover:not(:disabled) { filter: brightness(1.07); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.big { padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; box-shadow: 0 6px 18px rgba(3,106,253,.28); }
@media (max-width: 560px) { .btn.big { width: 100%; } .form-hero { padding: 22px 18px; } .form-sec { padding: 18px; } }

.monthpick { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; max-width: 420px; }
.datepick { display: grid; grid-template-columns: .8fr 1.4fr 1fr; gap: 10px; max-width: 480px; }

/* ---------- Formulaire par étapes ---------- */
.stepper { position: sticky; top: 0; z-index: 5; margin: 0 -16px 16px; padding: 10px 16px 8px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.stepper ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.st-btn { width: 100%; display: flex; align-items: center; gap: 8px; font: inherit; text-align: left; cursor: pointer;
  border: 1.5px solid var(--field-line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 7px 10px; box-shadow: var(--shadow); transition: all .15s; }
.st-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.st-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus); }
.st-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.st-label { font-size: .88rem; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper li.done .st-num { background: var(--ok); color: #fff; font-size: 0; }
.stepper li.done .st-num::before { content: "✓"; font-size: .85rem; }
.stepper li.active .st-btn { background: linear-gradient(135deg, #036afd, #0a4fc4); border-color: transparent; color: #fff; }
.stepper li.active .st-num { background: #fff; color: var(--brand); font-size: .85rem; }
.stepper li.active .st-num::before { content: none; }
.stepper .st-bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 10px; overflow: hidden; }
.stepper .st-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), #3fbf7f); transition: width .3s; }
.stepper .st-count { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; text-align: right; }
.step-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.step-controls .btn[hidden] { display: none; }
.step-controls .btn.big { margin-left: auto; }
@media (max-width: 560px) {
  .stepper ol { display: flex; } .stepper li { flex: none; } .stepper li.active { flex: 1; min-width: 0; }
  .st-label { display: none; } .stepper li.active .st-label { display: inline; }
  .step-controls { flex-direction: column-reverse; align-items: stretch; } .step-controls .small { text-align: center; }
}
form.nice fieldset.form-sec { scroll-margin-top: 110px; }

/* ---------- Espace personnel ---------- */
.space-hero h1 { font-size: 1.7rem; }
.journey { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.journey li { position: relative; display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.journey li > div { display: flex; flex-direction: column; gap: 2px; }
.journey .j-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--field-line); color: var(--muted); }
.journey li.done .j-num { background: var(--ok); border-color: var(--ok); color: #fff; }
.journey li.current { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand), var(--shadow); }
.journey li.current .j-num { background: linear-gradient(135deg, #036afd, #0a4fc4); border-color: transparent; color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.stat strong { font-size: 1.6rem; line-height: 1.1; color: var(--brand); }
.stat span { font-size: .85rem; color: var(--muted); }
.stat.hot { border-color: var(--brand); background: var(--brand-soft); }
.card.match { border-left: 5px solid var(--line); }
.card.match.m-new { border-left-color: var(--brand); }
.card.match.m-wait { border-left-color: var(--warn); }
.card.match.m-done { border-left-color: var(--ok); }
.card.match.m-no { border-left-color: var(--bad); opacity: .8; }
.card.match h3 { font-size: 1.1rem; }
@media (max-width: 720px) { .journey, .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .journey { grid-template-columns: 1fr; } }
.card.match .applied { margin: -20px -20px 14px; padding: 10px 20px; border-radius: 14px 14px 0 0; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.card.match .applied::before { content: "✉ "; }
.card.match .applied span { font-weight: 400; }
@media (max-width: 560px) { .card.match .applied { margin: -16px -16px 12px; padding: 10px 16px; } }

/* ---------- Offres ---------- */
.offers-hero .row { margin-bottom: 10px; }
.offers-hero .btn.secondary { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.offers-hero .hero-note { color: rgba(255,255,255,.75); margin: 6px 0 0; }
.offer-filters { grid-template-columns: 2fr 1fr 1fr 1fr; position: sticky; top: 0; z-index: 4; }
@media (max-width: 900px) { .offer-filters { grid-template-columns: 1fr 1fr; } .offer-filters input { grid-column: 1 / -1; } }
@media (max-width: 560px) { .offer-filters { grid-template-columns: 1fr; position: static; } .offers-hero .btn { width: 100%; text-align: center; } }
.filters select, .filters input { border-radius: 12px; border: 1.5px solid var(--field-line); background-color: var(--field); }
.result-count { margin: 4px 2px 12px; color: var(--muted); }
.result-count strong { color: var(--ink); }
.card.offer { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card.offer:hover { border-color: #b9cbf2; box-shadow: 0 8px 24px rgba(12,30,67,.10); }
.offer-head { display: flex; align-items: flex-start; gap: 14px; }
.offer-title { flex: 1; min-width: 0; }
.offer-title h3 { font-size: 1.15rem; margin: 0 0 2px; }
.offer-co { font-weight: 600; font-size: .95rem; }
.offer-co .muted { font-weight: 400; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: #fff;
  background: linear-gradient(135deg, #036afd, #0c1e43); }
.pill.new { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.offer-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 8px; color: var(--muted); font-size: .92rem; }
.offer-meta .meta { display: inline-flex; align-items: center; gap: 6px; }
.offer-meta .meta.soon { color: var(--warn); font-weight: 600; }
.ico { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.offer-tags { margin-bottom: 2px; }
.offer-desc { white-space: pre-line; }
.offer-action { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }

/* ---------- Accueil (29/10/2026) ---------- */
.home-hero { display: block; background: linear-gradient(135deg, var(--hero) 0%, #133a8a 100%); color: var(--hero-ink); border-radius: 22px; padding: 34px 32px; margin-bottom: 24px; }
.home-hero h1 { font-size: 2rem; }
.home-hero p { opacity: .92; max-width: 760px; }
.hh-name { opacity: .8 !important; }
.hh-cta { margin: 18px 0 14px; }
.btn.hh-alt { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.home-hero .tags, .final-cta .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.home-hero .tags span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px 12px; font-size: .85rem; }
.home-hero .tags span::before { content: "✓ "; color: var(--taf); font-weight: 700; }
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.card.aud { padding: 24px; box-shadow: inset 0 4px 0 var(--brand), var(--shadow); display: flex; flex-direction: column; }
.card.aud p { flex: 1; }
.aud-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); margin-bottom: 12px; }
.hi { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.how { margin: 28px 0; }
.timeline { list-style: none; counter-reset: t; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.timeline li { counter-increment: t; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.timeline li::before { content: counter(t); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #036afd, #0a4fc4); margin-bottom: 4px; }
.timeline li span { color: var(--muted); font-size: .92rem; }
.timeline li span b { color: var(--ink); }
.how-offers { margin-top: 14px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--brand-soft); border-radius: 16px; padding: 16px 18px; }
.how-offers > div:first-child { flex: 1 1 420px; }
.trust { margin: 28px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-grid .card { margin: 0; }
.trust-grid p { color: var(--muted); margin: 0; }
.final-cta { text-align: center; background: linear-gradient(135deg, var(--hero) 0%, #133a8a 100%); color: #fff; border-radius: 22px; padding: 30px 22px; margin-top: 28px; }
.final-cta h2 { font-size: 1.6rem; }
.final-cta p { opacity: .9; }
.final-cta .row { justify-content: center; }
@media (max-width: 860px) { .home-hero { padding: 26px 20px; } .timeline { grid-template-columns: 1fr 1fr; } .trust-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .audience, .timeline { grid-template-columns: 1fr; } .home-hero h1 { font-size: 1.55rem; } .hh-cta .btn, .final-cta .btn { width: 100%; text-align: center; } }
.final-cta .taf { color: var(--taf); }

/* ---------- Partenaires ---------- */
.card.partner { display: grid; grid-template-columns: 280px 1fr; gap: 26px; padding: 0; overflow: hidden; border-top: 4px solid var(--brand); }
.partner-logo { display: grid; place-items: center; padding: 28px 24px; background: var(--brand-soft); }
.partner-logo img { display: block; width: 220px; max-width: 100%; height: auto; transition: transform .2s; }
.partner-logo:hover img { transform: scale(1.04); }
.partner-body { padding: 24px 24px 24px 0; }
.partner-body h2 { font-size: 1.4rem; margin-bottom: 8px; }
.partner-sub { margin-bottom: 12px; }
.partner-body h3 { margin-top: 16px; }
.partner-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.partner-list li { position: relative; padding-left: 28px; }
.partner-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; background: var(--brand); }
@media (max-width: 720px) { .card.partner { grid-template-columns: 1fr; gap: 0; } .partner-body { padding: 20px; } }

/* ---------- Espace personnel (cartes, 29/10/2026) ---------- */
.group-h { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.group-h .count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .85rem; background: var(--brand); color: #fff; }
.card.match { padding: 20px 22px; }
.mc-head { display: flex; align-items: flex-start; gap: 14px; }
.mc-title { flex: 1; min-width: 0; }
.mc-title h3 { margin: 0 0 2px; }
.mc-head > .pill { flex: none; margin: 2px 0 0; }
.mc-badges { margin: 10px 0 4px; }
.mc-badges:empty { display: none; }
.pill.team { background: #fff1d6; color: #8a5300; font-weight: 600; }
.mc-note { margin: 10px 0; padding: 10px 14px; border-left: 4px solid var(--taf); background: var(--brand-soft); border-radius: 0 12px 12px 0; }
.mc-note strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin-bottom: 2px; }
.mc-reasons { list-style: none; padding: 0; margin: 10px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.mc-reasons li { background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 3px 10px; font-size: .84rem; }
.mc-reasons li::before { content: "✓ "; font-weight: 700; }
.mc-actions { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.mc-actions > p { margin: 8px 0 0; }
.card.match .applied { margin: -20px -22px 14px; padding: 10px 22px; }
.card.my-offer { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.mo-body { flex: 1; min-width: 200px; }
.manage h2 { margin-top: 24px; }
.manage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.manage-grid .card { margin: 0; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .mc-head { display: grid; grid-template-columns: 46px 1fr; } .mc-head > .pill { grid-column: 1 / -1; justify-self: start; } .card.match .applied { margin: -16px -16px 12px; padding: 10px 16px; } .card.match { padding: 16px; } }

/* ---------- Admin : mises en relation ---------- */
table.t th, table.t td { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.rel-list { display: grid; gap: 10px; margin-top: 12px; }
.rel { display: grid; grid-template-columns: minmax(300px, 1.5fr) 1.3fr minmax(170px, .8fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.rel-who { display: flex; align-items: center; gap: 10px; }
.rel-who > div { display: flex; flex-direction: column; min-width: 0; }
.rel-who strong, .rel-who span { overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.rel-arrow { color: var(--brand); font-weight: 700; }
.rel-note { margin-top: 4px; font-style: italic; }
.rel-state { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
@media (max-width: 900px) { .rel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rel { grid-template-columns: 1fr; } }

.adm-offer .rel { grid-template-columns: minmax(300px, 1.8fr) auto minmax(120px, .6fr) auto; }
.adm-offer .apps { margin: 6px 14px 4px; }
.app-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.app-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.pill.muted { background: var(--line); color: var(--muted); }
@media (max-width: 900px) { .adm-offer .rel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .adm-offer .rel { grid-template-columns: 1fr; } }

/* ---------- Administration (29/10/2026) ---------- */
.admin-login { max-width: 460px; margin: 40px auto; text-align: center; padding: 30px 26px; box-shadow: inset 0 4px 0 var(--brand), var(--shadow); }
.admin-login .lock { font-size: 2rem; margin-bottom: 6px; }
.admin-login .linkbox { justify-content: center; margin-top: 12px; }
.admin-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-hero h1 { margin-bottom: 10px; }
.admin-hero .tags span::before { content: "● "; color: var(--taf); }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 5px; margin-bottom: 14px; box-shadow: var(--shadow); }
.admin-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.admin-tabs button:hover { background: var(--brand-soft); color: var(--brand); }
.admin-tabs button.on { background: linear-gradient(135deg, #036afd, #0a4fc4); color: #fff; }
.count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--bad); color: #fff; vertical-align: middle; }
.admin-tabs button.on .count { background: #fff; color: var(--brand); }
h2 .count { background: var(--brand); }
.admin-search { margin-bottom: 14px; }
.admin-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
button.stat { font: inherit; text-align: left; cursor: pointer; }
button.stat:hover { border-color: var(--brand); transform: translateY(-1px); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who .avatar { width: 40px; height: 40px; font-size: 1.05rem; }
.rel.verify { grid-template-columns: minmax(280px, 1.4fr) 1fr auto; }
.card.adm-profile { padding: 16px 18px; }
@media (max-width: 720px) { .rel.verify { grid-template-columns: 1fr; } }
.admin-login .linkbox input { font-family: inherit; font-size: 1rem; }

/* ---------- Confidentialité (29/10/2026) ---------- */
.trust-grid + .card, .trust-grid + section { margin-top: 16px; }
.who-sees h2 { display: flex; align-items: center; gap: 10px; }
.aud-ico.inline { width: 38px; height: 38px; margin: 0; border-radius: 12px; }
.vis-list { list-style: none; padding: 0; margin: 6px 0 0; }
.vis-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vis-list li:last-child { border-bottom: 0; }
.vis-list li > div { display: flex; flex-direction: column; gap: 2px; }
.vis-list li span:not(.lvl) { color: var(--muted); font-size: .92rem; }
.vis-list li span b { color: var(--ink); }
.lvl { flex: none; border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.l-pub { background: var(--brand-soft); color: var(--brand); }
.l-match { background: #eef0ff; color: #4b4fc4; }
.l-choice { background: var(--warn-soft); color: var(--warn); }
.l-both { background: var(--ok-soft); color: var(--ok); }
.l-none { background: var(--bad-soft); color: var(--bad); }
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.priv-grid .card { margin: 0; }
.priv-grid h2 { font-size: 1.1rem; }
.priv-grid p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .priv-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .vis-list li { flex-direction: column; align-items: flex-start; gap: 8px; } .lvl { white-space: normal; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .l-match { background: #24264d; color: #aab0ff; } }

.create-rel > summary { cursor: pointer; list-style: none; padding: 2px 0; }
.create-rel > summary::-webkit-details-marker { display: none; }
.create-rel > summary strong { color: var(--brand); }
.create-rel[open] > summary { margin-bottom: 6px; }
.create-rel form .q { margin-bottom: 12px; }

/* ---------- Admin : À valider ---------- */
.mode-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mode-card h2 { margin-bottom: 4px; }
.mode-card p { margin: 0; max-width: 560px; }
.seg { display: inline-flex; background: var(--field); border: 1.5px solid var(--field-line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: linear-gradient(135deg, #036afd, #0a4fc4); color: #fff; }
.card.pv { padding: 18px 20px; box-shadow: inset 4px 0 0 var(--warn), var(--shadow); }
.pv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pv-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.pv-person { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--field); }
.pv-person strong { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pv-role { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); font-weight: 700; }
.pv-facts { list-style: none; padding: 0; margin: 10px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.pv-facts li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .82rem; }
.pv-link { align-self: center; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.pv-label { display: block; font-weight: 600; font-size: .92rem; margin: 12px 0 6px; }
.pv-label textarea { margin-top: 6px; font-weight: 400; min-height: 70px; }
.pv-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.card.empty { text-align: center; padding: 26px; }
@media (max-width: 720px) { .pv-pair { grid-template-columns: 1fr; } .pv-link { justify-self: center; transform: rotate(90deg); } .pv-actions .btn { flex: 1; } }

.preview-bar { background: #fff3dc; color: #7a4a00; text-align: center; font-size: .88rem; padding: 7px 16px; border-bottom: 1px solid #f1d9a6; }
.preview-bar strong { text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .preview-bar { background: #3a2b10; color: #f0c675; border-color: #5a4318; } }

/* Administration > Équipe et journal (10/11/2026) */
.rel.member { grid-template-columns: 1fr auto; }
.log-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 0; }
.log-list li { display: grid; grid-template-columns: 130px minmax(120px, 200px) 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; }
.log-list li:first-child { border-top: 0; }
@media (max-width: 640px) { .log-list li { grid-template-columns: 1fr; gap: 2px; } }
.commit-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.commit-list li::marker { color: var(--brand); }
