/**
 * STARFLEET Carousel Widget Styles
 * LCARS/Star Trek themed carousel design
 */

/* ========================================
   Carousel Wrapper & Container
   ======================================== */
.starfleet-carousel-wrapper {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(10, 14, 27, 0.95) 0%, rgba(20, 28, 46, 0.9) 100%);
    border-radius: 20px;
    overflow: hidden;
}

.starfleet-carousel-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(81, 71, 155, 0.03) 2px,
            rgba(81, 71, 155, 0.03) 4px);
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   LCARS Header
   ======================================== */
.sf-carousel-header {
    display: flex;
    align-items: center;
    height: 50px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.sf-carousel-bar-left,
.sf-carousel-bar-right {
    height: 100%;
    width: 100px;
    background: linear-gradient(90deg, var(--lcars-blue, #51479B), var(--lcars-gold, #D2B887));
}

.sf-carousel-bar-left {
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
}

.sf-carousel-bar-right {
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.sf-carousel-title {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(81, 71, 155, 0.2);
    height: 100%;
}

.sf-label {
    font-family: 'Exo 2', 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--lcars-gold, #D2B887);
    text-transform: uppercase;
}

.sf-stardate {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--lcars-silver, #9B9B99);
    letter-spacing: 0.1em;
}

/* ========================================
   Carousel Container
   ======================================== */
.starfleet-carousel {
    position: relative;
    z-index: 2;
    padding: 0 3rem;
}

.starfleet-carousel.slick-slider {
    margin-bottom: 0;
}

.starfleet-carousel .slick-list {
    overflow: visible;
    padding: 0 20px;
}

.starfleet-carousel .slick-track {
    display: flex;
    align-items: stretch;
}

/* ========================================
   Carousel Item Card
   ======================================== */
.sf-carousel-item {
    position: relative;
    height: 400px;
    margin: 0 15px;
    border: 2px solid var(--lcars-blue, #51479B);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(20, 28, 46, 0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sf-carousel-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--lcars-gold, #D2B887);
    box-shadow: 0 20px 40px rgba(210, 184, 135, 0.3);
}

/* Card Background & Overlay */
.sf-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: all 0.6s ease;
}

.sf-carousel-item:hover .sf-card-bg {
    opacity: 0.5;
    transform: scale(1.1);
}

.sf-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(10, 14, 27, 0.3) 0%,
            rgba(10, 14, 27, 0.7) 50%,
            rgba(10, 14, 27, 0.95) 100%);
    z-index: 1;
}

/* Card Content */
.sf-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Status Indicator */
.sf-status-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.sf-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 0.5rem;
}

.sf-status-dot.active {
    background: var(--lcars-green, #117733);
    box-shadow: 0 0 10px var(--lcars-green, #117733);
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.sf-status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--lcars-green, #117733);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Card Title */
.sf-card-title {
    font-family: 'Exo 2', 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #00E5FF 0%, var(--lcars-gold, #D2B887) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Info */
.sf-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sf-info-item {
    display: flex;
    flex-direction: column;
}

.sf-info-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--lcars-gold, #D2B887);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.sf-info-value {
    font-size: 0.85rem;
    color: #E8EAF0;
    margin-top: 0.2rem;
}

/* Card Description */
.sf-card-description {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #94A3B8;
    margin-bottom: 1rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Card Statistics */
.sf-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(81, 71, 155, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(81, 71, 155, 0.3);
}

.sf-stat-item {
    text-align: center;
}

.sf-stat-number {
    display: block;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lcars-gold, #D2B887);
    text-shadow: 0 0 10px rgba(210, 184, 135, 0.5);
}

.sf-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
    display: block;
}

/* Card Button */
.sf-card-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, var(--lcars-blue, #51479B), rgba(81, 71, 155, 0.5));
    position: relative;
    z-index: 10;
    border: 1px solid var(--lcars-blue, #51479B);
    border-radius: 30px 0 30px 0;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: auto;
}

.sf-card-button:hover {
    background: linear-gradient(90deg, var(--lcars-gold, #D2B887), rgba(210, 184, 135, 0.5));
    border-color: var(--lcars-gold, #D2B887);
    transform: translateX(5px);
}

.sf-button-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.sf-card-button:hover .sf-button-arrow {
    transform: translateX(5px);
}

/* LCARS Corner Decorations */
.sf-card-lcars-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sf-carousel-item:hover .sf-card-lcars-corner {
    opacity: 1;
}

.sf-card-lcars-corner.top-left {
    top: 10px;
    left: 10px;
    border-top: 2px solid var(--lcars-gold, #D2B887);
    border-left: 2px solid var(--lcars-gold, #D2B887);
}

.sf-card-lcars-corner.top-right {
    top: 10px;
    right: 10px;
    border-top: 2px solid var(--lcars-gold, #D2B887);
    border-right: 2px solid var(--lcars-gold, #D2B887);
}

.sf-card-lcars-corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-bottom: 2px solid var(--lcars-gold, #D2B887);
    border-left: 2px solid var(--lcars-gold, #D2B887);
}

.sf-card-lcars-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid var(--lcars-gold, #D2B887);
    border-right: 2px solid var(--lcars-gold, #D2B887);
}

/* ========================================
   Navigation Arrows
   ======================================== */
.sf-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 3;
}

.sf-carousel-arrow {
    width: 50px;
    height: 50px;
    background: var(--lcars-gold, #D2B887);
    border: 2px solid var(--lcars-gold, #D2B887);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.sf-carousel-arrow:hover {
    background: var(--lcars-blue, #51479B);
    border-color: var(--lcars-blue, #51479B);
    transform: scale(1.1);
}

.sf-carousel-arrow svg {
    fill: #0A0E1B;
    width: 24px;
    height: 24px;
}

.sf-carousel-arrow:hover svg {
    fill: #FFFFFF;
}

.sf-carousel-arrow.sf-prev {
    clip-path: polygon(0 50%, 25% 0, 100% 0, 100% 100%, 25% 100%);
    padding-left: 5px;
}

.sf-carousel-arrow.sf-next {
    /* clip-path: polygon(0 0, 75% 0, 100% 50%, 75% 100%, 0 100%); */
    padding-right: 5px;
}

/* ========================================
   Navigation Dots (Slick)
   ======================================== */
.starfleet-carousel .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
    margin: 0;
    list-style: none;
}

.starfleet-carousel .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.starfleet-carousel .slick-dots button {
    width: 40px;
    height: 4px;
    padding: 0;
    background: rgba(81, 71, 155, 0.3);
    border: 1px solid rgba(81, 71, 155, 0.5);
    border-radius: 2px;
    font-size: 0;
    line-height: 0;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.starfleet-carousel .slick-dots li.slick-active button {
    background: var(--lcars-gold, #D2B887);
    border-color: var(--lcars-gold, #D2B887);
    box-shadow: 0 0 10px rgba(210, 184, 135, 0.5);
}

.starfleet-carousel .slick-dots button:hover {
    background: rgba(210, 184, 135, 0.5);
}

/* ========================================
   LCARS Footer
   ======================================== */
.sf-carousel-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(81, 71, 155, 0.3);
}

.sf-footer-indicators {
    display: flex;
    gap: 0.5rem;
}

.sf-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sf-indicator.active {
    background: var(--lcars-teal, #44AA99);
    box-shadow: 0 0 8px var(--lcars-teal, #44AA99);
    animation: indicator-blink 3s ease-in-out infinite;
}

@keyframes indicator-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .sf-carousel-item {
        height: 380px;
    }

    .sf-card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .starfleet-carousel-wrapper {
        padding: 1rem 0;
        margin: 1rem 0;
    }

    .starfleet-carousel {
        padding: 0 1rem;
    }

    .sf-carousel-header {
        height: 40px;
        margin-bottom: 1rem;
    }

    .sf-label {
        font-size: 0.9rem;
    }

    .sf-stardate {
        display: none;
    }

    /* Amélioration du carousel normal sur mobile */
    .sf-carousel-item {
        height: auto !important;
        min-height: 380px;
        margin: 0 5px;
        background: rgba(20, 28, 46, 0.98) !important;
    }

    /* Masquer le flou et les effets sur les cartes non centrales */
    .starfleet-carousel .slick-slide:not(.slick-current) .sf-carousel-item {
        opacity: 0.3 !important;
        filter: none !important;
        transform: scale(0.85) !important;
    }

    /* Carte centrale sans flou */
    .starfleet-carousel .slick-current .sf-carousel-item {
        opacity: 1 !important;
        filter: none !important;
        transform: scale(1) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    }

    /* Améliorer le contenu */
    .sf-carousel-item .sf-card-content {
        padding: 1.25rem !important;
    }

    .sf-carousel-item .sf-card-title {
        font-size: 1.1rem !important;
    }

    .sf-carousel-item .sf-card-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .sf-card-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Navigation mobile améliorée */
    .sf-carousel-nav {
        display: flex !important;
    }

    .sf-carousel-nav .sf-carousel-arrow {
        width: 40px !important;
        height: 40px !important;
        background: rgba(210, 184, 135, 0.9) !important;
    }
}

@media (max-width: 480px) {
    .sf-carousel-item {
        height: 320px;
    }

    .sf-card-title {
        font-size: 1rem;
    }

    .sf-card-description {
        -webkit-line-clamp: 2;
    }

    .sf-card-stats {
        display: none;
    }
}

/* ========================================
   Loading State
   ======================================== */
.starfleet-carousel.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.starfleet-carousel.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(81, 71, 155, 0.3);
    border-top-color: var(--lcars-gold, #D2B887);
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
}

@keyframes loading-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================
   3D CAROUSEL STYLES
   ======================================== */

/* 3D Container Setup */
.sf-carousel-3d-container {
    position: relative;
    width: 100%;
    height: 420px;
    perspective: 1500px;
    overflow: hidden;
    margin: 3rem 0;
    padding: 2rem 0;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.02) 0%, transparent 70%);
}

.sf-carousel-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-carousel-3d-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D Item Styling */
.sf-carousel-3d-item {
    position: absolute;
    width: 250px;
    height: 360px;
    left: 50%;
    top: 50%;
    transform-origin: center;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 2px solid var(--lcars-blue, #51479B);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(20, 28, 46, 0.95);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 3D Image Container */
.sf-3d-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    overflow: hidden;
    background: #000;
    border-radius: 18px 18px 0 0;
}

.sf-3d-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9) contrast(1.1);
}

.sf-carousel-3d-item:hover .sf-3d-image {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

/* 3D Reflection Effect */
.sf-3d-reflection {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sf-carousel-3d-item:hover .sf-3d-reflection {
    opacity: 1;
}

/* 3D Content Positioning */
.sf-carousel-3d-item .sf-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    padding: 1.5rem;
    background: linear-gradient(to bottom,
            rgba(10, 14, 27, 0.7) 0%,
            rgba(10, 14, 27, 0.95) 100%);
    border-radius: 0 0 18px 18px;
}

/* 3D Carousel Item Positions */
.sf-carousel-3d-item[data-position="0"] {
    transform: translate(-50%, -50%) translateZ(30px) scale(0.8);
    z-index: 5;
    opacity: 1;
}

.sf-carousel-3d-item[data-position="1"],
.sf-carousel-3d-item[data-position="-1"] {
    z-index: 4;
    opacity: 0.85;
}

.sf-carousel-3d-item[data-position="1"] {
    transform: translate(-50%, -50%) translateX(260px) translateZ(-20px) rotateY(-25deg) scale(0.7);
}

.sf-carousel-3d-item[data-position="-1"] {
    transform: translate(-50%, -50%) translateX(-260px) translateZ(-20px) rotateY(25deg) scale(0.7);
}

.sf-carousel-3d-item[data-position="2"],
.sf-carousel-3d-item[data-position="-2"] {
    z-index: 3;
    opacity: 0.6;
}

.sf-carousel-3d-item[data-position="2"] {
    transform: translate(-50%, -50%) translateX(450px) translateZ(-120px) rotateY(-45deg) scale(0.55);
}

.sf-carousel-3d-item[data-position="-2"] {
    transform: translate(-50%, -50%) translateX(-450px) translateZ(-120px) rotateY(45deg) scale(0.55);
}

.sf-carousel-3d-item[data-position="3"],
.sf-carousel-3d-item[data-position="-3"],
.sf-carousel-3d-item[data-position="4"],
.sf-carousel-3d-item[data-position="-4"] {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) translateZ(-300px) scale(0.5);
}

/* Active/Center Item Special Styling */
.sf-carousel-3d-item[data-position="0"] {
    border-color: var(--lcars-gold, #D2B887);
    box-shadow:
        0 0 60px rgba(210, 184, 135, 0.4),
        0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

/* Ensure buttons are always clickable */
.sf-carousel-3d-item .sf-card-button {
    pointer-events: auto;
    cursor: pointer;
}

.sf-carousel-3d-item[data-position="0"] .sf-3d-image {
    filter: brightness(1.1) contrast(1.15);
}

/* Coverflow Style Variant */
.starfleet-carousel-wrapper[data-carousel-type="coverflow"] .sf-carousel-3d-item[data-position="0"] {
    transform: translate(-50%, -50%) translateZ(20px) scale(0.8);
}

.starfleet-carousel-wrapper[data-carousel-type="coverflow"] .sf-carousel-3d-item[data-position="1"] {
    transform: translate(-50%, -50%) translateX(280px) translateZ(-50px) rotateY(-45deg) scale(0.8);
}

.starfleet-carousel-wrapper[data-carousel-type="coverflow"] .sf-carousel-3d-item[data-position="-1"] {
    transform: translate(-50%, -50%) translateX(-280px) translateZ(-50px) rotateY(45deg) scale(0.8);
}

.starfleet-carousel-wrapper[data-carousel-type="coverflow"] .sf-carousel-3d-item[data-position="2"] {
    transform: translate(-50%, -50%) translateX(480px) translateZ(-150px) rotateY(-60deg) scale(0.65);
}

.starfleet-carousel-wrapper[data-carousel-type="coverflow"] .sf-carousel-3d-item[data-position="-2"] {
    transform: translate(-50%, -50%) translateX(-480px) translateZ(-150px) rotateY(60deg) scale(0.65);
}

/* 3D Navigation Arrows */
.starfleet-carousel-wrapper[data-carousel-type="3d"] .sf-carousel-arrow,
.starfleet-carousel-wrapper[data-carousel-type="coverflow"] .sf-carousel-arrow {
    width: 60px;
    height: 60px;
    background: rgba(81, 71, 155, 0.9);
    border: 3px solid var(--lcars-gold, #D2B887);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.starfleet-carousel-wrapper[data-carousel-type="3d"] .sf-carousel-arrow:hover,
.starfleet-carousel-wrapper[data-carousel-type="coverflow"] .sf-carousel-arrow:hover {
    background: var(--lcars-gold, #D2B887);
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(210, 184, 135, 0.6);
}

/* 3D Dots Navigation */
.starfleet-carousel-wrapper[data-carousel-type="3d"] .sf-carousel-dots,
.starfleet-carousel-wrapper[data-carousel-type="coverflow"] .sf-carousel-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.sf-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(81, 71, 155, 0.3);
    border: 2px solid rgba(81, 71, 155, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sf-carousel-dot.active {
    background: var(--lcars-gold, #D2B887);
    border-color: var(--lcars-gold, #D2B887);
    box-shadow: 0 0 15px rgba(210, 184, 135, 0.6);
    transform: scale(1.3);
}

/* Holographic Overlay Effect for 3D */
.sf-carousel-3d-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(0, 229, 255, 0.05) 25%,
            transparent 50%,
            rgba(210, 184, 135, 0.05) 75%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.sf-carousel-3d-item:hover::before {
    opacity: 1;
    animation: holographic-scan 2s linear infinite;
}

@keyframes holographic-scan {
    0% {
        background-position: -200% -200%;
    }

    100% {
        background-position: 200% 200%;
    }
}

/* Enhanced Card Stats for 3D View */
.sf-carousel-3d-item .sf-card-stats {
    background: rgba(81, 71, 155, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(210, 184, 135, 0.3);
}

.sf-carousel-3d-item[data-position="0"] .sf-card-stats {
    background: rgba(210, 184, 135, 0.1);
    border-color: rgba(210, 184, 135, 0.5);
}

/* 3D Item Loading Animation */
@keyframes carousel-3d-item-intro {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateZ(-1000px) rotateY(90deg);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateZ(0) rotateY(0);
    }
}

.sf-carousel-3d-item.intro-animation {
    animation: carousel-3d-item-intro 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive 3D Carousel */
@media (max-width: 1400px) {
    .sf-carousel-3d-item {
        width: 260px;
        height: 380px;
    }

    .sf-carousel-3d-item[data-position="1"] {
        transform: translate(-50%, -50%) translateX(280px) translateZ(0) rotateY(-25deg) scale(0.85);
    }

    .sf-carousel-3d-item[data-position="-1"] {
        transform: translate(-50%, -50%) translateX(-280px) translateZ(0) rotateY(25deg) scale(0.85);
    }

    .sf-carousel-3d-item[data-position="2"] {
        transform: translate(-50%, -50%) translateX(480px) translateZ(-100px) rotateY(-45deg) scale(0.7);
    }

    .sf-carousel-3d-item[data-position="-2"] {
        transform: translate(-50%, -50%) translateX(-480px) translateZ(-100px) rotateY(45deg) scale(0.7);
    }
}

@media (max-width: 992px) {
    .sf-carousel-3d-container {
        height: 500px;
    }

    .sf-carousel-3d-item {
        width: 250px;
        height: 380px;
    }

    .sf-carousel-3d-item[data-position="1"],
    .sf-carousel-3d-item[data-position="-1"] {
        opacity: 0.8;
    }

    .sf-carousel-3d-item[data-position="2"],
    .sf-carousel-3d-item[data-position="-2"] {
        display: none;
    }
}

@media (max-width: 768px) {
    .sf-carousel-3d-container {
        height: 450px;
    }

    .sf-carousel-3d-item {
        width: 280px;
        height: 400px;
    }

    .sf-carousel-3d-item[data-position="1"] {
        transform: translate(-50%, -50%) translateX(150px) translateZ(50px) rotateY(-15deg) scale(0.85);
        opacity: 0.5;
    }

    .sf-carousel-3d-item[data-position="-1"] {
        transform: translate(-50%, -50%) translateX(-150px) translateZ(50px) rotateY(15deg) scale(0.85);
        opacity: 0.5;
    }
}

/* ========================================
   NOUVELLES ANIMATIONS AMELIOREES - 2025
   ======================================== */

/* Effet de particules flottantes */
.starfleet-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(0, 229, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(210, 184, 135, 0.2), transparent),
        radial-gradient(1px 1px at 50px 90px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 229, 255, 0.2), transparent),
        radial-gradient(2px 2px at 80px 10px, rgba(210, 184, 135, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: floating-particles 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floating-particles {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-200px);
    }
}

/* Amélioration de l'effet holographique */
.sf-carousel-3d-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            transparent,
            rgba(0, 229, 255, 0.1),
            transparent,
            rgba(210, 184, 135, 0.1),
            transparent);
    background-size: 200% 200%;
    animation: holographic-border 3s linear infinite;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.sf-carousel-3d-item:hover::after {
    opacity: 1;
}

@keyframes holographic-border {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 200%;
    }
}

/* Effet de données en streaming */
.sf-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 3px,
            rgba(0, 229, 255, 0.03) 3px,
            rgba(0, 229, 255, 0.03) 6px);
    animation: data-stream 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sf-carousel-item:hover .sf-card-content::before,
.sf-carousel-3d-item:hover .sf-card-content::before {
    opacity: 1;
}

@keyframes data-stream {
    0% {
        transform: translateX(-6px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Amélioration des boutons avec effet warp */
.sf-card-button {
    position: relative;
    overflow: hidden;
}

.sf-card-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: translateY(-50%);
    transition: left 0.5s ease;
}

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

/* Effet de scanner pour les statistiques */
.sf-card-stats {
    position: relative;
}

.sf-card-stats::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--lcars-teal, #44AA99),
            transparent);
    opacity: 0;
    animation: scanner-line 3s ease-in-out infinite;
}

.sf-carousel-item:hover .sf-card-stats::after,
.sf-carousel-3d-item:hover .sf-card-stats::after {
    opacity: 1;
}

@keyframes scanner-line {

    0%,
    100% {
        top: 0;
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    50% {
        top: 100%;
    }
}

/* Amélioration de l'indicateur de statut avec pulsation */
.sf-status-dot.active {
    position: relative;
}

.sf-status-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--lcars-green, #117733);
    transform: translate(-50%, -50%);
    animation: status-ripple 2s ease-out infinite;
}

@keyframes status-ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Effet de transition quantique pour le changement de slides */
.sf-carousel-3d-item.quantum-transition {
    animation: quantum-shift 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes quantum-shift {
    0% {
        opacity: 1;
        filter: brightness(1) blur(0);
    }

    50% {
        opacity: 0.3;
        filter: brightness(2) blur(3px);
        transform: translate(-50%, -50%) scale(0.95);
    }

    100% {
        opacity: 1;
        filter: brightness(1) blur(0);
    }
}

/* Amélioration des flèches de navigation avec effet énergétique */
.sf-carousel-arrow {
    position: relative;
    overflow: hidden;
}

.sf-carousel-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.sf-carousel-arrow:hover::after {
    width: 100%;
    height: 100%;
}

/* Effet de distorsion spatiale pour le conteneur 3D */
.sf-carousel-3d-container.warp-effect {
    animation: space-warp 0.8s ease-out;
}

@keyframes space-warp {
    0% {
        transform: perspective(1200px) rotateX(0) scale(1);
    }

    50% {
        transform: perspective(1200px) rotateX(5deg) scale(0.98);
    }

    100% {
        transform: perspective(1200px) rotateX(0) scale(1);
    }
}

/* Amélioration de la profondeur 3D avec ombres dynamiques */
.sf-carousel-3d-item[data-position="0"] {
    box-shadow:
        0 0 60px rgba(210, 184, 135, 0.4),
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 229, 255, 0.05);
}

.sf-carousel-3d-item[data-position="1"],
.sf-carousel-3d-item[data-position="-1"] {
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(81, 71, 155, 0.05);
}

/* Indicateurs de navigation améliorés */
.sf-carousel-dots {
    position: relative;
}

.sf-carousel-dots::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--lcars-blue, #51479B),
            transparent);
    opacity: 0.5;
}

.sf-carousel-dot {
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sf-carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--lcars-gold, #D2B887);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.sf-carousel-dot:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
}

.sf-carousel-dot.active::before {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.5;
    }
}

/* ========================================
   OPTIONS DE PERSONNALISATION
   ======================================== */

/* Désactiver les particules */
.starfleet-carousel-wrapper.no-particles::after {
    display: none;
}

/* Désactiver les effets holographiques */
.starfleet-carousel-wrapper.no-holographic .sf-carousel-3d-item::after,
.starfleet-carousel-wrapper.no-holographic .sf-carousel-3d-item::before,
.starfleet-carousel-wrapper.no-holographic .sf-carousel-item:hover .sf-card-lcars-corner {
    display: none !important;
}

/* Intensité d'animation : Subtle */
.starfleet-carousel-wrapper.animation-subtle .sf-carousel-item,
.starfleet-carousel-wrapper.animation-subtle .sf-carousel-3d-item {
    transition-duration: 0.8s !important;
}

.starfleet-carousel-wrapper.animation-subtle .sf-carousel-item:hover,
.starfleet-carousel-wrapper.animation-subtle .sf-carousel-3d-item:hover {
    transform: translateY(-5px) scale(1.01);
}

.starfleet-carousel-wrapper.animation-subtle::after {
    animation-duration: 30s;
}

/* Intensité d'animation : Normal (par défaut) */
.starfleet-carousel-wrapper.animation-normal {
    /* Utilise les valeurs par défaut */
}

/* Intensité d'animation : Intense */
.starfleet-carousel-wrapper.animation-intense .sf-carousel-item,
.starfleet-carousel-wrapper.animation-intense .sf-carousel-3d-item {
    transition-duration: 0.3s !important;
}

.starfleet-carousel-wrapper.animation-intense .sf-carousel-item:hover,
.starfleet-carousel-wrapper.animation-intense .sf-carousel-3d-item[data-position="0"] {
    transform: translate(-50%, -50%) translateZ(30px) scale(0.82);
    box-shadow:
        0 0 80px rgba(210, 184, 135, 0.6),
        0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

.starfleet-carousel-wrapper.animation-intense::after {
    animation-duration: 10s;
}

.starfleet-carousel-wrapper.animation-intense .sf-status-dot.active::after {
    animation-duration: 1s;
}

/* Intensité d'animation : Maximum Warp */
.starfleet-carousel-wrapper.animation-maximum .sf-carousel-item,
.starfleet-carousel-wrapper.animation-maximum .sf-carousel-3d-item {
    transition-duration: 0.2s !important;
}

.starfleet-carousel-wrapper.animation-maximum .sf-carousel-item:hover {
    transform: translateY(-20px) scale(1.08) rotateY(5deg);
    box-shadow:
        0 0 100px rgba(0, 229, 255, 0.8),
        0 0 200px rgba(210, 184, 135, 0.4),
        0 50px 100px -30px rgba(0, 0, 0, 0.8);
}

.starfleet-carousel-wrapper.animation-maximum .sf-carousel-3d-item[data-position="0"] {
    transform: translate(-50%, -50%) translateZ(40px) scale(0.85) !important;
    box-shadow:
        0 0 120px rgba(0, 229, 255, 0.8),
        0 0 240px rgba(210, 184, 135, 0.5),
        0 60px 120px -40px rgba(0, 0, 0, 0.9);
}

.starfleet-carousel-wrapper.animation-maximum::after {
    animation-duration: 5s;
    opacity: 1;
}

.starfleet-carousel-wrapper.animation-maximum .sf-card-content::before {
    animation-duration: 0.5s;
}

.starfleet-carousel-wrapper.animation-maximum .sf-status-dot.active::after {
    animation-duration: 0.5s;
}

.starfleet-carousel-wrapper.animation-maximum .sf-carousel-3d-item::after {
    animation-duration: 1s;
}

/* Effet de vitesse de distorsion pour Maximum Warp */
.starfleet-carousel-wrapper.animation-maximum::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 229, 255, 0.1) 70%);
    transform: translate(-50%, -50%);
    animation: warp-distortion 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes warp-distortion {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive pour les nouvelles fonctionnalités */
@media (max-width: 768px) {

    .starfleet-carousel-wrapper.animation-intense .sf-carousel-item:hover,
    .starfleet-carousel-wrapper.animation-maximum .sf-carousel-item:hover {
        transform: translateY(-10px) scale(1.02);
    }

    .starfleet-carousel-wrapper::after {
        animation-duration: 40s;
    }
}

/* ========================================
   OPTIMISATIONS MOBILES AMELIOREES - Décembre 2024
   Affichage d'une seule carte centrale sans flou
   ======================================== */
@media (max-width: 768px) {

    /* Masquer complètement les cartes latérales */
    .sf-carousel-3d-item[data-position="1"],
    .sf-carousel-3d-item[data-position="-1"],
    .sf-carousel-3d-item[data-position="2"],
    .sf-carousel-3d-item[data-position="-2"],
    .sf-carousel-3d-item[data-position="3"],
    .sf-carousel-3d-item[data-position="-3"] {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Centrer et agrandir la carte active */
    .sf-carousel-3d-container {
        height: auto !important;
        min-height: 450px;
        padding: 1rem 0;
        perspective: none !important;
    }

    .sf-carousel-3d {
        perspective: none !important;
    }

    .sf-carousel-3d-item[data-position="0"] {
        position: relative !important;
        transform: none !important;
        width: 90% !important;
        max-width: 340px !important;
        height: auto !important;
        min-height: 420px !important;
        margin: 0 auto !important;
        left: auto !important;
        top: auto !important;
        opacity: 1 !important;
        scale: 1 !important;
        z-index: 10 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    }

    /* Supprimer tous les effets de flou et rotations 3D */
    .sf-carousel-3d-item {
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform-style: flat !important;
        rotateY: 0deg !important;
        rotateX: 0deg !important;
        translateZ: 0 !important;
    }

    /* Améliorer la lisibilité du contenu */
    .sf-carousel-3d-item .sf-card-content {
        padding: 1.25rem !important;
        height: auto !important;
        position: relative !important;
        background: rgba(10, 14, 27, 0.98) !important;
    }

    .sf-carousel-3d-item .sf-card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .sf-carousel-3d-item .sf-card-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        -webkit-line-clamp: 4 !important;
    }

    .sf-carousel-3d-item .sf-info-value {
        font-size: 0.85rem !important;
    }

    .sf-carousel-3d-item .sf-info-label {
        font-size: 0.7rem !important;
    }

    /* Optimiser l'image sur mobile */
    .sf-3d-image-container {
        height: 180px !important;
    }

    .sf-3d-image {
        filter: none !important;
        opacity: 1 !important;
    }

    /* Navigation mobile améliorée */
    .sf-carousel-arrow {
        width: 44px !important;
        height: 44px !important;
        background: var(--lcars-gold, #D2B887) !important;
        opacity: 0.95 !important;
        z-index: 20 !important;
    }

    .sf-carousel-arrow.sf-prev {
        left: 10px !important;
    }

    .sf-carousel-arrow.sf-next {
        right: 10px !important;
    }

    /* Dots de navigation plus visibles */
    .sf-carousel-dots {
        position: relative !important;
        bottom: auto !important;
        margin-top: 1.5rem !important;
        padding: 0.5rem !important;
        background: rgba(10, 14, 27, 0.8) !important;
        border-radius: 20px !important;
    }

    .sf-carousel-dot {
        width: 10px !important;
        height: 10px !important;
        margin: 0 0.25rem !important;
    }

    .sf-carousel-dot.active {
        transform: scale(1.4) !important;
        background: var(--lcars-gold, #D2B887) !important;
    }

    /* Supprimer les animations complexes sur mobile */
    .sf-carousel-3d-item::before,
    .sf-carousel-3d-item::after,
    .sf-3d-reflection,
    .sf-card-content::before {
        display: none !important;
    }

    /* Statistiques optimisées pour mobile */
    .sf-carousel-3d-item .sf-card-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0.5rem !important;
        margin-bottom: 1rem !important;
        background: rgba(81, 71, 155, 0.08) !important;
    }

    .sf-stat-number {
        font-size: 1rem !important;
    }

    .sf-stat-label {
        font-size: 0.55rem !important;
    }

    /* Bouton d'action mobile */
    .sf-carousel-3d-item .sf-card-button {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        text-align: center !important;
        border-radius: 8px !important;
        margin-top: 1rem !important;
    }

    /* Header du carousel mobile */
    .sf-carousel-header {
        padding: 0 1rem !important;
        height: 45px !important;
    }

    .sf-carousel-bar-left,
    .sf-carousel-bar-right {
        width: 60px !important;
    }

    .sf-carousel-title {
        padding: 0 1rem !important;
    }

    .sf-label {
        font-size: 0.95rem !important;
    }

    /* Désactiver les particules et effets lourds */
    .starfleet-carousel-wrapper::after,
    .starfleet-carousel-wrapper::before {
        display: none !important;
    }

    /* Container wrapper mobile */
    .starfleet-carousel-wrapper {
        background: linear-gradient(135deg, rgba(10, 14, 27, 0.98) 0%, rgba(20, 28, 46, 0.95) 100%) !important;
        padding: 1rem 0 !important;
        margin: 1rem 0 !important;
    }
}

/* Très petits écrans (max-width: 375px) */
@media (max-width: 375px) {
    .sf-carousel-3d-item[data-position="0"] {
        width: 95% !important;
        max-width: 320px !important;
        min-height: 400px !important;
    }

    .sf-3d-image-container {
        height: 160px !important;
    }

    .sf-carousel-3d-item .sf-card-content {
        padding: 1rem !important;
    }

    .sf-carousel-3d-item .sf-card-title {
        font-size: 1rem !important;
    }

    .sf-carousel-3d-item .sf-card-description {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 3 !important;
    }

    .sf-carousel-3d-item .sf-card-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .sf-carousel-arrow {
        width: 40px !important;
        height: 40px !important;
    }

    .sf-carousel-arrow svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* ========================================
   OPTIMISATIONS MOBILES AMELIOREES - Janvier 2025
   Corrections pour le carousel 3D sur mobile
   ======================================== */
@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    /* Amélioration du header du carousel */
    .sf-carousel-header {
        display: none !important;
        /* Masquer le header LCARS sur mobile pour gagner de l'espace */
    }

    /* Container principal amélioré */
    .sf-carousel-3d-container {
        height: auto !important;
        min-height: 480px !important;
        padding: 0.5rem 0 !important;
        margin: 1rem 0 !important;
    }

    /* Carte centrale optimisée */
    .sf-carousel-3d-item[data-position="0"] {
        width: calc(100% - 2rem) !important;
        max-width: 350px !important;
        min-height: 440px !important;
        margin: 0 auto !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    }

    /* Image optimisée */
    .sf-3d-image-container {
        height: 200px !important;
        border-radius: 14px 14px 0 0 !important;
        position: relative !important;
    }

    .sf-3d-image {
        object-fit: cover !important;
        filter: brightness(1.05) contrast(1.1) !important;
    }

    /* Contenu de la carte amélioré */
    .sf-carousel-3d-item .sf-card-content {
        padding: 1.25rem !important;
        background: linear-gradient(to bottom,
                rgba(10, 14, 27, 0.95) 0%,
                rgba(10, 14, 27, 1) 100%) !important;
    }

    /* Titre plus lisible */
    .sf-carousel-3d-item .sf-card-title {
        font-size: 1.15rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        background: linear-gradient(135deg, var(--lcars-gold, #D2B887) 0%, #FFFFFF 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

    /* Description optimisée */
    .sf-carousel-3d-item .sf-card-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        color: #B8C4D0 !important;
        -webkit-line-clamp: 4 !important;
        margin-bottom: 1rem !important;
    }

    /* Status indicator plus visible */
    .sf-carousel-3d-item .sf-status-indicator {
        margin-bottom: 0.75rem !important;
    }

    .sf-carousel-3d-item .sf-status-text {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
    }

    /* Bouton d'action amélioré */
    .sf-carousel-3d-item .sf-card-button {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        background: linear-gradient(90deg, var(--lcars-gold, #D2B887), rgba(210, 184, 135, 0.7)) !important;
        border: none !important;
        border-radius: 12px !important;
        color: #0A0E1B !important;
        text-align: center !important;
        box-shadow: 0 4px 12px rgba(210, 184, 135, 0.3) !important;
        transition: all 0.3s ease !important;
    }

    .sf-carousel-3d-item .sf-card-button:active {
        transform: scale(0.98) !important;
        box-shadow: 0 2px 8px rgba(210, 184, 135, 0.2) !important;
    }

    /* Navigation arrows améliorées */
    .sf-carousel-nav {
        padding: 0 !important;
        pointer-events: none !important;
        top: 130px !important;
    }

    .sf-carousel-arrow {
        position: fixed !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 48px !important;
        height: 48px !important;
        background: rgba(210, 184, 135, 0.95) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 2px solid var(--lcars-gold, #D2B887) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        pointer-events: all !important;
        z-index: 100 !important;
        opacity: 0.9 !important;
    }

    .sf-carousel-arrow.sf-prev {
        left: 8px !important;
        clip-path: none !important;
        padding: 0 !important;
    }

    .sf-carousel-arrow.sf-next {
        right: 8px !important;
        clip-path: none !important;
        padding: 0 !important;
    }

    .sf-carousel-arrow:active {
        transform: translateY(-50%) scale(0.95) !important;
        background: var(--lcars-gold, #D2B887) !important;
    }

    .sf-carousel-arrow svg {
        width: 24px !important;
        height: 24px !important;
        fill: #0A0E1B !important;
    }

    /* Dots de navigation améliorés */
    .sf-carousel-dots {
        position: relative !important;
        bottom: auto !important;
        margin-top: 1rem !important;
        padding: 0.75rem !important;
        background: transparent !important;
        display: none !important;
        justify-content: center !important;
        gap: 0.75rem !important;
    }

    .sf-carousel-dot {
        width: 12px !important;
        height: 12px !important;
        background: rgba(81, 71, 155, 0.4) !important;
        border: 2px solid rgba(210, 184, 135, 0.3) !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }

    .sf-carousel-dot.active {
        width: 32px !important;
        height: 12px !important;
        border-radius: 6px !important;
        background: var(--lcars-gold, #D2B887) !important;
        border-color: var(--lcars-gold, #D2B887) !important;
        box-shadow: 0 0 12px rgba(210, 184, 135, 0.5) !important;
        transform: none !important;
    }

    /* Wrapper principal optimisé */
    .starfleet-carousel-wrapper {
        background: linear-gradient(135deg,
                rgba(10, 14, 27, 1) 0%,
                rgba(20, 28, 46, 0.98) 100%) !important;
        border-radius: 16px !important;
        padding: 0.5rem 0 1.5rem 0 !important;
        margin: 0.5rem 0 !important;
        overflow: visible !important;
    }

    /* Désactiver les effets lourds sur mobile */
    .starfleet-carousel-wrapper::after,
    .starfleet-carousel-wrapper::before,
    .sf-carousel-3d-item::after,
    .sf-carousel-3d-item::before,
    .sf-3d-reflection {
        display: none !important;
    }

    /* Label "Discover our Campus" amélioré */
    .sf-label {
        font-size: 1rem !important;
        text-align: center !important;
        display: block !important;
        margin-bottom: 1rem !important;
        color: var(--lcars-gold, #D2B887) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
    }
}

/* Mode liste pour les campus sur mobile (alternative) */
@media (max-width: 480px) {

    /* Option pour afficher en mode liste scrollable */
    .starfleet-carousel-wrapper.list-mode .sf-carousel-3d-container {
        height: auto !important;
        overflow: visible !important;
    }

    .starfleet-carousel-wrapper.list-mode .sf-carousel-3d-item {
        position: relative !important;
        transform: none !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        opacity: 1 !important;
    }
}

/* Mode performance réduite pour les appareils moins puissants */
@media (prefers-reduced-motion: reduce) {
    .starfleet-carousel-wrapper * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .starfleet-carousel-wrapper::after,
    .starfleet-carousel-wrapper::before {
        display: none;
    }
}