/* ============================================
   SECTION TRANSFORMATION - PSYCHOLOGIE CLIENT
   Version Optimisée pour Conversion
   ============================================ */

   .transformation-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

/* ============================================
   HOOK PSYCHOLOGIQUE - En-tête
   ============================================ */

.psychology-hook {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-numero-1 {
    margin: 0 auto 30px;
    width: 140px;
    height: 140px;
    animation: floatBadge 4s ease-in-out infinite;
    filter: drop-shadow(0 15px 40px rgba(255, 87, 34, 0.4));
    transition: transform 0.4s;
}

.badge-numero-1:hover {
    transform: scale(1.15) rotate(5deg);
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.badge-img {
    width: 100%;
    height: 100%;
}

.hook-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hook-subtitle {
    font-size: 1.3rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hook-subtitle strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ============================================
   VIDÉO DÉMONSTRATION - Preuve Sociale
   ============================================ */

.video-proof-section {
    margin: 80px 0;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

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

.video-container-main {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.4s;
}

.video-placeholder:hover {
    background: rgba(255, 87, 34, 0.1);
}

.play-button-pulse {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    animation: pulsePlay 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7);
    transition: all 0.4s;
}

@keyframes pulsePlay {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7);
    }
    70% {
        box-shadow: 0 0 0 30px rgba(255, 87, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
    }
}

.video-placeholder:hover .play-button-pulse {
    transform: scale(1.15);
    background: #ff6a3d;
}

.play-button-pulse i {
    font-size: 2.5rem;
    color: white;
    margin-left: 5px;
}

.video-placeholder h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.video-placeholder p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.video-trust-badge {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
    animation: slideUp 1s ease-out 0.6s backwards;
    z-index: 10;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.video-trust-badge i {
    color: #28a745;
    font-size: 1.3rem;
}

/* ============================================
   GALERIE TRANSFORMATION AVANT/APRÈS
   ============================================ */

.transformation-gallery {
    margin: 120px 0 80px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.gallery-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #e65100);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.gallery-hook {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Grille des cartes */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.ba-card-pro {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.8s ease-out backwards;
}

.ba-card-pro:nth-child(1) { animation-delay: 0.1s; }
.ba-card-pro:nth-child(2) { animation-delay: 0.3s; }
.ba-card-pro:nth-child(3) { animation-delay: 0.5s; }

.ba-card-pro:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(255, 87, 34, 0.25);
}

/* Container interactif - CORRECTIONS FINALES */
.ba-container {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-y;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ba-image.before {
    z-index: 1;
}

.ba-image.after {
    z-index: 2;
    /* Position initiale à 50% - Les deux images visibles */
    clip-path: inset(0 50% 0 0);
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Overlay dégradé */
.ba-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

/* Tags AVANT/APRÈS */
.ba-tag {
    position: absolute;
    top: 20px;
    padding: 8px 20px;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-radius: 0 20px 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
    pointer-events: none;
}

.ba-tag.red {
    left: 0;
    background: #dc3545;
    color: white;
}

.ba-tag.green {
    right: 0;
    left: auto;
    border-radius: 20px 0 0 20px;
    background: #28a745;
    color: white;
}

/* Ligne de séparation draggable */
.ba-divider {
    position: absolute;
    left: 50%; /* Position initiale à 50% */
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    transform: translateX(-50%);
    cursor: ew-resize;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
}

/* Poignée ronde au centre */
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: transform 0.3s ease-out;
    animation: pulseHandle 2s ease-in-out infinite;
}

@keyframes pulseHandle {
    0%, 100% { 
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(255, 87, 34, 0.5);
    }
}

/* Instruction visuelle */
.ba-container::after {
    content: '← Glissez →';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s;
}

.ba-container:hover::after {
    opacity: 1;
}

/* Informations sous l'image */
.ba-info {
    padding: 25px;
    text-align: center;
}

.ba-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.emotion-text {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
    font-style: italic;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.time-badge i {
    color: var(--primary-color);
}

/* ============================================
   CTA FINAL - Urgence & Conversion
   ============================================ */

.transformation-cta {
    margin-top: 100px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

.cta-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    border: 3px solid var(--primary-color);
}

.cta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cta-content h3 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.cta-content p strong {
    color: var(--primary-color);
}

.cta-button-transform {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--primary-color), #e65100);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 30px;
}

.cta-button-transform:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 87, 34, 0.5);
}

.cta-button-transform i {
    transition: transform 0.3s;
}

.cta-button-transform:hover i {
    transform: translateX(5px);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-weight: 600;
}

.trust-item i {
    color: #28a745;
    font-size: 1.3rem;
}

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

@media (max-width: 768px) {
    .transformation-section {
        padding: 60px 0;
    }
    
    .psychology-hook {
        margin-bottom: 60px;
    }
    
    .badge-numero-1 {
        width: 120px;
        height: 120px;
    }
    
    .hook-title {
        font-size: 2rem;
    }
    
    .hook-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .video-proof-section {
        margin: 60px 0;
    }
    
    .play-button-pulse {
        width: 80px;
        height: 80px;
    }
    
    .play-button-pulse i {
        font-size: 2rem;
    }
    
    .video-placeholder h3 {
        font-size: 1.4rem;
        padding: 0 20px;
    }
    
    .video-placeholder p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .video-trust-badge {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .transformation-gallery {
        margin: 80px 0 60px;
    }
    
    .gallery-header {
        margin-bottom: 40px;
    }
    
    .gallery-title {
        font-size: 1.8rem;
        padding: 0 20px;
    }
    
    .gallery-hook {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .ba-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ba-container {
        height: 300px;
    }
    
    .ba-handle {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .transformation-cta {
        margin-top: 60px;
    }
    
    .cta-content {
        padding: 40px 20px;
        border-width: 2px;
    }
    
    .cta-content h3 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-button-transform {
        padding: 18px 40px;
        font-size: 1.1rem;
    }
    
    .trust-indicators {
        gap: 20px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ba-grid {
        grid-template-columns: 1fr;
    }
    
    .ba-container {
        height: 250px;
    }
    
    .hook-title {
        font-size: 1.6rem;
    }
    
    .cta-button-transform {
        width: 100%;
        justify-content: center;
    }
}