/* ==========================================================================
   KODAZZ — Design tokens
   ========================================================================== */
:root {
  /* Colors — thème sombre violet/noir, accents magenta/orange animés */
  --color-primary: #A855F7;
  --color-primary-dark: #7C1FD6;
  --color-primary-light: #C084FC;
  --color-accent-2: #F04BFF;
  --color-accent-3: #FF8A3D;
  --color-accent-soft: rgba(168, 85, 247, 0.16);
  --color-bg: #0A0512;
  --color-bg-alt: #120A1F;
  --color-surface: #17101F;
  --color-surface-hover: #1F1530;
  --color-fg: #F6F1FC;
  --color-fg-muted: #B0A3C4;
  --color-border: #2C2140;
  --color-success: #4ADE9A;

  --gradient-primary: linear-gradient(135deg, var(--color-primary-light), var(--color-primary) 55%, var(--color-primary-dark));
  --gradient-vivid: linear-gradient(115deg, #C084FC, #F04BFF 45%, #A855F7 75%, #7C1FD6);
  --gradient-soft: linear-gradient(135deg, #241733, #1B1128);

  /* Typography */
  --font-heading: 'Manrope', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* Radius & shadow */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 56px rgba(168, 85, 247, 0.35);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 76px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Fluidité : les animations en boucle des sections hors écran sont mises en
   pause par JS (IntersectionObserver) pour économiser CPU/GPU au scroll */
.anim-offscreen, .anim-offscreen * {
  animation-play-state: paused !important;
}

body {
  font-family: var(--font-body);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

:focus-visible {
  outline: 2.5px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.text-gradient {
  background: var(--gradient-vivid);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .text-gradient { animation: none; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-accent-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  box-shadow: var(--shadow-sm);
}

.eyebrow-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}
.eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-success);
  animation: icon-ping 1.8s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-dot::after { animation: none; display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-vivid);
  background-size: 260% 260%;
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: btn-glow 4.5s ease-in-out infinite, gradient-shift 5s ease-in-out infinite;
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 8px 22px -6px rgba(139, 47, 224, 0.55), var(--shadow-md); }
  50% { box-shadow: 0 12px 34px -4px rgba(225, 75, 255, 0.65), var(--shadow-md); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; }
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  animation-duration: 1.6s, 1.8s;
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0) scale(0.98); transition-duration: 90ms; }

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-fg);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }

.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.btn-whatsapp {
  background: linear-gradient(135deg, #34D976, #22C55E);
  color: #fff;
  padding: 13px 26px;
  font-size: 0.95rem;
  box-shadow: 0 8px 22px -6px rgba(34, 197, 94, 0.5);
  margin-bottom: var(--space-3);
}
.btn-whatsapp:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px -4px rgba(34, 197, 94, 0.6); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 14px;
}

.header-pill-wrap { max-width: 1160px; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-height);
  padding: 0 var(--space-4);
  background: rgba(18, 10, 31, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 1px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.35), 0 24px 48px -16px rgba(168,85,247,0.25);
  transition: box-shadow var(--transition);
}

/* Compense le header devenu fixe : espace au sommet du hero */
.hero { padding-top: calc(var(--space-8) + var(--header-height) + 14px); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: var(--space-5);
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-fg-muted);
  transition: color var(--transition);
  position: relative;
}
.main-nav a:hover { color: var(--color-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lang-switch {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-fg-muted);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  transition: border-color var(--transition), color var(--transition);
}
.lang-switch:hover { border-color: var(--color-primary); }
.lang-switch .lang-fr,
.lang-switch .lang-en {
  opacity: 0.45;
  transition: opacity var(--transition), color var(--transition);
}
.lang-switch .lang-fr.is-active,
.lang-switch .lang-en.is-active {
  opacity: 1;
  color: var(--color-primary-light);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-primary-light);
  transition: transform var(--transition), background var(--transition);
  animation: icon-wiggle 3.5s ease-in-out infinite;
}
.icon-btn:hover { transform: translateY(-2px) scale(1.12) rotate(-8deg); background: rgba(168, 85, 247, 0.28); }

@keyframes icon-wiggle {
  0%, 85%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(-10deg); }
  95% { transform: rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .icon-btn { animation: none; }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-fg);
  margin: 0 auto;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-bottom: var(--space-7);
  overflow: hidden;
  text-align: center;
  background: var(--color-bg);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(129, 74, 200, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Blobs dégradés flottants, façon Aniria */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  width: 50vw;
  height: 50vw;
  animation: floaty 13s ease-in-out infinite, blob-hue 9s ease-in-out infinite;
  background-size: 200% 200%;
}
.blob1 {
  background: linear-gradient(45deg, #B368FF, #E14BFF, #8B2FE0);
  opacity: 0.38;
  top: -20%;
  left: -16%;
}
.blob2 {
  background: linear-gradient(45deg, #FF8A3D, #FFC65C, #E14BFF);
  opacity: 0.30;
  bottom: -22%;
  right: -16%;
  animation-direction: reverse, alternate;
  animation-delay: -4s, -2s;
}

@keyframes floaty {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6vw, 4vh) scale(1.08); }
  66% { transform: translate(-4vw, 5vh) scale(0.96); }
}

@keyframes blob-hue {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

.hero-inner { position: relative; z-index: 1; }

.underline-wrap { position: relative; display: inline-block; }
.hero-underline {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 12px;
  overflow: visible;
}
.hero-underline path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1px;
  animation: hero-draw-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards,
             hero-underline-glow 4s ease-in-out 2.2s infinite;
}
@keyframes hero-draw-in {
  0% { stroke-dashoffset: 1px; }
  100% { stroke-dashoffset: 0; }
}
@keyframes hero-underline-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(129,74,200,0.35)); }
  50% { filter: drop-shadow(0 0 10px rgba(129,74,200,0.6)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-underline path { animation: none; stroke-dashoffset: 0; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  max-width: 820px;
  margin: 0 auto var(--space-4);
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto var(--space-5);
  font-size: 1.1rem;
  color: var(--color-fg-muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  color: var(--color-fg);
  box-shadow: var(--shadow-sm);
}
.badge-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gradient-vivid);
  background-size: 220% 220%;
  animation: gradient-shift 5s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero-microcopy {
  font-size: 0.85rem;
  color: var(--color-fg-muted);
  margin-bottom: var(--space-6);
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.stat-sep {
  width: 1px;
  height: 20px;
  background: var(--color-border);
}

.stat { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.stat-rating { flex-direction: row; }
.stars { display: inline-flex; gap: 1px; color: #FBBF24; margin: 0 2px; }
.stat-check { color: var(--color-primary-light); flex-shrink: 0; }

.hero-trust {
  font-size: 0.88rem;
  color: var(--color-fg-muted);
}
.hero-trust strong { color: var(--color-primary-light); }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { font-size: 0.9rem; color: var(--color-fg-muted); font-weight: 600; }

.hero-stats .stat-number {
  font-size: 1.05rem;
  font-weight: 800;
}

/* ==========================================================================
   Logos marquee
   ========================================================================== */
.logos-section {
  padding: var(--space-5) 0 var(--space-6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.logos-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-fg-muted);
  margin-top: var(--space-4);
}

.marquee {
  position: relative;
  overflow: hidden;
}

/* Flou en fondu sur les bords, en plus du fondu d'opacité */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 3;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.marquee::before {
  left: 0;
  mask-image: linear-gradient(to right, black, transparent);
  -webkit-mask-image: linear-gradient(to right, black, transparent);
}
.marquee::after {
  right: 0;
  mask-image: linear-gradient(to left, black, transparent);
  -webkit-mask-image: linear-gradient(to left, black, transparent);
}

@media (max-width: 640px) {
  .marquee::before, .marquee::after { width: 40px; }
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: var(--space-5);
  padding: 10px 4px;
  animation: marquee-scroll 28s linear infinite;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; overflow-x: auto; }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.logo-card:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 30px rgba(168, 85, 247, 0.3); }

/* ==========================================================================
   Sections generic
   ========================================================================== */
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-7);
}

.section-sub {
  color: var(--color-fg-muted);
  font-size: 1.05rem;
  margin-top: var(--space-3);
}

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  max-width: 980px;
  margin: 0 auto;
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 680px;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.step-eyebrow {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: var(--space-3);
  animation: step-pulse-text 2.6s ease-out infinite;
}

@keyframes step-pulse-text {
  0% { text-shadow: 0 0 0 rgba(168, 85, 247, 0); }
  50% { text-shadow: 0 0 14px rgba(168, 85, 247, 0.6); }
  100% { text-shadow: 0 0 0 rgba(168, 85, 247, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .step-eyebrow { animation: none; }
}

.step-card h3 { margin-bottom: 12px; font-size: 1.9rem; }
.step-card p { font-size: 1.05rem; color: var(--color-fg-muted); max-width: 460px; margin: 0 auto; }
.step-card .mockup { margin-bottom: 0; width: 100%; }

.mockup-stage {
  position: relative;
  margin-top: var(--space-6);
  width: 100%;
  max-width: 480px;
}

/* ==========================================================================
   Étape 3 : petit personnage qui allume l'ordinateur (cycle 10s)
   ========================================================================== */
.mockup-scene {
  position: relative;
}

.scene-floor {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 14px;
  height: 1px;
  background: var(--color-border);
}

.guguss {
  position: absolute;
  bottom: 14px;
  left: 6%;
  width: 26px;
  height: 40px;
  animation: guguss-walk 10s ease-in-out infinite, guguss-bob 0.45s ease-in-out infinite;
}
.guguss-head {
  position: absolute;
  top: 0; left: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gradient-vivid);
  background-size: 200% 200%;
  animation: gradient-shift 5s ease-in-out infinite;
}
.guguss-body {
  position: absolute;
  top: 16px; left: 4px;
  width: 18px; height: 16px;
  border-radius: 8px 8px 6px 6px;
  background: var(--color-primary-light);
}
.guguss-leg {
  position: absolute;
  bottom: 0;
  width: 5px; height: 10px;
  border-radius: 3px;
  background: var(--color-primary-dark);
  animation: guguss-legs 0.45s ease-in-out infinite;
}
.guguss-leg-l { left: 5px; }
.guguss-leg-r { left: 14px; animation-delay: 0.225s; }

@keyframes guguss-walk {
  0%, 4% { left: 6%; }
  30%, 100% { left: 40%; }
}
@keyframes guguss-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes guguss-legs {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.65); }
}

.scene-desk {
  position: absolute;
  right: 8%;
  bottom: 14px;
  width: 62%;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scene-monitor {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #05030A;
  border: 2px solid #2C2140;
  border-radius: 8px;
  padding: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
  animation: scene-screen-glow 10s ease-in-out infinite;
}

.scene-power-btn {
  position: absolute;
  bottom: 3px;
  right: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-border);
  animation: scene-power-blink 10s ease-in-out infinite;
}

.scene-monitor-stand {
  width: 28px;
  height: 10px;
  background: #2C2140;
  border-radius: 0 0 6px 6px;
  margin-top: -1px;
}

.scene-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  animation: scene-screen-content 10s ease-in-out infinite;
}

@keyframes scene-screen-glow {
  0%, 30% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); border-color: #2C2140; }
  34%, 90% { box-shadow: 0 0 22px 2px rgba(168, 85, 247, 0.35); border-color: var(--color-primary); }
  96%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); border-color: #2C2140; }
}
@keyframes scene-power-blink {
  0%, 29% { background: var(--color-border); }
  31%, 92% { background: var(--color-success); }
  97%, 100% { background: var(--color-border); }
}
@keyframes scene-screen-content {
  0%, 32% { opacity: 0; }
  36%, 90% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

.scene-screen .code-line { font-size: 0.6rem; white-space: normal; }
.scene-screen .code-result { font-size: 0.62rem; }

@media (prefers-reduced-motion: reduce) {
  .guguss, .guguss-leg, .scene-monitor, .scene-power-btn, .scene-screen {
    animation: none !important;
  }
  .guguss { left: 40%; }
  .scene-monitor { box-shadow: 0 0 22px 2px rgba(168, 85, 247, 0.35); border-color: var(--color-primary); }
  .scene-screen { opacity: 1; }
}

/* ==========================================================================
   Étape 4 : la fusée décolle, le site passe en ligne (cycle 8s)
   ========================================================================== */
.browser-lock { color: var(--color-fg-muted); flex-shrink: 0; margin-left: 2px; }

.browser-live-tag {
  margin-left: 8px;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-success);
  background: rgba(74, 222, 154, 0.14);
  border: 1px solid rgba(74, 222, 154, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  opacity: 0;
  animation: q-pop 8s ease-in-out infinite;
  animation-delay: 5.4s;
}

.rocket {
  position: absolute;
  left: 50%;
  bottom: 20%;
  color: var(--color-primary-light);
  opacity: 0;
  animation: rocket-launch 8s cubic-bezier(0.3, 0, 0.2, 1) infinite;
}
.rocket-trail {
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: 3px;
  height: 60px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(168,85,247,0.5), transparent);
  opacity: 0;
  animation: rocket-trail-fade 8s cubic-bezier(0.3, 0, 0.2, 1) infinite;
}

@keyframes rocket-launch {
  0%, 55% { opacity: 0; transform: translate(-50%, 0) scale(0.8); }
  60% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  85% { opacity: 1; transform: translate(-50%, -140px) scale(1); }
  92%, 100% { opacity: 0; transform: translate(-50%, -160px) scale(0.9); }
}
@keyframes rocket-trail-fade {
  0%, 58% { opacity: 0; transform: translate(-50%, 0); }
  62% { opacity: 1; transform: translate(-50%, 0); }
  85% { opacity: 0.5; transform: translate(-50%, -140px); }
  92%, 100% { opacity: 0; transform: translate(-50%, -160px); }
}

@media (prefers-reduced-motion: reduce) {
  .browser-live-tag { animation: none !important; opacity: 1 !important; }
  .rocket, .rocket-trail { display: none; }
}

/* Cascade d'entrée sur le texte de chaque carte étape : label -> titre -> description */
.step-card .step-eyebrow,
.step-card h3,
.step-card p:not(.step-eyebrow) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}
.step-card.is-visible .step-eyebrow { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
.step-card.is-visible h3 { opacity: 1; transform: translateY(0); transition-delay: 220ms; }
.step-card.is-visible p:not(.step-eyebrow) { opacity: 1; transform: translateY(0); transition-delay: 340ms; }

@media (prefers-reduced-motion: reduce) {
  .step-card .step-eyebrow, .step-card h3, .step-card p:not(.step-eyebrow) {
    opacity: 1; transform: none; transition: none;
  }
}

/* Mockups */
.mockup {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: var(--space-4);
  height: 260px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-quote { overflow: visible; }

/* Le devis est un vrai papier blanc, légèrement incliné, posé dans la fenêtre sombre */
.quote-paper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 6px 12px 4px;
  transform: rotate(-2.5deg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.mockup-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.mockup-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-border);
}
.mockup-bar span:nth-child(1) { background: #F0A9A9; }
.mockup-bar span:nth-child(2) { background: #F3D28C; }
.mockup-bar span:nth-child(3) { background: #A9D9B5; }

/* Scène de chat animée en boucle : ça "sonne" (points), puis ça "décroche" (messages qui s'enchaînent) */
.chat-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.chat-bubble {
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 82%;
  line-height: 1.4;
}
.chat-in { background: var(--color-surface); border: 1px solid var(--color-border); align-self: flex-start; border-bottom-left-radius: 3px; }
.chat-out { background: var(--gradient-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }

/* Cycle complet de 11s : ça sonne → conversation → appel en cours → reset */
.chat-in-slot { animation: call-msg-in 11s ease-in-out infinite; }
.chat-out-slot { animation: call-msg-in-2 11s ease-in-out infinite; }

.chat-typing {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  padding: 9px 12px;
  animation: call-typing-visible 11s ease-in-out infinite;
}
.chat-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-primary-light);
  animation: dot-bounce 0.9s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes call-typing-visible {
  0%, 6% { opacity: 1; transform: scale(1); }
  10%, 100% { opacity: 0; transform: scale(0.85); }
}

@keyframes call-msg-in {
  0%, 10% { opacity: 0; transform: translateY(8px) scale(0.92); }
  15% { opacity: 1; transform: translateY(0) scale(1); }
  56% { opacity: 1; transform: translateY(0) scale(1); }
  62%, 100% { opacity: 0; transform: translateY(-6px) scale(0.95); }
}

@keyframes call-msg-in-2 {
  0%, 25% { opacity: 0; transform: translateY(8px) scale(0.92); }
  30% { opacity: 1; transform: translateY(0) scale(1); }
  56% { opacity: 1; transform: translateY(0) scale(1); }
  62%, 100% { opacity: 0; transform: translateY(-6px) scale(0.95); }
}

/* Écran d'appel vidéo en direct : 3e temps du cycle */
.call-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  pointer-events: none;
  animation: call-screen-in 11s ease-in-out infinite;
}

@keyframes call-screen-in {
  0%, 62% { opacity: 0; transform: translateY(6px) scale(0.97); }
  68% { opacity: 1; transform: translateY(0) scale(1); }
  92% { opacity: 1; transform: translateY(0) scale(1); }
  98%, 100% { opacity: 0; transform: translateY(-6px) scale(0.97); }
}

.call-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-fg);
}
.call-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #EF4444;
  animation: dot-bounce 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.call-timer {
  margin-left: auto;
  font-weight: 600;
  color: var(--color-fg-muted);
  font-variant-numeric: tabular-nums;
}

.call-tiles {
  display: flex;
  gap: 5px;
  flex: 1;
  min-height: 0;
}

.call-tile {
  position: relative;
  flex: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.call-tile-them { background: var(--gradient-vivid); background-size: 220% 220%; animation: gradient-shift 5s ease-in-out infinite; }
.call-tile-you { background: #384152; }

.call-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.call-avatar-you { background: rgba(255,255,255,0.25); color: #fff; }

.call-tile-tag {
  position: absolute;
  bottom: 8px; left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
}

.call-bars { display: inline-flex; align-items: flex-end; gap: 1px; height: 7px; }
.call-bars i {
  width: 2px;
  background: #4ADE9A;
  border-radius: 1px;
  animation: call-bars-move 0.9s ease-in-out infinite;
}
.call-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.call-bars i:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.call-bars i:nth-child(3) { height: 65%; animation-delay: 0.3s; }

@keyframes call-bars-move {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.call-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-surface-hover);
  color: var(--color-fg);
}
.call-btn-hangup { background: #EF4444; color: #fff; }

.call-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-success);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 5px 11px;
  border-radius: var(--radius-full);
}

@media (prefers-reduced-motion: reduce) {
  .chat-in-slot, .chat-out-slot, .chat-typing, .chat-typing span,
  .call-screen, .call-live-dot, .call-tile-them, .call-bars i {
    animation: none;
  }
  .chat-typing, .call-screen { display: none; }
  .chat-in-slot.chat-in, .chat-out-slot.chat-out { opacity: 1; transform: none; }
}

.quote-title { font-size: 0.95rem; font-weight: 700; color: #1B1523; }

.quote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4A4458;
}
.quote-item span:last-child { color: #1B1523; font-weight: 700; white-space: nowrap; }

.quote-divider {
  height: 1px;
  background: #E7E1F0;
  width: 100%;
  margin: 2px 0;
}

.quote-total-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.quote-total-label { font-size: 0.85rem; font-weight: 700; color: #4A4458; }

.quote-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary-dark);
}

/* Le tampon "VALIDÉ" descend d'en haut et vient s'écraser sur le devis */
.quote-stamp-mark {
  position: absolute;
  top: 46%;
  right: 12%;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: #EF5A5A;
  border: 3px solid #EF5A5A;
  border-radius: 10px;
  padding: 6px 14px;
  transform: rotate(-14deg);
  opacity: 0;
  mix-blend-mode: normal;
  animation: stamp-hit 8s ease-in-out infinite;
}

@keyframes stamp-hit {
  0%, 54% { opacity: 0; transform: translate(30px, -90px) scale(2.6) rotate(-30deg); }
  60% { opacity: 1; transform: translate(0, 0) scale(0.82) rotate(-14deg); }
  64% { transform: translate(0, 0) scale(1.1) rotate(-14deg); }
  68%, 90% { opacity: 1; transform: translate(0, 0) scale(1) rotate(-14deg); }
  97%, 100% { opacity: 0; transform: translate(0, 0) scale(1) rotate(-14deg); }
}

/* Petite secousse d'impact au moment où le tampon touche le papier */
.quote-paper { animation: paper-impact-shake 8s ease-in-out infinite; }
@keyframes paper-impact-shake {
  0%, 59% { transform: rotate(-2.5deg) translate(0, 0); }
  60% { transform: rotate(-3.4deg) translate(-3px, 1px); }
  61% { transform: rotate(-1.6deg) translate(3px, -1px); }
  62%, 100% { transform: rotate(-2.5deg) translate(0, 0); }
}

/* Animation en boucle du devis : titre -> lignes -> prix -> reset (8s) */
.q-anim { opacity: 0; }
.q-title-anim { animation: q-fade 8s ease-in-out infinite; }
.q-line1-anim { animation: q-fade 8s ease-in-out infinite; animation-delay: 0.3s; }
.q-line2-anim { animation: q-fade 8s ease-in-out infinite; animation-delay: 0.55s; }
.q-price-anim { animation: q-pop 8s ease-in-out infinite; animation-delay: 1.2s; }

@keyframes q-fade {
  0% { opacity: 0; transform: translateY(4px); }
  6%, 88% { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; }
}
@keyframes q-grow {
  0%, 4% { opacity: 0; transform: scaleX(0); }
  16% { opacity: 1; transform: scaleX(1); }
  88% { opacity: 1; transform: scaleX(1); }
  96%, 100% { opacity: 0; }
}
@keyframes q-pop {
  0%, 12% { opacity: 0; transform: scale(0.7); }
  20% { opacity: 1; transform: scale(1.08); }
  26% { transform: scale(1); }
  88% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .q-anim, .quote-stamp-mark {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .quote-paper { animation: none !important; transform: rotate(-2.5deg) !important; }
}

.code-line {
  font-family: 'SFMono-Regular', Menlo, monospace;
  font-size: 0.92rem;
  color: var(--color-fg-muted);
  white-space: nowrap;
}
.code-line.indent { padding-left: 14px; }
.code-tag { color: var(--color-primary); font-weight: 700; }

/* Effet machine à écrire en boucle sur les lignes de code, une fois l'écran allumé (10s) */
.code-type-wrap {
  overflow: hidden;
  width: max-content;
  max-width: 100%;
  border-right: 2px solid var(--color-primary-light);
}
.type-line-1 { animation: code-type-1 10s steps(21, end) infinite, code-caret 0.7s step-end infinite; }
.type-line-2 { animation: code-type-2 10s steps(15, end) infinite, code-caret 0.7s step-end infinite; }

@keyframes code-type-1 {
  0%, 37% { width: 0; border-right-color: var(--color-primary-light); }
  50% { width: 100%; }
  56%, 88% { width: 100%; border-right-color: transparent; }
  100% { width: 100%; border-right-color: transparent; }
}
@keyframes code-type-2 {
  0%, 54% { width: 0; border-right-color: transparent; }
  56% { border-right-color: var(--color-primary-light); }
  68% { width: 100%; }
  74%, 88% { width: 100%; border-right-color: transparent; }
  100% { width: 100%; border-right-color: transparent; }
}
@keyframes code-caret {
  50% { border-right-color: transparent; }
}

.code-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-success);
  opacity: 0;
  animation: code-result-pop 10s ease-in-out infinite;
}
@keyframes code-result-pop {
  0%, 68% { opacity: 0; transform: scale(0.7); }
  74% { opacity: 1; transform: scale(1.08); }
  78% { transform: scale(1); }
  88% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .code-type-wrap { animation: none !important; width: max-content !important; border-right-color: transparent !important; }
  .code-result { animation: none !important; opacity: 1 !important; }
}

.browser-bar { align-items: center; }
.browser-url {
  position: relative;
  margin-left: 8px;
  font-size: 0.78rem;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  color: var(--color-fg-muted);
  flex: 1;
  overflow: hidden;
}
.browser-url-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
  border-right: 2px solid var(--color-primary-light);
  animation: url-type 8s steps(12, end) infinite, code-caret 0.7s step-end infinite;
}
@keyframes url-type {
  0%, 6% { width: 0; }
  30%, 90% { width: 11ch; }
  100% { width: 11ch; }
}

.browser-content { position: relative; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.browser-block { flex: 1; background: var(--gradient-soft); border-radius: 8px; }
.browser-block.small { flex: 0.6; background: var(--color-border); }

/* Chargement en pulsation puis badge de mise en ligne qui apparaît (8s) */
.browser-block.skeleton {
  background-size: 200% 100%;
  animation: skeleton-pulse 1.8s ease-in-out infinite, skeleton-hide 8s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
}
@keyframes skeleton-hide {
  0%, 62% { opacity: 1; }
  72%, 100% { opacity: 0.35; }
}

.deploy-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-success);
  background: var(--color-surface);
  border: 1px solid rgba(74, 222, 154, 0.35);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: q-pop 8s ease-in-out infinite;
  animation-delay: 5.6s;
}
.deploy-dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}
.deploy-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-success);
  animation: icon-ping 1.8s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .browser-url-text { animation: none !important; width: 11ch !important; border-right-color: transparent !important; }
  .browser-block.skeleton { animation: none !important; opacity: 1 !important; }
  .deploy-badge, .deploy-dot::after { animation: none !important; opacity: 1 !important; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.service-featured {
  background: var(--gradient-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  align-items: center;
  overflow: hidden;
}
.service-featured:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-featured-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 8px;
}

/* Panneau visuel décoratif : mini grille d'icônes flottantes */
.service-featured-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
}

.sf-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-fg);
  box-shadow: var(--shadow-sm);
  animation: sf-tile-float 4s ease-in-out infinite;
}
.sf-tile-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-vivid);
  background-size: 200% 200%;
  color: #fff;
  animation: gradient-shift 5s ease-in-out infinite;
}
.sf-tile-1 { animation-delay: 0s; }
.sf-tile-2 { animation-delay: 0.4s; }
.sf-tile-3 { animation-delay: 0.8s; }
.sf-tile-4 { animation-delay: 1.2s; }

@keyframes sf-tile-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.sf-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-primary-light);
  opacity: 0.5;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sf-tile { animation: none; }
}

.service-icon-wrap {
  position: relative;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gradient-vivid);
  background-size: 220% 220%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  animation: gradient-shift 5s ease-in-out infinite, icon-float 3.2s ease-in-out infinite;
}
.service-icon-wrap.sm { width: 42px; height: 42px; margin-bottom: var(--space-3); }

/* Anneau radar qui pulse derrière l'icône */
.service-icon-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-vivid);
  z-index: -1;
  animation: icon-ping 2.8s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-3deg); }
}

@keyframes icon-ping {
  0% { opacity: 0.5; transform: scale(1); }
  75%, 100% { opacity: 0; transform: scale(1.7); }
}

@media (prefers-reduced-motion: reduce) {
  .service-icon-wrap { animation: none; }
  .service-icon-wrap::after { animation: none; display: none; }
}

.service-featured h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-featured p { color: var(--color-fg-muted); margin-bottom: var(--space-4); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  color: var(--color-primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.services-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  perspective: 1200px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card h3 { font-size: 1.05rem; }
.service-card p { color: var(--color-fg-muted); font-size: 0.9rem; margin-top: 4px; }

.service-card-tag {
  margin-top: var(--space-4);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary-light);
  background: var(--color-accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Projects / Realisations
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  perspective: 1200px;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.project-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: var(--shadow-lg); }

.project-thumb {
  height: 340px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-thumb-photo {
  padding: 0;
  background: var(--color-bg-alt);
}
.project-thumb-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.thumb-1 { background: linear-gradient(135deg, #1E2A4A, #C2560F); }
.thumb-2 { background: linear-gradient(135deg, #23163D, #401A5C); }
.thumb-3 { background: linear-gradient(135deg, #301A4D, #551F6E); }
.thumb-4 { background: linear-gradient(135deg, #271741, #4C1A5F); }

.thumb-browser { display: flex; gap: 4px; }
.thumb-browser span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }

.thumb-content { display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: center; }
.thumb-line { height: 10px; background: rgba(255,255,255,0.7); border-radius: 5px; width: 100%; }
.thumb-line.w60 { width: 60%; }
.thumb-line.w40 { width: 40%; }
.thumb-box { height: 50px; background: rgba(255,255,255,0.55); border-radius: 10px; }

/* Vignette dédiée au projet "Lumière Studio" (palette crème/or du vrai site) */
.thumb-lumiere {
  background: linear-gradient(160deg, #F5ECDD, #E4CBA0);
}
.thumb-lumiere .thumb-browser span { background: rgba(90, 60, 20, 0.3); }
.thumb-lumiere-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.thumb-lumiere-serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  color: #2B2013;
}
.thumb-lumiere-serif em { color: #A9762F; font-style: italic; }
.thumb-line-gold { background: rgba(169, 118, 47, 0.35); }

/* Vignette dédiée au projet "Flowdesk" (mini tableau de bord SaaS) */
.thumb-flowdesk {
  background: linear-gradient(160deg, #0F0A1A, #1B1030);
  justify-content: flex-end;
}
.thumb-flowdesk .thumb-browser span { background: rgba(255, 255, 255, 0.2); }
.thumb-fd-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.thumb-fd-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.thumb-fd-stat-label { font-size: 0.62rem; color: rgba(255,255,255,0.5); }
.thumb-fd-stat-value { font-size: 0.9rem; font-weight: 800; color: #fff; }
.thumb-fd-chart {
  width: 100%;
  height: 64px;
  overflow: visible;
}

/* Vignette dédiée au projet "FlowLink" (mini canvas d'automatisation) */
.thumb-flowlink {
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0) 0 0/14px 14px,
    linear-gradient(160deg, #0F0A1A, #1B1030);
  justify-content: flex-end;
}
.thumb-flowlink .thumb-browser span { background: rgba(255, 255, 255, 0.2); }
.thumb-fl-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
}
.thumb-fl-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.thumb-fl-node {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.thumb-fl-node-1 { bottom: 0; left: 0; }
.thumb-fl-node-2 { top: 22%; left: 34%; }
.thumb-fl-node-3 { top: 0; right: 0; }

.project-body { padding: var(--space-5); }

.project-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 8px;
}
.status-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-success);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-success);
  animation: icon-ping 1.8s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .status-dot::after { animation: none; display: none; }
}

.project-cat { font-size: 0.85rem; color: var(--color-fg-muted); margin-top: 2px; margin-bottom: 12px; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: gap var(--transition);
}
.project-link:hover { gap: 10px; }

.center-cta { text-align: center; margin-top: var(--space-6); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-primary);
  transition: gap var(--transition);
}
.link-arrow:hover { gap: 12px; }

/* ==========================================================================
   Stats row
   ========================================================================== */
.stats-row {
  background: var(--gradient-vivid);
  background-size: 220% 220%;
  animation: gradient-shift 8s ease-in-out infinite;
  padding: var(--space-6) 0;
}
.stats-row-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-5);
  text-align: center;
}
.stat-block { display: flex; flex-direction: column; gap: 4px; color: #fff; }
.stat-number-lg { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; }
.stats-row .stat-label { color: rgba(255,255,255,0.85); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.testimonials-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 8px 0 var(--space-3);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonials-grid::-webkit-scrollbar { display: none; }

.testi-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  perspective: 1200px;
}

.testi-slide .testimonial-card { width: 100%; max-width: 640px; }

/* Flèches et points, réutilisables pour tout carrousel du site */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.carousel-arrow:hover { background: var(--gradient-vivid); color: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: -6px; }
.carousel-next { right: -6px; }

@media (max-width: 720px) {
  .carousel-arrow { display: none; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-5);
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--transition), transform var(--transition), width var(--transition);
}
.carousel-dot.is-active {
  background: var(--gradient-vivid);
  width: 24px;
  border-radius: var(--radius-full);
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.testimonial-card p { font-size: 1rem; margin-bottom: var(--space-4); }

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card footer strong { display: block; font-size: 0.9rem; }
.testimonial-card footer span { font-size: 0.82rem; color: var(--color-fg-muted); }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-vivid);
  background-size: 220% 220%;
  animation: gradient-shift 5s ease-in-out infinite;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Tools section
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: var(--space-6);
  align-items: center;
}

.benefits-list { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.benefits-list svg { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

.tools-visual {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tools-diagram {
  position: relative;
  width: 320px;
  height: 320px;
}

.tools-diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tools-link {
  stroke: url(#toolsLinkGrad);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  animation: tools-link-flow 1.6s linear infinite;
}
@keyframes tools-link-flow {
  to { stroke-dashoffset: -24; }
}
@media (prefers-reduced-motion: reduce) {
  .tools-link { animation: none; }
}

.tools-hub {
  position: absolute;
  top: 122px; left: 122px;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--gradient-vivid);
  background-size: 220% 220%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: gradient-shift 5s ease-in-out infinite, tools-hub-pulse 2.4s ease-in-out infinite;
  z-index: 2;
}
@keyframes tools-hub-pulse {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(168, 85, 247, 0.35); }
  50% { box-shadow: var(--shadow-lg), 0 0 0 14px rgba(168, 85, 247, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tools-hub { animation: none; }
}

.tools-node-icon {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sf-tile-float 4s ease-in-out infinite;
  transition: transform var(--transition), box-shadow var(--transition);
  z-index: 2;
}
.tools-node-icon:hover { transform: translateY(-6px) scale(1.06); box-shadow: var(--shadow-lg); }
.tools-node-icon:nth-of-type(1) { animation-delay: 0s; }
.tools-node-icon:nth-of-type(2) { animation-delay: 0.3s; }
.tools-node-icon:nth-of-type(3) { animation-delay: 0.6s; }
.tools-node-icon:nth-of-type(4) { animation-delay: 0.9s; }
.tools-node-icon:nth-of-type(5) { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .tools-node-icon { animation: none; }
}

@media (max-width: 460px) {
  .tools-diagram { transform: scale(0.82); }
}

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  perspective: 1200px;
}
.team-grid .team-card { width: 100%; max-width: 280px; }
.team-card {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.team-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--gradient-vivid);
  background-size: 220% 220%;
  animation: gradient-shift 5s ease-in-out infinite;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 auto var(--space-3);
}
.team-card p { color: var(--color-fg-muted); font-size: 0.9rem; margin: 4px 0 var(--space-3); }

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}
.linkedin-link:hover { text-decoration: underline; }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-container { max-width: 760px; }

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  text-align: left;
  padding: var(--space-4) 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-fg);
}

.accordion-icon { flex-shrink: 0; color: var(--color-primary); transition: transform var(--transition); }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }

.accordion-panel {
  overflow: hidden;
  padding: 0 4px var(--space-4);
  color: var(--color-fg-muted);
  font-size: 0.95rem;
  max-width: 640px;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-container { max-width: 760px; }

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

/* Champ anti-spam invisible pour les humains, visible pour les robots */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.form-field-full { grid-column: 1 / -1; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 0.88rem;
  font-weight: 700;
}
.form-field label span { color: var(--color-primary); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-fg);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

.form-field textarea { min-height: 120px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.28);
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: #E39494;
}

.phone-group { display: flex; gap: 8px; }
.phone-group select { flex: 0 0 110px; }
.phone-group input { flex: 1; }

.form-confirmation {
  margin-top: var(--space-3);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(74, 222, 154, 0.14);
  border: 1px solid rgba(74, 222, 154, 0.3);
  color: var(--color-success);
  font-weight: 600;
  font-size: 0.9rem;
}
.form-confirmation.form-confirmation-error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}

.footer-brand p { color: var(--color-fg-muted); font-size: 0.9rem; margin-top: var(--space-3); max-width: 320px; }
.footer-address { font-weight: 600; color: var(--color-fg) !important; margin-top: var(--space-2) !important; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.9rem; margin-bottom: 6px; }
.footer-col a { color: var(--color-fg-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-4);
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-fg-muted);
}

/* ==========================================================================
   Halo animé sur toutes les cartes (bordure dégradée qui respire)
   ========================================================================== */
.step-card::before,
.project-card::before,
.service-card::before,
.service-featured::before,
.testimonial-card::before,
.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient-vivid);
  background-size: 260% 260%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: card-glow-breathe 5s ease-in-out infinite, gradient-shift 7s ease-in-out infinite;
}

.step-card:nth-child(2)::before, .project-card:nth-child(2)::before { animation-delay: -1.2s, 0s; }
.step-card:nth-child(3)::before, .project-card:nth-child(3)::before { animation-delay: -2.4s, 0s; }
.step-card:nth-child(4)::before, .project-card:nth-child(4)::before { animation-delay: -3.6s, 0s; }
.testimonial-card:nth-child(2)::before { animation-delay: -1.5s, 0s; }
.testimonial-card:nth-child(3)::before { animation-delay: -3s, 0s; }
.testimonial-card:nth-child(4)::before { animation-delay: -4.5s, 0s; }
.team-card:nth-child(2)::before { animation-delay: -1.8s, 0s; }

@keyframes card-glow-breathe {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .step-card::before, .project-card::before, .service-card::before,
  .service-featured::before, .testimonial-card::before, .team-card::before {
    animation: none;
    opacity: 0;
  }
}

/* Contenus internes des cartes au-dessus du halo */
.step-card > *, .project-card > .project-body, .project-card > .project-thumb,
.service-card > *, .service-featured > *, .testimonial-card > *, .team-card > * {
  position: relative;
  z-index: 1;
}

/* Vie dans les mockups : lignes et blocs qui scintillent */
.quote-line, .browser-block, .thumb-line, .thumb-box {
  background-size: 200% 100%;
  animation: shimmer 2.6s ease-in-out infinite;
}
.quote-line.short { animation-delay: 0.3s; }
.browser-block.small { animation-delay: 0.5s; }

@keyframes shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .quote-line, .browser-block, .thumb-line, .thumb-box { animation: none; }
}

/* ==========================================================================
   Scroll reveal animation
   ========================================================================== */
/* Entrée automatique du hero au chargement (indépendante du scroll) */
.hero-in {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-in-play 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes hero-in-play {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-in { animation: none; opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Effet de cascade : chaque carte d'une même grille se révèle avec un léger décalage */
.steps-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.steps-grid .reveal:nth-child(3) { transition-delay: 180ms; }
.steps-grid .reveal:nth-child(4) { transition-delay: 270ms; }
.projects-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.projects-grid .reveal:nth-child(3) { transition-delay: 180ms; }
.projects-grid .reveal:nth-child(4) { transition-delay: 270ms; }
.services-small .reveal:nth-child(2) { transition-delay: 90ms; }
.services-small .reveal:nth-child(3) { transition-delay: 180ms; }
.testimonials-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.testimonials-grid .reveal:nth-child(3) { transition-delay: 180ms; }
.testimonials-grid .reveal:nth-child(4) { transition-delay: 270ms; }
.team-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.accordion .reveal:nth-child(2) { transition-delay: 60ms; }
.accordion .reveal:nth-child(3) { transition-delay: 120ms; }
.accordion .reveal:nth-child(4) { transition-delay: 180ms; }
.accordion .reveal:nth-child(5) { transition-delay: 240ms; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .service-featured { grid-template-columns: 1fr; }
  .service-featured-visual { max-width: 420px; margin: 0 auto; }
  .tools-grid { grid-template-columns: 1fr; }
  .tools-visual { order: -1; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .lang-switch { display: none; }
  .menu-toggle { display: flex; }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: var(--space-4);
    gap: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-5); }
}

@media (max-width: 640px) {
  :root { --space-8: 64px; --space-7: 44px; }
  .steps-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-small { grid-template-columns: 1fr; }
  .service-featured { padding: var(--space-5); }
  .sf-tile { padding: 10px; font-size: 0.72rem; }
  .hero-stats { gap: var(--space-5); }
  .form-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .phone-group { flex-direction: column; }
  .phone-group select { flex: none; }
  .header-actions .btn-sm { display: none; }
}

/* ==========================================================================
   Chatbot flottant "Gustave"
   ========================================================================== */
.chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
}

.chatbot-launcher {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient-vivid);
  background-size: 220% 220%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: gradient-shift 5s ease-in-out infinite, chatbot-bounce 3.5s ease-in-out infinite;
  transition: transform var(--transition);
}
.chatbot-launcher:hover { transform: scale(1.08); }
.chatbot-launcher-icon-close { display: none; }
.chatbot.is-open .chatbot-launcher-icon-chat { display: none; }
.chatbot.is-open .chatbot-launcher-icon-close { display: block; }
.chatbot.is-open .chatbot-launcher { animation: none; }

@keyframes chatbot-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  90% { transform: translateY(-6px); }
}

.chatbot-launcher-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #EF4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg);
}
.chatbot.is-open .chatbot-launcher-badge { display: none; }

@media (prefers-reduced-motion: reduce) {
  .chatbot-launcher { animation: none; }
}

.chatbot-window {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(360px, calc(100vw - 40px));
  height: min(500px, calc(100vh - 140px));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatbot-window-in 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.chatbot-window[hidden] { display: none; }

@keyframes chatbot-window-in {
  0% { opacity: 0; transform: scale(0.9) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .chatbot-window { animation: none; }
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--gradient-vivid);
  background-size: 200% 200%;
  animation: gradient-shift 6s ease-in-out infinite;
  color: #fff;
  flex-shrink: 0;
}
.chatbot-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.chatbot-header-text { flex: 1; min-width: 0; }
.chatbot-header-text p { font-weight: 800; font-size: 0.95rem; }
.chatbot-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  opacity: 0.9;
}
.chatbot-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE9A;
  flex-shrink: 0;
}
.chatbot-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: background var(--transition);
}
.chatbot-close:hover { background: rgba(255, 255, 255, 0.2); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: chatbot-msg-in 220ms ease-out;
}
@keyframes chatbot-msg-in {
  0% { opacity: 0; transform: translateY(6px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.chatbot-msg-bot {
  align-self: flex-start;
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 3px;
  color: var(--color-fg);
}
.chatbot-msg-user {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.chatbot-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  border-bottom-left-radius: 3px;
}
.chatbot-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-fg-muted);
  animation: dot-bounce 0.9s ease-in-out infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.chatbot-chip {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-primary-light);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition);
}
.chatbot-chip:hover { background: var(--color-surface-hover); transform: translateY(-1px); }

.chatbot-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.chatbot-form input {
  flex: 1;
  min-width: 0;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--color-fg);
}
.chatbot-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.28);
}
.chatbot-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.chatbot-send:hover { transform: scale(1.08); }

@media (max-width: 480px) {
  .chatbot { right: 12px; bottom: 12px; }
  .chatbot-window { right: -4px; }
}
