/* ========================================
   VARIABLES & RESET
======================================== */

:root {
  /* Colors */
  --color-bg-dark: #0a0e27;
  --color-bg-darker: #050816;
  --color-primary: #6366f1;
  --color-secondary: #ec4899;
  --color-accent: #14b8a6;
  --color-text: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.08);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --gradient-accent: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
  --gradient-mesh: radial-gradient(
      at 0% 0%,
      rgba(99, 102, 241, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
    radial-gradient(at 50% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Space Grotesk", sans-serif;

  /* Effects */
  --blur-sm: 20px;
  --blur-md: 40px;
  --blur-lg: 60px;

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: initial;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform var(--transition-base);
  z-index: 100000;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* ========================================
   CURSOR CUSTOM
======================================== */

.cursor,
.cursor-follower {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transition: transform 0.2s ease;
}

.cursor {
  background: white;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cursor-hover .cursor-follower {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.2);
}

/* ========================================
   SCROLL PROGRESS
======================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 99999;
  transition: width 0.1s linear;
}

/* ========================================
   HEADER
======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: var(--space-md) var(--space-xl);
  transition: all var(--transition-smooth);
}

.header.scrolled {
  padding: var(--space-sm) var(--space-xl);
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(var(--blur-md));
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-img {
  width: 50px;
  height: 50px;
  transition: transform var(--transition-smooth);
}

.header:hover .logo-img {
  transform: rotate(360deg);
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
}

.logo-lb {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-digital {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* Navigation */
.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border);
}

.nav-cta:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.burger-menu span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transition: all var(--transition-base);
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cta-header {
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.cta-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-2xl) var(--space-xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.4;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  text-align: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: floatOrb 10s ease-in-out infinite;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(99, 102, 241, 0.5);
  top: 10%;
  left: 8%;
}

.orb-2 {
  width: 340px;
  height: 340px;
  background: rgba(236, 72, 153, 0.4);
  bottom: 5%;
  right: 10%;
  animation-delay: 1.5s;
}

.orb-3 {
  width: 220px;
  height: 220px;
  background: rgba(20, 184, 166, 0.4);
  top: 20%;
  right: 20%;
  animation-delay: 3s;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(var(--blur-sm));
  margin-bottom: var(--space-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.stat {
  padding: var(--space-md);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(var(--blur-sm));
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.btn {
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  backdrop-filter: blur(var(--blur-sm));
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-primary),
    transparent
  );
  animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
  0%,
  100% {
    transform: translateY(-10px);
    opacity: 0;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

/* ========================================
   SERVICES SECTION
======================================== */

.services {
  position: relative;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-bg-dark);
}

.section-header {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.section-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  padding: var(--space-xl);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  transition: all var(--transition-smooth);
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.service-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--gradient-primary);
  font-size: 32px;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.service-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.service-description,
.service-desc {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.service-features {
  list-style: none;
  position: relative;
  z-index: 1;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.service-features li::before {
  content: "→";
  color: var(--color-primary);
  font-weight: 700;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: gap var(--transition-base);
}

.service-link:hover {
  gap: var(--space-sm);
}

/* ========================================
   PORTFOLIO SECTION - PREMIUM VERSION
======================================== */

.portfolio {
  position: relative;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-bg-darker);
  overflow: hidden;
}

/* Background decorative elements */
.portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(245, 210, 107, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.3;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.2);
  }
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 2;
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(245, 210, 107, 0.1);
  border: 1px solid rgba(245, 210, 107, 0.3);
  border-radius: 50px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}

.section-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 210, 107, 0.2),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.gradient-text {
  background: linear-gradient(135deg, #f5d26b 0%, #ffa500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* ========================================
   PORTFOLIO FILTERS - PREMIUM
======================================== */

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.filter-btn {
  position: relative;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Effet de fond animé */
.filter-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(245, 210, 107, 0.2) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.filter-btn:hover::before {
  width: 300px;
  height: 300px;
}

.filter-btn:hover {
  color: var(--color-primary);
  border-color: rgba(245, 210, 107, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 210, 107, 0.15);
}

/* Active state */
.filter-btn.active {
  background: linear-gradient(
    135deg,
    rgba(245, 210, 107, 0.15) 0%,
    rgba(245, 210, 107, 0.05) 100%
  );
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 30px rgba(245, 210, 107, 0.3),
    inset 0 0 20px rgba(245, 210, 107, 0.1);
}

/* Petit indicateur sous le bouton actif */
.filter-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--color-primary);
}

/* ========================================
   PORTFOLIO GRID - ENHANCED
======================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ========================================
   PORTFOLIO ITEMS - PREMIUM CARDS
======================================== */

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.portfolio-item.is-hidden {
  display: none;
}

/* Glow effect on hover */
.portfolio-item::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(245, 210, 107, 0.4),
    rgba(245, 210, 107, 0.1),
    rgba(245, 210, 107, 0.4)
  );
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
  filter: blur(10px);
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  border-color: rgba(245, 210, 107, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(245, 210, 107, 0.2);
}

.portfolio-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portfolio-item img,
.portfolio-item .portfolio-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9);
}

.portfolio-item:hover img,
.portfolio-item:hover .portfolio-media {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.1);
}

/* ========================================
   PORTFOLIO OVERLAY - REFINED
======================================== */

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 15, 30, 0.95) 0%,
    rgba(11, 15, 30, 0.7) 40%,
    rgba(11, 15, 30, 0.3) 70%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 var(--space-xs) 0;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-info p {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.5px;
}

/* ========================================
   PORTFOLIO VIEW BUTTON
======================================== */

.portfolio-view {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(245, 210, 107, 0.15);
  border: 2px solid rgba(245, 210, 107, 0.3);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8) rotate(-45deg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  backdrop-filter: blur(10px);
}

.portfolio-item:hover .portfolio-view {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.portfolio-view:hover {
  background: rgba(245, 210, 107, 0.3);
  border-color: var(--color-primary);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 20px rgba(245, 210, 107, 0.5);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .section-title {
    font-size: 2rem;
  }

  .portfolio-item {
    aspect-ratio: 16/10;
  }
}

@media (max-width: 480px) {
  .portfolio-filter {
    gap: var(--space-xs);
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ========================================
   DEVIS SECTION - FORM STYLING
======================================== */

.devis {
  position: relative;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-bg-dark);
}

.devis-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.devis-form,
.devis-result {
  padding: var(--space-xl);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(var(--blur-sm));
}

/* ========================================
   FORM GROUP - FIXED
======================================== */

.form-group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   SELECT STYLING - PREMIUM
======================================== */

.form-group select {
  width: 100%;
  padding: 16px 20px;
  padding-right: 45px; /* Space pour la flèche */
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  appearance: none; /* ⚠️ CRUCIAL - Supprime le style natif */
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Custom arrow background */
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23F5D26B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
}

.form-group select:hover {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
}

.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(245, 210, 107, 0.1);
}

/* Style des options */
.form-group select option {
  background: #1a1f35;
  color: white;
  padding: 12px;
  font-size: 16px;
}

.form-group select option:hover {
  background: rgba(245, 210, 107, 0.1);
}

/* ========================================
   INPUT STYLING
======================================== */

.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-family: inherit;
  font-size: 16px;
  transition: all var(--transition-base);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(245, 210, 107, 0.1);
}

/* Input number - Remove spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* ========================================
   BUTTONS
======================================== */

.full-width {
  width: 100%;
  margin-top: var(--space-md);
}

#calculate-btn {
  background: linear-gradient(135deg, #f5d26b 0%, #ffa500 100%);
  color: #0b0f1e;
  padding: 18px 32px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

#calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 210, 107, 0.3);
}

#send-quote {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  padding: 18px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

#send-quote:hover {
  border-color: var(--color-primary);
  background: rgba(245, 210, 107, 0.1);
  transform: translateY(-2px);
}

/* ========================================
   RESULT SECTION
======================================== */

.result-header {
  margin-bottom: var(--space-lg);
}

.result-header h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: white;
}

.result-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 50px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin: var(--space-lg) 0;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.price-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  background: linear-gradient(135deg, #f5d26b 0%, #ffa500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.price-currency {
  font-size: 24px;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.result-details {
  margin-bottom: var(--space-lg);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row span:first-child {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-row span:last-child {
  color: var(--color-text);
  font-weight: 700;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
  .devis-container {
    grid-template-columns: 1fr;
  }

  .price-amount {
    font-size: 48px;
  }

  .result-header h3 {
    font-size: 24px;
  }
}

/* ========================================
   CONTACT SECTION
======================================== */

.contact {
  position: relative;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-bg-darker);
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-xl);
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.contact-info {
  display: grid;
  gap: var(--space-md);
}

.info-card {
  padding: var(--space-lg);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  display: grid;
  gap: var(--space-sm);
  align-content: start;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-primary);
}

.info-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
}

.info-card p {
  color: var(--color-text-secondary);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  padding: var(--space-xl);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(var(--blur-sm));
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* ========================================
   FOOTER
======================================== */

.footer {
  padding: var(--space-xl) var(--space-xl) var(--space-md);
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 20px;
  transition: all var(--transition-base);
  text-decoration: none;
}

.social-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-4px);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 14px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
  :root {
    --space-xl: 60px;
    --space-2xl: 80px;
  }

  .header {
    padding: var(--space-sm) var(--space-md);
  }

  .nav {
    gap: var(--space-md);
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

@media (max-width: 768px) {
  .hero {
    padding: var(--space-xl) var(--space-md);
  }

  .hero-title {
    font-size: 48px;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: var(--space-md);
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(5, 8, 22, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all var(--transition-base);
    backdrop-filter: blur(var(--blur-sm));
  }

  .burger-menu {
    display: flex;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .services,
  .portfolio,
  .devis,
  .contact {
    padding: var(--space-xl) var(--space-md);
  }

  .devis-container {
    grid-template-columns: 1fr;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }
}
/* ========================================
   CAROUSEL MODAL - PREMIUM
======================================== */

.carousel-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-modal.active {
  display: flex;
  opacity: 1;
}

.carousel-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

/* Close Button */
.carousel-close {
  position: absolute;
  top: -60px;
  right: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.carousel-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
  border-color: var(--color-primary);
}

/* Navigation Buttons */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(245, 210, 107, 0.2);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -80px;
}

.carousel-next {
  right: -80px;
}

/* Responsive */
@media (max-width: 1024px) {
  .carousel-prev {
    left: 20px;
  }
  .carousel-next {
    right: 20px;
  }
  .carousel-close {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .carousel-prev,
  .carousel-next {
    width: 50px;
    height: 50px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .carousel-close {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }
}
