/* Converge8 — site vitrine */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --cream: #f3ece0;
  --ink: #15120f;
  --ink-2: #4a443d;
  --muted: #7a7268;
  --line: #e6dfd3;
  --accent: #e4501f;
  --accent-ink: #b93a10;
  --accent-soft: #fde9e1;
  --dark: #15120f;
  --dark-2: #211c17;
  --on-dark: #f6f1e9;
  --on-dark-2: #b9b0a3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(21, 18, 15, .05), 0 12px 32px -12px rgba(21, 18, 15, .18);
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(228, 80, 31, .7); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }

/* Convergence diagram */
.cv-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-opacity: .25; }
.cv-flow { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 90; animation: flow 3.2s linear infinite; }
.cv-flow:nth-of-type(2) { animation-delay: -.8s; }
.cv-flow:nth-of-type(3) { animation-delay: -1.6s; }
.cv-flow:nth-of-type(4) { animation-delay: -2.4s; }
@keyframes flow { from { stroke-dashoffset: 96; } to { stroke-dashoffset: 0; } }
.cv-node { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.cv-label { font-family: var(--font-body); font-size: 15px; font-weight: 600; fill: var(--ink); }
.cv-sub { font-family: var(--font-body); font-size: 11.5px; fill: var(--muted); }
.cv-ring { fill: none; stroke: var(--accent); stroke-opacity: .35; transform-origin: 400px 210px; animation: pulse 3s ease-out infinite; }
.cv-ring:nth-of-type(2) { animation-delay: 1.5s; }
@keyframes pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* Facts strip */
.facts { padding: 24px 0 8px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 26px 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.fact span { font-size: .92rem; color: var(--muted); }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { font-size: 1.12rem; color: var(--ink-2); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .section-head p, .section-dark p { color: var(--on-dark-2); }
.section-dark .eyebrow { color: #ff8a5f; }
.section-dark .eyebrow::before { background: #ff8a5f; }
.section-cream { background: var(--cream); }

/* Tools */
.tools { padding: 40px 0; border-bottom: 1px solid var(--line); }
.tools-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; }
.tools-label { width: 100%; text-align: center; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.tool { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink-2); opacity: .8; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card { border-radius: var(--radius); padding: 34px; border: 1px solid var(--line); background: var(--surface); }
.compare-card.win { background: var(--dark); color: var(--on-dark); border-color: var(--dark); box-shadow: var(--shadow); position: relative; }
.compare-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.tag { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 5px 10px; border-radius: 999px; }
.compare dl { margin: 0; }
.compare dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); margin-top: 18px; }
.compare-card.win dt { color: var(--on-dark-2); }
.compare dd { margin: 4px 0 0; font-weight: 500; }
.compare-card.win dd { color: var(--on-dark); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 22px; }
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--ink-2); margin-bottom: 8px; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--accent); }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 600; text-decoration: none; color: var(--accent-ink); }
.card .more:hover { text-decoration: underline; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { padding: 0 24px 0 0; position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: 19px; right: 0; height: 1px; background: rgba(246, 241, 233, .18); }
.step:last-child::before { right: 50%; }
.step-num { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; margin-bottom: 22px; }
.step small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #ff8a5f; margin-bottom: 6px; }
.step h3 { font-size: 1.2rem; color: var(--on-dark); }
.step p { font-size: .95rem; margin: 0; }

/* Split / model */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.checklist strong { display: block; font-weight: 600; }
.checklist span { color: var(--ink-2); font-size: .96rem; }
.icp-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.icp-tags li { padding: 9px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: .92rem; font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 62ch; }

/* CTA */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 16em; margin-inline: auto; }
.cta-band p { max-width: 36em; margin: 0 auto 30px; font-size: 1.12rem; }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 24px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 16em; }
.page-hero .lead { max-width: 40em; }

/* Solution blocks */
.solution { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; padding: 64px 0; border-top: 1px solid var(--line); align-items: start; }
.solution:first-of-type { border-top: 0; }
.solution .num { font-family: var(--font-head); font-weight: 800; font-size: .9rem; letter-spacing: .1em; color: var(--accent-ink); margin-bottom: 12px; }
.solution h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.deliverable { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.deliverable h4 { font-size: 1.02rem; margin-bottom: 6px; }
.deliverable p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, var(--accent) 0%, #7a2410 100%); display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.portrait::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .22), transparent 55%); }
.portrait span { font-family: var(--font-head); font-weight: 800; font-size: 6rem; letter-spacing: -.04em; position: relative; z-index: 1; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { border-top: 2px solid var(--ink); padding-top: 18px; }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--ink-2); font-size: .96rem; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; padding-bottom: 96px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg); color: var(--ink); transition: border-color .15s, background .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .95rem; display: none; }
.form-status.ok { display: block; background: #e7f5ea; color: #1c5a2d; }
.form-status.err { display: block; background: #fde8e6; color: #8f2317; }
.form .fineprint { font-size: .82rem; color: var(--muted); margin-top: 14px; margin-bottom: 0; }
.aside-card { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 32px; }
.aside-card h3 { color: var(--on-dark); }
.aside-card ol { margin: 0 0 24px; padding-left: 20px; color: var(--on-dark-2); }
.aside-card li { margin-bottom: 10px; }
.aside-card a { color: #ff8a5f; font-weight: 600; }

/* Legal */
.legal { padding-bottom: 96px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }
.todo { background: #fff3c4; padding: 1px 6px; border-radius: 4px; font-weight: 600; color: #6b5200; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(246, 241, 233, .12); }
.site-footer .brand { color: var(--on-dark); margin-bottom: 14px; }
.site-footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: var(--on-dark-2); }
.site-footer a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: .88rem; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  section { padding: 72px 0; }
  .hero-grid, .split, .solution, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards, .values { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .step::before { display: none; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 320px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 0; }
  .nav-links li:last-child { border: 0; padding-top: 16px; }
  .nav-links .btn { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .deliverables, .field-row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .hero { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Encarts (page Solutions) */
.callout { margin-top: 16px; background: var(--cream); border-radius: 14px; padding: 22px 24px; }
.callout h4 { font-size: 1.02rem; margin-bottom: 10px; }
.callout p { margin: 0; font-size: .94rem; color: var(--ink-2); }
.callout ul, .callout ol { margin: 0 0 12px; padding: 0; list-style: none; }
.callout li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: .94rem; color: var(--ink-2); }
.callout ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--accent); }
.callout ul li b, .callout ol li b { color: var(--ink); font-weight: 600; }
.cadence li { padding-left: 0; display: flex; gap: 12px; }
.cadence li b { flex: none; min-width: 2.4em; color: var(--accent-ink); font-family: var(--font-head); }
.callout ol:last-child, .callout ul:last-child { margin-bottom: 0; }

/* Ligne "dernière mise à jour" (signal de fraîcheur, discret, intégrée au footer) */
.updated-line { display: block; margin-top: 4px; font-size: .8rem; color: var(--on-dark-2); opacity: .8; }
@media (min-width: 560px) { .updated-line { display: inline; margin: 0 0 0 10px; padding-left: 10px; border-left: 1px solid rgba(246, 241, 233, .2); } }
