/* monoperatingpartner.com — feuille de style commune */
:root {
  --ink: #13233a;
  --ink-2: #33445c;
  --muted: #5d6b7e;
  --paper: #fbfaf7;
  --paper-2: #f3f0e9;
  --line: #e2ddd2;
  --accent: #0b6b5d;
  --accent-2: #0e8a78;
  --accent-soft: #e3f1ee;
  --copper: #b4672a;
  --copper-soft: #f7ebdf;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 35, 58, .05), 0 8px 24px rgba(19, 35, 58, .06);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.alt { background: var(--paper-2); }
.dark { background: var(--ink); color: #e9eef5; }
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark a { color: #8fd9cb; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.dark .eyebrow { color: #8fd9cb; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46em; }
.dark .lead { color: #c9d4e2; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.section-head { max-width: none; margin-bottom: 44px; }
.section-head > p { max-width: 46em; }
h1, h2, h3, h4, p, li { text-wrap: pretty; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  flex-shrink: 0;
}
.brand-logo { width: 42px; height: 42px; flex-shrink: 0; }
.site-footer .brand-logo path { stroke: #4fb8a5; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -.01em; }
.brand-sub { margin-top: 3px; font-size: .72rem; font-weight: 600; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-size: .94rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.active { color: var(--accent); }
.nav a.btn { margin-left: 8px; }
.menu-toggle { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff !important; text-decoration: none;
  font-weight: 600; font-size: .98rem; padding: 13px 22px; border-radius: 10px;
  border: 1px solid var(--accent); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn.ghost:hover { background: var(--white); border-color: var(--ink-2); }
.dark .btn.ghost { color: #fff !important; border-color: rgba(255,255,255,.35); }
.dark .btn.ghost:hover { background: rgba(255,255,255,.08); }
.nav a.btn { padding: 9px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Héros ---------- */
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.portrait { position: relative; }
.portrait img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; box-shadow: var(--shadow); width: 100%; height: auto; }
.portrait figcaption {
  margin: -36px 20px 0; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .88rem; color: var(--ink-2);
  box-shadow: var(--shadow);
}
.portrait figcaption strong { display: block; color: var(--ink); font-size: .98rem; }

.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .wrap > div { padding: 26px 22px; border-left: 1px solid var(--line); }
.proof .wrap > div:first-child { border-left: 0; padding-left: 0; }
.proof strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-bottom: 2px; }
.proof span { font-size: .9rem; color: var(--muted); }

/* ---------- Héros des pages intérieures ---------- */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 8px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 36px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { padding: 20px 22px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts .k { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 6px; }
.facts .v { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.facts .s { font-size: .86rem; color: var(--muted); margin-top: 4px; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num {
  font-family: var(--serif); font-size: .95rem; font-weight: 700; color: var(--accent);
  display: inline-block; margin-bottom: 10px;
}
.card.flat { box-shadow: none; }
.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.dark .card p { color: #c9d4e2; }
.icon-dot { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.icon-dot svg { width: 22px; height: 22px; }

/* ---------- Escalier des offres ---------- */
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.stair {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px;
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.stair:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink); }
.stair .step { font-family: var(--serif); font-weight: 700; color: var(--accent); font-size: .95rem; }
.stair h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.stair p { font-size: .93rem; color: var(--ink-2); margin-bottom: 14px; }
.stair .meta { margin-top: auto; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.stair .meta b { color: var(--ink); font-weight: 600; }
.stair:nth-child(1) { min-height: 250px; }
.stair:nth-child(2) { min-height: 300px; }
.stair:nth-child(3) { min-height: 350px; background: var(--ink); color: #fff; border-color: var(--ink); }
.stair:nth-child(3) h3 { color: #fff; }
.stair:nth-child(3) p { color: #c9d4e2; }
.stair:nth-child(3) .step { color: #8fd9cb; }
.stair:nth-child(3) .meta { color: #aab7c8; border-color: rgba(255,255,255,.15); }
.stair:nth-child(3) .meta b { color: #fff; }
.stair:nth-child(4) { min-height: 400px; }
.stair-base { height: 6px; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); border-radius: 6px; margin-top: 16px; }
.stair-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; letter-spacing: .04em; }
.variants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.variant {
  display: flex; gap: 18px; align-items: flex-start; text-decoration: none; color: var(--ink);
  background: var(--copper-soft); border: 1px solid #ecd6c1; border-radius: var(--radius); padding: 22px 24px;
}
.variant:hover { border-color: var(--copper); color: var(--ink); }
.variant .tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); }
.variant h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.variant p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* ---------- Déroulé ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 36px; padding: 0 0 26px; position: relative; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 112px; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--accent);
}
.alt .timeline li::before { background: var(--paper-2); }
.timeline .when { font-size: .85rem; font-weight: 650; color: var(--accent); text-align: right; padding-top: 2px; }
.timeline .what h4 { margin: 0 0 4px; }
.timeline .what p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.timeline li.gate::before { background: var(--copper); border-color: var(--copper); border-radius: 3px; transform: rotate(45deg); }
.timeline li.gate .when { color: var(--copper); }

/* ---------- Livrables ---------- */
.deliv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.deliv > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; display: grid; grid-template-columns: 46px 1fr; gap: 6px 16px; }
.deliv .n { grid-row: span 3; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; padding-top: 2px; }
.deliv h4 { margin: 0; }
.deliv p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.deliv .fmt { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 650; background: var(--accent-soft); }
td a { font-weight: 600; }

/* ---------- Encadrés ---------- */
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 20px 24px; border-radius: 0 12px 12px 0; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.copper { border-color: var(--copper); background: var(--copper-soft); }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230b6b5d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.crosses { list-style: none; padding: 0; }
.crosses li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink-2); }
.crosses li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--copper-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23b4672a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.dark .checks li::before { background-color: rgba(143,217,203,.15); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split.wide-left { grid-template-columns: 1.3fr 1fr; }

/* ---------- Exemple chiffré ---------- */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.calc .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.calc .row span:first-child { flex: 1 1 11em; min-width: 0; }
.calc .row span:last-child { flex: 0 1 auto; margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.calc .row.hl { background: var(--accent); color: #fff; border-bottom: 0; font-size: 1.05rem; }
.calc .head { padding: 16px 22px; background: var(--paper-2); font-weight: 650; border-bottom: 1px solid var(--line); }
.calc .foot { padding: 12px 22px; font-size: .82rem; color: var(--muted); background: var(--paper-2); }

/* ---------- Arbre de décision ---------- */
.decision { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.decision > div { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: var(--white); }
.decision .lab { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.decision h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 8px; }
.decision p { font-size: .92rem; color: var(--ink-2); margin: 0 0 8px; }
.decision .then { font-size: .86rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; margin: 0; }
.decision .d-agent { border-top: 5px solid var(--accent); }
.decision .d-agent .lab { color: var(--accent); }
.decision .d-instr { border-top: 5px solid #3b6fb6; }
.decision .d-instr .lab { color: #3b6fb6; }
.decision .d-form { border-top: 5px solid var(--copper); }
.decision .d-form .lab { color: var(--copper); }
.decision .d-leave { border-top: 5px solid #8a94a3; }
.decision .d-leave .lab { color: #6b7686; }

/* ---------- Graphique (SVG) ---------- */
.figure { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 1.04rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 24px 20px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: 16px; }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-card:last-child { border-bottom: 0; }
.contact-card .icon-dot { margin: 0; flex-shrink: 0; }
.contact-card .k { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.contact-card .v { font-size: 1.08rem; font-weight: 600; }
.contact-card .v a { color: var(--ink); text-decoration: none; }
.contact-card .v a:hover { color: var(--accent); }
form.contact { display: grid; gap: 16px; }
form.contact label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
form.contact input, form.contact select, form.contact textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); width: 100%;
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact button { justify-self: start; cursor: pointer; font-family: inherit; }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #c9d4e2; margin: 0; }
.cta-band .btn-row { margin: 0; justify-content: flex-end; }
.cta-band .btn.ghost { color: #fff !important; border-color: rgba(255,255,255,.4); }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* ---------- Pied de page ---------- */
.site-footer { background: #0e1a2c; color: #aab7c8; padding: 64px 0 32px; font-size: .92rem; margin-top: 0; }
.site-footer a { color: #d5dee9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.site-footer .brand-mark { background: #fff; color: var(--ink); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-sub { color: #8fd9cb; }

/* ---------- Divers ---------- */
.pill { display: inline-block; font-size: .78rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pill.copper { background: var(--copper-soft); color: var(--copper); }
.kicker-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
.quote { font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; color: var(--ink); border-left: 4px solid var(--copper); padding-left: 24px; margin: 0; }
.dark .quote { color: #fff; }
.next-offer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.next-offer a { flex: 1 1 260px; text-decoration: none; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 18px 22px; color: var(--ink); }
.next-offer a:hover { border-color: var(--accent); }
.next-offer .dir { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.next-offer .t { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.next-offer a.right { text-align: right; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

.stat { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.stat.copper { color: var(--copper); }

.grid > *, .split > *, .hero-grid > *, .facts > *, .deliv > * { min-width: 0; }
.contact-card .v, .facts .v, .site-footer a { overflow-wrap: anywhere; }

/* ---------- Logigramme (modélisation a priori) ---------- */
.flow-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.flow-summary > div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; align-items: baseline; gap: 10px; }
.flow-summary strong { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); line-height: 1; }
.flow-summary span { font-size: .88rem; color: var(--muted); }
.flow-summary .ia { background: var(--accent-soft); border-color: #bfdcd5; }
.flow-summary .ia strong { color: var(--accent); }
.flow-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .85rem; color: var(--ink-2); margin-bottom: 26px; }
.flow-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lane { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.lane.adv { background: #0b6b5d; }
.lane.cpta { background: #3b6fb6; }
.lane.log { background: #b4672a; }
.lane.ext { background: #8a94a3; }
.lane.sup { background: #7b5ea7; }
.tag-ia, .tag-instr, .tag-rule, .tag-none { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag-ia { background: var(--accent); color: #fff; }
.tag-instr { background: #e3ecf8; color: #2f5a96; }
.tag-rule { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag-none { background: transparent; color: var(--muted); border: 1px dashed #c9c2b4; }
.flow { list-style: none; padding: 0; margin: 0; position: relative; }
.fstep { position: relative; display: grid; grid-template-columns: 56px 1fr 280px; gap: 0 20px; margin: 0 0 14px; align-items: stretch; }
.fstep:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 46px; bottom: -14px; width: 2px; background: #cfc8ba; }
.fnum { position: relative; z-index: 1; width: 44px; height: 44px; margin: 6px auto 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.fstep.fdecision .fnum { border-radius: 6px; transform: rotate(45deg); width: 38px; height: 38px; margin-top: 9px; background: var(--copper); }
.fstep.fdecision .fnum span { transform: rotate(-45deg); }
.fbody { background: var(--white); border: 1px solid var(--line); border-radius: 12px 0 0 12px; padding: 16px 20px; }
.fbody h4 { margin: 0 0 4px; }
.fbody p { margin: 0 0 10px; font-size: .94rem; color: var(--ink-2); }
.fmeta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); align-items: center; }
.fmeta .who { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink); }
.fmeta .tools::before { content: "Outils : "; color: var(--muted); }
.fmeta .tools { color: var(--ink-2); }
.fmeta .mode { padding: 1px 8px; border-radius: 6px; background: var(--paper-2); font-weight: 600; color: var(--ink-2); }
.fmeta .mode.warn { background: var(--copper-soft); color: var(--copper); }
.fia { background: var(--paper); border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; padding: 16px 18px; }
.fia p { margin: 8px 0 0; font-size: .88rem; color: var(--ink-2); }
.fstep:has(.tag-ia) .fia { background: var(--accent-soft); border-color: #bfdcd5; }
.fstep.fdecision .fbody { border-left: 4px solid var(--copper); }

/* ---------- Outils illustrés ---------- */
.tool { cursor: pointer; display: flex; flex-direction: column; }
.tool-visual { position: relative; display: block; width: 100%; padding: 0; margin: 0 0 20px; border: 0; border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.tool-visual svg { display: block; width: 100%; height: auto; }
.tool:hover .tool-visual, .tool-visual:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.tool-visual:focus-visible { outline: 3px solid #8fd9cb; outline-offset: 3px; }
.tool-zoom { position: absolute; right: 10px; top: 10px; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.tool:hover .tool-zoom, .tool-visual:focus-visible .tool-zoom { opacity: 1; }
.tools-note { margin: 18px 0 0; font-size: .85rem; color: #9fb0c5; }
svg text { font-family: var(--sans); }
svg .t-b { font-size: 12.5px; font-weight: 650;  }
svg .t-b:not([fill]) { fill: #13233a; }
svg .t-s { font-size: 11px;  }
svg .t-s:not([fill]) { fill: #5d6b7e; }
svg .t-r { font-size: 12.5px;  }
svg .t-r:not([fill]) { fill: #33445c; }
svg .t-v { font-size: 13px; font-weight: 700; fill: #0b6b5d; }
svg .t-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; }
svg .t-w { font-size: 15px; font-weight: 650;  }
svg .t-w:not([fill]) { fill: #fff; }
svg .t-k { font-family: var(--serif); font-size: 30px; font-weight: 600; fill: #13233a; }
svg .t-c { font-size: 11px; font-style: italic; fill: #b4672a; }
svg .t-ia { font-size: 10px; font-weight: 700; fill: #fff; }
svg .t-lane { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
dialog.tool-modal { width: min(1240px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
dialog.tool-modal::backdrop { background: rgba(8,16,30,.78); }
html:has(dialog[open]) { overflow: hidden; }
.tm-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; background: var(--white); border-bottom: 1px solid var(--line); }
.tm-head h3 { margin: 0; color: var(--ink) !important; }
.tm-close { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.tm-close:hover { background: var(--paper-2); }
.tm-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 22px; align-items: start; }
.tm-fig { min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tm-body svg { display: block; width: 100%; height: auto; max-height: calc(94vh - 120px); }
.tm-text p { color: var(--ink-2); }
.tm-text .checks li { color: var(--ink-2); }
@media (max-width: 900px) { .tm-body { grid-template-columns: 1fr; } .tm-body svg { max-height: none; } }
@media (max-width: 640px) { .tm-body { padding: 16px; } .tm-body svg { width: 680px; max-width: none; } .tm-fig::after { content: "Faites défiler l'illustration →"; display: block; position: sticky; left: 0; padding: 8px 12px; font-size: .8rem; color: var(--muted); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; }
  .nav a { padding: 12px; }
  .nav a.btn { margin: 8px 0 0; justify-content: center; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
  .menu-toggle svg { width: 22px; height: 22px; }
  .site-header.open .nav { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 420px; }
  .stairs { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
  .stair:nth-child(n) { min-height: 0; }
  .stair-base, .stair-legend { display: none; }
  .g4, .decision { grid-template-columns: repeat(2, 1fr); }
  .flow-summary { grid-template-columns: repeat(2, 1fr); }
  .fstep { grid-template-columns: 56px 1fr 220px; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px; }
  .cta-band .btn-row { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0; }
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  .proof .wrap > div { border-left: 0; padding: 18px 8px 18px 0; border-top: 1px solid var(--line); }
  .proof .wrap > div:nth-child(-n+2) { border-top: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .g2, .g3, .g4, .deliv, .split, .split.wide-left, .variants, .stairs, .decision, .kicker-list { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .fstep { grid-template-columns: 44px 1fr; gap: 0 12px; }
  .fstep:not(:last-child)::after { left: 21px; }
  .fnum { width: 36px; height: 36px; font-size: .85rem; }
  .fstep.fdecision .fnum { width: 30px; height: 30px; }
  .fbody { border-radius: 12px 12px 0 0; }
  .fia { grid-column: 2; border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: 12px 16px; }
  .flow-summary { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 32px; }
  .timeline li::before { left: 0; }
  .timeline .when { text-align: left; }
  .cta-band { padding: 32px 22px; border-radius: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  form.contact .two { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  th, td { padding: 12px 14px; }
  .next-offer a.right { text-align: left; }
}
@media print {
  .site-header, .site-footer, .cta-band, .btn-row { display: none; }
  section { padding: 24px 0; }
}
