/* Fournisseur Conforme — styles */
:root {
  color-scheme: light;
  --ink: #182230; --muted: #5c6675; --line: #dbe1e9; --line-strong: #7b8494;
  --brand: #0f4a3e; --brand-2: #1c7a63; --brand-3: #0a362d; --accent: #d9f26e;
  --bg: #f7f8f6; --card: #ffffff;
  --ok: #166e4f; --warn: #9a7414; --warn-ink: #7a5a0e; --bad: #a03a1f;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
a { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.2; }

/* ---------- En-tête ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--accent); display: grid; place-items: center; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 18px; }
/* :not(.btn) — sinon la couleur des liens nav (plus spécifique) casserait
   le texte blanc des boutons placés dans l'en-tête. */
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 14px; }
.site-nav a:not(.btn):hover { color: var(--brand-2); }

/* ---------- Boutons ---------- */
/* Une seule classe primaire : .btn-primary — utilisée partout. */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 20px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: .15s; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary, .btn-primary:visited { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-primary:active { background: var(--brand-3); color: #fff; }
.btn-primary:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn-quiet:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Landing ---------- */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 72px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-2); text-transform: uppercase; letter-spacing: .08em; }
.eyebrow i { width: 22px; height: 2px; background: var(--brand-2); display: inline-block; }
.hero h1 { font-size: 44px; margin: 14px 0 18px; max-width: 700px; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero .hint { color: var(--muted); font-size: 13px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 40px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; }
.card .icon { color: var(--brand-2); }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { padding: 6px 0 6px 28px; position: relative; }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: bold; }
.list-x li::before { content: "✕"; color: var(--bad); }
.bandeau-info { background: #fdf8ea; border: 1px solid #c9b47a; border-radius: var(--radius); padding: 18px 22px; font-size: 14px; color: #5c4d1e; margin: 24px 0; }
.section { padding: 48px 0; }
.section h2 { font-size: 28px; margin-bottom: 8px; }
.section > .wrap > p, .section p.sub { color: var(--muted); margin-top: 0; }
.price-card { border: 2px solid var(--brand); position: relative; }
.price { font-size: 40px; font-weight: 800; color: var(--brand); }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 32px 28px; font-size: 13px; color: var(--muted); background: var(--card); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); margin-right: 16px; }
.disclaimer-footer { max-width: 900px; margin: 12px auto 0; font-size: 12px; }

/* ---------- Wizard diagnostic ---------- */
.diag-top { background: var(--card); border-bottom: 1px solid var(--line); padding: 14px 0; position: sticky; top: 61px; z-index: 9; }
.diag-top .wrap { display: flex; align-items: center; gap: 16px; }
.progress { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand-2); transition: width .3s; }
.step-label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.q-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; }
.q-card.filtre { border-left: 4px solid var(--brand-2); background: #f4faf7; }
.q-card.ee { border-left: 4px solid #7a5cc9; }
.q-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.q-id { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.q-title { font-weight: 600; margin: 4px 0; }
.q-text { font-size: 13px; color: var(--muted); margin: 6px 0; }
.q-text details summary { cursor: pointer; color: var(--brand-2); }
.answers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ans { border: 1.5px solid var(--line-strong); background: #fff; border-radius: 9px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.ans:hover { border-color: var(--brand-2); }
.ans.sel-oui { border-color: var(--ok); background: #e9f5ef; color: var(--ok); font-weight: 600; }
.ans.sel-partiellement { border-color: var(--warn); background: #fbf3df; color: var(--warn-ink); font-weight: 600; }
.ans.sel-non { border-color: var(--bad); background: #faeae4; color: var(--bad); font-weight: 600; }
.ans.sel-nsp, .ans.sel-na { border-color: var(--muted); background: #eef1f4; color: var(--muted); font-weight: 600; }
.q-comment { margin-top: 10px; }
.q-comment .cm-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.q-comment textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical; min-height: 46px; }
.obj-banner { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 20px; }
.obj-banner h2 { margin: 0 0 6px; font-size: 22px; }
.obj-banner .pourquoi { font-size: 13px; opacity: .85; margin-top: 8px; }
.obj-banner .pourquoi summary { cursor: pointer; font-weight: 600; }
.diag-nav { display: flex; justify-content: space-between; margin: 26px 0 60px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 640px; margin: 30px auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.field label .opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.field input, .field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 15px; }
.field input:focus, .field select:focus { outline: 2px solid var(--brand-2); outline-offset: -1px; border-color: var(--brand-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0; }
.check input { margin-top: 3px; }
.saved { font-size: 12px; color: var(--muted); }
.saved.ok { color: var(--ok); }

/* ---------- Résultat / paywall ---------- */
.score-hero { text-align: center; padding: 40px 0 10px; }
.big-score { font-size: 64px; font-weight: 800; color: var(--brand); line-height: 1; }
.pillar-bars { max-width: 560px; margin: 24px auto; text-align: left; }
.p-row { display: grid; grid-template-columns: 130px 1fr 50px; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.p-bar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.p-bar i { display: block; height: 100%; background: var(--brand-2); }
.p-bar i.low { background: var(--bad); } .p-bar i.mid { background: var(--warn); }
.obj-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.obj-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.paywall { border: 2px solid var(--brand); border-radius: var(--radius); background: var(--card); padding: 28px; max-width: 560px; margin: 30px auto; text-align: center; }
.locked { filter: blur(4px); pointer-events: none; user-select: none; }
.compteurs { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 16px 0; font-size: 14px; color: var(--muted); }
.compteurs b { color: var(--ink); }

/* ---------- Espace ---------- */
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.doc-row:last-child { border-bottom: 0; }
.decl-card { border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 14px; background: #fafbf7; }
.decl-card h4 { margin: 0 0 6px; font-size: 14px; }
.decl-card .check { margin: 10px 0; align-items: flex-start; }
.badge { display: inline-block; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.badge.ok { background: #e9f5ef; color: var(--ok); }
.badge.wait { background: #fbf3df; color: var(--warn-ink); }
.badge.off { background: #eef1f4; color: var(--muted); }
.diag-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px 22px; margin-bottom: 14px; }
.diag-item h3 { margin: 0 0 4px; font-size: 16px; }

/* ---------- Divers ---------- */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; opacity: 0; transition: .25s; z-index: 50; display: flex; gap: 8px; align-items: center; }
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
#toast.t-error { background: var(--bad); }
.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt { margin-top: 24px; } .mb { margin-bottom: 24px; }
.legal { max-width: 760px; margin: 30px auto; padding: 0 24px 60px; }
.legal h2 { margin-top: 32px; }
.legal p, .legal li { font-size: 15px; }

@media (max-width: 800px) {
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .site-nav a { display: none; }
  .diag-top { top: 59px; }
}
