/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100dvh;
  padding-top: 140px;
  padding-bottom: var(--s-20);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}
.hero__halo-1 { width: 600px; height: 600px; left: -260px; top: -180px; }
.hero__halo-2 { width: 480px; height: 480px; right: -180px; bottom: -160px; opacity: 0.4; }

/* Subtle dotted grid overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10, 22, 40, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 100%);
}

/* Mesh gradient blobs — perpetual organic motion */
.hero__mesh {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.55;
}
.hero__mesh-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  will-change: transform;
}
.hero__mesh-blob--1 {
  width: 520px; height: 520px;
  top: -8%; left: -10%;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.35) 0%, transparent 70%);
  animation: blobDrift1 22s ease-in-out infinite;
}
.hero__mesh-blob--2 {
  width: 600px; height: 600px;
  bottom: -12%; right: -8%;
  background: radial-gradient(circle, rgba(255, 180, 100, 0.28) 0%, transparent 70%);
  animation: blobDrift2 28s ease-in-out infinite;
}
.hero__mesh-blob--3 {
  width: 380px; height: 380px;
  top: 35%; left: 38%;
  background: radial-gradient(circle, rgba(255, 213, 158, 0.22) 0%, transparent 70%);
  animation: blobDrift3 18s ease-in-out infinite;
}
@keyframes blobDrift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(40px, 60px, 0) scale(1.1); }
  66% { transform: translate3d(-30px, 40px, 0) scale(0.95); }
}
@keyframes blobDrift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-50px, -40px, 0) scale(1.15); }
}
@keyframes blobDrift3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40% { transform: translate3d(-60px, 30px, 0) scale(0.85); }
  80% { transform: translate3d(40px, -20px, 0) scale(1.08); }
}

/* Decorative SVG line — hand-drawn arrow that draws on load */
.hero__deco-arrow {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: 140px;
  height: auto;
  bottom: 26%;
  left: 35%;
  opacity: 0.5;
  display: none;
}
.hero__deco-arrow path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawArrow 2.4s var(--ease-out-expo) 0.8s forwards;
}
@keyframes drawArrow { to { stroke-dashoffset: 0; } }
@media (min-width: 1280px) { .hero__deco-arrow { display: block; } }

/* .split-word styling moved to components.css (loaded on every page). */

/* ============== HERO AMBIENT — grille blueprint + marqueurs ============== */
.hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Courbes topographiques — référence carte / lignes de niveau */
.hero__ambient-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 30%, transparent 90%);
  opacity: 0.9;
}
.hero__ambient-topo path {
  vector-effect: non-scaling-stroke;
}

/* 4 marqueurs d'angle "blueprint" — crochets fins en orange */
.hero__ambient-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0.6;
}
.hero__ambient-mark::before,
.hero__ambient-mark::after {
  content: "";
  position: absolute;
  background: var(--orange);
}
.hero__ambient-mark::before { width: 22px; height: 1.5px; }
.hero__ambient-mark::after { width: 1.5px; height: 22px; }
.hero__ambient-mark--tl { top: clamp(48px, 6vh, 88px); left: clamp(20px, 4vw, 56px); }
.hero__ambient-mark--tl::before { top: 0; left: 0; }
.hero__ambient-mark--tl::after  { top: 0; left: 0; }
.hero__ambient-mark--tr { top: clamp(48px, 6vh, 88px); right: clamp(20px, 4vw, 56px); }
.hero__ambient-mark--tr::before { top: 0; right: 0; }
.hero__ambient-mark--tr::after  { top: 0; right: 0; }
.hero__ambient-mark--bl { bottom: clamp(48px, 6vh, 88px); left: clamp(20px, 4vw, 56px); }
.hero__ambient-mark--bl::before { bottom: 0; left: 0; }
.hero__ambient-mark--bl::after  { bottom: 0; left: 0; }
.hero__ambient-mark--br { bottom: clamp(48px, 6vh, 88px); right: clamp(20px, 4vw, 56px); }
.hero__ambient-mark--br::before { bottom: 0; right: 0; }
.hero__ambient-mark--br::after  { bottom: 0; right: 0; }

/* Petits dots orange qui pulsent (accents) */
.hero__ambient-dot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 107, 26, 0.6);
  animation: heroAmbientDot 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.hero__ambient-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 26, 0.45);
  animation: heroAmbientDotRing 2.4s ease-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes heroAmbientDot {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.15); }
}
@keyframes heroAmbientDotRing {
  0%   { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Voile cream pour garantir la lisibilité du contenu */
.hero__ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 250, 249, 0.4) 0%, rgba(250, 250, 249, 0.1) 30%, rgba(250, 250, 249, 0.55) 100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__ambient-dot,
  .hero__ambient-dot::before { animation: none !important; }
}

/* ============== HERO AVATAR STACK ============== */
.hero__avatars {
  display: inline-flex;
  align-items: center;
  margin-right: var(--s-3);
}
.hero__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--cream);
  margin-left: -10px;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 10px -3px rgba(10, 22, 40, 0.15);
  transition: transform 0.5s var(--ease-out-expo);
}
.hero__avatar:first-child { margin-left: 0; }
.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
  padding: 4px;
}
.hero__avatar--more {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0;
}
.hero__avatars:hover .hero__avatar { transform: translateX(0); }
.hero__avatars:hover .hero__avatar:nth-child(1) { transform: translateX(-4px); }
.hero__avatars:hover .hero__avatar:nth-child(2) { transform: translateX(-2px); }
.hero__avatars:hover .hero__avatar:nth-child(4) { transform: translateX(2px); }
.hero__avatars:hover .hero__avatar:nth-child(5) { transform: translateX(4px); }

/* ============== HERO FLOATING MINI PREVIEW CARDS ============== */
.hero__floater {
  position: absolute;
  z-index: 4;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow:
    0 30px 60px -20px rgba(10, 22, 40, 0.32),
    0 14px 30px -10px rgba(255, 107, 26, 0.16);
  cursor: pointer;
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.4s;
  transform-style: preserve-3d;
  display: block;
  isolation: isolate;
}
.hero__floater::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background: linear-gradient(180deg, var(--linen) 0%, transparent 100%);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.hero__floater::after {
  content: "";
  position: absolute;
  top: 4px; left: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 9px 0 0 var(--line-strong), 18px 0 0 var(--line-strong);
  z-index: 3;
}
/* ============== HERO 3-COLUMN GALLERY ============== */
.hero__right {
  position: relative;
  height: clamp(480px, 78vh, 740px);
  /* Full-bleed: width extended past grid cell to viewport right edge.
     `100%` is the natural grid cell width, plus `(50vw - 50%)` is the gap
     from grid cell right edge to viewport right edge */
  width: calc(100% + (50vw - 50%));
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
  overflow: hidden;
  /* Smooth fade on left (where it meets text column) + top/bottom.
     Right is full-bleed to viewport edge, no fade needed there. */
  mask-image:
    linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 16%, black 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 16%, black 100%);
  -webkit-mask-composite: source-in;
}
.hero__canvas { display: none !important; } /* hide ThreeJS canvas — gallery takes over */

.hero-gallery {
  position: absolute;
  inset: -8% -10%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  transform: perspective(1600px) rotateX(8deg) rotateY(-14deg) rotateZ(7deg) scale(1.02);
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}
.hero-gallery__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: max-content;
  will-change: transform;
}
.hero-gallery__col--down {
  animation: galleryDown var(--gallery-speed, 38s) linear infinite;
}
.hero-gallery__col--up {
  animation: galleryUp var(--gallery-speed-up, 44s) linear infinite;
}
.hero-gallery__col:nth-child(2) { --gallery-speed-up: 50s; margin-top: -8%; }
.hero-gallery__col:nth-child(3) { --gallery-speed: 42s; }

@keyframes galleryDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
@keyframes galleryUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.hero-gallery__card {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 18px 36px -14px rgba(10, 22, 40, 0.32),
    0 8px 18px -6px rgba(255, 107, 26, 0.08);
  flex-shrink: 0;
  transform: translateZ(0);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.4s;
  position: relative;
  isolation: isolate;
}
.hero-gallery__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 11px;
  background: linear-gradient(180deg, var(--linen) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-gallery__card::after {
  content: "";
  position: absolute;
  top: 4px; left: 6px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 7px 0 0 var(--line-strong), 14px 0 0 var(--line-strong);
  z-index: 3;
}
.hero-gallery__card img,
.hero-gallery__card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--linen);
}
.hero-gallery__card video { object-position: center; }
/* Indicator vidéo : petit chip play en bas droite */
.hero-gallery__card--video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0) 50%, rgba(10, 22, 40, 0.35) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-gallery__card--video::after {
  content: "▶";
  position: absolute;
  bottom: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  line-height: 26px;
  text-align: center;
  z-index: 3;
  box-shadow: 0 4px 12px -2px rgba(255, 107, 26, 0.55);
}
.hero-gallery__card:hover {
  transform: translateZ(20px) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 30px 60px -16px rgba(10, 22, 40, 0.4),
    0 16px 32px -8px rgba(255, 107, 26, 0.22);
  z-index: 5;
}

/* Pause all on hover (so user can click) */
.hero-gallery:hover .hero-gallery__col { animation-play-state: paused; }

/* Edge fade masks (top & bottom) for premium "infinite tunnel" effect */
.hero-gallery__fade {
  position: absolute;
  left: 0; right: 0;
  height: 18%;
  z-index: 4;
  pointer-events: none;
}
.hero-gallery__fade--top {
  top: 0;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(250, 250, 249, 0.6) 50%, transparent 100%);
}
.hero-gallery__fade--bottom {
  bottom: 0;
  background: linear-gradient(0deg, var(--cream) 0%, rgba(250, 250, 249, 0.6) 50%, transparent 100%);
}

@media (max-width: 1024px) {
  .hero-gallery {
    transform: perspective(1400px) rotateX(6deg) rotateY(-10deg) rotateZ(4deg) scale(1);
  }
}
@media (max-width: 768px) {
  .hero__right { height: 360px; }
  .hero-gallery {
    inset: -8% -8%;
    gap: 12px;
    transform: perspective(1000px) rotateX(4deg) rotateZ(2deg);
  }
  .hero-gallery__col { gap: 12px; }
}

/* ============== LEGACY FLOATER (kept for compat) ============== */
/* Inner track : two stacked copies of the screenshot for seamless loop */
.hero__floater-track {
  position: absolute;
  inset: 14px 0 0 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: floaterLoop var(--loop-speed, 28s) linear infinite;
  will-change: transform;
}
.hero__floater-track img {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}
@keyframes floaterLoop {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.hero__floater:hover .hero__floater-track { animation-play-state: paused; }
.hero__floater:hover {
  transform: scale(1.06) rotate(var(--rot, 0deg)) !important;
  box-shadow:
    0 40px 80px -20px rgba(10, 22, 40, 0.4),
    0 20px 50px -10px rgba(255, 107, 26, 0.32);
  z-index: 10;
}

/* Each floater — distinct rotation, position, loop speed (varied = natural) */
.hero__floater--1 {
  --rot: 4deg;
  --loop-speed: 32s;
  top: 4%;
  right: 8%;
  width: 200px;
  aspect-ratio: 4 / 5;
  animation: floaterBob 9s ease-in-out infinite;
}
.hero__floater--2 {
  --rot: -6deg;
  --loop-speed: 38s;
  bottom: 10%;
  left: -8%;
  width: 220px;
  aspect-ratio: 4 / 5;
  animation: floaterBob 11s ease-in-out infinite -3s;
}
.hero__floater--3 {
  --rot: 8deg;
  --loop-speed: 26s;
  top: 38%;
  right: -10%;
  width: 180px;
  aspect-ratio: 4 / 5;
  animation: floaterBob 8s ease-in-out infinite -1.5s;
}
@keyframes floaterBob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 4deg)); }
  50% { transform: translateY(-14px) rotate(var(--rot, 4deg)); }
}

@media (max-width: 1024px) {
  .hero__floater--1, .hero__floater--3 { display: none; }
  .hero__floater--2 { display: none; }
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-12);
  align-items: center;
  width: 100%;
}
.hero__left { display: flex; flex-direction: column; gap: var(--s-6); }
.hero__title {
  font-size: var(--fs-display);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
}
.hero__title em {
  font-family: "Cabinet Grotesk", serif;
  font-style: italic;
  font-weight: 700;
  color: var(--orange);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: -4px; height: 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'><path d='M2 9c40-6 90-9 196 0' fill='none' stroke='%23FF6B1A' stroke-width='2.5' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  animation: drawScribble 1.4s var(--ease-out-expo) 0.6s both;
  transform-origin: left;
}
@keyframes drawScribble {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero__rotator {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-block: var(--s-2) var(--s-1);
  position: relative;
}
.hero__rotator::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-glow);
  animation: pulse 2.4s var(--ease-out-expo) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 26, 0); }
}
.hero__rotator-words {
  position: relative;
  height: 1.4em;
  overflow: hidden;
  display: inline-block;
  min-width: 320px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  letter-spacing: -0.015em;
}
.hero__rotator-words ul {
  display: block;
  animation: rotateWords 9s ease-in-out infinite;
}
.hero__rotator-words li {
  display: block;
  height: 1.4em;
  color: var(--ink);
}
@keyframes rotateWords {
  0%, 28% { transform: translateY(0); }
  33%, 61% { transform: translateY(-1.4em); }
  66%, 94% { transform: translateY(-2.8em); }
  100% { transform: translateY(-4.2em); }
}
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--mute);
  max-width: 50ch;
}
.hero__cta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
}
.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-3);
  flex-wrap: wrap;
}
.hero__avatars {
  display: flex;
  align-items: center;
}
.hero__avatars img {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  margin-left: -10px;
  object-fit: cover;
  background: var(--linen);
}
.hero__avatars img:first-child { margin-left: 0; }

/* Right canvas (legacy .hero__right block removed — see .hero__right at line ~210) */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero__rocket-fallback {
  display: none;
}
.hero__floating {
  position: absolute;
  z-index: 3;
  border-radius: var(--r-xl);
  padding: var(--s-4) var(--s-5);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-glass);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.85rem;
  animation: float 6s ease-in-out infinite;
}
.hero__floating--1 { top: 12%; right: 6%; animation-delay: 0s; }
.hero__floating--2 { bottom: 18%; left: -3%; animation-delay: -3s; }
.hero__floating--3 { top: 50%; right: -2%; animation-delay: -1.5s; }
.hero__floating .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-glow);
}
.hero__floating strong { color: var(--ink); font-weight: 600; }
.hero__floating em { color: var(--mute); font-family: var(--font-mono); font-style: normal; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__right { height: 360px; order: -1; }
  .hero { padding-top: 120px; }
}
@media (max-width: 640px) {
  .hero__floating--1, .hero__floating--3 { display: none; }
  .hero { padding-top: 96px; padding-bottom: var(--s-10); min-height: 0; }
  .hero__right { height: 280px; }
}

/* ============== TESTIMONIALS — VIDEOS ============== */
.section--testi { background: var(--cream); position: relative; overflow: hidden; }
.section--testi::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.10) 0%, transparent 65%);
  top: -10%; right: -10%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.section--testi .container { position: relative; z-index: 1; }

/* Layout: text left + 2 videos right (split asymmetric) */
.testimonials__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.testimonials__text {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  max-width: 480px;
}
.testimonials__text h2 {
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  line-height: 1.02;
  margin: 0;
}
.testimonials__desc {
  font-size: 1.08rem;
  color: var(--mute);
  line-height: 1.55;
  max-width: 42ch;
  margin: 0;
}
.testimonials__cta {
  margin-top: var(--s-4);
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 1024px) {
  .testimonials__layout {
    grid-template-columns: 1fr;
    gap: var(--s-12);
  }
  .testimonials__text { max-width: none; }
}

/* Stack of 2 videos side-by-side, asymmetric zigzag */
.video-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}

.video-card {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 9 / 12;
  max-height: 540px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 60px -22px rgba(10, 22, 40, 0.32),
    0 14px 30px -10px rgba(255, 107, 26, 0.14);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s;
  isolation: isolate;
}
.video-card:nth-child(1) { transform: translateY(-14px); }
.video-card:nth-child(2) { transform: translateY(14px); }
.video-card:nth-child(1):hover {
  transform: translateY(-20px) scale(1.02);
}
.video-card:nth-child(2):hover {
  transform: translateY(8px) scale(1.02);
}
.video-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 50px 100px -30px rgba(10, 22, 40, 0.45),
    0 22px 50px -10px rgba(255, 107, 26, 0.24);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}
.video-card:hover video { transform: scale(1.04); }

/* Dark gradient overlay for caption legibility */
.video-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 22, 40, 0.35) 0%,
    rgba(10, 22, 40, 0) 32%,
    rgba(10, 22, 40, 0) 58%,
    rgba(10, 22, 40, 0.78) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity var(--d-base);
}
.video-card.is-playing .video-card__shade { opacity: 0; }

/* Caption — top tag + bottom CTA */
.video-card__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-5);
  z-index: 2;
  pointer-events: none;
  transition: opacity var(--d-base);
}
.video-card.is-playing .video-card__caption { opacity: 0; }
.video-card__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 12px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.video-card__tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.22);
}
.video-card__cta {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(10, 22, 40, 0.6);
  font-weight: 500;
}

/* Play button — premium glass + double pulse rings */
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 92px; height: 92px;
  border-radius: 50%;
  background: rgba(255, 107, 26, 0.96);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 24px 60px -10px rgba(255, 107, 26, 0.65),
    0 10px 24px -6px rgba(10, 22, 40, 0.35);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity var(--d-fast);
  pointer-events: none;
  z-index: 3;
}
.video-card__play svg { transform: translateX(2px); }
.video-card__play::before, .video-card__play::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 107, 26, 0.55);
  animation: vidPulseRing 2.4s ease-out infinite;
  pointer-events: none;
}
.video-card__play::after {
  inset: -18px;
  animation-delay: -1.2s;
  border-color: rgba(255, 107, 26, 0.32);
}
@keyframes vidPulseRing {
  0% { transform: scale(0.82); opacity: 1; }
  100% { transform: scale(1.65); opacity: 0; }
}
.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.08);
}
.video-card.is-playing .video-card__play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

@media (max-width: 1024px) {
  .video-stack { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .video-card { aspect-ratio: 9 / 13; max-height: 520px; }
  .video-card:nth-child(1), .video-card:nth-child(2) { transform: translateY(0); }
  .video-card:nth-child(1):hover, .video-card:nth-child(2):hover {
    transform: translateY(-6px) scale(1.02);
  }
}
@media (max-width: 640px) {
  .video-stack { grid-template-columns: 1fr; gap: var(--s-5); }
  .video-card { aspect-ratio: 9 / 14; max-height: 560px; }
}

/* ============== OLD TESTIMONIALS (legacy class kept for reuse if needed) ============== */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-12);
  align-items: start;
}
.testimonials__head { padding-top: var(--s-6); }
.testimonials__head h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.02; }
.testimonials__head p { margin-top: var(--s-5); }

.testi-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}
.testi-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--s-8);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-5);
  align-items: start;
  overflow: hidden;
}
.testi-card:nth-child(2) { transform: translateX(40px); background: var(--ink); border: 0; color: var(--white); }
.testi-card:nth-child(2) .testi-card__quote { color: var(--white); }
.testi-card:nth-child(2) .testi-card__name { color: var(--white); }
.testi-card:nth-child(2) .testi-card__role { color: rgba(255,255,255,0.6); }
.testi-card__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--orange);
  font-weight: 700;
  border: 2px solid var(--line);
  flex-shrink: 0;
}
.testi-card:nth-child(2) .testi-card__avatar { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
.testi-card__quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.testi-card__quote::before {
  content: "“";
  font-family: serif;
  font-size: 3rem;
  line-height: 0;
  margin-right: 4px;
  color: var(--orange);
  vertical-align: -0.3em;
}
.testi-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.testi-card__name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.testi-card__role { color: var(--mute); font-size: 0.85rem; font-family: var(--font-mono); letter-spacing: 0.06em; }
.testi-card__rating { display: flex; gap: 2px; color: var(--orange); }
.testi-card__rating svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 1024px) {
  .testimonials__grid { grid-template-columns: 1fr; gap: var(--s-10); }
  .testi-card:nth-child(2) { transform: translateX(0); }
}
@media (max-width: 640px) {
  .testi-card { grid-template-columns: 56px 1fr; padding: var(--s-6); }
  .testi-card__avatar { width: 56px; height: 56px; font-size: 1.2rem; }
}

/* ============== SERVICES BENTO — 4 cards uniformes 2×2 ============== */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(20px, 2vw, 32px);
  perspective: 1400px;
}
.bento__card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(22px, 2.4vw, 36px);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 24px);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: border-color 0.5s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
  /* mask reveal initial state — animated by GSAP */
  clip-path: inset(0 0 0 0 round var(--r-2xl));
}
.bento__card:hover {
  border-color: rgba(255, 107, 26, 0.32);
  box-shadow:
    0 1px 0 rgba(10, 22, 40, 0.04),
    0 32px 70px -28px rgba(10, 22, 40, 0.22),
    0 14px 28px -14px rgba(255, 107, 26, 0.14);
}
/* All four cards share the exact same footprint */
.bento__card-1,
.bento__card-2,
.bento__card-3,
.bento__card-4 {
  grid-column: span 1;
  grid-row: span 1;
  min-height: 540px;
}
.bento__card-1 { background: var(--cream); }
.bento__card .bento__visual { flex: 1; min-height: 240px; }

/* Initial mask state — GSAP animates clip-path inset to 0 */
.bento__card[data-svc-card] {
  clip-path: inset(0 0 100% 0 round var(--r-2xl));
}
.bento__card[data-svc-card].is-revealed {
  clip-path: inset(0 0 0% 0 round var(--r-2xl));
}

/* Index typographique géant en arrière-plan */
.bento__index {
  position: absolute;
  top: 8px;
  right: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 6vw, 7.5rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 22, 40, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: -webkit-text-stroke 0.5s var(--ease-out-expo);
}
.bento__index--dark { -webkit-text-stroke-color: rgba(255, 255, 255, 0.08); }
.bento__card:hover .bento__index { -webkit-text-stroke: 1px rgba(255, 107, 26, 0.32); }

.bento__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.bento__card h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0;
}
.bento__card-1 h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.bento__card p { font-size: 0.92rem; line-height: 1.5; max-width: 38ch; margin: 0; color: var(--mute); }

.bento__features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--mute);
  list-style: none;
  padding: 0;
  margin: 0;
}
.bento__features li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.bento__features li::before {
  content: "→";
  color: var(--orange);
  font-family: var(--font-mono);
}

/* === Visual frame — base for all 5 micro-démos === */
.bento__visual {
  position: relative;
  z-index: 1;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 16px 32px -18px rgba(10, 22, 40, 0.18);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}
.bento__visual--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.bento__card:hover .bento__visual {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 24px 48px -18px rgba(10, 22, 40, 0.26),
    0 12px 24px -10px rgba(255, 107, 26, 0.18);
}

/* Magnetic chip — appears on hover at top-right of visual */
.bento__chip {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 24px -8px rgba(255, 107, 26, 0.55);
  opacity: 0;
  transform: translate3d(8px, -8px, 30px) scale(0.7);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.55s var(--ease-bounce);
  z-index: 5;
  pointer-events: none;
}
.bento__chip--dark {
  background: var(--orange);
  border-color: rgba(255, 255, 255, 0.32);
}
.bento__card:hover .bento__chip {
  opacity: 1;
  transform: translate3d(0, 0, 30px) scale(1);
}

/* === CARD 1 — Browser mock with cursor + skeleton draw-in + LIVE badge === */
.bento__browser {
  position: relative;
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.bento__browser-bar {
  flex: none;
  height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(245,244,241,0.96) 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}
.bento__browser-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
}
.bento__browser-bar i:nth-child(1) { background: #FF5F57; }
.bento__browser-bar i:nth-child(2) { background: #FEBC2E; }
.bento__browser-bar i:nth-child(3) { background: #28C840; }
.bento__browser-url {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--mute);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bento__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.22);
}
.bento__live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: liveBlink 1.6s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.bento__browser-body {
  flex: 1;
  position: relative;
  padding: clamp(16px, 1.8vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
}
.bento__skel {
  height: 9px;
  border-radius: 4px;
  background: var(--linen);
  transform-origin: left center;
  transform: scaleX(0);
}
.bento__skel--title { height: 18px; width: 65%; background: linear-gradient(90deg, var(--orange-soft) 0%, var(--linen) 100%); }
.bento__skel--text { width: 92%; }
.bento__skel--short { width: 64%; }
.bento__skel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.bento__skel-grid span {
  display: block;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  background: var(--linen);
  transform-origin: left center;
  transform: scaleX(0);
}
.bento__browser-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.4s var(--ease-out-expo);
}
.bento__browser-cta::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: var(--r-pill);
  border: 2px solid var(--orange);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s, transform 0.6s var(--ease-out-expo);
  pointer-events: none;
}
.bento__browser-cta.is-clicked::before {
  opacity: 1;
  transform: scale(1.1);
  animation: ctaPulse 0.9s var(--ease-out-expo);
}
@keyframes ctaPulse {
  0% { opacity: 0; transform: scale(0.8); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.4); }
}
.bento__cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(10,22,40,0.25));
  opacity: 0;
  will-change: transform;
}

/* === CARD 2 — SEO ranking dashboard === */
.bento__seo {
  position: relative;
  height: 100%;
  min-height: 180px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr;
  gap: 10px 14px;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}
.bento__seo-search {
  grid-column: 1 / -1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mute);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: var(--r-pill);
}
.bento__seo-rank {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.bento__seo-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
}
.bento__seo-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--orange);
  line-height: 0.95;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bento__seo-arrow {
  color: var(--orange);
  margin-left: -2px;
}
.bento__seo-bars {
  grid-column: 1;
  grid-row: 2 / span 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 5px;
  height: 100%;
  min-height: 90px;
}
.bento__seo-bar {
  display: block;
  height: 0%;
  background: var(--linen);
  border-radius: 3px 3px 0 0;
  transition: background 0.4s;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.bento__seo-bar--peak {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-color: var(--orange-deep);
  box-shadow: 0 4px 16px -4px rgba(255, 107, 26, 0.45);
}
.bento__seo-trend {
  position: absolute;
  inset: 30px 16px 16px 16px;
  pointer-events: none;
  z-index: 2;
}
.bento__seo-trend path {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
}
.bento__seo-trend circle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

/* === CARD 3 — Code editor + phone preview === */
.bento__dev {
  position: relative;
  height: 100%;
  min-height: 180px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: #0E1726;
}
.bento__dev-editor {
  position: relative;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.bento__dev-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bento__dev-tab {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 4px;
}
.bento__dev-tabs i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.bento__dev-tabs i:first-of-type { background: #FF5F57; }
.bento__dev-tabs i:nth-of-type(2) { background: #FEBC2E; }
.bento__dev-tabs i:nth-of-type(3) { background: #28C840; }
.bento__dev-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.55;
  color: #C9D6E8;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
  flex: 1;
}
.bento__dev-code .tk-tag { color: #7BB7FF; }
.bento__dev-code .tk-attr { color: #FFB86B; }
.bento__dev-code .tk-str { color: #C3E88D; }
.bento__dev-code .tk-com { color: rgba(255,255,255,0.32); font-style: italic; }
.bento__dev-caret {
  display: inline-block;
  width: 6px;
  height: 0.95em;
  background: var(--orange);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caretBlink 1.05s steps(1) infinite;
  opacity: 0;
}
.bento__dev-caret.is-on { opacity: 1; }
@keyframes caretBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.bento__dev-phone {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.bento__dev-phone::before {
  content: "";
  position: absolute;
  inset: 14px 22px;
  border-radius: 16px;
  background: var(--white);
  border: 6px solid #0A1628;
  box-shadow: 0 18px 36px -18px rgba(0,0,0,0.5);
}
.bento__dev-phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 6px;
  background: #0A1628;
  border-radius: 0 0 6px 6px;
  z-index: 2;
}
.bento__dev-phone-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 10px 10px;
}
.bento__dev-block {
  display: block;
  border-radius: 4px;
  background: var(--linen);
  opacity: 0;
  transform: translateY(8px);
}
.bento__dev-block--header { height: 12px; width: 60%; background: var(--ink); }
.bento__dev-block--card { height: 28px; width: 100%; background: var(--orange-soft); }
.bento__dev-block--row { height: 14px; width: 80%; }
.bento__dev-block--cta { margin-top: auto; height: 18px; width: 70%; background: var(--orange); border-radius: var(--r-pill); }

/* === CARD 4 — KPI dashboard with funnel === */
.bento__funnel {
  position: relative;
  height: 100%;
  min-height: 160px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.bento__funnel-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  z-index: 0;
}
.bento__funnel-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.bento__funnel-particles i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
  top: -10%;
  animation: funnelParticle 3.4s linear infinite;
}
.bento__funnel-particles i:nth-child(1) { left: 22%; animation-delay: 0s; }
.bento__funnel-particles i:nth-child(2) { left: 50%; animation-delay: 1.1s; }
.bento__funnel-particles i:nth-child(3) { left: 78%; animation-delay: 2.2s; }
@keyframes funnelParticle {
  0% { top: -10%; left: var(--x, 50%); opacity: 0; }
  20% { opacity: 1; }
  60% { left: 50%; }
  100% { top: 110%; left: 50%; opacity: 0; }
}
.bento__kpi-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.bento__kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.bento__kpi-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.bento__kpi-num--peak { color: var(--orange); }
.bento__kpi-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.55);
}
.bento__kpi-conv {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--orange);
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0;
}

/* === CARD 5 — Lighthouse-style gauge === */
.bento__audit {
  position: relative;
  height: 100%;
  min-height: 160px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}
.bento__audit-gauge {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.bento__audit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bento__audit-score {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bento__audit-tag {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  white-space: nowrap;
}
.bento__audit-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bento__audit-checks li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mute);
  opacity: 0;
  transform: translateX(-8px);
}
.bento__audit-checks li em {
  font-style: normal;
  color: var(--orange);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bento__check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  flex: none;
}

/* === CTA pill — same vocabulary as realisations === */
.bento__cta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 22px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}
.bento__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out-expo);
  z-index: -1;
}
.bento__cta svg { transition: transform 0.45s var(--ease-out-expo); }
.bento__cta:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.bento__cta:hover::before { transform: translateY(0); }
.bento__cta:hover svg { transform: translateX(3px); }
.bento__cta:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.bento__cta--dark {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.bento__cta--dark::before { background: var(--orange); }
.bento__cta--dark:hover { color: var(--white); border-color: var(--orange); }

/* === Responsive === */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card-1, .bento__card-2, .bento__card-3, .bento__card-4 {
    grid-column: span 1;
    min-height: 480px;
  }
  .bento__dev { grid-template-columns: 1.6fr 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento__card-1, .bento__card-2, .bento__card-3, .bento__card-4 {
    grid-column: span 1;
    min-height: 460px;
  }
  .bento__index { font-size: 4.5rem; right: 14px; }
  .bento__dev { grid-template-columns: 1fr; }
  .bento__dev-phone { display: none; }
}

/* Reduced motion guard */
@media (prefers-reduced-motion: reduce) {
  .bento__live i,
  .bento__dev-caret,
  .bento__funnel-particles i {
    animation: none !important;
  }
  .bento__skel,
  .bento__skel-grid span { transform: scaleX(1) !important; }
  .bento__dev-block { opacity: 1 !important; transform: none !important; }
  .bento__seo-bar { height: var(--h, 50%) !important; }
  .bento__audit-checks li { opacity: 1 !important; transform: none !important; }
  .bento__kpi-conv { opacity: 1 !important; }
  .webcarousel__img { transition: none !important; }
  .adsmachine__coin-in, .adsmachine__coin-out { transition: none !important; }
}

/* ============== CARD 1 — Carrousel sites clients ============== */
.webcarousel {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -22px rgba(10, 22, 40, 0.18);
}
.webcarousel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--linen);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.webcarousel__bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-strong);
}
.webcarousel__bar i:nth-child(1) { background: #FF5F57; }
.webcarousel__bar i:nth-child(2) { background: #FEBC2E; }
.webcarousel__bar i:nth-child(3) { background: #28C840; }
.webcarousel__url {
  flex: 1;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mute);
  background: var(--white);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.webcarousel__viewport {
  position: relative;
  flex: 1;
  background: var(--cream);
  overflow: hidden;
}
.webcarousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s var(--ease-out-expo), transform 1.4s var(--ease-out-expo);
}
.webcarousel__img.is-active {
  opacity: 1;
  transform: scale(1);
}
.webcarousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.webcarousel__dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(10, 22, 40, 0.15);
  transition: width 0.4s var(--ease-out-expo), background 0.3s;
}
.webcarousel__dots span.is-active {
  width: 22px;
  border-radius: var(--r-pill);
  background: var(--orange);
  border-color: var(--orange);
}
@media (max-width: 640px) {
  .webcarousel__url { font-size: 0.65rem; padding: 3px 8px; }
  .webcarousel__bar { padding: 8px 10px; }
  .webcarousel__bar i { width: 8px; height: 8px; }
}

/* ============== CARD 2 — Machine à sous ADS ============== */
.adsmachine {
  width: 100%;
  height: 100%;
  display: block;
}
.adsmachine__hand,
.adsmachine__machine,
.adsmachine__coin-in,
.adsmachine__coin-out,
.adsmachine__reel,
.adsmachine__lever-arm {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

/* ============== CARD 4 — Rapport d'audit ============== */
.auditreport {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============== STATS ============== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-12);
  padding: var(--s-12) var(--s-8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.stat__num em {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--orange);
  font-weight: 500;
  margin-left: 4px;
  font-style: normal;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  margin-top: var(--s-3);
}
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
}

/* ============== RÉALISATIONS — COMPOSITION ÉDITORIALE 12 COL ============== */
.realisations__head {
  margin-bottom: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  column-gap: var(--s-12);
  row-gap: var(--s-5);
  align-items: end;
}
.realisations__head .eyebrow {
  grid-column: 1 / -1;
  grid-row: 1;
}
.realisations__head h2 {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.028em;
  margin: 0;
  color: var(--ink);
}
.realisations__head h2 em {
  font-family: "Cabinet Grotesk", serif;
  font-style: italic;
  color: var(--orange);
  font-weight: 500;
}
.realisations__head p {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  max-width: 36ch;
  text-align: right;
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.55;
  padding-bottom: var(--s-2);
  position: relative;
}
.realisations__head p::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
  transform: translateY(-18px);
}
@media (max-width: 900px) {
  .realisations__head { grid-template-columns: 1fr; }
  .realisations__head p { grid-column: 1; grid-row: 3; text-align: left; justify-self: start; max-width: 48ch; }
  .realisations__head p::before { left: 0; right: auto; }
}

/* === Grille éditoriale 2 col — quinconce vertical === */
.realisations__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px, 3.5vw, 64px);
  row-gap: clamp(56px, 7vw, 112px);
  perspective: 1400px;
  /* Compense le translateY des cards paires pour qu'elles ne débordent pas */
  padding-bottom: clamp(64px, 9vw, 150px);
}
.realisation:nth-child(even) {
  transform: translateY(clamp(56px, 9vw, 140px));
}

.realisation {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.6vw, 28px);
  margin: 0;
  min-width: 0;
}

/* === Index typographique géant en arrière-plan du label === */
.realisation__index {
  position: absolute;
  top: -0.18em;
  left: -0.05em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(8rem, 14vw, 16rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 22, 40, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  transition: -webkit-text-stroke 0.6s var(--ease-out-expo), color 0.6s var(--ease-out-expo);
}
.realisation:hover .realisation__index {
  -webkit-text-stroke: 1px rgba(255, 107, 26, 0.18);
}

/* === Bouton card (transparent — c'est le frame qui porte le visuel) === */
.realisation__shot {
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: 100%;
  display: block;
  z-index: 1;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.6s var(--ease-out-expo);
}
.realisation__shot:focus-visible { outline: 2px solid var(--orange); outline-offset: 8px; border-radius: var(--r-2xl); }

/* === Frame = mask reveal + browser mock === */
.realisation__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--white);
  border-radius: var(--r-2xl);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 rgba(10, 22, 40, 0.04),
    0 30px 64px -28px rgba(10, 22, 40, 0.32),
    0 10px 22px -10px rgba(255, 107, 26, 0.08);
  /* Initial mask state — animated by GSAP via clip-path inset */
  clip-path: inset(0 0 0 0 round var(--r-2xl));
  transition: box-shadow 0.6s var(--ease-out-expo);
}
.realisation__shot:hover .realisation__frame {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 rgba(10, 22, 40, 0.04),
    0 44px 96px -28px rgba(10, 22, 40, 0.40),
    0 22px 44px -16px rgba(255, 107, 26, 0.20);
}

/* Browser bar */
.realisation__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(30px, 3.2vw, 40px);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(245,244,241,0.96) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  z-index: 3;
  pointer-events: none;
}
.realisation__bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: none;
}
.realisation__bar i:nth-child(1) { background: #FF5F57; }
.realisation__bar i:nth-child(2) { background: #FEBC2E; }
.realisation__bar i:nth-child(3) { background: #28C840; }
.realisation__url {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 4px 16px;
  border-radius: var(--r-pill);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Media + parallax wrapper */
.realisation__media {
  position: absolute;
  top: clamp(30px, 3.2vw, 40px);
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
  background: var(--linen);
}
.realisation__media-inner {
  position: absolute;
  inset: -10% 0;
  display: block;
  will-change: transform;
}
.realisation__media-inner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.04);
  transition: filter 0.6s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
}
.realisation__shot:hover .realisation__media-inner img {
  filter: saturate(1.1) brightness(1.02);
}

/* Hover gradient overlay */
.realisation__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 107, 26, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 22, 40, 0) 60%, rgba(10, 22, 40, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
}
.realisation__shot:hover .realisation__frame::after { opacity: 1; }

/* Preview chip — magnetic hover */
.realisation__chip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate3d(-50%, -50%, 30px) scale(0.78);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--orange);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 22px 48px -10px rgba(255, 107, 26, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo), transform 0.7s var(--ease-bounce);
  z-index: 4;
  white-space: nowrap;
}
.realisation__chip svg { stroke: currentColor; fill: none; stroke-width: 2; }
.realisation__shot:hover .realisation__chip,
.realisation__shot:focus-visible .realisation__chip {
  opacity: 1;
  transform: translate3d(-50%, -50%, 30px) scale(1);
}

/* === Label éditorial sous la card === */
.realisation__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: clamp(8px, 0.8vw, 14px);
}
.realisation__client {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  margin: 0;
  transition: color 0.4s var(--ease-out-expo);
}
.realisation:hover .realisation__client { color: var(--orange); }
.realisation__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.realisation__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
}
.realisation__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--d-fast), gap var(--d-fast);
}
.realisation__live svg { transition: transform var(--d-fast) var(--ease-out-expo); }
.realisation__live:hover { color: var(--orange); gap: 9px; }
.realisation__live:hover svg { transform: translate(2px, -2px); }

/* === CTA principal — bouton orange plein === */
.realisation__cta {
  margin-top: var(--s-3);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px 13px 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}
.realisation__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out-expo);
  z-index: -1;
}
.realisation__cta svg {
  transition: transform 0.45s var(--ease-out-expo);
}
.realisation__cta:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.realisation__cta:hover::before {
  transform: translateY(0);
}
.realisation__cta:hover svg {
  transform: translateX(3px);
}
.realisation__cta:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* === Mask reveal initial state (GSAP overrides on enter) === */
[data-rea-mask] {
  clip-path: inset(0 0 100% 0 round var(--r-2xl));
}
[data-rea-mask].is-revealed {
  /* GSAP animates to inset(0 0 0 0); class kept as a fallback hook */
}

/* === Metric pill (used on cards beside the tag) === */
.realisation__metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(255, 107, 26, 0.08);
  border: 1px solid rgba(255, 107, 26, 0.22);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast);
  white-space: nowrap;
}
.realisation:hover .realisation__metric {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.realisation__metric--solo {
  margin-top: 2px;
}

/* ============================================================ */
/* ===== VIDEO CARD VARIANT — phone-frame for ad creatives ==== */
/* ============================================================ */
.realisation--video .realisation__frame {
  background: linear-gradient(160deg, #131e30 0%, #0a1628 60%, #050b15 100%);
}
.realisation--video .realisation__bar { display: none; }
.realisation--video .realisation__media {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: clamp(18px, 2.6vw, 36px);
}
.realisation--video .realisation__media-inner {
  position: relative;
  inset: auto;
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 16;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realisation__phone {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: clamp(20px, 1.8vw, 28px);
  overflow: hidden;
  background: #000;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 0 5px #0a1628,
    inset 0 0 0 6px rgba(255, 255, 255, 0.06),
    0 28px 60px -22px rgba(0, 0, 0, 0.6),
    0 16px 32px -16px rgba(255, 107, 26, 0.18);
  isolation: isolate;
}
.realisation__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform 1.1s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
}
.realisation__shot:hover .realisation__phone img {
  transform: scale(1.04);
  filter: saturate(1.1) brightness(1.04);
}
.realisation__phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  max-width: 78px;
  height: 14px;
  background: #050b15;
  border-radius: 0 0 14px 14px;
  z-index: 3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.realisation__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(48px, 5vw, 64px);
  height: clamp(48px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--orange);
  box-shadow:
    0 12px 26px -6px rgba(0, 0, 0, 0.5),
    0 0 0 6px rgba(255, 255, 255, 0.12);
  z-index: 3;
  pointer-events: none;
  transition: transform 0.6s var(--ease-bounce), background var(--d-fast);
}
.realisation__play svg { transform: translateX(2px); }
.realisation__shot:hover .realisation__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--orange);
  color: var(--white);
}
@media (prefers-reduced-motion: no-preference) {
  .realisation__play::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: phonePulse 2.4s ease-out infinite;
    pointer-events: none;
  }
}
@keyframes phonePulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Platform badge (TikTok · Meta / Snapchat / Meta) */
.realisation__platform {
  position: absolute;
  top: clamp(14px, 1.4vw, 22px);
  left: clamp(14px, 1.4vw, 22px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.realisation__platform-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 26, 0.25);
}
@media (prefers-reduced-motion: no-preference) {
  .realisation__platform-dot {
    animation: platformPulse 1.8s ease-in-out infinite;
  }
}
@keyframes platformPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 107, 26, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(255, 107, 26, 0.08); }
}

/* Video card chip remains orange but slightly more compact */
.realisation--video .realisation__frame::after {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 107, 26, 0.32) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 22, 40, 0) 50%, rgba(0, 0, 0, 0.42) 100%);
}

/* ============================================================ */
/* ===== SITE CARD VARIANT — laptop mockup on dark frame ====== */
/* ============================================================ */
.realisation--site .realisation__frame {
  background: linear-gradient(160deg, #131e30 0%, #0a1628 60%, #050b15 100%);
}
.realisation--site .realisation__bar { display: none; }
.realisation--site .realisation__media {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: clamp(44px, 5.4vw, 96px);
}
.realisation--site .realisation__media-inner {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realisation__laptop {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: clamp(10px, 1vw, 14px);
  overflow: hidden;
  background: #fff;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 0 0 0 5px #0a1628,
    inset 0 0 0 6px rgba(255, 255, 255, 0.04),
    0 32px 70px -24px rgba(0, 0, 0, 0.65),
    0 18px 36px -16px rgba(255, 107, 26, 0.18);
  isolation: isolate;
}
.realisation__laptop-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(22px, 2.4vw, 32px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 244, 241, 0.96) 100%);
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  z-index: 3;
}
.realisation__laptop-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.realisation__laptop-bar i:nth-child(1) { background: #FF5F57; }
.realisation__laptop-bar i:nth-child(2) { background: #FEBC2E; }
.realisation__laptop-bar i:nth-child(3) { background: #28C840; }
.realisation--site .realisation__url {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 0.7vw, 0.74rem);
  letter-spacing: 0.04em;
  color: var(--mute);
  background: rgba(10, 22, 40, 0.05);
  border: 1px solid rgba(10, 22, 40, 0.06);
  padding: 3px 14px;
  border-radius: var(--r-pill);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realisation__laptop-screen {
  position: absolute;
  top: clamp(22px, 2.4vw, 32px);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: var(--linen);
}
.realisation__laptop-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.04);
  transition: filter 0.6s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
}
.realisation__shot:hover .realisation__laptop-screen img {
  filter: saturate(1.1) brightness(1.04);
}

/* Reuse the orange-tinted gradient overlay from the video card variant */
.realisation--site .realisation__frame::after {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 107, 26, 0.28) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 22, 40, 0) 55%, rgba(0, 0, 0, 0.36) 100%);
}

/* === Responsive === */
@media (max-width: 900px) {
  .realisations__grid {
    grid-template-columns: 1fr;
    row-gap: clamp(72px, 12vw, 96px);
  }
  .realisation:nth-child(even) { transform: none; }
  .realisation__index { font-size: clamp(7rem, 22vw, 12rem); }
  .realisation--video .realisation__frame,
  .realisation--site .realisation__frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .realisation:not(.realisation--video):not(.realisation--site) .realisation__frame { aspect-ratio: 4 / 3; }
  .realisation--video .realisation__frame,
  .realisation--site .realisation__frame { aspect-ratio: 3 / 4; }
  .realisation__chip { padding: 12px 18px; font-size: 0.68rem; letter-spacing: 0.16em; }
  .realisation__platform { font-size: 0.6rem; letter-spacing: 0.14em; padding: 5px 10px 5px 8px; }
  /* Tighter padding for the laptop mockup at small sizes so it doesn't
     collapse into a tiny strip inside the now-portrait frame. */
  .realisation--site .realisation__media { padding: clamp(20px, 6vw, 36px); }
}

/* ============== LEGACY PROJECTS GRID (kept for compat if used elsewhere) ============== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
}
.project-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--linen);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform var(--d-base) var(--ease-out-expo);
}
.project-card:nth-child(1) { grid-column: span 7; aspect-ratio: 16 / 10; }
.project-card:nth-child(2) { grid-column: span 5; aspect-ratio: 16 / 10; }
.project-card:nth-child(3) { grid-column: span 5; aspect-ratio: 16 / 10; }
.project-card:nth-child(4) { grid-column: span 7; aspect-ratio: 16 / 10; }

.project-card__visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--linen), var(--white));
  transition: transform var(--d-slow) var(--ease-out-expo);
}
.project-card__visual img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter var(--d-base);
}
.project-card:hover .project-card__visual { transform: scale(1.04); }
.project-card:hover .project-card__visual img { filter: grayscale(0%); }
.project-card__overlay {
  position: absolute;
  inset: 0;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.78), rgba(10, 22, 40, 0) 60%);
  opacity: 0;
  transition: opacity var(--d-base);
}
.project-card:hover .project-card__overlay { opacity: 1; }
.project-card__name {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-1);
}
.project-card__role { color: rgba(255, 255, 255, 0.7); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; }
.project-card__arrow {
  position: absolute;
  top: var(--s-5); right: var(--s-5);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0) rotate(-45deg);
  transition: transform var(--d-base) var(--ease-bounce);
}
.project-card:hover .project-card__arrow { transform: scale(1) rotate(0); }

@media (max-width: 1024px) {
  .project-card:nth-child(n) { grid-column: span 6; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .project-card:nth-child(n) { grid-column: span 12; }
}
