/* ═══════════════════════════════════════════════════════════
   CONFORT LINE — 3D & Premium CSS Effects
   Glassmorphism, 3D transforms, glow, noise, grain
   ═══════════════════════════════════════════════════════════ */

/* ── Cursor normal ── */

/* ── Scroll progress already handled by GSAP ── */

/* ── 3D perspective on sections ── */
.hero {
  perspective: 1200px;
}

/* ── Glassmorphism Cards ── */
.card {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(196, 30, 42, 0.2) !important;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 80px rgba(196, 30, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* ── Glow hover on reference cards ── */
.reference-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.reference-card:hover {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(196, 30, 42, 0.2),
    0 0 60px rgba(196, 30, 42, 0.08) !important;
}

/* ── Product cards 3D hover ── */
.product-card,
.shop-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

.product-card:hover,
.shop-card:hover {
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(196, 30, 42, 0.15) !important;
}

/* ── Gradient text animation ── */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__title .accent {
  background: linear-gradient(135deg, #C41E2A, #FF4D58, #C41E2A, #9B1620);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

/* ── Noise texture overlay ── */
.hero::after {
  content: '';
  position: absolute;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ── Section divider lines ── */
.section--dark + .section:not(.section--dark):not(.section--anthracite)::before,
.section--anthracite + .section:not(.section--dark):not(.section--anthracite)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 30, 42, 0.15), transparent);
}

/* ── Stat number glow ── */
.stat__number {
  text-shadow: 0 0 40px rgba(196, 30, 42, 0.15);
}

/* ── Button shine effect ── */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn--primary:hover::after {
  left: 150%;
}

/* ── Image hover zoom ── */
.reference-card__image img,
.product-card__image img,
.shop-card__image img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease !important;
}

.reference-card:hover .reference-card__image img {
  transform: scale(1.08) !important;
  filter: brightness(1.1) !important;
}

/* ── Floating badge pulse ── */
.hero [style*="Depuis 2010"] {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 42, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(196, 30, 42, 0); }
}

/* ── Timeline dots glow ── */
[style*="border-radius:50%;background:var(--red)"] {
  transition: box-shadow 0.4s ease;
}

/* ── Advantage cards hover ── */
.section--gray > .container > div > div[style*="padding:2rem"] {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.section--gray > .container > div > div[style*="padding:2rem"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: rgba(196, 30, 42, 0.15) !important;
}

/* ── Team member hover ── */
.section--dark [style*="text-align:center"] img {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.section--dark [style*="text-align:center"]:hover img {
  filter: grayscale(0%) !important;
  transform: scale(1.03);
}

/* ── Footer link underline animation ── */
.footer__link {
  position: relative;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.footer__link:hover::after {
  width: 100%;
}

/* ── Smooth image load ── */
img {
  opacity: 0;
  transition: opacity 0.6s ease;
}

img.loaded,
img[src] {
  opacity: 1;
}

/* Fix: ensure all images with src are visible */
img[src]:not([data-src]) {
  opacity: 1;
}

/* ── Scrollbar styling ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #E8323E;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--black);
}

/* ── Selection color ── */
::selection {
  background: rgba(196, 30, 42, 0.3);
  color: white;
}

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #custom-cursor, #cursor-dot {
    display: none !important;
  }
  body { cursor: auto !important; }
  a, button { cursor: pointer !important; }
}
