/* ========================================
   CARROUSEL HERO MODERNE
   ======================================== */

.modern-hero-carousel {
    position: relative;
    height: 80vh;
    margin-top: 120px;
    margin-bottom: 2rem;
    overflow: hidden;
    font-family: 'Candara', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    max-width: 100vw;
}

/* ===== FINAL OVERRIDES FOR SLIDE 5 LAYOUT ===== */
.hero-slide[data-slide="4"] .hero-content { padding-right: 0 !important; gap: 0.75rem !important; }
.hero-slide[data-slide="4"] .hero-text-section { flex: 0 0 54% !important; max-width: 54% !important; }
.hero-slide[data-slide="4"] .hero-visual-section { flex: 0 0 46% !important; min-width: auto !important; }
.hero-slide[data-slide="4"] .wb-visual { gap: 8px !important; }
.hero-slide[data-slide="4"] .wb-portrait { flex: 0 0 260px !important; height: 400px !important; margin-right: 0 !important; }
.hero-slide[data-slide="4"] .hero-main-title { word-break: keep-all !important; white-space: normal !important; }
.hero-slide[data-slide="4"] .title-line { white-space: nowrap !important; }

/* ===============================
   Slide 5 (spacing-only overrides)
   Conserver l'ancienne disposition, améliorer espaces
   =============================== */
.hero-slide[data-slide="4"] .hero-content { display: flex !important; gap: 1rem !important; padding-right: 0.5rem !important; max-width: 1320px !important; }
.hero-slide[data-slide="4"] .hero-text-section { flex: 1 1 0 !important; max-width: 780px !important; }
.hero-slide[data-slide="4"] .hero-main-title { word-break: keep-all !important; overflow-wrap: normal !important; white-space: normal !important; font-size: 3.2rem !important; line-height: 1.06 !important; letter-spacing: 0.15px !important; }
.hero-slide[data-slide="4"] .hero-description { font-size: 1.1rem !important; }
.hero-slide[data-slide="4"] .title-line { white-space: nowrap !important; }

.hero-slide[data-slide="4"] .wb-visual { width: auto !important; max-width: 100% !important; gap: 8px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; }
.hero-slide[data-slide="4"] .wb-stack { gap: 16px !important; }
.hero-slide[data-slide="4"] .wb-widget { padding: 16px !important; border-radius: 18px !important; box-shadow: 0 16px 32px rgba(0,0,0,0.2) !important; }
.hero-slide[data-slide="4"] .wb-widget img { border-radius: 8px !important; }

.hero-slide[data-slide="4"] .wb-portrait { position: static !important; margin-right: 12px !important; border-radius: 24px !important; box-shadow: 0 24px 48px rgba(0,0,0,0.32) !important; flex: 0 0 280px !important; height: 420px !important; }

/* Relax the min-width constraint to free space for the title */
.hero-slide[data-slide="4"] .hero-visual-section { flex: 0 0 520px !important; min-width: 520px !important; }

@media (max-width: 1280px) {
  .hero-slide[data-slide="4"] .wb-portrait { margin-right: 48px !important; }
}

@media (max-width: 1100px) {
  .hero-slide[data-slide="4"] .wb-portrait { margin-right: 32px !important; }
}

@media (max-width: 980px) {
  .hero-slide[data-slide="4"] .hero-visual-section { min-width: auto !important; }
  .hero-slide[data-slide="4"] .wb-visual { flex-direction: column !important; align-items: center !important; gap: 18px !important; }
  .hero-slide[data-slide="4"] .wb-portrait { margin-right: 0 !important; height: 380px !important; width: 280px !important; }
  .hero-slide[data-slide="4"] .wb-stack { flex: 0 0 auto !important; }
}

@media (max-width: 768px) {
  .hero-slide[data-slide="4"] .wb-portrait { height: 320px !important; width: 240px !important; }
  .hero-slide[data-slide="4"] .wb-widget { padding: 14px !important; }
}

@media (max-width: 480px) {
  .hero-slide[data-slide="4"] .wb-portrait { height: 280px !important; width: 220px !important; }
  .hero-slide[data-slide="4"] .wb-visual { gap: 14px !important; }
}

/* Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-slide.prev {
    transform: translateX(-100%);
}

/* Background avec animation */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1) contrast(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.1) contrast(1.1);
    }
}

/* Contenu principal */
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

/* Section texte */
.hero-text-section {
    color: white;
    background: transparent;
    padding: 2rem;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
}

.hero-main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out forwards;
}

.title-line.delay-1 {
    animation-delay: 0.2s;
}

.title-line.delay-2 {
    animation-delay: 0.4s;
}

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

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: white;
    max-width: 500px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out forwards;
}

.hero-description.delay-3 {
    animation-delay: 0.6s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out forwards;
}

.hero-cta.delay-4 {
    animation-delay: 0.8s;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: none;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: none;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* Section visuelle - Téléphone */
.hero-visual-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    -webkit-mask: none !important;
    mask: none !important;
    clip-path: none !important;
    border: none;
    outline: none;
    filter: none;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    /* Afficher l'image en entier sans rognage */
    -webkit-clip-path: none !important;
    clip-path: none !important;
}

.app-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: headerShine 3s ease-in-out infinite;
}

@keyframes headerShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.app-header i {
    font-size: 1.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

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

.app-content {
    padding: 3rem 2rem;
    text-align: center;
    height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: featureIconRotate 4s linear infinite;
}

@keyframes featureIconRotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.app-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    animation: textBounce 2s ease-in-out infinite;
}

@keyframes textBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.app-content p {
    color: #666;
    font-size: 1rem;
    animation: textFade 3s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Animations pour la showcase Mobility */
.mobility-showcase {
    animation: showcaseFloat 8s ease-in-out infinite;
}

@keyframes showcaseFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.main-app-display {
    animation: mainAppPulse 6s ease-in-out infinite;
}

@keyframes mainAppPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    }
}

.secondary-app-display {
    animation: secondaryAppFloat 10s ease-in-out infinite;
}

@keyframes secondaryAppFloat {
    0%, 100% {
        transform: translateY(-50%) rotate(5deg);
    }
    25% {
        transform: translateY(-55%) rotate(3deg);
    }
    50% {
        transform: translateY(-45%) rotate(7deg);
    }
    75% {
        transform: translateY(-55%) rotate(2deg);
    }
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) scale(0.95);
        opacity: 0.7;
    }
}

.app-overlay {
    animation: overlayShine 8s ease-in-out infinite;
}

@keyframes overlayShine {
    0%, 100% {
        background: rgba(59, 130, 246, 0.9);
    }
    50% {
        background: rgba(59, 130, 246, 0.95);
    }
}

.mini-overlay {
    animation: miniOverlayPulse 4s ease-in-out infinite;
}

@keyframes miniOverlayPulse {
    0%, 100% {
        background: rgba(16, 185, 129, 0.9);
        transform: scale(1);
    }
    50% {
        background: rgba(16, 185, 129, 1);
        transform: scale(1.02);
    }
}

/* Animations pour le duo de téléphones */
.phone-duo-showcase {
    animation: duoShowcaseFloat 10s ease-in-out infinite;
    /* Éliminer tout halo ou contour blanc du conteneur */
    filter: drop-shadow(0 0 0 transparent) !important;
    background: transparent !important;
}

/* Règle spécifique pour éliminer TOUT contour blanc */
.phone-duo-showcase .phone-screen,
.phone-duo-showcase .phone-screen *,
.phone-duo-showcase .phone-screen img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 0 transparent) !important;
}

@keyframes duoShowcaseFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes phoneFloat1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

@keyframes phoneFloat2 {
    0%, 100% {
        transform: translateY(20px) rotate(0deg);
    }
    25% {
        transform: translateY(10px) rotate(-1deg);
    }
    50% {
        transform: translateY(15px) rotate(0deg);
    }
    75% {
        transform: translateY(5px) rotate(1deg);
    }
}

.app-badge {
    animation: badgeShine 8s ease-in-out infinite;
}

@keyframes badgeShine {
    0%, 100% {
        opacity: 0.95;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.screen-reflection {
    animation: reflectionShimmer 6s ease-in-out infinite;
}

@keyframes reflectionShimmer {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(1.2);
    }
}

@keyframes particleFloat1 {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-30px) scale(0.9);
        opacity: 0.9;
    }
}

@keyframes particleFloat2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.7;
    }
    33% {
        transform: translateY(-15px) translateX(10px) scale(1.3);
        opacity: 1;
    }
    66% {
        transform: translateY(-25px) translateX(-5px) scale(0.8);
        opacity: 0.5;
    }
}

@keyframes particleFloat3 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    40% {
        transform: translateY(-25px) rotate(180deg) scale(1.1);
        opacity: 1;
    }
    80% {
        transform: translateY(-10px) rotate(360deg) scale(0.9);
        opacity: 0.8;
    }
}

/* Navigation */
.carousel-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Indicateurs */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

.indicator::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.indicator.active::before {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Animations de texte */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide.active .animate-text {
    animation: slideInUp 0.8s ease-out forwards;
}

.hero-slide.active .animate-text.delay-1 {
    animation-delay: 0.2s;
}

.hero-slide.active .animate-text.delay-2 {
    animation-delay: 0.4s;
}

.hero-slide.active .animate-text.delay-3 {
    animation-delay: 0.6s;
}

.hero-slide.active .animate-text.delay-4 {
    animation-delay: 0.8s;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-hero-carousel {
        height: 75vh;
        margin-top: 90px;
        margin-bottom: 1rem;
        display: flex;
        align-items: flex-start;
        padding-bottom: 5rem;
        padding-top: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
        padding: 0.5rem;
        max-width: 100%;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }
    
    .hero-text-section {
        padding: 0.5rem !important;
        border-radius: 0 !important;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    
    .hero-main-title {
        font-size: 1.2rem;
        line-height: 1.0;
        margin-bottom: 0.3rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
        max-width: 90%;
        text-align: center;
        line-height: 1.2;
    }
    
    .hero-cta {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        width: auto;
        max-width: 240px;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
        padding: 12px;
    }
    
    .carousel-navigation {
        padding: 0 1rem;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
    }
    
    .hero-visual-section {
        order: -1;
        margin-bottom: 1rem;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }
    
    /* Responsive pour le duo de téléphones */
    .phone-duo-showcase {
        flex-direction: row !important;
        gap: 0.5rem !important;
        max-width: 280px !important;
        margin: 0 auto;
        transform: scale(0.8);
    }
    
    .phone-screen {
        width: 120px !important;
        height: 240px !important;
        margin: 0 auto;
        border-radius: 20px !important;
    }
    
    .phone-screen:nth-child(2) {
        transform: translateY(10px) !important;
    }
    
    .screen-reflection {
        border-radius: 18px 18px 0 0 !important;
    }
    
    /* Web image showcase responsive */
    .web-image-showcase {
        max-width: 280px !important;
        margin: 0 auto;
        transform: scale(0.8);
    }
    
    .web-image-container {
        width: 280px !important;
        height: 210px !important;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 480px) {
    .modern-hero-carousel {
        height: 70vh;
        padding: 0;
        padding-bottom: 5rem;
        padding-top: 0.5rem;
    }
    
    .hero-content {
        padding: 0.3rem;
        gap: 0.3rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .hero-main-title {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
        line-height: 1.0;
    }
    
    .hero-description {
        font-size: 0.65rem;
        max-width: 95%;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        max-width: 220px;
        margin-top: -0.3rem;
    }
    
    .phone-duo-showcase {
        max-width: 240px !important;
        transform: scale(0.7);
    }
    
    .web-image-showcase {
        max-width: 240px !important;
        transform: scale(0.7);
    }
}

/* Réduire les animations sur mobile pour les performances */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .phone-mockup,
    .feature-icon,
    .app-header::before {
        animation: none;
    }
    
    .title-line,
    .hero-description,
    .hero-cta,
    .animate-text {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ===============================
   Slide 5: WEB BUSINESS layout
   Portrait right + widgets left
   =============================== */
.hero-slide[data-slide="4"] .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-slide[data-slide="4"] .hero-text-section {
    max-width: 560px;
}

.hero-slide[data-slide="4"] .hero-visual-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wb-visual {
    position: relative;
    width: 640px;
    height: 440px;
}

.wb-portrait {
    position: absolute;
    right: 0;
    top: 0;
    width: 340px;
    height: 440px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    background: rgba(11,42,107,0.9);
}

.wb-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.wb-widgets {
    position: absolute;
    left: 0;
    top: 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wb-widget {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    backdrop-filter: blur(6px);
}

/* Responsive adjustments for slide 5 */
@media (max-width: 1024px) {
    .wb-visual {
        transform: scale(0.9);
        transform-origin: center right;
        width: 600px;
        height: 420px;
    }
    .wb-portrait { height: 420px; width: 320px; }
}

@media (max-width: 900px) {
    .hero-slide[data-slide="4"] .hero-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
    }
    .hero-slide[data-slide="4"] .hero-visual-section { order: 1; }
    .wb-visual { transform: scale(0.8); width: 560px; height: 390px; }
    .wb-portrait { height: 390px; width: 300px; }
}

@media (max-width: 768px) {
    .wb-visual { transform: scale(0.75); width: 520px; height: 360px; }
    .wb-portrait { height: 360px; width: 280px; }
    .wb-widgets { left: 50%; transform: translateX(-50%); top: 0; width: 260px; }
}

    .wb-portrait {
        position: absolute;
        right: 0;
        top: 0;
        width: 340px;
        height: 440px;
        border-radius: 30px;
        overflow: hidden;
        box-shadow: 0 25px 50px rgba(0,0,0,0.35);
        background: rgba(11,42,107,0.9);
    }

    .wb-portrait img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }

    .wb-widgets {
        position: absolute;
        left: 0;
        top: 20px;
        width: 300px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .wb-widget {
        width: 100%;
        padding: 12px;
        border-radius: 14px;
        background: rgba(255,255,255,0.96);
        box-shadow: 0 12px 28px rgba(0,0,0,0.18);
        backdrop-filter: blur(6px);
    }

    /* Responsive adjustments for slide 5 */
    @media (max-width: 1024px) {
        .wb-visual {
            transform: scale(0.9);
            transform-origin: center right;
            width: 600px;
            height: 420px;
        }
        .wb-portrait { height: 420px; width: 320px; }
    }

    @media (max-width: 900px) {
        .hero-slide[data-slide="4"] .hero-content {
            flex-direction: column;
            align-items: center;
            gap: 1.25rem;
            text-align: center;
        }
        .hero-slide[data-slide="4"] .hero-visual-section { order: 1; }
        .wb-visual { transform: scale(0.8); width: 560px; height: 390px; }
        .wb-portrait { height: 390px; width: 300px; }
    }

    @media (max-width: 768px) {
        .wb-visual { transform: scale(0.75); width: 520px; height: 360px; }
        .wb-portrait { height: 360px; width: 280px; }
        .wb-widgets { left: 50%; transform: translateX(-50%); top: 0; width: 260px; }
    }

    @media (max-width: 480px) {
        .wb-visual { transform: scale(0.68); width: 480px; height: 330px; }
        .wb-portrait { height: 330px; width: 260px; }
        .wb-widgets { width: 240px; gap: 12px; }
    }

    /* Réduire les animations sur mobile pour les performances */
