/* ==========================================================================
   Dev Solutions Group — DSG Core
   Feuille de styles principale (mobile d'abord)
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --ink: #111318;
  --ink-2: #171a20;
  --ink-3: #1e222a;
  --orange: #FF5A1F;
  --orange-dark: #C2410C;      /* orange foncé : textes d'erreur sur fond clair (contraste AA) */
  --paper: #F5F6F8;
  --white: #ffffff;
  --gray: #555B66;
  --gray-light: #B9BEC8;
  --line-light: #E2E5EA;
  --line-dark: rgba(255, 255, 255, .08);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: clamp(24px, 4vw, 44px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --section-y: clamp(88px, 12vw, 168px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
em { font-style: normal; color: var(--orange); }
::selection { background: var(--orange); color: var(--ink); }

.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1240px, 100% - 64px); } }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 10001;
  padding: 10px 16px; border-radius: 999px;
  background: var(--orange); color: var(--ink); font-weight: 700;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Thèmes de sections */
.theme-dark { background: var(--ink); color: var(--paper); }
.theme-light { background: var(--paper); color: var(--ink); }
.section { position: relative; padding: var(--section-y) 0; }
.section.theme-light { border-radius: var(--radius-lg); z-index: 1; }
/* Deux sections claires qui se suivent (ex. : témoignages masqués) : fine séparation sombre */
.section.theme-light + [hidden] + .section.theme-light,
.section.theme-light + .section.theme-light { margin-top: 12px; }

/* Textes de section */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--gray-light); margin-bottom: 20px;
}
.theme-light .eyebrow { color: var(--gray); }
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 0 100% 0 100%;
  background: var(--orange); flex: none;
}
.section-head { max-width: 820px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  max-width: none; display: flex; flex-wrap: wrap; gap: 28px;
  align-items: flex-end; justify-content: space-between;
}
.section-head--split > div:first-child { max-width: 680px; }
.section-title { font-size: clamp(2.1rem, 5.4vw, 4.2rem); }
.section-lead {
  margin-top: 24px; font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--gray); max-width: 640px;
}
.theme-dark .section-lead { color: var(--gray-light); }
.section-head--center .section-lead { margin-inline: auto; }

/* Mot à mot (révélation par masque) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w-inner { display: inline-block; will-change: transform; }
html.js [data-split]:not(.is-split) { visibility: hidden; }
html.js .js-reveal { opacity: 0; transform: translateY(28px); }
html.no-anim [data-split], html.no-anim .js-reveal { visibility: visible !important; opacity: 1 !important; transform: none !important; }

/* ---------- 3. Boutons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: -.01em; line-height: 1;
  transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn span { position: relative; }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary::before { background: var(--paper); }
.theme-light .btn--primary::before { background: var(--ink); }
.theme-light .btn--primary:hover, .theme-light .btn--primary:focus-visible { color: var(--paper); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .22); color: var(--paper); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); border-color: var(--paper); }
.theme-light .btn--ghost { border-color: rgba(17, 19, 24, .18); color: var(--ink); }
.theme-light .btn--ghost::before { background: var(--ink); }
.theme-light .btn--ghost:hover { color: var(--paper); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: .9rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.round-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background .3s, border-color .3s, color .3s;
}
.round-btn svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .72rem; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line-light); color: var(--gray);
}
.theme-dark .tags li { border-color: rgba(255, 255, 255, .12); color: var(--gray-light); }

/* ---------- 4. Écran de chargement ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--ink);
  animation: loaderFailsafe .01s 5s forwards; /* sécurité si le JS échoue */
}
.loader__mark { width: 88px; height: 88px; overflow: visible; }
.loader .lb { fill: var(--paper); }
.loader .lb-leaf { fill: var(--orange); }
/* Apparition du logo en CSS pur : visible dès le premier affichage, sans attendre le JS */
.loader .lb, .loader .lb-leaf { transform-box: fill-box; transform-origin: center; }
.loader .lb { animation: lbIn .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.loader .lb-2 { animation-delay: .12s; }
.loader .lb-3 { animation-delay: .24s; }
.loader .lb-leaf { animation: leafIn .85s .42s linear both; }
.loader__label { font-size: .75rem; color: var(--gray-light); text-transform: uppercase; letter-spacing: .3em; animation: fadeIn .4s .8s both; }
@keyframes lbIn { from { opacity: 0; transform: scale(0); } }
@keyframes leafIn {
  0%   { opacity: 0; transform: translate(40%, -150%) rotate(-120deg) scale(.4); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  50%  { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  68%  { transform: translateY(-14%); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  82%  { transform: none; animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  91%  { transform: translateY(-5%); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  100% { opacity: 1; transform: none; }
}
.loader__dot { color: var(--orange); animation: blink 1s steps(1) infinite; }
html.loaded .loader { display: none; }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 5. Curseur ---------- */
.cursor { display: none; transition: opacity .3s; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor select { cursor: none; }
.cursor__ring, .cursor__dot {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; will-change: transform;
}
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid rgba(245, 246, 248, .7);
  mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-color .35s, opacity .3s;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--orange); }
.cursor.is-hover .cursor__ring {
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  background: rgba(255, 90, 31, .9); border-color: transparent; mix-blend-mode: normal; opacity: .22;
}
.cursor.is-text .cursor__ring { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* ---------- 6. En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: transform .5s var(--ease), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(17, 19, 24, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); font-weight: 800; letter-spacing: -.03em; }
.brand__mark { width: 30px; height: 30px; color: var(--paper); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-90deg); }
.brand__name { font-size: 1.05rem; line-height: 1; }
.brand__name span { font-weight: 400; color: var(--gray-light); }

.nav { display: none; margin-left: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__list a {
  position: relative; display: block; padding: 8px 12px;
  font-size: .92rem; font-weight: 500; color: var(--gray-light);
  transition: color .3s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
  background: var(--orange); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__list a:hover, .nav__list a.is-current { color: var(--paper); }
.nav__list a:hover::after, .nav__list a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: none; }

.burger {
  margin-left: auto; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-content: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .16); position: relative; z-index: 2;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .5s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav, .header__cta { display: flex; }
  .header__cta { margin-left: 8px; }
  .burger { display: none; }
}

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  visibility: hidden; pointer-events: none;
}
.mobile-menu.is-open { visibility: visible; pointer-events: auto; }
.mobile-menu__bg {
  position: absolute; inset: 0; background: var(--ink);
  clip-path: circle(0% at calc(100% - 40px) 36px);
}
.mobile-menu__nav {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding-top: var(--header-h);
}
.mobile-menu__nav li { overflow: hidden; }
.mobile-menu__nav li a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(2.2rem, 10vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.15;
  color: var(--paper);
}
.mobile-menu__nav li a .mono { font-size: .8rem; color: var(--orange); letter-spacing: 0; }
.mobile-menu__foot { display: grid; gap: 8px; color: var(--gray-light); font-size: .95rem; }
.mobile-menu__foot a:hover { color: var(--orange); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
}
.hero__glow {
  position: absolute; width: 70vmax; height: 70vmax; right: -25vmax; top: -20vmax;
  background: radial-gradient(circle, rgba(255, 90, 31, .22) 0%, rgba(255, 90, 31, 0) 60%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; }
.hero__eyebrow .pulse { display: none; }
.hero__eyebrow::before { animation: leafPulse 2.4s var(--ease) infinite; }
@keyframes leafPulse { 50% { transform: rotate(90deg) scale(1.25); } }
.hero__title {
  font-size: clamp(2.7rem, 8.2vw, 6.6rem);
  line-height: .98; letter-spacing: -.045em;
  max-width: 13ch;
}
.hero__title em { display: inline; }
.hero__sub {
  margin-top: 28px; max-width: 540px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--gray-light);
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .25em; color: var(--gray-light);
}
.hero__scroll-line { width: 1px; height: 44px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--orange);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@media (min-width: 768px) { .hero__scroll { display: flex; } }

/* Scène 3D (CSS 3D, légère et performante) */
.hero__scene {
  position: absolute; z-index: 1; pointer-events: none;
  width: min(82vw, 420px); aspect-ratio: 1;
  right: -14vw; top: 14%;
  opacity: .45;
}
.scene { position: relative; width: 100%; height: 100%; perspective: 1400px; }
.scene__group {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateY(-22deg) rotateZ(4deg);
}
.piece { position: absolute; width: 40%; height: 40%; transform-style: preserve-3d; will-change: transform; }
.piece span {
  position: absolute; inset: 0; border-radius: 28%;
  background: linear-gradient(145deg, #2b303b 0%, #1a1d24 55%, #14161b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -14px 30px rgba(0, 0, 0, .35),
    0 40px 80px -30px rgba(0, 0, 0, .9);
}
.piece--a { left: 6%; top: 6%; }
.piece--b { left: 6%; top: 54%; }
.piece--c { left: 54%; top: 54%; }
.piece--leaf { left: 54%; top: 6%; }
.piece--leaf span {
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #ff7a45 0%, #FF5A1F 50%, #e8460e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 40px 90px -25px rgba(255, 90, 31, .65);
}
.floater {
  position: absolute; border-radius: 28%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  will-change: transform;
}
.f1 { width: 11%; height: 11%; left: -18%; top: 8%; }
.f2 { width: 7%; height: 7%; left: 104%; top: -6%; }
.f3 { width: 14%; height: 14%; left: 96%; top: 82%; }
.f4 { width: 6%; height: 6%; left: -10%; top: 88%; border-radius: 0 100% 0 100%; background: var(--orange); border: 0; opacity: .85; }
.f5 { width: 9%; height: 9%; left: 40%; top: -22%; }

@media (min-width: 768px) {
  .hero__scene { width: min(52vw, 560px); right: -6vw; top: 50%; transform: translateY(-50%); opacity: .7; }
}
@media (min-width: 1100px) {
  .hero__scene { width: min(36vw, 540px); right: 5vw; top: 54%; opacity: 1; }
  .hero__title { font-size: clamp(3.6rem, 5.4vw, 6.2rem); max-width: 11ch; }
  .hero__content { padding-right: 34vw; }
}

/* ---------- 8. Bandeau défilant ---------- */
.marquee-wrap { padding: 28px 0 clamp(56px, 8vw, 96px); overflow: hidden; border-top: 1px solid var(--line-dark); }
.marquee { overflow: hidden; display: flex; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee--alt .marquee__track { animation-duration: 46s; animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; flex: none; }
.marquee__list li {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  font-size: clamp(1.6rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.2;
  white-space: nowrap; color: var(--paper);
}
.marquee__list li::after {
  content: ""; width: .42em; height: .42em; border-radius: 0 100% 0 100%; background: var(--orange); flex: none;
}
.marquee--alt .marquee__list li { font-size: clamp(.85rem, 1.4vw, 1rem); font-weight: 500; letter-spacing: .06em; color: var(--gray-light); text-transform: uppercase; }
.marquee--alt .marquee__list li::after { width: 6px; height: 6px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Cartes & services ---------- */
.card {
  position: relative; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line-light);
}
.services__grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.service {
  padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px;
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .5s var(--ease), border-color .5s;
}
.service::after { /* reflet qui suit la souris */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 90, 31, .1), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.service:hover { border-color: rgba(255, 90, 31, .35); box-shadow: 0 30px 60px -30px rgba(17, 19, 24, .25); }
.service:hover::after { opacity: 1; }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.service__num { font-size: .75rem; color: var(--gray); }
.service__icon {
  width: 52px; height: 52px; padding: 12px; border-radius: 16px;
  background: var(--paper); fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: background .4s, stroke .4s, transform .6s var(--ease);
}
.service:hover .service__icon { background: var(--orange); transform: rotate(-8deg) scale(1.06); }
.service h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); }
.service p { color: var(--gray); flex: 1; }
.service .tags { margin-top: 8px; }
.service--accent { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.service--accent p, .service--accent .service__num { color: var(--gray-light); }
.service--accent .service__icon { background: var(--orange); stroke: var(--ink); }
.service--accent .tags li { border-color: rgba(255, 255, 255, .16); color: var(--gray-light); }

/* ---------- 10. SaaS ---------- */
.saas { overflow: hidden; }
.saas__glow {
  position: absolute; width: 90vmax; height: 60vmax; left: 50%; top: 0; transform: translate(-50%, -45%);
  background: radial-gradient(ellipse, rgba(255, 90, 31, .16), transparent 60%); pointer-events: none;
}
.saas__pills { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.saas__pills li {
  font-size: .75rem; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12); color: var(--paper); background: rgba(255, 255, 255, .03);
}

.product {
  position: relative; display: grid; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  border: 1px solid var(--line-dark);
}
.product + .product { margin-top: 24px; }
@media (min-width: 1000px) {
  .product { grid-template-columns: 1.25fr 1fr; }
  .product--reverse .product__media { order: 2; }
}
.product__media { position: relative; }
.mockup {
  border-radius: 16px; overflow: hidden;
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3), 0 30px 120px -50px rgba(255, 90, 31, .45);
}
.mockup__bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #1b1e25; border-bottom: 1px solid var(--line-dark); }
.mockup__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.mockup__bar span:first-child { background: var(--orange); }
.mockup__bar p { margin-left: 10px; font-size: .7rem; color: var(--gray-light); }
.mockup__screen { position: relative; aspect-ratio: 1280 / 584; background: #f3f4f7; }
.mockup__screen video { width: 100%; height: 100%; object-fit: cover; }
.mockup__screen--wide { aspect-ratio: 16 / 9; }

.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; font-size: .72rem;
  background: rgba(23, 26, 32, .9); color: var(--paper);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  animation: chipFloat 5s ease-in-out infinite;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 31, .2); }
.chip--1 { left: -8px; bottom: -18px; }
.chip--2 { right: -8px; top: 22%; animation-delay: -2.5s; }
@media (min-width: 768px) { .chip--1 { left: -28px; } .chip--2 { right: -28px; } }
@keyframes chipFloat { 50% { transform: translateY(-10px); } }

.product__tag { font-size: .75rem; color: var(--orange); text-transform: uppercase; letter-spacing: .12em; }
.product__name { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 10px 0 14px; }
.product__pitch { color: var(--gray-light); font-size: 1.08rem; }
.features { margin: 28px 0 32px; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 32px; color: var(--paper); }
.features li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px;
  background: rgba(255, 90, 31, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A1F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 11. Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  border: 1px solid rgba(17, 19, 24, .14); color: var(--ink);
  transition: background .35s var(--ease), color .35s, border-color .35s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.projects { display: grid; gap: 20px; }
@media (min-width: 800px) {
  .projects { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  /* Nombre impair de projets : le premier est mis en avant sur toute la largeur */
  .project:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .project:first-child:nth-last-child(odd) .project__media { aspect-ratio: 2.4 / 1; }
}
.project { position: relative; }
.project.is-hidden { display: none; }
.project__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 2 / 1; background: var(--ink);
  transform: translateZ(0);
}
.project__media img, .project__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: scale 1.1s var(--ease), opacity .5s;
}
.project__video { opacity: 0; }
.project.is-playing .project__video { opacity: 1; }
.project:hover .project__media img, .project:hover .project__video { scale: 1.04; }
.project__play {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  padding: 8px 12px; border-radius: 999px; font-size: .7rem;
  background: rgba(17, 19, 24, .78); color: var(--paper);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .4s, transform .4s var(--ease);
}
.project.is-playing .project__play { opacity: 0; transform: translateY(8px); }
.project__media .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 70% 30%, rgba(255, 90, 31, .25), transparent 55%), var(--ink);
}
.project__media .ph svg { width: 22%; height: auto; aspect-ratio: 1; color: rgba(255, 255, 255, .14); transition: transform 1s var(--ease); }
.project:hover .ph svg { transform: rotate(-90deg) scale(1.1); }
.project__body { padding: 22px 4px 4px; }
.project__cat { font-size: .72rem; color: var(--gray); text-transform: uppercase; letter-spacing: .1em; }
.project h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin: 10px 0 8px; letter-spacing: -.03em; }
.project p:last-child { color: var(--gray); }
.project__link { background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.project__link::after { content: " ↗"; color: var(--orange); }
.project__link:hover, .project__link:focus-visible { background-size: 100% 2px; }

/* ---------- 12. Méthode (horizontal) ---------- */
.process { position: relative; padding: var(--section-y) 0; overflow: hidden; }
.process__intro { margin-bottom: 48px; }
.process__progress { margin-top: 32px; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; display: none; }
.process__progress span { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }
.process__track { display: grid; gap: 16px; width: min(1240px, 100% - 32px); margin-inline: auto; }
.step {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line-dark);
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.step__num {
  font-size: clamp(5rem, 14vw, 11rem); font-weight: 800; line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22);
}
.step:hover .step__num, .step.is-active .step__num { -webkit-text-stroke-color: var(--orange); }
.step h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 14px; }
.step p { color: var(--gray-light); max-width: 46ch; margin-bottom: 24px; }
.step--last { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.step--last .step__num { -webkit-text-stroke-color: rgba(17, 19, 24, .45); }
.step--last p { color: rgba(17, 19, 24, .8); }
.step--last .tags li { border-color: rgba(17, 19, 24, .25); color: var(--ink); }

@media (min-width: 1000px) {
  html.js .process.is-horizontal { padding: 0; }
  html.js .process.is-horizontal .process__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  html.js .process.is-horizontal .process__progress { display: block; }
  html.js .process.is-horizontal .process__track {
    display: flex; width: max-content; margin: 0; gap: 24px;
    padding-left: max(32px, calc((100vw - 1240px) / 2)); padding-right: 10vw;
  }
  html.js .process.is-horizontal .step { width: min(62vw, 720px); min-height: min(56vh, 520px); flex: none; }
}

/* ---------- 13. Pourquoi nous ---------- */
.why__grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }
.why__item { padding: 32px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-light); }
.why__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 28px;
  background: var(--ink); color: var(--paper);
}
.why__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why__item h3 { font-size: 1.25rem; margin-bottom: 10px; letter-spacing: -.025em; }
.why__item p { color: var(--gray); }

.stats {
  margin-top: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-light);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 32px 8px 0 0; }
.stat__value { display: flex; align-items: baseline; font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; min-height: 1.1em; }
.stat__suffix { color: var(--orange); }
.counter { font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 12px; color: var(--gray); font-weight: 500; }

/* ---------- 14. Témoignages ---------- */
.carousel__controls { display: flex; gap: 10px; }
.carousel__viewport { display: grid; min-height: 280px; }
.quote {
  grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 40px;
  visibility: hidden; opacity: 0;
}
.quote.is-active { visibility: visible; opacity: 1; }
.quote blockquote p { font-size: clamp(1.5rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; max-width: 26ch; }
.quote figcaption { display: flex; align-items: center; gap: 16px; }
.quote figcaption b { display: block; font-weight: 700; }
.quote figcaption small { color: var(--gray-light); font-size: .92rem; }
.quote__avatar {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--orange); color: var(--ink); font-weight: 800; font-size: 1.2rem; flex: none;
}
.carousel__dots { margin-top: 48px; display: flex; gap: 8px; }
.dot { width: 36px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); position: relative; overflow: hidden; }
.dot::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.dot.is-active::after { animation: dotProgress 7s linear forwards; }
.carousel.is-paused .dot.is-active::after { animation-play-state: paused; }
@keyframes dotProgress { to { transform: scaleX(1); } }

/* ---------- 15. Contact & formulaires ---------- */
.contact__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; } }
.contact__list { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.contact__list li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.contact__list .mono { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gray); }
.contact__list a, .contact__list p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 700; letter-spacing: -.02em; word-break: break-word; }
.contact__list a:hover { color: var(--orange-dark); }

.form { display: grid; gap: 18px; }
.contact .form { padding: clamp(24px, 4vw, 44px); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--paper); border: 1.5px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111318' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #8a909b; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-light); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 31, .15); }
.field [aria-invalid="true"] { border-color: var(--orange-dark); background: #fff4ef; }
.field__error { font-size: .82rem; color: var(--orange-dark); font-weight: 600; }
.form__legal { font-size: .82rem; color: var(--gray); }
.form__legal a { text-decoration: underline; text-underline-offset: 3px; }
.form__status { font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.form__status.is-success { color: #157a3d; }
.form__status.is-error { color: var(--orange-dark); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Modale SaaS */
.modal {
  width: min(640px, 100% - 24px); max-height: calc(100% - 24px);
  padding: clamp(24px, 4vw, 44px); border: 0; border-radius: 28px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .6);
  overscroll-behavior: contain;
}
.modal[open] { animation: modalIn .55s var(--ease); }
.modal::backdrop { background: rgba(17, 19, 24, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .4s ease; }
.modal .eyebrow { color: var(--gray); margin-bottom: 12px; }
.modal__title { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.modal__lead { margin: 10px 0 8px; color: var(--gray); }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; background: var(--paper); transition: background .3s, transform .4s var(--ease);
}
.modal__close:hover { background: var(--orange); transform: rotate(90deg); }
.modal .form { position: relative; }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- 16. Footer ---------- */
.footer { padding: clamp(96px, 12vw, 160px) 0 32px; }
.footer__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line-dark); }
.footer__big { font-size: clamp(2.6rem, 8vw, 7rem); font-weight: 800; letter-spacing: -.055em; line-height: .95; max-width: 12ch; }
.footer__grid { display: grid; gap: 40px; padding: 56px 0; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1.3fr 1fr; } .footer__brand { grid-column: auto; } }
.footer__brand p { margin-top: 18px; color: var(--gray-light); }
.footer__col > p { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gray-light); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--paper); transition: color .3s; word-break: break-word; }
.footer__col a:hover { color: var(--orange); }
.socials { display: flex !important; gap: 10px !important; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); }
.socials svg { width: 18px; height: 18px; fill: var(--paper); }
.socials a:hover svg { fill: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .88rem; color: var(--gray-light); }
.footer__bottom a:hover { color: var(--orange); }

/* ---------- 17. Bouton WhatsApp ---------- */
.whatsapp {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); box-shadow: 0 16px 36px -10px rgba(255, 90, 31, .65);
  transition: transform .4s var(--ease);
}
.whatsapp::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange);
  animation: ripple 2.6s ease-out infinite;
}
.whatsapp svg { width: 28px; height: 28px; fill: var(--ink); }
.whatsapp:hover { transform: scale(1.08); }
@media (min-width: 768px) { .whatsapp { right: 28px; bottom: 28px; } }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- 18. Page simple (mentions légales) ---------- */
.page-simple { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--gray); }
.legal ul { list-style: disc; padding-left: 20px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 19. Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .marquee__track { animation: none; }
  .loader { display: none !important; }
}
