/* ==========================================================
   XDiscovery Corporate · feuille de style
   Mobile d'abord · aucune dépendance
   ========================================================== */

:root {
  --night: #061633;
  --abyss: #0C2A5C;
  --electric: #1E9BF0;
  --glacier: #BFE3FB;
  --mist: #F2F7FC;
  --ink: #1A2B45;
  --white: #FFFFFF;

  --ink-soft: #44546D;           /* texte secondaire sur fond clair (contraste AA) */
  --line-light: #D9E6F3;
  --line-dark: rgba(191, 227, 251, .16);

  --font-title: "Sora", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(6, 22, 51, .06), 0 8px 24px rgba(6, 22, 51, .06);
  --shadow-2: 0 2px 4px rgba(6, 22, 51, .08), 0 24px 48px rgba(6, 22, 51, .14);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--electric); color: var(--night); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--electric); color: var(--night); box-shadow: 0 6px 20px rgba(30, 155, 240, .35); }
.btn-primary:hover { background: #3AAAF3; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30, 155, 240, .45); }
.btn-ghost { color: var(--white); border-color: rgba(191, 227, 251, .45); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--glacier); background: rgba(191, 227, 251, .1); transform: translateY(-2px); }
.btn-ghost .ico-arrow { transition: transform .25s var(--ease); }
.btn-ghost:hover .ico-arrow { transform: translateX(4px); }
.btn-outline { color: var(--abyss); border-color: var(--abyss); background: transparent; }
.btn-outline:hover { background: var(--abyss); color: var(--white); transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }

/* ---------- Typo de section ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-title); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--abyss);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; flex: none;
  border: 2px solid var(--electric); transform: rotate(45deg);
}
.eyebrow-dark { color: var(--glacier); }
.section-title { font-size: clamp(1.7rem, 5.6vw, 2.75rem); font-weight: 700; color: var(--night); max-width: 22ch; }
.section-sub { margin-top: 14px; color: var(--ink-soft); max-width: 60ch; font-size: 1.075rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); margin-top: 18px; max-width: 60ch; }
.section-head { margin-bottom: 40px; }
.card-kicker { font-family: var(--font-title); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #1173B8; margin-bottom: 10px; }

.section { padding: 80px 0; position: relative; }
.section-light { background: var(--mist); }
.section-dark { background: var(--night); color: var(--glacier); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: var(--glacier); }
.section-dark .card-kicker { color: var(--electric); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-family: var(--font-title); font-weight: 600; color: var(--abyss); text-decoration: none;
  background: linear-gradient(var(--electric), var(--electric)) 0 100% / 0 2px no-repeat;
  padding-bottom: 4px; transition: background-size .35s var(--ease);
}
.text-link:hover { background-size: 100% 2px; }
.text-link .ico { transition: transform .25s var(--ease); }
.text-link:hover .ico { transform: translateX(4px); }

/* ==========================================================
   1. En-tête
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: height .35s var(--ease), background-color .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: rgba(6, 22, 51, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.site-header.is-scrolled {
  --header-h: 60px;
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); flex: none; }
.brand-mark { width: 40px; height: 40px; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 1.02rem; letter-spacing: .06em; }
.brand-sub { font-family: var(--font-title); font-weight: 500; font-size: .62rem; letter-spacing: .42em; color: var(--glacier); margin-top: 5px; }

.header-cta { display: none; margin-left: auto; }

/* Burger */
.burger {
  margin-left: auto; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(191, 227, 251, .08); border: 1px solid var(--line-dark);
  display: grid; place-content: center; gap: 5px; cursor: pointer; position: relative; z-index: 2;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .4s var(--ease), opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile : panneau plein écran qui se déploie en losange */
.main-nav {
  position: fixed; inset: 0; z-index: 1;
  background: radial-gradient(120% 80% at 100% 0%, var(--abyss) 0%, var(--night) 60%);
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: 96px 28px 40px;
  clip-path: circle(0% at calc(100% - 44px) 36px);
  visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s linear .6s;
}
.main-nav.is-open { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.main-nav ul { display: flex; flex-direction: column; gap: 6px; }
.main-nav a:not(.btn) {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-title); font-size: 1.7rem; font-weight: 600; color: var(--white);
  text-decoration: none; padding: 8px 0;
}
.main-nav a:not(.btn)::before {
  content: ""; width: 9px; height: 9px; border: 2px solid var(--electric); transform: rotate(45deg) scale(.6);
  opacity: 0; transition: opacity .25s, transform .3s var(--ease);
}
.main-nav a:not(.btn):hover::before, .main-nav a.is-active::before { opacity: 1; transform: rotate(45deg) scale(1); }
.main-nav li, .main-nav .nav-cta-mobile { opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .5s var(--ease); }
.main-nav.is-open li, .main-nav.is-open .nav-cta-mobile { opacity: 1; transform: none; }
.main-nav.is-open li:nth-child(1) { transition-delay: .12s; }
.main-nav.is-open li:nth-child(2) { transition-delay: .17s; }
.main-nav.is-open li:nth-child(3) { transition-delay: .22s; }
.main-nav.is-open li:nth-child(4) { transition-delay: .27s; }
.main-nav.is-open li:nth-child(5) { transition-delay: .32s; }
.main-nav.is-open li:nth-child(6) { transition-delay: .37s; }
.main-nav.is-open .nav-cta-mobile { transition-delay: .45s; }
.nav-cta-mobile { align-self: flex-start; }
body.menu-open { overflow: hidden; }

/* ==========================================================
   2. Hero
   ========================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--night); color: var(--white);
  overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 36px) 0 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.hero-glow-1 { width: 560px; height: 560px; right: -180px; top: -120px; background: radial-gradient(circle, rgba(30, 155, 240, .32), rgba(30, 155, 240, 0) 65%); animation: glow 10s ease-in-out infinite alternate; }
.hero-glow-2 { width: 520px; height: 520px; left: -220px; bottom: -200px; background: radial-gradient(circle, rgba(12, 42, 92, .95), rgba(12, 42, 92, 0) 70%); }
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .07;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%); }

.float { position: absolute; display: block; border: 2px solid rgba(30, 155, 240, .55); transform: rotate(45deg); border-radius: 3px; animation: drift 18s ease-in-out infinite; }
.float.bracket { border-right-color: transparent; border-top-color: transparent; border-width: 3px; }
.f1 { width: 22px; height: 22px; left: 8%; top: 22%; animation-duration: 16s; }
.f2 { width: 12px; height: 12px; left: 46%; top: 12%; border-color: rgba(191, 227, 251, .5); animation-duration: 21s; animation-delay: -4s; }
.f3 { width: 34px; height: 34px; right: 8%; bottom: 16%; border-color: rgba(191, 227, 251, .25); animation-duration: 24s; animation-delay: -8s; }
.f4 { width: 14px; height: 14px; left: 18%; bottom: 14%; background: rgba(30, 155, 240, .35); border: 0; animation-duration: 19s; animation-delay: -2s; }
.f5 { width: 9px; height: 9px; right: 30%; top: 26%; background: var(--electric); border: 0; box-shadow: 0 0 14px var(--electric); animation-duration: 14s; animation-delay: -6s; }
.f6 { width: 44px; height: 44px; left: -10px; top: 58%; animation-duration: 26s; }
.f7 { width: 30px; height: 30px; right: 4%; top: 18%; border-color: rgba(191, 227, 251, .5); animation-duration: 22s; animation-delay: -10s; }

.hero-inner { display: grid; gap: 40px; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.45rem, 11.5vw, 5.2rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.02; }
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--electric); position: relative; }
.hero-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .08em; background: currentColor; opacity: .35; border-radius: 2px; transform-origin: left; animation: underline 1s var(--ease) 1.4s both; }
.hero-fr { margin-top: 20px; font-family: var(--font-title); font-weight: 500; font-size: clamp(1.02rem, 3.8vw, 1.3rem); color: var(--glacier); }
.hero-lead { margin-top: 18px; color: rgba(255, 255, 255, .82); max-width: 54ch; font-size: 1.08rem; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 100%; }

/* apparition ligne par ligne */
.hero-line { animation: rise .9s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * .11s); }

/* emblème animé */
.hero-visual {
  position: absolute; z-index: 1; right: -90px; top: 50%; width: 300px; aspect-ratio: 1; transform: translateY(-50%);
  opacity: .22; pointer-events: none;
}
.hero-mark { width: 100%; height: 100%; position: relative; z-index: 1; overflow: visible; filter: drop-shadow(0 0 18px rgba(30, 155, 240, .45)); }
.piece { transform-box: view-box; }
.piece-a { animation: assemble-a 1.6s var(--ease) .35s both, breathe-a 7s ease-in-out 2s infinite; }
.piece-b { animation: assemble-b 1.6s var(--ease) .35s both, breathe-b 7s ease-in-out 2s infinite; }
.hero-mark-glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(30, 155, 240, .45), transparent 70%); filter: blur(24px); animation: glow 6s ease-in-out infinite alternate; }
.orbit { position: absolute; inset: 4%; border: 1px dashed rgba(191, 227, 251, .3); transform: rotate(45deg); border-radius: 8px; animation: spin 40s linear infinite; }
.orbit-2 { inset: -10%; border-style: solid; border-color: rgba(30, 155, 240, .18); animation-duration: 60s; animation-direction: reverse; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 28px; height: 44px; border: 2px solid rgba(191, 227, 251, .45); border-radius: 16px; display: none; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--electric); animation: scrolldot 1.8s ease-in-out infinite; }

/* ==========================================================
   3. Bandeau défilant
   ========================================================== */
.marquee { background: var(--abyss); color: var(--glacier); overflow: hidden; border-block: 1px solid var(--line-dark); padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 26px; padding-right: 26px; flex: none; }
.marquee span { font-family: var(--font-title); font-weight: 600; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.marquee i { width: 8px; height: 8px; background: var(--electric); transform: rotate(45deg); flex: none; }

/* ==========================================================
   4. Qui sommes-nous
   ========================================================== */
.about-grid { display: grid; gap: 40px; }
.about-cards { display: grid; gap: 18px; }
.ambition-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, var(--abyss), var(--night) 75%);
  color: var(--glacier); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-2);
}
.ambition-card .card-kicker { color: var(--electric); }
.ambition-text { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.2; color: var(--white); margin-bottom: 14px; max-width: 18ch; }
.ambition-deco { position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; opacity: .14; z-index: -1; animation: spin360 50s linear infinite; }
.ambition-deco svg { width: 100%; height: 100%; }
.sector-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sector-tags li { font-size: .88rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(191, 227, 251, .3); color: var(--white); background: rgba(191, 227, 251, .06); }
.conviction { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-1); border: 1px solid var(--line-light); position: relative; }
.conviction::before { content: ""; position: absolute; top: 28px; right: 26px; width: 16px; height: 16px; border: 3px solid var(--electric); transform: rotate(45deg); }
.conviction-text { font-family: var(--font-title); font-size: clamp(1.12rem, 4vw, 1.35rem); font-weight: 600; color: var(--night); line-height: 1.4; }

/* ==========================================================
   5. Services
   ========================================================== */
.services { background: var(--white); }
.cards-3 { display: grid; gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 30px 26px 26px; box-shadow: var(--shadow-1);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.service-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, var(--electric), var(--glacier) 45%, transparent 70%, var(--electric));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.service-card:hover, .service-card:focus-within { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(12, 42, 92, .16), 0 0 0 1px rgba(30, 155, 240, .15), 0 0 36px rgba(30, 155, 240, .18); border-color: transparent; }
.service-card:hover::before, .service-card:focus-within::before { opacity: 1; }
.service-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
  color: var(--electric); background: linear-gradient(145deg, var(--night), var(--abyss));
  box-shadow: 0 10px 24px rgba(6, 22, 51, .25);
  transition: transform .5s var(--ease);
}
.service-icon svg { width: 36px; height: 36px; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.ic-spin { transform-origin: 24px 24px; }
.service-card:hover .ic-spin { animation: spin360 4s linear infinite; }
.service-card:hover .ic-wave { animation: wave 1.4s ease-in-out infinite; }
.service-card:hover .w2 { animation-delay: .2s; }
.ic-spark { transform-origin: 40px 20px; }
.service-card:hover .ic-spark { animation: tassel 1.2s ease-in-out infinite; }
.service-card h3 { font-size: 1.32rem; color: var(--night); margin-bottom: 18px; }
.check-list { display: grid; gap: 12px; margin-bottom: 26px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.check-list .ico { color: var(--electric); margin-top: .25em; width: 1.05em; height: 1.05em; }
.card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; color: var(--abyss); text-decoration: none;
}
.card-link .ico { transition: transform .25s var(--ease); }
.card-link:hover .ico { transform: translateX(5px); }
.card-link:hover { color: #1173B8; }

/* ==========================================================
   6. Réalisations
   ========================================================== */
.work { overflow: hidden; background: radial-gradient(80% 50% at 100% 0%, rgba(30, 155, 240, .12), transparent 60%), var(--night); }
.work-list { display: grid; gap: 64px; }
.work-item { display: grid; gap: 28px; align-items: center; }
.work-text h3 { color: var(--white); font-size: clamp(1.3rem, 4.5vw, 1.7rem); margin-bottom: 12px; }
.work-text p:not(.card-kicker) { color: var(--glacier); max-width: 48ch; }
.work-visual { display: grid; place-items: center; padding: 10px 0; position: relative; }
.work-visual::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; transform: rotate(45deg); border: 1px solid var(--line-dark); border-radius: 24px; }

/* Ordinateur portable */
.laptop { width: min(100%, 520px); position: relative; }
.laptop-screen {
  aspect-ratio: 16 / 10; border-radius: 14px 14px 4px 4px; padding: 10px;
  background: linear-gradient(180deg, #24324A, #141E2F); border: 1px solid rgba(191, 227, 251, .18);
  box-shadow: 0 40px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .3) inset;
}
.laptop-base { height: 14px; margin: 0 -7%; border-radius: 2px 2px 14px 14px; background: linear-gradient(180deg, #C7D3E2, #8D9BB0); position: relative; }
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #7A879B; }

/* Téléphone */
.phone {
  width: 236px; aspect-ratio: 9 / 18.5; border-radius: 36px; padding: 10px; position: relative;
  background: linear-gradient(160deg, #2A3A55, #121B2B); border: 1px solid rgba(191, 227, 251, .2);
  box-shadow: 0 40px 70px rgba(0, 0, 0, .45);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 64px; height: 16px; transform: translateX(-50%); background: #0A1222; border-radius: 10px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; }

/* Interfaces fictives communes */
.ui { width: 100%; height: 100%; border-radius: 6px; overflow: hidden; font-family: var(--font-text); }
.ui-logo { display: inline-block; width: 14px; height: 14px; border: 3px solid var(--electric); transform: rotate(45deg); flex: none; }

/* 6.1 site vitrine */
.ui-site { background: var(--mist); display: flex; flex-direction: column; }
.ui-nav { display: flex; align-items: center; gap: 10px; padding: 8% 6% 0; padding: 4% 5%; background: var(--night); }
.ui-links { display: flex; gap: 6px; margin-left: auto; }
.ui-links i { width: 22px; height: 4px; border-radius: 2px; background: rgba(191, 227, 251, .5); }
.ui-pill { width: 40px; height: 12px; border-radius: 6px; background: var(--electric); }
.ui-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6%; padding: 5%; background: linear-gradient(135deg, var(--night), var(--abyss)); flex: 1; min-height: 0; align-items: center; }
.ui-hero-text { display: flex; flex-direction: column; gap: 7px; }
.ui-hero-text b { height: 10px; border-radius: 3px; background: var(--white); width: 90%; }
.ui-hero-text b.short { width: 60%; }
.ui-hero-text i { height: 5px; border-radius: 3px; background: rgba(191, 227, 251, .55); width: 95%; }
.ui-hero-text i.short { width: 70%; }
.ui-btn { margin-top: 6px; width: 46%; height: 14px; border-radius: 7px; background: var(--electric); }
.ui-hero-img { height: 100%; min-height: 0; border-radius: 10px; background: linear-gradient(140deg, rgba(30, 155, 240, .5), rgba(191, 227, 251, .15)); display: grid; place-items: center; }
.ui-hero-img span { width: 40%; aspect-ratio: 1; border: 4px solid var(--white); transform: rotate(45deg); border-radius: 4px; opacity: .8; }
.ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; padding: 4% 5%; }
.ui-tiles span { height: 18px; border-radius: 6px; background: var(--white); box-shadow: 0 2px 6px rgba(6, 22, 51, .08); }

/* 6.2 formulaire */
.ui-form { background: var(--white); padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; border-radius: 0; }
.ui-form-head { display: flex; align-items: center; gap: 10px; color: var(--night); font-family: var(--font-title); font-size: .82rem; }
.ui-steps { display: flex; gap: 6px; margin: 2px 0 4px; }
.ui-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line-light); }
.ui-steps span.on { background: var(--electric); }
.ui-field { display: flex; flex-direction: column; gap: 4px; font-size: .68rem; color: var(--ink-soft); }
.ui-field i { height: 28px; border: 1px solid var(--line-light); border-radius: 8px; background: var(--mist); position: relative; overflow: hidden; }
.ui-field i::after { content: ""; position: absolute; left: 8px; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--ink); opacity: .55; width: 0; }
.ui-field i.select::before { content: ""; position: absolute; right: 10px; top: 9px; width: 6px; height: 6px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); }
.ui-field i.upload { border-style: dashed; }
.ui-submit { margin-top: 6px; background: var(--night); color: var(--white); font-family: var(--font-title); font-size: .72rem; font-weight: 600; text-align: center; padding: 10px; border-radius: 999px; }
.ui-toast { position: absolute; left: 14px; right: 14px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--electric); color: var(--night); font-size: .74rem; font-weight: 600; box-shadow: 0 10px 24px rgba(30, 155, 240, .4); opacity: 0; transform: translateY(20px); }

/* 6.3 tableau de bord */
.ui-dash { background: var(--mist); display: grid; grid-template-columns: 13% 1fr; }
.ui-side { background: var(--night); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; }
.ui-side .ui-logo { width: 12px; height: 12px; margin-bottom: 6px; }
.ui-side i { width: 50%; height: 6px; border-radius: 3px; background: rgba(191, 227, 251, .3); }
.ui-side i.on { background: var(--electric); }
.ui-main { padding: 4%; display: flex; flex-direction: column; gap: 4%; min-width: 0; }
.ui-search { display: flex; align-items: center; gap: 6px; font-size: .62rem; color: var(--ink-soft); background: var(--white); border: 1px solid var(--line-light); border-radius: 8px; padding: 5px 8px; white-space: nowrap; overflow: hidden; }
.ui-search span { width: 9px; height: 9px; border: 2px solid var(--ink-soft); border-radius: 50%; flex: none; }
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.ui-kpis span { height: 30px; border-radius: 8px; background: var(--white); border: 1px solid var(--line-light); position: relative; }
.ui-kpis span::after { content: ""; position: absolute; left: 8px; bottom: 7px; width: 40%; height: 7px; border-radius: 3px; background: var(--abyss); }
.ui-kpis span:first-child { background: var(--night); }
.ui-kpis span:first-child::after { background: var(--electric); }
.ui-panels { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4%; flex: 1; min-height: 0; }
.ui-chart { background: var(--white); border-radius: 8px; border: 1px solid var(--line-light); display: flex; align-items: flex-end; gap: 6%; padding: 8% 7% 6%; }
.ui-chart i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--electric), var(--abyss)); transform-origin: bottom; }
.js .ui-chart i { transform: scaleY(.08); }
.ui-rows { background: var(--white); border-radius: 8px; border: 1px solid var(--line-light); display: flex; flex-direction: column; justify-content: space-around; padding: 6% 8%; }
.ui-rows span { height: 6px; border-radius: 3px; background: var(--line-light); position: relative; }
.ui-rows span::before { content: ""; position: absolute; left: -2px; top: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--glacier); }

/* 6.4 assistant */
.ui-chat { background: linear-gradient(180deg, var(--night), var(--abyss)); padding: 44px 12px 14px; display: flex; flex-direction: column; gap: 10px; border-radius: 0; }
.ui-chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line-dark); color: var(--white); font-family: var(--font-title); font-size: .78rem; }
.ui-chat-head em { margin-left: auto; font-style: normal; font-size: .62rem; color: var(--electric); }
.ui-avatar { width: 26px; height: 26px; border-radius: 50%; background: rgba(30, 155, 240, .15); display: grid; place-items: center; }
.ui-avatar svg { width: 18px; height: 18px; }
.bubble { font-size: .72rem; line-height: 1.4; padding: 8px 11px; border-radius: 14px; max-width: 86%; }
.js .bubble { opacity: 0; transform: translateY(10px) scale(.96); }
.bubble.me { align-self: flex-end; background: var(--electric); color: var(--night); border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: rgba(191, 227, 251, .12); color: var(--white); border: 1px solid var(--line-dark); border-bottom-left-radius: 4px; }
.bubble.typing { display: flex; gap: 4px; padding: 11px 13px; }
.ui-input { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 999px; background: rgba(191, 227, 251, .1); border: 1px solid var(--line-dark); color: rgba(191, 227, 251, .7); font-size: .68rem; }
.ui-input i { width: 22px; height: 22px; border-radius: 50%; background: var(--electric); flex: none; }
.bubble.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--glacier); animation: typing 1.2s ease-in-out infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .15s; }
.bubble.typing span:nth-child(3) { animation-delay: .3s; }

/* Animations des maquettes quand elles sont visibles */
.js .work-item .laptop, .js .work-item .phone { transform: translateY(30px) rotateX(8deg); opacity: .4; transition: transform 1.1s var(--ease), opacity 1s; }
.js .work-item.is-visible .laptop, .js .work-item.is-visible .phone { transform: none; opacity: 1; }
.work-item.is-visible .ui-hero-text b, .work-item.is-visible .ui-hero-text i, .work-item.is-visible .ui-btn { animation: grow-x .9s var(--ease) both; transform-origin: left; }
.work-item.is-visible .ui-hero-text i { animation-delay: .25s; }
.work-item.is-visible .ui-btn { animation-delay: .45s; }
.work-item.is-visible .ui-hero-img span { animation: spin-in 1.4s var(--ease) .3s both; }
.work-item.is-visible .ui-tiles span { animation: pop .6s var(--ease) both; }
.work-item.is-visible .ui-tiles span:nth-child(2) { animation-delay: .12s; }
.work-item.is-visible .ui-tiles span:nth-child(3) { animation-delay: .24s; }
.work-item.is-visible .ui-field i::after { animation: type-in 1s steps(12) both; }
.work-item.is-visible .ui-field:nth-of-type(1) i::after { animation-delay: .5s; --w: 62%; }
.work-item.is-visible .ui-field:nth-of-type(2) i::after { animation-delay: 1.2s; --w: 46%; }
.work-item.is-visible .ui-field:nth-of-type(3) i::after { animation-delay: 1.9s; --w: 54%; }
.work-item.is-visible .ui-field:nth-of-type(4) i::after { animation-delay: 2.5s; --w: 38%; }
.work-item.is-visible .ui-toast { animation: toast 4s var(--ease) 3.4s both; }
.work-item.is-visible .ui-chart i { animation: bar 1.1s var(--ease) both; }
.work-item.is-visible .ui-chart i:nth-child(2) { animation-delay: .08s; }
.work-item.is-visible .ui-chart i:nth-child(3) { animation-delay: .16s; }
.work-item.is-visible .ui-chart i:nth-child(4) { animation-delay: .24s; }
.work-item.is-visible .ui-chart i:nth-child(5) { animation-delay: .32s; }
.work-item.is-visible .ui-chart i:nth-child(6) { animation-delay: .4s; }
.work-item.is-visible .ui-rows span { animation: grow-x .8s var(--ease) both; transform-origin: left; }
.work-item.is-visible .ui-rows span:nth-child(2) { animation-delay: .15s; }
.work-item.is-visible .ui-rows span:nth-child(3) { animation-delay: .3s; }
.work-item.is-visible .ui-rows span:nth-child(4) { animation-delay: .45s; }
.work-item.is-visible .bubble { animation: bubble .5s var(--ease) both; }
.work-item.is-visible .bubble:nth-of-type(1) { animation-delay: .4s; }
.work-item.is-visible .bubble:nth-of-type(2) { animation-delay: 1.3s; }
.work-item.is-visible .bubble:nth-of-type(3) { animation-delay: 2.3s; }
.work-item.is-visible .bubble:nth-of-type(4) { animation-delay: 3s; }

/* ==========================================================
   7. Méthode
   ========================================================== */
.steps-wrap { position: relative; }
.steps { display: grid; gap: 34px; position: relative; }
.steps-track { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line-light); border-radius: 2px; }
.steps-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--electric), var(--abyss)); transform-origin: top; transform: scaleY(var(--p)); border-radius: 2px; box-shadow: 0 0 12px rgba(30, 155, 240, .6); }
.step { position: relative; padding-left: 80px; min-height: 56px; }
.step-dot {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; display: grid; place-items: center;
}
.step-dot::before {
  content: ""; position: absolute; inset: 6px; transform: rotate(45deg); border-radius: 10px;
  background: var(--white); border: 2px solid var(--line-light);
  transition: background-color .5s, border-color .5s, box-shadow .5s, transform .6s var(--ease);
}
.step-dot b { position: relative; font-family: var(--font-title); font-weight: 700; color: var(--abyss); transition: color .4s; }
.step.is-active .step-dot::before { background: var(--night); border-color: var(--electric); box-shadow: 0 0 0 6px rgba(30, 155, 240, .14), 0 0 20px rgba(30, 155, 240, .45); transform: rotate(225deg); }
.step.is-active .step-dot b { color: var(--white); }
.step h3 { font-size: 1.18rem; color: var(--night); margin: 4px 0 8px; }
.step p { color: var(--ink-soft); }

/* ==========================================================
   8. Pourquoi
   ========================================================== */
.why { background: var(--white); }
.why-grid { display: grid; gap: 16px; }
.why-item { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line-light); background: var(--white); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(30, 155, 240, .45); }
.why-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: var(--abyss); background: rgba(30, 155, 240, .12); transition: background-color .3s, color .3s, transform .5s var(--ease); }
.why-icon svg { width: 26px; height: 26px; }
.why-item:hover .why-icon { background: var(--electric); color: var(--night); transform: rotate(-8deg); }
.why-item h3 { font-size: 1.12rem; color: var(--night); margin-bottom: 8px; }
.why-item p { color: var(--ink-soft); }

/* ==========================================================
   9. Direction
   ========================================================== */
.team-grid { display: grid; gap: 20px; max-width: 1000px; }
.person { background: var(--white); border-radius: var(--radius); padding: 32px 24px; text-align: center; border: 1px solid var(--line-light); box-shadow: var(--shadow-1); transition: transform .4s var(--ease), box-shadow .4s; }
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.avatar {
  width: 132px; height: 132px; margin: 0 auto 20px; border-radius: 50%; position: relative;
  background: linear-gradient(145deg, var(--abyss), var(--night)); display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--electric), 0 18px 36px rgba(6, 22, 51, .25);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { font-family: var(--font-title); font-weight: 700; font-size: 2.4rem; color: var(--white); letter-spacing: .04em; }
.person h3 { font-size: 1.25rem; color: var(--night); }
.role { margin-top: 6px; font-weight: 600; color: #1173B8; }

/* ==========================================================
   10. Bandeau CTA
   ========================================================== */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: 88px 0; text-align: center; color: var(--white); background: linear-gradient(135deg, var(--night) 10%, var(--abyss) 90%); }
.cta-pattern { position: absolute; inset: 0; z-index: -1; }
.cta-pattern span { position: absolute; border: 1.5px solid rgba(30, 155, 240, .35); transform: rotate(45deg); border-radius: 8px; animation: pulse-diamond 8s ease-in-out infinite; }
.cta-pattern span:nth-child(1) { width: 180px; height: 180px; left: -60px; top: -60px; }
.cta-pattern span:nth-child(2) { width: 110px; height: 110px; right: 8%; top: 18%; animation-delay: -2s; border-color: rgba(191, 227, 251, .25); }
.cta-pattern span:nth-child(3) { width: 260px; height: 260px; right: -120px; bottom: -140px; animation-delay: -4s; }
.cta-pattern span:nth-child(4) { width: 60px; height: 60px; left: 14%; bottom: 16%; animation-delay: -6s; border-color: rgba(191, 227, 251, .35); }
.cta-pattern span:nth-child(5) { width: 14px; height: 14px; left: 40%; top: 18%; background: var(--electric); border: 0; box-shadow: 0 0 16px var(--electric); animation-delay: -3s; }
.cta-inner h2 { font-size: clamp(1.9rem, 7vw, 3rem); font-weight: 700; }
.cta-inner p { margin: 14px auto 30px; color: var(--glacier); font-size: 1.15rem; max-width: 40ch; }

/* ==========================================================
   11. Contact
   ========================================================== */
.contact { background: var(--mist); }
.contact-grid { display: grid; gap: 44px; align-items: start; }
.contact-buttons { display: grid; gap: 12px; margin-top: 28px; }
.contact-btn {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px;
  border-radius: 16px; background: var(--white); border: 1px solid var(--line-light);
  text-decoration: none; color: var(--night); box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.contact-btn:hover { transform: translateX(4px); border-color: var(--electric); box-shadow: var(--shadow-2); }
.cb-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--night); color: var(--electric); transition: background-color .3s, color .3s; }
.cb-ico svg { width: 22px; height: 22px; }
.contact-btn:hover .cb-ico { background: var(--electric); color: var(--night); }
.contact-btn b { display: block; font-family: var(--font-title); font-size: 1rem; }
.contact-btn small { display: block; color: var(--ink-soft); font-size: .88rem; overflow-wrap: anywhere; }
.coords { margin-top: 28px; display: grid; gap: 10px; color: var(--ink-soft); }
.coords li { display: flex; gap: 10px; align-items: center; }
.coords .ico { color: #1173B8; }
.coords a { color: var(--ink); text-decoration-color: rgba(30, 155, 240, .6); text-underline-offset: 3px; word-break: break-word; }

.contact-form { background: var(--white); border-radius: 22px; padding: 28px 22px; box-shadow: var(--shadow-2); border: 1px solid var(--line-light); display: grid; gap: 16px; }
.contact-form h3 { font-size: 1.3rem; color: var(--night); margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--night); }
.req { color: #C2410C; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #C9D7E6; background: var(--mist); color: var(--ink); font-size: 1rem;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C2A5C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9DB4CC; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--electric); background-color: var(--white); box-shadow: 0 0 0 4px rgba(30, 155, 240, .18); }
.field [aria-invalid="true"] { border-color: #C2410C; background-color: #FFF7F3; }
.form-note { font-size: .9rem; color: var(--ink-soft); }
.form-error { font-size: .95rem; font-weight: 600; color: #B4380B; min-height: 0; }
.form-error:empty { display: none; }
.form-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.form-actions .btn { width: 100%; }

/* ==========================================================
   12. Pied de page
   ========================================================== */
.site-footer { background: var(--night); color: var(--glacier); padding: 64px 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border: 1px solid var(--line-dark); transform: rotate(45deg); border-radius: 30px; }
.footer-grid { display: grid; gap: 36px; position: relative; }
.footer-slogan { margin-top: 18px; font-family: var(--font-title); font-weight: 600; color: var(--white); }
.footer-slogan-fr { margin-top: 4px; font-size: .95rem; }
.site-footer h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer li a, .site-footer li { color: var(--glacier); text-decoration: none; word-break: break-word; }
.site-footer li a { display: inline-block; padding: 6px 0; transition: color .2s, transform .25s var(--ease); }
.site-footer li a:hover { color: var(--white); transform: translateX(3px); }
.footer-contact li { padding: 6px 0; }
.footer-contact li a { padding: 0; }
.footer-bottom { margin-top: 44px; padding-top: 22px; padding-bottom: 96px; border-top: 1px solid var(--line-dark); font-size: .92rem; }

/* ==========================================================
   Bouton WhatsApp flottant
   ========================================================== */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--electric); color: var(--night);
  box-shadow: 0 10px 26px rgba(6, 22, 51, .35);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--electric); animation: ring 2.6s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(30, 155, 240, .5); }

/* ==========================================================
   Apparition au défilement
   ========================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Points de rupture
   ========================================================== */
@media (min-width: 480px) {
  .hero-actions .btn { flex: 0 1 auto; }
  .form-actions { grid-template-columns: 1fr 1fr; }
  .form-actions .btn { white-space: normal; text-align: center; }
}

@media (min-width: 640px) {
  .container { padding: 0 28px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr 1fr; padding: 34px 30px; }
  .contact-form h3, .field-full, .form-note, .form-error, .form-actions { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .phone { width: 260px; }
  .hero-visual { width: 380px; right: -110px; }
}

@media (min-width: 760px) {
  .section { padding: 104px 0; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ambition-card { grid-row: span 2; }
  .contact-buttons { grid-template-columns: 1fr; }
}

@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .site-header.is-scrolled { --header-h: 66px; }
  .burger { display: none; }
  .header-cta { display: inline-flex; margin-left: 0; }
  .main-nav {
    position: static; inset: auto; clip-path: none; visibility: visible; background: none; padding: 0;
    flex-direction: row; margin-left: auto; transition: none;
  }
  .main-nav ul { flex-direction: row; gap: 2px; }
  .main-nav li { opacity: 1; transform: none; transition: none; }
  .main-nav a:not(.btn) { font-size: .95rem; font-weight: 500; padding: 10px 12px; color: rgba(255, 255, 255, .85); position: relative; }
  .main-nav a:not(.btn)::before { display: none; }
  .main-nav a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--electric); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--white); }
  .main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
  .nav-cta-mobile { display: none; }

  .hero-inner { grid-template-columns: 1.25fr 1fr; gap: 24px; }
  .hero-visual { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 440px; justify-self: center; opacity: 1; }
  .scroll-hint { display: block; }

  .about-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
  .about-cards { grid-template-columns: 1fr; }
  .ambition-card { grid-row: auto; padding: 38px 36px; }
  .conviction { padding: 30px 36px; }

  .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .service-card { padding: 36px 30px 28px; }

  .work-list { gap: 110px; }
  .work-item { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .work-item-rev .work-visual { order: 2; }
  .work-item-rev { grid-template-columns: 1fr 1.15fr; }

  /* frise horizontale */
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps-track { left: 28px; right: calc(25% - 49px); top: 27px; bottom: auto; width: auto; height: 2px; }
  .steps-fill { transform-origin: left; transform: scaleX(var(--p)); background: linear-gradient(90deg, var(--electric), var(--abyss)); }
  .step { padding-left: 0; padding-top: 80px; }

  .why-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }

  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; }
  .footer-bottom { padding-bottom: 28px; }
  .wa-float { right: 24px; bottom: 24px; width: 62px; height: 62px; }
}

@media (min-width: 1200px) {
  .main-nav a:not(.btn) { padding: 10px 16px; }
  .main-nav a:not(.btn)::after { left: 16px; right: 16px; }
}

/* ==========================================================
   Images-clés
   ========================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(45deg); }
  33% { transform: translate(14px, -22px) rotate(135deg); }
  66% { transform: translate(-12px, 12px) rotate(225deg); }
}
@keyframes glow { from { opacity: .6; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(405deg); } }
@keyframes spin360 { to { transform: rotate(360deg); } }
@keyframes assemble-a { from { transform: translate(-26px, 26px); opacity: 0; } to { transform: translate(0, 0); opacity: 1; } }
@keyframes assemble-b { from { transform: translate(26px, -26px); opacity: 0; } to { transform: translate(0, 0); opacity: 1; } }
@keyframes breathe-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, 4px); } }
@keyframes breathe-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -4px); } }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wave { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes tassel { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(12deg); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin-in { from { transform: rotate(-135deg) scale(.4); opacity: 0; } to { transform: rotate(45deg) scale(1); opacity: .8; } }
@keyframes pop { from { transform: translateY(10px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes type-in { from { width: 0; } to { width: var(--w, 50%); } }
@keyframes toast { 0% { opacity: 0; transform: translateY(20px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }
@keyframes bar { from { transform: scaleY(.08); } to { transform: scaleY(1); } }
@keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes pulse-diamond { 0%, 100% { transform: rotate(45deg) scale(1); opacity: .7; } 50% { transform: rotate(45deg) scale(1.12); opacity: 1; } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ==========================================================
   Mouvement réduit
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-group + .marquee-group { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding: 0 16px; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .wa-float::before { display: none; }
}
