/* Charte Pilot Group (ORCHESTRATION.md § 3 ter) : logiciel industriel sobre, précis, dense. La couleur signale un état. */
:root {
  --navy: #0f1b2d; --electric: #1f5fbf; --anthracite: #2b2f36;
  --bg: #ffffff; --bg-alt: #f5f6f8; --surface: #ffffff; --text: #2b2f36; --muted: #5d6573; --border: #d9dde4;
  --link: #1f5fbf; --app: var(--electric);
  --ok: #0e9f6e; --verifier: #c26a00; --bloquant: #c62828;
  --radius: 6px; --shadow: 0 1px 2px rgba(15, 27, 45, .06);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0d1520; --bg-alt: #111b29; --surface: #152132; --text: #e3e7ee; --muted: #9aa4b2; --border: #26354a; --link: #7fa6e6; --electric: #3d7ad6; --shadow: none; } }
:root[data-theme="dark"] { --bg: #0d1520; --bg-alt: #111b29; --surface: #152132; --text: #e3e7ee; --muted: #9aa4b2; --border: #26354a; --link: #7fa6e6; --electric: #3d7ad6; --shadow: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font); font-variant-numeric: tabular-nums; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 650; } h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 1.2em; } h2:first-child { margin-top: 0; } h3 { font-size: 1.12rem; } h4 { font-size: .95rem; margin-top: 1em; }
p { margin: 0 0 1em; } ul { padding-left: 1.2em; margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small, small { font-size: .875rem; } .big { font-size: 1.7rem; font-weight: 700; margin: 0; letter-spacing: -.02em; } .big small { font-weight: 400; color: var(--muted); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; }

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -.02em; } .brand:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; } .nav a:not(.btn) { color: var(--text); font-size: .95rem; } .nav a[aria-current] { color: var(--link); font-weight: 600; }
.menu-btn, .theme-btn { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 4px; padding: 6px 10px; font: inherit; cursor: pointer; } .menu-btn { display: none; margin-left: auto; }
@media (max-width: 900px) { .menu-btn { display: block; } .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 16px 20px; border-bottom: 1px solid var(--border); margin: 0; } .nav.open { display: flex; } }

.btn { display: inline-block; padding: 11px 18px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--electric); border-color: var(--electric); color: #fff; } .btn.ghost { background: transparent; } .btn.small { padding: 7px 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero { padding: 40px 0 28px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.hero-home { padding: 56px 0 44px; background: var(--navy); color: #e8edf5; border-bottom: 0; } .hero-home .lead, .hero-home .muted { color: #b7c2d3; } .hero-home .eyebrow { color: #8fb3ef; } .hero-home .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--electric); } .app-eyebrow { color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.section { padding: 40px 0; } .section.alt { background: var(--bg-alt); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 1em; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; color: var(--text); box-shadow: var(--shadow); }
a.card { transition: transform .15s, border-color .15s; } a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--app); }
.app-card, .reco { border-top: 3px solid var(--app); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--app); display: inline-block; }
.price { font-weight: 600; margin: 0; } .price small { font-weight: 400; color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 4px; border: 1px solid var(--border); color: var(--muted); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.badge-beta, .badge-sim { color: var(--verifier); border-color: var(--verifier); } .badge-sim { margin-left: auto; } .badge-disponible { color: var(--ok); border-color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { padding: 7px 14px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: .9rem; background: var(--surface); font-family: inherit; cursor: pointer; } .chip:hover { border-color: var(--electric); text-decoration: none; }
.checks { list-style: none; padding: 0; } .checks li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--border); } .checks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--app); border-bottom: 2px solid var(--app); transform: rotate(-45deg); }
.note { border-left: 3px solid var(--electric); background: var(--bg-alt); padding: 12px 16px; border-radius: 0 10px 10px 0; } .section.alt .note { background: var(--surface); }
mark { background: #fde68a; color: #1a1f29; padding: 0 4px; border-radius: 4px; }

.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; } .faq summary { font-weight: 600; cursor: pointer; } .faq p { margin: 10px 0 0; color: var(--muted); }
.table-wrap { overflow-x: auto; margin-bottom: 1em; } table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); } th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; } th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } td { font-variant-numeric: tabular-nums; }

.form, .calc { display: grid; gap: 14px; max-width: 640px; } .calc { max-width: none; align-content: start; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; } label.check { display: flex; gap: 10px; font-weight: 400; align-items: flex-start; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); width: 100%; } input[type="checkbox"], input[type="radio"] { width: auto; flex: none; margin-top: 5px; padding: 0; } td input { min-width: 90px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; } legend { font-weight: 600; padding: 0 6px; }
output { display: block; background: var(--bg-alt); border-radius: 4px; padding: 12px 14px; font-variant-numeric: tabular-nums; }
#resultat { margin-top: 32px; } .params { margin-top: 20px; } .kpis { margin-top: 24px; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 40px; background: var(--bg-alt); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; margin-bottom: 24px; } .cols h4 { margin-top: 0; } .cols a:not(.brand) { display: block; color: var(--muted); font-size: .9rem; padding: 3px 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Portail */
form.inline { display: inline; } .rowform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .rowform select { width: auto; } .rowform input { flex: 1; min-width: 160px; }
code { background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; word-break: break-all; font-size: .9rem; }
td form { margin: 4px 0; } td .check { display: inline-flex; margin-right: 12px; }
@media (max-width: 900px) { .nav.open-always { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; gap: 10px; margin-left: auto; } .nav.open-always .muted { display: none; } }

/* Vitrine v0.3 — accueil, catalogue, guide (charte § 3 ter) */
.btn-lg { padding: 12px 20px; font-size: .95rem; min-height: 44px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn.small { min-height: 34px; }
.btn:hover { transform: none; }
.badge-pilote { color: var(--electric); border-color: var(--electric); } .badge-developpement, .badge-non_audite { color: var(--muted); }
.hero-grille { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.fiche-etat { background: #13243b; border: 1px solid #2a3d58; border-radius: 6px; font-size: .86rem; }
.fiche-etat h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #8fb3ef; margin: 0; padding: 10px 14px; border-bottom: 1px solid #2a3d58; }
.fiche-etat table { background: none; border: 0; color: #e8edf5; } .fiche-etat td { border-color: #2a3d58; padding: 7px 14px; } .fiche-etat a { color: #e8edf5; }
.fiche-etat .badge { color: #b7c2d3; border-color: #4a5d78; } .fiche-etat .badge-pilote { color: #8fb3ef; border-color: #8fb3ef; }
.fiche-etat p { margin: 0; padding: 8px 14px; color: #8d9bb0; font-size: .76rem; }
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.etapes li { padding: 18px 20px; border-right: 1px solid var(--border); } .etapes li:last-child { border-right: 0; }
.etapes .num { display: block; font-size: .78rem; font-weight: 700; color: var(--electric); letter-spacing: .08em; margin-bottom: 6px; }
.catalogue { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.app-card { display: flex; flex-direction: column; gap: 4px; } .app-card h3 { font-size: 1.02rem; margin: 2px 0 6px; font-weight: 650; }
.app-card, .reco { border-top: 1px solid var(--border); }
.app-nom { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.dot { width: 8px; height: 8px; border-radius: 2px; }
.eyebrow-app { font-size: .74rem; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .06em; }
.gains { list-style: none; padding: 0; margin: 0 0 10px; font-size: .9rem; } .gains li { padding: 3px 0 3px 18px; position: relative; } .gains li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 8px; height: 1px; background: var(--muted); }
.card-lien { margin-top: auto; padding-top: 8px; color: var(--link); font-weight: 600; font-size: .9rem; }
a.card:hover { transform: none; border-color: var(--electric); }
.bandeau-guide { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px; border-radius: 6px; border: 1px solid var(--border); border-left: 3px solid var(--electric); background: var(--surface); }
.bandeau-guide h2 { margin-top: 0; font-size: 1.25rem; } .bandeau-guide p { color: var(--muted); max-width: 640px; margin-bottom: 0; }
.plan-mis { border-color: var(--electric); } .economie { color: var(--ok); font-weight: 600; margin: 4px 0 8px; }
.editions { list-style: none; padding: 0; margin: 6px 0 10px; } .editions li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.gains-grille { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; } .gain { display: flex; gap: 12px; align-items: flex-start; } .gain p { margin: 0; font-weight: 600; }
.coche { flex: none; width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center; border: 1px solid var(--electric); color: var(--electric); font-size: .8rem; font-weight: 700; }
.guide { max-width: 760px; } .guide-progression { font-weight: 600; color: var(--muted); margin: 0; font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; }
.guide fieldset { gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; } .guide legend { font-size: 1.1rem; font-weight: 650; padding: 0 0 10px; float: left; width: 100%; } .guide legend + * { clear: both; }
.choix-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
label.choix { border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; background: var(--surface); cursor: pointer; align-items: center; min-height: 44px; font-size: .92rem; }
label.choix:has(input:checked) { border-color: var(--electric); background: color-mix(in srgb, var(--electric) 7%, var(--surface)); }
.guide-nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.js-guide .etape[hidden], .js-guide [hidden] { display: none !important; }
.reco-pack { border-left: 3px solid var(--electric); }
@media (max-width: 900px) { .hero-grille { grid-template-columns: 1fr; gap: 28px; } .hero-home { padding: 36px 0 32px; } .etapes li { border-right: 0; border-bottom: 1px solid var(--border); } .etapes li:last-child { border-bottom: 0; } }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } .bandeau-guide { padding: 18px; } .wrap { padding: 0 16px; } }
.brand span { white-space: nowrap; } .nav.open-always a { min-height: 44px; display: inline-flex; align-items: center; }

/* Pages applications sur persona, tarifs, configurateur (v0.4) */
.persona h3 { margin-bottom: 2px; } .douleurs { list-style: none; padding: 0; margin: 10px 0 0; } .douleurs li { padding: 7px 0 7px 18px; border-top: 1px solid var(--border); position: relative; font-size: .92rem; } .douleurs li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 2px; background: var(--verifier); }
.sans-avec { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .sans-avec ol { padding-left: 1.3em; margin: 0; } .sans-avec li { padding: 5px 0; } .sans-avec .avec { border-left: 3px solid var(--electric); }
.benefice .num { font-size: .78rem; font-weight: 700; color: var(--electric); letter-spacing: .08em; margin: 0 0 4px; } .preuve { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 8px; margin: 8px 0 0; }
.demo { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 16px; }
.demo-titre { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; } .demo-titre .badge-sim { margin-left: 0; }
.demo-etapes { padding-left: 1.3em; margin: 12px 0 0; } .demo-etapes > li { padding: 8px 0; } .demo-etapes h3 { font-size: .98rem; margin: 0 0 6px; }
.demo-etapes ul { list-style: none; padding: 0; margin: 0; font-family: Consolas, "SFMono-Regular", monospace; font-size: .86rem; } .demo-etapes ul li { padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 4px; background: var(--bg-alt); }
.demo-active .demo-etapes { list-style: none; padding: 0; } .demo-active .demo-etapes > li[hidden] { display: none; }
.demo-nav { margin-top: 12px; } .demo-onglets { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--border); }
.demo-onglets button { font: inherit; font-size: .84rem; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 12px; min-height: 44px; white-space: nowrap; cursor: pointer; } .demo-onglets button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--electric); font-weight: 600; }
.demo-pas { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; } .btn:disabled { opacity: .45; cursor: default; }
.offre-fondatrice { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--border); border-left: 3px solid var(--ok); border-radius: 6px; background: var(--surface); } .offre-fondatrice h2 { font-size: 1.1rem; margin: 0 0 4px; } .offre-fondatrice p:last-child { margin: 0; } .offre-fondatrice .eyebrow { color: var(--ok); margin: 0; }
table.tarifs th, table.tarifs td { text-align: right; vertical-align: top; } table.tarifs th:first-child, table.tarifs tbody th { text-align: left; } table.tarifs small { color: var(--muted); font-weight: 400; }
.tarif-app { margin-bottom: 28px; } .tarif-app h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.politique .card h3 { margin-bottom: 4px; } .politique .card p { margin: 0; font-size: .92rem; }
.configurateur { display: grid; gap: 16px; max-width: 760px; } .ligne-config { display: grid; grid-template-columns: 1fr minmax(0, 220px); gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--border); } .ligne-config select { padding: 8px; }
#devis { font-variant-numeric: tabular-nums; } #devis .big { margin: 4px 0 8px; } .detail-devis { margin: 0; padding-left: 1.2em; font-size: .92rem; }
.composition { margin-top: 16px; border-left: 3px solid var(--electric); max-width: 560px; }
.checks-num { padding-left: 1.3em; } .checks-num li { padding: 6px 0; }
@media (max-width: 700px) { .sans-avec { grid-template-columns: 1fr; } .ligne-config { grid-template-columns: 1fr; } table.tarifs { font-size: .86rem; } table.tarifs th, table.tarifs td { padding: 8px 6px; } }
@media (max-width: 700px) {
  table.tarifs { border: 0; background: none; } table.tarifs thead { display: none; }
  table.tarifs tr { display: block; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); margin-bottom: 8px; padding: 4px 12px; }
  table.tarifs tbody th { display: block; padding: 8px 0 4px; border: 0; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text); }
  table.tarifs td { display: flex; justify-content: space-between; gap: 12px; text-align: right; padding: 7px 0; border: 0; border-top: 1px solid var(--border); }
  table.tarifs td::before { content: attr(data-label); text-align: left; color: var(--muted); font-size: .84rem; }
}
@media (max-width: 700px) { table.tarifs td { flex-wrap: wrap; } table.tarifs td small { display: block; width: 100%; text-align: right; } table.tarifs td br { display: none; } }

/* Écrans réels */
.captures { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.capture { margin: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); overflow: hidden; }
.capture img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.capture-mobile { max-width: 300px; justify-self: center; }
.capture figcaption { padding: 10px 12px; font-size: .86rem; color: var(--muted); } .capture figcaption .badge-sim { margin: 6px 0 0; display: inline-block; }
@media (min-width: 900px) { .captures { grid-template-columns: 2fr 2fr 1fr; } .captures:has(> :nth-child(2):last-child) { grid-template-columns: 3fr 1fr; } }
.btn-desactive { cursor: not-allowed; color: var(--muted); background: var(--bg-alt); border-style: dashed; flex-direction: column; line-height: 1.2; } .btn-desactive:hover { box-shadow: none; } .btn-desactive small { font-weight: 400; font-size: .74rem; }

/* Panier */
.panier { display: grid; gap: 18px; max-width: 760px; } .panier fieldset { gap: 6px; }
.ligne-panier { display: grid; grid-template-columns: 1fr minmax(0, 260px); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); } .ligne-panier.pris { opacity: .6; }
.recap h2 { font-size: 1.05rem; margin: 0 0 8px; } .recap-table { border: 0; background: none; } .recap-table td { padding: 6px 0; border-bottom: 1px solid var(--border); } .recap-table td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.recap-table tfoot td { font-size: .92rem; } .recap-table .total td { font-weight: 700; font-size: 1.05rem; border-bottom: 0; padding-top: 10px; }
@media (max-width: 700px) { .ligne-panier { grid-template-columns: 1fr; } }

/* Offres : cible et contenu (panier, fiches, tarifs) */
.choix-offre { display: grid; gap: 6px; } .offre-detail p { margin: 0; } ul.inclus { margin: 4px 0 0; padding-left: 18px; font-weight: 400; } ul.inclus li { margin: 2px 0; } table.tarifs th .pour { color: var(--muted); font-weight: 400; }

/* Couleurs des applications (générées depuis data/apps.mjs) */
.app-offrepilot { --app: #2563eb; }
.app-techpilot { --app: #ea580c; }
.app-achatpilot { --app: #0891b2; }
.app-margepilot { --app: #059669; }
.app-electropilot { --app: #ca8a04; }
.app-cablagepilot { --app: #2f6bff; }
.app-essaipilot { --app: #0d9488; }
.app-methodespilot { --app: #7c3aed; }
