/* ============================================================
   Sculpture Binaire — design system v2
   Clair & épuré · premium · accent bleu · motif binaire
   ============================================================ */

:root {
  --bg: #FBFBFC;
  --surface: #FFFFFF;
  --ink: #15171C;
  --ink-2: #4A5260;
  --ink-3: #656D7B;
  --line: #EAEBEE;
  --line-2: #DFE1E6;
  --accent: #2563EB;
  --accent-ink: #1D4ED8;
  --accent-soft: #EEF3FE;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --green-line: #bbf7d0;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 200;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.08s linear;
  will-change: transform;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.eyebrow .idx {
  color: var(--accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.4em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.textlink {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.textlink:hover { color: var(--accent); border-color: var(--accent); }
.textlink .arrow { transition: transform 0.25s var(--ease); }
.textlink:hover .arrow { transform: translateX(3px); }

/* ---------- Availability badge ---------- */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  padding: 4px 11px;
}
.avail-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(22,163,74,0); }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 252, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  width: 26px; height: 26px;
}
.brand-mark i { display: block; border-radius: 1.5px; background: var(--line-2); transition: background 0.4s var(--ease); }
.brand-mark i.on { background: var(--ink); }
.brand:hover .brand-mark i.on { background: var(--accent); }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.02em; line-height: 1; }
.brand-word .b { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 7px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(60px, 9vw, 120px);
}
.hero .display .accent { color: var(--accent); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2.2em; }
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 3em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}
.hero-meta div .n { font-family: var(--display); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.02em; }
.hero-meta div .l { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* Hero visual (image + matrix badge) */
.hero-visual { position: relative; }
.hero-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.matrix-badge {
  position: absolute;
  bottom: -14px;
  right: -14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  width: 82px;
  height: 82px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.matrix-badge .bit { border-radius: 1px; background: var(--line); transition: background 0.5s var(--ease); }
.matrix-badge .bit.on { background: var(--ink); }
.matrix-badge .bit.hot { background: var(--accent); }

/* binary matrix visual (hero) */
.matrix {
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: clamp(4px, 0.7vw, 8px);
  padding: clamp(14px, 2vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.matrix .bit { border-radius: 2px; background: var(--line); transition: background 0.55s var(--ease); will-change: background; }
.matrix .bit.on { background: var(--ink); }
.matrix .bit.hot { background: var(--accent); }

/* ---------- Generic grids ---------- */
.row { display: grid; gap: clamp(28px, 4vw, 56px); }
.row--split { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .h2 { margin-top: 0.5em; }

/* service list */
.svc-list { border-top: 1px solid var(--line); }
.svc-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
  cursor: pointer;
}
.svc-item:hover { background: var(--surface); margin-inline: -20px; padding-inline: 20px; }
.svc-num { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); padding-top: 6px; }
.svc-body h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 0.45em; }
.svc-body p { color: var(--ink-2); max-width: 56ch; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1em; }
.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.svc-aside { padding-top: 6px; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card {
  background: var(--surface);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s var(--ease);
}
.card:hover { background: var(--accent-soft); }
.card .k { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-2); font-size: 0.96rem; margin: 0; }
.card-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 6px; }

/* ---------- Approach section ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.approach-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  margin-top: 24px;
  aspect-ratio: 3/4;
}

/* stack chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.chip .dot { color: var(--accent); margin-right: 7px; }
.chip--primary { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* stat / process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { background: var(--bg); padding: clamp(24px, 3vw, 36px) 24px; }
.step-icon { display: block; width: 36px; height: 36px; margin-bottom: 16px; }
.step .n { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); }
.step h3 { font-size: 1.15rem; margin: 0.7em 0 0.4em; }
.step p { color: var(--ink-2); font-size: 0.92rem; margin: 0; }

/* ---------- Services hero illustration ---------- */
.svc-hero-illo { filter: drop-shadow(0 4px 24px rgba(0,0,0,0.07)); }

/* ---------- Counters section ---------- */
.counter-section { background: var(--ink); color: #fff; }
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.counter-item {
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px);
  background: var(--ink);
}
.counter-n {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1;
}
.counter-unit { color: var(--accent); }
.counter-l {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  display: block;
  margin-top: 10px;
}

/* ---------- Quote dark ---------- */
.quote-dark-section { background: var(--ink); }
.quote-dark-section blockquote {
  font-family: var(--display);
  font-weight: 500;
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.32;
  margin: 0;
  max-width: 28ch;
}
.quote-dark-section cite {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 1.6em;
}

/* placeholder image */
.ph {
  position: relative;
  background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 11px), var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ph span { background: var(--bg); padding: 5px 12px; border-radius: 5px; border: 1px solid var(--line-2); }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.cta-band .h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,0.66); max-width: 44ch; margin-top: 1em; }
.cta-band .btn--primary { background: var(--accent); }
.cta-band .btn--primary:hover { background: #fff; color: var(--ink); }
.cta-band .btn--ghost { border-color: rgba(255,255,255,0.25); color: #fff; }
.cta-band .btn--ghost:hover { border-color: #fff; }
.cta-band .matrix-bg {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-auto-rows: 1fr;
  gap: 6px; padding: 24px;
  opacity: 0.06;
  pointer-events: none;
}
.cta-band .matrix-bg i { background: #fff; border-radius: 2px; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.field.invalid input, .field.invalid textarea { border-color: #DC2626; }
.field .err { display: none; color: #DC2626; font-size: 0.8rem; font-family: var(--mono); }
.field.invalid .err { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.85rem; color: var(--ink-3); }
.form-success {
  display: none;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius);
  padding: 22px;
  font-family: var(--mono);
  font-size: 0.9rem;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 16px 22px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #dc2626;
  margin-top: 12px;
}
.form-error.show { display: block; }

.contact-info { display: grid; gap: 22px; }
.info-row { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.info-row .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.info-row .v { font-size: 1.05rem; }
.info-row .v a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; font-weight: 400; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-2); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* Social links */
.social-links { display: flex; gap: 8px; margin-top: 16px; }
.social-link {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s;
  z-index: 40;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--accent); }

/* ---------- Service detail page ---------- */
.svc-detail-hero { padding-block: clamp(60px, 9vw, 120px); }
.svc-detail-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
}
.svc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.svc-detail-content .section-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.feature-list { list-style: none; padding: 0; margin: 1.5em 0 0; display: grid; gap: 12px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--ink-2);
}
.feature-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.svc-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

/* ---------- Expertise / About ---------- */
.expertise-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  aspect-ratio: 3/4;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: 0.4; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  /* On garde le fondu de couleur de la matrice : c'est un changement de
     teinte sur place (aucun mouvement), sans risque vestibulaire. */
  .matrix .bit, .matrix-badge .bit { transition: background 0.6s var(--ease); }
  .avail-dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .row--split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .counters-grid { grid-template-columns: 1fr 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-img { aspect-ratio: 16/9; max-height: 340px; }
  .expertise-img { aspect-ratio: 16/9; max-height: 340px; }
  .svc-detail-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  /* Empêche le débordement horizontal du hover svc-item */
  .svc-item:hover { margin-inline: 0; padding-inline: 0; }
}

@media (max-width: 720px) {
  /* ---------- Nav ---------- */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px;
    z-index: 50;
  }
  .nav-links.open a { padding: 12px 8px; font-size: 1.05rem; }
  /* Ajouter le lien Contact dans le menu mobile ouvert */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
  }
  .nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  /* Masquer le CTA du header sur mobile — le menu hamburger suffit */
  .nav-right .btn { display: none; }
  .avail-badge { display: none; }

  /* ---------- Layout ---------- */
  .svc-item { grid-template-columns: 1fr; }
  .svc-aside { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }

  /* ---------- Hero ---------- */
  .hero-meta { gap: 20px; flex-wrap: wrap; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* ---------- CTA band ---------- */
  .cta-band { padding: clamp(32px, 8vw, 48px) clamp(20px, 5vw, 32px); }
  .cta-band .btn { width: 100%; justify-content: center; }
  .svc-nav { flex-direction: column; }
  .svc-nav .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  /* ---------- Typographie ---------- */
  body { font-size: 16px; }

  /* ---------- Nav ---------- */
  .nav { height: 64px; }
  .nav-links.open { top: 64px; }

  /* ---------- Grilles ---------- */
  .counters-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* ---------- Hero ---------- */
  .hero-meta { flex-direction: column; gap: 12px; }
  .hero-meta div { display: flex; align-items: center; gap: 10px; }
  .hero-meta div .l { margin-top: 0; }

  /* ---------- Sections ---------- */
  .section { padding-block: clamp(48px, 10vw, 72px); }
  .section-head { margin-bottom: clamp(24px, 5vw, 40px); }

  /* ---------- Form ---------- */
  .form-grid { grid-template-columns: 1fr; }

  /* ---------- Éléments divers ---------- */
  .matrix-badge { display: none; }
}

/* ---- AI chips ---- */
.chip--ai {
  background: linear-gradient(135deg, #EEF3FE 0%, #F5F0FF 100%);
  border-color: #C4B5FD;
  color: #5B21B6;
  font-weight: 500;
}
.chip--ai .dot { color: #7C3AED; }

/* ---- Lang toggle ---- */
.lang-toggle {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.72rem;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  overflow: hidden;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  padding: 6px 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button.active { background: var(--ink); color: #fff; }

/* ---- Language switching ---- */
.en { display: none; }
body.lang-en .fr { display: none; }
body.lang-en .en { display: inline; }
.fr-b { display: block; }
.en-b { display: none; }
body.lang-en .fr-b { display: none; }
body.lang-en .en-b { display: block; }

/* ============================================================
   v2.2 — modernisation accueil (08/06/2026)
   Surcouche : profondeur, cartes nettes, relief — sobre & pro
   ============================================================ */

/* Hero : profondeur (halo léger) sur un calque dédié, sans peindre le fond
   du contenu — le texte se compose ainsi sur le blanc de la page (contraste
   correct pour les navigateurs comme pour les outils d'audit). */
.hero { isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 48% at 80% 24%, rgba(37,99,235,0.07), transparent 70%),
    radial-gradient(46% 38% at 10% 6%, rgba(37,99,235,0.045), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.matrix {
  box-shadow: 0 26px 60px -30px rgba(21,23,28,0.30);
  background: linear-gradient(180deg, var(--surface), #FAFBFE);
}

/* Boutons : léger relief */
.btn--primary { box-shadow: 0 10px 24px -12px rgba(21,23,28,0.55); }

/* Cartes services : vraies cartes séparées, nettes */
.cards {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  gap: clamp(16px, 1.8vw, 22px);
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(21,23,28,0.04);
  padding: clamp(28px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  background: var(--surface);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(21,23,28,0.22);
  border-color: var(--line-2);
}
.card:hover::before { transform: scaleX(1); }
.card .k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

/* Process « L'approche » : cartes au lieu de la grille hairline */
.steps {
  background: transparent;
  border: 0;
  gap: clamp(14px, 1.6vw, 20px);
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(21,23,28,0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -20px rgba(21,23,28,0.20);
  border-color: var(--line-2);
}
.step-icon {
  width: 42px; height: 42px;
  padding: 9px;
  box-sizing: border-box;
  background: var(--accent-soft);
  border-radius: 11px;
}

/* Chips & compteurs : finitions */
.chip { box-shadow: 0 1px 2px rgba(21,23,28,0.03); }
.counter-n { letter-spacing: -0.04em; }


/* ---- i18n: language switch rendu en liens (langue serveur) ---- */
.lang-toggle a {
  display: inline-block;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  padding: 6px 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle a:hover { color: var(--ink); }
.lang-toggle a.active { background: var(--ink); color: #fff; }

/* i18n: numero de section sorti du flux texte (rendu CSS, non lu comme texte) */
.idx[data-idx]::before { content: attr(data-idx); }
