/* ==========================================================================
   EL-YOX — elyox.com
   Recreated from the design references (Elyox Landing v4 / Clients Elyox).
   Colors, type, spacing, radii and animations are final.
   ========================================================================== */

/* --- Base ---------------------------------------------------------------- */
/* No global box-sizing reset: the design's max-width + padding pairs are sized
   against the default content-box, and switching would narrow every section
   by its horizontal padding. Elements that need border-box opt in locally. */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: #f5f5f5;
  font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, -apple-system, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

a { color: #f5f5f5; text-decoration: none; }
a:hover { color: #a1a1a1; }

.page { min-height: 100vh; background: #000; }

/* Accent words inside headlines */
.serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  color: #999;
}
.serif--soft { color: #aaa; }
.serif--tight { letter-spacing: -0.02em; }

/* --- Keyframes ----------------------------------------------------------- */
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.95; transform: translateX(-50%) scale(1.12); }
}
@keyframes cloudA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(70px, -30px) scale(1.15); }
}
@keyframes cloudB {
  0%, 100% { transform: translate(0, 0) scale(1.1); }
  50%      { transform: translate(-90px, 20px) scale(1); }
}
@keyframes cloudC {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, 30px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes barGrow {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}
@keyframes gaugeBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  border-radius: 99px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.btn--primary { background: #fff; color: #000; }
.btn--primary:hover { background: #ddd; color: #000; }

.btn--light { background: #fff; color: #111; }
.btn--light:hover { background: #ddd; color: #111; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #f5f5f5; }

.btn--ghost-strong {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn--ghost-strong:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.btn--sm  { padding: 10px 20px; font-size: 14px; }
.btn--md  { padding: 14px 26px; font-size: 14px; }
.btn--lg  { padding: 16px 30px; font-size: 15px; }
.btn--cta { padding: 15px 28px; font-size: 15px; }

.btn--glow { box-shadow: 0 0 34px rgba(255, 255, 255, 0.2); }

/* --- Top bar ------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 60px;
  pointer-events: none;
}
/* Logo and actions get equal flex so the nav pill sits dead-center */
.topbar__logo { pointer-events: auto; display: flex; align-items: center; flex: 1 1 0; }
.topbar__logo:hover { opacity: 0.8; }
.topbar__logo img {
  height: 46px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(18, 18, 18, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 600;
}
.nav a, .nav span {
  padding: 8px 16px;
  border-radius: 99px;
  color: #b5b5b5;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav .is-active { background: rgba(255, 255, 255, 0.12); color: #fff; }

.topbar__actions { pointer-events: auto; display: flex; align-items: center; gap: 10px; flex: 1 1 0; justify-content: flex-end; }

.lang-toggle {
  border: none;
  background: transparent;
  color: #999;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.lang-toggle:hover { color: #fff; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0c0c0c 0%, #050505 55%, #000 100%);
  margin-top: -72px;
  padding: 150px 24px 0;
}
.hero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 35%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 25%, black 15%, transparent 65%);
  mask-image: radial-gradient(ellipse at 50% 25%, black 15%, transparent 65%);
  pointer-events: none;
}
.hero__cloud-a {
  position: absolute;
  top: 8%;
  left: -10%;
  width: 640px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(70px);
  animation: cloudA 16s ease-in-out infinite;
  pointer-events: none;
}
.hero__cloud-b {
  position: absolute;
  top: 2%;
  right: -12%;
  width: 720px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  filter: blur(80px);
  animation: cloudB 20s ease-in-out infinite;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.hero__title {
  margin: 0;
  font-size: clamp(48px, 6.8vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
  animation: fadeUp 0.7s ease both;
}
/* Once JS splits the headline into words, each word reveals on its own beat
   and reacts to the cursor; the title-level fade hands over to the words. */
.hero__title.is-split { animation: none; }
.hero__title .w {
  display: inline-block;
  animation: fadeUp 0.55s ease both;
  animation-delay: calc(var(--wi) * 70ms);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease, text-shadow 0.25s ease;
  cursor: default;
}
.hero__title .w:hover {
  transform: translateY(-6px) rotate(-1.5deg);
  color: #fff;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.45);
}
.hero__sub {
  margin: 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: #b0b0b0;
  text-wrap: pretty;
  animation: fadeUp 0.7s 0.55s ease both;
}
.hero__sub strong { color: #f2f2f2; font-weight: 700; }
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.7s 0.75s ease both;
}

/* --- Dashboard mock ------------------------------------------------------ */
.dash {
  position: relative;
  max-width: 1080px;
  margin: 70px auto -2px;
  animation: fadeUp 0.9s 0.4s ease both;
}
.dash__float {
  position: absolute;
  z-index: 2;
  background: #fff;
  color: #111;
  border: 1px solid #ececec;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.dash__float--roas {
  --rot: -5deg;
  top: -30px;
  left: -70px;
  border-radius: 16px;
  padding: 14px 18px;
  animation: floatCard 9s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash__float--roas .k {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
  font-weight: 700;
}
.dash__float--roas .v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }

.dash__float--camp {
  --rot: 4deg;
  top: -42px;
  right: -60px;
  border-radius: 99px;
  padding: 12px 20px;
  animation: floatCard 11s ease-in-out 1s infinite;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash__float--camp .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  animation: gaugeBlink 2s ease-in-out infinite;
}
.dash__float--camp .label { font-size: 13px; font-weight: 700; }

.dash__card {
  background: #fff;
  color: #111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 80px rgba(255, 255, 255, 0.08);
  padding: 28px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.dash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dash__tabs { display: flex; gap: 6px; align-items: center; }
.dash__tab {
  color: #777;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}
.dash__tab--active {
  background: #111;
  color: #fff;
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
}
.dash__live { font-size: 12px; color: #aaa; font-weight: 600; }

.dash__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dash__stat {
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash__stat .label { font-size: 11px; color: #999; font-weight: 600; }
.dash__stat .value { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.dash__stat .delta { font-size: 11px; color: #666; font-weight: 600; }

.dash__bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  padding: 0 6px;
}
.dash__bars span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  transform-origin: bottom;
}

/* --- Logo marquee -------------------------------------------------------- */
.marquee-section { background: #000; padding: 48px 0 10px; overflow: hidden; }
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding-right: 64px;
  animation: marquee 26s linear infinite;
}
.marquee__track a { flex-shrink: 0; }
/* Left as inline on purpose: the baseline descender gap under each logo is
   part of the reference's marquee band height (114px, not 110px). */
.marquee__track img {
  filter: grayscale(1) invert(1) brightness(1.3);
  mix-blend-mode: screen;
  opacity: 0.7;
}
.marquee__track img.logo-isat       { height: 72px; }
.marquee__track img.logo-spysouk    { height: 64px; }
.marquee__track img.logo-carways    { height: 76px; filter: grayscale(1) invert(1) brightness(1.5); }
.marquee__track img.logo-autolens   { height: 100px; }
.marquee__track img.logo-shopynie   { height: 110px; filter: grayscale(1) brightness(1.4); opacity: 0.8; }
.marquee__track img.logo-ssadvisory { height: 60px; }
/* Solid blue disc: inverting would blank the white artwork, so only lighten */
.marquee__track img.logo-sfax       { height: 84px; filter: grayscale(1) brightness(1.35); opacity: 0.85; }

/* --- Section shells ------------------------------------------------------ */
.section { max-width: 1120px; margin: 0 auto; }
.section--services { padding: 100px 24px; }
.section--proof    { padding: 0 24px 100px; }
.section--faq      { max-width: 760px; padding: 0 24px 100px; }
.section--final    { padding: 0 24px 110px; }
.section--block    { padding: 0 24px 80px; }
.section--case     { padding: 0 24px 70px; }
.section--work-cta { padding: 0 24px 100px; }

/* --- Services ------------------------------------------------------------ */
.services__title {
  margin: 0 auto 14px;
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 760px;
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
}
.services__sub {
  margin: 0 auto 50px;
  max-width: 520px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: #a1a1a1;
  text-wrap: pretty;
}
.services__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.svc {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 60%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s;
}
.svc:hover {
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.svc--wide { grid-column: span 2; }
.svc--half { grid-column: span 3; }
.svc__hairline {
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}
.svc__num {
  position: absolute;
  top: 8px;
  right: 18px;
  font-size: 88px;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
}
.svc__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}
.svc__title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5f5f5;
}
.svc__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #a1a1a1;
  text-wrap: pretty;
  max-width: 420px;
}
.svc__metrics {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.svc__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.svc__row .k { font-size: 13px; font-weight: 600; color: #ccc; }
.svc__row .v { font-size: 13px; font-weight: 800; color: #fff; }
.svc__row .v--live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.svc__row .v--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: gaugeBlink 2s infinite;
}

/* --- Case study panel ---------------------------------------------------- */
.proof {
  position: relative;
  background: #0d0d0d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 70px 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
}
.proof__glow {
  position: absolute;
  top: -140px;
  right: -80px;
  width: 480px;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
  animation: cloudC 14s ease-in-out infinite;
}
.proof__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888;
}
.proof__title .proof__brand { color: #4e7d20; }
.proof__title {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 48px);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.06;
  text-wrap: balance;
}
.proof__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #b5b5b5;
  max-width: 480px;
  text-wrap: pretty;
}
.proof__cta { align-self: flex-start; margin-top: 6px; }
.proof__right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.proof__stat {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
}
.proof__stat .num {
  font-size: 78px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}
.proof__stat .cap { font-size: 14px; color: #999; margin-top: 12px; line-height: 1.5; }
.proof__link {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  transition: background 0.2s;
}
.proof__link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.proof__link .k { font-size: 13px; color: #999; }
.proof__link .v { font-size: 15px; font-weight: 800; }

/* --- FAQ ----------------------------------------------------------------- */
.faq__title {
  margin: 0 0 36px;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.035em;
  font-weight: 800;
  text-align: center;
}
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: #f5f5f5;
}
.faq__icon { font-size: 20px; font-weight: 400; color: #777; }
.faq__a {
  margin: 0;
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: #a1a1a1;
  text-wrap: pretty;
}
.faq__a[hidden] { display: none; }

/* --- Final CTA ----------------------------------------------------------- */
.final {
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 90px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  overflow: hidden;
}
.final__glow {
  position: absolute;
  bottom: -220px;
  left: 50%;
  width: 800px;
  height: 400px;
  margin-left: -400px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
  animation: cloudC 12s ease-in-out infinite;
}
.final__title {
  position: relative;
  margin: 0;
  font-size: clamp(34px, 4.5vw, 58px);
  letter-spacing: -0.045em;
  font-weight: 800;
  line-height: 1.02;
  text-wrap: balance;
}
.final__sub {
  position: relative;
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: #b5b5b5;
  text-wrap: pretty;
}
.final__actions {
  position: relative;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.final__note { position: relative; margin: 0; font-size: 13px; color: #777; }

/* --- Footer -------------------------------------------------------------- */
.footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 32px 40px;
}
.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__brand {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__brand > span { display: flex; align-items: center; align-self: flex-start; }
.footer__brand img {
  height: 52px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}
.footer__tagline { margin: 0; font-size: 13.5px; line-height: 1.6; color: #888; }
.footer__cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col > span { font-size: 13px; font-weight: 800; color: #f5f5f5; }
.footer__col a { font-size: 14px; color: #999; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  max-width: 1120px;
  margin: 44px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 13px;
  color: #666;
}

/* Compact footer (Réalisations) */
.footer--slim { padding: 36px 32px; }
.footer--slim .footer__inner { align-items: center; }
.footer--slim a:hover { opacity: 0.8; }
.footer--slim img {
  height: 42px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}
.footer--slim .copy { font-size: 13px; color: #666; }

/* ==========================================================================
   Réalisations page
   ========================================================================== */
.work-head {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.work-head__glow {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 700px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}
.work-head__eyebrow {
  position: relative;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #777;
  animation: fadeUp 0.6s ease both;
}
.work-head__title {
  position: relative;
  margin: 0;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
  animation: fadeUp 0.6s 0.1s ease both;
}
.work-head__sub {
  position: relative;
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: #a1a1a1;
  text-wrap: pretty;
  animation: fadeUp 0.6s 0.2s ease both;
}

.block__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.035em;
  font-weight: 800;
  text-align: center;
}
.block__sub {
  margin: 0 auto 44px;
  max-width: 540px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: #a1a1a1;
  text-wrap: pretty;
}

/* --- Creatives: three live organic videos with their real numbers ------- */
.creatives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1020px;
  margin: 0 auto;
}
.creative {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.creative__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.creative__name { font-size: 16px; font-weight: 800; }
.creative__badge {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  padding: 5px 12px;
  white-space: nowrap;
}
.creative__player {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.creative__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* sources are encoded at exactly 720x1280 (9:16) */
}
.creative__sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.creative__sound:hover { background: rgba(0, 0, 0, 0.78); transform: scale(1.06); }
.creative__sound .ico--on { display: none; }
.creative__sound[aria-pressed="true"] .ico--on { display: block; }
.creative__sound[aria-pressed="true"] .ico--off { display: none; }
/* KPI tiles: the numbers are the hero — big, white, boxed, side by side */
.creative__kpis {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
}
.creative__kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 14px 8px 12px;
  border-radius: 14px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 70%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.creative__kpi .num {
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.creative__kpi .cap {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8f8f8f;
  line-height: 1.35;
}
.creative__caption { margin: 0; font-size: 13px; color: #888; line-height: 1.5; }
.creative__link { margin-top: auto; align-self: flex-start; }

.client-grid__title {
  margin: 0 0 34px;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.035em;
  font-weight: 800;
  text-align: center;
}
.client-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.client {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  color: #f5f5f5;
}
/* Cursor spotlight — --mx/--my are fed by site.js on mousemove */
.client::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.client:hover::before { opacity: 1; }
/* Sheen sweep across the card on hover */
.client::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -45%;
  width: 38%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-18deg);
  transition: transform 0.65s ease;
  pointer-events: none;
}
.client:hover::after { transform: skewX(-18deg) translateX(430%); }
.client:hover {
  border: 1px solid rgba(255, 255, 255, 0.32);
  transform: translateY(-5px);
  color: #fff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.client__chip {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  padding: 10px 22px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.client:hover .client__chip {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}
.client__chip img { max-height: 52px; max-width: 170px; }
.client__meta { text-align: center; }
.client__name { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.client__tag { font-size: 13px; color: #888; margin-top: 3px; }
.client__domain { font-size: 13px; font-weight: 700; color: #999; transition: color 0.25s ease, letter-spacing 0.25s ease; }
.client:hover .client__domain { color: #fff; letter-spacing: 0.02em; }
@media (prefers-reduced-motion: reduce) {
  .client, .client__chip, .client__domain { transition: none; }
  .client::after { display: none; }
  .client:hover { transform: none; }
  .client:hover .client__chip { transform: none; }
}

.testi__title {
  margin: 0 0 40px;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.035em;
  font-weight: 800;
  text-align: center;
}
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.testi {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.testi__quote { margin: 0; font-size: 15px; line-height: 1.6; color: #999; font-style: italic; }
.testi__meta { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi__avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.testi__name { font-size: 14px; font-weight: 700; color: #ccc; }
.testi__role { font-size: 12px; color: #777; }

.final--work { padding: 70px 40px; gap: 20px; }
.final--work .final__glow {
  bottom: -200px;
  width: 700px;
  height: 380px;
  margin-left: -350px;
}
.final--work .final__title {
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
/* The work-page CTA sits tighter than the landing one — no extra top margin */
.final--work .final__actions { margin-top: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  /* Mobile top bar: logo centered on top, nav pill (Services / Réalisations /
     FAQ) centered under it, EN toggle pinned top-right. The "Réserver un
     appel" button is hidden — the hero CTA already carries it. */
  .topbar { flex-direction: column; align-items: center; gap: 10px; }
  .topbar__logo, .topbar__actions { flex: none; }
  .nav a, .nav span { padding: 7px 14px; font-size: 13px; }
  .topbar__actions { position: absolute; top: 14px; right: 16px; }
  .topbar__actions .btn { display: none; }
  .dash__float { display: none; }
  .dash__stats { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr; padding: 44px 28px; }
  .services__grid { display: flex; flex-direction: column; }
  .final { padding: 60px 24px; }
  .final--work { padding: 56px 24px; }

  /* Fit the surrounding chrome to narrow viewports */
  .topbar { padding: 12px 18px; }
  .topbar__logo img { height: 40px; }
  .section--services { padding: 72px 20px; }
  .section--proof { padding: 0 20px 72px; }
  .section--faq { padding: 0 20px 72px; }
  .section--final { padding: 0 20px 80px; }
  .section--block { padding: 0 20px 64px; }
  .section--case { padding: 0 20px 56px; }
  .section--work-cta { padding: 0 20px 72px; }
  .work-head { padding: 56px 20px 44px; }
  /* Slide the hero up behind the two-row top bar (like desktop does with its
     fixed -72px) so the grid texture fills the strip behind the logo and nav;
     site.js measures the real bar height into --topbarH. */
  .hero {
    margin-top: calc(var(--topbarH, 112px) * -1);
    padding: calc(var(--topbarH, 112px) + 44px) 20px 0;
  }
  .dash { margin-top: 54px; }
  .dash__card { padding: 22px 20px 0; }
  .dash__bars { height: 96px; gap: 7px; }
  .footer { padding: 48px 20px 32px; }
  .footer__cols { gap: 40px; }
  .footer--slim { padding: 28px 20px; }
  .proof__stat { padding: 26px; }
  .proof__stat .num { font-size: 62px; }
  .svc { padding: 28px 24px; }
}

@media (max-width: 520px) {
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar__logo img { height: 34px; }
  .btn--sm { padding: 9px 15px; font-size: 13px; }
  .lang-toggle { padding: 7px 6px; }
  .nav a, .nav span { padding: 6px 11px; font-size: 12px; }
  .topbar__actions { top: 10px; right: 10px; }
  .hero { padding: calc(var(--topbarH, 100px) + 36px) 18px 0; }
  .hero__inner { gap: 20px; }
  .hero__title { font-size: clamp(32px, 8.8vw, 38px); }
  .hero__sub { font-size: 15px; }
  .hero__actions { flex-direction: column; align-self: center; width: 100%; max-width: 300px; gap: 8px; }
  .hero__actions .btn { display: block; text-align: center; padding: 12px 22px; font-size: 14px; }
  /* Dashboard mock: a small centered phone-sized card instead of a wall */
  .dash { max-width: 400px; margin: 40px auto -2px; }
  .dash__card { padding: 18px 16px 0; gap: 16px; border-radius: 20px 20px 0 0; }
  .dash__tab, .dash__tab--active { padding: 6px 10px; font-size: 12px; }
  .dash__live { font-size: 10px; }
  .dash__stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .dash__stat { padding: 12px; }
  .dash__stat .value { font-size: 19px; }
  .dash__stat .label, .dash__stat .delta { font-size: 10px; }
  .dash__bars { height: 64px; gap: 4px; }
  .marquee-section { padding: 36px 0 6px; }
  .marquee__track { gap: 44px; }
  .section--services { padding: 60px 18px; }
  .section--proof, .section--faq { padding: 0 18px 60px; }
  .section--block { padding: 0 18px 56px; }
  .section--case { padding: 0 18px 48px; }
  .section--final, .section--work-cta { padding: 0 18px 64px; }
  .proof { padding: 36px 22px; }
  .final { padding: 52px 20px; }
  .final__actions { flex-direction: column; align-self: stretch; width: 100%; }
  .final__actions .btn { display: block; text-align: center; }
  .faq__q { padding: 18px 18px; font-size: 15px; }
  .faq__a { padding: 0 18px 20px; }
  .svc { padding: 26px 22px; }
  .testi { padding: 24px; }
  .footer__cols { gap: 32px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}
