/* Fonts */
* {
    font-family: 'Urbanist', sans-serif;
}

body {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hero Section Background */
.hero-section {
    min-height: auto;
    padding-bottom: 0;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/BG HERO.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.619) 0%, rgba(0, 0, 0, 0.824) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

/* Custom Variables */
:root {
    --primary-bg: #000;
    --secondary-bg: #1a1a1a;
    --accent-yellow: #ffb800;
    --accent-orange: #ff8c00;
    --text-primary: #fff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-primary: #ffffff1a;
    --border-secondary: #fff3;
    --glass-bg: #ffffff0d;
    --glass-border: #ffffff1a;
}


/* Animations */
@keyframes slide-in-left {
    0% { opacity: 0; transform: translateX(-200px); }
    100% { opacity: 1; transform: translateX(0px); }
}

@keyframes slide-in-right {
    0% { opacity: 0; transform: translateX(200px); }
    100% { opacity: 1; transform: translateX(0px); }
}

@keyframes slide-in-top {
    0% { opacity: 0; transform: translateY(-200px); }
    100% { opacity: 1; transform: translateY(0px); }
}

@keyframes slide-in-bottom {
    0% { opacity: 0; transform: translateY(200px); }
    100% { opacity: 1; transform: translateY(0px); }
}

.animate-slide-in-left {
    animation: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0s 1 normal forwards running slide-in-left;
    will-change: transform;
    transform: translateZ(0);
}

.animate-slide-in-right {
    animation: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0s 1 normal forwards running slide-in-right;
    will-change: transform;
    transform: translateZ(0);
}

.animate-slide-in-top {
    animation: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0s 1 normal forwards running slide-in-top;
    will-change: transform;
    transform: translateZ(0);
}

.animate-slide-in-bottom {
    animation: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0s 1 normal forwards running slide-in-bottom;
    will-change: transform;
    transform: translateZ(0);
}

/* Title Home */
.title-home {
    line-height: 1.3;
}

/* CAN Ticket Styles */
.can-ticket-container {
    align-items: center;
    display: flex;
    font-family: 'Oswald', sans-serif;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
}

/* Container pour le ticket unique */
.tickets-grid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
    position: relative;
    min-height: 320px;
}

/* Le cadre reste fixe, seul le contenu change */
.ticket-wrapper {
    position: relative;
}

/* Animation fluide pour le changement de contenu */
.ticket-overlay {
    transition: background 0.5s ease;
}

.ticket-left {
    transition: background-image 0.5s ease;
}

.can-logo {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-text h2,
.header-text h3,
.info-value,
.code-number {
    transition: opacity 0.3s ease;
}

@media (max-width: 1024px) {
    .tickets-grid-container {
        padding: 1.5rem 0;
        min-height: 300px;
    }
    
    .ticket-wrapper {
        max-width: 100%;
        height: auto;
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .tickets-grid-container {
        padding: 1rem 0;
        min-height: 280px;
    }
    
    .can-ticket-container {
        padding: 20px 10px;
    }
    
    .ticket-wrapper {
        height: auto;
        min-height: 250px;
    }
}

.ticket-wrapper {
    cursor: pointer;
    display: flex;
    filter: drop-shadow(rgba(0, 0, 0, 0.5) 0px 10px 20px);
    height: 280px;
    max-width: 1000px;
    transition: 0.3s;
    width: 100%;
    background-image: url('img/ticket.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.ticket-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/ticket.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.3;
}

.ticket-wrapper:hover {
    filter: drop-shadow(rgba(0, 0, 0, 0.6) 0px 15px 30px);
    transform: scale(1.02);
}

.ticket-left {
    background-color: rgb(170, 30, 36);
    background-position: 50% center;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ticket-overlay {
    background: linear-gradient(90deg, rgba(170, 30, 36, 0.85), rgba(0, 100, 50, 0.75));
    height: 100%;
    left: 0px;
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: 1;
}

.ticket-content {
    color: rgb(255, 255, 255);
    flex-direction: column;
    height: 100%;
    padding: 25px 30px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    background-image: url('img/ticket.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.header-left {
    align-items: center;
    display: flex;
    flex: 1 1 0%;
    gap: 15px;
}

.can-logo {
    filter: drop-shadow(rgba(0, 0, 0, 0.3) 0px 2px 4px);
    flex-shrink: 0;
    height: 70px;
    width: auto;
}

.header-text {
    flex: 1 1 0%;
}

.header-text h2 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.1;
    margin: 0px;
    text-transform: uppercase;
}

.header-text h3 {
    color: rgb(251, 186, 0);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 5px 0px 0px;
    text-transform: uppercase;
}

.ticket-body {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin: 15px 0px;
    padding: 15px 0px;
}

.match-info {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    margin-bottom: 3px;
    opacity: 0.85;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.info-value {
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1.15rem;
    font-weight: 700;
}

.ticket-footer {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
    text-align: center;
}

.promo-text {
    color: rgb(255, 255, 255);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 2px 4px;
}

.ticket-divider {
    background-color: rgb(238, 238, 238);
    border-right: 2px dashed rgba(0, 0, 0, 0.3);
    position: relative;
    width: 0px;
    z-index: 3;
}

.dashed-line {
    height: 100%;
    width: 2px;
    border-right: 2px dashed rgba(0, 0, 0, 0.3);
}

.ticket-right {
    align-items: center;
    background-color: rgb(255, 255, 255);
    border-radius: 0px 15px 15px 0px;
    color: rgb(51, 51, 51);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 15px;
    position: relative;
    width: 200px;
    z-index: 1;
}

.ticket-left-notch,
.ticket-right-notch {
    background-color: rgb(26, 26, 26);
    border-radius: 50%;
    height: 30px;
    position: absolute;
    width: 30px;
    z-index: 10;
}

.ticket-left-notch {
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.ticket-right-notch {
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.stub-content {
    text-align: center;
    width: 100%;
}

.stub-code {
    margin-bottom: 15px;
    width: 100%;
}

.barcode {
    background: linear-gradient(90deg, rgb(0, 0, 0) 2px, rgba(0, 0, 0, 0) 0px, rgb(0, 0, 0) 4px, rgba(0, 0, 0, 0) 0px, rgb(0, 0, 0) 8px, rgba(0, 0, 0, 0) 0px, rgb(0, 0, 0) 9px, rgba(0, 0, 0, 0) 0px, rgb(0, 0, 0) 12px, rgba(0, 0, 0, 0) 0px, rgb(0, 0, 0) 15px, rgba(0, 0, 0, 0) 0px, rgb(0, 0, 0) 18px, rgba(0, 0, 0, 0) 0px, rgb(0, 0, 0) 22px, rgba(0, 0, 0, 0) 0px) 0% 0% / 25px 100%;
    height: 50px;
    margin-bottom: 8px;
    width: 100%;
}

.code-number {
    display: block;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0px;
    text-align: center;
}

.stub-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.stub-row {
    border-bottom: 1px solid rgb(238, 238, 238);
    display: flex;
    justify-content: space-between;
    padding-bottom: 5px;
}

.stub-row span {
    color: rgb(136, 136, 136);
    font-size: 0.8rem;
}

.stub-row strong {
    color: rgb(170, 30, 36);
    font-size: 1rem;
}

/* Sports Carousel - Même système que VOD Carousel */
#sportsCarousel {
    display: flex;
    gap: 1rem;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
    scroll-behavior: smooth;
    will-change: scroll-position;
    contain: layout style paint;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
    scroll-padding-left: 0;
}

/* Snap scroll pour chaque slide */
#sportsCarousel > div {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Sports Carousel Item - Même que VOD */
#sportsCarousel > div {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 2 / 3;
    min-height: auto;
    height: auto;
}

#sportsCarousel > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

#sportsCarousel > div img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

/* Desktop (1025px and up) - 5 SLIDES */
@media (min-width: 1025px) {
    #sportsCarousel {
        padding: 0 0 1rem;
    }
    
    #sportsCarousel > div {
        aspect-ratio: 2 / 3 !important;
        flex-shrink: 0;
        min-width: 0;
        max-width: none;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #sportsCarousel > div img {
        aspect-ratio: 2 / 3;
    }
    
    #sportsCarousel > div:hover {
        transform: translateY(-12px) scale(1.02);
    }
}

/* Extra Large Desktop (1536px and up) - 5 SLIDES */
@media (min-width: 1536px) {
    #sportsCarousel {
        padding: 0 0 1rem;
    }
    
    #sportsCarousel > div {
        max-width: 350px !important;
        aspect-ratio: 2 / 3 !important;
        flex-shrink: 0;
        min-width: 0;
        height: auto;
    }
    
    #sportsCarousel > div img {
        aspect-ratio: 2 / 3;
    }
    
    #sportsCarousel > div:hover {
        transform: translateY(-12px) scale(1.02);
    }
}


/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgb(255, 184, 0), rgb(255, 140, 0));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 184, 0));
}

/* Responsive */
@media (max-width: 768px) {
    .can-ticket-container {
        padding: 20px 15px;
    }

    .ticket-wrapper {
        flex-direction: column;
        height: auto;
        max-width: 100%;
        width: 100%;
    }

    .ticket-left {
        border-radius: 15px 15px 0px 0px;
        min-height: auto;
        padding: 0px;
    }

    .ticket-content {
        gap: 15px;
        padding: 20px 15px;
    }

    .ticket-header {
        align-items: center;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .can-logo {
        height: 80px;
        width: auto;
    }

    .header-text h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .header-text h3 {
        font-size: 1.1rem;
        margin-top: 5px;
    }

    .ticket-body {
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
        padding: 12px 0px;
    }

    .match-info {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 1rem;
    }

    .promo-text {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .ticket-right {
        border-radius: 0px 0px 15px 15px;
        flex-direction: row;
        justify-content: space-between;
        min-height: auto;
        padding: 15px;
        width: 100%;
    }

    .ticket-left-notch {
        bottom: -15px;
        right: 50%;
        top: auto;
        transform: translateX(50%);
    }

    .ticket-right-notch {
        left: 50%;
        top: -15px;
        transform: translateX(-50%);
    }

    .ticket-divider {
        border-bottom: 2px dashed rgba(0, 0, 0, 0.3);
        border-right: none;
        height: 0px;
        width: 100%;
    }

    .stub-content {
        align-items: center;
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
        text-align: left;
        width: 100%;
    }

    .stub-code {
        margin-bottom: 0px;
    }

    .code-number {
        font-size: 0.8rem;
    }

    .barcode {
        display: none;
    }

    .stub-details {
        flex-direction: row;
        gap: 15px;
    }

    .stub-row {
        align-items: flex-end;
        border-bottom: none;
        flex-direction: column;
        gap: 3px;
        padding-bottom: 0px;
    }

    .stub-row span {
        font-size: 0.7rem;
    }

    .stub-row strong {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .can-ticket-container {
        margin-top: 20px;
        padding: 15px 10px;
    }

    .ticket-content {
        padding: 15px 12px;
    }

    .can-logo {
        height: 80px;
    }

    .header-text h2 {
        font-size: 1.1rem;
    }

    .header-text h3 {
        font-size: 0.95rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .promo-text {
        font-size: 0.8rem;
    }

    .ticket-right {
        padding: 12px;
    }

    .stub-details {
        gap: 10px;
    }
}

/* Canvas Animation */
#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Scrollbar Hide */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Brands Carousel - Refait à zéro */
#brandsContainer {
    display: flex;
    align-items: center;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 2rem 0;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

#brandsContainer::-webkit-scrollbar {
    display: none;
}

.brand-item {
    flex-shrink: 0;
    height: 70px;
    background: white;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.brand-item-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 100%;
    height: 100%;
    max-height: 44px;
    object-fit: contain;
    object-position: center;
}

/* Desktop */
@media (min-width: 1025px) {
    #brandsContainer {
        padding: 2.5rem 0;
    }
    
    .brand-item {
        height: 80px;
        padding: 0.875rem 1.25rem;
        border-radius: 1rem;
    }
    
    .brand-logo {
        max-height: 52px;
    }
}

/* VOD Carousel Container */
#vodCarousel {
    display: flex;
    gap: 1rem; /* Gap par défaut, sera surchargé par media queries */
    overflow-x: hidden;
    overflow-y: hidden;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
    scroll-padding-left: 0;
}

/* Snap scroll pour chaque slide */
#vodCarousel > div {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* VOD Carousel Item - Improved Responsive & Aspect Ratio 2:3 (Portrait Standard) */
#vodCarousel > div {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ratio 2:3 (largeur:hauteur = 2:3) - Standard pour affiches de films */
    aspect-ratio: 2 / 3;
    min-height: auto;
    height: auto;
}

#vodCarousel > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

#vodCarousel > div img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Garantir que l'image complète est visible */
    min-width: 100%;
    min-height: 100%;
}

/* Mobile (up to 640px) - 2 SLIDES - Ratio 5:4 */
@media (max-width: 640px) {
    #vodCarousel {
        gap: 1rem; /* 16px entre les slides */
        padding: 0 1rem 1rem; /* 16px de padding de chaque côté */
    }
    
    #vodCarousel > div {
        /* 2 slides: 1 gap (16px) + 2 paddings (32px) = 48px = 3rem */
        width: calc((100vw - 3rem) / 2) !important; /* 2 slides visibles exactement */
        /* Ratio 2:3 - Si largeur = W, hauteur = W × 1.5 */
        aspect-ratio: 2 / 3 !important;
        flex-shrink: 0;
        min-width: 0;
        max-width: none;
    }
    
    #vodCarousel > div img {
        aspect-ratio: 2 / 3;
    }
}

/* Tablet (641px to 1024px) - 3 SLIDES - Ratio 5:4 */
@media (min-width: 641px) and (max-width: 1024px) {
    #vodCarousel {
        gap: 1.25rem; /* 20px entre les slides */
        padding: 0 2rem 1rem; /* 32px de padding de chaque côté */
    }
    
    #vodCarousel > div {
        /* 3 slides: 2 gaps (40px = 2 × 20px) + 2 paddings (64px = 2 × 32px) = 104px = 6.5rem */
        width: calc((100vw - 6.5rem) / 3) !important; /* 3 slides visibles exactement */
        /* Ratio 2:3 - Si largeur = W, hauteur = W × 1.5 */
        aspect-ratio: 2 / 3 !important;
        flex-shrink: 0;
        min-width: 0;
        max-width: none;
    }
    
    #vodCarousel > div img {
        aspect-ratio: 2 / 3;
    }
}

/* Desktop (1025px and up) - 5 SLIDES - Ratio flexible */
/* Les largeurs et ratios sont calculés dynamiquement en JavaScript pour garantir 5 posters complets */
@media (min-width: 1025px) {
    #vodCarousel {
        padding: 0 0 1rem; /* Pas de padding horizontal */
        display: flex;
        align-items: stretch; /* Garantir que tous les slides ont la même hauteur */
    }
    
    #vodCarousel > div {
        /* Largeur calculée dynamiquement en JS */
        aspect-ratio: 2 / 3; /* Ratio par défaut, sera ajusté par JS */
        flex-shrink: 0;
        flex-grow: 0;
        min-width: 0;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #vodCarousel > div img {
        /* Image complète, pas de coupure */
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    #vodCarousel > div:hover {
        transform: translateY(-12px) scale(1.02);
    }
}

/* Extra Large Desktop (1536px and up) - 5 SLIDES - Ratio flexible */
/* Les largeurs et ratios sont calculés dynamiquement en JavaScript */
@media (min-width: 1536px) {
    #vodCarousel {
        padding: 0 0 1rem; /* Pas de padding horizontal */
    }
    
    #vodCarousel > div {
        /* Largeur calculée dynamiquement en JS */
        max-width: 350px; /* Limite max pour très grands écrans */
        aspect-ratio: 2 / 3; /* Ratio par défaut, sera ajusté par JS */
        flex-shrink: 0;
        flex-grow: 0;
        min-width: 0;
        height: auto;
    }
    
    #vodCarousel > div img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    #vodCarousel > div:hover {
        transform: translateY(-12px) scale(1.02);
    }
}


/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.whatsapp-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 52px;
        height: 52px;
    }

    .whatsapp-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-btn {
        width: 48px;
        height: 48px;
    }

    .whatsapp-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Pricing Cards - Enhanced Styles */
#pricingContainer {
    align-items: stretch;
}

#pricingContainer > .pricing-card {
    height: 100%;
}

.pricing-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 184, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

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

/* ============================================
   FORFAIT A VIE - Design Simple et Compact
   ============================================ */

.pricing-card-lifetime {
    max-width: 400px;
    margin: 1rem auto;
}

.lifetime-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 184, 0, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.pricing-card-lifetime:hover .lifetime-content {
    border-color: rgba(255, 184, 0, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 184, 0, 0.2);
}

.lifetime-header {
    text-align: center;
    margin-bottom: 1rem;
}

.lifetime-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 0.25rem;
}

.lifetime-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.lifetime-price-section {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 184, 0, 0.1);
    border-radius: 0.5rem;
}

.lifetime-price {
    font-size: 2rem;
    font-weight: 900;
    color: #FFD700;
    display: block;
}

.lifetime-price-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

.lifetime-features {
    margin-bottom: 1rem;
}

.lifetime-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
}

.lifetime-check-icon {
    width: 1rem;
    height: 1rem;
    color: #FFD700;
    flex-shrink: 0;
}

.lifetime-cta-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-weight: 800;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.65rem, 2.2vw, 0.875rem) !important;
    padding: clamp(0.5rem, 1.8vw, 0.75rem) clamp(0.625rem, 2.5vw, 1.5rem) !important;
}

.lifetime-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.4);
}

.lifetime-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .pricing-card-lifetime {
        max-width: 100%;
    }
    
    .lifetime-content {
        padding: 1.25rem;
    }
    
    .lifetime-cta-button {
        font-size: 0.8rem;
        padding: 0.625rem 1rem;
    }
}

/* Boutons Commander maintenant - Taille flexible pour une seule ligne */
#pricingContainer a[class*="bg-gradient-to-r"],
#pricingContainer a[class*="from-yellow-400"] {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.7rem, 2.5vw, 1.125rem) !important;
    padding: clamp(0.625rem, 2vw, 1rem) clamp(0.75rem, 3vw, 2rem) !important;
}

#pricingContainer a[class*="bg-gradient-to-r"] > *,
#pricingContainer a[class*="from-yellow-400"] > * {
    white-space: nowrap !important;
}

/* IBO Banner Styles */
.ibo-banner {
    position: relative;
}

.gift-icon-wrapper {
    position: relative;
    display: inline-block;
    animation: gift-float 3s ease-in-out infinite;
}

.gift-icon {
    filter: drop-shadow(0 0 15px rgba(255, 184, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 184, 0, 0.3));
    animation: gift-bounce 2s ease-in-out infinite, gift-rotate 4s ease-in-out infinite;
    transform-origin: center;
}

.gift-sparkle {
    filter: blur(1px);
    animation: sparkle-pulse 2s ease-in-out infinite;
}

@keyframes gift-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.08);
    }
}

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

@keyframes gift-rotate {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

@keyframes sparkle-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes shine-slow {
    0% {
        transform: translateX(-100%) skewX(-12deg);
    }
    100% {
        transform: translateX(200%) skewX(-12deg);
    }
}

.animate-shine-slow {
    animation: shine-slow 4s infinite;
}

/* Responsive pour les pricing cards */
@media (max-width: 1024px) {
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-card h3 {
        font-size: 1.5rem;
    }
    
    .pricing-card .text-5xl {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .pricing-card-lifetime {
        padding: 1.25rem;
        max-width: 100%;
    }
    
    .pricing-card-lifetime h3 {
        font-size: 1.5rem;
    }
    
    .pricing-card-lifetime .text-4xl {
        font-size: 2rem;
    }
}

/* Devices Grid Styles */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .devices-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (min-width: 1024px) {
    .devices-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
    }
}

.device-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    min-height: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

.device-card:hover {
    background: #ffffff;
    border-color: rgba(255, 184, 0, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 184, 0, 0.3);
}

.device-card img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.device-card:hover img {
    filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.4));
    transform: scale(1.1);
}

/* Card Animation */
.card-animation {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Stagger animation for cards */
.device-card:nth-child(1) { animation-delay: 0.05s; }
.device-card:nth-child(2) { animation-delay: 0.1s; }
.device-card:nth-child(3) { animation-delay: 0.15s; }
.device-card:nth-child(4) { animation-delay: 0.2s; }
.device-card:nth-child(5) { animation-delay: 0.25s; }
.device-card:nth-child(6) { animation-delay: 0.3s; }
.device-card:nth-child(7) { animation-delay: 0.35s; }
.device-card:nth-child(8) { animation-delay: 0.4s; }
.device-card:nth-child(9) { animation-delay: 0.45s; }
.device-card:nth-child(10) { animation-delay: 0.5s; }
.device-card:nth-child(11) { animation-delay: 0.55s; }
.device-card:nth-child(12) { animation-delay: 0.6s; }
.device-card:nth-child(13) { animation-delay: 0.65s; }
.device-card:nth-child(14) { animation-delay: 0.7s; }
.device-card:nth-child(15) { animation-delay: 0.75s; }
.device-card:nth-child(16) { animation-delay: 0.8s; }
.device-card:nth-child(17) { animation-delay: 0.85s; }
.device-card:nth-child(18) { animation-delay: 0.9s; }
.device-card:nth-child(19) { animation-delay: 0.95s; }
.device-card:nth-child(20) { animation-delay: 1s; }
.device-card:nth-child(21) { animation-delay: 1.05s; }
.device-card:nth-child(22) { animation-delay: 1.1s; }
.device-card:nth-child(23) { animation-delay: 1.15s; }
.device-card:nth-child(24) { animation-delay: 1.2s; }

@media (max-width: 768px) {
    .devices-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .device-card {
        padding: 1rem;
        min-height: 80px;
    }
    
    .device-card img {
        max-height: 40px;
    }
}

/* How It Works Section - Enhanced Styles */
.how-it-works-container {
    position: relative;
}

.how-it-works-step {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpStep 0.6s ease-out forwards;
}

.how-it-works-step:nth-child(1) {
    animation-delay: 0.1s;
}

.how-it-works-step:nth-child(2) {
    animation-delay: 0.3s;
}

.how-it-works-step:nth-child(3) {
    animation-delay: 0.5s;
}

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

.step-number-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    width: 120px;
    height: 120px;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-number-wrapper:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(255, 184, 0, 0.6);
}

.step-icon-wrapper {
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.step-icon-wrapper svg {
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    transition: all 0.3s ease;
}

.step-icon-wrapper:hover svg,
.how-it-works-step:hover .step-icon-wrapper svg {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
    transform: scale(1.1);
}

.step-pulse {
    animation: pulse-step 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 0.5s;
}

@keyframes pulse-step {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.step-content {
    position: relative;
    overflow: hidden;
}

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

.step-content:hover::before {
    left: 100%;
}

.step-content:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive pour How It Works */
@media (max-width: 768px) {
    .step-number-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .step-icon {
        width: 10px;
        height: 10px;
    }
    
    .step-content {
        padding: 1.5rem;
    }
    
    .step-content h3 {
        font-size: 1.5rem;
    }
    
    .how-it-works-container {
        padding: 0;
    }
}

/* Footer Enhanced Styles */
.footer-section {
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 184, 0, 0.5), transparent);
}

/* Payment Methods Section */
.payment-methods-section {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.payment-method-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.payment-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 184, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.payment-method-card:hover::before {
    left: 100%;
}

.payment-method-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 184, 0, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 184, 0, 0.2);
}

.payment-logo {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.payment-method-card:hover .payment-logo {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.5));
    transform: scale(1.1);
}

/* Payment Methods in Footer */
.payment-methods-grid-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.payment-method-card-footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 45px;
    position: relative;
    overflow: hidden;
}

.payment-method-card-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 184, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.payment-method-card-footer:hover::before {
    left: 100%;
}

.payment-method-card-footer:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 184, 0, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.2);
}

.payment-logo-footer {
    max-width: 100%;
    max-height: 24px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.payment-method-card-footer:hover .payment-logo-footer {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 184, 0, 0.5));
    transform: scale(1.1);
}

/* Responsive pour les méthodes de paiement dans le footer */
@media (max-width: 768px) {
    .payment-methods-grid-footer {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .payment-method-card-footer {
        padding: 0.5rem;
        min-height: 40px;
    }
    
    .payment-logo-footer {
        max-height: 20px;
    }
}

@media (max-width: 640px) {
    .payment-methods-grid-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .payment-method-card-footer {
        padding: 0.5rem;
        min-height: 40px;
    }
    
    .payment-logo-footer {
        max-height: 20px;
    }
}

/* Footer Columns */
.footer-col {
    position: relative;
}

.footer-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ffb800, #ff8c00);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffb800;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #ffb800;
    padding-left: 8px;
}

.footer-link:hover::before {
    width: 20px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #9ca3af;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
    color: #25d366;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .payment-methods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .payment-method-card {
        padding: 1rem;
        min-height: 70px;
    }
    
    .payment-logo {
        max-height: 35px;
    }
    
    .footer-section {
        padding: 2rem 0;
    }
    
    .footer-col {
        margin-bottom: 2rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* Testimonials Enhanced Styles */
.testimonial-card-container {
    position: relative;
    min-height: 400px;
}

.testimonial-content-wrapper {
    animation: fadeInTestimonial 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

@keyframes fadeInTestimonial {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-photo-wrapper {
    width: 360px;
    height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 184, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card-container:hover .testimonial-photo-wrapper {
    transform: scale(1.02);
    border-color: rgba(255, 184, 0, 0.6);
    box-shadow: 0 15px 40px rgba(255, 184, 0, 0.4);
}

.testimonial-photo {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card-container:hover .testimonial-photo {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .testimonial-photo-wrapper {
        width: 420px;
        height: 250px;
    }
}

@media (min-width: 1024px) {
    .testimonial-photo-wrapper {
        width: 650px;
        height: 400px;
    }
}

.testimonial-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot:hover {
    transform: scale(1.2);
}

.testimonial-dot:active {
    transform: scale(0.9);
}

/* Responsive pour Testimonials */
@media (max-width: 768px) {
    .testimonial-card-container {
        padding: 1.5rem;
        min-height: 350px;
    }
    
    .testimonial-photo-wrapper {
        width: 340px !important;
        height: 220px !important;
    }
    
    .testimonial-content-wrapper h2 {
        font-size: 1.75rem;
    }
    
    .testimonial-content-wrapper p {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .testimonial-photo-wrapper {
        width: 300px !important;
        height: 200px !important;
    }
}

/* ============================================
   CARROUSEL DE LOGOS 3D AVEC ANIMATIONS - HORIZONTAL 5 LOGOS
   ============================================ */

.logo-carousel-3d-container-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    perspective: 1200px;
    padding: 2rem 0;
    width: 100%;
    background: transparent !important;
    overflow: hidden; /* Pas de scrollbar */
}

.logo-carousel-3d-horizontal {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 120px;
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 2rem; /* gap-8 par défaut, sera ajusté par JS */
    perspective: 1200px;
    overflow-x: hidden !important; /* Pas de scrollbar horizontale */
    overflow-y: hidden !important; /* Pas de scrollbar verticale */
    scrollbar-width: none; /* Firefox - pas de scrollbar */
    -ms-overflow-style: none; /* IE/Edge - pas de scrollbar */
}

/* Masquer la scrollbar pour Webkit (Chrome, Safari) */
.logo-carousel-3d-horizontal::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Les largeurs sont calculées dynamiquement en JavaScript comme les posters */

.logo-item-3d {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; /* Le conteneur est toujours visible, c'est le wrapper interne qui est animé */
    transform-style: preserve-3d;
    /* Pas de transition sur le conteneur pour éviter les conflits avec les animations GSAP */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    width: 100%;
    height: auto;
    min-height: 60px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    isolation: isolate; /* Créer un nouveau contexte de stacking */
}

.logo-item-3d.active {
    opacity: 1;
    z-index: 10;
}

.logo-item-3d img,
.logo-img-3d {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent !important;
    /* Rendre les logos blancs sans couleur */
    filter: brightness(0) invert(1);
    /* Pas de transition pour éviter les conflits avec les animations GSAP */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.logo-item-3d.active img {
    filter: brightness(0) invert(1);
}

/* Animations d'entrée selon la position - Optimisées pour fluidité maximale */
.logo-item-3d.enter-rotate-top {
    animation: enterRotateTop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.logo-item-3d.enter-rotate-bottom {
    animation: enterRotateBottom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.logo-item-3d.enter-rotate-left {
    animation: enterRotateLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.logo-item-3d.enter-rotate-right {
    animation: enterRotateRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.logo-item-3d.enter-zoom {
    animation: enterZoom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Animations de sortie selon la position - Optimisées pour fluidité maximale */
.logo-item-3d.exit-rotate-top {
    animation: exitRotateTop 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.logo-item-3d.exit-rotate-bottom {
    animation: exitRotateBottom 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.logo-item-3d.exit-rotate-left {
    animation: exitRotateLeft 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.logo-item-3d.exit-rotate-right {
    animation: exitRotateRight 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.logo-item-3d.exit-zoom {
    animation: exitZoom 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

/* Keyframes pour les animations d'entrée - Simplifiées pour fluidité maximale sans bugs */
@keyframes enterRotateTop {
    0% {
        opacity: 0;
        transform: translateY(-80px) rotateX(-30deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

@keyframes enterRotateBottom {
    0% {
        opacity: 0;
        transform: translateY(80px) rotateX(30deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

@keyframes enterRotateLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px) rotateY(30deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
    }
}

@keyframes enterRotateRight {
    0% {
        opacity: 0;
        transform: translateX(80px) rotateY(-30deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
    }
}

@keyframes enterZoom {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateZ(45deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateZ(0deg);
    }
}

/* Keyframes pour les animations de sortie - Simplifiées pour fluidité maximale sans bugs */
@keyframes exitRotateTop {
    0% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) rotateX(-30deg) scale(0.8);
    }
}

@keyframes exitRotateBottom {
    0% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(80px) rotateX(30deg) scale(0.8);
    }
}

@keyframes exitRotateLeft {
    0% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-80px) rotateY(30deg) scale(0.8);
    }
}

@keyframes exitRotateRight {
    0% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(80px) rotateY(-30deg) scale(0.8);
    }
}

@keyframes exitZoom {
    0% {
        opacity: 1;
        transform: scale(1) rotateZ(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotateZ(-45deg);
    }
}

/* Responsive - Padding et hauteur minimale seulement, largeurs calculées dynamiquement */
@media (min-width: 769px) {
    /* PC - 6 logos */
    .logo-carousel-3d-container-horizontal {
        min-height: 90px;
        padding: 1.5rem 0;
    }
}

@media (max-width: 768px) {
    /* Mobile - 3 logos */
    .logo-carousel-3d-container-horizontal {
        min-height: 70px;
        padding: 1rem 0;
    }
}

@media (max-width: 640px) {
    .logo-carousel-3d-container-horizontal {
        min-height: 60px;
        padding: 0.75rem 0;
    }
    
    .logo-carousel-3d-horizontal {
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .logo-item-3d {
        width: 65px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo-carousel-3d-container-horizontal {
        min-height: 50px;
        padding: 0.5rem 0;
    }
    
    .logo-carousel-3d-horizontal {
        gap: 0.5rem;
    }
    
    .logo-item-3d {
        width: 55px;
        height: 40px;
    }
}



