/* Qodia — feuille de styles du site public
   Reprend les tokens du design system Qodia (tokens.json). */

:root {
  --violet: #350085;
  --violet-deep: #24005c;
  --rouge: #FF294A;
  --jaune: #FFD300;
  --cyan: #00F3E9;
  --nuage: #F3F2F6;

  --surface: #FFFFFF;
  --surface-alt: var(--nuage);
  --surface-brand: var(--violet);
  --ink: #1C0E3F;
  --ink-brand: var(--violet);
  --ink-muted: #5E5675;
  --on-brand: #FFFFFF;
  --on-brand-muted: #C9C2DD;
  --on-accent: var(--violet);
  --rouge-texte: #D6143A;
  --line: #E2DFEA;
  --line-strong: #8E84AD;
  --focus: var(--violet);
  --success: #157A55;
  --danger: var(--rouge-texte);

  --font-sans: "Lexend", "Avenir Next", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 32px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(53, 0, 133, .08), 0 8px 24px rgba(53, 0, 133, .08);

  --wrap: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-sans); color: var(--ink-brand); }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; 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: var(--space-4); top: -60px; z-index: 100; background: var(--jaune); color: var(--violet); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--space-4); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
@media (max-width: 640px) { :root { --gutter: 16px; } }

/* Typo */
.display-xl { font: 700 72px/1.05 var(--font-sans); letter-spacing: -.03em; }
.display { font: 700 56px/1.07 var(--font-sans); letter-spacing: -.025em; }
.h1 { font: 600 40px/1.15 var(--font-sans); letter-spacing: -.02em; }
.h2 { font: 600 30px/1.2 var(--font-sans); letter-spacing: -.015em; }
.h3 { font: 600 22px/1.27 var(--font-sans); }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.muted { color: var(--ink-muted); }
.label { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.tagline { font-weight: 300; font-size: 20px; }
@media (max-width: 900px) {
  .display-xl { font-size: 46px; }
  .display { font-size: 38px; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 26px; }
}
@media (max-width: 420px) { .display-xl { font-size: 38px; } .display { font-size: 32px; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); border: 2px solid transparent; font: 600 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--violet); color: var(--on-brand); }
.btn--primary:hover { background: var(--violet-deep); }
.btn--accent { background: var(--jaune); color: var(--on-accent); }
.btn--accent:hover { background: #F0C400; }
.btn--secondary { background: transparent; color: var(--ink-brand); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink-brand); }
.btn--ghost-light { background: transparent; color: var(--on-brand); border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { border-color: #fff; }
.btn--sm { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: 14px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.on-brand :focus-visible { outline-color: var(--jaune); }

.link { color: var(--ink-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }
.link-arrow { color: var(--ink-brand); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow svg { width: 18px; height: 18px; flex-shrink: 0; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Tags & badges */
.tag { display: inline-flex; align-items: center; gap: var(--space-2); padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 400 14px/20px var(--font-sans); cursor: pointer; text-decoration: none; }
.tag:hover { border-color: var(--ink-brand); }
.tag[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--on-brand); }
.tag--static { cursor: default; background: var(--surface-alt); border-color: transparent; }
.tag--static:hover { border-color: transparent; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font: 500 12px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge--brand { background: var(--violet); color: var(--on-brand); }
.badge--jaune { background: var(--jaune); color: var(--on-accent); }
.badge--cyan { background: var(--cyan); color: var(--on-accent); }
.badge--light { background: rgba(255,255,255,.14); color: var(--on-brand); border: 1px solid rgba(255,255,255,.3); }
.badge--neutral { background: var(--surface-alt); color: var(--ink-muted); }
.badge--success { color: var(--success); border: 1px solid currentColor; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-8); min-height: 76px; }
.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img { height: 28px; width: auto; }
.nav { display: flex; gap: var(--space-6); align-items: center; margin-right: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink-brand); border-bottom-color: var(--jaune); }
.site-header__ctas { display: flex; gap: var(--space-3); }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.burger .bars, .burger .bars::before, .burger .bars::after { display: block; width: 20px; height: 2px; background: var(--violet); position: relative; transition: transform .2s; }
.burger .bars::before, .burger .bars::after { content: ""; position: absolute; left: 0; }
.burger .bars::before { top: -6px; } .burger .bars::after { top: 6px; }
.burger[aria-expanded="true"] .bars { background: transparent; }
.burger[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }
@media (max-width: 1200px) {
  .nav, .site-header__ctas { display: none; }
  .burger { display: inline-flex; }
  .site-header__inner { min-height: 64px; }
  .mobile-nav { display: none; border-top: 1px solid var(--line); padding-top: var(--space-4); padding-bottom: var(--space-6); }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a.mnav { display: block; padding: 12px 0; font-size: 18px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav .btns { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
}

/* Sections */
.section { padding: var(--space-24) 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding: var(--space-16) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); margin-bottom: var(--space-12); flex-wrap: wrap; }
.section-head > div { max-width: 680px; display: grid; gap: var(--space-3); }
@media (max-width: 640px) { .section { padding: var(--space-16) 0; } .section-head { margin-bottom: var(--space-8); } }

/* Bande de marque (hero, CTA) */
.brand-band { position: relative; background: var(--surface-brand); color: var(--on-brand); overflow: hidden; isolation: isolate; }
.brand-band h1, .brand-band h2, .brand-band h3 { color: var(--on-brand); }
.brand-band .lead, .brand-band .muted { color: var(--on-brand-muted); }
.brand-band .label { color: var(--on-brand-muted); }
.brand-band__motif { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 46%; background: url("/assets/img/qodia-motif-tuile.svg") repeat; background-size: 150px 180px; opacity: .9; -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%); }
@media (max-width: 900px) { .brand-band__motif { width: 100%; opacity: .14; -webkit-mask-image: none; mask-image: none; } }
.colorstrip { display: flex; height: 6px; }
.colorstrip span { flex: 1; }

/* Hero */
.hero { padding: var(--space-24) 0 var(--space-16); }
.hero__content { max-width: 760px; display: grid; gap: var(--space-6); }
.hero__lead { font-size: 20px; line-height: 30px; color: var(--on-brand-muted); max-width: 620px; }
.finder { margin-top: var(--space-6); background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-3); display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: var(--space-2); box-shadow: 0 20px 50px rgba(10,0,30,.35); max-width: 980px; }
.finder label { display: grid; gap: 2px; padding: 8px 14px; border-radius: var(--radius-md); background: var(--surface-alt); }
.finder label span { font: 500 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.finder input, .finder select { border: 0; background: transparent; padding: 2px 0; font-size: 16px; outline: none; width: 100%; min-width: 0; }
.finder label:focus-within { outline: 2px solid var(--focus); outline-offset: 0; }
.finder .btn { height: 100%; }
.hero__alt { font-size: 15px; color: var(--on-brand-muted); }
.hero__alt a { color: var(--on-brand); font-weight: 600; }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } .hero { padding: var(--space-16) 0 var(--space-12); } .hero__lead { font-size: 18px; } }

/* Logos */
.logos { padding: var(--space-12) 0; border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; margin-bottom: var(--space-8); }
.logos__grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-8) var(--space-12); list-style: none; }
.logos__grid li { display: flex; align-items: center; justify-content: center; height: 56px; }
.logos__grid img { max-height: 48px; max-width: 132px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .2s, opacity .2s; }
.logos__grid li:hover img { filter: none; opacity: 1; }
.logos__grid img.is-tall { max-height: 56px; }
@media (max-width: 640px) { .logos__grid { gap: var(--space-6) var(--space-8); } .logos__grid img { max-width: 96px; max-height: 38px; } }

/* Grilles */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Modes de collaboration */
.mode { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); display: grid; gap: var(--space-4); align-content: start; background: var(--surface); }
.mode--brand { background: var(--violet); color: var(--on-brand); border-color: var(--violet); }
.mode--brand h3 { color: var(--on-brand); }
.mode--brand .muted, .mode--brand .label { color: var(--on-brand-muted); }
.mode__num { font: 700 56px/1 var(--font-sans); letter-spacing: -.04em; color: var(--jaune); }
.mode:not(.mode--brand) .mode__num { color: var(--rouge); }
.mode__steps { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-2) 0 var(--space-4); }
.mode__steps li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); }
.mode__steps li::before { content: ">"; font: 700 16px/1.6 var(--font-mono); color: var(--rouge); }
.mode--brand .mode__steps li::before { color: var(--cyan); }
.mode .btn { justify-self: start; }

/* Cartes membres */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card__cover { position: relative; height: 128px; display: flex; align-items: flex-start; justify-content: flex-end; padding: var(--space-4); overflow: hidden; }
.card__cover img.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__cover .badge { position: relative; }
.card__avatar { position: absolute; left: var(--space-6); top: 88px; }
.card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-12) var(--space-6) var(--space-6); flex: 1; }
.card__name { font: 600 22px/28px var(--font-sans); color: var(--ink-brand); }
.card__name a { text-decoration: none; color: inherit; }
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card__meta { font-size: 13px; color: var(--ink-muted); }
.card__role { font-size: 15px; line-height: 22px; }
.card__refs { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--line); display: grid; gap: 2px; }
.card__refs .label { font-size: 11px; }
.card__refs p { font-size: 14px; font-weight: 500; line-height: 20px; }
.card__refs-wrap { margin-top: auto; padding-top: var(--space-4); }

.cov--violet { background: var(--violet); }
.cov--rouge { background: var(--rouge); }
.cov--jaune { background: var(--jaune); }
.cov--cyan { background: var(--cyan); }
.cov-motif::before { content: ""; position: absolute; width: 190px; height: 144px; left: 46%; top: -22px; background: url("/assets/img/qodia-symbole-blanc.svg") no-repeat center / contain; opacity: .28; }
.profile-cover.cov-motif::before { width: 460px; height: 350px; left: auto; right: 6%; top: -40px; opacity: .22; }

/* Avatar : logo, photo ou monogramme */
.avatar { width: 72px; height: 72px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font: 700 26px/1 var(--font-sans); letter-spacing: -.04em; border-radius: 22%; box-shadow: 0 0 0 4px var(--surface); }
.avatar--lg { width: 132px; height: 132px; font-size: 48px; box-shadow: 0 0 0 6px var(--surface); }
.avatar--logo { background: #fff; border: 1px solid var(--line); padding: 12%; }
.avatar--logo img { width: 100%; height: 100%; object-fit: contain; }
.avatar--photo { border-radius: 50%; background: var(--surface-alt); }
.avatar--photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar--violet { background: var(--violet); color: #fff; }
.avatar--rouge { background: var(--rouge); color: var(--violet); }
.avatar--jaune { background: var(--jaune); color: var(--violet); }
.avatar--cyan { background: var(--cyan); color: var(--violet); }

/* Familles */
.family { display: grid; gap: var(--space-2); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.family:hover { border-color: var(--violet); transform: translateY(-2px); }
.family__dot { width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg); margin-bottom: var(--space-2); }
.family h3 { font-size: 20px; line-height: 26px; }
.family p { color: var(--ink-muted); font-size: 15px; }
.family__count { font: 500 12px/16px var(--font-mono); color: var(--ink-muted); letter-spacing: .06em; }

/* Raisons */
.reason { display: grid; gap: var(--space-3); padding-top: var(--space-6); border-top: 3px solid var(--violet); }
.reason:nth-child(2) { border-top-color: var(--rouge); }
.reason:nth-child(3) { border-top-color: var(--cyan); }
.reason h3 { font-size: 20px; }
.reason p { color: var(--ink-muted); }

/* Blog cards */
.post-card { display: grid; gap: var(--space-3); text-decoration: none; color: var(--ink); }
.post-card__media { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.post-card__media svg, .post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { font-size: 21px; line-height: 28px; }
.post-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.post-card p { color: var(--ink-muted); font-size: 15px; }

/* CTA band */
.cta-band { padding: var(--space-16) 0; }
.cta-band__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: center; }
@media (max-width: 900px) { .cta-band__grid { grid-template-columns: 1fr; gap: var(--space-8); } }
.join { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; padding: var(--space-12); border-radius: var(--radius-xl); background: var(--jaune); color: var(--violet); }
.join h2 { color: var(--violet); }
.join p { max-width: 560px; }
@media (max-width: 760px) { .join { grid-template-columns: 1fr; padding: var(--space-8); } }

/* Formulaires */
.form { display: grid; gap: var(--space-4); }
.form-card { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: 0 20px 50px rgba(10,0,30,.25); }
.form-card h3 { font-size: 22px; }
@media (max-width: 640px) { .form-card { padding: var(--space-6); } }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field__label { font: 500 14px/20px var(--font-sans); color: var(--ink); }
.field__label .opt { font-weight: 400; color: var(--ink-muted); }
.field__input { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: 16px; line-height: 24px; }
textarea.field__input { min-height: 140px; resize: vertical; }
select.field__input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23350085' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field__input::placeholder { color: var(--ink-muted); }
.field__input:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink-brand); }
.field__hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.field__error { font-size: 13px; line-height: 18px; color: var(--danger); display: none; }
.field.is-invalid .field__input { border-color: var(--danger); }
.field.is-invalid .field__error { display: block; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form__legal { font-size: 12.5px; line-height: 18px; color: var(--ink-muted); }
.form__legal a { color: inherit; }
.form__status { font-size: 14px; border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); display: none; }
.form__status.is-error { display: block; background: #FDECEF; color: var(--rouge-texte); }
.form__success { display: none; text-align: left; gap: var(--space-4); }
.form.is-sent > :not(.form__success) { display: none !important; }
.form.is-sent .form__success { display: grid; }
.form__success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cyan); color: var(--violet); display: flex; align-items: center; justify-content: center; }

/* Choix (radio / cases en cartes) */
.choices { display: grid; gap: var(--space-3); border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { font: 500 14px/20px var(--font-sans); margin-bottom: var(--space-2); padding: 0; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .choices--2, .choices--3 { grid-template-columns: 1fr; } }
.choice { position: relative; display: grid; gap: 2px; padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); cursor: pointer; background: var(--surface); transition: border-color .15s, background-color .15s; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice strong { font-weight: 600; color: var(--ink-brand); }
.choice span { font-size: 14px; color: var(--ink-muted); line-height: 20px; }
.choice:hover { border-color: var(--violet); }
.choice:has(input:checked) { border: 2px solid var(--violet); padding: calc(var(--space-4) - 1px); background: #F6F2FC; }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: 14px; cursor: pointer; }
.chip input:checked + span { background: var(--violet); color: #fff; border-color: var(--violet); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Brief en étapes */
.steps-nav { display: flex; gap: var(--space-2); list-style: none; margin-bottom: var(--space-8); counter-reset: s; }
.steps-nav li { flex: 1; display: grid; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.steps-nav li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.steps-nav li.is-done::before, .steps-nav li.is-current::before { background: var(--violet); }
.steps-nav li.is-current { color: var(--ink-brand); font-weight: 600; }
@media (max-width: 640px) { .steps-nav li span { display: none; } }
.step { display: none; gap: var(--space-6); }
.step.is-active { display: grid; }
.step__actions { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding-top: var(--space-2); }
.no-js .step { display: grid; }
.no-js .steps-nav, .no-js .step__actions .js-only { display: none; }

/* Annuaire */
.dir-head { padding: var(--space-16) 0 var(--space-12); }
.filters { display: grid; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin-top: var(--space-8); }
.filters__row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-3); }
.filters__tags { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); }
@media (max-width: 860px) { .filters__row { grid-template-columns: 1fr; } }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-muted); }
.search .field__input { padding-left: 44px; }
.dir-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin: var(--space-8) 0 var(--space-6); flex-wrap: wrap; }
.empty { display: none; padding: var(--space-12); border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; gap: var(--space-4); justify-items: center; }
.empty.is-visible { display: grid; }

/* Fiche membre */
.profile-cover { position: relative; height: 260px; overflow: hidden; }
.profile-cover img.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .profile-cover { height: 180px; } }
.profile-head { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--space-8); align-items: start; padding-top: var(--space-6); }
.profile-head > .avatar { margin-top: -90px; }
.profile-head__text { display: grid; gap: var(--space-3); padding-bottom: 6px; }
.profile-head__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-muted); font-size: 15px; align-items: center; }
.profile-head__meta a { color: var(--ink-brand); font-weight: 600; text-decoration: none; }
.profile-head__meta a:hover { text-decoration: underline; }
@media (max-width: 760px) { .profile-head { grid-template-columns: 1fr; gap: var(--space-4); padding-top: 0; } .profile-head > .avatar { margin-top: -50px; } .profile-head .avatar--lg { width: 100px; height: 100px; font-size: 36px; } }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-16); padding: var(--space-12) 0 var(--space-16); }
@media (max-width: 1000px) { .profile { grid-template-columns: 1fr; gap: var(--space-8); } }
.profile__main { display: grid; gap: var(--space-16); align-content: start; }
.profile__main section { display: grid; gap: var(--space-6); }
.prose { display: grid; gap: var(--space-4); font-size: 17px; line-height: 1.7; }
.prose p:first-child { font-size: 20px; line-height: 1.55; color: var(--ink-brand); }
.side { display: grid; gap: var(--space-6); align-content: start; }
@media (min-width: 1001px) { .side { position: sticky; top: 100px; } }
.contact-box { border-radius: var(--radius-lg); background: var(--violet); color: var(--on-brand); padding: var(--space-6); display: grid; gap: var(--space-4); }
.contact-box h2 { color: #fff; font-size: 22px; line-height: 28px; }
.contact-box .choice { background: transparent; border-color: rgba(255,255,255,.35); }
.contact-box .choice strong { color: #fff; }
.contact-box .choice span { color: var(--on-brand-muted); }
.contact-box .choice:has(input:checked) { background: rgba(255,255,255,.1); border-color: var(--jaune); }
.contact-box .choice:has(input:focus-visible) { outline-color: var(--jaune); }
.contact-box :focus-visible { outline-color: var(--jaune); }
.facts { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-6); }
.facts dl { margin: 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-muted); }
.facts dd { margin: 0; font-weight: 500; }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.refs li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); min-height: 88px; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-4); font-weight: 600; color: var(--ink-muted); font-size: 15px; line-height: 20px; }
.refs img { max-height: 56px; max-width: 120px; filter: grayscale(1); opacity: .7; }
.refs li:hover img { filter: none; opacity: 1; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }
.project { display: grid; gap: var(--space-3); text-decoration: none; color: var(--ink); }
.project__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-alt); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.project:hover .project__media img { transform: scale(1.03); }
.project__title { font: 600 19px/25px var(--font-sans); color: var(--ink-brand); }
.portfolio-cta { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-6); align-items: center; padding: var(--space-6); border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); }
@media (max-width: 640px) { .portfolio-cta { grid-template-columns: 1fr; } }
.reviews-empty { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-alt); display: grid; gap: var(--space-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-muted); list-style: none; padding: var(--space-6) 0; }
.crumbs a { color: var(--ink-muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }

/* Pages de contenu (légal, FAQ, blog) */
.page-head { padding: var(--space-16) 0 var(--space-12); background: var(--surface-alt); }
.page-head__inner { display: grid; gap: var(--space-4); max-width: 820px; }
.rich { font-size: 17px; line-height: 1.75; }
.rich > * + * { margin-top: 1em; }
.rich h2 { font: 600 26px/1.25 var(--font-sans); margin-top: 2em; letter-spacing: -.01em; }
.rich h3 { font: 600 20px/1.3 var(--font-sans); margin-top: 1.6em; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich li + li { margin-top: .4em; }
.rich a { color: var(--ink-brand); font-weight: 500; }
.rich table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.rich th, .rich td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rich th { font-weight: 600; color: var(--ink-brand); }
.table-scroll { overflow-x: auto; }
.rich blockquote { margin: 1.4em 0; padding: var(--space-4) var(--space-6); border-left: 4px solid var(--jaune); background: var(--surface-alt); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.toc { padding: var(--space-6); background: var(--surface-alt); border-radius: var(--radius-lg); font-size: 15px; }
.toc ol { margin: var(--space-2) 0 0; padding-left: 1.2em; }

.faq-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-8); flex-wrap: wrap; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--space-6) 0; display: flex; justify-content: space-between; gap: var(--space-4); font: 600 18px/1.4 var(--font-sans); color: var(--ink-brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--font-sans); color: var(--rouge-texte); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 var(--space-6); color: var(--ink-muted); font-size: 16px; max-width: 720px; display: grid; gap: var(--space-3); }
.faq .answer a { color: var(--ink-brand); }

.article-head { padding: var(--space-16) 0 var(--space-8); }
.article-head__inner { max-width: 820px; display: grid; gap: var(--space-4); }
.article-cover { aspect-ratio: 21 / 9; border-radius: var(--radius-xl); overflow: hidden; margin-bottom: var(--space-12); }
.article-cover svg { width: 100%; height: 100%; }

/* Footer */
.site-footer { background: var(--violet); color: var(--on-brand); padding: var(--space-16) 0 var(--space-8); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-8); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
.site-footer__brand { display: grid; gap: var(--space-4); align-content: start; }
.site-footer__brand img { height: 56px; width: auto; }
.site-footer__brand p { color: var(--on-brand-muted); max-width: 300px; font-size: 15px; }
.site-footer h2 { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-brand-muted); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a, .site-footer button.linklike { color: #fff; text-decoration: none; font-size: 15px; }
.site-footer a:hover, .site-footer button.linklike:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--jaune); }
.site-footer__bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); font-size: 14px; color: var(--on-brand-muted); }
.site-footer__bottom a { font-size: 14px; }
button.linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* Bandeau cookies */
.consent { position: fixed; z-index: 90; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); max-width: 560px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(28,14,63,.25); padding: var(--space-6); display: grid; gap: var(--space-4); }
.consent[hidden] { display: none; }
.consent h2 { font-size: 18px; line-height: 24px; }
.consent p { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.consent p a { color: var(--ink-brand); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.consent__actions .btn { min-height: 44px; padding: 8px 12px; font-size: 15px; }
.consent__more { grid-column: 1 / -1; justify-self: center; background: none; border: 0; color: var(--ink-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; font-size: 14px; }
.consent__prefs { display: grid; gap: var(--space-3); }
.consent__prefs[hidden] { display: none; }
.toggle { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); }
.toggle strong { font-size: 14px; display: block; }
.toggle small { font-size: 13px; color: var(--ink-muted); line-height: 18px; display: block; }
.toggle input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked { background: var(--violet); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle input:disabled { opacity: .5; cursor: not-allowed; }

/* Utilitaires */
.stack-2 { display: grid; gap: var(--space-2); }
.stack-4 { display: grid; gap: var(--space-4); }
.stack-6 { display: grid; gap: var(--space-6); }
.stack-8 { display: grid; gap: var(--space-8); }
.center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }
.hide { display: none !important; }
.form-card:has(.form.is-sent) .steps-nav { display: none; }
/* Cartes de formulaire posées sur une bande de marque : retour aux couleurs de texte normales */
.brand-band .form-card h2, .brand-band .form-card h3 { color: var(--ink-brand); }
.brand-band .form-card .muted, .brand-band .form-card .lead, .brand-band .form-card .label { color: var(--ink-muted); }

/* Accès réservé aux professionnels (profils hors « à la une ») */
.access-wall { display: none; }
.access-wall__card { width: 100%; max-width: 600px; display: grid; gap: var(--space-4); margin: 0 auto; border: 1px solid var(--line); }
.access-panel .access-wall { display: block; }
html.has-access .access-panel { display: none; }
html:not(.has-access) .gated { position: relative; min-height: 820px; }
html:not(.has-access) .gated > :not(.access-wall) { filter: blur(7px); user-select: none; pointer-events: none; max-height: 640px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
html:not(.has-access) .gated > .access-wall { display: block; position: absolute; inset: var(--space-6) 0 auto; z-index: 3; }
html:not(.has-access) .card.is-locked .card__body > *, html:not(.has-access) .card.is-locked .card__avatar { filter: blur(5px); }
html:not(.has-access) .card.is-locked::after { content: "Profil réservé"; position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); background: var(--violet); color: #fff; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--radius-pill); pointer-events: none; white-space: nowrap; }
html:not(.has-access) .needs-access { display: none !important; }

/* Statuts (Membre / Recommandé / Sponsorisé) et équipes */
.card__badges { position: relative; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badge--onlight { background: #fff; color: var(--violet); }
.badge--outline { background: rgba(255,255,255,.88); color: var(--ink-muted); }
.card--sponsored { border-color: var(--jaune); box-shadow: 0 0 0 2px var(--jaune); }
.card[style*="--team"] { border-top: 0; }
.card[style*="--team"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--team); z-index: 2; }
.team { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 18px; color: var(--ink); min-width: 0; }
.team .avatar--xs { width: 24px; height: 24px; font-size: 10px; letter-spacing: 0; border-radius: 6px; box-shadow: 0 0 0 2px var(--team, var(--violet)); }
.team .avatar--xs.avatar--logo { padding: 2px; }
.team__label { font: 500 11px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.team__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--violet); }
.team--free .team__dot { background: transparent; border: 2px solid var(--ink-muted); }
.team--agency .team__dot { border-radius: 3px; background: var(--rouge); }
.team--lg { font-size: 16px; line-height: 22px; font-weight: 600; margin: var(--space-2) 0; }
.team--lg .avatar--xs { width: 32px; height: 32px; font-size: 12px; }
.team--lg a { color: var(--ink-brand); }
.notice { margin: var(--space-4) 0 var(--space-6); padding: var(--space-4) var(--space-6); border-radius: var(--radius-md, 12px); background: var(--surface-alt); border-left: 4px solid var(--line-strong); display: grid; gap: var(--space-2); }
.notice p { margin: 0; }
.roster { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3); }
.roster__item { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); }
.roster__item:hover { border-color: var(--ink-brand); }
.roster__item .avatar { width: 48px; height: 48px; font-size: 18px; box-shadow: none; }
.roster__item > span { display: grid; gap: 2px; min-width: 0; }
.legend { margin: 0 0 var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-6); }
.legend summary { cursor: pointer; font-weight: 500; }
.legend dl { display: grid; gap: var(--space-3); margin: var(--space-4) 0 var(--space-2); }
.legend dl > div { display: grid; grid-template-columns: 170px 1fr; gap: var(--space-4); align-items: start; }
.legend dd { margin: 0; font-size: 14px; color: var(--ink-muted); }
@media (max-width: 640px) { .legend dl > div { grid-template-columns: 1fr; gap: var(--space-1); } }
/* Icône récupérée sur le site de l'agence : carrée, plein cadre */
.avatar--icon { background: #fff; border: 1px solid var(--line); }
.avatar--icon img { width: 100%; height: 100%; object-fit: cover; }
