/* ==========================================================================
   REALISATIONS PAGE - KUCK
   Design premium niveau 300% avec glassmorphism, néon et animations
   ========================================================================== */

/* ===== Hero Section ===== */
.realisations-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #0f1419 100%);
  padding: 120px 0 80px;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(0, 240, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 45, 117, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(0, 240, 255, 0.08) 0%,
      transparent 70%
    );
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      2px 2px at 20% 30%,
      rgba(0, 240, 255, 0.3),
      transparent
    ),
    radial-gradient(2px 2px at 60% 70%, rgba(255, 45, 117, 0.3), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(0, 240, 255, 0.2), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255, 45, 117, 0.2), transparent);
  background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px,
    180px 180px;
  background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px;
  animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
  0% {
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px;
  }
  100% {
    background-position: 200px 200px, 240px 260px, 330px 470px, 270px 300px,
      350px 250px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 240, 255, 0.4),
    0 0 60px rgba(0, 240, 255, 0.2);
  letter-spacing: 2px;
}

.realisations-hero .divider {
  width: 200px;
  height: 4px;
  margin: 2rem auto 3.2rem auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #00f0ff 20%,
    #00e5ff 50%,
    #00d4ff 80%,
    transparent 100%
  );
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.4),
    0 0 30px rgba(0, 240, 255, 0.2);
  animation: realisationsDividerGlow 2s ease-in-out infinite alternate;
}

@keyframes realisationsDividerGlow {
  0% {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.4),
      0 0 30px rgba(0, 240, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.8), 0 0 25px rgba(0, 240, 255, 0.6),
      0 0 35px rgba(0, 240, 255, 0.4);
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  line-height: 1.6;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 150px;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3),
    0 0 40px rgba(0, 240, 255, 0.2);
}

.stat-number {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Tabs Section ===== */
.realisations-tabs-section {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #0a0e1a 0%, #0f1419 100%);
}

.digital-twin-showcase-section {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, #0a0e1a 0%, #0f1419 100%);
}

.digital-twin-showcase-header {
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.digital-twin-showcase-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

.digital-twin-showcase-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.digital-twin-viewer {
  max-width: 1200px;
  margin: 0 auto;
}

.digital-twin-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55), 0 0 26px rgba(0, 240, 255, 0.12);
}

.digital-twin-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@supports not (aspect-ratio: 16 / 9) {
  .digital-twin-frame {
    height: 0;
    padding-top: 56.25%;
  }

  .digital-twin-iframe {
    position: absolute;
    inset: 0;
  }
}

.digital-twin-actions {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: grid;
  gap: 1rem;
}

.digital-twin-switch {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.dt-switch-btn {
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dt-switch-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.35);
  color: var(--primary-color);
  box-shadow: 0 8px 18px rgba(0, 240, 255, 0.15);
}

.dt-switch-btn.active {
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.18),
    rgba(255, 45, 117, 0.12)
  );
  border-color: rgba(0, 240, 255, 0.55);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.25);
}

.tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 1000px;
  margin: 0 auto;
}

.tab-btn {
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-btn span {
  position: relative;
  z-index: 1;
}

.tab-btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--primary-color);
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
}

.tab-btn.active {
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.2),
    rgba(255, 45, 117, 0.2)
  );
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), 0 5px 20px rgba(0, 240, 255, 0.3),
    inset 0 0 20px rgba(0, 240, 255, 0.1);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.tab-btn.active::before {
  opacity: 0.1;
}

/* ===== Grid Section ===== */
.realisations-grid-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #0f1419 0%, #0a0e1a 100%);
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 2.5rem;
  margin: 2rem auto 0;
  max-width: 1400px;
  justify-items: center;
}

/* ===== Cards Premium ===== */
.realisation-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.realisation-card.no-hover {
  cursor: default;
}

.realisation-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.1),
    rgba(10, 14, 26, 0.2)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.realisation-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.3),
    inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.realisation-card.no-hover:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.realisation-card:hover::before {
  opacity: 1;
}

.realisation-card.no-hover:hover::before {
  opacity: 0;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #0a0e1a;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image-wrapper model-viewer.card-image {
  width: 100%;
  height: 100%;
  display: block;
}

.realisation-card:hover .card-image {
  transform: scale(1.1);
}

.realisation-card.no-hover:hover .card-image {
  transform: none;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.55),
    rgba(10, 14, 26, 0.85)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-decoration: none;
  color: inherit;
}

.interactive-model .card-overlay {
  top: auto;
  left: auto;
  right: 16px;
  bottom: 16px;
  width: auto;
  height: auto;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  opacity: 0;
  z-index: 3;
  display: inline-flex;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.55),
    rgba(10, 14, 26, 0.9)
  );
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 22px rgba(0, 240, 255, 0.12);
}

.interactive-model .card-overlay-content {
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.interactive-model:hover .card-overlay-content {
  transform: none;
}

.interactive-model .card-overlay-icon {
  font-size: 1.6rem;
  margin-bottom: 0;
}

.interactive-model .card-overlay-text {
  font-size: 0.9rem;
  margin: 0;
}

.realisation-card:hover .card-overlay {
  opacity: 1;
}

.realisation-card.no-hover:hover .card-overlay {
  opacity: 0;
}

.card-overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.realisation-card:hover .card-overlay-content {
  transform: translateY(0);
}

.card-overlay-icon {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.card-overlay-text {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.card-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: 1rem;
  font-family: "Orbitron", sans-serif;
}

.card-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.card-badges .card-badge {
  margin-bottom: 0;
}

.badge-web {
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.2),
    rgba(0, 240, 255, 0.1)
  );
  color: var(--primary-color);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.badge-digital {
  background: linear-gradient(
    135deg,
    rgba(255, 45, 117, 0.2),
    rgba(255, 45, 117, 0.1)
  );
  color: var(--secondary-color);
  border: 1px solid rgba(255, 45, 117, 0.3);
  box-shadow: 0 0 15px rgba(255, 45, 117, 0.3);
}

.badge-3d-viz {
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.2),
    rgba(0, 240, 255, 0.1)
  );
  color: var(--primary-color);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.badge-vr {
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.2),
    rgba(138, 43, 226, 0.1)
  );
  color: #a855f7;
  border: 1px solid rgba(138, 43, 226, 0.3);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.badge-ongoing {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2),
    rgba(34, 197, 94, 0.1)
  );
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.card-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.site-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(255, 45, 117, 0.22),
    rgba(255, 45, 117, 0.12)
  );
  border: 1px solid rgba(255, 45, 117, 0.45);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 15px rgba(255, 45, 117, 0.18);
}

.site-button:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 45, 117, 0.3),
    rgba(255, 45, 117, 0.18)
  );
  border-color: rgba(255, 45, 117, 0.7);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 45, 117, 0.35);
}

.site-button i {
  font-size: 1.05rem;
}

.card-tag {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.realisation-card:hover .card-tag {
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-color);
  border-color: rgba(0, 240, 255, 0.3);
}

.realisation-card.no-hover:hover .card-tag {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.5);
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 2rem;
  opacity: 0.3;
}

.empty-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.empty-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Animations de filtrage ===== */
.realisation-card.hidden {
  display: none;
}

.realisation-card.fade-out {
  opacity: 0;
  transform: scale(0.9);
}

.realisation-card.fade-in {
  animation: fadeInCard 0.5s ease forwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===== Matterport Button ===== */
.matterport-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.8rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.2),
    rgba(0, 240, 255, 0.1)
  );
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

.matterport-button:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.3),
    rgba(0, 240, 255, 0.2)
  );
  border-color: rgba(0, 240, 255, 0.6);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
}

.matterport-button i {
  font-size: 1.1rem;
}

/* Badge 3D Viz & AR */
.badge-3d-viz {
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.2),
    rgba(75, 0, 130, 0.1)
  );
  color: #a855f7;
  border: 1px solid rgba(138, 43, 226, 0.3);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .realisations-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .realisations-hero {
    padding: 175px 0 60px;
  }

  .digital-twin-showcase-section {
    padding: 50px 0 20px;
  }

  .realisations-grid-section {
    padding: 10px 0 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .realisations-hero .hero-title {
    line-height: 1.25;
    word-spacing: 0.12em;
  }

  .realisations-hero .hero-title {
    width: auto;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .digital-twin-frame {
    min-height: 220px;
  }

  .stat-item {
    padding: 1rem 1.5rem;
    min-width: 120px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .tabs-wrapper {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.75rem;
  }

  .tab-btn {
    width: 100%;
    padding: 1rem;
  }

  .realisations-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card-image-wrapper {
    height: 220px;
  }

  .matterport-button {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    width: 100%;
  }

  .card-content {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.2rem;
  }
}
