/* ═══════════════════════════════════════════════════════
   TABLE OF CONTENTS
   1. Reset & Custom Properties
   2. Base
   3. Utilities
   4. Header
   5. Mobile Nav
   6. Hero
   7. Sections (shared)
   8. Services
   9. Animations
   10. Responsive
═══════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────
   1. RESET & CUSTOM PROPERTIES
───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --c-bg:       #050508;
  --c-surface:  #0d0d14;
  --c-border:   rgba(255, 255, 255, .07);
  --c-accent:   #7c3aed;
  --c-accent2:  #06b6d4;
  --c-text:     #e2e8f0;
  --c-muted:    #64748b;
  --c-white:    #ffffff;

  /* Gradients */
  --grad-hero:  linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);

  /* Radii */
  --r-sm:   .5rem;
  --r-md:   1rem;
  --r-lg:   1.5rem;
  --r-xl:   2rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-glow: 0 0 60px rgba(124, 58, 237, .25);

  /* Transition */
  --ease: .3s cubic-bezier(.4, 0, .2, 1);

  /* Typography */
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Syne', 'Inter', sans-serif;

  /* Layout */
  --header-h:   72px;
  --max-w:      1200px;
  --max-w-hero: 900px;
  --px:         max(1.5rem, calc((100% - var(--max-w)) / 2 + 1.5rem));
}


/* ─────────────────────────────────────────────────────
   2. BASE
───────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Garantit que hidden ne soit jamais écrasé par un display CSS */
[hidden] { display: none !important; }

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

/* Scrollbar */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-accent); border-radius: var(--r-full); }


/* ─────────────────────────────────────────────────────
   3. UTILITIES
───────────────────────────────────────────────────── */
.gradient-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Shared buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.375rem;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text);
}
.btn-ghost:hover {
  border-color: rgba(124, 58, 237, .5);
  background: rgba(124, 58, 237, .08);
  color: var(--c-white);
}

.btn-primary {
  background: var(--grad-hero);
  color: var(--c-white);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, .45);
}
.btn-primary:active { transform: translateY(0); }


/* ─────────────────────────────────────────────────────
   4. HEADER
───────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition:
    background var(--ease),
    backdrop-filter var(--ease),
    border-color var(--ease);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(5, 5, 8, .85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--c-border);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--grad-hero);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--c-white);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.logo-icon svg { display: block; }
.logo-icon::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 50%);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -.4px;
}
.logo-text span {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav links */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--c-muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--ease);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: var(--grad-hero);
  transition: width var(--ease);
  border-radius: var(--r-full);
}
.nav a:hover          { color: var(--c-white); }
.nav a:hover::after   { width: 100%; }

/* Header right actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: var(--r-full);
  transition: all var(--ease);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ─────────────────────────────────────────────────────
   5. MOBILE NAV
───────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  background: rgba(5, 5, 8, .97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--c-border);
  padding: 1.5rem var(--px) 2rem;
  flex-direction: column;
  gap: .25rem;
}
.mobile-nav.open {
  display: flex;
  animation: slideDown .22s ease;
}

.mobile-nav a {
  color: var(--c-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: .75rem 0;
  border-bottom: 1px solid var(--c-border);
  transition: color var(--ease);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover        { color: var(--c-white); }
.mobile-nav .btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}


/* ─────────────────────────────────────────────────────
   6. HERO
───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 4rem)
           max(1.5rem, calc((100% - var(--max-w-hero)) / 2 + 1.5rem))
           5rem;
  overflow: hidden;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  background: radial-gradient(circle, rgba(124, 58, 237, .5) 0%, transparent 70%);
  top: -10%; left: -10%;
  animation-delay: 0s;
}
.blob-2 {
  width: clamp(250px, 40vw, 500px);
  height: clamp(250px, 40vw, 500px);
  background: radial-gradient(circle, rgba(6, 182, 212, .4) 0%, transparent 70%);
  bottom: -5%; right: -5%;
  animation-delay: -3s;
}
.blob-3 {
  width: clamp(150px, 25vw, 300px);
  height: clamp(150px, 25vw, 300px);
  background: radial-gradient(circle, rgba(236, 72, 153, .3) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -5s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* Floating cards */
.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  padding: .875rem 1.125rem;
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.card-left  { left: max(1rem, 4vw); top: 30%; animation: cardFloat 6s ease-in-out infinite; }
.card-right { right: max(1rem, 4vw); top: 42%; animation: cardFloat 7s ease-in-out infinite reverse; }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .3);
  border-radius: var(--r-full);
  font-size: .8125rem;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 1.75rem;
  animation: fadeInUp .6s ease both;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 6px #a78bfa;
  animation: dotPulse 2s ease-in-out infinite;
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--c-white);
  margin-bottom: 1.5rem;
  animation: fadeInUp .6s .1s ease both;
}

.underline-anim {
  position: relative;
  display: inline-block;
}
.underline-anim::after {
  content: '';
  position: absolute;
  left: 0; bottom: -.1em;
  width: 100%; height: .07em;
  background: var(--grad-hero);
  border-radius: var(--r-full);
  transform: scaleX(0);
  transform-origin: left;
  animation: lineIn .6s .85s ease both;
}

/* Sub */
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--c-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.7;
  animation: fadeInUp .6s .2s ease both;
}
.hero-sub strong { color: var(--c-text); font-weight: 600; }

/* CTA buttons */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .875rem;
  margin-bottom: 3.5rem;
  animation: fadeInUp .6s .3s ease both;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  background: var(--grad-hero);
  border: none;
  border-radius: var(--r-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--ease);
  box-shadow: 0 4px 30px rgba(124, 58, 237, .4);
  line-height: 1;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124, 58, 237, .6);
}
.btn-hero-primary:active { transform: translateY(0); }
.btn-hero-primary svg    { transition: transform var(--ease); }
.btn-hero-primary:hover svg { transform: translateX(3px); }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--ease);
  line-height: 1;
}
.btn-hero-secondary:hover {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .04);
  color: var(--c-white);
}

/* Social proof */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
  animation: fadeInUp .6s .4s ease both;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--c-muted);
  font-weight: 500;
}
.proof-item svg    { flex-shrink: 0; }
.proof-item strong { color: var(--c-text); }

.proof-stars {
  color: #fbbf24;
  font-size: .8125rem;
  letter-spacing: 1px;
}

/* Bottom fade */
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--c-bg));
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────
   7. SECTIONS (shared layout primitives)
───────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.section-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Shared section header */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .875rem;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .25);
  border-radius: var(--r-full);
  font-size: .8rem;
  font-weight: 600;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--c-white);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--c-muted);
  line-height: 1.7;
}
.section-sub strong { color: var(--c-text); }

/* Reveal animation (triggered by IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ─────────────────────────────────────────────────────
   8. SERVICES
───────────────────────────────────────────────────── */
.services {
  background: var(--c-bg);
}

/* Subtle top separator line */
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(124, 58, 237, .5), transparent);
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Card base */
.service-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  overflow: hidden;
}

/* Hover glow on border */
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad-hero);
  opacity: 0;
  transition: opacity var(--ease);
  z-index: -1;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

/* Inner mask so gradient only shows as border */
.service-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--r-xl) - 1px);
  background: var(--c-surface);
  z-index: -1;
  transition: background var(--ease);
}

/* Featured card */
.service-card--featured {
  border-color: rgba(124, 58, 237, .4);
  background: linear-gradient(160deg, rgba(124,58,237,.07) 0%, var(--c-surface) 60%);
}
.service-card--featured::after {
  background: linear-gradient(160deg, rgba(124,58,237,.07) 0%, var(--c-surface) 60%);
}

/* Popular badge */
.service-popular {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: .25rem .7rem;
  background: var(--grad-hero);
  border-radius: var(--r-full);
  font-size: .7rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: .02em;
  white-space: nowrap;
}

/* Icon */
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .2);
  display: grid;
  place-items: center;
  color: #a78bfa;
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
}
.service-card:hover .service-icon {
  background: rgba(124, 58, 237, .18);
  color: var(--c-white);
}

/* Title */
.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -.4px;
}

/* Description */
.service-desc {
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.65;
  flex-grow: 1;
}

/* Feature list */
.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8375rem;
  color: var(--c-text);
  font-weight: 500;
}

.service-features li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grad-hero);
  flex-shrink: 0;
}

/* Card footer */
.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}

.service-price {
  font-size: .8375rem;
  color: var(--c-muted);
}
.service-price strong {
  color: var(--c-white);
  font-size: .9375rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #a78bfa;
  text-decoration: none;
  transition: gap var(--ease), color var(--ease);
  white-space: nowrap;
}
.service-link:hover {
  color: var(--c-white);
  gap: .55rem;
}

/* Bottom banner */
.services-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(124, 58, 237, .06);
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: var(--r-xl);
  flex-wrap: wrap;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--c-text);
}


/* ─────────────────────────────────────────────────────
   9. RÉALISATIONS
───────────────────────────────────────────────────── */
.realisations {
  background: var(--c-bg);
}

/* Filters */
.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: .5rem 1.25rem;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  cursor: pointer;
  transition: all var(--ease);
}
.filter-btn:hover {
  border-color: rgba(124, 58, 237, .4);
  color: var(--c-text);
}
.filter-btn.active {
  background: var(--grad-hero);
  border-color: transparent;
  color: var(--c-white);
}

/* Grid — 3 colonnes fixes */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Card */
.project-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  border-color: rgba(124, 58, 237, .3);
}

/* Filtrage */
.project-card.hidden {
  display: none;
}

/* Visual area */
.project-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--g);
  overflow: hidden;
}

/* Image réelle du projet */
.project-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.project-card:hover .project-img { transform: scale(1.04); }

/* Mockup browser */
.project-mockup {
  position: absolute;
  inset: 12px 12px 0;
  background: rgba(0, 0, 0, .35);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-bar {
  height: 22px;
  background: rgba(0, 0, 0, .4);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  flex-shrink: 0;
}
.mockup-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}

.mockup-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

/* Mockup skeleton lines */
.mockup-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .2);
}
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }

.mockup-block {
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  margin: 2px 0;
}

/* Mockup 2-col product grid */
.mockup-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.mockup-card-sm {
  border-radius: 5px;
  background: rgba(255, 255, 255, .15);
}

/* Mockup hero mini */
.mockup-hero-mini {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.mockup-btn-mini {
  width: 60px;
  height: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .35);
  margin-top: 4px;
}

/* Hover overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
}
.project-card:hover .project-overlay {
  opacity: 1;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--c-white);
  color: #0f0f17;
  border-radius: var(--r-full);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease);
}
.project-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

/* Info block */
.project-info {
  padding: 1.375rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.project-tag {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -.3px;
}

.project-desc {
  font-size: .8375rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: .25rem;
}
.project-stack span {
  padding: .2rem .625rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-muted);
}

/* Bottom CTA */
.portfolio-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.portfolio-more p {
  font-size: .9375rem;
  color: var(--c-muted);
}


/* ─────────────────────────────────────────────────────
   10. TARIFS
───────────────────────────────────────────────────── */
.tarifs { background: var(--c-bg); }

.tarifs-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,.18) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.pricing-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  border-color: rgba(124,58,237,.3);
}

.pricing-card--featured {
  border-color: rgba(124,58,237,.5);
  box-shadow: 0 0 0 1px rgba(124,58,237,.2), 0 20px 60px rgba(124,58,237,.15);
  padding-top: 2.75rem;
}
.pricing-card--featured:hover {
  box-shadow: 0 0 0 1px rgba(124,58,237,.4), 0 28px 70px rgba(124,58,237,.25);
}

.pricing-badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: .3rem 1.125rem;
  background: var(--grad-hero);
  border-radius: var(--r-full);
  font-size: .73rem;
  font-weight: 700;
  color: var(--c-white);
  white-space: nowrap;
  letter-spacing: .03em;
}

/* Bloc prix */
.pricing-top {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-border);
}

.pricing-plan {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -.3px;
}
.pricing-tagline {
  font-size: .8rem;
  color: var(--c-muted);
  margin-bottom: .5rem;
}

.pricing-price {
  display: flex;
  align-items: flex-start;
  gap: .2rem;
  line-height: 1;
  margin-top: .25rem;
}
.price-currency {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-muted);
  margin-top: .35rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -2px;
}
.pricing-card--featured .price-amount,
.pricing-card--featured .price-currency {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-price--custom .price-amount {
  font-size: 2rem;
  letter-spacing: -1px;
}
.price-note {
  font-size: .775rem;
  color: var(--c-muted);
}

/* Features */
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex-grow: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .855rem;
  line-height: 1.4;
}
.feat-yes { color: var(--c-text); }
.feat-no  { color: var(--c-muted); opacity: .45; text-decoration: line-through; }

.feat-yes::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(34,197,94,.12) url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2 2 4-4' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  border: 1px solid rgba(34,197,94,.3);
}
.feat-no::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--c-border);
}

/* CTA */
.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .875rem 1rem;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--ease);
  line-height: 1;
  margin-top: .5rem;
}
.pricing-cta--ghost {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text);
}
.pricing-cta--ghost:hover {
  border-color: rgba(124,58,237,.5);
  background: rgba(124,58,237,.08);
  color: var(--c-white);
}
.pricing-cta--primary {
  background: var(--grad-hero);
  border: 1px solid transparent;
  color: var(--c-white);
  box-shadow: 0 4px 24px rgba(124,58,237,.35);
}
.pricing-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,.55);
}

/* Bande garanties */
.guarantee-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 1.5rem 2rem;
}
.guarantee-strip .guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .825rem;
  color: var(--c-muted);
  line-height: 1.45;
  padding: 0 1rem;
}
.guarantee-strip .guarantee-item svg { flex-shrink: 0; margin-top: 2px; }
.guarantee-strip .guarantee-item strong { color: var(--c-text); display: block; }
.guarantee-divider {
  width: 1px;
  height: 40px;
  background: var(--c-border);
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────
   11. FAQ
───────────────────────────────────────────────────── */
.faq { background: var(--c-surface); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq-item {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--ease);
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: rgba(124,58,237,.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
  transition: color var(--ease);
}
.faq-question:hover { color: var(--c-white); }
.faq-question[aria-expanded="true"] { color: var(--c-white); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--c-muted);
  transition: transform var(--ease), color var(--ease);
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: #a78bfa;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.faq-answer.open { max-height: 300px; }

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.7;
}
.faq-answer strong { color: var(--c-text); }


/* ─────────────────────────────────────────────────────
   12. CONTACT
───────────────────────────────────────────────────── */
.contact { background: var(--c-bg); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

/* Form column */
.contact-form-col { min-width: 0; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-group label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-text);
}
.form-group label span { color: #a78bfa; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--c-white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--c-muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(124,58,237,.6);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

.select-wrap {
  position: relative;
}
.select-wrap select {
  width: 100%;
  padding: .75rem 2.5rem .75rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--c-white);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.select-wrap select:focus {
  border-color: rgba(124,58,237,.6);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.select-wrap select option { background: #1a1a2e; color: var(--c-white); }
.select-chevron {
  position: absolute;
  right: .875rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--c-muted);
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  border: none;
}

.form-note {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--c-muted);
  margin-top: -.25rem;
}

/* Success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--c-surface);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: var(--r-xl);
  min-height: 300px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--c-white);
}
.form-success p { color: var(--c-muted); line-height: 1.7; }
.form-success strong { color: var(--c-text); }

/* Info column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.contact-info-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 800;
  color: var(--c-white);
}

.contact-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.cstat {
  background: rgba(124,58,237,.07);
  border: 1px solid rgba(124,58,237,.15);
  border-radius: var(--r-md);
  padding: .875rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.cstat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-white);
  line-height: 1;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cstat-label {
  font-size: .75rem;
  color: var(--c-muted);
  font-weight: 500;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: var(--c-text);
  text-decoration: none;
  transition: color var(--ease);
}
.contact-link:hover { color: var(--c-white); }
.contact-link-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--c-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--c-muted);
}

.contact-info-card--accent {
  background: rgba(124,58,237,.08);
  border-color: rgba(124,58,237,.25);
}
.contact-offer-title {
  font-weight: 700;
  color: var(--c-white);
  font-size: .9rem;
}
.contact-offer-text {
  font-size: .85rem;
  color: var(--c-muted);
  line-height: 1.6;
}


/* ─────────────────────────────────────────────────────
   13. FOOTER
───────────────────────────────────────────────────── */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 4rem 0 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--c-border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-tagline {
  font-size: .875rem;
  color: var(--c-muted);
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: .5rem;
}
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-border);
  display: grid;
  place-items: center;
  color: var(--c-muted);
  text-decoration: none;
  transition: all var(--ease);
}
.social-btn:hover {
  background: rgba(124,58,237,.12);
  border-color: rgba(124,58,237,.35);
  color: var(--c-white);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-white);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.footer-col a {
  font-size: .875rem;
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--c-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: .8125rem;
  color: var(--c-muted);
}
.footer-made span { color: #ef4444; }


/* ─────────────────────────────────────────────────────
   11. ANIMATIONS
───────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(.97); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.8); }
}

@keyframes lineIn {
  to { transform: scaleX(1); }
}


/* ─────────────────────────────────────────────────────
   10. RESPONSIVE
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-card    { display: none; }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid   { grid-template-columns: repeat(2, 1fr); }

  .guarantee-strip {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    padding: 1.5rem;
  }
  .guarantee-divider { display: none; }
  .guarantee-strip .guarantee-item { padding: 0; }

  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-info-col { position: static; }

  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .section { padding: 5rem 0; }

  /* Header */
  .nav            { display: none; }
  .header-actions { display: none; }
  .hamburger      { display: flex; }

  /* Hero */
  .hero-headline { letter-spacing: -1px; }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn-hero-primary,
  .btn-hero-secondary { justify-content: center; }
  .hero-proof { gap: .875rem 1.5rem; }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .services-banner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .services-banner .btn { width: 100%; justify-content: center; }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .portfolio-more { flex-direction: column; text-align: center; }
  .portfolio-more .btn { width: 100%; justify-content: center; }

  /* Tarifs */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card--featured { padding-top: 2.75rem; }

  .guarantee-strip { grid-template-columns: 1fr; padding: 1.25rem; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; }
  .contact-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .hero-headline { letter-spacing: -.5px; }
  .section-inner { padding: 0 1.25rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
