/* Section Use Cases - Design inspired by the reference image */

/* Container principal pour le système d'onglets */
.use-cases-tabs-container {
    background: #ffffff; /* aligner avec le fond FAQ */
    padding: 10px 0; /* réduit l'espace avec le hero */
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

/* Conteneur de largeur alignée avec le cadre */
.use-cases-tabs-container .tabs-navigation,
.use-cases-tabs-container .tabs-content,
.use-cases-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Assure que le trait s’aligne avec le conteneur */
.tabs-navigation { border-bottom-color: #e5e7eb; }
.use-cases-container { padding-left: 20px; padding-right: 20px; }

/* Effet de fond subtil */
.use-cases-tabs-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none; /* retirer le gradient pour fond blanc pur */
    pointer-events: none;
}

/* Navigation des onglets */
.tabs-navigation {
    max-width: 1200px;
    margin: 0 auto 24px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: nowrap;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Boutons d'onglets */
.tab-button {
    padding: 14px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
    position: relative;
    min-width: auto;
}

.tab-button:hover {
    color: #334155;
}

/* Soulignement animé comme indicateur actif */
.tab-button::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #fb7185 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    border-radius: 2px;
}

.tab-button.active {
    color: #0f172a;
}

.tab-button.active::after {
    transform: scaleX(1);
}

/* Contenu des onglets */
.tabs-content {
    position: relative;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.4s ease forwards;
}

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

/* Structure pour sections au scroll */
.use-case-scroll-section {
    position: relative;
    padding: 50px 0;
    background: #e5e7eb;
    overflow: hidden;
    border-bottom: 2px solid #d1d5db;
}

/* Séparateur visuel entre sections */
.use-case-scroll-section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #7c3aed 100%);
    border-radius: 2px;
}

/* Alternance de la disposition pour chaque section */
.use-case-scroll-section:nth-child(odd) .use-cases-main {
    flex-direction: row;
}

.use-case-scroll-section:nth-child(even) .use-cases-main {
    flex-direction: row-reverse;
}

/* Main Container */
.use-cases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Main Content Layout */
.use-cases-main {
    display: flex;
    gap: 60px;
    align-items: center;
    min-height: 550px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Effet de brillance subtil */
.use-cases-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.use-cases-main:hover::before {
    left: 100%;
}

/* Left Content */
.use-cases-left {
    flex: 1;
    max-width: 600px;
    padding-right: 20px;
    position: relative;
    z-index: 3;
}

.content-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    color: #3b82f6;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid #dbeafe;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.content-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

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

.main-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    color: #1e293b;
    margin-bottom: 28px;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.title-highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #7c3aed 100%);
    border-radius: 2px;
    opacity: 0.3;
}

.main-description {
    font-size: 19px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 36px;
    max-width: 520px;
    font-weight: 400;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-primary i {
    width: 16px;
    height: 16px;
}

.btn-secondary {
    padding: 12px 24px;
    background: #f8fafc;
    color: #3b82f6;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #eff6ff;
    border-color: #dbeafe;
    transform: translateY(-2px);
}

/* Right Content - Video Demo Area */
.use-cases-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
    max-width: 550px;
}

.video-demo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-placeholder {
    position: relative;
    width: 480px;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.video-placeholder:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

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

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-placeholder:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.video-placeholder:hover .video-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(4px);
}

.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.play-button i {
    width: 28px;
    height: 28px;
    color: #3b82f6;
    margin-left: 3px;
}

.video-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}


/* Main Image Container */
.image-container {
    position: relative;
    z-index: 8;
}

/* Story Preview (like Instagram story) */
.story-preview {
    width: 280px;
    height: 480px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

.story-preview:hover {
    transform: rotate(-3deg) scale(1.02);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.profile-info i {
    width: 16px;
    height: 16px;
}

.close-btn {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.close-btn i {
    width: 14px;
    height: 14px;
    color: white;
}

.story-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Simplified Background Elements */
.bg-element {
    position: absolute;
    border-radius: 20px;
    opacity: 0.1;
    transition: all 0.3s ease;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.green-element {
    width: 120px;
    height: 80px;
    top: 100px;
    left: 60px;
    z-index: 1;
}

.pink-element {
    width: 100px;
    height: 60px;
    bottom: 120px;
    left: 20px;
    z-index: 1;
}

.blue-element {
    width: 80px;
    height: 100px;
    top: 200px;
    right: 40px;
    z-index: 1;
}

.yellow-element {
    width: 60px;
    height: 80px;
    bottom: 200px;
    right: 120px;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Styles pour les onglets en mobile - barre horizontale scrollable avec soulignement */
    .use-cases-tabs-container {
        padding: 32px 0; /* réduit l'espace sur mobile */
        min-height: auto;
    }

    .tabs-navigation {
        gap: 16px;
        margin: 0 auto 24px auto;
        padding: 0 16px;
        max-width: 1200px;
        border-bottom: 1px solid #e5e7eb;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: center;
        scroll-snap-type: x mandatory; /* Snap horizontal pour onglets */
        position: relative;
        /* Retirer le masque de bords pour voir tous les onglets */
        -webkit-mask-image: none;
        mask-image: none;
        scroll-padding-left: 50%;
        scroll-padding-right: 50%;
    }
    .tabs-navigation::-webkit-scrollbar { display: none; }

    .tab-button {
        padding: 12px 12px; /* plus de surface tactile */
        font-size: 14px;
        border-radius: 0;
        min-width: auto;
        flex: 0 0 auto;
        scroll-snap-align: center; /* caler chaque bouton au centre */
        scroll-snap-stop: always;
        min-height: 44px; /* taille minimale cible tactile */
    }
    .tab-button::after {
        height: 2px;
    }

    .use-cases-main {
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
        padding: 30px 20px;
        margin: 0 10px;
        min-height: unset;
    }

    .use-cases-left {
        max-width: none;
        order: 1;
        padding-right: 0;
    }

    .use-cases-right {
        order: 2;
        height: auto;
        max-width: none;
    }

    .video-placeholder {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .main-title {
        font-size: clamp(22px, 6vw, 32px);
        line-height: 1.15;
        margin-bottom: 20px;
    }

    .main-description {
        font-size: clamp(14px, 4.2vw, 17px);
        line-height: 1.5;
        text-align: center;
        max-width: none;
    }

    .content-badge {
        margin: 0 auto 20px auto;
    }

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

@media (max-width: 480px) {
    /* Styles pour les onglets sur très petits écrans */
    .use-cases-tabs-container {
        padding: 24px 0; /* réduit l'espace sur très petits écrans */
        min-height: auto;
    }
    
    .tabs-navigation {
        gap: 8px; /* un peu d'espace entre les chips */
        margin-bottom: 30px;
        padding: 4px 8px; /* respirations latérales */
        margin: 0 10px 30px 10px;
        /* Rendre tous les onglets visibles sans masquage ni scroll horizontal */
        overflow-x: visible;
        flex-wrap: wrap;
        justify-content: center;
        -webkit-mask-image: none;
        mask-image: none;
        scroll-snap-type: none;
    }
    
    .tab-button {
        padding: 10px 14px; /* chip compact mais cliquable */
        font-size: 12px;
        border-radius: 20px;
        min-width: auto;
        min-height: 42px;
        /* Autoriser les intitulés longs à passer sur 2 lignes */
        white-space: normal;
        line-height: 1.2;
        flex: 0 1 auto;
    }
    
    .use-cases-main {
        gap: 30px;
        padding: 25px 15px;
        margin: 0 5px;
        min-height: unset;
    }
    
    .video-placeholder {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .use-cases-right {
        height: auto;
    }
    
    .main-title {
        font-size: clamp(20px, 7vw, 28px);
        line-height: 1.15;
    }
    
    .main-description {
        font-size: 15px;
    }

    .play-button {
        width: 52px;
        height: 52px;
    }
    
    .bg-element {
        transform: scale(0.6);
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.bg-element:hover {
    transform: scale(1.05) rotate(5deg);
    opacity: 0.9;
}