/* ============================================================
   Quantum Vertex — feuille de style (redesign 2026)
   ============================================================ */
/* Layout: brand-led — the logo's gold Q ring frames the hero photo; paper sections alternate with deep-brown bands; photo-first service and product grids. */
:root {
  --paper:   #f6f4ef;   /* warm white page */
  --surface: #ffffff;   /* raised panels */
  --sunk:    #ece8df;   /* alternate section */
  --ink:     #1f150c;   /* brown-black text */
  --ink-2:   #5b4e41;   /* muted text */
  --ink-3:   #8a7c6c;   /* faint labels */
  --line:    #ddd6c9;
  --gold:    #f2b705;   /* logo Q */
  --gold-2:  #d99a00;
  --brown:   #6b3a12;   /* logo wordmark */
  --accent-text: #8a4c12;  /* readable accent on paper */
  --mark:    #6b3a12;   /* wordmark fill */
  --band:    #1c120a;   /* deep brown feature bands (both themes) */
  --band-2:  #2a1d12;
  --band-ink:#f3ece2;
  --band-ink-2:#bfae99;
  --band-line: rgba(243,236,226,.14);
  --on-gold: #1f150c;
  --ok-bg:   #e4f1e3; --ok-ink: #1f5a26;
  --err-bg:  #f8e1dc; --err-ink: #8a2414;
  --shadow:  0 1px 2px rgba(31,21,12,.06), 0 12px 32px rgba(31,21,12,.08);
  --particle: 160, 104, 6;            /* rgb triplet read by the canvas */
  --glow:    rgba(242,183,5,.16);
  --glow-band: rgba(242,183,5,.10);

  --ff-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1240px;
  --r: 14px;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #130d08; --surface: #1d150e; --sunk: #181009;
    --ink: #f3ece2; --ink-2: #c3b5a4; --ink-3: #8f8070; --line: #362a1f;
    --accent-text: #f2b705; --mark: #f3ece2;
    --band: #0c0805; --band-2: #1d140c;
    --ok-bg: #173019; --ok-ink: #a9dcae; --err-bg: #3a1610; --err-ink: #f2b3a6;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
    --particle: 242, 183, 5; --glow: rgba(242,183,5,.09);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #130d08; --surface: #1d150e; --sunk: #181009;
  --ink: #f3ece2; --ink-2: #c3b5a4; --ink-3: #8f8070; --line: #362a1f;
  --accent-text: #f2b705; --mark: #f3ece2;
  --band: #0c0805; --band-2: #1d140c;
  --ok-bg: #173019; --ok-ink: #a9dcae; --err-bg: #3a1610; --err-ink: #f2b3a6;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  --particle: 242, 183, 5; --glow: rgba(242,183,5,.09);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper); color: var(--ink);
  font-family: var(--ff-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
h1, h2, h3 { font-family: var(--ff-display); font-stretch: 112%; margin: 0; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.section { padding-block: clamp(64px, 8vw, 120px); }
.section--sunk { background: var(--sunk); }
.band { background: var(--band); color: var(--band-ink); --particle: 242, 183, 5; }

/* Particle network backdrop (canvas injected by script) */
[data-particles] { position: relative; isolation: isolate; overflow: hidden; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.band[data-particles] { background: radial-gradient(900px 520px at 88% -10%, var(--glow-band), transparent 70%), var(--band); }

.eyebrow {
  font-family: var(--ff-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--gold); border-radius: 2px; }
.band .eyebrow { color: var(--gold); }

.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 750; }
.head p { color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.16rem); max-width: 60ch; }
.band .head p { color: var(--band-ink-2); }
.head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .head--split { grid-template-columns: 1.1fr 1fr; gap: 48px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--ff-body); padding: 14px 22px; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.band .btn--line { border-color: var(--band-ink); color: var(--band-ink); }
.band .btn--line:hover { background: var(--band-ink); color: var(--band); }

/* Logo built from the real PNG: Q in colour, wordmark masked so it follows the theme */
.logo { --h: 36px; display: inline-flex; align-items: center; text-decoration: none; height: var(--h); }
.logo__q { width: calc(var(--h) * 338 / 333); height: var(--h); background: url("../images/logo-qv.761fb88b8cac.png") 0 0 / auto 100% no-repeat; flex: none; }
.logo__word {
  width: calc(var(--h) * 710 / 333); height: var(--h); flex: none; background: var(--mark);
  -webkit-mask: url("../images/logo-qv.761fb88b8cac.png") calc(var(--h) * -338 / 333) 0 / auto 100% no-repeat;
          mask: url("../images/logo-qv.761fb88b8cac.png") calc(var(--h) * -338 / 333) 0 / auto 100% no-repeat;
}
.band .logo__word { background: var(--band-ink); }

/* Top strip */
.strip { background: var(--band); color: var(--band-ink-2); font: 500 12.5px/1 var(--ff-mono); letter-spacing: .04em; }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.strip b { color: var(--gold); font-weight: 500; }
.clocks { display: flex; gap: 18px; font-variant-numeric: tabular-nums; }
.clocks span { display: inline-flex; gap: 8px; align-items: center; }
.clocks i { width: 6px; height: 6px; border-radius: 50%; background: #3ccf6a; display: inline-block; }
@media (max-width: 640px) { .strip__note { display: none; } .strip .wrap { justify-content: center; } }

/* Header */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--ink); background: var(--sunk); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__cta .btn { padding: 11px 18px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }
.theme-toggle {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .2s, transform .3s ease;
}
.theme-toggle:hover { border-color: var(--gold-2); transform: rotate(-12deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.mnav { display: none; }
@media (max-width: 1020px) {
  .nav__links, .nav__cta .btn--line { display: none; }
}
@media (max-width: 720px) {
  .nav__cta .btn--gold { display: none; }
  .burger { display: grid; }
  .logo { --h: 30px; }
  .mnav { display: grid; gap: 2px; padding-block: 8px 18px; border-top: 1px solid var(--line); }
  .mnav[hidden] { display: none !important; }
  .mnav a { text-decoration: none; font: 600 1.15rem/1.2 var(--ff-display); padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .mnav .btn { margin-top: 14px; justify-content: center; }
}

/* Hero */
.hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px);
  background: radial-gradient(900px 560px at 80% -10%, var(--glow), transparent 70%), radial-gradient(700px 480px at -10% 110%, var(--glow), transparent 70%);
}
.hero__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }
.hero__copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.5rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.035em; line-height: .98; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%); padding-inline: .04em; }
.hero__lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 54ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 10px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 18px 14px 4px 0; display: grid; gap: 4px; }
.stat b { font: 800 clamp(1.9rem, 3.4vw, 2.6rem)/1 var(--ff-display); font-stretch: 118%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat b sup { color: var(--accent-text); font-size: .55em; vertical-align: .55em; margin-left: 2px; }
.stat span { font-size: 13.5px; color: var(--ink-3); line-height: 1.35; }

.qmark { --t: clamp(18px, 3.4vw, 34px); position: relative; width: min(100%, 540px); aspect-ratio: 1; margin-inline: auto; max-width: 100%; }
.qmark__ring { position: absolute; inset: 0; border-radius: 50%; background: var(--gold); box-shadow: var(--shadow); }
.qmark__img { position: absolute; inset: var(--t); border-radius: 50%; overflow: hidden; background: var(--band); }
.qmark__img img { width: 100%; height: 100%; object-fit: cover; }
.qmark__tail {
  position: absolute; left: 63%; top: 63%; width: 42%; height: calc(var(--t) * 1.35);
  background: var(--gold); transform-origin: 0 50%; transform: rotate(45deg);
  box-shadow: 0 0 0 7px var(--paper); border-radius: 2px;
}
.chip {
  position: absolute; display: inline-flex; gap: 10px; align-items: center;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 600; line-height: 1.25;
}
.chip small { display: block; font: 500 11px/1.3 var(--ff-mono); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.chip__dot { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); flex: none; }
.chip__dot svg { width: 18px; height: 18px; }
.chip--a { left: -2%; top: 12%; }
.chip--b { right: -2%; top: 46%; }
@media (max-width: 520px) { .chip { font-size: 12px; padding: 8px 10px; } .chip__dot { width: 28px; height: 28px; } .chip--a { left: 0; top: 4%; } .chip--b { right: 0; top: 52%; } }

/* Clients */
.clients { border-block: 1px solid var(--line); }
.clients .wrap { display: grid; gap: 18px; padding-block: 28px; }
@media (min-width: 900px) { .clients .wrap { grid-template-columns: 220px 1fr; align-items: center; } }
.clients p { font: 500 12px/1.5 var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: center; }
.clients li { font: 700 clamp(1rem, 1.6vw, 1.2rem)/1.2 var(--ff-display); font-stretch: 112%; color: var(--ink-2); letter-spacing: -.01em; }

/* About */
.about { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 920px) { .about { grid-template-columns: .9fr 1.1fr; } }
.about__media { position: relative; min-width: 0; }
.about__media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--r); }
.about__badge {
  position: absolute; right: -12px; bottom: 28px; max-width: 250px;
  background: var(--band); color: var(--band-ink); border-radius: 12px; padding: 16px 18px;
  font-size: 14px; line-height: 1.4; box-shadow: var(--shadow);
}
.about__badge b { display: block; font: 800 1.5rem/1 var(--ff-display); font-stretch: 118%; color: var(--gold); margin-bottom: 6px; }
@media (max-width: 520px) { .about__badge { right: 10px; bottom: 10px; max-width: 210px; } }
.about__copy { display: grid; gap: 20px; min-width: 0; }
.about__copy h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 750; }
.about__copy p { color: var(--ink-2); max-width: 62ch; }
.about__copy p strong { color: var(--ink); font-weight: 600; }
.callout { border-left: 3px solid var(--gold); padding: 6px 0 6px 18px; color: var(--ink) !important; font-weight: 500; }

/* Services */
.svc-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .25s ease, box-shadow .25s; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--band); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc:hover .svc__img img { transform: scale(1.04); }
.svc__body { padding: 22px 22px 24px; display: grid; gap: 10px; align-content: start; }
.svc h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -.015em; }
.svc p { color: var(--ink-2); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags span { font: 500 12px/1 var(--ff-mono); padding: 7px 9px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); border: 1px solid var(--line); }
.band .tags span { background: var(--band-2); color: var(--band-ink-2); border-color: var(--band-line); }

/* Specialisations */
.spec-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--band-line); }
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spec { padding: 26px 22px 28px 0; border-bottom: 1px solid var(--band-line); display: grid; gap: 8px; align-content: start; }
@media (min-width: 640px) { .spec { padding-right: 26px; } }
.spec h3 { font-size: 1.15rem; font-weight: 700; color: var(--band-ink); }
.spec p { color: var(--band-ink-2); font-size: 15px; }
.spec__k { font: 500 11.5px/1 var(--ff-mono); color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }

/* Products — 4-col bento, ERP CD spans 2×2 */
.prod-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prod--feature { grid-column: span 2; } }
@media (min-width: 1040px) { .prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .prod--feature { grid-column: span 2; grid-row: span 2; } }
.prod { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.prod__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--band); }
.prod__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prod:hover .prod__img img { transform: scale(1.04); }
.prod__body { padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.prod__cat { font: 500 11.5px/1 var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.prod h3 { font-size: 1.18rem; font-weight: 750; }
.prod p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.prod__link { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; border-bottom: 1.5px solid var(--gold); width: fit-content; padding-bottom: 2px; }
.prod__link:hover { color: var(--accent-text); }
.prod--feature { background: var(--band); color: var(--band-ink); border-color: var(--band); }
.prod--feature .prod__img { aspect-ratio: 16 / 10; }
@media (min-width: 1040px) { .prod--feature .prod__img { aspect-ratio: auto; height: 100%; min-height: 300px; } .prod--feature { grid-template-rows: 1fr auto; } }
.prod--feature .prod__body { padding: 24px 26px 28px; gap: 10px; }
.prod--feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; font-stretch: 118%; }
.prod--feature p { color: var(--band-ink-2); font-size: 16px; max-width: 52ch; }
.prod--feature .prod__cat { color: var(--gold); }
.prod--feature .prod__link { color: var(--band-ink); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 6px; font: 500 13px/1.4 var(--ff-mono); color: var(--band-ink); }
.facts span::before { content: "→ "; color: var(--gold); }

/* Continuum PME */
.cont { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 980px) { .cont { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.cont__lead { display: grid; gap: 22px; min-width: 0; }
.cont__lead h2 { font-size: clamp(2.1rem, 5vw, 3.9rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; }
.cont__lead h2 span { color: var(--gold); }
.cont__lead p { color: var(--band-ink-2); max-width: 60ch; font-size: 1.08rem; }
.cont__lead p strong { color: var(--band-ink); }
.cont__media { position: relative; min-width: 0; }
.cont__media img { width: 100%; aspect-ratio: 10 / 11; object-fit: cover; border-radius: var(--r); }
.cont__media figcaption { margin-top: 10px; font: 500 12px/1.4 var(--ff-mono); color: var(--band-ink-2); }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--band-line); counter-reset: st; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--band-line); }
.steps li::before { content: counter(st, decimal-leading-zero); font: 500 12.5px/1.6 var(--ff-mono); color: var(--gold); grid-row: span 2; }
.steps b { font-weight: 600; color: var(--band-ink); font-size: 15.5px; }
.steps span { color: var(--band-ink-2); font-size: 14px; line-height: 1.45; }

/* Réalisations */
.cases { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.case { display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.case__sig {
  grid-row: span 4; width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--gold); display: grid; place-items: center;
  font: 800 15px/1 var(--ff-display); font-stretch: 112%; letter-spacing: .02em; color: var(--ink);
}
.case__sector { font: 500 11.5px/1.4 var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.case h3 { font-size: 1.25rem; font-weight: 750; }
.case p { color: var(--ink-2); font-size: 15.5px; margin-top: 4px; }
.case .tags { margin-top: 10px; }

/* Contact */
.contact { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 960px) { .contact { grid-template-columns: .9fr 1.1fr; } }
.contact__info { display: grid; gap: 22px; align-content: start; min-width: 0; }
.contact__info h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; }
.contact__info > p { color: var(--ink-2); max-width: 50ch; }
.contact__info img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; border-radius: var(--r); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mail small { display: block; font: 500 11.5px/1 var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.mail strong { font: 600 1.05rem/1.2 var(--ff-body); user-select: all; word-break: break-all; }
.mail > div { flex: 1 1 200px; min-width: 0; }
.copy { font: 600 13px/1 var(--ff-body); padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.markets { display: flex; gap: 10px; flex-wrap: wrap; }
.markets span { font: 500 13px/1 var(--ff-mono); padding: 9px 12px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); color: var(--ink-2); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3.4vw, 36px); display: grid; gap: 18px; box-shadow: var(--shadow); min-width: 0; align-content: start; }
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15.5px/1.4 var(--ff-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 28%, transparent); }
.form__foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form__foot small { color: var(--ink-3); font-size: 13px; max-width: 36ch; }
.notice { background: var(--ok-bg); color: var(--ok-ink); border-radius: 10px; padding: 14px 16px; font-weight: 500; font-size: 15px; }

/* Footer */
.footer { padding-block: 64px 32px; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand p { color: var(--band-ink-2); max-width: 36ch; font-size: 15px; }
.footer h4 { margin: 0 0 14px; font: 500 12px/1 var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer li a { text-decoration: none; color: var(--band-ink-2); font-size: 15px; }
.footer li a:hover { color: var(--band-ink); }
.footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font: 400 12.5px/1.5 var(--ff-mono); color: var(--band-ink-2); }

.notice--error { background: var(--err-bg); color: var(--err-ink); }
.form__error { color: var(--err-ink); font-size: 12.5px; }

/* ============================================================
   Pages de contenu : blog, événements, forum, diagnostic
   ============================================================ */
.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; }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--sunk); }
.note { color: var(--ink-2); font-size: 15px; }
.note a, .lien-fleche { color: var(--accent-text); font-weight: 600; }
.lien-fleche { margin-left: 10px; white-space: nowrap; text-decoration: none; }
.lien-fleche::after { content: " →"; }
.section--serre { padding-block: clamp(40px, 5vw, 72px); }
.titre-section { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 750; margin: 48px 0 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions--pile { flex-direction: column; align-items: stretch; }
.actions--pile .btn, .actions--pile .copy { justify-content: center; text-align: center; }

/* En-tête de page */
.page-tete { padding-block: clamp(40px, 6vw, 84px) clamp(32px, 4vw, 56px); background: radial-gradient(900px 480px at 85% -20%, var(--glow), transparent 70%); border-bottom: 1px solid var(--line); }
.page-tete__inner { display: grid; gap: 16px; }
.page-tete h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 800; font-stretch: 116%; letter-spacing: -.03em; max-width: 22ch; }
.page-tete--compacte h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 30ch; }
.page-tete__lede { color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 62ch; }
.fil { font: 500 13px/1.4 var(--ff-mono); color: var(--ink-3); }
.fil a { color: var(--ink-2); text-decoration: none; }
.fil a:hover { color: var(--accent-text); }
.bandeau-apercu { background: var(--gold); color: var(--on-gold); font-weight: 600; font-size: 14.5px; }
.bandeau-apercu .wrap { padding-block: 10px; }
.bandeau-apercu a { color: inherit; }

/* Filtres */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filtre { text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-2); }
.filtre small { font: 500 11px var(--ff-mono); color: var(--ink-3); margin-left: 4px; }
.filtre:hover { border-color: var(--ink); color: var(--ink); }
.filtre.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filtre.is-on small { color: inherit; opacity: .7; }

/* Cartes d'articles */
.cartes { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cartes--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cartes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.carte { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; transition: transform .25s ease, box-shadow .25s; }
.carte:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.carte__img { display: block; aspect-ratio: 16 / 10; background: var(--band); overflow: hidden; }
.carte__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte:hover .carte__img img { transform: scale(1.04); }
.carte__img-vide { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 70% 20%, var(--glow-band), transparent 60%), var(--band); }
.carte__img-vide .logo__q { width: 56px; height: 56px; display: block; opacity: .9; }
.carte__corps { padding: 20px 20px 22px; display: grid; gap: 8px; align-content: start; }
.carte__meta { font: 500 11.5px/1.4 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.carte h3 { font-size: 1.2rem; font-weight: 750; }
.carte h3 a { text-decoration: none; }
.carte h3 a:hover { color: var(--accent-text); }
.carte p { color: var(--ink-2); font-size: 15px; }
.carte__pied { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.une { display: grid; gap: 0; border-radius: var(--r); overflow: hidden; background: var(--band); color: var(--band-ink); margin-bottom: 36px; }
@media (min-width: 900px) { .une { grid-template-columns: 1.15fr .85fr; } }
.une__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.une__img img { width: 100%; height: 100%; object-fit: cover; }
.une__corps { padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; align-content: center; }
.une__corps .carte__meta { color: var(--gold); }
.une h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; font-stretch: 116%; }
.une h2 a { text-decoration: none; }
.une p { color: var(--band-ink-2); }
.une .btn { width: fit-content; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.pagination__etat { font: 500 13px var(--ff-mono); color: var(--ink-3); }

.vide { text-align: center; display: grid; justify-items: center; gap: 14px; padding: clamp(40px, 6vw, 72px) 16px; border: 1.5px dashed var(--line); border-radius: var(--r); }
.vide__icone { width: 54px; height: 54px; display: block; }
.vide h2 { font-size: 1.5rem; }
.vide p { color: var(--ink-2); max-width: 52ch; }

/* Lecture d'un article */
.lecture { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px); }
/* Colonne de lecture commune au titre, au texte et au partage (860 px de contenu) */
.lecture > .wrap { max-width: 924px; }
.lecture > .lecture__image.wrap { max-width: 1144px; }
.lecture__tete { display: grid; gap: 16px; }
.lecture__tete h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 800; font-stretch: 114%; letter-spacing: -.03em; }
.lecture__chapo { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-2); max-width: 64ch; }
.lecture__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 13px var(--ff-mono); color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--line); }
.lecture__image { margin-block: 32px; max-width: 1080px; }
.lecture__image img { width: 100%; border-radius: var(--r); max-height: 620px; object-fit: cover; }
.lecture__image figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }
.lecture .prose { margin-top: 32px; }

.prose { max-width: 70ch; font-size: 17.5px; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.65rem; font-weight: 750; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; font-weight: 700; margin-top: 1.5em; }
.prose h4 { font-size: 1.1rem; font-weight: 700; }
.prose p, .prose li { color: var(--ink); }
.prose a { color: var(--accent-text); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--ink-2); font-size: 1.08em; }
.prose pre { background: var(--band); color: var(--band-ink); padding: 16px 18px; border-radius: 10px; overflow-x: auto; font: 14px/1.6 var(--ff-mono); }
.prose code { font-family: var(--ff-mono); font-size: .9em; background: var(--sunk); padding: 2px 5px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 10px; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-indent-1 { padding-left: 2em; } .prose .ql-indent-2 { padding-left: 4em; }

.partage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 70ch; font-size: 14.5px; }
.partage > span { font: 500 12px var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.partage a { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); }

/* Événements */
.prochain { display: grid; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
@media (min-width: 900px) { .prochain { grid-template-columns: .9fr 1.1fr; } }
.prochain__img { aspect-ratio: 4 / 3; background: var(--band); }
@media (min-width: 900px) { .prochain__img { aspect-ratio: auto; } }
.prochain__img img { width: 100%; height: 100%; object-fit: cover; }
.prochain__corps { padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.prochain h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; font-stretch: 114%; }
.prochain h2 a { text-decoration: none; }
.prochain p { color: var(--ink-2); }
.infos { display: grid; gap: 10px; margin: 0; }
.infos div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.infos dt { font: 500 11.5px/1.7 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.infos dd { margin: 0; font-weight: 600; }
.compte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.compte span { display: grid; gap: 4px; justify-items: center; padding: 12px 6px; border-radius: 10px; background: var(--band); color: var(--band-ink-2); font-size: 12px; }
.compte b { font: 800 clamp(1.4rem, 3vw, 2rem)/1 var(--ff-display); font-stretch: 112%; color: var(--gold); font-variant-numeric: tabular-nums; }
.compte--petit b { font-size: 1.3rem; }

.evt-liste { display: grid; gap: 10px; }
.evt-ligne { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; transition: border-color .2s, transform .2s; }
.evt-ligne:hover { border-color: var(--gold-2); transform: translateX(3px); }
.evt-date { display: grid; justify-items: center; padding: 8px 4px; border-radius: 10px; background: var(--gold); color: var(--on-gold); line-height: 1; }
.evt-date b { font: 800 1.5rem/1 var(--ff-display); }
.evt-date span { font: 600 11px/1.4 var(--ff-mono); text-transform: uppercase; letter-spacing: .06em; }
.evt-ligne__txt { display: grid; gap: 3px; min-width: 0; }
.evt-ligne__txt b { font-size: 1.05rem; }
.evt-ligne__txt > span:last-child { color: var(--ink-2); font-size: 14px; }
.evt-ligne__type { font: 500 11px var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.evt-ligne__type em { font-style: normal; color: var(--up, #1f7a3a); }
.evt-liste--passes .evt-ligne { opacity: .78; }
.evt-liste--passes .evt-date { background: var(--sunk); color: var(--ink-2); }

.evt-detail { display: grid; gap: 36px; }
@media (min-width: 960px) { .evt-detail { grid-template-columns: 1fr 340px; align-items: start; } }
.evt-detail__corps { min-width: 0; display: grid; gap: 28px; }
.evt-detail__img { width: 100%; border-radius: var(--r); max-height: 460px; object-fit: cover; }
.evt-fiche { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: grid; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }

/* Forum */
.recherche { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.recherche input { flex: 1 1 260px; min-width: 0; font: 400 16px var(--ff-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 13px 20px; }
.recherche input:focus { outline: none; border-color: var(--gold-2); }
.forum-cats { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .forum-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .forum-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.forum-cat { display: grid; gap: 6px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; border-top: 4px solid var(--gold); transition: box-shadow .2s, transform .2s; }
.forum-cat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.forum-cat b { font: 700 1.15rem/1.2 var(--ff-display); }
.forum-cat span { color: var(--ink-2); font-size: 14.5px; }
.forum-cat small { font: 500 12px var(--ff-mono); color: var(--ink-3); margin-top: 4px; }
.sujets { display: grid; border-top: 1px solid var(--line); }
.sujet-ligne { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.sujet-ligne:hover b { color: var(--accent-text); }
.sujet-ligne__txt { display: grid; gap: 4px; min-width: 0; }
.sujet-ligne__txt b { font-size: 1.05rem; }
.sujet-ligne__txt span { color: var(--ink-3); font-size: 13.5px; }
.sujet-ligne__nb { font-size: 13px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.sujet-ligne__nb b { display: block; font: 700 1.2rem var(--ff-display); color: var(--ink); }
.pastille { display: inline-block; font: 600 10.5px/1 var(--ff-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; background: var(--gold); color: var(--on-gold); vertical-align: 2px; }
.pastille--equipe { background: var(--band); color: var(--gold); }
.fil-discussion { display: grid; gap: 16px; max-width: 860px; }
.post { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; }
.post--sujet { border-left: 4px solid var(--gold); }
.post__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14.5px; }
.post__tete time { font: 400 12.5px var(--ff-mono); color: var(--ink-3); margin-left: auto; }
.post__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font: 800 15px var(--ff-display); text-transform: uppercase; }
.post .prose { font-size: 16.5px; }
.post-note { color: var(--ink-2); font-size: 14.5px; padding: 16px 18px; border-radius: 12px; background: var(--sunk); }
.post-note a { color: var(--accent-text); font-weight: 600; }

/* Accueil : actualités, appel au diagnostic */
.accueil-actu { display: grid; gap: 28px; }
@media (min-width: 1100px) { .accueil-actu:not(.accueil-actu--seul) { grid-template-columns: 1fr 340px; } .accueil-actu:not(.accueil-actu--seul) .cartes--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.accueil-evts { display: grid; gap: 10px; align-content: start; }
.accueil-evts h3 { font-size: 1.1rem; margin-bottom: 4px; }
.cta-diag__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-diag__grid { grid-template-columns: 1fr auto; } }
.cta-diag__texte { display: grid; gap: 14px; max-width: 760px; }
.cta-diag h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800; font-stretch: 116%; letter-spacing: -.03em; }
.cta-diag p { color: var(--band-ink-2); max-width: 62ch; }

/* Diagnostic */
.diag { display: grid; gap: 32px; }
@media (min-width: 1000px) { .diag { grid-template-columns: 1fr 360px; align-items: start; } }
.diag__questions { display: grid; gap: 18px; min-width: 0; }
.diag-q { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 20px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.diag-q legend { float: left; width: 100%; padding: 0; font: 700 1.1rem/1.35 var(--ff-display); display: grid; gap: 6px; }
.diag-q__n { font: 500 11.5px var(--ff-mono); letter-spacing: .1em; color: var(--accent-text); }
.diag-q__options { display: grid; gap: 8px; grid-template-columns: 1fr; clear: both; }
@media (min-width: 640px) { .diag-q__options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.diag-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 15px; transition: border-color .2s, background .2s; }
.diag-opt:hover { border-color: var(--gold-2); }
.diag-opt input { accent-color: var(--gold-2); width: 18px; height: 18px; flex: none; margin: 0; }
.diag-opt:has(input:checked) { border-color: var(--gold-2); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); font-weight: 600; }
.diag__score { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: grid; gap: 16px; }
.diag__carte { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--band); color: var(--band-ink); }
.diag__carte b { display: block; font: 700 1.05rem/1.3 var(--ff-display); }
.diag__carte span { font-size: 13.5px; color: var(--band-ink-2); }
.ring { width: 96px; height: 96px; }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: var(--band-line); }
.ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .6s ease; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { fill: var(--band-ink); font: 800 24px var(--ff-display); }
.ring--grand { width: 150px; height: 150px; flex: none; }
.page-tete .ring .bg { stroke: var(--line); }
.page-tete .ring text { fill: var(--ink); }
.diag__contact { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.diag__contact h2 { font-size: 1.15rem; }
.diag__contact p { font-size: 14px; color: var(--ink-2); }
.diag__contact .field input { width: 100%; font: 400 15.5px/1.4 var(--ff-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.diag__contact .field { display: grid; gap: 6px; }
.diag__contact label { font-size: 13.5px; font-weight: 600; }
.resultat-tete { grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
@media (max-width: 640px) { .resultat-tete { grid-template-columns: 1fr; } }
.resultat { display: grid; gap: 40px; }
@media (min-width: 960px) { .resultat { grid-template-columns: 1.1fr .9fr; } }
.resultat .titre-section { margin-top: 0; }
.priorites { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: p; }
.priorites li { counter-increment: p; display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.priorites li::before { content: counter(p); grid-row: span 3; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font: 700 14px var(--ff-mono); }
.priorites span { color: var(--ink-3); font-size: 14px; }
.priorites a { color: var(--accent-text); font-weight: 600; font-size: 14px; }
.reponses { list-style: none; margin: 0 0 20px; padding: 0; display: grid; border-top: 1px solid var(--line); }
.reponses li { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.reponses span { color: var(--ink-3); grid-column: 1 / -1; font-size: 13px; }
.jauge { width: 60px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--gold-2) calc(var(--v) * 33.34%), var(--line) 0); align-self: center; }

/* ============================================================
   Assistant (bulle de discussion)
   ============================================================ */
.qva { position: fixed; z-index: 80; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: end; gap: 12px; }
.qva__bouton { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 999px; border: 0; cursor: pointer; background: var(--band); color: var(--band-ink); font: 600 15px var(--ff-body); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s; }
.qva__bouton:hover { transform: translateY(-2px); }
.qva__bouton svg { width: 20px; height: 20px; color: var(--gold); }
.qva__panneau { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: grid; grid-template-rows: auto 1fr auto auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden; }
.qva__tete { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 14px 14px 14px 16px; background: var(--band); color: var(--band-ink); }
.qva__tete b { display: block; font: 700 15px var(--ff-display); }
.qva__tete small { font-size: 11.5px; color: var(--band-ink-2); }
.qva__avatar { width: 36px; height: 36px; border-radius: 50%; background: url("../images/favicon/favicon-192.d3b0a161e852.png") center / 70% no-repeat, var(--band-2); }
.qva__fermer { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--band-line); background: transparent; color: var(--band-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.qva__fil { overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; }
.qva__msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.qva__msg--bot { justify-self: start; background: var(--sunk); border-bottom-left-radius: 4px; }
.qva__msg--moi { justify-self: end; background: var(--gold); color: var(--on-gold); border-bottom-right-radius: 4px; }
.qva__msg--err { justify-self: start; background: transparent; border: 1px dashed var(--line); color: var(--ink-2); }
.qva__sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.qva__sugg button { font: 500 12.5px var(--ff-body); padding: 7px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.qva__sugg button:hover { border-color: var(--gold-2); }
.qva__form { display: grid; grid-template-columns: 1fr 44px; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.qva__form textarea { resize: none; max-height: 120px; font: 400 15px/1.4 var(--ff-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.qva__form textarea:focus { outline: none; border-color: var(--gold-2); }
.qva__envoyer { width: 44px; height: 44px; align-self: end; border-radius: 50%; border: 0; background: var(--gold); color: var(--on-gold); cursor: pointer; display: grid; place-items: center; }
.qva__envoyer:disabled { opacity: .5; cursor: progress; }
.qva__envoyer svg { width: 18px; height: 18px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: qva-blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes qva-blink { 50% { opacity: .25; } }
@media (max-width: 520px) { .qva__bouton span { display: none; } .qva__bouton { padding: 14px; } }
