:root {
  /* Palette de couleurs inspirée de Figma */
  --primary-color: #5551ff;
  --primary-light: #7b78ff;
  --primary-dark: #4240cc;
  --secondary-color: #00c2ff;
  --accent-color: #ff7262;
  --success-color: #00d8a0;
  --warning-color: #ffbc44;
  --danger-color: #ff5678;
  --background-color: #fafafa;
  --card-background: #ffffff;
  --text-color: #111827;
  --text-secondary: #4b5563;
  --border-color: #e5e7eb;

  /* Styles système */
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --box-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s ease;
}

.container5731 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.intro5731 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.demo-section5731 {
  display: flex;
  flex-direction: row;
  margin-top: 3rem;
  gap: 40px;
  background: url(../assets/img/home/dot-bg.svg) center/cover;
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--box-shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.demo-section5731::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
}

.demo-section5731::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url("./assets/img/home/background-pattern.svg"); */
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .demo-section5731 {
    flex-direction: column-reverse;
  }
  .demo-section5731 {
    padding: 40px 20px;
  }
}

.lottie-container5731 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(230, 233, 238, 0.8);
  z-index: 1;
  transition: all 0.3s ease;
}

.lottie-container5731::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(85, 81, 255, 0.08) 0%,
    rgba(0, 194, 255, 0.04) 70%,
    transparent 100%
  );
  z-index: 0;
}

.lottie-container5731::after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-light) 100%
  );
  opacity: 0.1;
  filter: blur(30px);
  z-index: 0;
}

#lottie-animation5731 {
  width: 90%;
  height: 90%;
  margin: 0 auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
  z-index: 2;
  position: relative;
  transform-origin: center center;
  transition: transform 0.3s ease;
}

.lottie-container5731:hover #lottie-animation5731 {
  transform: scale(1.02);
}

.controls5731 {
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.control-panel5731 {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(250, 252, 254, 0.9) 100%
  );
  padding: 30px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 25px;
  border: 1px solid rgba(230, 233, 238, 0.8);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.control-panel5731::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  opacity: 0.07;
  filter: blur(25px);
  z-index: 0;
}

.control-group5731 {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.control-group5731:last-child {
  margin-bottom: 0;
}

.buttons-row5731 {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
}

.buttons-row5731 .control-btn5731 {
  flex: 1;
  white-space: nowrap;
  padding: 14px 10px;
  min-width: 90px;
  max-width: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  /* letter-spacing: 0.3px; */
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.control-btn5731 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--border-radius);
  background-color: var(--primary-light);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(85, 81, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.control-btn5731:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(85, 81, 255, 0.3);
}

.control-btn5731:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(85, 81, 255, 0.2);
}

.control-btn5731 i {
  font-size: 1rem;
}

.control-btn5731.disabled5731 {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #e0e0e0;
  color: #777;
  box-shadow: none;
}

.control-btn5731.disabled5731:hover {
  background-color: #e0e0e0;
  transform: none;
  box-shadow: none;
}

.speed-display5731 {
  text-align: center;
  font-weight: 600;
  margin-top: 8px;
  color: var(--primary-color);
  background-color: rgba(85, 81, 255, 0.05);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  margin: 0 auto;
}

.thumbnails-container5731 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}

.thumbnail-container5731 {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  border-radius: var(--border-radius);
  padding: 10px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(250, 252, 254, 0.5) 100%
  );
  border: 1px solid rgba(230, 233, 238, 0.2);
  overflow: hidden;
}

.thumbnail-container5731::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  padding: 2px;
  background: linear-gradient(
    135deg,
    transparent,
    transparent,
    transparent,
    rgba(85, 81, 255, 0.1)
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail-container5731:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.thumbnail-container5731:hover::before {
  opacity: 1;
}

.thumbnail-container5731.active5731 {
  background: linear-gradient(
    135deg,
    rgba(85, 81, 255, 0.08) 0%,
    rgba(0, 194, 255, 0.04) 100%
  );
  border: 1px solid rgba(85, 81, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(85, 81, 255, 0.15);
}

.thumbnail-container5731.active5731::before {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--secondary-color)
  );
  opacity: 1;
}

.thumbnail5731 {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
  position: relative;
}

.thumbnail-name5731 {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.thumbnail-container5731:hover .thumbnail-name5731 {
  color: var(--primary-color);
}

.thumbnail-container5731.active5731 .thumbnail-name5731 {
  color: var(--primary-color);
  font-weight: 600;
}

.thumbnail-error5731 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 86, 120, 0.1);
  color: var(--danger-color);
  font-size: 1.5rem;
  font-weight: bold;
}

.features5731 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature5731 {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.feature5731::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color);
}

.feature5731:nth-child(2)::before {
  background: var(--secondary-color);
}

.feature5731:nth-child(3)::before {
  background: var(--success-color);
}

.feature5731:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.feature5731 h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  margin-bottom: 16px;
}

.feature5731 h3 i {
  color: var(--accent-color);
}

.feature5731:nth-child(2) h3 i {
  color: var(--secondary-color);
}

.feature5731:nth-child(3) h3 i {
  color: var(--success-color);
}

.feature5731 p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .thumbnail5731 {
    width: 220px;
    height: 125px;
  }

  .buttons-row5731 {
    flex-wrap: wrap;
  }

  .thumbnails-container5731 {
    gap: 0px;
  }

  .control-panel5731 {
    padding: 1rem 10px;
  }
  .demo-section5731 {
    gap: 0px;
  }
  #lottie-animation5731 {
    scale: 1.5;
  }
}
