/* ══════════════════════════════════════════════════════════
   JARVIS TECHNOLOGIES — Design System v3 « Éditorial institutionnel »
   Papier chaud + marine profond + bleu royal du logo, accent laiton.
   Display serif (Fraunces) + Instrument Sans. Hero & footer sombres,
   corps de page clair : structure « couverture / pages / dos de livre ».
   ══════════════════════════════════════════════════════════ */

:root {
  --blue: #2E5CE6;
  --blue-deep: #1D3FA8;
  --navy: #0B1B3E;
  --navy-2: #10244E;
  --ink: #131E36;
  --ink-2: #0A1730;            /* surfaces sombres type fenêtre d'app */
  --paper: #F7F5EF;
  --paper-2: #EFECE3;
  --panel: #FFFFFF;
  --panel-solid: #0E2050;
  --text: #1A2440;
  --muted: #5C6880;
  --line: rgba(19, 30, 68, 0.14);
  --brass: #B7893A;
  --brass-2: #E7B968;
  --cyan: #B7893A;             /* ex-cyan néon → laiton (accents automatisation) */
  --blue-2: #2E5CE6;
  --glow: #4C79F2;
  --blue-dim: #1D3FA8;
  --speed: 1;
  --radius: 16px;
  --shadow-1: 0 1px 2px rgba(15, 25, 60, 0.06), 0 8px 24px -18px rgba(15, 25, 60, 0.18);
  --shadow-2: 0 2px 4px rgba(15, 25, 60, 0.06), 0 24px 48px -24px rgba(19, 42, 110, 0.28);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-brand: "Space Grotesk", var(--font-body);
}

/* Contexte sombre : hero, footer, bandeaux — les variables se rescopent,
   tout composant posé dessus (y compris styles inline) suit. */
.hero, .page-hero, .footer, .cta-band, .flow, .globe-section,
.apptile, .appwin, .svc-visual, .prod-shot, .why-stat, .card.price.devis {
  --text: #F3F5FD;
  --muted: #A6B2d2;
  --line: rgba(160, 186, 255, 0.17);
  --panel: rgba(255, 255, 255, 0.05);
  --blue-2: #9DB9FF;
  --glow: #BCD0FF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 540;
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
  font-variation-settings: "opsz" 60;
}

p { text-wrap: pretty; }

.wrap { width: min(1200px, 92vw); margin-inline: auto; }

/* Le fond quadrillé néon disparaît : le papier respire tout seul. */
.bg-grid { display: none; }

/* Accent typographique : fini le dégradé de texte, place à l'italique serif. */
.grad, .hero h1 .grad, .page-hero .grad {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: var(--brass-2);
  font-style: italic;
  font-weight: 480;
}

/* ── Navigation ──────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 20px max(4vw, 24px);
  transition: background 0.35s, padding 0.35s, border-color 0.35s, box-shadow 0.35s;
  border-bottom: 1px solid transparent;
  /* posée sur le hero sombre par défaut */
  --text: #F3F5FD; --muted: #A6B2D2; --line: rgba(160,186,255,0.17);
}
.nav.scrolled {
  background: rgba(250, 249, 244, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(19, 30, 68, 0.1);
  padding-block: 13px;
  --text: #1A2440; --muted: #5C6880; --line: rgba(19,30,68,0.14);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .jv-mark { width: 32px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-brand); font-weight: 700;
  font-size: 18px; letter-spacing: 0.05em; color: var(--text);
}
.brand-sub {
  font-size: 8.5px; letter-spacing: 0.42em; color: var(--muted);
  text-transform: uppercase; margin-top: 4px;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  position: relative;
  padding: 6px 2px;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--blue);
  transition: right 0.3s cubic-bezier(.3,.7,.2,1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang-switch {
  display: flex; gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px; padding: 3px;
}
.lang-switch button {
  background: none; border: 0; color: var(--muted);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 5px 11px; border-radius: 7px;
  transition: 0.25s;
}
.lang-switch button.on { background: var(--blue); color: #fff; }

.burger {
  display: none; background: none; border: 0;
  width: 42px; height: 42px; position: relative; z-index: 110;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px auto; transition: 0.3s; border-radius: 2px;
}
.burger.open span { background: #F3F5FD; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15,25,60,0.2), 0 12px 28px -14px rgba(46, 92, 230, 0.55);
}
.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15,25,60,0.2), 0 16px 34px -14px rgba(46, 92, 230, 0.6);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: color-mix(in oklab, var(--text), transparent 72%);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .cta-band .btn-ghost:hover,
.footer .btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-lg { padding: 17px 32px; font-size: 17px; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 90px; overflow: clip;
  background:
    radial-gradient(110% 90% at 78% 10%, rgba(46, 92, 230, 0.20), transparent 55%),
    radial-gradient(80% 70% at 8% 95%, rgba(29, 63, 168, 0.25), transparent 60%),
    var(--navy);
  color: var(--text);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(160, 186, 255, 0.2);
}
#hero-canvas, .fx-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; pointer-events: none; }
.hero-inner a, .hero-inner .btn { pointer-events: auto; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-2); font-weight: 600;
  border: 1px solid rgba(160, 186, 255, 0.28);
  padding: 9px 18px; border-radius: 999px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass-2);
  animation: pulse calc(2.4s / var(--speed)) infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

.hero h1 {
  font-size: clamp(44px, 6.2vw, 88px);
  margin: 30px 0 24px;
  max-width: 15ch;
  color: #F8F9FE;
}
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted); max-width: 56ch; margin-bottom: 38px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero-stats {
  position: relative; z-index: 2;
  display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap;
  margin-top: clamp(48px, 7vh, 88px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b {
  font-family: var(--font-display); font-size: clamp(30px, 2.7vw, 42px);
  font-weight: 500; color: #F8F9FE; letter-spacing: -0.01em;
}
.stat b .plus { color: var(--brass-2); }
.stat span { font-size: 14px; color: var(--muted); max-width: 24ch; }

.scroll-hint { display: none; }
.scroll-hint-off {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--muted); font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 36px;
  background: linear-gradient(var(--muted), transparent);
  animation: drip calc(2s / var(--speed)) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ── Marquee : bande fine, calme, typographique ──────── */
.marquee {
  border-block: 1px solid var(--line);
  padding: 15px 0; overflow: hidden;
  background: var(--paper);
  display: flex;
}
.marquee-track {
  display: flex; gap: 52px; flex-shrink: 0;
  padding-right: 52px;
  animation: scrollx calc(38s / var(--speed)) linear infinite;
  white-space: nowrap;
  font-family: var(--font-body); font-weight: 600;
  font-size: 12.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}
.marquee-track .sep { color: var(--brass); }
@keyframes scrollx { to { transform: translateX(-100%); } }

/* ── Sections ────────────────────────────────────────── */
.section { position: relative; padding: clamp(76px, 10vh, 130px) 0; }
.section-alt {
  background: #FCFBF8;
  border-block: 1px solid rgba(19, 30, 68, 0.07);
}

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 26px; height: 1px;
  background: currentColor;
}
.kicker.accent { color: var(--brass); }

.sec-title { font-size: clamp(30px, 3.7vw, 50px); max-width: 24ch; color: var(--text); }
.sec-sub { color: var(--muted); max-width: 62ch; margin-top: 16px; font-size: 17.5px; }
.sec-head { margin-bottom: clamp(40px, 6vh, 60px); }
.sec-head.split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}

/* ── Cards ───────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}
.card:hover {
  border-color: color-mix(in oklab, var(--blue), transparent 60%);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.card .glare { display: none; }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--blue), transparent 92%);
  border: 1px solid color-mix(in oklab, var(--blue), transparent 78%);
  color: var(--blue);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-size: 12.5px; font-weight: 600; color: var(--blue-deep);
  background: color-mix(in oklab, var(--blue), transparent 92%);
  border: 1px solid color-mix(in oklab, var(--blue), transparent 80%);
  padding: 4px 12px; border-radius: 8px;
}

/* ── Pourquoi / différenciateurs ─────────────────────── */
.why-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.feature-list { display: flex; flex-direction: column; }
.feature {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  transition: 0.3s;
}
.feature:first-child { border-top: 0; }
.feature .f-num {
  font-family: var(--font-display); font-style: italic; font-weight: 480;
  font-size: 17px; color: var(--brass); padding-top: 2px; min-width: 34px;
}
.feature h4 { font-size: 18.5px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ── Globe section : bandeau marine pleine largeur ───── */
.globe-section {
  position: relative; overflow: clip;
  background:
    radial-gradient(90% 90% at 85% 20%, rgba(46, 92, 230, 0.18), transparent 55%),
    var(--navy);
  border-block: 1px solid rgba(160, 186, 255, 0.14);
}
.globe-section .sec-title { color: #F8F9FE; }
.globe-wrap {
  position: relative; aspect-ratio: 1;
  max-width: 600px; margin-inline: auto;
}
.globe-wrap canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.globe-halo {
  position: absolute; inset: -6%;
  background: radial-gradient(circle at 50% 50%, rgba(46, 92, 230, 0.16), transparent 62%);
  pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--panel); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 10px;
}
.chip svg { width: 15px; height: 15px; color: var(--brass-2); }

/* ── Process steps ───────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step {
  position: relative; padding: 34px 26px 30px 0;
  background: transparent; border: 0;
  border-top: 1px solid var(--line);
  overflow: visible;
}
.steps .step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-style: italic; font-weight: 460;
  font-size: 44px; line-height: 1;
  display: block; margin-bottom: 18px;
  color: color-mix(in oklab, var(--blue), transparent 45%);
}
.step h4 { font-size: 19px; margin: 0 0 10px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step .bar {
  position: absolute; top: -1px; left: 0; height: 2px; width: 100%;
  background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform calc(1.1s / var(--speed)) cubic-bezier(.2,.8,.2,1);
}
.steps .step + .step .bar { left: 26px; width: calc(100% - 26px); }
.step.lit .bar { transform: scaleX(1); }

/* ── Produits ────────────────────────────────────────── */
.prod-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.prod-card:hover {
  border-color: color-mix(in oklab, var(--blue), transparent 60%);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.prod-shot {
  position: relative; aspect-ratio: 16/9.4; overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(46, 92, 230, 0.2), transparent 60%),
    var(--ink-2);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
}
.prod-body { padding: 24px 26px 28px; }
.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.prod-body h3 { font-size: 22px; }
.badge-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #157A4A; background: rgba(21, 160, 90, 0.09);
  border: 1px solid rgba(21, 160, 90, 0.3);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.badge-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #17A05C;
  animation: pulse calc(2s / var(--speed)) infinite;
}
.prod-body p { color: var(--muted); font-size: 15.5px; }
.prod-body .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ── CTA band : plein marine, éditorial ──────────────── */
.cta-band {
  position: relative; overflow: clip;
  border: 0; border-radius: 24px;
  padding: clamp(56px, 8vw, 96px) clamp(28px, 6vw, 80px);
  text-align: center;
  background:
    radial-gradient(90% 130% at 50% -20%, rgba(46, 92, 230, 0.35), transparent 58%),
    var(--navy);
}
.cta-band h2 { font-size: clamp(32px, 4.2vw, 54px); max-width: 22ch; margin-inline: auto; color: #F8F9FE; }
.cta-band p { color: var(--muted); margin: 18px auto 36px; max-width: 52ch; }
.cta-band .hero-ctas { justify-content: center; }

/* ── Page hero (sous-pages) ──────────────────────────── */
.page-hero {
  position: relative; padding: clamp(150px, 20vh, 210px) 0 clamp(56px, 8vh, 90px);
  overflow: clip;
  background:
    radial-gradient(110% 100% at 82% 0%, rgba(46, 92, 230, 0.2), transparent 55%),
    var(--navy);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(160, 186, 255, 0.2);
}
.page-hero h1 { font-size: clamp(38px, 5.2vw, 70px); max-width: 18ch; color: #F8F9FE; }

/* ── Service detail rows ─────────────────────────────── */
.svc-row {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px); align-items: center;
  padding: clamp(48px, 7vh, 80px) 0;
  border-top: 1px solid var(--line);
}
.svc-row:first-of-type { border-top: 0; }
.svc-row.flip > .svc-visual { order: -1; }
.svc-row h3 { font-size: clamp(26px, 2.8vw, 38px); margin: 16px 0 14px; }
.svc-row > div > p { color: var(--muted); font-size: 16.5px; }
.svc-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.svc-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.svc-list li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px;
  background: color-mix(in oklab, var(--blue), transparent 90%);
  border: 1px solid color-mix(in oklab, var(--blue), transparent 65%);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5CE6' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}
.svc-visual {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(160, 186, 255, 0.16);
  background:
    radial-gradient(130% 110% at 20% 0%, rgba(46, 92, 230, 0.24), transparent 58%),
    var(--ink-2);
  aspect-ratio: 4/3.1;
  display: grid; place-items: center;
  box-shadow: var(--shadow-1);
}
.svc-visual .big-ico {
  width: 28%; max-width: 120px; color: var(--blue-2); opacity: 0.92;
}
.svc-visual .orbit {
  position: absolute; border: 1px dashed rgba(160, 186, 255, 0.28);
  border-radius: 50%;
  animation: spin calc(30s / var(--speed)) linear infinite;
}
.svc-visual .orbit.o1 { inset: 16%; }
.svc-visual .orbit.o2 { inset: 28%; animation-direction: reverse; animation-duration: calc(20s / var(--speed)); }
.svc-visual .orbit .sat {
  position: absolute; top: -5px; left: 50%;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brass-2);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Contact ─────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 70px); align-items: start;
}
.contact-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
  border-color: color-mix(in oklab, var(--blue), transparent 60%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.contact-card .card-icon { margin: 0; width: 46px; height: 46px; flex-shrink: 0; }
.contact-card b { font-family: var(--font-body); font-weight: 700; font-size: 16px; display: block; }
.contact-card span { color: var(--muted); font-size: 14px; }
.contact-cards { display: grid; gap: 14px; }

.form-panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-1);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: #FAF9F5;
  border: 1px solid var(--line); border-radius: 11px;
  color: var(--text); font: inherit; font-size: 15.5px;
  padding: 13px 16px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--blue), transparent 85%);
}
.field select option { background: #fff; color: var(--ink); }

/* ── Footer : dos de livre, marine profond ───────────── */
.footer {
  border-top: 1px solid rgba(160, 186, 255, 0.14);
  background: var(--navy);
  padding: clamp(56px, 7vh, 84px) 0 36px;
  margin-top: clamp(60px, 9vh, 120px);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid var(--line);
}
.footer p { color: var(--muted); font-size: 15px; max-width: 38ch; margin-top: 16px; }
.footer h5 {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass-2); margin-bottom: 18px; font-weight: 700;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 15px; transition: color 0.25s; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; padding-top: 26px;
  color: var(--muted); font-size: 13.5px;
}

/* ── Reveal animations : sobres ──────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0; transform: translateY(20px);
    transition: opacity calc(0.8s / var(--speed)) cubic-bezier(.2,.7,.2,1),
                transform calc(0.8s / var(--speed)) cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--rd, 0s);
  }
  [data-reveal].in { opacity: 1; transform: none; }
}

/* ── WhatsApp float ──────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1DA851;
  box-shadow: 0 12px 30px -10px rgba(29, 168, 81, 0.6);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 27px; height: 27px; color: #fff; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps .step:nth-child(3) .bar { left: 0; width: 100%; }
  .why-row, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding-inline: 5vw; }
  .nav-links {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; gap: 10px;
    background: var(--navy);
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
    --text: #F3F5FD; --muted: #A6B2D2;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 24px; padding: 12px 30px; font-family: var(--font-display); font-weight: 500; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps .step + .step { border-left: 0; padding-left: 0; }
  .steps .step + .step .bar { left: 0; width: 100%; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row.flip > .svc-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 24px; }
  .scroll-hint { display: none; }
}

/* ── Aperçus produits partagés (app preview tiles) ───── */
.prod-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pp-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.apptile { position: absolute; inset: 0; display: flex; flex-direction: column; background: radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--acc, var(--blue)), transparent 80%), transparent 60%), var(--ink-2); }
.apptile .bar { display: flex; align-items: center; gap: 6px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.apptile .bar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in oklab, var(--acc, var(--blue)), white 8%); opacity: 0.55; }
.apptile .bar b { margin-left: 9px; font-family: var(--font-body); font-weight: 700; font-size: 14.5px; color: var(--text); }
.apptile .body { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; align-content: start; }
.apptile .kpi { height: clamp(40px, 4.5vw, 56px); border-radius: 11px; background: color-mix(in oklab, var(--acc, var(--blue)), transparent 86%); border: 1px solid color-mix(in oklab, var(--acc, var(--blue)), transparent 68%); }
.apptile .wide { grid-column: 1 / -1; height: clamp(60px, 8vw, 96px); border-radius: 11px; border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in oklab, var(--acc, var(--blue)), transparent 88%), transparent); position: relative; overflow: hidden; }
.apptile .wide::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 14px; height: 44px; background: repeating-linear-gradient(90deg, color-mix(in oklab, var(--acc, var(--blue)), transparent 55%) 0 5px, transparent 5px 16px); -webkit-mask: linear-gradient(180deg, transparent, #000); mask: linear-gradient(180deg, transparent, #000); }

/* Photo dans un bloc visuel de service */
.svc-visual.photo { background: var(--ink-2); }
.svc-visual.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-visual.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(210deg, transparent 45%, rgba(11, 27, 62, 0.55)); }

/* ── Tarifs ──────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card.price { display: flex; flex-direction: column; padding: 30px 26px; }
.card.price .p-kick { font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: 0.03em; color: var(--blue); }
.card.price.devis .p-kick { color: var(--blue-2); }
.card.price .p-amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 16px 0 2px; }
.card.price .p-from { font-size: 12.5px; color: var(--muted); width: 100%; }
.card.price .p-amount b { font-family: var(--font-display); font-weight: 540; font-size: 34px; color: var(--text); line-height: 1; letter-spacing: -0.01em; }
.card.price .p-cur, .card.price .p-period { font-size: 13px; color: var(--muted); }
.card.price > p { color: var(--muted); font-size: 14.5px; margin-top: 12px; flex: 1; }
.card.price .btn { margin-top: 22px; width: 100%; }
.card.price.devis { background: radial-gradient(120% 120% at 50% -10%, rgba(46, 92, 230, 0.3), transparent 55%), var(--navy); border-color: transparent; }
.card.price.devis .p-amount b { color: #F8F9FE; }
.price-note { margin-top: 26px; font-size: 13.5px; color: var(--muted); text-align: center; }
@media (max-width: 1024px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }

/* ══ Accents « automatisation » (ex-néon, désormais laiton) ══ */
.badge-new {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  background: var(--brass);
  padding: 4px 11px; border-radius: 999px;
}

/* Carte premium : filet laiton discret au survol */
.card.lux:hover { border-color: color-mix(in oklab, var(--brass), transparent 45%); }
.card-icon.cy {
  background: color-mix(in oklab, var(--brass), transparent 90%);
  border-color: color-mix(in oklab, var(--brass), transparent 70%);
  color: var(--brass);
}

/* ── Bandeau "tech stack" ────────────────────────────── */
.tech-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tech-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--text);
  background: var(--panel); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 11px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.3s, transform 0.3s;
}
.tech-pill:hover { border-color: color-mix(in oklab, var(--brass), transparent 50%); transform: translateY(-2px); }
.tech-pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }

/* ── Bento grid ──────────────────────────────────────── */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(150px, auto); gap: 18px;
}
.bento .b {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.bento .b:hover {
  border-color: color-mix(in oklab, var(--brass), transparent 55%);
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}
.bento .b.x3 { grid-column: span 3; }
.bento .b.x2 { grid-column: span 2; }
.bento .b.x4 { grid-column: span 4; }
.bento .b.tall { grid-row: span 2; }
.bento .b .b-ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in oklab, var(--brass), transparent 90%);
  border: 1px solid color-mix(in oklab, var(--brass), transparent 72%);
  color: var(--brass); margin-bottom: 18px;
}
.bento .b .b-ico svg { width: 22px; height: 22px; }
.bento .b h4 { font-size: 19px; margin-bottom: 9px; }
.bento .b p { color: var(--muted); font-size: 14.5px; }
.bento .b .halo { display: none; }
@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .b.x3, .bento .b.x2, .bento .b.x4 { grid-column: span 1; } .bento .b.tall { grid-row: span 1; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }

/* ── Diagramme de workflow : panneau marine ──────────── */
.flow {
  position: relative;
  background:
    radial-gradient(100% 120% at 50% -20%, rgba(46, 92, 230, 0.22), transparent 55%),
    var(--navy);
  border: 0; border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
}
.flow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(160,186,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,186,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 80%);
}
.flow-track {
  position: relative; z-index: 1;
  display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap;
  overflow-x: auto; padding-bottom: 6px;
}
.flow-node {
  flex: 1 0 0; min-width: 150px;
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 16px;
  position: relative;
}
.flow-node + .flow-node { margin-left: 44px; }
.flow-node + .flow-node::before {
  content: ""; position: absolute; left: -44px; top: 50%; width: 44px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--brass-2));
}
.flow-node + .flow-node::after {
  content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 7px solid var(--brass-2);
}
.flow-node .fn-ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(231, 185, 104, 0.12);
  border: 1px solid rgba(231, 185, 104, 0.35);
  color: var(--brass-2);
}
.flow-node .fn-ico svg { width: 19px; height: 19px; }
.flow-node b { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--text); }
.flow-node span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.flow-node.trigger { border-color: rgba(231, 185, 104, 0.5); }
@media (max-width: 760px) {
  .flow-track { flex-direction: column; }
  .flow-node + .flow-node { margin-left: 0; margin-top: 40px; }
  .flow-node + .flow-node::before { left: 50%; top: -40px; width: 1.5px; height: 40px; background: linear-gradient(180deg, transparent, var(--brass-2)); }
  .flow-node + .flow-node::after { left: 50%; top: -12px; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--brass-2); border-bottom: 0; }
}

/* ── Cas d'usage automatisation ──────────────────────── */
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.use {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-1);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.use:hover {
  border-color: color-mix(in oklab, var(--blue), transparent 60%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.use .u-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.use .u-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in oklab, var(--blue), transparent 92%); border: 1px solid color-mix(in oklab, var(--blue), transparent 78%); color: var(--blue); }
.use .u-ico svg { width: 20px; height: 20px; }
.use h4 { font-size: 17.5px; }
.use ul { list-style: none; display: grid; gap: 9px; margin-top: 6px; }
.use li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); }
.use li::before { content: ""; flex-shrink: 0; width: 15px; height: 15px; margin-top: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B7893A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; }
@media (max-width: 1024px) { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .use-grid { grid-template-columns: 1fr; } }

/* ── Bande "résultats / metrics" ─────────────────────── */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line); }
.metric {
  text-align: center; padding: 34px 20px;
  background: transparent; border: 0;
}
.metric + .metric { border-left: 1px solid var(--line); }
.metric b {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 3.6vw, 48px);
  color: var(--blue); letter-spacing: -0.01em;
  background: none; -webkit-text-fill-color: currentColor;
}
.metric span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 760px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ── Offres packagées ────────────────────────────────── */
.offres-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card.price .p-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--brass);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; }
.card.price .p-rec { font-size: 13px; color: var(--blue); font-weight: 600; margin: 2px 0 0; }
.card.price .p-rec b { font-weight: 700; }
@media (max-width: 1024px) { .offres-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .offres-grid { grid-template-columns: 1fr; } }

/* ── Divers hérités ──────────────────────────────────── */
.fam-head { margin-top: 30px; }
.hero .halo, .ring-glow { opacity: 0.5; }
