.ts-container {
  max-width: 1100px;
  margin: 50px auto;
  font-family: "Inter", sans-serif;
}

/* ---- Barre d'onglets ---- */
.ts-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 0;
  background: #f8f9ff;
  border-radius: 12px 12px 0 0;
  padding: 8px;
}

/* ---- Boutons ---- */
.ts-tab {
  flex: 1;
  padding: 18px 20px;
  cursor: pointer;
  border: none;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #888;
}

.ts-tab.active {
  background: #ffffff;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ts-tab:hover:not(.active) {
  background: #eeeeee;
  color: #666;
}

/* ---- Soulignement dégradé ---- */
.ts-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 0 0 6px 6px; 
  background: linear-gradient(90deg, #220660, #f91e5a, #5ce1e6);
  z-index: 10;
}

/* ---- Contenu ---- */
.ts-content {
  display: none;
  padding: 40px;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
  animation: fadeIn .4s ease;
  border-top: none;
}

.ts-content.active {
  display: block;
}

/* ---- Grille interne ---- */
.ts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.ts-col {
  flex: 1;
  min-width: 320px;
}

.ts-text h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
  color: #333;
}

.ts-text p {
  font-size: 17px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* ---- Images ---- */
.image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Vidéo ---- */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Bouton play personnalisé */
.custom-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5ce1e6, #f91e5a);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 10;
  pointer-events: auto;
}

.custom-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.custom-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 26px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 5px;
}

/* Message d'erreur vidéo */
.video-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(220, 53, 69, 0.9);
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  max-width: 80%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ---- Animation ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ts-container { margin: 30px 20px; }
  .ts-tabs { flex-direction: column; gap: 4px; padding: 6px; }
  .ts-tab { padding: 16px 20px; font-size: 15px; min-height: 50px; }
  .ts-tab.active::after { left: 0; right: 0; height: 4px; }
  .ts-content { padding: 30px 20px; }
  .ts-row { flex-direction: column; gap: 30px; }
  .ts-text h2 { font-size: 24px; }
  .ts-text p { font-size: 16px; }
  .custom-play { width: 60px; height: 60px; }
  .custom-play::before { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; }
}