/* ========================================
   USE CASES SECTION - REALTOR REELS AI
   Design moderne et professionnel
======================================== */

/* Wrapper principal */
.use-cases-wrapper {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 60px 0;
}

/* Header de la section */
.use-cases-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.use-cases-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.use-cases-main-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111827;
}

.gradient-text {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.use-cases-description {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Container des onglets */
.use-cases-tabs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation des onglets */
.tabs-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.tab-button {
    position: relative;
    padding: 14px 28px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-icon {
    font-size: 18px;
    line-height: 1;
}

.tab-button:hover {
    background: #f9fafb;
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.tab-button.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #8b5cf6;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.tab-button.active:hover {
    transform: translateY(-2px);
}

/* Contenu des onglets */
.tabs-content {
    position: relative;
    min-height: 500px;
}

.tab-content {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container principal du contenu */
.use-cases-container {
    width: 100%;
}

.use-cases-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Contenu gauche */
.use-cases-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
    border-radius: 50px;
    width: fit-content;
    font-size: 14px;
    font-weight: 600;
    color: #7c3aed;
}

.content-badge i {
    width: 16px;
    height: 16px;
}

.main-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin: 0;
}

.title-highlight {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-description {
    font-size: 18px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

/* Badge de statistiques */
.stats-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    width: fit-content;
    margin-top: 8px;
}

.stats-text {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    font-style: italic;
}

/* Contenu droit - Vidéo démo */
.use-cases-right {
    position: relative;
}

.video-demo-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 2;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.play-button i {
    width: 32px;
    height: 32px;
    color: #8b5cf6;
    margin-left: 4px;
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
    background: #8b5cf6;
}

.video-placeholder:hover .play-button i {
    color: #ffffff;
}

.video-title {
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.video-title span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .use-cases-main-title {
        font-size: 38px;
    }

    .use-cases-main {
        gap: 40px;
        padding: 30px;
    }

    .main-title {
        font-size: 36px;
    }

    .main-description {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .use-cases-wrapper {
        padding: 40px 0;
    }

    .use-cases-header {
        margin-bottom: 40px;
    }

    .use-cases-subtitle {
        font-size: 14px;
    }

    .use-cases-main-title {
        font-size: 32px;
    }

    .use-cases-description {
        font-size: 16px;
    }

    /* Navigation mobile avec scroll horizontal */
    .tabs-navigation {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px 20px;
        margin-bottom: 30px;
        flex-wrap: nowrap;
    }

    .tabs-navigation::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        flex-shrink: 0;
        scroll-snap-align: center;
        padding: 12px 24px;
        font-size: 14px;
    }

    .tab-icon {
        font-size: 16px;
    }

    /* Layout mobile en une colonne */
    .use-cases-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
        border-radius: 16px;
    }

    .main-title {
        font-size: 28px;
    }

    .main-description {
        font-size: 15px;
    }

    .content-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .stats-badge {
        padding: 10px 16px;
    }

    .stats-text {
        font-size: 14px;
    }

    .video-demo-container {
        aspect-ratio: 16 / 11;
        border-radius: 12px;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button i {
        width: 24px;
        height: 24px;
    }

    .video-title span {
        font-size: 12px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .use-cases-main-title {
        font-size: 28px;
    }

    .main-title {
        font-size: 24px;
    }

    .main-description {
        font-size: 14px;
    }

    .use-cases-main {
        padding: 20px;
    }

    .tab-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ========================================
   ANIMATIONS ET TRANSITIONS
======================================== */

.animate-in {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de pulse pour attirer l'attention */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.tab-button.active {
    animation: pulse 2s infinite;
}

/* Désactiver l'animation pulse au hover */
.tab-button.active:hover {
    animation: none;
}

/* ========================================
   FEATURES CARDS - MODERN GRID LAYOUT
======================================== */

.use-cases-cards-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.use-cases-header {
  margin-bottom: 32px;
}

/* Unified Grid Layout */
.features-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(139, 92, 246, 0.15);
  border-color: #8b5cf6;
}

.feature-card__media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.feature-card__video,
.feature-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card__content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card__title {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}

.feature-card__description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Before/After Slider */
.before-after-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.before-after-slider__before,
.before-after-slider__after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.before-after-slider__after {
  clip-path: inset(0 50% 0 0);
}

.before-after-slider__handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #ffffff;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
}

.before-after-slider__handle::before,
.before-after-slider__handle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 24px;
  background: #8b5cf6;
}

.before-after-slider__handle::before {
  top: 0;
}

.before-after-slider__handle::after {
  bottom: 0;
}

.before-after-slider__button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #8b5cf6;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-cards__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .feature-card__media {
    height: 200px;
  }

  .feature-card__content {
    padding: 24px;
  }

  .feature-card__title {
    font-size: 17px;
  }

  .feature-card__description {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .use-cases-cards-container {
    padding: 30px 16px 40px;
  }

  .use-cases-header {
    margin-bottom: 24px;
  }

  .use-cases-main-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .features-cards__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    border-radius: 16px;
  }

  .feature-card__media {
    height: 200px;
  }

  .feature-card__content {
    padding: 20px;
    gap: 8px;
  }

  .feature-card__title {
    font-size: 16px;
  }

  .feature-card__description {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Before/After Slider optimisé pour mobile */
  .before-after-slider__handle {
    width: 3px;
  }

  .before-after-slider__button {
    width: 40px;
    height: 40px;
  }

  .before-after-slider__button svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .use-cases-cards-container {
    padding: 20px 12px 30px;
  }

  .use-cases-header {
    margin-bottom: 20px;
  }

  .use-cases-main-title {
    font-size: 24px;
  }

  .features-cards__grid {
    gap: 12px;
  }

  .feature-card {
    border-radius: 14px;
  }

  .feature-card__media {
    height: 180px;
  }

  .feature-card__content {
    padding: 16px;
  }

  .feature-card__title {
    font-size: 15px;
  }

  .feature-card__description {
    font-size: 12px;
  }

  .before-after-slider__button {
    width: 36px;
    height: 36px;
  }

  .before-after-slider__button svg {
    width: 18px;
    height: 18px;
  }
}

