/* ===============================
   LIGNES DE FOND
   =============================== */
.lines .line {
	width: 12.5%;
	height: 100%;
	position: relative;
	display: inline-block;
	border-right: 10px solid rgba(255, 255, 255, 0.03) !important;
}

#threejs-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.lines .line:before {
	content: "";
	position: absolute;
	right: -7px !important;
	width: 5px;
	height: 60px;
	border-radius: 100%;
	background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.8), #0000);
}

.nav-link.active {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
}

.lines .line:nth-child(2n):before {
	animation: lineAnim1 10s ease-out infinite;
}

.lines .line:nth-child(odd):before {
	animation: lineAnim2 10s ease-out infinite;
}

/* ===============================
   BACKGROUNDS & GLASS EFFECTS
   =============================== */
.bg-b-tertiary {
	--tw-bg-opacity: 1;
	background-color: rgba(26, 26, 26, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 4px 16px rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.bg-border {
	background-color: rgba(26, 26, 26, 0.3) !important;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===============================
   HOVER EFFECTS
   =============================== */
.hover\:opacity-100:hover {
	transform: scale(1.12);
  border-radius: 25px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2), 0 0 15px rgba(255, 255, 255, 0.15);
}

.opacity-50 {
	opacity: .5;
  border-radius: 25px;
}

.h-8 {
	height: 4.5rem;
}

/* ===============================
   BOUTONS GLITCH PREMIUM
   =============================== */
.glitch-btn {
    position: relative;
    display: block;
    cursor: pointer;
    border-width: 0;
    font-family: 'Chivo Mono', monospace;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    color: #0a0a0a;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.glitch-btn:focus,
.glitch-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.glitch-btn .content {
    position: absolute;
    top: .125rem;
    left: .125rem;
    right: .125rem;
    bottom: .125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    z-index: 2;
    border-radius: 4px;
}

.glitch-btn .content:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.5s ease;
}

.glitch-btn:hover .content:before {
    left: 100%;
}

.glitch-btn .anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: 1;
    border-radius: 4px;
}

.glitch-btn:hover .anim {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===============================
   EFFET GLITCH TEXTE PREMIUM
   =============================== */
.glitch {
    position: relative;
    color: transparent;
    padding-left: .375rem;
    padding-right: .375rem;
    background: linear-gradient(
        45deg,
        #ffffff 0%,
        #e5e5e5 25%,
        #ffffff 50%,
        #e5e5e5 75%,
        #ffffff 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: glitch-after 8s ease infinite;
    filter: brightness(1.2) contrast(1.1);
}

.glitch:before {
    content: attr(data-glitch);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(229, 229, 229, 0.7) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: blur(2px);
    animation: glitch-before 6s ease infinite;
    mix-blend-mode: soft-light;
}

.glitch:after {
    content: attr(data-glitch);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 45deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(229, 229, 229, 0.9) 25%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(229, 229, 229, 0.9) 75%,
        rgba(255, 255, 255, 0.8) 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: blur(1px);
    animation: glitch-after 10s ease infinite;
    mix-blend-mode: screen;
}

@keyframes glitch-before {
    0%, 100% {
        background-position: 0% 0%;
        opacity: 0.8;
    }
    50% {
        background-position: 100% 100%;
        opacity: 1;
    }
}

@keyframes glitch-after {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* ===============================
   PRODUCT CARDS PREMIUM
   =============================== */
.product-card {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    perspective: 1200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(255, 255, 255, 0.15),
        0 0 50px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.product-card img {
    transition: transform 0.3s ease-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.product-card:hover img {
    transform: scale(1.1);
}

/* ===============================
   FEATURE CARDS
   =============================== */
.feature-card {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    perspective: 1200px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card:hover {
    box-shadow: 0px 10px 30px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===============================
   BADGES
   =============================== */
.badge {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a0a0a;
  background: linear-gradient(135deg, #ffffff, #e5e5e5);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.badge-flip,
.badge-xs {
  transition: transform 0.3s ease;
}

.badge-flip:hover,
.badge-xs:hover {
  transform: scale(1.05);
}

/* ===============================
   IMAGE OVERLAY
   =============================== */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.relative:hover .image-overlay {
  opacity: 1;
}

/* ===============================
   CTA BUTTONS
   =============================== */
button.cta-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ffffff, #e5e5e5);
  color: #0a0a0a;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  letter-spacing: 0.3px;
}

button.cta-btn:hover {
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ===============================
   MODALES
   =============================== */
.modal-content {
  background-color: rgba(10, 10, 10, 0.95);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===============================
   GLASSMORPHISM CARDS
   =============================== */
.glass-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(0, 0, 0, 0.3)
  );
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
  z-index: 0;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

/* ===============================
   SCROLLBAR PREMIUM
   =============================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* ===============================
   BACKGROUND IMAGE
   =============================== */
body, .hero, .navbar, .footer, .faq, .socials {
  background-image: url('https://i.ibb.co/DPbnTPtF/Design-sans-titre-28.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

/* ===============================
   TYPOGRAPHY
   =============================== */
@import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:wght@100;200;300;400;500;600;700&display=swap');

body {
    font-family: 'Chivo Mono', monospace !important;
}

/* ===============================
   HERO TITLE
   =============================== */
.hero-title {
  font-size: 3.5rem !important;
  white-space: nowrap;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.hero-title .text-white {
  color: white !important;
}

@media (min-width: 1024px) { 
  .hero-title span {
    margin: 0 10px;
  }
}

@media (max-width: 1023px) {
  .hero-title {
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* ===============================
   NAVBAR PREMIUM
   =============================== */
@media (min-width: 1024px) { 
  .navbar-links {
    font-size: 1.1rem !important;
    color: white !important;
    opacity: 1 !important;
    transition: color 0.3s ease-in-out;
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  .navbar-links:hover {
    color: #e5e5e5 !important;
  }
}

/* ===============================
   TRANSITIONS
   =============================== */
.transition-all {
  transition: all 0.2s ease;
}

/* Boutons Add to Cart et Buy Now - Fond noir et texte blanc */
button.glitch-btn {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

button.glitch-btn .content {
  background-color: #000000 !important;
  color: #ffffff !important;
}

button.glitch-btn .anim {
  background-color: #000000 !important;
}

button.glitch-btn span {
  color: #ffffff !important;
}

/* Hover effect */
button.glitch-btn:hover:not(:disabled) {
  background-color: #1a1a1a !important;
}

/* États désactivés */
button.glitch-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}