/* ==========================================================================
   Algobut — feuille de style principale
   ========================================================================== */

:root {
  --red: #ed3434;
  --red-dark: #c92424;
  --red-soft: #fdeaea;
  --ink: #141414;
  --ink-2: #2b2b29;
  --muted: #5f5f5a;
  --line: #e3e3dd;
  --line-strong: #d6d6d0;
  --bg: #f8f8f5;
  --surface: #ffffff;
  --dark: #111111;
  --dark-2: #1c1c1b;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 12px 32px -12px rgba(20, 20, 20, .12);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
p { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(237, 52, 52, .5);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(237, 52, 52, .45); }
  70% { box-shadow: 0 0 0 10px rgba(237, 52, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(237, 52, 52, 0); }
}

/* ---------- Boutons & liens ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  padding: 16px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.button span { transition: transform .25s var(--ease); }
.button:hover { background: var(--red); }
.button:hover span { transform: translate(2px, -2px); }
.button:active { transform: scale(.98); }
.button-small { padding: 12px 20px; font-size: 15px; }

.text-link {
  display: inline-flex; gap: 8px; font-weight: 700;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
  transition: color .2s;
}
.text-link:hover { color: var(--red); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 248, 245, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .3); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { width: 150px; height: auto; }

#navigation { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
#navigation a:not(.button) { position: relative; color: var(--ink-2); padding-block: 6px; }
#navigation a:not(.button)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
#navigation a:not(.button):hover::after,
#navigation a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 10px 16px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.menu-icon, .menu-icon::before { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .25s; }
.menu-icon::before { content: ""; position: absolute; top: 5px; }
.menu-icon { top: -2.5px; }
.menu-toggle[aria-expanded="true"] .menu-icon { transform: translateY(2.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(-5px) rotate(-90deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
}

.hero h1 { font-size: clamp(44px, 6.6vw, 86px); letter-spacing: -.045em; line-height: .98; }
.hero h1 span { color: var(--red); }
.hero-description { margin-top: 28px; max-width: 30em; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 36px; }

.hero-note {
  display: flex; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); max-width: 440px;
}
.hero-note strong { color: var(--ink); }
.note-symbol {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--red); font-size: 20px;
}

/* Schéma */
.hero-visual {
  position: relative; aspect-ratio: 600 / 540; width: 100%;
  background:
    radial-gradient(circle at 50% 48%, rgba(237, 52, 52, .07), transparent 45%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 30px 30px,
    var(--surface);
  background-blend-mode: normal;
  border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
  overflow: hidden; container-type: inline-size;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--surface) 88%);
  pointer-events: none;
}
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-accent { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }

.visual-topline, .visual-bottomline {
  position: absolute; left: 5%; right: 5%; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: clamp(9px, 1.9cqi, 11px); letter-spacing: .12em; color: var(--muted);
}
.visual-topline { top: 5%; }
.visual-topline span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.visual-topline i { width: 14px; height: 2px; background: var(--red); display: inline-block; }
.visual-bottomline { bottom: 5%; justify-content: flex-start; }
.visual-bottomline span[aria-hidden] { margin-left: auto; color: var(--red); font-size: 16px; }

.flow-input, .flow-output, .flow-core {
  position: absolute; z-index: 2; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .22);
}
.flow-input {
  left: 4%; top: 23.7%; transform: translateY(-50%); width: 38%;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  animation: float 6s ease-in-out infinite;
}
.flow-input small, .flow-output small, .flow-core small {
  display: block; font-family: var(--mono); font-size: clamp(8px, 1.6cqi, 10px); letter-spacing: .08em; color: var(--muted);
}
.flow-input strong { font-size: clamp(12px, 2.5cqi, 15px); line-height: 1.2; display: block; }
.mini-icon {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px;
  background: var(--red-soft); color: var(--red); font-weight: 800;
}
.input-check {
  margin-left: auto; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 11px;
}

.code-label {
  position: absolute; z-index: 2; right: 5%; top: 21%;
  font-family: var(--mono); font-size: clamp(9px, 2cqi, 12px); color: var(--muted);
  background: var(--bg); border: 1px dashed var(--line-strong); padding: 6px 10px; border-radius: 8px;
}

.flow-core {
  left: 50%; top: 48.5%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  background: var(--dark); color: #fff; border-color: var(--dark);
  box-shadow: 0 24px 50px -20px rgba(237, 52, 52, .55);
}
.flow-core strong { font-size: clamp(15px, 3.6cqi, 22px); letter-spacing: -.02em; }
.flow-core strong span { color: var(--red); font-size: .55em; vertical-align: super; }
.flow-core small { color: #a8a8a2; max-width: 80%; line-height: 1.35; }
.core-icon { font-family: var(--mono); font-size: clamp(16px, 4cqi, 24px); font-weight: 700; }
.core-icon i { color: var(--red); font-style: normal; }
.core-orbit {
  position: absolute; inset: -12px; border-radius: 50%;
  border: 1.5px dashed rgba(237, 52, 52, .45);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.flow-output {
  top: 64%; width: 36%; padding: 14px 16px;
  animation: float 7s ease-in-out infinite;
}
.output-one { left: 3%; }
.output-two { right: 3%; animation-delay: -3.5s; }
.flow-output strong { display: block; font-size: clamp(12px, 2.5cqi, 15px); margin-top: 6px; }
.output-icon {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--red);
}
.tiny-bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: 10px; }
.tiny-bars i { flex: 1; background: var(--line-strong); border-radius: 2px; }
.tiny-bars i:nth-child(1) { height: 30%; } .tiny-bars i:nth-child(2) { height: 55%; }
.tiny-bars i:nth-child(3) { height: 40%; } .tiny-bars i:nth-child(4) { height: 70%; }
.tiny-bars i:nth-child(5) { height: 50%; } .tiny-bars i:nth-child(6) { height: 85%; }
.tiny-bars i:nth-child(7) { height: 65%; } .tiny-bars i:nth-child(8) { height: 100%; background: var(--red); }
.tiny-code { display: grid; gap: 5px; margin-top: 12px; }
.tiny-code i { height: 5px; border-radius: 3px; background: var(--line-strong); }
.tiny-code i:nth-child(1) { width: 80%; }
.tiny-code i:nth-child(2) { width: 55%; margin-left: 12%; background: var(--red); opacity: .75; }
.tiny-code i:nth-child(3) { width: 68%; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- Bandeau ---------- */
.expertise-strip { background: var(--ink); color: #fff; overflow: hidden; }
.expertise-strip .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px; font-weight: 700; font-size: clamp(14px, 1.6vw, 18px); white-space: nowrap;
}
.expertise-strip i { color: var(--red); font-style: normal; }

/* ---------- Titres de section ---------- */
.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-heading h2, .about-copy h2, .faq-section h2, .contact-copy h2 { font-size: clamp(34px, 4.6vw, 58px); }
.section-heading > p { color: var(--muted); max-width: 26em; text-align: right; }

/* ---------- Expertises ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.service-card {
  display: flex; flex-direction: column; min-height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.service-card.featured { background: var(--dark); color: #fff; border-color: var(--dark); }
.service-card.featured p, .service-card.featured .detail-content { color: #b9b9b3; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.service-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--red-soft); color: var(--red); font-family: var(--mono); font-weight: 700; font-size: 18px;
}
.featured .service-icon { background: var(--red); color: #fff; }
.card-number { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.featured .card-number { color: #8a8a84; }
.service-card h3 { font-size: clamp(24px, 2.3vw, 30px); margin-bottom: 16px; }
.service-card > p { color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 24px; }
.tags span {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
}
.featured .tags span { background: transparent; border-color: #3a3a37; color: #e5e5e0; }

.service-card details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.featured details { border-top-color: #2e2e2c; }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700;
}
summary::-webkit-details-marker { display: none; }
summary > span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; font-weight: 500; transition: transform .3s var(--ease), background .2s, color .2s; }
details[open] > summary > span { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: #fff; }
.detail-content { padding-top: 14px; color: var(--muted); font-size: 15px; }
.detail-content a { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--red); }
.detail-content a:hover { text-decoration: underline; }

/* ---------- Approche ---------- */
.approach-section { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.steps article { position: relative; padding: 32px 28px 8px 0; border-top: 1px solid var(--line-strong); }
.steps article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.steps article::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--red);
  transition: width .6s var(--ease);
}
.steps article:hover::before, .steps article.is-visible::before { width: 56px; }
.steps article + article::before { left: 28px; }
.steps span { font-family: var(--mono); font-size: 13px; color: var(--red); font-weight: 600; }
.steps h3 { font-size: 24px; margin: 18px 0 12px; }
.steps p { color: var(--muted); font-size: 16px; }
.deliverable {
  display: inline-block; margin-top: 16px; padding: 6px 10px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.4; color: var(--ink-2);
}

/* ---------- Diagramme BPMN ---------- */
.bpmn { margin: 72px 0 0; padding: clamp(22px, 3vw, 36px); background: var(--bg); border: 1px solid var(--line); border-radius: 24px; }
.bpmn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; margin-bottom: 28px; }
.bpmn-head .eyebrow { margin-bottom: 14px; color: var(--red); }
.bpmn-head h3 { font-size: clamp(24px, 2.6vw, 34px); }
.bpmn-head > p { max-width: 30em; color: var(--muted); font-size: 15px; }
.bpmn-scroll {
  overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.bpmn-svg { width: 100%; min-width: 1080px; height: auto; font-family: var(--font); }
.bpmn-hint { display: none; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.b-phases rect { fill: var(--bg); stroke: var(--line); }
.b-phases rect:last-of-type { fill: var(--red-soft); stroke: transparent; }
.b-phases text { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; fill: var(--muted); text-anchor: middle; }
.b-pool { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.b-lane-client { fill: #fbfbf8; }
.b-lane-tech { fill: #fff8f8; }
.b-divider { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.b-pool-label, .b-lane-label { font-family: var(--mono); text-anchor: middle; letter-spacing: .12em; }
.b-pool-label { font-size: 12px; font-weight: 700; fill: var(--ink); }
.b-lane-label { font-size: 11.5px; font-weight: 600; fill: var(--muted); letter-spacing: .06em; }

.b-flow path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.b-flow-back path { stroke: var(--red); stroke-dasharray: 6 5; }
.b-arrowhead { fill: var(--ink); }
.b-arrowhead-red { fill: var(--red); }
.b-flow-label text { font-size: 13.5px; font-weight: 700; fill: var(--ink-2); }

.b-start { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.b-end { fill: var(--surface); stroke: var(--red); stroke-width: 4.5; }
.b-event-label { font-size: 13.5px; font-weight: 600; fill: var(--ink-2); text-anchor: middle; }

.b-gateway path:first-child { fill: #fff6d9; stroke: var(--ink); stroke-width: 1.6; }
.b-x { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }

.b-task rect { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; transition: fill .2s; }
.b-task-client rect { fill: #f3f3ee; }
.b-task-tech rect { stroke: var(--red); }
.b-task text { font-size: 14.5px; letter-spacing: -.01em; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.b-task:hover rect { fill: var(--red-soft); }
.b-loop { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }

.b-assoc { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 2 4; fill: none; }
.b-annot { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.b-annot-text { font-size: 13px; font-weight: 600; fill: var(--ink-2); }

.bpmn-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 22px 0 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bpmn-legend li { display: inline-flex; align-items: center; gap: 10px; }
.bpmn-legend i { display: inline-block; flex: none; }
.lg-start, .lg-end { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); }
.lg-end { border: 4px solid var(--red); }
.lg-task { width: 24px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ink); background: var(--surface); }
.lg-gateway { width: 13px; height: 13px; margin-inline: 2px; transform: rotate(45deg); border: 1.5px solid var(--ink); background: #fff6d9; }
.lg-flow, .lg-back { width: 26px; height: 0; border-top: 2px solid var(--ink); position: relative; }
.lg-back { border-top: 2px dashed var(--red); }
.lg-flow::after, .lg-back::after { content: ""; position: absolute; right: -2px; top: -6px; border: 5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }
.lg-back::after { border-left-color: var(--red); }
.lg-loop { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); border-top-color: transparent; }

.approach-foot {
  display: flex; align-items: center; gap: 20px; margin-top: 64px; padding: 22px 28px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.approach-foot > span { color: var(--red); font-size: 22px; }
.approach-foot p { flex: 1; color: var(--muted); }
.approach-foot strong { color: var(--ink); }
.approach-foot a { font-weight: 700; white-space: nowrap; border-bottom: 1.5px solid currentColor; }
.approach-foot a:hover { color: var(--red); }

/* ---------- Références ---------- */
.client-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.client-grid > div {
  flex: 0 1 calc((100% - 4 * 14px) / 5);
  display: grid; place-items: center; aspect-ratio: 5 / 4; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s;
}
.client-grid > div:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.client-grid img {
  width: auto; max-height: 86px; object-fit: contain;
  filter: grayscale(1); opacity: .72; mix-blend-mode: multiply;
  transition: filter .35s, opacity .35s, transform .35s var(--ease);
}
.client-grid > div:hover img { filter: none; opacity: 1; transform: scale(1.05); }

/* ---------- Le bureau ---------- */
.about-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center;
  padding-bottom: clamp(72px, 10vw, 128px);
}
.about-visual { position: relative; border-radius: 24px; overflow: hidden; }
.about-visual img { width: 100%; aspect-ratio: 639 / 520; object-fit: cover; }
.about-caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px;
  background: rgba(17, 17, 17, .88); color: #fff; padding: 20px 22px; border-radius: 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.about-caption span:first-child { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #a8a8a2; }
.about-caption strong { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.about-caption span:last-child { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); }
.about-copy h2 { margin-bottom: 28px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); margin-bottom: 18px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.about-values span {
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  font-weight: 700; font-size: 15px;
}
.about-values span::first-letter { color: var(--red); }

/* ---------- FAQ ---------- */
.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); padding-top: 0; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { padding-block: 24px; font-size: clamp(17px, 1.6vw, 20px); }
.faq-list summary:hover { color: var(--red); }
.faq-list details p { color: var(--muted); padding: 0 48px 26px 0; }
.faq-list details[open] p { animation: fade-down .35s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contact ---------- */
.contact-section { background: var(--dark); color: #fff; padding-block: clamp(72px, 10vw, 128px); position: relative; overflow: hidden; }
.contact-section::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 52, 52, .28), transparent 65%); pointer-events: none;
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-copy .eyebrow { color: #a8a8a2; }
.contact-copy h2 span { color: var(--red); }
.contact-copy > p:not(.eyebrow) { margin-top: 24px; color: #b9b9b3; font-size: 18px; }
.contact-email {
  display: inline-flex; gap: 10px; margin-top: 36px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800;
  border-bottom: 2px solid var(--red); padding-bottom: 4px; word-break: break-all; letter-spacing: -.02em;
}
.contact-email:hover { color: var(--red); }
.direct-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid #2e2e2c; }
.direct-contact small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #8a8a84; margin-bottom: 10px; }
.direct-contact a { display: block; font-weight: 600; padding-block: 3px; white-space: nowrap; }
.direct-contact a:hover { color: var(--red); }

.contact-form {
  background: var(--surface); color: var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 18px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.contact-form h3 { font-size: 26px; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-size: 14px; font-weight: 700; }
.contact-form label > span { color: var(--red); margin-left: 2px; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--bg);
  font-weight: 500; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form select {
  appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23141414' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9a9a94; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 4px rgba(237, 52, 52, .14);
}
.contact-form .is-invalid { border-color: var(--red); background: #fff7f7; }
.form-note { font-size: 13px; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form .button[disabled] { opacity: .6; cursor: progress; }
.contact-form .button { justify-self: start; }
#form-status { font-size: 14px; font-weight: 600; padding: 12px 14px; border-radius: 10px; background: #effaf2; color: #1d6b36; }
#form-status.is-error { background: #fff1f1; color: var(--red-dark); }
.copy-button {
  justify-self: start; background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s;
}
.copy-button:hover { border-color: var(--ink); color: var(--red); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--bg); padding-top: 72px; font-size: 15px; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1.5fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { width: 160px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); margin-bottom: 18px; }
.footer-brand > a:last-child { font-weight: 700; border-bottom: 1.5px solid currentColor; }
.footer-brand > a:last-child:hover { color: var(--red); }
.site-footer h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.site-footer address { color: var(--muted); line-height: 1.55; }
.site-footer address strong { display: block; color: var(--ink); margin-top: 14px; }
.site-footer address strong:first-child { margin-top: 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h3 { margin-bottom: 10px; }
.footer-links a { font-weight: 600; width: fit-content; }
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: 14px;
}
.footer-bottom a { font-weight: 700; color: var(--ink); }
.footer-bottom a:hover { color: var(--red); }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  #navigation { gap: 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  #navigation {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .site-header.is-open #navigation { opacity: 1; visibility: visible; transform: none; }
  #navigation a:not(.button) { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 17px; }
  #navigation a:not(.button)::after { display: none; }
  #navigation a.is-active { color: var(--red); }
  #navigation .button { margin-top: 18px; }

  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card.featured { grid-column: 1 / -1; }
  .client-grid > div { flex-basis: calc((100% - 2 * 14px) / 3); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .steps article:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps article:nth-child(3)::before { left: 0; }
  .about-section, .contact-grid, .faq-section { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .section-heading > p { text-align: left; }
  .desktop-only { display: none; }
  .bpmn-head { flex-direction: column; align-items: flex-start; }
  .expertise-strip .container { animation: marquee 22s linear infinite; justify-content: flex-start; width: max-content; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-35%); } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, 1200px); }
  .brand img { width: 128px; }
  .service-grid, .steps, .form-row, .about-values, .footer-main { grid-template-columns: 1fr; }
  .steps article, .steps article + article { padding-left: 0; border-left: 0; }
  .steps article + article::before { left: 0; }
  .approach-foot { flex-direction: column; align-items: flex-start; }
  .bpmn { margin-top: 48px; padding: 18px 0 0; background: none; border: 0; }
  .bpmn-head { flex-direction: column; align-items: flex-start; }
  .bpmn-scroll { padding: 12px; margin-inline: -16px; border-radius: 0; border-inline: 0; }
  .bpmn-hint { display: block; }
  .bpmn-legend { gap: 10px 18px; }
  .direct-contact { grid-template-columns: 1fr; }
  .client-grid { gap: 10px; }
  .client-grid > div { flex-basis: calc((100% - 10px) / 2); padding: 16px; }
  .contact-form .button { justify-self: stretch; }
  .faq-list details p { padding-right: 0; }
  .footer-bottom { flex-direction: column; }

  /* Schéma empilé sur petit écran */
  .hero-visual { aspect-ratio: auto; display: flex; flex-direction: column; gap: 14px; padding: 20px; }
  .flow-lines, .code-label { display: none; }
  .visual-topline, .visual-bottomline, .flow-input, .flow-core, .flow-output {
    position: relative; inset: auto; transform: none; width: auto;
  }
  .flow-input { animation: none; }
  .flow-core { width: 150px; margin: 16px auto; }
  .flow-output { animation: none; }
  .visual-topline, .visual-bottomline { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-visual, .expertise-strip, .contact-form, .menu-toggle { display: none; }
  body { background: #fff; }
  .contact-section { background: #fff; color: #000; }
}
