/* =========================================================
   SmartLabs — feuille de style
   Thèmes : light (Clair) · solar (Soleil) · dark (Sombre)
   Toutes les marges/positions en propriétés logiques → RTL natif
   ========================================================= */

:root {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- Clair --- */
:root,
[data-theme="light"] {
  /* Clair : palette inspirée d'Odoo (aubergine #714B67, turquoise #017E84) */
  --bg: #f7f5f7;
  --bg-2: #efeaee;
  --surface: #ffffff;
  --ink: #221a21;
  --ink-2: #4b4049;
  --muted: #7b6f78;
  --line: #e7dfe5;
  --line-strong: #d0c3cc;
  --brand: #714b67;      /* aubergine Odoo */
  --brand-2: #a47d99;    /* aubergine clair */
  --accent: #017e84;     /* turquoise Odoo */
  --accent-ink: #ffffff;
  --tile-icon: #3fb8bd;
  --grid: rgba(113, 75, 103, .07);
  --ink-section: #2b1d28;      /* sections inversées */
  --ink-section-fg: #f4eef2;
  --ink-section-muted: #b6a3b1;
  --ink-section-line: rgba(255, 255, 255, .1);
  --ink-section-card: rgba(255, 255, 255, .04);
  --shadow: 0 1px 2px rgba(43, 29, 40, .04), 0 12px 32px -12px rgba(43, 29, 40, .16);
  --board-bg: #2b1d28;
  --glow: rgba(1, 126, 132, .22);
}

/* Turquoise plus lumineux sur les fonds aubergine du thème clair (contraste) */
[data-theme="light"] .section--ink,
[data-theme="light"] .board,
[data-theme="light"] .rack,
[data-theme="light"] .manifesto__card { --accent: #2bb7bd; --accent-ink: #0e1f20; }

/* --- Soleil (intermédiaire) : papier calque chaud, encre marine --- */
[data-theme="solar"] {
  --bg: #f1e7d3;
  --bg-2: #e9dcc2;
  --surface: #f8f0e0;
  --ink: #1a2638;
  --ink-2: #3c4658;
  --muted: #6e6656;
  --line: #d9c9a8;
  --line-strong: #c3ae86;
  --brand: #1d4e89;
  --brand-2: #3f7fc0;
  --accent: #e2481a;
  --accent-ink: #fff8ee;
  --grid: rgba(29, 78, 137, .09);
  --ink-section: #1b2a40;
  --ink-section-fg: #f4ead6;
  --ink-section-muted: #b4ab98;
  --ink-section-line: rgba(244, 234, 214, .12);
  --ink-section-card: rgba(244, 234, 214, .05);
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 12px 32px -12px rgba(60, 40, 10, .2);
  --board-bg: #1b2a40;
  --tile-icon: #5d9ee0;
  --glow: rgba(226, 72, 26, .25);
}

/* --- Sombre --- */
[data-theme="dark"] {
  --bg: #060c16;
  --bg-2: #0a1424;
  --surface: #0d1829;
  --ink: #e8eff8;
  --ink-2: #b8c6d8;
  --muted: #8293a9;
  --line: #1a2840;
  --line-strong: #2a3c58;
  --brand: #7ab4ff;
  --brand-2: #4b8fe0;
  --accent: #ff7038;
  --accent-ink: #160800;
  --grid: rgba(122, 180, 255, .06);
  --ink-section: #0a1424;
  --ink-section-fg: #e8eff8;
  --ink-section-muted: #8293a9;
  --ink-section-line: rgba(255, 255, 255, .08);
  --ink-section-card: rgba(255, 255, 255, .03);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .7);
  --board-bg: #0a1424;
  --tile-icon: #5d9ee0;
  --glow: rgba(122, 180, 255, .3);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", var(--font-body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: "IBM Plex Sans Arabic", var(--font-display); letter-spacing: 0 !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.05; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: .78em; letter-spacing: .02em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arr { width: 18px; height: 18px; transition: transform .3s var(--ease); }
[dir="rtl"] .arr { transform: scaleX(-1); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s;
}
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--accent); }
.btn--accent:hover .arr { transform: translateX(4px); }
[dir="rtl"] .btn--accent:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .4s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; overflow: visible; stroke: none; }
.logo-mark .lm-a { fill: var(--brand); }
.logo-mark .lm-b { fill: var(--brand-2); }
[data-theme="dark"] .logo-mark .lm-a { fill: var(--ink); }
[data-theme="dark"] .logo-mark .lm-b { fill: var(--brand); }
.logo-mark .lm-slot { fill: none; stroke: var(--brand-2); stroke-width: 2; stroke-dasharray: 3 3; }
.logo-mark .lm-gear { fill: var(--accent); fill-rule: evenodd; transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease); }
.nav .logo-mark .lm-gear { animation: lm-in 1.1s var(--ease) .2s both; }
@keyframes lm-in { from { transform: translate(9px, -9px) rotate(-135deg); opacity: 0; } to { transform: none; opacity: 1; } }
.brand:hover .lm-gear { transform: rotate(45deg); }
.brand__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.045em; }
.nav__links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav__links a { padding: 8px 12px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: var(--bg-2); }
.nav__tools { display: flex; align-items: center; gap: 10px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); font-family: var(--font-mono); transition: color .2s, background-color .2s; min-width: 32px; }
.seg button[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 14px; line-height: 1; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg--icons button { display: grid; place-items: center; padding: 6px; }
.seg--icons svg { width: 16px; height: 16px; }
.seg--icons button.is-on { background: var(--accent); color: var(--accent-ink); }

.burger { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.burger span:not(.sr) { position: absolute; inset-inline: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 4px; font-family: var(--font-display); font-size: 22px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(32px, 5vw, 72px); overflow: hidden; isolation: isolate; }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero__grid-bg::after {
  content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  left: var(--mx, 70%); top: var(--my, 30%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow), transparent 65%);
  transition: left .6s var(--ease), top .6s var(--ease);
}
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(48px, 7vw, 96px); }

.tag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow); }
[dir="rtl"] .tag { padding: 7px 10px 7px 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } }

.hero__title { margin-top: 24px; font-size: clamp(38px, 4.9vw, 70px); font-weight: 600; line-height: .98; letter-spacing: -.045em; }
.hero__title > span { display: block; }
.hero__swap { color: var(--brand); position: relative; }
.hero__swap [data-swap] { background: linear-gradient(100deg, var(--brand) 20%, var(--brand-2) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.caret { display: inline-block; width: .08em; height: .85em; background: var(--accent); margin-inline-start: .06em; vertical-align: -.06em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.hero__chips li { display: flex; align-items: center; gap: 8px; }
.hero__chips li::before { content: ""; width: 6px; height: 6px; background: var(--brand-2); transform: rotate(45deg); }
.hero__chips b { color: var(--ink); font-weight: 500; }

/* Tableau de modules */
.board {
  background: var(--board-bg); color: #dce7f5;
  border-radius: 22px; padding: 14px;
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--board-bg) 70%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .06);
  position: relative;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform .8s var(--ease);
}
[dir="rtl"] .board { transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
.board:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.board::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, color-mix(in srgb, var(--tile-icon) 60%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--accent) 55%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.board__bar { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; font-size: 14px; color: #8ea3bd; }
.board__bar b { color: #fff; font-weight: 500; }
.board__dots { display: flex; gap: 6px; }
.board__dots i { width: 10px; height: 10px; border-radius: 50%; background: #233650; }
.board__dots i:first-child { background: var(--accent); }
.board__status { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; color: #7fe3b0; }
.board__status i { width: 7px; height: 7px; border-radius: 50%; background: #3fdc8f; box-shadow: 0 0 10px #3fdc8f; }
.board__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile {
  position: relative; aspect-ratio: 1 / .92; border-radius: 12px; padding: 10px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06);
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 11.5px; color: #a9bbd1; overflow: hidden;
  transition: background-color .5s, border-color .5s, color .5s, transform .5s var(--ease);
}
.tile svg { width: 22px; height: 22px; stroke-width: 1.5; color: var(--tile-icon); transition: color .5s; }
.tile b { font-weight: 500; font-family: var(--font-body); line-height: 1.2; overflow-wrap: break-word; letter-spacing: -.01em; }
.tile::after { content: ""; position: absolute; inset-inline-end: 10px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #2a3e5a; transition: background-color .4s, box-shadow .4s; }
.tile.is-on { background: color-mix(in srgb, var(--tile-icon) 12%, transparent); border-color: color-mix(in srgb, var(--tile-icon) 35%, transparent); color: #fff; }
.tile.is-on::after { background: #3fdc8f; box-shadow: 0 0 8px #3fdc8f; }
.tile.is-custom { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 6%, transparent)); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; }
.tile.is-custom svg { color: var(--accent); filter: brightness(1.35); }
.tile.is-custom::after { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tile.is-ping { transform: scale(.94); }
.tile.is-custom::after { display: none; }
.tile__tag { position: absolute; inset-inline-end: 7px; top: 7px; font-family: var(--font-mono); font-size: 9px; padding: 2px 5px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); letter-spacing: .04em; }
.board__term { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .28); font-size: 13px; color: #c8d6e8; min-height: 44px; direction: ltr; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board__term .prompt { color: var(--accent); filter: brightness(1.4); }
.board__term .caret { height: 1em; width: .55em; background: #c8d6e8; vertical-align: -.15em; }

/* Manifeste en tête de page */
.manifesto { padding-top: clamp(16px, 3vw, 32px); }
.manifesto__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 30px;
  background: var(--board-bg); color: #f2eef4;
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--board-bg) 80%, transparent);
}
.manifesto__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 70% 90% at 20% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 30%, #000, transparent 75%); }
.manifesto__card::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%); }
.manifesto .eyebrow { color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.manifesto__title { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.04em; }
.manifesto .we { background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto__lead { margin: 24px 0 32px; font-size: clamp(18px, 1.9vw, 25px); line-height: 1.45; color: rgba(255, 255, 255, .78); max-width: 32em; }
.manifesto__steps { display: grid; gap: 10px; counter-reset: none; }
.manifesto__steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.manifesto__steps li div { display: flex; flex-direction: column; gap: 1px; }
.manifesto__steps small { color: var(--accent); font-size: 11px; }
.manifesto__steps b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.manifesto__steps li div > span { font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.manifesto__ico { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.manifesto__ico svg { width: 22px; height: 22px; }
.manifesto__ico--go { background: var(--accent); color: var(--accent-ink); }

/* Bandeau défilant */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding-block: 18px; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(60px, 8vw, 100px); }
.section--ink { background: var(--ink-section); color: var(--ink-section-fg); --line: var(--ink-section-line); --muted: var(--ink-section-muted); --ink-2: var(--ink-section-muted); --ink: var(--ink-section-fg); }
.section--ink::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 70%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); pointer-events: none; }
.section--ink .wrap { position: relative; }

.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head--row { max-width: none; margin-bottom: 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 20px; }
.eyebrow span:first-child { color: var(--accent); padding: 3px 7px; border: 1px solid currentColor; border-radius: 6px; letter-spacing: 0; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.sec-head h2, .hosting h2, .contact__title { font-size: clamp(36px, 5.2vw, 68px); letter-spacing: -.035em; }
.sec-head__lead { margin-top: 20px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 38em; }

/* Bento services */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(240px, auto); gap: 16px; }
.card {
  position: relative; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 0%), color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::after { opacity: 1; }
.card__label { position: absolute; inset-inline-end: 22px; top: 22px; color: var(--muted); font-size: 12px; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); color: var(--brand); border: 1px solid var(--line); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 8px; }
.card p { color: var(--ink-2); }
.card--xl { grid-row: span 2; }
.card--wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 24px; }
.card--wide > div:last-child { display: flex; flex-direction: column; gap: 10px; }
.card--odoo { background: linear-gradient(165deg, var(--surface) 40%, color-mix(in srgb, var(--brand-2) 14%, var(--surface))); }
.card__icon--odoo svg { width: 40px; height: 13px; stroke: none; }
[data-theme="dark"] .card__icon--odoo path:first-child { fill: #b98aad; }
[data-theme="dark"] .card__icon--odoo path:last-child { fill: #a9b4c2; }
.ticks { display: grid; gap: 10px; margin-top: 6px; }
.ticks li { position: relative; padding-inline-start: 28px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ticks li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(.3em + 4px); width: 5px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.versions { margin-top: auto; padding-top: 18px; display: flex; gap: 10px; }
.v { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); }
.v--new { color: var(--accent); -webkit-text-stroke: 0; position: relative; }

/* Odoo */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-bottom: 56px; }
.tl { padding: 32px 28px 8px 0; position: relative; }
[dir="rtl"] .tl { padding: 32px 0 8px 28px; }
.tl::before { content: ""; position: absolute; top: -6px; inset-inline-start: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ink-section); border: 2px solid var(--ink-section-muted); }
.tl--new::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); }
.tl__v { display: block; font-family: var(--font-display); font-size: clamp(64px, 8vw, 112px); font-weight: 600; letter-spacing: -.05em; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--ink-section-muted); margin-bottom: 18px; }
.tl--new .tl__v { color: var(--accent); -webkit-text-stroke: 0; }
.tl h4 { font-size: 22px; margin-bottom: 8px; }
.tl p { color: var(--ink-section-muted); font-size: 15.5px; max-width: 26em; }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 64px; border-block: 1px solid var(--ink-section-line); }
.stats li { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 8px; }
.stats li + li { padding-inline-start: 28px; border-inline-start: 1px solid var(--ink-section-line); }
[dir="rtl"] .stats li { padding: 28px 0 28px 28px; }
[dir="rtl"] .stats li + li { padding-inline-start: 28px; }
.stats b { font-family: var(--font-display); font-weight: 600; font-size: clamp(52px, 6.5vw, 88px); line-height: .9; letter-spacing: -.05em; color: var(--ink-section-fg); display: flex; align-items: baseline; gap: 6px; direction: ltr; justify-content: flex-start; }
[dir="rtl"] .stats b { justify-content: flex-end; }
.stats b small { font-size: .32em; letter-spacing: 0; color: var(--accent); font-weight: 500; }
.stats b i { font-style: normal; color: var(--accent); font-size: .6em; margin-inline: 4px; }
.stats li > span { color: var(--ink-section-muted); font-size: 15.5px; max-width: 22em; }

/* Expertises phares */
.xp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 72px; }
.xp__card { position: relative; padding: clamp(26px, 3vw, 38px); border-radius: 22px; background: var(--ink-section-card); border: 1px solid var(--ink-section-line); display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.xp__card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
[dir="rtl"] .xp__card::before { background: linear-gradient(-90deg, var(--accent), transparent 70%); }
.xp__head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.xp__card h3 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.03em; }
.xp__card p { color: var(--ink-section-muted); }
.xp__card .ticks li { color: var(--ink-section-fg); }
.pill.pill--accent { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.guarantee { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: linear-gradient(120deg, rgba(63, 220, 143, .16), rgba(63, 220, 143, .04)); border: 1px solid rgba(63, 220, 143, .4); }
.guarantee svg { width: 46px; height: 46px; flex-shrink: 0; padding: 9px; border-radius: 13px; background: rgba(63, 220, 143, .18); color: #3fdc8f; stroke-width: 2; }
.guarantee b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 24px); letter-spacing: -.02em; color: var(--ink-section-fg); }
.guarantee span { color: var(--ink-section-muted); font-size: 14.5px; }
.stats li.stats__hl b small { color: #3fdc8f; }
.mf__keep { position: absolute; right: -6px; top: calc(100% + 2px); font-size: 11.5px; color: #3fdc8f; background: rgba(63, 220, 143, .12); border: 1px solid rgba(63, 220, 143, .35); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.xp__visual { margin-top: auto; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--ink-section-line); padding: 16px; }
.mig__path { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; direction: ltr; }
.mig__path span { font-family: var(--font-mono); font-size: 13px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--ink-section-line); color: var(--ink-section-muted); }
.mig__path span.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mig__path i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--ink-section-muted) 0 4px, transparent 4px 8px); opacity: .6; }
.mig__log { display: grid; gap: 6px; font-size: 13px; direction: ltr; }
.mig__log p { display: flex; justify-content: space-between; gap: 12px; color: #c8d6e8; }
.mig__log p span::before { content: "› "; color: var(--accent); }
.mig__log em { font-style: normal; color: #3fdc8f; }
.mig__log em.live { color: var(--accent); animation: blink 1.2s steps(1) infinite; }
.fs { display: grid; gap: 8px; }
.fs__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.fs__row span { color: var(--ink-section-muted); font-size: 13px; }
.fs__row b { font-weight: 500; font-size: 14.5px; color: var(--ink-section-fg); }
.fs__row em { font-style: normal; font-size: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--ink-section-muted); white-space: nowrap; }
.fs__row em.done { background: rgba(63, 220, 143, .14); color: #3fdc8f; }
.fs__row em.run { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }

/* Schéma de migration 12 → 18 */
.mflow { margin: 0 0 72px; padding: clamp(24px, 3.5vw, 44px); border-radius: 24px; background: var(--ink-section-card); border: 1px solid var(--ink-section-line); }
.mflow__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 760px; margin-bottom: 32px; }
.mflow__head h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; }
.mflow__head p { color: var(--ink-section-muted); }
.mflow__hint { display: none; color: var(--ink-section-muted); font-size: 12px; margin-bottom: 6px; }
.mflow__scroll { overflow-x: auto; margin-inline: -8px; padding: 8px; direction: ltr; scrollbar-width: thin; }
.mflow__grid { display: grid; grid-template-columns: 170px 1fr; gap: 18px 24px; min-width: 860px; align-items: center; }
.mf__label { display: flex; flex-direction: column; gap: 2px; padding-inline-end: 16px; border-inline-end: 1px solid var(--ink-section-line); align-self: stretch; justify-content: center; }
.mf__label b { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink-section-fg); }
.mf__label small { font-size: 13px; color: var(--ink-section-muted); }
[dir="rtl"] .mf__label { text-align: right; }

.mf__lane--data { position: relative; display: flex; align-items: center; padding-block: 10px; margin-bottom: 22px; }
.mf__node { position: relative; z-index: 1; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink-section-fg); background: var(--ink-section); border: 1.5px solid var(--ink-section-muted); }
.mf__node--from { border-color: var(--brand-2); color: var(--brand-2); }
.mf__node--to { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.mf__hop { flex: 1; height: 2px; margin-inline: 4px; position: relative; background: repeating-linear-gradient(90deg, var(--ink-section-muted) 0 5px, transparent 5px 10px); opacity: .7; }
.mf__hop::after { content: ""; position: absolute; right: -2px; top: 50%; width: 7px; height: 7px; border: solid var(--ink-section-muted); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.mf__lane--data::before { content: ""; position: absolute; z-index: 2; top: 50%; left: 26px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #3fdc8f; box-shadow: 0 0 12px #3fdc8f; opacity: 0; }
.mflow.is-visible .mf__lane--data::before { animation: mf-packet 6s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes mf-packet { 0% { left: 26px; opacity: 0; } 5% { opacity: 1; } 85% { opacity: 1; } 95%, 100% { left: calc(100% - 36px); opacity: 0; } }

.mf__lane--code { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: stretch; }
.mf__box { border-radius: 14px; padding: 14px 16px; background: rgba(0, 0, 0, .22); border: 1px solid var(--ink-section-line); display: flex; flex-direction: column; gap: 8px; }
.mf__box b { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink-section-fg); }
.mf__audit { grid-column: 1 / 3; border-color: color-mix(in srgb, var(--brand-2) 45%, transparent); }
.mf__audit ul { display: grid; gap: 5px; }
.mf__audit li { font-size: 12.5px; color: var(--ink-section-muted); display: flex; align-items: center; gap: 8px; }
.mf__audit li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.mf__audit li.keep::before { background: var(--brand-2); }
.mf__audit li.std::before { background: #3fdc8f; }
.mf__audit li.drop::before { background: var(--ink-section-muted); opacity: .6; }
.mf__port { grid-column: 3 / 7; position: relative; display: flex; align-items: center; padding: 14px 40px 14px 18px; border-radius: 14px; font-size: 14px; color: var(--ink-section-fg); background: linear-gradient(90deg, color-mix(in srgb, var(--brand-2) 22%, transparent), color-mix(in srgb, var(--accent) 22%, transparent)); border: 1px solid var(--ink-section-line); }
.mf__port i { position: absolute; right: 14px; top: 50%; width: 12px; height: 12px; border: solid var(--accent); border-width: 2.5px 2.5px 0 0; transform: translateY(-50%) rotate(45deg); }
.mf__done { grid-column: 7 / 8; border-color: color-mix(in srgb, var(--accent) 55%, transparent); justify-content: center; }
.mf__done span { color: #3fdc8f; font-size: 12px; }

.mf__lane--val { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mf__step { position: relative; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--ink-section-line); display: flex; flex-direction: column; gap: 3px; }
.mf__step span { color: var(--accent); font-size: 12px; }
.mf__step b { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink-section-fg); }
.mf__step small { color: var(--ink-section-muted); font-size: 12.5px; }
.mf__step + .mf__step::before { content: ""; position: absolute; left: -10px; top: 50%; width: 10px; height: 1.5px; background: var(--ink-section-muted); }
.mf__step--go { border-style: solid; border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

.mflow__keys { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 24px; border-top: 1px solid var(--ink-section-line); }
.mflow__keys li { font-size: 15px; color: var(--ink-section-muted); padding-inline-start: 16px; border-inline-start: 2px solid var(--accent); }
.mflow__keys b { display: block; color: var(--ink-section-fg); font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }

.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edition { padding: clamp(26px, 3vw, 38px); border-radius: var(--radius); background: var(--ink-section-card); border: 1px solid var(--ink-section-line); display: flex; flex-direction: column; gap: 16px; }
.edition header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.edition h3 { font-size: clamp(28px, 3vw, 40px); }
.edition p { color: var(--ink-section-muted); }
.edition .ticks li { color: var(--ink-section-fg); }
.edition--ent { background: linear-gradient(150deg, color-mix(in srgb, #714b67 40%, transparent), var(--ink-section-card) 70%); border-color: color-mix(in srgb, #a6789a 35%, transparent); }
.pill { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--ink-section-line); color: var(--ink-section-muted); white-space: nowrap; }

.apps { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.apps span { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--ink-section-line); font-size: 14px; color: var(--ink-section-fg); background: var(--ink-section-card); transition: background-color .25s, border-color .25s, color .25s; }
.apps span:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Réalisations */
.work { display: grid; gap: clamp(20px, 3vw, 32px); }
.project {
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(28px, 5vw, 72px);
  padding: clamp(24px, 4vw, 56px); border-radius: 28px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.project--flip .project__media { order: 2; }
.project__media { position: relative; display: grid; place-items: center; min-height: 420px; border-radius: 20px; overflow: hidden; }
.project--mawashi .project__media { background: radial-gradient(circle at 30% 20%, #3fd2ae, #0e7a66 55%, #064237); }
.project--wasphati .project__media { background: radial-gradient(circle at 70% 20%, #7dd56f, #2f9a52 55%, #0f4d2c); }
.project__media::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 28px 28px; }
.project__kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
[dir="rtl"] .project__kicker { letter-spacing: 0; }
.project__body h3 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -.04em; margin: 12px 0 18px; }
.project__body h3 sup, .mini h3 sup { font-size: .35em; vertical-align: top; color: var(--muted); }
.project__body > p:not(.project__kicker) { color: var(--ink-2); font-size: 17.5px; }
.facts { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts li { background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.facts span { color: var(--muted); font-size: 13.5px; }
.link { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link:hover .arr { transform: translate(3px, -3px); }

/* Téléphone factice */
.phone { position: relative; z-index: 1; width: 230px; height: 440px; border-radius: 38px; background: #0a0f17; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 0 0 2px #2a3442; transform: rotate(-4deg); transition: transform .6s var(--ease); }
.project--flip .phone { transform: rotate(4deg); }
.project:hover .phone { transform: rotate(0) translateY(-6px); }
.phone__notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 70px; height: 20px; border-radius: 20px; background: #0a0f17; z-index: 2; }
.phone__screen { height: 100%; border-radius: 30px; background: #f5faf8; overflow: hidden; padding: 46px 14px 14px; display: flex; flex-direction: column; gap: 12px; color: #0b1a2e; font-size: 12px; direction: ltr; }
.mw-top, .ws-top { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.mw-pill { font-size: 10px; padding: 3px 8px; border-radius: 99px; background: #d5f5ec; color: #0e7a66; font-weight: 600; }
.mw-scan { position: relative; height: 190px; border-radius: 16px; background: linear-gradient(160deg, #3c2c22, #6b4c3a); overflow: hidden; }
.mw-scan__muzzle { position: absolute; inset: 38px 46px; border-radius: 45%; background: radial-gradient(ellipse 18% 22% at 32% 55%, #1b120c 60%, transparent 62%), radial-gradient(ellipse 18% 22% at 68% 55%, #1b120c 60%, transparent 62%), repeating-radial-gradient(circle at 50% 40%, #8a6a58 0 3px, #6e5141 3px 6px); filter: contrast(1.1); }
.mw-scan__frame span { position: absolute; width: 22px; height: 22px; border: 3px solid #3fd2ae; z-index: 2; }
.mw-scan__frame span:nth-child(1) { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.mw-scan__frame span:nth-child(2) { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.mw-scan__frame span:nth-child(3) { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.mw-scan__frame span:nth-child(4) { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.mw-scan__line { position: absolute; left: 10px; right: 10px; height: 2px; background: #3fd2ae; box-shadow: 0 0 14px #3fd2ae; z-index: 2; animation: scan 2.4s ease-in-out infinite alternate; }
@keyframes scan { from { top: 18px; } to { top: 170px; } }
.mw-match { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: #0e7a66; color: #fff; }
.mw-match b { font-family: var(--font-display); font-size: 18px; }
.mw-rows { display: grid; gap: 6px; }
.mw-rows i, .mini__visual--mail i { display: block; height: 26px; border-radius: 8px; background: #e3eeea; }
.mw-rows i:nth-child(2) { width: 80%; }
.mw-rows i:nth-child(3) { width: 60%; }
.ws-search { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #dde7e0; color: #7a8a80; }
.ws-map { position: relative; flex: 1; border-radius: 14px; background: linear-gradient(135deg, #e3f1e2, #cfe7d1); background-image: linear-gradient(30deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%), linear-gradient(120deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%), linear-gradient(135deg, #e3f1e2, #cfe7d1); }
.ws-map i { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #9bb5a2; }
.ws-map i.on { background: #2f9a52; width: 18px; height: 18px; box-shadow: 0 0 0 8px rgba(47, 154, 82, .2); animation: pulse-pin 1.8s infinite; }
@keyframes pulse-pin { 50% { box-shadow: 0 0 0 14px rgba(47, 154, 82, 0); } }
.ws-card { padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); display: grid; gap: 2px; }
.ws-card b { color: #2f9a52; }
.ws-card span { color: #7a8a80; font-size: 10.5px; }

.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: transform .4s var(--ease), border-color .3s; }
.mini:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.mini h3 { font-size: 24px; }
.mini p:not(.project__kicker) { color: var(--ink-2); font-size: 15px; }
.mini__visual { height: 130px; border-radius: 12px; margin-bottom: 8px; position: relative; overflow: hidden; background: var(--bg-2); }
.mini__visual--360 { display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, var(--brand-2), var(--brand) 60%, var(--board-bg)); }
.mini__visual--360 span { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: #fff; letter-spacing: -.04em; }
.mini__visual--360::before, .mini__visual--360::after { content: ""; position: absolute; left: 50%; top: 50%; width: 180px; height: 60px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 50%; transform: translate(-50%, -50%) rotate(-12deg); animation: orbit 8s linear infinite; }
.mini__visual--360::after { width: 90px; height: 150px; animation-duration: 11s; animation-direction: reverse; }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(348deg); } }
.mini__visual--erp { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 6px; padding: 18px; }
.mini__visual--erp i { display: block; border-radius: 4px 4px 0 0; background: var(--brand); height: 30%; animation: bars 3s var(--ease) infinite alternate; }
.mini__visual--erp i:nth-child(2) { height: 55%; animation-delay: .2s; background: var(--brand-2); }
.mini__visual--erp i:nth-child(3) { height: 42%; animation-delay: .4s; }
.mini__visual--erp i:nth-child(4) { height: 75%; animation-delay: .6s; background: var(--brand-2); }
.mini__visual--erp i:nth-child(5) { height: 62%; animation-delay: .8s; }
.mini__visual--erp i:nth-child(6) { height: 92%; animation-delay: 1s; background: var(--accent); }
@keyframes bars { from { transform: scaleY(.6); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
.mini__visual--pos { display: grid; place-items: center; background: var(--board-bg); }
.mini__visual--pos span { font-size: 22px; color: #3fdc8f; text-shadow: 0 0 12px rgba(63, 220, 143, .5); direction: ltr; }
.mini__visual--mail { display: grid; gap: 8px; padding: 18px; align-content: center; }
.mini__visual--mail i { background: var(--surface); border: 1px solid var(--line); height: 22px; }
.mini__visual--mail i:first-child { border-inline-start: 3px solid var(--accent); }

/* Secteurs */
.industries { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.industries li { padding: 28px 20px 28px 0; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: background-color .3s; }
[dir="rtl"] .industries li { padding: 28px 0 28px 20px; }
.industries li:last-child { border-inline-end: 0; }
.industries li + li { padding-inline-start: 20px; }
.industries span { color: var(--accent); }
.industries b { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; line-height: 1.15; }
.industries small { color: var(--muted); font-size: 14px; }

/* Hébergement */
.hosting { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.host-feats { margin: 36px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.host-feats li { display: flex; gap: 14px; align-items: flex-start; }
.host-feats svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--brand); flex-shrink: 0; }
.host-feats div { display: flex; flex-direction: column; }
.host-feats b { font-family: var(--font-display); font-weight: 600; }
.host-feats span { color: var(--muted); font-size: 14.5px; }
.rack { background: var(--board-bg); border-radius: 24px; padding: 18px; display: grid; gap: 10px; box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--board-bg) 60%, transparent); color: #c8d6e8; direction: ltr; }
.rack__unit { display: grid; grid-template-columns: auto 1fr 90px; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); font-size: 15px; }
.led { width: 9px; height: 9px; border-radius: 50%; background: #3fdc8f; box-shadow: 0 0 10px #3fdc8f; animation: led 2.6s infinite; }
.rack__unit:nth-child(2) .led { animation-delay: .7s; }
.rack__unit:nth-child(3) .led { animation-delay: 1.3s; }
.rack__unit:nth-child(4) .led { animation-delay: 1.9s; }
@keyframes led { 0%, 90%, 100% { opacity: 1; } 95% { opacity: .2; } }
.rack__meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rack__meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--tile-icon), #3fdc8f); }
.rack__graph { position: relative; margin-top: 6px; height: 150px; border-radius: 12px; background: rgba(0, 0, 0, .25); overflow: hidden; }
.rack__graph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rack__graph .area { fill: color-mix(in srgb, var(--accent) 18%, transparent); stroke: none; }
.rack__graph .line { stroke: var(--accent); filter: brightness(1.3); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; vector-effect: non-scaling-stroke; }
.rack.is-visible .rack__graph .line { animation: draw 2.4s var(--ease) forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rack__uptime { position: absolute; left: 16px; top: 14px; display: flex; flex-direction: column; }
.rack__uptime b { font-size: 26px; color: #fff; }
.rack__uptime span { font-size: 12px; color: #8ea3bd; }

/* Hébergement souverain */
.sov { --dz-green: #006233; --dz-red: #d21034; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--dz-green) 6%, transparent)); border-top: 1px solid var(--line); }
.sov__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.sov h2 { font-size: clamp(36px, 5.2vw, 68px); letter-spacing: -.035em; }
.sov__grid { margin: 40px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sov__grid li { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.sov__grid svg { width: 38px; height: 38px; padding: 8px; border-radius: 11px; margin-bottom: 8px; color: var(--dz-green); background: color-mix(in srgb, var(--dz-green) 10%, transparent); }
[data-theme="dark"] .sov__grid svg { color: #3fbf7f; background: rgba(63, 191, 127, .1); }
.sov__grid b { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.sov__grid span { color: var(--muted); font-size: 14.5px; }
.residency { position: relative; border-radius: 26px; padding: 30px; background: var(--board-bg); color: #dce7f5; overflow: hidden; box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--board-bg) 60%, transparent); direction: ltr; }
.residency::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 98, 51, .5), transparent 65%); pointer-events: none; }
.residency__flag { display: block; width: 66px; height: 44px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); stroke: none; }
.residency__dz { font-family: var(--font-display); font-weight: 600; font-size: clamp(110px, 14vw, 180px); line-height: .85; letter-spacing: -.06em; margin: 28px 0 6px; background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.residency__label { color: #8ea3bd; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; margin-bottom: 18px; }
.residency__rows { display: grid; gap: 0; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.residency__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.residency__rows dt { color: #8ea3bd; }
.residency__rows dd { margin: 0; color: #fff; text-align: right; }
.residency__rows dd.ok { color: #3fdc8f; }

/* Méthode */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px 24px 32px; border-radius: var(--radius); background: var(--ink-section-card); border: 1px solid var(--ink-section-line); position: relative; overflow: hidden; }
.step::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .8s var(--ease); }
.step.is-visible::after { width: 100%; }
.step:nth-child(2)::after { transition-delay: .2s; }
.step:nth-child(3)::after { transition-delay: .4s; }
.step:nth-child(4)::after { transition-delay: .6s; }
.step__n { display: inline-block; color: var(--accent); font-size: 13px; margin-bottom: 40px; }
.step h4 { font-size: 26px; margin-bottom: 10px; }
.step p { color: var(--ink-section-muted); font-size: 15.5px; }

/* Contact */
.contact { background: radial-gradient(ellipse 70% 60% at 85% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact__info { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact__info div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact__info dt { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
[dir="rtl"] .contact__info dt { letter-spacing: 0; }
.contact__info dd { margin: 0; font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; }
[dir="rtl"] .contact__info dd a[dir="ltr"] { display: inline-block; }
.contact__info a:hover { color: var(--accent); }

.contact__qr { margin-top: 28px; display: flex; align-items: center; gap: 20px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 480px; transition: border-color .25s, transform .25s var(--ease); }
.contact__qr:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact__qr img { width: 183px; height: 183px; image-rendering: pixelated; flex-shrink: 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.contact__qr span { display: flex; flex-direction: column; gap: 6px; }
.contact__qr b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.contact__qr small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.form { padding: clamp(24px, 3.5vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form .form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form input:not([type="checkbox"]), .form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 22%, transparent); }
.form .is-invalid { border-color: var(--accent) !important; }
.form__chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.form__chips label { display: inline-flex; cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-2); transition: all .2s; }
.form__chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.form__chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form__note { font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* Pied de page */
.footer { border-top: 1px solid var(--line); padding-top: 56px; overflow: hidden; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.footer__brand p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer__links a { color: var(--ink-2); }
.footer__links a:hover { color: var(--accent); }
.footer__legal { grid-column: 1 / -1; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; }
.footer__giant { font-family: var(--font-display); font-weight: 700; font-size: 17.5vw; line-height: .78; letter-spacing: -.06em; text-align: center; margin-top: 40px; color: transparent; -webkit-text-stroke: 1px var(--line-strong); user-select: none; direction: ltr; white-space: nowrap; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.board.reveal.is-visible { transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
[dir="rtl"] .board.reveal.is-visible { transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
.board.reveal.is-visible:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav__links { display: none; }
  .nav__tools { margin-inline-start: auto; }
  .burger { display: block; }
  .minis { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .industries li:nth-child(3) { border-inline-end: 0; }
  .industries li:nth-child(4) { padding-inline-start: 0; }
  .industries li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .manifesto__card { grid-template-columns: 1fr; }
  .board, [dir="rtl"] .board, .board.reveal.is-visible, [dir="rtl"] .board.reveal.is-visible { transform: none; max-width: 560px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--xl { grid-column: span 2; grid-row: auto; }
  .project { grid-template-columns: 1fr; }
  .project--flip .project__media { order: 0; }
  .project__media { min-height: 360px; }
  .hosting, .contact__inner, .sov__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .xp { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-inline-start: 1px solid var(--line); }
  .tl, [dir="rtl"] .tl { padding: 0 0 36px 28px; }
  [dir="rtl"] .tl { padding: 0 28px 36px 0; }
  .tl::before { top: 6px; inset-inline-start: -6px; }
  .tl__v { font-size: 64px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__inner { height: 64px; gap: 12px; }
  .nav__cta { display: none; }
  .brand__name { display: none; }
  .seg button { padding: 5px 7px; min-width: 28px; }
  .bento, .editions, .steps, .host-feats, .form__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .mflow__keys { grid-template-columns: 1fr; }
  .mflow__hint { display: block; }
  .mflow__grid { grid-template-columns: 120px 1fr; min-width: 780px; }
  .mflow { margin-inline: calc(var(--gutter) * -0.5); }
  .sov__grid { grid-template-columns: 1fr; }
  .stats li, .stats li + li, [dir="rtl"] .stats li { padding: 22px 0; border-inline-start: 0; }
  .stats li + li { border-top: 1px solid var(--ink-section-line); }
  .card--xl, .card--wide { grid-column: auto; }
  .card--wide { flex-direction: column; align-items: flex-start; }
  .facts { grid-template-columns: 1fr; }
  .minis { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr; }
  .industries li, [dir="rtl"] .industries li, .industries li + li { padding: 20px 0; border-inline-end: 0; border-bottom: 1px solid var(--line); border-top: 0 !important; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
  .industries small { flex-basis: 100%; }
  .board__tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { font-size: 11px; padding: 8px; aspect-ratio: 1 / .8; }
  .tile svg { width: 18px; height: 18px; }
  .board__tiles { gap: 6px; }
  .contact__info div { grid-template-columns: 1fr; gap: 4px; }
  .contact__qr img { width: 122px; height: 122px; }
  .phone { width: 210px; height: 410px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
