/* =====================================================================
   Root Group Sarl — Design System
   Palette : Bleu (#2563EB) principal · Vert (#34D399) accent · Dark-first · Responsive
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — Primary = Blue (#2563EB), Accent = Green (#34D399).
     Token names kept (emerald-*/scarlet-*) but remapped: emerald-* = blue, scarlet-* = green. */
  --emerald-400: #60a5fa; /* blue light (on dark) */
  --emerald-500: #3b82f6;
  --emerald-600: #2563eb; /* blue principal */
  --emerald-700: #1d4ed8;
  --emerald-deep: #1e3a8a;
  --scarlet-400: #6ee7b7; /* green light */
  --scarlet-500: #34d399; /* green accent */
  --scarlet-600: #10b981;
  --danger: #ef4444;       /* red — réservé aux erreurs/champs invalides */
  --danger-strong: #f87171;

  /* Type scale */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing rhythm (4/8) */
  --space-section: clamp(72px, 10vw, 128px);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: 280ms;

  /* z-index scale */
  --z-nav: 100;
  --z-overlay: 200;
  --z-toast: 1000;

  --container: 1200px;
}

/* ---------- Theme: Dark (default) ---------- */
:root,
[data-theme='dark'] {
  --bg: #0a0e1a;
  --bg-2: #0c1326;
  --surface: #111a2e;
  --surface-2: #16203a;
  --surface-glass: rgba(20, 28, 48, .6);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #e9eef8;
  --text-2: #aab4c6;
  --text-3: #7c8699;
  --primary: var(--emerald-400);
  --primary-strong: var(--emerald-600);
  --accent: var(--scarlet-500);
  --accent-strong: var(--scarlet-400);
  --on-primary: #04130d;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px rgba(52, 211, 153, .3), 0 18px 60px -18px rgba(52, 211, 153, .5);
  --grid-line: rgba(255, 255, 255, .035);
  color-scheme: dark;
}

/* ---------- Theme: Light ---------- */
[data-theme='light'] {
  --bg: #f3f6fc;
  --bg-2: #eaf1fb;
  --surface: #ffffff;
  --surface-2: #f1f5fc;
  --surface-glass: rgba(255, 255, 255, .7);
  --border: rgba(15, 23, 42, .1);
  --border-strong: rgba(15, 23, 42, .18);
  --text: #0b1220;
  --text-2: #44506a;
  --text-3: #6b7689;
  --primary: var(--emerald-600);
  --primary-strong: var(--emerald-700);
  --accent: var(--scarlet-600);
  --accent-strong: var(--scarlet-500);
  --on-primary: #ffffff;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 48px -28px rgba(15, 23, 42, .22);
  --glow: 0 0 0 1px rgba(16, 185, 129, .25), 0 18px 50px -18px rgba(16, 185, 129, .35);
  --grid-line: rgba(15, 23, 42, .045);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.display { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; }
.h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 60ch; }
.text-grad {
  background: linear-gradient(105deg, var(--primary) 0%, var(--emerald-600) 45%, var(--accent) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.accent-grad {
  background: linear-gradient(100deg, var(--accent-strong), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* Eyebrow / chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .8rem; font-weight: 500; letter-spacing: .02em;
  color: var(--text-2);
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--surface-glass); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.18); }
.chip .dot--live { animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,.5); } 50% { box-shadow: 0 0 0 6px rgba(37,99,235,0); } }

/* Section header */
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head .h2 { margin-top: 18px; }
.sec-head .lead { margin-top: 18px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 14px 24px; border-radius: var(--r-pill);
  min-height: 48px; touch-action: manipulation;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
/* Primary CTA = vert (action) */
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--scarlet-600)); color: var(--on-primary); box-shadow: var(--glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(52,211,153,.45), 0 26px 70px -20px rgba(52,211,153,.6); }
.btn--accent { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; box-shadow: 0 18px 50px -20px rgba(52,211,153,.6); }
.btn--accent:hover { transform: translateY(-2px); }
.btn--ghost { background: var(--surface-glass); color: var(--text); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--primary); }
.btn--sm { padding: 10px 18px; min-height: 42px; font-size: .9rem; }
.btn--lg { padding: 17px 30px; min-height: 56px; font-size: 1.05rem; }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.navbar--scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(18px) saturate(150%); border-bottom-color: var(--border); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.brand__mark { width: 36px; height: 36px; flex: 0 0 auto; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: -2px; }
/* Logo wordmark (image) — bascule selon le thème */
.brand__logo { height: 40px; width: auto; flex: 0 0 auto; display: block; }
.footer__brand .brand__logo { height: 36px; }
.brand__logo--light { display: none; }
[data-theme='light'] .brand__logo--light { display: block; }
[data-theme='light'] .brand__logo--dark { display: none; }
@media (max-width: 520px) { .brand__logo { height: 34px; } }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a { padding: 9px 14px; border-radius: var(--r-pill); font-weight: 500; font-size: .94rem; color: var(--text-2); transition: color var(--dur), background var(--dur); }
.nav__links a:hover { color: var(--text); background: var(--surface-glass); }
.nav__right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-pill);
  background: var(--surface-glass); border: 1px solid var(--border); color: var(--text-2);
  transition: color var(--dur), border-color var(--dur), transform var(--dur);
}
.icon-btn:hover { color: var(--text); border-color: var(--primary); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
[data-theme='light'] .theme-toggle .i-sun { display: none; }
[data-theme='light'] .theme-toggle .i-moon { display: block; }

.lang-toggle { display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; width: auto; gap: 4px; padding-inline: 15px; font-family: var(--font-display); font-weight: 600; font-size: .82rem; line-height: 1; }
.lang-toggle span { color: var(--text-3); transition: color var(--dur); white-space: nowrap; }
.lang-toggle span.active { color: var(--primary); }
.lang-toggle .sep { color: var(--border-strong); }

.burger { display: none; width: 42px; height: 42px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface-glass); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 25px; }
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 72px 0 auto 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: grid; gap: 4px; padding: 18px clamp(20px, 5vw, 40px) 28px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 14px 12px; border-radius: var(--r-md); font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--text); }
.mobile-menu a:hover { background: var(--surface-glass); }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- Background FX ---------- */
.bg-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-fx__grid { position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.blob--emerald { width: 540px; height: 540px; background: radial-gradient(circle, rgba(37,99,235,.6), transparent 65%); top: -180px; left: -120px; animation: float1 18s var(--ease) infinite; }
.blob--scarlet { width: 380px; height: 380px; background: radial-gradient(circle, rgba(52,211,153,.42), transparent 65%); top: 120px; right: -100px; animation: float2 22s var(--ease) infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, 60px); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 140px; padding-bottom: clamp(64px, 9vw, 110px); overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title { margin: 24px 0 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.hero__stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text); }
.hero__stat .lbl { font-size: .82rem; color: var(--text-3); }

/* Hero visual : stacked glass cards */
.hero__visual { position: relative; }
.glass-card {
  background: var(--surface-glass); border: 1px solid var(--border);
  border-radius: var(--r-lg); backdrop-filter: blur(14px); box-shadow: var(--shadow-card);
}
.code-card { padding: 22px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .82rem; line-height: 1.9; }
.code-card .dots { display: flex; gap: 7px; margin-bottom: 16px; }
.code-card .dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code-card .dots i:nth-child(1){ background: var(--scarlet-500);} .code-card .dots i:nth-child(2){ background:#f5b942;} .code-card .dots i:nth-child(3){ background: var(--emerald-500);}
.code-card .ln { color: var(--text-3); }
.code-card .k { color: var(--accent-strong); } .code-card .s { color: var(--emerald-400); } .code-card .v { color: var(--text); } .code-card .c { color: var(--text-3); font-style: italic; }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card); font-size: .85rem; font-weight: 600;
}
.float-badge svg { width: 18px; height: 18px; color: var(--primary); }
.float-badge--tl { top: -22px; left: -22px; animation: bob 6s var(--ease) infinite; }
.float-badge--br { bottom: -22px; right: -18px; animation: bob 6s var(--ease) infinite 1.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee (stack) ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); margin-top: 14px; }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: scrollx 26s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text-3); display: inline-flex; align-items: center; gap: 40px; }
.marquee__track span::after { content: '·'; color: var(--primary); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 30px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.stat-card .num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; }
.stat-card .num .text-grad { display: inline; }
.stat-card .lbl { color: var(--text-2); font-size: .9rem; margin-top: 6px; }

/* ---------- Bento / cards grid ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}
.card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(37,99,235,.1), transparent 60%); opacity: 0; transition: opacity var(--dur); pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.card:hover::after { opacity: 1; }
.card--span2 { grid-column: span 2; }
.card__icon { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: linear-gradient(135deg, rgba(16,185,129,.16), rgba(16,185,129,.05)); border: 1px solid rgba(16,185,129,.22); color: var(--accent); margin-bottom: 20px; }
.card__icon svg { width: 24px; height: 24px; }
.card--accent .card__icon { background: linear-gradient(135deg, rgba(52,211,153,.16), rgba(52,211,153,.05)); border-color: rgba(52,211,153,.22); color: var(--accent-strong); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: .96rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: .76rem; font-weight: 500; padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); }

/* ---------- Yoova flagship ---------- */
.flagship { position: relative; overflow: hidden; }
.flagship__inner {
  position: relative; border-radius: var(--r-xl); border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%); overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
}
.flagship__glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(90px); background: radial-gradient(circle, rgba(37,99,235,.3), transparent 65%); top: -200px; right: -150px; pointer-events: none; }
.flagship__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.flagship__brand { display: flex; align-items: center; gap: 14px; }
.flagship__brand .logo { width: 56px; height: 56px; border-radius: 15px; }
.flagship__brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; }
.flagship__brand .tagline { color: var(--text-2); font-size: .95rem; }
.badge-flag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--r-pill); color: var(--accent-strong); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25); }
.flagship__lead { position: relative; max-width: 64ch; margin-top: 28px; }
.flagship__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 38px; }
.mini { padding: 22px; border-radius: var(--r-md); background: var(--surface-glass); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.mini .micon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(16,185,129,.12); color: var(--accent); margin-bottom: 14px; }
.mini .micon svg { width: 20px; height: 20px; }
.mini h4 { font-size: 1.02rem; margin-bottom: 5px; }
.mini p { color: var(--text-2); font-size: .86rem; line-height: 1.55; }
.flagship__stats { position: relative; display: flex; flex-wrap: wrap; gap: 36px; margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--border); }
.flagship__stats .fs .n { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; }
.flagship__stats .fs .l { font-size: .82rem; color: var(--text-3); }
.flagship__cta { position: relative; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; position: relative; }
.step { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.step .num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--on-primary); background: linear-gradient(135deg, var(--accent), var(--scarlet-600)); margin-bottom: 16px; }
.step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: .92rem; }

/* ---------- Portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work {
  position: relative; padding: 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.work:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.work__top { height: 150px; position: relative; overflow: hidden; }
.work__top::before { content: ''; position: absolute; inset: 0; background: var(--proj, #2d4a3e); opacity: .9; }
.work__top::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 28px 28px; }
.work__mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: rgba(255,255,255,.92); letter-spacing: -.03em; z-index: 1; }
.work__body { padding: 24px; }
.work__meta { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--text-3); margin-bottom: 10px; }
.work__meta .yr { margin-left: auto; }
.work h3 { font-size: 1.2rem; margin-bottom: 8px; }
.work p { color: var(--text-2); font-size: .9rem; }
.footnote { color: var(--text-3); font-size: .82rem; margin-top: 24px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.founder { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); margin-top: 26px; }
.founder__avatar { width: 60px; height: 60px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--on-primary); background: linear-gradient(135deg, var(--accent), var(--scarlet-600)); }
.founder .nm { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.founder .rl { color: var(--text-3); font-size: .85rem; }
.values { display: grid; gap: 14px; }
.value { display: flex; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color var(--dur), transform var(--dur); }
.value:hover { border-color: var(--border-strong); transform: translateX(4px); }
.value .vnum { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.value h4 { font-size: 1.05rem; margin-bottom: 4px; }
.value p { color: var(--text-2); font-size: .9rem; }
.quote { margin-top: 30px; padding: 28px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(16,185,129,.08), rgba(52,211,153,.05)); border: 1px solid var(--border); position: relative; }
.quote p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; font-weight: 500; }
.quote cite { display: block; margin-top: 14px; color: var(--text-3); font-style: normal; font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 14px; margin-top: 28px; }
.info-row { display: flex; align-items: center; gap: 15px; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.info-row .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(16,185,129,.12); color: var(--accent); flex: 0 0 auto; }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row .lb { font-size: .78rem; color: var(--text-3); }
.info-row .vl { font-weight: 600; }
.info-row a:hover { color: var(--primary); }

.form { padding: clamp(24px, 4vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 8px; color: var(--text-2); }
.field label .req { color: var(--danger); }
.input, .textarea {
  width: 100%; padding: 14px 16px; min-height: 50px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font: inherit;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.textarea { min-height: 130px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.field--error .input, .field--error .textarea { border-color: var(--danger); }
.err-msg { display: none; color: var(--danger-strong); font-size: .8rem; margin-top: 6px; }
.field--error .err-msg { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.form__status { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); font-size: .9rem; display: none; align-items: center; gap: 10px; }
.form__status.show { display: flex; }
.form__status--ok { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: var(--scarlet-500); }
.form__status--err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: var(--danger-strong); }
.btn[aria-busy='true'] { opacity: .7; pointer-events: none; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 56px 28px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer__brand p { color: var(--text-2); font-size: .92rem; margin-top: 14px; white-space: pre-line; max-width: 32ch; }
.footer h4 { font-family: var(--font-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; color: var(--text-2); font-size: .92rem; padding: 5px 0; transition: color var(--dur); }
.footer__col a:hover { color: var(--primary); }
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .84rem; }

/* ---------- Sub-page hero & prose ---------- */
.page-hero { position: relative; overflow: hidden; padding-top: 140px; padding-bottom: clamp(40px, 6vw, 64px); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-3); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 16px 0 14px; }
.page-hero .updated { font-size: .85rem; color: var(--text-3); }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.prose p { color: var(--text-2); margin-bottom: 14px; }
.prose ul.bullets { display: grid; gap: 10px; margin: 8px 0 16px; }
.prose ul.bullets li { position: relative; padding-left: 26px; color: var(--text-2); }
.prose ul.bullets li::before { content: ''; position: absolute; left: 6px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .callout { padding: 20px 22px; border-radius: var(--r-md); background: linear-gradient(135deg, rgba(16,185,129,.08), rgba(52,211,153,.05)); border: 1px solid var(--border); margin: 22px 0; }

/* Vision page bits */
.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.pillar { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.pillar .pnum { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 1.4rem; margin-bottom: 12px; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pillar p { color: var(--text-2); font-size: .94rem; }
.timeline { display: grid; gap: 0; margin-top: 8px; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.tl-item:last-child { border-bottom: 1px solid var(--border); }
.tl-item .yr { font-family: var(--font-display); font-weight: 700; color: var(--primary); }
.tl-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.tl-item p { color: var(--text-2); font-size: .92rem; }
@media (max-width: 860px) { .vision-grid { grid-template-columns: 1fr; } .tl-item { grid-template-columns: 80px 1fr; gap: 14px; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: .08s; }
.reveal[data-delay='2'] { transition-delay: .16s; }
.reveal[data-delay='3'] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento, .flagship__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .card--span2 { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav__right > .btn { display: none; } /* CTA accessible via le menu burger */
  .brand small { display: none; }
}
@media (max-width: 640px) {
  .bento, .flagship__grid, .stats, .work-grid { grid-template-columns: 1fr; }
  .card--span2 { grid-column: span 1; }
  .row2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .float-badge { display: none; }
  .hero__meta { gap: 20px; }
}
