/* ==========================================================================
   KaribWeb Studio — feuille de style
   Palette extraite du logo : marine #12243F, soleil #FEB633, mangue #FE902F,
   flamme #FA6C2B, corail #F2503B, hibiscus #CA2F50 (+ lagon en accent)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-950: #0A1424;
  --navy-900: #12243F;
  --navy-800: #1A3157;
  --navy-700: #274770;
  --navy-200: #C9D4E5;
  --navy-100: #E6ECF5;
  --sun: #FEB633;
  --mango: #FE902F;
  --flame: #FA6C2B;
  --coral: #F2503B;
  --hibiscus: #CA2F50;
  --lagoon: #19B5B0;
  --lagoon-deep: #0B7A75;
  --sand-50: #FFFBF5;
  --sand-100: #FFF3E4;
  --sand-200: #FBE6CC;

  --grad-sunset: linear-gradient(120deg, var(--sun) 0%, var(--mango) 30%, var(--flame) 55%, var(--coral) 80%, var(--hibiscus) 100%);
  --grad-btn: linear-gradient(120deg, var(--sun) 0%, var(--mango) 45%, var(--flame) 100%);
  --grad-text-light: linear-gradient(100deg, #E8590C 0%, #E0412F 55%, #B42548 100%);
  --grad-text-dark: linear-gradient(100deg, var(--sun) 0%, var(--mango) 40%, var(--coral) 100%);

  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 420ms;

  --header-h: 76px;

  /* Thème clair (sémantique) */
  --bg: var(--sand-50);
  --bg-alt: var(--sand-100);
  --surface: #FFFFFF;
  --surface-2: #FFF8EE;
  --text: var(--navy-900);
  --text-muted: #4A5A75;
  --border: rgba(18, 36, 63, 0.12);
  --border-strong: rgba(18, 36, 63, 0.24);
  --accent-text: #C2410C;
  --ok-text: #047857;
  --err-text: #B91C1C;
  --err-border: #DC2626;
  --grad-text: var(--grad-text-light);
  --focus: var(--navy-900);
  --chip-bg: rgba(255, 255, 255, 0.72);
  --header-bg: rgba(255, 251, 245, 0.8);
  --shadow-sm: 0 1px 2px rgba(18, 36, 63, 0.05), 0 4px 12px rgba(18, 36, 63, 0.05);
  --shadow: 0 12px 32px -12px rgba(18, 36, 63, 0.22);
  --shadow-lg: 0 32px 64px -24px rgba(18, 36, 63, 0.32);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5A75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0A1424;
  --bg-alt: #0D1A2F;
  --surface: #12243F;
  --surface-2: #172C4C;
  --text: #F6F1EA;
  --text-muted: #A9B6CC;
  --border: rgba(230, 236, 245, 0.1);
  --border-strong: rgba(230, 236, 245, 0.22);
  --accent-text: #FFB25B;
  --ok-text: #6EE7B7;
  --err-text: #FCA5A5;
  --err-border: #F87171;
  --grad-text: var(--grad-text-dark);
  --focus: var(--sun);
  --chip-bg: rgba(18, 36, 63, 0.7);
  --header-bg: rgba(10, 20, 36, 0.78);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.7);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B6CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* Sections toujours « nuit » (Pourquoi, Contact) */
.section--night,
.contact {
  --text: #F6F1EA;
  --text-muted: #B4C0D4;
  --border: rgba(230, 236, 245, 0.12);
  --border-strong: rgba(230, 236, 245, 0.26);
  --accent-text: #FFB25B;
  --grad-text: var(--grad-text-dark);
  --focus: var(--sun);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

::selection { background: var(--mango); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

.only-dark { display: none; }
[data-theme="dark"] .only-light { display: none; }
[data-theme="dark"] .only-dark { display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 3. Boutons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75em 1.4em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: translate var(--dur) var(--ease-out), transform var(--dur-fast) ease,
    box-shadow var(--dur) ease, background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-btn);
  color: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(250, 108, 43, 0.65);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(250, 108, 43, 0.8); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }

.btn-sm { min-height: 44px; padding: 0.55em 1.15em; font-size: 0.95rem; }
.btn-lg { min-height: 56px; padding: 0.9em 1.7em; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--dur) ease, background-color var(--dur) ease, transform var(--dur-fast) ease;
}
.icon-btn:hover { border-color: var(--border-strong); }
.icon-btn:active { transform: scale(0.94); }

/* ---------- 4. En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color var(--dur) ease, box-shadow var(--dur) ease, backdrop-filter var(--dur) ease;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 12px;
}
.brand-mark { width: auto; height: 42px; transition: transform var(--dur-slow) var(--ease-spring); }
.brand-word { width: auto; height: 30px; }
.brand:hover .brand-mark { transform: rotate(-8deg) translateY(-2px); }

.main-nav { justify-self: center; }
.main-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.main-nav a:hover { color: var(--text); background: var(--chip-bg); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 3px;
  background: var(--grad-btn);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease-out);
}
.main-nav a.is-active { color: var(--text); }
.main-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle .icon { width: 20px; height: 20px; transition: transform var(--dur-slow) var(--ease-spring), opacity var(--dur) ease; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle:hover .icon { transform: rotate(25deg); }

.menu-toggle { display: none; }

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--grad-sunset);
  transform-origin: left center;
  transform: scaleX(0);
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 clamp(16px, 5vw, 32px) 32px;
  background: var(--bg);
  overflow-y: auto;
}
.mobile-menu.is-open { animation: menu-in var(--dur-slow) var(--ease-out); }
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.mobile-menu-title {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.mobile-menu-links { margin: 0; padding: 0; list-style: none; }
.mobile-menu-links a {
  display: flex;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.mobile-menu.is-open .mobile-menu-links li { animation: rise-in 500ms var(--ease-out) both; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(2) { animation-delay: 40ms; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(3) { animation-delay: 80ms; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(4) { animation-delay: 120ms; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(5) { animation-delay: 160ms; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(6) { animation-delay: 200ms; }

.no-scroll { overflow: hidden; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 150px;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 88% 8%, rgba(254, 182, 51, 0.2), transparent 60%),
    radial-gradient(900px 520px at -5% 105%, rgba(25, 181, 176, 0.12), transparent 60%),
    var(--bg);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(1100px 620px at 88% 8%, rgba(250, 108, 43, 0.2), transparent 60%),
    radial-gradient(900px 520px at -5% 105%, rgba(25, 181, 176, 0.14), transparent 60%),
    var(--bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow--sun {
  top: -160px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(254, 182, 51, 0.35), rgba(250, 108, 43, 0.12) 45%, transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero-glow--lagoon {
  bottom: -200px; left: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(25, 181, 176, 0.22), transparent 65%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.hero .eyebrow {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--chip-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.eyebrow--light { color: var(--sun); }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lagoon);
  animation: pulse 2.2s ease-out infinite;
}

.hero-title {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 0.9rem + 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-line { display: block; }
.hero-rotator { min-height: 1.1em; white-space: nowrap; }
.rotator-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.caret {
  display: inline-block;
  width: 0.07em;
  height: 0.82em;
  margin-left: 0.06em;
  border-radius: 2px;
  background: var(--flame);
  vertical-align: -0.04em;
  animation: blink 1s steps(1) infinite;
}

.lead {
  max-width: 54ch;
  margin-bottom: 32px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--text-muted);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--lagoon-deep); stroke-width: 2.5; }
[data-theme="dark"] .hero-points .icon { color: var(--lagoon); }

/* Visuel colibri */
.hero-visual {
  --mx: 0;
  --my: 0;
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orbit--outer {
  inset: 3%;
  border: 1.5px dashed var(--border-strong);
  animation: spin 48s linear infinite;
}
.orbit--inner {
  inset: 20%;
  border: 1px solid var(--border);
  animation: spin 70s linear infinite reverse;
}
.orbit-chip {
  position: absolute;
  translate: -50% -50%;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  animation: spin 48s linear infinite reverse;
}
.orbit-chip--1 { top: 0; left: 50%; }
.orbit-chip--2 { top: 50%; left: 100%; }
.orbit-chip--3 { top: 100%; left: 50%; }
.orbit-chip--4 { top: 50%; left: 0; }

.hero-sun {
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(254, 182, 51, 0.5), rgba(250, 108, 43, 0.22) 48%, rgba(202, 47, 80, 0.06) 68%, transparent 71%);
  translate: calc(var(--mx) * -8px) calc(var(--my) * -8px);
  transition: translate 600ms var(--ease-out);
}

.hero-bird {
  position: absolute;
  left: 10%;
  top: 17%;
  width: 80%;
  filter: drop-shadow(0 28px 36px rgba(250, 108, 43, 0.28));
  translate: calc(var(--mx) * 22px) calc(var(--my) * 16px);
  transition: translate 500ms var(--ease-out);
  animation: hover-float 6s ease-in-out infinite;
}
.hero-bird.only-dark { display: none; }
[data-theme="dark"] .hero-bird.only-light { display: none; }
[data-theme="dark"] .hero-bird.only-dark { display: block; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  line-height: 1.3;
  translate: calc(var(--mx) * -12px) calc(var(--my) * -10px);
  transition: translate 700ms var(--ease-out);
  animation: card-float 7s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: 0.92rem; }
.float-card span { color: var(--text-muted); }
.float-card > .icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 11px;
  background: var(--grad-btn);
  color: var(--navy-900);
}
.float-card--web { top: 10%; left: -6%; }
.float-card--app { top: 50%; right: -8%; animation-delay: -2.4s; }
.float-card--app > .icon { background: linear-gradient(135deg, var(--coral), var(--hibiscus)); color: #fff; }
.float-card--auto { bottom: 4%; left: 6%; animation-delay: -4.6s; }
.float-card--auto > .icon { background: linear-gradient(135deg, #7BE3DE, var(--lagoon)); }

.meter {
  display: block;
  width: 92px;
  height: 6px;
  margin-top: 6px;
  border-radius: 6px;
  background: var(--border);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--grad-sunset);
  transform-origin: left center;
  animation: meter 3.6s var(--ease-out) infinite;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 104px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  translate: -50% 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 12px;
}
.scroll-cue-mouse {
  position: relative;
  width: 24px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 14px;
}
.scroll-cue-mouse::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--flame);
  animation: wheel 1.8s var(--ease-out) infinite;
}

.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  pointer-events: none;
}
.wave-back { fill: var(--mango); opacity: 0.22; }
.wave-front { fill: var(--navy-900); }

/* ---------- 6. Bandeau défilant ---------- */
.marquee {
  position: relative;
  margin-top: -1px;
  padding: 18px 0 22px;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--sand-100);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  font-weight: 600;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.marquee-track > * { margin-right: 28px; }
.marquee-track .icon { width: 0.85em; height: 0.85em; fill: var(--mango); stroke: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- 7. Sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 136px) 0; }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  max-width: none;
}
.section-head--split > div { max-width: 660px; }
.section-head--split > .section-sub { max-width: 440px; margin-top: 0; }

.section-title {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-sub {
  max-width: 60ch;
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ---------- 8. Services (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  --card-grad: var(--grad-btn);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(440px circle at var(--sx, 50%) var(--sy, 0%), rgba(254, 144, 47, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.service-card:hover::before { opacity: 1; }

.service-card--web { grid-column: span 2; }
.service-card--auto { grid-column: span 2; }
.service-card--app { --card-grad: linear-gradient(135deg, #FF9B7A, var(--coral)); }
.service-card--game { --card-grad: linear-gradient(135deg, var(--sun), var(--flame)); }
.service-card--auto { --card-grad: linear-gradient(135deg, #8BE9E4, var(--lagoon)); }

.service-card--web,
.service-card--auto {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-auto-rows: min-content;
  column-gap: clamp(24px, 3vw, 40px);
  row-gap: 14px;
}
.service-card--web > *,
.service-card--auto > * { grid-column: 1; }
.service-card--web > .service-art,
.service-card--auto > .service-art { grid-column: 2; grid-row: 1 / span 5; align-self: center; }

.service-top { display: flex; align-items: center; justify-content: space-between; }
.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--card-grad);
  color: var(--navy-900);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.service-icon .icon { width: 26px; height: 26px; }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.06); }
.service-num { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }
.service-card h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); }
.service-card p { color: var(--text-muted); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.84rem;
  font-weight: 500;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  border-radius: 8px;
}
.service-link .icon { transition: transform var(--dur) var(--ease-out); }
.service-link:hover .icon { transform: translateX(4px); }
.service-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Illustration navigateur */
.service-art--browser {
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-out);
}
.service-card:hover .service-art--browser { transform: translateY(-4px) rotate(-1deg); }
.sa-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.sa-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.sa-bar i:nth-child(2) { background: var(--sun); }
.sa-bar i:nth-child(3) { background: var(--lagoon); }
.sa-hero {
  position: relative;
  flex: 1;
  margin: 14px 14px 12px;
  border-radius: 10px;
  background: var(--grad-sunset);
  overflow: hidden;
}
.sa-hero::before,
.sa-hero::after {
  content: "";
  position: absolute;
  left: 14px;
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
}
.sa-hero::before { top: 18px; width: 46%; height: 12px; }
.sa-hero::after { top: 40px; width: 30%; background: rgba(255, 255, 255, 0.55); }
.sa-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 14px 14px; }
.sa-row span {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--surface-2) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}

/* Illustration flux d'automatisation */
.service-art--flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px;
}
.node {
  position: relative;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.node--a::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lagoon);
  vertical-align: 1px;
}
.node--b { animation: node-glow 2.4s ease-in-out infinite; animation-delay: 1s; }
.node--c { animation: node-glow 2.4s ease-in-out infinite; animation-delay: 2.2s; }
.link {
  position: relative;
  width: 20px;
  height: 40px;
  background: linear-gradient(180deg, var(--border-strong) 50%, transparent 0) center / 2px 10px repeat-y;
  overflow: hidden;
}
.link i { position: absolute; inset: 0; animation: travel 2.4s var(--ease-out) infinite; }
.link--2 i { animation-delay: 1.2s; }
.link i::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 4px rgba(250, 108, 43, 0.22);
}

/* ---------- 9. Pourquoi (nuit) ---------- */
.section--night {
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--text);
}
.section--night::before {
  content: "";
  position: absolute;
  top: -260px; left: -220px;
  z-index: -1;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 181, 176, 0.18), transparent 65%);
}
.night-glow {
  position: absolute;
  right: -240px; bottom: -320px;
  z-index: -1;
  width: 760px; height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 108, 43, 0.28), rgba(202, 47, 80, 0.1) 45%, transparent 68%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: 32px 24px;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt { color: var(--text-muted); font-weight: 500; }
.stat dd {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat dd span,
.stat dd small {
  background: var(--grad-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat dd small { font-size: 0.55em; margin-left: 2px; }

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.value {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) ease, border-color var(--dur) ease;
}
.value:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.07); border-color: var(--border-strong); }
.value-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(254, 144, 47, 0.14);
  color: var(--sun);
}
.value-icon .icon { width: 24px; height: 24px; }
.value h3 { margin-bottom: 8px; font-size: 1.2rem; }
.value p { font-size: 0.98rem; color: var(--text-muted); }

/* ---------- 10. Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, transform var(--dur-fast) ease;
}
.filter:hover { border-color: var(--text); }
.filter:active { transform: scale(0.96); }
.filter.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--sand-50); }
[data-theme="dark"] .filter.is-active { background: var(--grad-btn); border-color: transparent; color: var(--navy-900); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-item { transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out); }
.work-item.is-out { opacity: 0; transform: scale(0.95) translateY(8px); }

.work-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.work-card:focus-visible { outline-offset: 4px; border-radius: var(--radius-lg); }

.work-visual,
.dlg-visual {
  --bg1: var(--sun);
  --bg2: var(--coral);
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(140deg, var(--bg1), var(--bg2));
}
.work-visual { aspect-ratio: 4 / 3; }
.work-visual::before,
.dlg-visual::before {
  content: "";
  position: absolute;
  top: -30%; right: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
}

.t-sunset { --bg1: #FFC65C; --bg2: #F2503B; }
.t-palm { --bg1: #3CCB8B; --bg2: #0B7A75; }
.t-mango { --bg1: #FFE08A; --bg2: #FA6C2B; }
.t-night { --bg1: #335A8C; --bg2: #0A1424; }
.t-lagoon { --bg1: #5FE0D6; --bg2: #12507A; }
.t-hibiscus { --bg1: #FF8A73; --bg2: #CA2F50; }

.work-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 20, 36, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.work-open {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(10, 20, 36, 0.25);
  opacity: 0;
  transform: scale(0.6) rotate(-45deg);
  transition: opacity var(--dur) ease, transform var(--dur-slow) var(--ease-spring);
}
.work-card:hover .work-open,
.work-card:focus-visible .work-open { opacity: 1; transform: none; }

.work-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.work-cat { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.work-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.work-desc { font-size: 0.95rem; color: var(--text-muted); }

/* Maquettes CSS */
.mock-browser {
  position: absolute;
  top: 18%; left: 11%; right: 11%; bottom: -6%;
  display: flex;
  flex-direction: column;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 24px 48px rgba(10, 20, 36, 0.28);
  overflow: hidden;
  transition: transform 600ms var(--ease-out);
}
.work-card:hover .mock-browser { transform: translateY(-8px); }
.mb-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #F3F4F6; }
.mb-bar i { width: 7px; height: 7px; border-radius: 50%; background: #F2503B; }
.mb-bar i:nth-child(2) { background: #FEB633; }
.mb-bar i:nth-child(3) { background: #19B5B0; }
.mb-url { flex: 1; height: 8px; margin-left: 8px; border-radius: 4px; background: #E5E7EB; }
.mb-hero { position: relative; display: block; height: 52%; margin: 10px; border-radius: 8px; background: linear-gradient(120deg, var(--bg1), var(--bg2)); }
.mb-title, .mb-text, .mb-btn { position: absolute; left: 12px; display: block; border-radius: 4px; }
.mb-title { top: 14px; width: 52%; height: 10px; background: rgba(255, 255, 255, 0.95); }
.mb-text { top: 32px; width: 36%; height: 6px; background: rgba(255, 255, 255, 0.65); }
.mb-btn { bottom: 12px; width: 22%; height: 12px; border-radius: 999px; background: var(--navy-900); }
.mb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 10px; }
.mb-cards span { height: 34px; border-radius: 6px; background: #F3F4F6; }

.mock-phone {
  position: absolute;
  top: 12%; left: 50%;
  display: block;
  width: 36%;
  aspect-ratio: 9 / 18;
  padding: 6px;
  border-radius: 24px;
  background: var(--navy-950);
  box-shadow: 0 24px 48px rgba(10, 20, 36, 0.35);
  translate: -50% 0;
  transition: transform 600ms var(--ease-out);
}
.work-card:hover .mock-phone { transform: translateY(-8px) rotate(-3deg); }
.mp-screen { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 8px 8px; border-radius: 19px; background: #fff; overflow: hidden; }
.mp-notch { position: absolute; top: 9px; left: 50%; z-index: 1; width: 30%; height: 6px; margin-left: -15%; border-radius: 6px; background: var(--navy-950); }
.mp-head { display: block; height: 8px; width: 60%; border-radius: 4px; background: var(--navy-900); }
.mp-card { display: block; height: 30%; border-radius: 10px; background: linear-gradient(135deg, var(--bg1), var(--bg2)); }
.mp-row { display: block; height: 14%; border-radius: 8px; background: #F3F4F6; }
.mp-row.short { height: 10%; width: 80%; }
.mp-tabbar { display: flex; justify-content: space-around; margin-top: auto; padding-top: 6px; border-top: 1px solid #EEE; }
.mp-tabbar i { width: 10px; height: 10px; border-radius: 3px; background: #D1D5DB; }
.mp-tabbar i:first-child { background: var(--bg2); }
.mock-bubble {
  position: absolute;
  top: 30%; right: 9%;
  display: block;
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(10, 20, 36, 0.2);
  animation: card-float 6s ease-in-out infinite;
}
.mock-bubble--left { top: auto; bottom: 18%; right: auto; left: 8%; border-radius: 14px 14px 14px 4px; animation-delay: -3s; }

.mock-game { position: absolute; inset: 0; display: block; }
.mg-sun { position: absolute; top: 14%; right: 14%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #FFF4C2; box-shadow: 0 0 40px rgba(255, 244, 194, 0.9); }
.mg-cloud { position: absolute; display: block; height: 12%; border-radius: 999px; background: rgba(255, 255, 255, 0.75); animation: cloud 14s linear infinite; }
.mg-cloud.c1 { top: 18%; left: 8%; width: 26%; }
.mg-cloud.c2 { top: 36%; left: 52%; width: 18%; animation-duration: 18s; animation-delay: -6s; }
.mg-bird { position: absolute; top: 34%; left: 22%; width: 34%; filter: drop-shadow(0 10px 14px rgba(10, 20, 36, 0.25)); animation: hover-float 2.6s ease-in-out infinite; }
.mg-coin { position: absolute; display: block; width: 6%; aspect-ratio: 1; border-radius: 50%; background: #FFE08A; border: 3px solid #F59E0B; animation: coin 1.8s ease-in-out infinite; }
.mg-coin.k1 { top: 42%; left: 64%; }
.mg-coin.k2 { top: 36%; left: 74%; animation-delay: -0.4s; }
.mg-coin.k3 { top: 42%; left: 84%; animation-delay: -0.8s; }
.mg-ground { position: absolute; left: 0; right: 0; bottom: 0; display: block; height: 18%; background: linear-gradient(180deg, #2BB673, #0B7A75); }
.mg-ground::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 12px; background: radial-gradient(circle at 10px 12px, #2BB673 10px, transparent 11px) 0 0 / 20px 12px repeat-x; }
.mg-score { position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 20, 36, 0.6); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; }

.mock-flow { position: absolute; inset: 0; display: block; }
.mf-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.mf-lines path { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 2; stroke-dasharray: 6 6; animation: dash 1.6s linear infinite; }
.mf-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}
.mf-node::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--lagoon)); }
.mf-node.n1 { top: 20%; left: 8%; }
.mf-node.n2 { top: 44%; left: 50%; translate: -50% 0; --dot: var(--mango); animation: node-pop 3s ease-in-out infinite; animation-delay: 0.8s; }
.mf-node.n3 { bottom: 18%; right: 8%; --dot: var(--coral); animation: node-pop 3s ease-in-out infinite; animation-delay: 1.8s; }

/* Fenêtre projet */
.project-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.project-dialog[open] { animation: dialog-in var(--dur-slow) var(--ease-out); }
.project-dialog::backdrop {
  background: rgba(10, 20, 36, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.dlg-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dlg-visual { min-height: 340px; }
.dlg-close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.dlg-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 40px); }
.dlg-cat { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.dlg-body h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); padding-right: 40px; }
.dlg-desc { color: var(--text-muted); }
.dlg-body h3 { margin-top: 6px; font-size: 1.05rem; }
.dlg-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dlg-list li { display: flex; gap: 10px; align-items: flex-start; }
.dlg-list .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--lagoon-deep); stroke-width: 2.5; }
[data-theme="dark"] .dlg-list .icon { color: var(--lagoon); }
.dlg-body .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- 11. Méthode ---------- */
.method {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.method-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.method-intro .btn { margin-top: 28px; }

.steps-wrap { position: relative; }
.steps-line {
  position: absolute;
  top: 32px; bottom: 32px; left: 31px;
  width: 2px;
  border-radius: 2px;
  background: var(--border-strong);
  overflow: hidden;
}
.steps-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--sun), var(--flame), var(--hibiscus));
  transform-origin: top center;
  transform: scaleY(0);
}
.steps { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; align-items: start; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease, transform var(--dur-slow) var(--ease-spring);
}
.step.is-active .step-num { border-color: transparent; background: var(--grad-btn); color: var(--navy-900); transform: scale(1.06); }
.step > div {
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.step.is-active > div { border-color: var(--border-strong); box-shadow: var(--shadow); }
.step h3 { margin-bottom: 6px; font-size: 1.25rem; }
.step p { color: var(--text-muted); }

/* ---------- 12. Estimateur ---------- */
.estimator {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.est-form { display: flex; flex-direction: column; gap: 20px; }
.est-block {
  container-type: inline-size;
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.est-block legend {
  float: left;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}
.est-block legend + * { clear: both; }
.est-step {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--sand-50);
  font-size: 0.9rem;
}
[data-theme="dark"] .est-step { background: var(--grad-btn); color: var(--navy-900); }

.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@container (max-width: 560px) {
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.type-card { position: relative; display: block; cursor: pointer; }
.type-card input,
.chip input,
.seg input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.type-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 104px;
  padding: 16px 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
  transition: border-color var(--dur) ease, background-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur-fast) ease;
}
.type-card-inner .icon { width: 28px; height: 28px; transition: transform var(--dur-slow) var(--ease-spring); }
.type-card:hover .type-card-inner { border-color: var(--text); }
.type-card input:checked + .type-card-inner {
  border-color: var(--flame);
  background: color-mix(in srgb, var(--mango) 13%, var(--surface));
  box-shadow: 0 0 0 3px rgba(250, 108, 43, 0.2);
}
.type-card input:checked + .type-card-inner .icon { transform: scale(1.15) rotate(-6deg); }
.type-card input:focus-visible + .type-card-inner,
.chip input:focus-visible + span,
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-block; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, transform var(--dur-fast) ease;
}
.chip .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.chip .i-on { display: none; }
.chip:hover span { border-color: var(--text); }
.chip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--sand-50); }
.chip input:checked + span .i-on { display: block; color: var(--sun); }
.chip input:checked + span .i-off { display: none; }
.chip input:active + span { transform: scale(0.96); }
[data-theme="dark"] .chip input:checked + span { background: var(--grad-btn); border-color: transparent; color: var(--navy-900); }
[data-theme="dark"] .chip input:checked + span .i-on { color: var(--navy-900); }
.chip-grid.is-swapping { animation: fade-swap 360ms var(--ease-out); }

.range-wrap { padding-top: 4px; }
.range {
  --fill: 50%;
  width: 100%;
  height: 8px;
  margin: 10px 0 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--flame) var(--fill), var(--border-strong) var(--fill));
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  border: 4px solid var(--flame);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(250, 108, 43, 0.4);
  -webkit-appearance: none;
  appearance: none;
  transition: transform var(--dur-fast) ease;
}
.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 4px solid var(--flame);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(250, 108, 43, 0.4);
}
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline: 3px solid var(--focus); outline-offset: 8px; }
.range-labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }
.range-current { margin-top: 12px; font-size: 0.95rem; }

.seg {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
}
.seg label { position: relative; }
.seg span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--dur) ease, color var(--dur) ease, box-shadow var(--dur) ease;
}
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .seg input:checked + span { background: var(--surface-2); }

.est-result { position: sticky; top: calc(var(--header-h) + 24px); }
.est-result-inner {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--navy-900);
  color: #F6F1EA;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
[data-theme="dark"] .est-result-inner { border: 1px solid rgba(230, 236, 245, 0.12); }
.est-result-inner::before {
  content: "";
  position: absolute;
  top: -140px; right: -120px;
  z-index: -1;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 108, 43, 0.4), transparent 65%);
}
.est-kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); }
.est-price {
  margin: 10px 0 14px;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform var(--dur) var(--ease-spring);
}
.est-price.is-bump { transform: scale(1.04); }
.est-price .nowrap { white-space: nowrap; }
.est-duration { display: flex; align-items: center; gap: 8px; color: #C9D4E5; }
.est-duration strong { color: #fff; }
.est-duration .icon { color: var(--sun); }
.est-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
}
.est-summary li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: #E6ECF5; }
.est-summary .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--sun); stroke-width: 2.5; }
.est-note { margin-top: 14px; font-size: 0.8rem; color: #A9B6CC; }

/* ---------- 13. FAQ ---------- */
.faq-wrap { max-width: 880px; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.acc-item.is-open { border-color: var(--border-strong); box-shadow: var(--shadow); }
.acc-item h3 { margin: 0; font-size: inherit; letter-spacing: 0; }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 20px 24px;
  border: 0;
  border-radius: inherit;
  background: none;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.acc-trigger .icon { width: 22px; height: 22px; color: var(--accent-text); transition: transform var(--dur) var(--ease-out); }
.acc-trigger[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc-panel p { padding: 0 24px 22px; color: var(--text-muted); }
.acc-panel a { color: var(--accent-text); font-weight: 600; }
.js .acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.js .acc-panel > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear var(--dur-slow);
}
.js .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.js .acc-item.is-open .acc-panel > div { visibility: visible; transition-delay: 0s; }

/* ---------- 14. Contact ---------- */
.contact {
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--text);
}
.contact-glow {
  position: absolute;
  left: -260px; bottom: -300px;
  z-index: -1;
  width: 760px; height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 182, 51, 0.22), rgba(242, 80, 59, 0.08) 45%, transparent 68%);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-list { display: flex; flex-direction: column; gap: 14px; margin: 32px 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--sun); text-decoration: underline; text-underline-offset: 4px; }
.contact-ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sun);
}
.socials { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.socials a:hover { background: var(--sun); border-color: var(--sun); color: var(--navy-900); transform: translateY(-3px); }

.contact-form {
  --text: var(--navy-900);
  --text-muted: #4A5A75;
  --border: rgba(18, 36, 63, 0.14);
  --border-strong: rgba(18, 36, 63, 0.3);
  --accent-text: #C2410C;
  --focus: var(--navy-900);
  --ok-text: #047857;
  --err-text: #B91C1C;
  --err-border: #DC2626;
  --form-surface: #FFFFFF;
  --input-bg: var(--sand-50);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5A75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--form-surface);
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .contact-form {
  --text: #F6F1EA;
  --text-muted: #A9B6CC;
  --border: rgba(230, 236, 245, 0.12);
  --border-strong: rgba(230, 236, 245, 0.26);
  --accent-text: #FFB25B;
  --focus: var(--sun);
  --ok-text: #6EE7B7;
  --err-text: #FCA5A5;
  --err-border: #F87171;
  --form-surface: var(--navy-950);
  --input-bg: var(--navy-900);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B6CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  border: 1px solid rgba(230, 236, 245, 0.1);
}

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 0.95rem; font-weight: 600; }
.req { color: var(--accent-text); }
.opt { font-weight: 400; color: var(--text-muted); }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background-color: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field select {
  padding-right: 44px;
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover { border-color: var(--text-muted); }
.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 4px rgba(250, 108, 43, 0.22);
}
.field [aria-invalid="true"] { border-color: var(--err-border) !important; }
.field-hint { font-size: 0.85rem; color: var(--text-muted); }
.field-error { display: none; font-size: 0.875rem; font-weight: 500; color: var(--err-text); }
.field-error:not(:empty) { display: block; }

.field--check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: start;
}
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--flame); cursor: pointer; }
.field--check label { font-size: 0.92rem; font-weight: 400; color: var(--text-muted); cursor: pointer; }
.field--check .field-error { grid-column: 1 / -1; }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
[data-submit].is-loading { pointer-events: none; opacity: 0.85; }
[data-submit].is-loading .spinner { display: inline-block; }
[data-submit].is-loading .icon { display: none; }

.form-status { min-height: 1.5em; font-size: 0.95rem; font-weight: 500; }
.form-status.is-success { color: var(--ok-text); }
.form-status.is-error { color: var(--err-text); }

/* ---------- 15. Pied de page ---------- */
.site-footer { padding: 72px 0 28px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-logo { width: auto; height: 46px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; color: var(--text-muted); }
.footer-col h2 { margin-bottom: 14px; font-size: 1rem; letter-spacing: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.footer-col a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.footer-col a:not(.btn):hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-col p { margin-bottom: 16px; color: var(--text-muted); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-bottom ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--grad-btn);
  color: var(--navy-900);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover .icon { animation: nudge-up 600ms var(--ease-out); }

/* ---------- 16. Apparitions au scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Entrée du hero : pur CSS, ne dépend pas du JavaScript */
[data-intro] { animation: rise-in 900ms var(--ease-out) both; }
.hero-copy > [data-intro]:nth-child(2) { animation-delay: 90ms; }
.hero-copy > [data-intro]:nth-child(3) { animation-delay: 180ms; }
.hero-copy > [data-intro]:nth-child(4) { animation-delay: 270ms; }
.hero-copy > [data-intro]:nth-child(5) { animation-delay: 360ms; }
.hero-visual[data-intro] { animation: intro-zoom 1200ms var(--ease-out) 200ms both; }
@keyframes intro-zoom {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* Transition de thème (View Transitions) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- 17. Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 181, 176, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(25, 181, 176, 0); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.08); }
}
@keyframes hover-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes meter {
  0% { transform: scaleX(0.05); }
  60%, 100% { transform: scaleX(1); }
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  80%, 100% { transform: translateY(12px); opacity: 0; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes travel { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes node-glow {
  0%, 100% { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
  40% { box-shadow: 0 0 0 4px rgba(250, 108, 43, 0.18); border-color: var(--flame); }
}
@keyframes node-pop {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.08); }
  40% { transform: scale(1); }
}
@keyframes cloud { from { transform: translateX(0); } 50% { transform: translateX(14px); } to { transform: translateX(0); } }
@keyframes coin {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(-6px) scaleX(0.6); }
}
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-swap {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes nudge-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-inner { grid-template-columns: auto 1fr; }
  .header-actions { justify-self: end; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding-bottom: 130px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-top: 8px; }
  .scroll-cue { display: none; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .method { grid-template-columns: 1fr; }
  .method-intro { position: static; }

  .estimator { grid-template-columns: 1fr; }
  .est-result { position: static; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .service-card--web,
  .service-card--auto { display: flex; }
  .service-card--web > .service-art,
  .service-card--auto > .service-art { order: 4; margin: 6px 0 4px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }

  .dlg-inner { grid-template-columns: 1fr; }
  .dlg-visual { min-height: 240px; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .header-cta { display: none; }
  .brand-mark { height: 36px; }
  .brand-word { height: 26px; }

  .bento { grid-template-columns: 1fr; }
  .service-card--web,
  .service-card--auto { grid-column: auto; }

  .hero-ctas .btn { flex: 1 1 100%; }
  .float-card { font-size: 0.72rem; padding: 8px 12px 8px 8px; }
  .float-card > .icon { width: 32px; height: 32px; padding: 7px; }
  .float-card--web { left: -2%; }
  .float-card--app { right: -2%; }
  .orbit-chip { font-size: 0.72rem; padding: 6px 10px; }

  .work-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr; }
  .steps-line { left: 23px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .step-num { width: 48px; height: 48px; font-size: 0.95rem; }
  .step > div { padding: 18px 20px; }

  .footer-grid { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 340px) {
  .brand-word { display: none !important; }
  .orbit-chip--2, .orbit-chip--4 { display: none; }
}

/* ---------- 19. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 20. Page 404 ---------- */
.not-found { padding-bottom: 80px; text-align: center; }
.not-found-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.not-found-bird { width: min(260px, 60vw); margin-bottom: 8px; animation: hover-float 6s ease-in-out infinite; }
.not-found .section-sub { margin: 0 auto 12px; }

/* ---------- 21. Nos jeux ---------- */
.inline-link { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }
.inline-link:hover { text-decoration-thickness: 2px; }

.games .section-head { margin-bottom: clamp(32px, 5vw, 56px); }

.game {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(14px, 2.2vw, 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.game + .game { margin-top: 28px; }
.game:nth-of-type(even) .game-media { order: 2; }

.game-media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 0.92;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.game-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 20, 36, 0) 45%, rgba(10, 20, 36, 0.5));
  pointer-events: none;
}
.game--sumo .game-media { background: linear-gradient(180deg, #8FD3FF, #FFD1E3); }
.game--kapow .game-media {
  background:
    radial-gradient(circle at 72% 62%, rgba(24, 201, 244, 0.45), transparent 45%),
    radial-gradient(circle at 18% 88%, rgba(148, 73, 232, 0.6), transparent 50%),
    repeating-conic-gradient(from 0deg at 64% 60%, #1C3D82 0deg 8deg, #132A56 8deg 16deg);
}
.game--kapow .game-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.7px) 0 0 / 14px 14px;
  -webkit-mask-image: linear-gradient(135deg, #000 10%, transparent 65%);
  mask-image: linear-gradient(135deg, #000 10%, transparent 65%);
}

.game-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 1200ms var(--ease-out);
}
.game:hover .game-art { transform: scale(1.09); }

.game-logo {
  position: absolute;
  top: 5%;
  left: 5%;
  z-index: 2;
  width: 40%;
  filter: drop-shadow(0 10px 18px rgba(10, 20, 36, 0.4));
  animation: logo-bob 5s ease-in-out infinite;
}
.game--kapow .game-logo { top: 6%; left: 4%; width: 56%; }

.kapow-tile {
  position: absolute;
  z-index: 1;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 24%;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.22), inset 0 4px 0 rgba(255, 255, 255, 0.4), 0 12px 22px rgba(0, 0, 0, 0.3);
  animation: tile-float 6s ease-in-out infinite;
}
.kapow-tile--1 { top: 44%; left: 9%; background: #FF9B1A; rotate: -12deg; }
.kapow-tile--2 { top: 58%; left: 31%; background: #18C9F4; rotate: 9deg; animation-delay: -1.5s; }
.kapow-tile--3 { top: 72%; left: 12%; background: #9449E8; rotate: 16deg; animation-delay: -3s; }
.kapow-tile--4 { top: 82%; left: 36%; background: #71DC40; rotate: -6deg; animation-delay: -4.5s; }

.game-device {
  position: absolute;
  z-index: 3;
  padding: 5px;
  border-radius: 16px;
  background: var(--navy-950);
  box-shadow: 0 24px 48px rgba(10, 20, 36, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 600ms var(--ease-out);
}
.game-device--landscape { right: 4%; bottom: 5%; width: 68%; aspect-ratio: 16 / 9; }
.game-device--portrait { right: 7%; bottom: 5%; width: 38%; aspect-ratio: 9 / 17; padding: 6px; border-radius: 22px; }
.game:hover .game-device { transform: translateY(-6px) rotate(-1.5deg); }
.game-screens {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 11px;
  background: var(--navy-950);
  overflow: hidden;
}
.game-device--portrait .game-screens { border-radius: 16px; }
.game-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 600ms ease, transform 900ms var(--ease-out);
}
.game-screen.is-active { opacity: 1; transform: none; }

.game-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 6px 8px 6px 0; }
.game:nth-of-type(even) .game-body { padding: 6px 0 6px 8px; }

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lagoon) 15%, transparent);
  color: var(--lagoon-deep);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
}
[data-theme="dark"] .game-status { color: #5EE0DA; }
.game-status--pre { background: color-mix(in srgb, var(--mango) 16%, transparent); color: var(--accent-text); }
[data-theme="dark"] .game-status--pre { color: var(--accent-text); }
.game-status--pre .pulse-dot { background: var(--flame); animation-name: pulse-orange; }

.game-title { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.game-tagline { margin-top: -6px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--accent-text); }
.game-pitch { color: var(--text-muted); }

.game-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 2px 0; }
.game-facts div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.game-facts dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.game-facts dt { font-size: 0.82rem; line-height: 1.3; color: var(--text-muted); }

.game-features { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.game-features li { display: flex; align-items: flex-start; gap: 10px; }
.game-features .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--lagoon-deep); stroke-width: 2.5; }
[data-theme="dark"] .game-features .icon { color: var(--lagoon); }

.game-gallery { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.game-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.game-thumb {
  position: relative;
  padding: 0;
  border: 2px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-alt);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-thumb--landscape { width: 78px; height: 46px; }
.game-thumb--portrait { width: 44px; height: 72px; }
.game-thumb:hover { opacity: 1; transform: translateY(-2px); }
.game-thumb.is-active { opacity: 1; border-color: var(--flame); }
.game-thumb::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--grad-btn);
  transform: scaleX(0);
  transform-origin: left center;
}
.game.is-playing .game-thumb.is-active::after { animation: thumb-progress var(--game-interval, 4200ms) linear forwards; }
.game.is-held .game-thumb.is-active::after { animation-play-state: paused; }
.game-play .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.game-play .icon-play { display: none; }
.game-play[data-playing="false"] .icon-play { display: block; }
.game-play[data-playing="false"] .icon-pause { display: none; }

.game-caption { margin-top: -4px; font-size: 0.82rem; font-style: italic; color: var(--text-muted); }
.game-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Jeux du studio dans la grille des réalisations */
.work-item--feature { grid-column: span 2; }
.work-item--feature .work-visual { aspect-ratio: 2.7 / 1; }
.work-grid.is-filtered .work-item--feature { grid-column: auto; }
.work-grid.is-filtered .work-item--feature .work-visual { aspect-ratio: 4 / 3; }
.work-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform 800ms var(--ease-out);
}
.work-card:hover .work-img { transform: scale(1.05); }
.work-logo {
  position: absolute;
  left: 5%;
  bottom: 9%;
  z-index: 2;
  width: 46%;
  filter: drop-shadow(0 8px 14px rgba(10, 20, 36, 0.45));
  transition: transform 500ms var(--ease-spring);
}
.work-item--feature .work-logo { width: 26%; }
.work-grid.is-filtered .work-logo { width: 46%; }
.work-card:hover .work-logo { transform: scale(1.05) rotate(-2deg); }
.work-badge--studio { background: var(--grad-btn); color: var(--navy-900); }
.work-status {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 600;
}
.dlg-visual .work-logo { width: 50%; }
.dlg-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.dlg-ctas .btn { margin-top: 0; }

@keyframes logo-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}
@keyframes tile-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes thumb-progress { to { transform: scaleX(1); } }
@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(250, 108, 43, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(250, 108, 43, 0); }
}

@media (max-width: 960px) {
  .game { grid-template-columns: 1fr; }
  .game:nth-of-type(even) .game-media { order: 0; }
  .game-media { aspect-ratio: 4 / 3.3; }
  .game-body,
  .game:nth-of-type(even) .game-body { padding: 2px 6px 10px; }
}

@media (max-width: 640px) {
  .game-media { aspect-ratio: 4 / 3.6; }
  .game-logo { width: 46%; }
  .game--kapow .game-logo { width: 62%; }
  .game-device--landscape { width: 80%; }
  .game-device--portrait { width: 40%; }
  .game-facts { gap: 8px; }
  .game-facts div { padding: 10px; }
  .game-ctas .btn { flex: 1 1 100%; }
}

@media (max-width: 600px) {
  .work-item--feature { grid-column: auto; }
  .work-item--feature .work-visual { aspect-ratio: 4 / 3; }
  .work-item--feature .work-logo { width: 46%; }
}


/* Fiches jeux sur grand écran : le visuel occupe toute la hauteur, façon affiche */
@media (min-width: 961px) {
  .game { align-items: stretch; }
  .game-media { aspect-ratio: auto; min-height: 480px; }
  .game-logo { width: 54%; }
  .game--kapow .game-logo { width: 72%; }
  .game-device--landscape { width: 74%; }
  .game-device--portrait { width: 48%; }
  .kapow-tile { width: 13%; }
}

/* KAPOW CREW : bandeau des héros, seulement quand le visuel est en pleine hauteur */
.kapow-heroes { display: none; }
@media (min-width: 961px) {
  .kapow-heroes {
    position: absolute;
    top: 17%;
    left: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 50%;
    object-fit: cover;
    object-position: 45% 20%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%);
  }
  .kapow-tile--1 { top: 70%; left: 8%; }
  .kapow-tile--2 { top: 79%; left: 28%; }
  .kapow-tile--3 { top: 87%; left: 7%; }
  .kapow-tile--4 { top: 64%; left: 30%; }
}

@media (max-width: 640px) {
  .game-facts dd { font-size: 1.2rem; }
  .game-facts dt { font-size: 0.75rem; }
  .game-thumb--landscape { width: 68px; height: 44px; }
  .game-thumbs { gap: 6px; }
}

/* Le logo KAPOW ne doit pas passer sous le téléphone quand le visuel est en largeur */
@media (max-width: 960px) {
  .game--kapow .game-logo { top: 8%; width: 50%; }
}
@media (max-width: 640px) {
  .game--kapow .game-logo { width: 46%; }
}

/* ---------- 22. BRIDGE LUMA : fiche, démo jouable, case « votre projet » ---------- */
.game--luma .game-media { background: linear-gradient(180deg, #9FD8FF, #FFE9F1); }
.game--luma .game-art { object-position: center 15%; }
.game--luma .game-logo { top: 4%; left: 4%; width: 42%; }
.game-device--tall { aspect-ratio: 9 / 19.5; }

.game-demo-btn {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2A8420, #1B5E13);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(10, 20, 36, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  translate: -50% 0;
  animation: demo-pulse 2.4s ease-in-out infinite;
}
.game-demo-btn .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.game-demo-btn:hover { animation-play-state: paused; filter: brightness(1.1); }

.work-img--sky { object-position: center 12%; }

.work-item--cta { display: flex; }
.work-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 260px;
  padding: 28px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 85% 10%, rgba(254, 182, 51, 0.2), transparent 55%), var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.work-cta:hover { border-color: var(--flame); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-cta:focus-visible { outline-offset: 4px; border-radius: var(--radius-lg); }
.work-cta-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--grad-btn);
  color: var(--navy-900);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.work-cta-icon .icon { width: 26px; height: 26px; }
.work-cta:hover .work-cta-icon { transform: rotate(90deg); }
.work-cta-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.work-cta-text { color: var(--text-muted); }
.work-cta-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--accent-text); }

.demo-dialog {
  width: min(440px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 16px;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.demo-dialog[open] { animation: dialog-in var(--dur-slow) var(--ease-out); }
.demo-dialog::backdrop {
  background: rgba(10, 20, 36, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.demo-kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.demo-head h2 { font-size: 1.35rem; }
.demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 200px);
  max-height: calc(100dvh - 200px);
  border-radius: 20px;
  background: #BEE6FF;
  overflow: hidden;
}
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-note { margin-top: 12px; font-size: 0.82rem; color: var(--text-muted); }

@keyframes demo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

@media (min-width: 961px) {
  .game--luma .game-logo { width: 58%; }
}
@media (max-width: 960px) {
  .game-device--tall { width: 30%; }
}
@media (max-width: 640px) {
  .game--luma .game-logo { width: 46%; }
  .game-device--tall { width: 34%; }
  .game-demo-btn { min-height: 40px; padding: 0 14px 0 12px; font-size: 1rem; }
  .demo-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 12px; border-radius: 0; }
  .demo-frame { aspect-ratio: auto; height: calc(100% - 120px); max-height: none; }
}
