/*
Theme Name: Peakio V3 — Color-Block Editorial
Theme URI: https://peakio.fr
Author: Peakio (Kevin Aydin)
Author URI: https://peakio.fr
Description: Direction alternative pour Peakio. Color-block maximaliste, aplats cobalt, layout asymétrique, mix Inter bold + Fraunces italique.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: peakio-v3
*/

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  --brand-900: #131e6b;
  --brand-700: #1d34a0;
  --brand-600: #2541b2;
  --brand-500: #3854c7;
  --brand-300: #8b9de8;
  --brand-200: #b1bdef;
  --brand-100: #dde3f7;
  --brand-50:  #eef1fb;

  --accent-500: #f5d76e;
  --accent-400: #ffe26b;
  --accent-300: #fff3b0;
  --accent-100: #fffae0;

  --green-500: #10b981;
  --green-300: #6ee7b7;

  --ink-1000: #050818;
  --ink-950: #0a0f24;
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #ebf0f6;
  --ink-50:  #f1f5f9;
  --ink-25:  #f8fafc;
  --paper:   #fafaf7; /* warm off-white for editorial feel */
  --paper-deep: #f4f3ee;

  --bg: var(--paper);
  --surface: var(--ink-0, #ffffff);
  --text: #0a0f24;
  --text-muted: #475569;
  --border: var(--ink-100);
  --border-strong: var(--ink-200);

  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 28px -10px rgba(37, 65, 178, 0.16), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 28px 56px -16px rgba(37, 65, 178, 0.22), 0 10px 20px -8px rgba(15, 23, 42, 0.08);
  --shadow-cta: 0 14px 28px -8px rgba(37, 65, 178, 0.5), 0 4px 8px -2px rgba(37, 65, 178, 0.32);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter", "Inter Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;
  --duration-fast: 0.18s;

  --container: 1240px;
  --container-narrow: 760px;
  --header-height: 100px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-600); text-decoration: none; transition: color var(--duration-fast) var(--ease); }
a:hover { color: var(--brand-700); }

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0; color: var(--text-muted); }

::selection { background: var(--brand-600); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -40px; left: 8px;
  padding: 8px 16px;
  background: var(--brand-600);
  color: #fff;
  border-radius: var(--r-sm);
  z-index: 200;
  transition: top var(--duration-fast) var(--ease);
}
.skip-link:focus { top: 8px; color: #fff; }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 7.5vw, 6rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); letter-spacing: -0.05em; line-height: 1.04; }
h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.025em;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
  max-width: 60ch;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding: clamp(80px, 11vw, 144px) 0; position: relative; }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }

/* Theme inverse (cobalt block) */
.section-cobalt {
  background: var(--brand-600);
  color: #fff;
}
.section-cobalt h1, .section-cobalt h2, .section-cobalt h3, .section-cobalt h4 { color: #fff; }
.section-cobalt p { color: rgba(255, 255, 255, 0.78); }
.section-cobalt a { color: var(--accent-300); }
.section-cobalt a:hover { color: #fff; }

.section-paper-deep { background: var(--paper-deep); }

.section-dark { background: var(--ink-1000); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   5. EYEBROW
   ========================================================================== */

.eyebrow-mono {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow-mono::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brand-600);
}
.section-cobalt .eyebrow-mono { color: var(--accent-300); }
.section-cobalt .eyebrow-mono::before { background: var(--accent-300); }

.eyebrow-roman {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brand-600);
  letter-spacing: 0.02em;
}
.section-cobalt .eyebrow-roman { color: var(--accent-300); }

.section-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(48px, 7vw, 80px);
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration) var(--ease), background-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease); }
.btn-large { padding: 18px 32px; font-size: 1rem; }

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--brand-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(37, 65, 178, 0.6), 0 6px 12px -2px rgba(37, 65, 178, 0.4);
}
.btn-primary:hover svg { transform: translateX(2px); }

.btn-accent {
  background: var(--accent-400);
  color: var(--ink-900);
  box-shadow: 0 12px 28px -8px rgba(245, 215, 110, 0.6), 0 4px 8px rgba(15, 23, 42, 0.08);
}
.btn-accent:hover {
  background: var(--accent-500);
  color: var(--ink-900);
  transform: translateY(-2px);
}
.btn-accent:hover svg { transform: translateX(2px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--ink-300);
}
.btn-outline:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
  transform: translateY(-1px);
}

.section-cobalt .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.section-cobalt .btn-outline:hover { background: #fff; color: var(--brand-700); border-color: #fff; }

.btn-ink {
  background: var(--ink-900);
  color: #fff;
}
.btn-ink:hover { background: #000; color: #fff; transform: translateY(-1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ==========================================================================
   7. HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 76px; width: auto; }
@media (max-width: 768px) {
  .brand img { height: 56px; }
}

.site-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-800);
  transition: background-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.site-nav a:hover { background: var(--brand-50); color: var(--brand-700); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 11px 20px; font-size: 0.875rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  color: var(--ink-800);
  transition: background-color var(--duration-fast) var(--ease);
}
.nav-toggle:hover { background: var(--brand-50); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed; inset: var(--header-height) 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: 24px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-800);
  border: 1px solid transparent;
  transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}
.mobile-nav a:hover { background: var(--brand-50); border-color: var(--brand-100); }
.mobile-nav .btn-primary { margin-top: 16px; width: 100%; padding: 15px 20px; }

/* ==========================================================================
   8. HERO — SPLIT ASYMETRIQUE
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(20px, 2.5vw, 36px) 0 0;
  overflow: hidden;
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (min-width: 960px) {
  .hero__split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; }
}

.hero__primary {
  position: relative;
  padding: clamp(16px, 2vw, 32px) 0 clamp(64px, 10vw, 120px);
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.hero__primary .eyebrow-roman {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.hero__primary .eyebrow-roman::before {
  content: "I";
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--brand-600);
  padding-right: 14px;
  border-right: 1px solid var(--ink-200);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  margin: 0 0 18px;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink-800);
  margin: 0 0 28px;
  text-wrap: balance;
}

.hero__tagline .underline {
  position: relative;
  display: inline-block;
}
.hero__tagline .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 0.18em;
  background: var(--accent-400);
  z-index: -1;
}
.hero h1 .serif {
  color: var(--brand-600);
  font-weight: 500;
  letter-spacing: -0.045em;
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 0.18em;
  background: var(--accent-400);
  z-index: -1;
}

.hero .lede { margin-bottom: 36px; max-width: 540px; }

.hero__signals {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink-900);
  padding-top: 32px;
}
.hero__signals .signal { padding-right: 16px; }
.hero__signals .signal + .signal { padding-left: 24px; border-left: 1px solid var(--ink-200); }
.hero__signals .signal-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink-900);
  margin-bottom: 6px;
}
.hero__signals .signal-num span { color: var(--brand-600); }
.hero__signals .signal-label {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}
@media (max-width: 540px) {
  .hero__signals { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .hero__signals .signal + .signal { padding-left: 0; padding-top: 16px; border-left: 0; border-top: 1px solid var(--ink-200); }
}

/* Right side — cobalt block with stats card */
.hero__secondary {
  position: relative;
  background: var(--brand-600);
  color: #fff;
  padding: 56px clamp(24px, 4vw, 48px);
  display: flex;
  align-items: center;
  animation: fadeInUp 0.7s 0.1s var(--ease-out) both;
  isolation: isolate;
}
@media (min-width: 960px) {
  .hero__secondary {
    margin-right: calc(50% - 50vw); /* extends to viewport edge */
    padding-right: max(48px, calc(50vw - 50%));
  }
}
.hero__secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 50%, #000 30%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}
.hero__secondary::after {
  content: "II";
  position: absolute;
  top: 32px; right: 32px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.hero__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 22px;
  background: #fff;
  color: var(--text);
  border-radius: var(--r-xl);
  box-shadow: 0 32px 80px -20px rgba(5, 8, 24, 0.4), 0 12px 24px -8px rgba(5, 8, 24, 0.18);
}

.hero__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.hero__card-head .pulse {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-500);
  font-weight: 500;
}
.hero__card-head .pulse::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: pulseDot 1.8s var(--ease) infinite;
}

.serp-list { display: flex; flex-direction: column; gap: 10px; }
.serp-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--ink-25);
  border: 1px solid var(--border);
}
.serp-row.is-target {
  background: linear-gradient(135deg, var(--brand-50), #fff);
  border-color: var(--brand-200);
  box-shadow: 0 6px 18px -8px rgba(37, 65, 178, 0.22);
}
.serp-row .pos {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-400);
  text-align: center;
}
.serp-row.is-target .pos { color: var(--brand-600); }
.serp-row .label {
  font-size: 0.875rem;
  color: var(--ink-800);
  font-weight: 500;
}
.serp-row .label small {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-500);
  font-weight: 400;
  margin-top: 2px;
  font-family: var(--font-mono);
}
.serp-row .delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
.serp-row .delta.muted {
  background: var(--ink-100);
  color: var(--ink-500);
}

.hero__card-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--ink-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero__card-foot em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--brand-600);
  font-weight: 500;
}

/* ==========================================================================
   9. PROOF
   ========================================================================== */

.proof {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.proof__lead {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  text-align: center;
  margin-bottom: 32px;
}
.proof__logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 32px 28px;
}
@media (min-width: 640px) { .proof__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .proof__logos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 32px; } }
.proof__logos figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  margin: 0;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.proof__logos figure:hover {
  transform: translateY(-2px);
}
.proof__logos img {
  max-height: 100%;
  max-width: min(140px, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   9bis. LOCAL ALSACE
   ========================================================================== */

.local { padding: clamp(64px, 8vw, 96px) 0 clamp(24px, 3vw, 40px); background: var(--paper); border-top: 1px solid var(--border); }
.local .section-header { margin-bottom: clamp(40px, 5vw, 64px); }
.local__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 720px) { .local__grid { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.local__col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--ink-900);
  position: relative;
  padding-left: 18px;
}
.local__col-title::before {
  content: "";
  position: absolute;
  left: 0; top: 0.4em;
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--brand-600);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.local__col p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   10. SERVICES — Color-block alternating
   ========================================================================== */

.services { padding: clamp(40px, 5vw, 64px) 0 clamp(96px, 13vw, 160px); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 2px solid var(--ink-900);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (min-width: 900px) { .services__grid { grid-template-columns: 1fr 1fr; } }

.service-card {
  position: relative;
  padding: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}
@media (min-width: 900px) {
  .service-card:first-child { border-right: 2px solid var(--ink-900); }
}
@media (max-width: 899px) {
  .service-card:first-child { border-bottom: 2px solid var(--ink-900); }
}

.service-card.is-light { background: #fff; color: var(--text); }
.service-card.is-cobalt { background: var(--brand-600); color: #fff; }
.service-card.is-cobalt h3 { color: #fff; }
.service-card.is-cobalt p { color: rgba(255, 255, 255, 0.85); }
.service-card.is-cobalt .service-card__list li { color: #fff; }
.service-card.is-cobalt .service-card__list li svg { color: var(--accent-400); }

.service-card__bignum {
  position: absolute;
  top: -10px;
  right: -8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(8rem, 18vw, 16rem);
  line-height: 0.85;
  color: var(--ink-100);
  z-index: -1;
  pointer-events: none;
  letter-spacing: -0.05em;
}
.service-card.is-cobalt .service-card__bignum { color: rgba(255, 255, 255, 0.10); }

.service-card__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.service-card__index::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}
.service-card.is-cobalt .service-card__index { color: var(--accent-300); }

.service-card h3 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.service-card__pitch {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 44ch;
}

.service-card__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 16px;
  margin-bottom: 32px;
}
@media (min-width: 540px) { .service-card__list { grid-template-columns: 1fr 1fr; } }
.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.125rem;
  line-height: 1.45;
  padding: 6px 0;
}
.service-card__list li svg {
  width: 16px; height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  color: var(--green-500);
}

.service-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  align-self: flex-start;
  transition: transform var(--duration-fast) var(--ease), background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.service-card.is-light .service-card__cta {
  background: var(--ink-900);
  color: #fff;
}
.service-card.is-light .service-card__cta:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.service-card.is-cobalt .service-card__cta {
  background: var(--accent-400);
  color: var(--ink-900);
}
.service-card.is-cobalt .service-card__cta:hover { background: #fff; color: var(--brand-700); transform: translateY(-1px); }
.service-card__cta svg { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease); }
.service-card__cta:hover svg { transform: translateX(2px); }

/* ==========================================================================
   11. WHY
   ========================================================================== */

.why { padding: clamp(96px, 13vw, 160px) 0; background: var(--paper-deep); }

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 2px solid var(--ink-900);
  border-left: 2px solid var(--ink-900);
  background: #fff;
}
@media (min-width: 720px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  position: relative;
  padding: 36px 28px 32px;
  border-right: 2px solid var(--ink-900);
  border-bottom: 2px solid var(--ink-900);
  transition: background-color var(--duration) var(--ease);
}
.why-card:hover { background: var(--brand-50); }
.why-card:hover .why-card__icon { background: var(--brand-600); color: #fff; }

.why-card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-400);
  letter-spacing: 0.02em;
}

.why-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 22px;
  border: 1.5px solid var(--brand-100);
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.why-card__icon svg { width: 22px; height: 22px; }

.why-card h4 {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.why-card p { font-size: 1.125rem; line-height: 1.6; }

/* ==========================================================================
   11bis. KEVIN — Qui je suis (split photo + texte)
   ========================================================================== */

.kevin {
  padding: clamp(96px, 13vw, 160px) 0;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.kevin__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .kevin__split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 80px; }
}

.kevin__photo-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  isolation: isolate;
}
.kevin__photo-bg {
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--brand-600);
  border-radius: var(--r-md);
  z-index: -1;
}
@media (min-width: 900px) {
  .kevin__photo-bg { inset: 24px -24px -24px 24px; }
}

.kevin__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 2px solid var(--ink-900);
  background: var(--ink-100);
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.18);
}

.kevin__badge {
  position: absolute;
  bottom: -14px;
  right: -10px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: var(--accent-400);
  border: 2px solid var(--ink-900);
  border-radius: var(--r-sm);
  box-shadow: 4px 4px 0 var(--ink-900);
  z-index: 2;
}
@media (min-width: 900px) {
  .kevin__badge { right: -34px; }
}

.kevin__content { max-width: 580px; }

.kevin__content h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin: 16px 0 24px;
}

.kevin__content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: 18px;
}
.kevin__content p:last-of-type { margin-bottom: 0; }

.kevin__signature {
  margin-top: 32px !important;
  padding-top: 24px;
  border-top: 1px solid var(--border-strong);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem !important;
  line-height: 1.2 !important;
  color: var(--brand-600) !important;
  letter-spacing: -0.02em;
}
.kevin__signature span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--ink-500);
}

/* ==========================================================================
   12. METHOD — on cobalt block
   ========================================================================== */

.method {
  padding: clamp(96px, 13vw, 160px) 0;
  background: var(--brand-600);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.method::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

.method .section-header { color: #fff; }
.method h2 { color: #fff; max-width: 18ch; }
.method h2 .serif { color: var(--accent-400); font-weight: 400; }
.method .lede { color: rgba(255, 255, 255, 0.78); }
.method .eyebrow-mono { color: var(--accent-300); }
.method .eyebrow-mono::before { background: var(--accent-300); }

.method__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
@media (min-width: 768px) { .method__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .method__steps { grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.18); } }

.step {
  position: relative;
  padding: 36px 28px 32px;
  counter-increment: step;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color var(--duration) var(--ease);
}
.step:hover { background: rgba(255, 255, 255, 0.04); }
@media (min-width: 1100px) {
  .step:last-child { border-right: 0; }
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3.6rem;
  font-weight: 400;
  color: var(--accent-400);
  line-height: 0.9;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.step h4 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.02em;
}
.step p { font-size: 1.125rem; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }

/* ==========================================================================
   12bis. N8N — Automation IA encart
   ========================================================================== */

.n8n {
  padding: clamp(96px, 13vw, 160px) 0;
  background: var(--paper-deep);
  position: relative;
}

.n8n__inner {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink-900);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 12px 12px 0 var(--brand-600);
}
@media (min-width: 768px) {
  .n8n__inner { box-shadow: 16px 16px 0 var(--brand-600); }
}

.n8n__inner::before {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 320px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, var(--accent-300) 0%, transparent 70%);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.n8n__content { max-width: 880px; }

.n8n__content h2 {
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  margin: 14px 0 20px;
}

.n8n__content > .lede { margin-bottom: 36px; }

.n8n__usecase {
  position: relative;
  padding: 28px 28px 24px;
  margin: 32px 0;
  background: var(--paper);
  border-left: 4px solid var(--brand-600);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.n8n__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: var(--r-sm);
}

.n8n__usecase h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink-900);
  margin-bottom: 16px;
}

.n8n__usecase p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-700);
  margin-bottom: 16px;
}
.n8n__usecase p:last-of-type { margin-bottom: 0; }

.n8n__more {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
  font-size: 1.125rem !important;
  color: var(--ink-500) !important;
  font-style: italic;
}

/* ==========================================================================
   12ter. FAQ
   ========================================================================== */

.faq {
  padding: clamp(96px, 13vw, 160px) 0;
  background: var(--paper);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--ink-900);
  border-bottom: 2px solid var(--ink-900);
}

.faq__item {
  border-bottom: 1px solid var(--border-strong);
  background: transparent;
  transition: background-color var(--duration) var(--ease);
}
.faq__item:last-child { border-bottom: 0; }
.faq__item[open] {
  background: #fff;
}

summary { display: block; cursor: pointer; }
summary::-webkit-details-marker { display: none !important; }
summary::marker { content: ""; display: none; }

.faq__question {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: -0.025em;
  color: var(--ink-900);
  line-height: 1.3;
  transition: color var(--duration-fast) var(--ease);
}
.faq__question::-webkit-details-marker { display: none !important; }
.faq__question::marker { display: none; content: ""; }
.faq__question:hover { color: var(--brand-600); }

.faq__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--brand-600);
  min-width: 32px;
}

.faq__qtext {
  text-wrap: balance;
}

.faq__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-600);
  transition: transform var(--duration) var(--ease), background-color var(--duration) var(--ease);
}
.faq__chevron svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
}
.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
  background: var(--brand-600);
  color: #fff;
}

.faq__answer {
  padding: 0 0 24px 52px;
  animation: fadeInUp 0.4s var(--ease-out) both;
}
.faq__answer p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-700);
  max-width: 78ch;
}

@media (max-width: 540px) {
  .faq__answer { padding-left: 0; }
}

/* ==========================================================================
   13. CTA FINAL
   ========================================================================== */

.cta-final {
  padding: clamp(96px, 13vw, 160px) 0;
  background: var(--paper);
  position: relative;
}

.cta-final__inner {
  position: relative;
  padding: clamp(56px, 8vw, 96px) clamp(28px, 5vw, 72px);
  border: 2px solid var(--ink-900);
  border-radius: var(--r-xl);
  background: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-final__inner::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 50%;
  aspect-ratio: 1 / 1;
  background: var(--accent-400);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: -1;
}
.cta-final__inner::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -10%;
  width: 50%;
  aspect-ratio: 1 / 1;
  background: var(--brand-600);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  z-index: -1;
}

.cta-final__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 900px) { .cta-final__grid { grid-template-columns: minmax(0, 1.4fr) auto; gap: 56px; } }

.cta-final h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}
.cta-final h2 .serif { color: var(--brand-600); font-weight: 500; }

.cta-final p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 56ch;
}

.cta-final .btn-row { gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--ink-1000);
  color: #fff;
  padding: clamp(64px, 8vw, 96px) 0 28px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--accent-300); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }

.site-footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.site-footer__brand p { color: rgba(255, 255, 255, 0.65); font-size: 1rem; line-height: 1.55; max-width: 28ch; }

.site-footer__col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-300);
  font-weight: 500;
  margin-bottom: 16px;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { font-size: 0.9375rem; }

.site-footer__legal {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.site-footer__legal a { color: rgba(255, 255, 255, 0.5); }
.site-footer__legal a:hover { color: rgba(255, 255, 255, 0.85); }
.site-footer__legal-list { display: inline-flex; gap: 18px; flex-wrap: wrap; }

/* ==========================================================================
   15. ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.7; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.body-scroll-lock { overflow: hidden; }
