/* Avis de Chantier : feuille de style commune aux pages de contenu
   (blog, guides, pages métier et commune, étude, outils). Voir DESIGN.md. */
:root {
  --ink: #15202B; --ink-2: #4A5561; --line: #D9DDD8; --paper: #F5F6F3; --white: #FFFFFF;
  --signal: #FFC52E; --signal-dark: #E8AE12; --good: #1E7A4C; --warn: #B7791F; --bad: #B23A26;
  --r-s: 6px; --r-m: 14px; --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--font); }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- en-tête ---------- */
.top { max-width: 1160px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 8px 22px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-variation-settings: "wdth" 72; font-size: 20px; margin-right: auto; }
.logo-m { width: 2.25em; height: 2.25em; flex: none; } .logo-t { display: flex; flex-direction: column; text-transform: uppercase; font-weight: 800; font-variation-settings: "wdth" 62; line-height: .84; } .logo-t1 { font-size: .62em; letter-spacing: .075em; } .logo-t2 { font-size: 1.2em; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 0 20px; font-size: 16px; }
.nav a { font-weight: 700; text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--signal); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--signal); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: var(--r-s); border: 0; cursor: pointer; text-align: center; line-height: 1.25; }
.btn:hover { background: var(--signal-dark); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--white); }
.top .btn { min-height: 44px; padding: 10px 16px; font-size: 16px; }
@media (max-width: 760px) {
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; border-top: 1px solid var(--line); margin: 0 -22px; padding: 0 22px; }
  .logo { font-size: 18px; }
}

/* ---------- contenu ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 16px 22px 72px; }
.wrap.wide { max-width: 1020px; }
.wrap.wide > p, .wrap.wide > ul, .wrap.wide > ol, .wrap.wide > h2, .wrap.wide > h3 { max-width: 716px; }
h1 { font-size: clamp(33px, 6vw, 54px); line-height: 1.03; font-weight: 800; font-variation-settings: "wdth" 70; margin: 10px 0 18px; letter-spacing: -.015em; }
h2 { font-size: clamp(25px, 3.6vw, 30px); line-height: 1.12; font-weight: 800; font-variation-settings: "wdth" 74; margin: 48px 0 12px; }
h3 { font-size: 20px; line-height: 1.25; margin: 28px 0 6px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.meta, .crumbs { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.crumbs { padding-top: 4px; }
.crumbs a { color: var(--ink-2); text-decoration-thickness: 1px; }
.meta { margin-top: 6px; }
li { margin-bottom: 8px; }
.box { background: var(--white); border-left: 6px solid var(--signal); padding: 18px 22px; border-radius: var(--r-s); margin: 22px 0; }
.box p { margin: 0 0 10px; } .box p:last-child { margin-bottom: 0; }
.box.no { border-left-color: var(--bad); }
.box.ok { border-left-color: var(--good); }
.note { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.src { font-size: 14.5px; color: var(--ink-2); }
blockquote { margin: 22px 0; padding: 4px 0 4px 20px; border-left: 6px solid var(--ink); font-weight: 600; }
.toc { background: var(--white); border-radius: var(--r-m); padding: 16px 22px; margin: 26px 0; font-size: 16.5px; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 22px; } .toc li { margin-bottom: 4px; }

/* appel à l'action de fin de page */
.cta { background: var(--ink); color: var(--white); border-radius: var(--r-m); padding: 28px; margin-top: 56px; }
.cta h2 { margin-top: 0; color: var(--white); }
.cta p { color: #C9D1D8; margin: 0 0 18px; }
.cta .row { display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; }
.cta .alt { color: var(--white); font-weight: 700; }
.cta :focus-visible { outline-color: var(--signal); }
.inline-cta { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-m); padding: 18px 20px; margin: 28px 0; display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.inline-cta p { margin: 0; font-weight: 700; flex: 1 1 260px; line-height: 1.35; }

/* chiffres clés */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 28px 0; padding: 0; list-style: none; }
.kpi { background: var(--white); border-radius: var(--r-m); padding: 20px; border-top: 6px solid var(--signal); margin: 0; }
.kpi b { display: block; font-size: 52px; line-height: 1; font-weight: 800; font-variation-settings: "wdth" 62; white-space: nowrap; }
.kpi span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.4; }

/* barres horizontales */
.bars { display: grid; gap: 10px; margin: 22px 0; }
.bar { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 62px; gap: 12px; align-items: center; font-size: 16px; line-height: 1.3; }
.bar .track { background: var(--line); border-radius: 3px; height: 22px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); min-width: 2px; }
.bar.hi i { background: var(--signal); box-shadow: inset 0 0 0 2px var(--ink); }
.bar b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
figure { margin: 26px 0; }
figcaption { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }

/* tableaux */
.tw { overflow-x: auto; margin: 22px 0; border: 2px solid var(--ink); border-radius: var(--r-m); background: var(--white); }
table.t { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.35; min-width: 560px; }
.t th, .t td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.t thead th { background: var(--paper); border-top: 0; font-size: 14.5px; vertical-align: bottom; }
.t .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tbody th { font-weight: 700; }
.t tr.sum td, .t tr.sum th { background: #FFF6DA; font-weight: 700; }

/* cartes de liens */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding: 0; list-style: none; margin: 26px 0; }
.card { position: relative; background: var(--white); border-radius: var(--r-m); padding: 22px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; margin: 0; }
.card:hover, .card:focus-within { border-color: var(--ink); }
.card h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-m); }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.card .k { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 16px 0; }
.chips li { margin: 0; }
.chips a { display: inline-block; background: var(--white); border: 2px solid var(--line); border-radius: 99px; padding: 6px 14px; text-decoration: none; font-weight: 600; font-size: 16px; }
.chips a:hover { border-color: var(--ink); }

/* questions fréquentes */
.faq h3 { border-top: 2px solid var(--ink); padding-top: 16px; margin-top: 20px; }
.faq p { color: var(--ink-2); margin: 6px 0 0; }

/* ---------- générateurs ---------- */
.gen { background: var(--white); border-radius: var(--r-m); border: 3px solid var(--ink); padding: 22px; display: grid; gap: 14px 16px; grid-template-columns: 1fr 1fr; margin: 24px 0; }
.gen .full { grid-column: 1 / -1; }
.gen label { font-weight: 700; font-size: 15px; display: block; line-height: 1.3; }
.gen label span { font-weight: 400; color: var(--ink-2); }
.gen input, .gen select, .gen textarea { display: block; width: 100%; font: inherit; font-size: 16px; padding: 11px; border: 2px solid var(--line); border-radius: var(--r-s); background: var(--white); color: var(--ink); margin-top: 5px; min-height: 48px; }
.gen input:focus, .gen select:focus, .gen textarea:focus { border-color: var(--ink); outline: none; }
.gen .check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.gen .check input { width: 22px; height: 22px; min-height: 0; margin: 0; flex: none; accent-color: var(--ink); }
@media (max-width: 640px) { .gen { grid-template-columns: 1fr; padding: 18px; } }
.out { background: var(--white); border-left: 6px solid var(--signal); border-radius: var(--r-s); padding: 16px 18px; margin: 14px 0; }
.out h3 { margin: 0 0 8px; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.out pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 0 0 12px; }
.copy { font: inherit; font-size: 14.5px; font-weight: 700; background: var(--ink); color: var(--white); border: 0; border-radius: var(--r-s); padding: 9px 14px; cursor: pointer; min-height: 44px; }
.copy.done { background: var(--good); }
.err { color: var(--bad); font-weight: 700; font-size: 15px; margin: 6px 0 0; }

/* affichette imprimable */
.poster { background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--r-m); padding: 34px 26px 22px; text-align: center; max-width: 520px; margin: 24px auto; }
.poster .p-k { display: inline-block; background: var(--signal); font-weight: 800; padding: 4px 14px; border-radius: 99px; font-size: 16px; }
.poster .p-t { font-size: 38px; line-height: 1.05; font-weight: 800; font-variation-settings: "wdth" 68; margin: 16px 0 8px; }
.poster .p-s { font-size: 18px; color: var(--ink-2); margin: 0 auto; max-width: 20em; line-height: 1.4; }
.poster .p-qr { width: 250px; height: 250px; margin: 22px auto 12px; display: grid; place-items: center; }
.poster .p-qr svg, .poster .p-qr img { width: 100%; height: 100%; display: block; }
.poster .p-stars { font-size: 30px; letter-spacing: 6px; color: #E8A317; line-height: 1; }
.poster .p-n { font-size: 24px; font-weight: 800; margin: 12px 0 0; font-variation-settings: "wdth" 76; }
.poster .p-f { font-size: 11.5px; color: var(--ink-2); margin: 22px 0 0; }
@media print {
  @page { size: A5 portrait; margin: 10mm; }
  body { background: #fff; }
  body > *:not(main), main > *:not(.print-zone), .print-zone > *:not(.poster) { display: none !important; }
  main.wrap { padding: 0; max-width: none; }
  .poster { border: 0; margin: 0 auto; max-width: none; padding: 6mm 0 0; }
  .poster .p-qr { width: 78mm; height: 78mm; }
}

/* ---------- pages de service : formulaire d'audit intégré, exemple de site dans un cadre de téléphone ---------- */
.f { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; background: var(--white); border: 3px solid var(--ink); border-radius: var(--r-m); padding: 20px; margin: 26px 0; scroll-margin-top: 16px; }
.f .full { grid-column: 1 / -1; }
.f label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.f input { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-s); }
.f input::placeholder { color: #6B7680; }
.f .btn { width: 100%; border: 0; cursor: pointer; font-size: 17px; }
.f .consent { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 0; }
@media (max-width: 620px) { .f { grid-template-columns: 1fr; padding: 16px; } }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px 36px; align-items: start; margin: 8px 0 12px; }
.duo > div > h2:first-child { margin-top: 12px; }
.tel { margin: 12px 0 0; text-align: center; }
.tel iframe { display: block; width: 100%; max-width: 320px; height: 560px; margin: 0 auto; border: 10px solid var(--ink); border-radius: 30px; background: var(--white); }
.tel figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ===== 27/11/2026 : même habillage que la page d'accueil (noir sur gris chaud, boutons noirs qui s'enfoncent,
   cartes à gros arrondis et ombre dure). Les règles ci-dessus restent ; celles-ci les ajustent. ===== */
:root { --ink: #0B0B0B; --ink-2: #3D3E3A; --line: #C8C9C1; --paper: #E9EAE4; --white: #F6F6F2; --r-m: 22px; }
.btn { background: var(--ink); color: var(--paper); border-radius: 12px; font-weight: 800; box-shadow: 4px 4px 0 var(--signal); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { background: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--signal); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--signal); }
.btn.ghost { background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn.ghost:hover { background: #fff; box-shadow: 6px 6px 0 var(--ink); }
.btn.ghost:active { box-shadow: 1px 1px 0 var(--ink); }
.cta .btn { background: var(--signal); color: var(--ink); box-shadow: 4px 4px 0 var(--paper); }
.cta .btn:hover { background: var(--signal); box-shadow: 6px 6px 0 var(--paper); }
.cta .btn:active { box-shadow: 1px 1px 0 var(--paper); }
.cta p { color: #C9CAC2; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--ink); }
.inline-cta, .gen { box-shadow: 6px 6px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transition: none; transform: none; } }

/* ---------- page apporteurs d'affaires : listes, cases à cocher, message à copier ---------- */
.f select, .f textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-s); }
.f textarea { min-height: 96px; resize: vertical; }
.f .case { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15.5px; line-height: 1.4; margin: 0; cursor: pointer; }
.f .case input { flex: none; width: 24px; height: 24px; min-height: 0; margin: 0; accent-color: var(--ink); }
.f fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: contents; }
.f legend { grid-column: 1 / -1; font-weight: 800; font-size: 18px; padding: 0; margin: 6px 0 -4px; }
.f .aide { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.gains { width: 100%; border-collapse: collapse; margin: 14px 0 6px; background: var(--white); border: 3px solid var(--ink); border-radius: var(--r-m); overflow: hidden; }
.gains th, .gains td { text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--line); vertical-align: top; }
.gains tr:last-child td { border-bottom: 0; }
.gains td:last-child { font-weight: 800; font-size: 20px; white-space: nowrap; }
.gains th { font-size: 14px; background: var(--signal); }
.a-copier { position: relative; background: var(--white); border: 2px dashed var(--ink); border-radius: var(--r-m); padding: 16px 16px 60px; margin: 14px 0; font-size: 16px; line-height: 1.5; }
.a-copier button { position: absolute; left: 16px; bottom: 14px; font: inherit; font-weight: 800; font-size: 15px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--signal); color: var(--ink); cursor: pointer; }
.inscription { margin: 8px 0 26px; }
.inscription summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
