body {
  font-family: "Inter", sans-serif;
  background-color: #050505;
  color: #e2e8f0;
  overflow-x: hidden;
}
.font-mono {
  font-family: "JetBrains Mono", monospace;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.section-dark,
.section-darker,
.section-light,
.section-lighter {
  background-color: rgba(5, 5, 5, 0.7);
}

.img-placeholder {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px dashed #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(51, 65, 85, 0.1) 10px,
    rgba(51, 65, 85, 0.1) 20px
  );
}
.img-placeholder iconify-icon,
.img-placeholder span {
  position: relative;
  z-index: 1;
}

.hero-perspective {
  perspective: 2000px;
}
.hero-rotate {
  transform-style: preserve-3d;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 20px 50px -10px rgba(0, 0, 0, 0.1),
    0 0 100px -20px rgba(245, 158, 11, 0.1);
}
.shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 40%
  );
  pointer-events: none;
  z-index: 10;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 80px rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 120px rgba(245, 158, 11, 0.6);
  }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}
.animate-pulse-logo {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes aura-scroll-down {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes aura-scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
.animate-col-down {
  animation: aura-scroll-down 20s linear infinite;
}
.animate-col-up {
  animation: aura-scroll-up 20s linear infinite;
}

@keyframes aura-chart-fill {
  0% {
    stroke-dasharray: 0 95;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    stroke-dasharray: 18 77;
    opacity: 1;
  }
}
.aura-slice {
  animation: aura-chart-fill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}
.ambient-bg .orb-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.25) 0%,
    rgba(245, 158, 11, 0.08) 40%,
    transparent 70%
  );
  top: -15%;
  left: -10%;
  animation: orb-drift-1 20s ease-in-out infinite;
}
.ambient-bg .orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.18) 0%,
    rgba(245, 158, 11, 0.05) 40%,
    transparent 70%
  );
  top: 25%;
  right: -15%;
  animation: orb-drift-2 25s ease-in-out infinite;
}
.ambient-bg .orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(59, 130, 246, 0.04) 40%,
    transparent 70%
  );
  bottom: 5%;
  left: 15%;
  animation: orb-drift-3 30s ease-in-out infinite;
}
.ambient-bg .orb-4 {
  width: 550px;
  height: 550px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.2) 0%,
    rgba(245, 158, 11, 0.06) 40%,
    transparent 70%
  );
  top: 55%;
  left: 55%;
  animation: orb-drift-4 22s ease-in-out infinite;
}
.ambient-bg .orb-5 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(139, 92, 246, 0.03) 40%,
    transparent 70%
  );
  top: 5%;
  right: 25%;
  animation: orb-drift-5 28s ease-in-out infinite;
}
@keyframes orb-drift-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(100px, 150px) scale(1.15);
  }
  50% {
    transform: translate(50px, 80px) scale(0.9);
  }
  75% {
    transform: translate(-50px, 100px) scale(1.1);
  }
}
@keyframes orb-drift-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-120px, 80px) scale(1.2);
  }
  66% {
    transform: translate(-60px, -50px) scale(0.85);
  }
}
@keyframes orb-drift-3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(80px, -100px) scale(1.15);
  }
  60% {
    transform: translate(-50px, -50px) scale(1.05);
  }
}
@keyframes orb-drift-4 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(-90px, -60px) scale(1.25);
  }
  70% {
    transform: translate(40px, 50px) scale(0.9);
  }
}
@keyframes orb-drift-5 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(70px, 90px) scale(1.15);
  }
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  mask-image: radial-gradient(
    ellipse 90% 70% at 50% 50%,
    black 20%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 90% 70% at 50% 50%,
    black 20%,
    transparent 100%
  );
}
header,
main,
footer,
section,
#mobile-menu {
  position: relative;
  z-index: 1;
}

.lightbox-img {
  cursor: zoom-in;
  transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.3s ease;
}
.lightbox-img:hover {
  transform: scale(1.015);
  opacity: 0.96;
}
#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#lightbox-overlay.active {
  display: flex;
  opacity: 1;
}
#lightbox-overlay .lightbox-inner {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
#lightbox-overlay.active .lightbox-inner {
  transform: scale(1);
}
#lightbox-overlay img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 25px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  display: block;
}
#lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  z-index: 201;
}
#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}
@media (max-width: 640px) {
  #lightbox-overlay {
    padding: 1rem;
  }
  #lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* ── Cover format pour détail blog/projet ── */
.cover-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 560px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow:
    0 25px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}
@media (max-width: 768px) {
  .cover-hero {
    aspect-ratio: 16 / 9;
    max-height: 320px;
    border-radius: 12px;
  }
}
