/* === Structure principale === */
.se-showcase {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.se-showcase-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* === Liste de gauche === */
.se-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Chaque carte feature */
.se-showcase-item {
  display: flex;
  align-items: center; /* icône + texte parfaitement centrés */
  gap: 1rem;
  width: 100%;
  border: 1px solid var(--wp--preset--color--border, #e2e8f0);
  background: var(--wp--preset--color--surface, #f8fafc);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.se-showcase-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  align-self: flex-start; /* évite tout décalage vertical */
  margin-top: 2px;
}

.se-item-text {
  flex: 1;
  text-align: left;
}

.se-item-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wp--preset--color--foreground, #0f172a);
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.se-item-text p {
  font-size: 0.875rem;
  color: var(--wp--preset--color--foreground-muted, #64748b);
  line-height: 1.4;
  margin: 0;
}

.se-showcase-item:hover {
  border-color: var(--wp--preset--color--primary, #2f95e8);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.15);
}

.se-showcase-item.is-active {
  background: var(--wp--preset--color--primary, #2f95e8);
  border-color: var(--wp--preset--color--primary, #2f95e8);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.se-showcase-item.is-active h4,
.se-showcase-item.is-active {
  color: #fff;
}

/* === Contenu droite === */
.se-showcase-content {
  width: 100%;
  position: relative;
  margin-top: auto;
  margin-bottom: auto;  
}

.se-showcase-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.se-showcase-panel.is-active {
  display: block;
}

/* vidéo + ombre douce */
.se-video-wrapper {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08); /* shadow light mode */
}

.se-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 14px;
}

.se-description {
  margin-top: 1.25rem;
  color: var(--wp--preset--color--foreground, #0f172a);
  line-height: 1.7;
  font-size: 1rem;
  max-width: 800px;
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Dark mode (intégré Blockify-friendly) === */
[data-theme="dark"] .se-showcase-item {
  background: var(--wp--preset--color--surface-dark, #1e293b);
  border-color: var(--wp--preset--color--border-dark, #334155);
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .se-showcase-item.is-active {
  background: var(--wp--preset--color--primary, #3b82f6);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.35);
}

[data-theme="dark"] .se-item-text h4 {
  color: var(--wp--preset--color--foreground-dark, #f8fafc);
}

[data-theme="dark"] .se-item-text p {
  color: var(--wp--preset--color--foreground-muted-dark, #94a3b8);
}

/* Shadow vidéo adapté au dark mode */
[data-theme="dark"] .se-video-wrapper {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* === Responsive === */
@media (max-width: 980px) {
  .se-showcase-wrapper {
    grid-template-columns: 1fr;
  }
  .se-showcase-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
  }
  .se-showcase-item {
    min-width: 240px;
  }
  .se-item-text p {
    color: #fff;
  }
}
