﻿/* index.php extracted styles */
/* Adsence desactive pour les abonnes premium */
.ads-disabled .adsbygoogle,
.ads-disabled ins.adsbygoogle,
.ads-disabled [data-ad-client],
.ads-disabled [data-ad-slot] {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
    }
.chat-tooltip{display:none;}
.chat-assist-label{display:none;}

@media (min-width: 640px){
  #chatToggle:hover .chat-tooltip,
  #chatToggle:focus .chat-tooltip,
  #chatToggle:focus-visible .chat-tooltip{display:block;}
}

@media (max-width: 639.98px){
  #chatToggle:hover + .chat-assist-label,
  #chatToggle:active + .chat-assist-label,
  #chatToggle:focus + .chat-assist-label,
  #chatToggle:focus-visible + .chat-assist-label{display:block;}
}
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.2);
}
.glass-dark {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

/* Styles pour le menu déroulant catégories multi-colonnes */
.dropdown-categories {
    min-width: 600px;
    max-width: 800px;
    z-index: 1000;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1e40af;
    background: white;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.category-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    transform: translateX(4px);
}

.category-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.category-item span:first-of-type {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.category-item .count {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
}

/* Responsive pour tablettes */
@media (max-width: 1024px) and (min-width: 769px) {
    .dropdown-categories {
        min-width: 500px;
        max-width: 650px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive pour mobiles - menu vertical classique */
@media (max-width: 768px) {
    .dropdown-categories {
        min-width: 280px;
        max-width: 320px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-item {
        padding: 0.6rem 0.75rem;
    }
    
    .category-item span:first-of-type {
        font-size: 0.85rem;
    }
}

.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open {
    transform: translateX(0);
}
.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

/* CWV: render sections only when near viewport */
.stats-section,
#testimonials-section,
section[id$="-section"] {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

/* Système de carrousel pour mobile - MODIFIÉ POUR GRILLE */
.carousel-container {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0.5rem;
}
.carousel-item {
    flex: 0 0 auto;
}


/* Styles pour la section des résultats de recherche */
#searchResultsSection {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    position: fixed !important;
    z-index: 35 !important;
}

#searchResultsGrid .search-result-item,
#searchResultsTrack .search-result-item {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}




/* Styles pour les résultats de recherche - Desktop */
#searchResultsGrid .content-card {
    width: 100% !important;
    max-width: 280px !important;
    height: 320px !important;
    min-height: 320px !important;
}

/* Masquer la barre de défilement du carrousel mobile */
#searchResultsTrack::-webkit-scrollbar {
    display: none !important;
}

/* CORRECTION MOBILE: Masquer les tooltips en mobile pour éviter les doublons */
@media (max-width: 640px) {
    #searchResultsTrack .product-description-tooltip,
    #searchResultsTrack .product-tooltip-container .product-description-tooltip,
    #searchResultsSection .product-description-tooltip,
    #searchResultsSection .product-tooltip-container .product-description-tooltip,
    #mobileSearchResults .product-description-tooltip,
    #mobileSearchResults .product-tooltip-container .product-description-tooltip {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* S'assurer que le scroll reste confiné à la section */
    #searchResultsSection {
        touch-action: pan-y !important;
        overscroll-behavior: contain !important;
    }
    
    #searchResultsTrack {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        touch-action: pan-y !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #mobileSearchResults {
        max-height: 70vh !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }
}


#searchSortOptions {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    min-width: 180px;
}


#searchSortOptions .sort-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}


#searchSortOptions .sort-option:last-child {
    border-bottom: none;
}

#searchSortOptions .sort-option:hover {
    background-color: #f8fafc;
}


/* Animation d'apparition pour les résultats */
.search-result-item {
    animation: slideInUp 0.4s ease-out forwards;
    opacity: 0;
}


.search-result-item:nth-child(1) { animation-delay: 0.1s; }
.search-result-item:nth-child(2) { animation-delay: 0.2s; }
.search-result-item:nth-child(3) { animation-delay: 0.3s; }
.search-result-item:nth-child(4) { animation-delay: 0.4s; }

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



#searchResultsGrid .content-card p {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    color: #6b7280 !important;
    margin-bottom: 1rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}


@media (max-width: 640px) {
    #searchResultsGrid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 1rem !important;
    }
}


/* Styles pour les résultats de recherche - Mobile */

#searchResultsTrack {
    display: flex !important;
    overflow-x: auto !important;
    gap: 1rem !important;
    padding: 0 1rem !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}


#searchTrack .carousel-item {
    flex: 0 0 auto !important;
    width: 160px !important;
    min-width: 160px !important;
    scroll-snap-align: start !important;
}

#searchTrack .mobile-product-card {
    aspect-ratio: 0.85 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 240px !important;
    min-height: 240px !important;
    width: 100% !important;
}

#searchTrack .mobile-product-image {
    height: 45% !important;
    object-fit: cover !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    width: 100% !important;
}

#searchTrack .mobile-product-content {
    height: 55% !important;
    padding: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    font-size: 0.75rem !important;
}






/* Cart Sidebar avec background blanc - CORRIGÉ */
#cartSidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    max-width: 24rem;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 50;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    border-left: 1px solid #e5e7eb;
}

#cartSidebar:not(.translate-x-full) {
    transform: translateX(0);
}

/* Viewer PDF (PDF.js) pour la modale d'aperçu */
.pdfjs-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    /* Hauteur minimale augmentée pour un meilleur confort de lecture */
    min-height: 70vh;
}

.pdfjs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 2;
}

.pdfjs-toolbar-left,
.pdfjs-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pdfjs-page-info {
    min-width: 5rem;
    text-align: center;
}

.pdfjs-toolbar button {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pdfjs-btn-text {
    display: inline;
}

.pdfjs-toolbar button:hover {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

.pdf-preview-modal {
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.pdfjs-page-jump {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pdfjs-page-input {
    width: 4.5rem;
    padding: 0.2rem 0.4rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
}

/* Zone de rendu (scroll vertical) */
.pdfjs-canvas-wrapper {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 0.75rem;
    background-color: #111827;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0.75rem;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.pdfjs-pages {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#pdfContent {
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.pdfjs-page {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    padding: 0.5rem;
    display: flex;
    justify-content: center;
}

#pdfViewerCanvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    background-color: #ffffff;
}

/* Petite barre d’info au-dessus de la toolbar */
.pdfjs-info-bar {
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.pdfjs-info-title {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

.pdfjs-info-pages {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.pdfjs-info-float {
    display: none;
}

@media (max-width: 640px) {
    .pdfjs-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pdfjs-toolbar-left,
    .pdfjs-toolbar-right {
        justify-content: space-between;
    }
    
    /* Sur mobile, on augmente encore un peu la hauteur du viewer */
    .pdfjs-viewer-container {
        min-height: 85vh;
    }
    .pdf-preview-modal .pdf-modal-shell {
        height: calc(96vh + 2.5cm);
        max-height: calc(96vh + 2.5cm);
        border-radius: 16px;
    }
    .pdf-preview-modal .pdfjs-toolbar {
        gap: 0.35rem;
    }
    .pdf-preview-modal .pdf-modal-shell > .p-4 {
        position: sticky;
        top: 0;
        z-index: 4;
        background: #ffffff;
        padding: 0.45rem 0.7rem;
    }
    .pdf-preview-modal .pdf-modal-shell > .p-4 h3 {
        font-size: 0.95rem;
    }
    .pdf-preview-modal .pdf-modal-shell > .p-4 p {
        font-size: 0.65rem;
    }
    .pdf-preview-modal .pdf-modal-shell > .p-4 .w-8 {
        width: 2rem;
        height: 2rem;
    }
    .pdfjs-info-bar {
        display: none;
    }
    .pdfjs-info-float {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        position: fixed;
        left: 0.75rem;
        bottom: calc(env(safe-area-inset-bottom, 24px) + 0.75rem);
        z-index: 60;
        background: rgba(15, 23, 42, 0.92);
        color: #f8fafc;
        font-size: 0.7rem;
        font-weight: 600;
        padding: 0.35rem 0.6rem;
        border-radius: 999px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
    }
    .pdf-preview-modal .pdf-modal-shell > .p-4:last-child {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 24px));
    }
    .pdfjs-toolbar-toggle {
        position: fixed;
        left: 0.75rem;
        top: calc(env(safe-area-inset-top, 0px) + 3.2rem);
        z-index: 70;
        background: rgba(15, 23, 42, 0.9);
        color: #f8fafc;
        border: none;
        border-radius: 999px;
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
    }
    .pdfjs-toolbar {
        padding: 0.35rem 0.5rem;
        font-size: 0.65rem;
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        top: calc(env(safe-area-inset-top, 0px) + 5.4rem);
        z-index: 69;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 0.75rem;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .pdfjs-toolbar.pdf-toolbar-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .pdfjs-page-input {
        width: 3.2rem;
        font-size: 0.65rem;
    }
    .pdfjs-canvas-wrapper {
        padding-top: 2.2rem;
    }
    body.pdf-toolbar-open .pdfjs-canvas-wrapper {
        padding-top: 4.6rem;
    }
    .pdf-preview-modal .social-share {
        position: fixed;
        right: 0.75rem;
        bottom: calc(env(safe-area-inset-bottom, 24px) + 0.75rem);
        z-index: 60;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 999px;
        padding: 0.35rem 0.5rem;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    }
}

@media (max-width: 640px) {
    .pdfjs-btn-text {
        display: none;
    }
    #pdfPrevBtn, #pdfNextBtn {
        width: 40px;
        height: 36px;
        justify-content: center;
        padding: 0;
    }
}

@media (min-width: 641px) {
    .pdf-preview-modal .pdf-modal-shell {
        max-height: calc(98vh + 2cm);
    }
}

html.pdf-preview-open,
body.pdf-preview-open {
    overflow: hidden !important;
    height: 100% !important;
}

#cartSidebar .h-full {
    display: flex;
    flex-direction: column;
    color: #1f2937;
    background: white;
    height: 100%;
}

#cartSidebar .border-b {
    border-color: #e5e7eb;
    background: white;
}

#cartSidebar .border-t {
    border-color: #e5e7eb;
    background: white;
}

/* Wishlist Sidebar avec background blanc - CORRIGÉ */
#wishlistSidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    max-width: 24rem;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 50;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    border-left: 1px solid #e5e7eb;
}

#wishlistSidebar:not(.translate-x-full) {
    transform: translateX(0);
}

#wishlistSidebar .h-full {
    display: flex;
    flex-direction: column;
    color: #1f2937;
    background: white;
    height: 100%;
}

#wishlistSidebar .border-b {
    border-color: #e5e7eb;
    background: white;
}

#wishlistSidebar .border-t {
    border-color: #e5e7eb;
    background: white;
}

/* Styles pour les éléments à l'intérieur des sidebars - CORRIGÉ */
#cartSidebar .p-4,
#cartSidebar .p-6,
#wishlistSidebar .p-4,
#wishlistSidebar .p-6 {
    background: white;
    color: #1f2937;
}

/* Items dans les sidebars - CORRIGÉ */
#cartSidebar .bg-white\/10,
#wishlistSidebar .bg-white\/10 {
    background: #f8fafc !important;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

/* Titres dans les sidebars */
#cartSidebar h3,
#wishlistSidebar h3 {
    color: #1f2937 !important;
}

/* Texte dans les sidebars */
#cartSidebar .text-white,
#wishlistSidebar .text-white {
    color: #1f2937 !important;
}

/* Assurer que les boutons restent cliquables */
#cartSidebar button,
#wishlistSidebar button {
    pointer-events: auto;
    cursor: pointer;
}

/* Overlay pour fermer les sidebars */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* Responsive breakpoints améliorés pour mobile - DÉFILEMENT HORIZONTAL */
@media (max-width: 640px) {
    /* Défilement horizontal sur mobile avec barre masquée */
    .carousel-container {
        position: relative;
        overflow: hidden;
        width: 100%;
    }
    
    .carousel-track {
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
        width: 100% !important;
        transform: none !important;
        transition: none !important;
        /* Masquer la barre de défilement */
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* Internet Explorer 10+ */
    }
    
    /* Masquer la barre de défilement pour Chrome, Safari et Opera */
    .carousel-track::-webkit-scrollbar {
        display: none !important;
    }
    
    .carousel-item { 
        flex: 0 0 auto !important;
        width: 160px !important;
        min-width: 160px !important;
    }




    /* Amélioration du défilement tactile sur mobile */
@media (max-width: 640px) {
    .carousel-track {
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
    }
    
    .carousel-item {
        scroll-snap-align: start !important;
    }
    
    /* Effet de défilement plus fluide */
    .carousel-track {
        scroll-padding-left: 1rem !important;
        scroll-padding-right: 1rem !important;
    }
}
    
    /* Produits carrés et compacts pour mobile */
    .mobile-product-card {
        aspect-ratio: 0.85 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 240px !important;
        min-height: 240px !important;
        width: 100% !important;
    }
    
    .mobile-product-image {
        height: 45% !important;
        object-fit: cover !important;
        border-radius: 0.5rem 0.5rem 0 0 !important;
        width: 100% !important;
    }
    
    .mobile-product-content {
        height: 55% !important;
        padding: 0.75rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        font-size: 0.75rem !important;
    }
    
    .mobile-product-title {
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.9rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-weight: 600 !important;
        height: 2.2em !important;
    }
    
    .mobile-product-description {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.5rem !important;
        color: #6b7280 !important;
        height: 1.5em !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .mobile-product-price {
        font-size: 0.9rem !important;
        font-weight: bold !important;
        color: #2563eb !important;
        margin-bottom: 0.1rem !important;
        line-height: 1 !important;
    }
    
    .mobile-product-actions {
        display: flex !important;
        gap: 0.25rem !important;
        margin-top: auto !important;
    }
    
    .mobile-action-btn {
        flex: 1 !important;
        padding: 0.5rem 0.25rem !important;
        border-radius: 0.375rem !important;
        font-size: 0.65rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.25rem !important;
        min-height: 32px !important;
        font-weight: 500 !important;
    }
    
    .mobile-action-icon {
        font-size: 0.75rem !important;
    }
    
    /* Masquer les contrôles de carrousel sur mobile */
    .carousel-nav {
        display: none !important;
    }
    
    .carousel-dots {
        display: none !important;
    }
    
    /* Header mobile plus responsive */
    .mobile-header {
        padding: 1rem 0;
        min-height: 80px;
    }
    
    .mobile-nav {
        padding: 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .mobile-logo {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-shrink: 0;
    }
    
    .mobile-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
        margin-left: auto !important;
        flex-shrink: 0;
    }

    .mobile-icon-only {
        display: inline-block !important;
    }

    .mobile-icon-text {
        display: none !important;
    }

    /* Assurer que le header mobile est visible */
    header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Navigation mobile responsive - forcer l'alignement à droite */
    .nav {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
    }
    
    .nav .flex:last-child {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
    }
    
    /* Forcer l'alignement pour tous les mobiles */
    .nav > div:last-child {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    
    /* Forcer l'alignement à droite pour les actions */
    .flex.items-center.justify-end {
        justify-content: flex-end !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    
    /* Container des boutons d'action */
    .space-x-2:last-child {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
    }
    
    /* Navigation principale */
    .container.mx-auto.px-3.py-3 {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    
    /* Dernière div de navigation (actions) */
    .flex.items-center.justify-end.space-x-2 {
        margin-left: auto !important;
        justify-content: flex-end !important;
        flex-shrink: 0 !important;
        min-width: fit-content !important;
    }
}

/* Navigation mobile responsive - forcer l'alignement à droite */
@media (max-width: 1023px) {
    .nav {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
    }
    
    .nav .flex:last-child {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
    }
    
    /* Forcer l'alignement pour tous les mobiles */
    .nav > div:last-child {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
}

/* Pour les très petits mobiles (240px et plus) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.25rem !important;
    }
    
    .mobile-nav {
        padding: 0.5rem !important;
    }
    
    .space-x-2 > * + * {
        margin-left: 0.25rem !important;
    }
    
    /* Réduire la taille des icônes pour les très petits écrans */
    .text-base {
        font-size: 0.875rem !important;
    }
    
    /* Forcer l'alignement même sur très petits écrans */
    .flex.items-center.justify-end.space-x-2 {
        justify-content: flex-end !important;
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }
    
    /* Ajuster l'espacement pour très petits écrans */
    .carousel-track {
        gap: 1rem !important;
    }

    #searchResultsTrack .carousel-item {
        width: 140px !important;
        min-width: 140px !important;
    }


}


#searchResultsTrack .carousel-item {
    flex: 0 0 auto !important;
    width: 160px !important;
    min-width: 160px !important;
    scroll-snap-align: start !important;
}

#searchResultsTrack .mobile-product-card {
    aspect-ratio: 0.85 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 240px !important;
    min-height: 240px !important;
    width: 100% !important;
    position: relative !important;
}


#searchResultsTrack .mobile-product-image {
    height: 45% !important;
    object-fit: cover !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    width: 100% !important;
}


#searchResultsTrack .mobile-product-content {
    height: 55% !important;
    padding: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    font-size: 0.75rem !important;
}






@media (min-width: 641px) and (max-width: 768px) {
    .carousel-item { 
        width: 200px;
    }
}

@media (min-width: 769px) {
    .carousel-item { 
        width: 280px;
    }
    .mobile-icon-only {
        display: none !important;
    }
    .mobile-icon-text {
        display: inline-block !important;
    }
}



/* Harmonisation des cartes featured desktop */
@media (min-width: 769px) {
    .featured-card {
        height: 320px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .featured-card .relative {
        height: 140px !important;
        flex-shrink: 0;
    }
    
    .featured-card .p-6 {
        height: 180px !important;
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        transition: all 0.3s ease !important;
    }
    
    /* Titre featured - MÊME TAILLE QUE LE PRIX */
    .featured-card h3,
    .featured-card .font-semibold {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        font-weight: 600 !important;
        color: #1e40af !important;
    }
    
    .featured-card .text-sm.text-gray-600 {
        display: none !important; /* Masquée dans la carte aussi */
    }
}
    

/* Indicateur de contenu supplémentaire au survol */
@media (min-width: 769px) {
    .content-card::after {
        content: '⋯';
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        color: #94a3b8;
        font-size: 1.2rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .content-card:not(:hover)::after {
        opacity: 0.6;
    }
    
    .content-card:hover::after {
        opacity: 0;
    }
    
    .featured-card::after {
        content: '⋯';
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        color: #94a3b8;
        font-size: 1.2rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .featured-card:not(:hover)::after {
        opacity: 0.6;
    }
    
    .featured-card:hover::after {
        opacity: 0;
    }
}



/* Grille desktop optimisée */
@media (min-width: 769px) {
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 1.25rem !important;
        width: 100% !important;
        justify-items: center !important;
    }
    
    .featured-products-desktop .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 1.5rem !important;
    }
    
    /* Assurer que toutes les cartes ont la même hauteur */
    .content-card,
    .featured-card {
        width: 100% !important;
        max-width: 280px !important;
    }
}



.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 99, 235, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}
.carousel-container:hover .carousel-nav {
    opacity: 1;
}
.carousel-nav:hover {
    background: rgba(37, 99, 235, 1);
    transform: translateY(-50%) scale(1.1);
}
.carousel-nav.prev {
    left: 10px;
}
.carousel-nav.next {
    right: 10px;
}

/* Système de grille pour desktop */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .mobile-hidden { display: none !important; }
    .desktop-hidden { display: block !important; }
    .products-grid { display: none !important; }
    .carousel-container { display: block !important; }
}

@media (min-width: 769px) {
    .desktop-hidden { display: none !important; }
    .mobile-hidden { display: block !important; }
    .products-grid { display: grid !important; }
    .carousel-container { display: none !important; }
}


/* Styles pour les cartes desktop - NOUVELLE APPROCHE AVEC TOOLTIP */
@media (min-width: 769px) {
    /* Titre des produits desktop - TOUJOURS VISIBLE */
    .desktop-compact-title,
    .content-card h3 {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        font-weight: 600 !important;
        color: #1e40af !important;
        margin-bottom: 0.5rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        height: auto !important;
        min-height: 2.8em !important;
        max-height: 2.8em !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Description des produits desktop - MASQUÉE DANS LA CARTE */
    .desktop-compact-description,
    .content-card p {
        display: none !important; /* Complètement masquée dans la carte */
    }
    
    /* Prix des produits - RÉFÉRENCE POUR LA TAILLE */
    .desktop-compact-price,
    .content-card .text-primary {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #2563eb !important;
    }
    
    /* Container du contenu - HAUTEUR FIXE */
    .desktop-compact-content,
    .content-card .p-6 {
        height: 180px !important;
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        background: white !important;
        color: #1f2937 !important;
        transition: none !important; /* Pas de transition de hauteur */
    }
    
    /* Section des métadonnées - TOUJOURS VISIBLE */
    .desktop-compact-meta {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 0.75rem !important;
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
    }
    
    /* Section du prix - TOUJOURS VISIBLE */
    .desktop-compact-price-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 0.75rem !important;
        flex-shrink: 0 !important;
    }
    
    /* Actions TOUJOURS VISIBLES ET REMONTÉES */
    .desktop-compact-actions {
        display: flex !important;
        gap: 0.5rem !important;
        flex-shrink: 0 !important;
        margin-top: auto !important;
    }
    
    /* Boutons plus visibles */
    .desktop-compact-btn {
        flex: 1 !important;
        padding: 0.75rem 0.5rem !important; /* Padding augmenté */
        border-radius: 0.5rem !important;
        font-size: 0.85rem !important; /* Taille de police augmentée */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.375rem !important;
        min-height: 40px !important; /* Hauteur minimale augmentée */
        font-weight: 600 !important; /* Poids de police augmenté */
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important; /* Ombre pour plus de visibilité */
    }
    
    /* Icônes des boutons plus visibles */
    .desktop-compact-icon {
        font-size: 0.9rem !important;
    }
    
    /* Tooltip pour la description - VERSION OPTIMISÉE */
    .product-description-tooltip {
        position: absolute;
        bottom: calc(100% + 15px);
        left: 50%;
        transform: translateX(-50%) scale(0.95);
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        color: white;
        padding: 14px 18px;
        border-radius: 12px;
        font-size: 0.875rem;
        line-height: 1.5;
        max-width: 320px;
        width: max-content;
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(12px);
        white-space: normal;
        word-wrap: break-word;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    /* Flèche de la tooltip */
    .product-description-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 8px solid transparent;
        border-top-color: rgba(17, 24, 39, 0.95);
    }
    
    /* Affichage de la tooltip au survol - OPTIMISÉ */
    .product-tooltip-container:hover .product-description-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-5px) scale(1);
        transition-delay: 0.3s;
    }

    /* Délai avant disparition */
    .product-description-tooltip {
        transition-delay: 0s;
    }


    .product-tooltip-container:not(:hover) .product-description-tooltip {
        transition-delay: 0.2s;
    }



    
    /* Conteneur pour la tooltip - position relative avec overflow visible */
    .product-tooltip-container {
        position: relative;
        overflow: visible !important;
    }
    
    /* Fix pour permettre aux tooltips de s'afficher */
    .products-grid,
    .content-section,
    .featured-products-section {
        overflow: visible !important;
    }
    
    /* Badges et autres éléments inchangés */
    .desktop-compact-badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 0.375rem !important;
        display: inline-flex !important;
        align-items: center !important;
        font-weight: 500 !important;
    }
    
    .desktop-compact-heart {
        position: absolute !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(4px) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        z-index: 10 !important;
    }

    .desktop-compact-heart:hover {
        background: rgba(255, 255, 255, 1) !important;
        transform: scale(1.1) !important;
    }
    
    /* Stars rating et downloads count inchangés */
    .rating-stars-display {
        display: flex !important;
        align-items: center !important;
        gap: 0.125rem !important;
        font-size: 0.8rem !important;
        color: #fbbf24 !important;
    }

    .rating-stars-display .rating-number {
        color: #6b7280 !important;
        font-size: 0.75rem !important;
        margin-left: 0.25rem !important;
    }

    .downloads-count {
        display: flex !important;
        align-items: center !important;
        gap: 0.25rem !important;
        color: #6b7280 !important;
        font-size: 0.75rem !important;
    }

    .downloads-count i {
        color: #3b82f6 !important;
    }
}



/* Effet de survol spécial pour montrer la description */
@media (min-width: 769px) {
    .content-card::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #2563eb, #3b82f6);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }
    
    .content-card:hover::before {
        transform: scaleX(1);
    }
    
    /* Ajustement pour les cartes featured */
    .featured-card h3,
    .featured-card .font-semibold {
        font-size: 1rem !important; /* MÊME TAILLE QUE LE PRIX */
        line-height: 1.4 !important;
        font-weight: 600 !important;
        color: #1e40af !important;
    }
    
    .featured-card .text-sm.text-gray-600 {
        height: 0 !important;
        opacity: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .featured-card:hover .text-sm.text-gray-600 {
        height: auto !important;
        min-height: 3.9em !important;
        opacity: 1 !important;
    }
}





.product-modal {
    backdrop-filter: blur(10px);
}
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.pdf-preview-modal {
    backdrop-filter: blur(15px);
}
.pdf-secure-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.pdf-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 3rem;
    color: rgba(37, 99, 235, 0.1);
    font-weight: bold;
    pointer-events: none;
    z-index: 2;
    user-select: none;
}

.pdf-page-container {
    position: relative;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    user-select: none;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.quick-message {
    transition: all 0.2s ease;
    cursor: pointer;
}
.quick-message:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

.payment-modal {
    backdrop-filter: blur(10px);
}

.chat-messages-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
}

.chat-message {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-width: 85%;
    animation: slideInMessage 0.3s ease-out;
}

.chat-message.user {
    background: #2563eb;
    color: white;
    margin-left: auto;
    text-align: right;
}

.chat-message.admin {
    background: white;
    color: #1f2937;
    margin-right: auto;
    border: 1px solid #e5e7eb;
}

.chat-input-area {
    border-top: 1px solid #e5e7eb;
    background: white;
    padding: 1rem;
}

.chat-input-area #chatInput {
    min-width: 0;
}

.chat-input-area #attachFileBtn,
.chat-input-area #sendChat {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 360px) {
    .chat-input-area #attachFileBtn {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .chat-input-area #sendChat {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 0.5rem;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.success { background-color: #10b981; }
.notification.error { background-color: #ef4444; }
.notification.warning { background-color: #f59e0b; }
.notification.info { background-color: #3b82f6; }

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

.chat-typing {
    display: none;
    padding: 0.5rem;
    font-style: italic;
    color: #6b7280;
}

.chat-online {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    padding: 2px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: rgba(37, 99, 235, 0.8);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: rgba(37, 99, 235, 1);
    transform: scale(1.1);
}

.quantity-btn:disabled {
    background: rgba(156, 163, 175, 0.5);
    cursor: not-allowed;
    transform: none;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #1e40af;
    font-size: 14px;
}

.cart-item-total {
    font-weight: 600;
    color: #059669;
}

.download-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

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

.download-btn:hover:before {
    left: 100%;
}

.download-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.status-available {
    background-color: #dcfce7;
    color: #166534;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-expired {
    background-color: #fee2e2;
    color: #991b1b;
}

.download-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    min-width: 300px;
    text-align: center;
}

.download-icon {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-8px,0);
    }
    70% {
        transform: translate3d(0,-4px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}

.my-downloads-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.my-downloads-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.download-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.download-limit-indicator {
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.download-limit-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.3s ease;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: rgba(37, 99, 235, 1);
    transform: scale(1.2);
}



.featured-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.featured-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 340px !important; /* Augmenté pour éviter le débordement */
    display: flex !important;
    flex-direction: column !important;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.featured-card .relative {
    height: 140px !important;
    overflow: hidden;
    position: relative;
}

.featured-card .relative img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
}

.featured-card .p-6 {
    height: 200px !important; /* Augmenté pour contenir les boutons */
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}


.featured-card .font-semibold.mb-2 {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    height: 2.6em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}


.featured-card .text-sm.text-gray-600.mb-4 {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
    height: 3.9em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}




.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    transform: rotate(8deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 20 !important; /* Premier plan */
}
/* Styles pour les produits populaires mobile */
.featured-products-desktop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.featured-products-mobile {
    display: none;
}

@media (max-width: 640px) {
    .featured-products-desktop {
        display: none;
    }
    
    .featured-products-mobile {
        display: block;
    }
    
    .featured-carousel-container {
        position: relative;
        overflow: hidden;
        width: 100%;
    }
    
    .featured-carousel-track {
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
        width: 100% !important;
        transform: none !important;
        transition: none !important;
        /* Masquer la barre de défilement */
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* Internet Explorer 10+ */
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
    }
    
    /* Masquer la barre de défilement pour Chrome, Safari et Opera */
    .featured-carousel-track::-webkit-scrollbar {
        display: none !important;
    }
    
    .featured-carousel-item { 
        flex: 0 0 auto !important;
        width: 160px !important;
        min-width: 160px !important;
        scroll-snap-align: start !important;
    }
    
    /* Cartes produits populaires mobile compactes */
    .mobile-featured-card {
        aspect-ratio: 0.85 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 240px !important;
        min-height: 240px !important;
        width: 100% !important;
    }
    
    .mobile-featured-image {
        height: 45% !important;
        object-fit: cover !important;
        border-radius: 0.5rem 0.5rem 0 0 !important;
        width: 100% !important;
    }
    
    .mobile-featured-content {
        height: 55% !important;
        padding: 0.75rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        font-size: 0.75rem !important;
    }
    
    .mobile-featured-title {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.25rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-weight: 600 !important;
        height: 2.2em !important;
    }
    
    .mobile-featured-description {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.5rem !important;
        color: #6b7280 !important;
        height: 1.5em !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .mobile-featured-price {
        font-size: 0.75rem !important;
        font-weight: bold !important;
        color: #2563eb !important;
        margin-bottom: 0.5rem !important;
        line-height: 1 !important;
    }
    
    .mobile-featured-actions {
        display: flex !important;
        gap: 0.25rem !important;
        margin-top: auto !important;
    }
    
    .mobile-featured-btn {
        flex: 1 !important;
        padding: 0.5rem 0.25rem !important;
        border-radius: 0.375rem !important;
        font-size: 0.65rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.25rem !important;
        min-height: 32px !important;
        font-weight: 500 !important;
    }
    
    .mobile-featured-icon {
        font-size: 0.75rem !important;
    }
    
    .featured-mobile-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        background: linear-gradient(45deg, #f59e0b, #d97706);
        color: white;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.6rem;
        font-weight: bold;
        transform: rotate(8deg);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}




.stats-counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2563eb;
    display: block;
    text-align: center;
    margin: 0 auto;
}

.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.stats-section .grid {
    justify-items: center;
}


.stats-section .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.stats-section .w-16.h-16 {
    margin: 0 auto;
}


.quick-messages-container {
    max-height: 120px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.chat-quick-message {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.chat-quick-message:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

/* Cartes améliorées pour la mini page de recherche mobile */
@media (max-width: 640px) {
    #mobileSearchResults .mobile-search-card {
        display: flex;
        gap: 0.75rem;
        padding: 0.75rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        background: #ffffff;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
        margin-bottom: 0.75rem;
    }
    #mobileSearchResults .mobile-search-thumb {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
        border-radius: 0.5rem;
        object-fit: cover;
        background: #f3f4f6;
    }
    #mobileSearchResults .mobile-search-title {
        font-weight: 700;
        font-size: 0.95rem;
        color: #0f172a;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }
    #mobileSearchResults .mobile-search-meta {
        font-size: 0.75rem;
        color: #64748b;
        margin-bottom: 0.35rem;
    }
    #mobileSearchResults .mobile-search-price {
        font-weight: 700;
        font-size: 0.85rem;
        color: #1d4ed8;
    }
    #mobileSearchResults .mobile-search-actions {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    #mobileSearchResults .mobile-search-btn {
        flex: 1;
        padding: 0.45rem 0.5rem;
        border-radius: 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-align: center;
    }

    #searchResultsTrack .search-mobile-card {
        display: flex;
        gap: 0.75rem;
        padding: 0.75rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }
    #searchResultsTrack .search-mobile-thumb {
        width: 76px;
        height: 76px;
        border-radius: 0.6rem;
        object-fit: cover;
        flex-shrink: 0;
        background: #f3f4f6;
    }
    #searchResultsTrack .search-mobile-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }
    #searchResultsTrack .search-mobile-meta {
        font-size: 0.75rem;
        color: #6b7280;
        margin-bottom: 0.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #searchResultsTrack .search-mobile-price {
        font-size: 0.8rem;
        font-weight: 700;
        color: #1d4ed8;
        margin-bottom: 0.45rem;
    }
    #searchResultsTrack .search-mobile-actions {
        display: flex;
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    #searchResultsTrack .search-mobile-btn {
        padding: 0.4rem 0.65rem;
        border-radius: 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
    }
}

/* Empêcher le scroll de la page quand les résultats mobile sont ouverts */
html.mobile-search-open,
body.mobile-search-open {
    overflow: hidden !important;
    height: 100% !important;
}

.search-result-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8fafc;
}

.search-result-item:last-child {
    border-bottom: none;
}


/* Amélioration pour le highlight des résultats de recherche */
.product-highlighted {
    position: relative;
    z-index: 10 !important;
}

.search-result-item mark {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Amélioration du scroll sur mobile pour les carrousels */
@media (max-width: 640px) {
    .carousel-track {
        scroll-padding-left: 1rem !important;
        scroll-padding-right: 1rem !important;
        scroll-snap-type: x mandatory !important;
    }
    
    .carousel-item {
        scroll-snap-align: start !important;
        scroll-snap-stop: normal !important;
    }
}




.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.price-filter {
    margin: 1rem 0;
}

.price-range {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.price-range:hover {
    opacity: 1;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
}

.price-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: none;
}

.filters-sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.filters-sidebar.open {
    left: 0;
}

.filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.filters-overlay.show {
    display: block;
}

.category-filter {
    margin-bottom: 1rem;
}

.category-checkbox {
    margin-right: 0.5rem;
}

.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
}

.sort-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sort-option:hover {
    background-color: #f8fafc;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #d1d5db;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #f8fafc;
    border-color: #d1d5db;
}

.pagination-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-comparison {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 100;
}

.product-comparison.show {
    transform: translateY(0);
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.375rem;
}

.floating-actions {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 50;
}

.floating-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.6);
}

.scroll-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.advanced-search {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 1rem;
    display: none;
}

.advanced-search.show {
    display: block;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin: 0.25rem;
}

.filter-chip .remove {
    margin-left: 0.5rem;
    cursor: pointer;
    color: #6b7280;
}

.filter-chip .remove:hover {
    color: #ef4444;
}

.product-gallery {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.375rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.gallery-thumb.active {
    border-color: #2563eb;
}

.gallery-main {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.product-tabs {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.star {
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star.filled {
    color: #fbbf24;
}

.review-form {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.social-share {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.share-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: white;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.recently-viewed {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.newsletter-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    max-width: 400px;
    width: 90%;
    display: none;
}

.newsletter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 1rem;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Corrections pour l'affichage du menu utilisateur */
.user-dropdown {
    position: relative;
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 250px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    padding: 1rem;
    z-index: 100;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.user-dropdown-item:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.user-dropdown-item i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

.user-info {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.user-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.875rem;
    color: #6b7280;
}

.progress {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

/* Produits cachés pour filtrage */
.product-hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .pdf-watermark { font-size: 1.5rem; }
    .floating-actions { bottom: 1rem; left: 1rem; }
    .floating-btn { width: 2.5rem; height: 2.5rem; }
    .product-gallery { grid-template-columns: 1fr; }
    .gallery-thumbs { flex-direction: row; overflow-x: auto; }
    .user-dropdown-content { 
        position: fixed; 
        top: auto; 
        right: 1rem; 
        left: 1rem; 
        bottom: 5rem; 
        min-width: auto; 
    }
}

/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Styles pour les tooltips - AMÉLIORÉS */
.tooltip {
    position: relative;
    display: inline-block;
    overflow: visible !important;
}

.tooltip .tooltiptext {
    visibility: hidden;
    min-width: 120px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 9999;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    pointer-events: none;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #374151 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Styles pour les badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-red {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-green {
    background-color: #dcfce7;
    color: #166534;
}

.badge-yellow {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-purple {
    background-color: #ede9fe;
    color: #6b21a8;
}

.badge-gray {
    background-color: #f3f4f6;
    color: #374151;
}

/* Styles pour les alertes */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Styles pour les cartes de contenu */
.content-card {
    background: white;
    border-radius: 0.75rem;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    height: 240px !important;
    min-height: 240px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Styles améliorés pour la section contact */
#contact .content-card {
    height: auto !important;
    min-height: auto !important;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
}

#contact .content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    border-color: #3b82f6;
}

.content-card:hover {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    transform: translateY(-5px);
}

.content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.content-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.content-card-body {
    color: #6b7280;
    line-height: 1.6;
}

.content-card-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Styles pour la galerie d'images */
.product-images-gallery {
    position: relative;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.thumbnail-item:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles pour le viewer d'images */
#imageViewerModal {
    z-index: 60;
}

.viewer-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0.6;
}

.viewer-thumbnail:hover,
.viewer-thumbnail.active {
    border-color: #ffffff;
    opacity: 1;
    transform: scale(1.1);
}

.viewer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive pour mobile */
@media (max-width: 640px) {
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .viewer-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    #imageViewerModal .absolute.left-4,
    #imageViewerModal .absolute.right-4 {
        left: 1rem;
        right: 1rem;
    }
    
    #imageViewerModal .absolute.bottom-20 {
        bottom: 4rem;
    }


    #searchResultsTrack .product-description-tooltip {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    #searchResultsTrack .mobile-product-description {
        display: none !important;
    }

    #backToTop {
        bottom: 5rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    #chatWidget {
        bottom: 1rem;
        right: 1rem;
    }
    
    #chatWidget #chatToggle {
        width: 2.5rem;
        height: 2.5rem;
    }




}



/* Styles spécifiques pour les résultats de recherche mobile */
@media (max-width: 640px) {
    .search-results {
        max-height: 400px;
        border-radius: 0 0 0.5rem 0.5rem;
    }
    
    .search-results .carousel-track {
        gap: 1rem !important;
        padding: 0 !important;
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .search-results .carousel-track::-webkit-scrollbar {
        display: none !important;
    }
    
    .search-results .carousel-item {
        flex: 0 0 auto !important;
        width: 160px !important;
        min-width: 160px !important;
        scroll-snap-align: start !important;
    }
    
    /* Éviter les tooltips dans les résultats de recherche */
    .search-results .tooltip,
.search-results .tooltip .tooltiptext,
.search-results .wishlist-btn .tooltiptext {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
    
    /* Structure mobile spécifique pour les résultats */
    .search-results .mobile-product-image-container {
        position: relative;
        height: 45%;
        border-radius: 0.5rem 0.5rem 0 0;
        overflow: hidden;
    }
    
    .search-results .mobile-product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .search-results .mobile-product-content {
        height: 55%;
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .search-results .mobile-product-title {
        font-size: 0.7rem;
        line-height: 1.1;
        margin-bottom: 0.25rem;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.2em;
    }
    
    .search-results .mobile-product-price {
        font-size: 0.75rem;
        font-weight: bold;
        color: #2563eb;
        margin-bottom: 0.5rem;
        line-height: 1;
    }
    
    .search-results .mobile-product-actions {
        display: flex;
        gap: 0.25rem;
        margin-top: auto;
    }
    
    .search-results .mobile-action-btn {
        position: relative !important;
    }
    
    .search-results .mobile-action-icon {
        font-size: 0.75rem;
    }

    .search-results .mobile-action-btn::before,
    .search-results .mobile-action-btn::after {
        display: none !important;
    }
}

/* Animation pour le changement d'images */
.image-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Styles pour l'icône déplaçable */
#chatWidget.dragging {
    z-index: 10000;
    transform: scale(1.1);
    cursor: grabbing !important;
}

#chatWidget.dragging #chatToggle {
    box-shadow: 0 25px 50px -5px rgba(59, 130, 246, 0.8) !important;
    transform: rotate(5deg);
}

#chatWidget.dragging #dragIndicator {
    opacity: 1 !important;
}

#chatWidget:hover #dragIndicator {
    opacity: 0.7;
}

/* Animation de placement */
@keyframes place-animation {
    0% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(0.95) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

#chatWidget.placed {
    animation: place-animation 0.3s ease-out;
}



/* Correction de la position des boutons flottants */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 30;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

#backToTop.show {
    opacity: 0.6;
    visibility: visible;
}

#backToTop:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Repositionner le chat pour éviter la superposition */
#chatWidget {
    bottom: 6rem;
    right: 1.5rem;
    z-index: 100000 !important;
}

/* Overlay du chat */
#chatOverlay {
    z-index: 99998 !important;
    backdrop-filter: blur(20px) !important;
    background: rgba(0, 0, 0, 0.75) !important;
}

#chatOverlay.show {
    opacity: 1 !important;
}

/* Indicateur de zone de placement */
.drop-zone-indicator {
    position: fixed;
    border: 2px dashed #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.drop-zone-indicator.visible {
    opacity: 1;
}




/* Produits compacts pour desktop */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1rem !important;
    }
}
    
.desktop-compact-product {
    height: 320px !important;
    min-height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
}

    
.desktop-compact-image {
    height: 140px !important;
    object-fit: cover !important;
    width: 100%;
    border-radius: 0.75rem 0.75rem 0 0;
}
    
.desktop-compact-content {
    height: 180px !important;
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: white;
    color: #1f2937 !important;
}

.desktop-compact-title {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-weight: 600 !important;
    height: 2.6em !important;
    color: #1f2937 !important;
}
    
.desktop-compact-description {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
    color: #6b7280 !important;
    height: 3.9em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}


.desktop-compact-price-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.75rem !important;
}
    
.desktop-compact-price {
    font-size: 1rem !important;
    font-weight: bold !important;
    color: #2563eb !important;
    margin: 0 !important;
}


.desktop-compact-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.75rem !important;
}
    
.desktop-compact-actions {
    display: flex !important;
    gap: 0.5rem !important;
    margin-top: auto !important;
}
    
.desktop-compact-btn {
    flex: 1 !important;
    padding: 0.6rem 0.5rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.375rem !important;
    min-height: 36px !important;
    font-weight: 500 !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
 
.desktop-compact-actions .desktop-compact-btn.bg-green-600 {
    background-color: #16a34a !important;
    color: #ffffff !important;
}

.desktop-compact-actions .desktop-compact-btn.bg-gradient-to-r {
    color: #ffffff !important;
}
    
.desktop-compact-icon {
    font-size: 0.8rem !important;
}
    
.desktop-compact-badge {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    display: inline-flex !important;
    align-items: center !important;
    font-weight: 500 !important;
}
    
.desktop-compact-heart {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.desktop-compact-heart:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
}

/* Styles pour le bouton "Voir plus" */
.view-more-container {
    text-align: right !important;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}
.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-size: 0.9rem;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.view-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.product-hidden-initially {
    display: none !important;
}


/* Stars rating intégré */
.rating-stars-display {
    display: flex !important;
    align-items: center !important;
    gap: 0.125rem !important;
    font-size: 0.8rem !important;
    color: #fbbf24 !important;
}

.rating-stars-display .rating-number {
    color: #6b7280 !important;
    font-size: 0.75rem !important;
    margin-left: 0.25rem !important;
}

/* Downloads count styling */
.downloads-count {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    color: #6b7280 !important;
    font-size: 0.75rem !important;
}

.downloads-count i {
    color: #3b82f6 !important;
}





/* Bouton de test discret */
#donationTestBtn {
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}






/* ========================================
   AMÉLIORATION UX MOBILE - CART SIDEBAR
   ======================================== */

@media (max-width: 768px) {
    /* Structure du Cart Sidebar pour mobile */
    #cartSidebar .h-full {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height pour mieux gérer les barres d'URL mobiles */
    }
    
    /* Header du panier - hauteur fixe */
    #cartSidebar .border-b {
        flex-shrink: 0;
        padding: 1rem !important;
    }
    
    /* Zone scrollable du contenu (articles du panier) */
    #cartSidebar .flex-1.overflow-y-auto {
        flex: 1 1 auto;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        /* Padding bottom pour éviter que le contenu soit caché sous les boutons */
        padding-bottom: 1rem !important;
        /* Hauteur calculée dynamiquement : viewport - header - footer actions */
        max-height: calc(100vh - 80px - 200px);
        max-height: calc(100dvh - 80px - 200px);
    }
    
    /* Section Code Promo - flex-shrink pour s'adapter */
    #cartSidebar #promoSection {
        flex-shrink: 0;
        padding: 0.75rem 1rem !important;
    }
    
    /* Section Totaux et Boutons - STICKY en bas */
    #cartSidebar .border-t:last-child,
    #cartSidebar > div > div:last-child {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to bottom, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 10;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    }
    
    /* Boutons d'action - optimisation tactile mobile */
    #cartSidebar button#clearCartBtn,
    #cartSidebar button#checkoutBtn,
    #cartSidebar button#getFreeBtn {
        min-height: 44px !important; /* Taille tactile recommandée Apple/Google */
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
        font-weight: 600 !important;
    }
    
    /* Stack vertical pour les boutons sur petits écrans */
    #cartSidebar .flex.flex-col.sm\:flex-row {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    /* Icônes des boutons - meilleure visibilité */
    #cartSidebar button i.fas {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    /* Amélioration du contraste pour le bouton "Payer" */
    #cartSidebar button#checkoutBtn {
        background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
        color: #1e40af !important;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    
    #cartSidebar button#checkoutBtn:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(59, 130, 246, 0.4);
    }
    
    /* Amélioration du bouton "Vider" */
    #cartSidebar button#clearCartBtn {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    
    #cartSidebar button#clearCartBtn:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
    }
    
    /* Amélioration des totaux - lisibilité */
    #cartSidebar .space-y-2.mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    #cartSidebar #cartTotal {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #fbbf24; /* Couleur dorée pour mettre en valeur */
    }
    
    /* Zone de scroll plus visible */
    #cartSidebar .overflow-y-auto::-webkit-scrollbar {
        width: 6px;
    }
    
    #cartSidebar .overflow-y-auto::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }
    
    #cartSidebar .overflow-y-auto::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    #cartSidebar .overflow-y-auto::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
}

/* Optimisations pour très petits écrans (≤360px) */
@media (max-width: 360px) {
    #cartSidebar button#clearCartBtn,
    #cartSidebar button#checkoutBtn,
    #cartSidebar button#getFreeBtn {
        font-size: 0.85rem !important;
        padding: 0.65rem 0.75rem !important;
    }
    
    #cartSidebar > div > div:last-child {
        padding: 0.75rem !important;
    }
}

/* Bloquer le scroll externe pour les sidebars en mobile */
@media (max-width: 768px) {
    /* Autoriser le scroll interne uniquement dans les sidebars */
    #cartSidebar, #wishlistSidebar {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Assurer que le contenu scrollable a la bonne hauteur */
    #cartSidebar .h-full, #wishlistSidebar .h-full {
        overflow-y: auto !important;
        max-height: 100vh !important;
    }
    
    /* Bloquer le scroll du body quand les modales sont ouvertes */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
}

/* Modale de newsletter - bloquer scroll externe */
.newsletter-popup {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: 90vh !important;
}

/* S'assurer que les overlays couvrent tout l'écran */
.sidebar-overlay, #filtersOverlay, #newsletterOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 40 !important;
}

@media (max-width: 640px) {
  section[data-category]:not([data-category="search"]) .carousel-track {
    touch-action: auto !important;
    -ms-touch-action: auto !important;
    overscroll-behavior-x: contain !important;
    overscroll-behavior-y: auto !important;
  }
}

@media (max-width: 640px) {
  section[data-category] .carousel-track {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  section[data-category] .carousel-item {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
  }
}

/* Styles pour la modale de maintenance futuriste */
.maintenance-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.maintenance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    opacity: 0.95;
}

.maintenance-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #00d4ff, #5d5cde);
    border-radius: 50%;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

.maintenance-container {
    position: relative;
    max-width: 600px;
    width: 90%;
    margin: 0;
    z-index: 10;
}

.maintenance-content {
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.maintenance-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(93, 92, 222, 0.8), transparent);
}

.maintenance-icon {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.gear-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.gear-1, .gear-2 {
    position: absolute;
    color: #5d5cde;
    animation: spin 4s linear infinite;
}

.gear-1 {
    font-size: 3rem;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.gear-2 {
    font-size: 2rem;
    bottom: -10px;
    right: 0;
    animation-direction: reverse;
    animation-duration: 3s;
    color: #00d4ff;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pulse-ring, .pulse-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(93, 92, 222, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.pulse-ring {
    width: 100px;
    height: 100px;
}

.pulse-ring-2 {
    width: 120px;
    height: 120px;
    animation-delay: 1s;
    border-color: rgba(0, 212, 255, 0.3);
}

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

.maintenance-text {
    color: white;
}

.maintenance-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #5d5cde, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 10px rgba(93, 92, 222, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.maintenance-message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #e2e8f0;
}

.progress-container {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #5d5cde, #00d4ff, #5d5cde);
    background-size: 200% 100%;
    animation: progressLoad 3s ease-in-out infinite, progressShine 2s linear infinite;
    border-radius: 4px;
}

@keyframes progressLoad {
    0% { width: 0; }
    50% { width: 75%; }
    100% { width: 45%; }
}

@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-text {
    font-size: 0.9rem;
    color: #94a3b8;
    animation: progressText 2s ease-in-out infinite;
}

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

.maintenance-info {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.info-item i {
    color: #5d5cde;
    width: 16px;
    text-align: center;
}

.maintenance-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.maintenance-social p {
    margin-bottom: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link.facebook { background: linear-gradient(135deg, #1877f2, #42a5f5); }
.social-link.twitter { background: linear-gradient(135deg, #1da1f2, #64b5f6); }
.social-link.instagram { background: linear-gradient(135deg, #e4405f, #fd1d1d, #fcb045); }

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .maintenance-modal {
        padding: 1rem;
    }

    .maintenance-container {
        width: 100%;
    }

    .maintenance-content {
        padding: 2rem 1.5rem;
        margin: 0;
    }
    
    .maintenance-title {
        font-size: 2rem;
    }
    
    .maintenance-message {
        font-size: 1rem;
    }
    
    .gear-1 {
        font-size: 2.5rem;
    }
    
    .gear-2 {
        font-size: 1.5rem;
    }
    
    .info-item {
        font-size: 0.85rem;
    }
    
    .maintenance-info {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .maintenance-title {
        font-size: 1.75rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Empêcher le défilement du body quand la modale est ouverte */
html.maintenance-active,
body.maintenance-active {
    overflow: hidden !important;
    height: 100%;
    overscroll-behavior: none;
}

body.maintenance-active {
    position: fixed;
    inset: 0;
    width: 100%;
    touch-action: none;
}



/* Styles pour corriger l'affichage de la modale de donation */
#donationModalOverlay {
    z-index: 99999 !important;
    backdrop-filter: blur(20px) !important;
    background: rgba(0, 0, 0, 0.75) !important;
}

#donationModal {
    z-index: 99999 !important;
}

#donationModalOverlay.show {
    opacity: 1 !important;
}

#donationModal.show {
    opacity: 1 !important;
}

#donationModal.show #donationModalContent {
    transform: scale(1) !important;
}

#donationModalContent {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 100px rgba(59, 130, 246, 0.1) !important;
    backdrop-filter: blur(16px) !important;
}

.dark #donationModalContent {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Animation du cœur */
.donation-heart-beat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* Styles pour les boutons de montant */
.donation-amount-option {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.donation-amount-option:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #3b82f6;
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 
        0 10px 25px -5px rgba(59, 130, 246, 0.25),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

.donation-amount-option.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-color: #3b82f6;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px -5px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.donation-amount-option.selected .font-bold {
    color: white !important;
}

.donation-amount-option.selected .text-gray-500 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Effets de brillance sur les boutons */
.donation-amount-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.donation-amount-option:hover::before {
    left: 100%;
}

/* Stats améliorées */
.donation-amount-option .font-bold {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Boutons d'action modernisés */
button[onclick="redirectToDonation()"] {
    background: linear-gradient(135deg, #ef4444 0%, #ec4899 50%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
}

button[onclick="redirectToDonation()"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

button[onclick="redirectToDonation()"]:hover::before {
    left: 100%;
}

/* Headers avec dégradés */
.bg-gradient-to-br {
    background-image: linear-gradient(145deg, var(--tw-gradient-stops));
}

.from-red-400 {
    --tw-gradient-from: #f87171;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(248, 113, 113, 0));
}

.to-pink-500 {
    --tw-gradient-to: #ec4899;
}

/* Responsive amélioré */
@media (max-width: 640px) {
    #donationModalContent {
        margin: 0.5rem !important;
        max-height: calc(100vh - 1rem) !important;
        border-radius: 1.5rem !important;
    }
    
    .donation-amount-option {
        padding: 0.75rem !important;
    }
    
    .donation-amount-option .font-bold {
        font-size: 1.125rem !important;
    }
}

@media (max-width: 480px) {
    #donationModalContent {
        margin: 0.25rem !important;
        max-height: calc(100vh - 0.5rem) !important;
    }
    
    .grid.grid-cols-2.sm\\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }
}

/* Amélioration des stats */
.bg-blue-50 {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.bg-green-50 {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Message principal amélioré */
.bg-gradient-to-r.from-blue-50.to-purple-50 {
    background: linear-gradient(135deg, #eff6ff 0%, #f3e8ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(8px);
}

/* Message de transparence */
.bg-blue-50.border.border-blue-100 {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(4px);
}

/* Bouton de test */
#donationTestBtn {
    z-index: 50 !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animations fluides */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
    transition-duration: 300ms;
}

/* Effet de profondeur */
.shadow-2xl {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Corrections spécifiques pour mobile */
@media (max-width: 768px) {
    #donationModalContent .p-6 {
        padding: 1rem !important;
    }
    
    #donationModalContent .relative.p-6 {
        padding: 1.5rem 1rem 1rem 1rem !important;
    }
}



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

/* Ajustement de l'espacement des floating actions */
@media (max-width: 1023px) {
    .floating-actions {
        bottom: 2rem;
        left: Orem;
        gap: 0.75rem; /* Réduire l'espacement entre les boutons */
    }
    
    /* S'assurer que le bouton de donation est au-dessus */
    .donation-btn-mobile {
        order: -1;
        margin-bottom: 0.5rem;
    }
}

/* Masquer le bouton de donation sur desktop si vous avez déjà une modal de donation */
@media (min-width: 1024px) {
    .donation-btn-mobile {
        display: none !important;
    }
}




/* Amélioration du scroll mobile - Gestion des conflits touch */
@media (max-width: 640px) {
    /* Conteneur principal avec scroll amélioré */
    body {
        touch-action: pan-y pinch-zoom;
        overscroll-behavior-y: contain;
    }
    
    /* Zones de produits avec gestion intelligente du touch */
    .carousel-track,
    .featured-carousel-track,
    #searchResultsTrack {
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;
        position: relative;
        scroll-behavior: smooth;
    }
    
    /* Zone de scroll vertical forcé */
    .mobile-vertical-scroll-zone {
        position: absolute;
        top: 0;
        right: 0;
        width: 30px;
        height: 100%;
        z-index: 20;
        pointer-events: auto;
        touch-action: pan-y;
    }
    
    /* Amélioration pour les cartes produits */
    .mobile-product-card,
    .mobile-featured-card {
        touch-action: manipulation;
        pointer-events: auto;
    }
    
    /* Conteneurs de sections avec scroll vertical préservé */
    section {
        position: relative;
        touch-action: pan-y;
    }
    
    .carousel-container {
        position: relative;
        touch-action: pan-x pan-y;
    }
    
    /* Zone de débordement pour le scroll vertical */
    .vertical-scroll-helper {
        position: absolute;
        left: 0;
        right: 0;
        top: -20px;
        bottom: -20px;
        pointer-events: none;
        z-index: 1;
    }
    
    .vertical-scroll-helper.active {
        pointer-events: auto;
        touch-action: pan-y;
    }
}

/* Indicateur visuel pour les zones de scroll */
@media (max-width: 640px) {
    .scroll-indicator {
        position: fixed;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        width: 4px;
        height: 40px;
        background: rgba(59, 130, 246, 0.3);
        border-radius: 2px;
        opacity: 0;
        transition: opacity 0.2s ease;
        z-index: 25;
        pointer-events: none;
    }
    
    .scroll-indicator.visible {
        opacity: 1;
    }
    
    .scroll-indicator::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 20px;
        background: rgba(59, 130, 246, 0.8);
        border-radius: 2px;
        animation: scrollProgress 2s ease-in-out infinite;
    }
    
    @keyframes scrollProgress {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(20px); }
    }
}




/* Styles additionnels pour les améliorations de scroll mobile */
@media (max-width: 640px) {
    /* Améliorer la visibilité des zones de scroll */
    .carousel-container::after {
        content: '⬍';
        position: absolute;
        top: 50%;
        right: 5px;
        transform: translateY(-50%) rotate(90deg);
        color: rgba(59, 130, 246, 0.3);
        font-size: 14px;
        font-weight: bold;
        pointer-events: none;
        z-index: 15;
        transition: opacity 0.3s ease;
    }
    
    .carousel-container:hover::after {
        opacity: 0.7;
    }
    
    /* Améliorer le feedback visuel lors du scroll */
    .carousel-track.scrolling {
        border-left: 2px solid rgba(59, 130, 246, 0.3);
        transition: border-color 0.2s ease;
    }
    
    /* Zone de débordement pour le scroll vertical */
    .mobile-scroll-escape {
        position: absolute;
        top: -10px;
        bottom: -10px;
        left: -10px;
        right: -10px;
        pointer-events: none;
        z-index: 0;
    }
    
    .mobile-scroll-escape.active {
        pointer-events: auto;
        touch-action: pan-y;
        background: rgba(59, 130, 246, 0.05);
        border: 1px dashed rgba(59, 130, 246, 0.2);
        border-radius: 8px;
    }
    
    /* Indicateur de mode de scroll actif */
    .scroll-mode-indicator {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(59, 130, 246, 0.9);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
        z-index: 35;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .scroll-mode-indicator.active {
        opacity: 1;
    }
    
    /* Amélioration des produits pour le touch */
    .mobile-product-card {
        position: relative;
        isolation: isolate;
    }
    
    .mobile-product-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 20px;
        height: 100%;
        background: transparent;
        z-index: 10;
        touch-action: pan-y;
    }
}

/* Animation pour les corrections de scroll */
@keyframes scrollFix {
    0% { background-color: rgba(59, 130, 246, 0.1); }
    50% { background-color: rgba(59, 130, 246, 0.3); }
    100% { background-color: transparent; }
}

.scroll-fixing {
    animation: scrollFix 0.5s ease-out;
}



/* Correction du scroll accéléré */
html {
    scroll-behavior: auto !important;
}

body, html {
    overflow-x: hidden;
    scroll-behavior: auto;
}

/* Désactiver les animations de scroll CSS */
* {
    scroll-behavior: auto !important;
}

/* Normalisation du scroll pour tous les conteneurs */
.product-grid, .product-container {
    scroll-behavior: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Anti-momentum scrolling sur iOS/Safari */
body {
    -webkit-overflow-scrolling: auto;
    overflow-scrolling: auto;
}

.chat-tooltip{display:none;}
.chat-assist-label{display:none;}

@media (min-width: 640px){
  #chatToggle:hover .chat-tooltip,
  #chatToggle:focus .chat-tooltip,
  #chatToggle:focus-visible .chat-tooltip{display:block;}
}

@media (max-width: 639.98px){
  #chatToggle:active + .chat-assist-label,
  #chatToggle:focus + .chat-assist-label,
  #chatToggle:focus-visible + .chat-assist-label{display:block;}
}


            @keyframes fadeIn {
                from { opacity: 0; transform: translateX(100%); }
                to { opacity: 1; transform: translateX(0); }
            }
            .animate-fade-in {
                animation: fadeIn 0.3s ease;
            }

        /* Animation fade-in-up */
        @keyframes fade-in-up {
            from {
                opacity: 0;
                transform: translateY(25px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-fade-in-up {
            animation: fade-in-up 0.7s ease-out forwards;
            opacity: 0;
        }
        
        /* Animation pulse lente pour le badge */
        @keyframes pulse-slow {
            0%, 100% { 
                opacity: 1; 
                transform: scale(1);
            }
            50% { 
                opacity: 0.9; 
                transform: scale(1.02);
            }
        }
        
        .animate-pulse-slow {
            animation: pulse-slow 3s ease-in-out infinite;
        }
        
        /* Support du texte gradient pour tous les navigateurs */
        .bg-clip-text {
            -webkit-background-clip: text;
            background-clip: text;
        }
        
        /* Amélioration du hover sur les cards */
        .group:hover {
            z-index: 10;
        }
        
        /* Responsive pour très petits écrans */
        @media (max-width: 320px) {
            .text-2xl {
                font-size: 1.25rem !important;
            }
            
            .p-5 {
                padding: 1rem !important;
            }
            
            .gap-4 {
                gap: 0.75rem !important;
            }
        }
        
        /* Amélioration de la lisibilité sur mobile */
        @media (max-width: 480px) {
            .leading-relaxed {
                line-height: 1.7 !important;
            }
        }
        
        /* Suppression du soulignement des liens cards */
        a.no-underline,
        a.no-underline:hover {
            text-decoration: none !important;
        }

.donation-notification {
    position: fixed;
    z-index: 1000;
    width: 320px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.5s ease-out forwards;
}

.donation-notification.show {
    transform: translateX(0);
}

.donation-notification.hide {
    transform: translateX(-100%);
    opacity: 0;
}

.donation-notification.bottom-left {
    bottom: 20px;
    left: 20px;
}

.donation-notification.bottom-right {
    bottom: 20px;
    right: 20px;
    transform: translateX(100%);
}

.donation-notification.bottom-right.show {
    transform: translateX(0);
}

.donation-notification.bottom-right.hide {
    transform: translateX(100%);
}

.donation-notification.top-left {
    top: 20px;
    left: 20px;
}

.donation-notification.top-right {
    top: 20px;
    right: 20px;
    transform: translateX(100%);
}

.donation-notification.top-right.show {
    transform: translateX(0);
}

.donation-notification.top-right.hide {
    transform: translateX(100%);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Position centrée */
.donation-notification.center {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%) scale(0.95);
    animation: centerIn 0.35s ease-out forwards;
}

.donation-notification.center.show {
    transform: translate(-50%, -50%) scale(1);
}

.donation-notification.center.hide {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
}

@keyframes centerIn {
    from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
    to   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}

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

.donation-heart {
    animation: pulse 2s infinite;
}

.donation-notification .donation-cta-btn {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.donation-notification .donation-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.donation-notification .donation-cta-btn:active {
    transform: translateY(0);
}

.donation-notification .donation-cta-btn i {
    color: #ffffff;
}

@media (max-width: 640px) {
    .donation-notification {
        width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
        transform: translateY(100%) !important;
    }
    
    .donation-notification.show {
        transform: translateY(0) !important;
    }
    
    .donation-notification.hide {
        transform: translateY(100%) !important;
    }
    
    .donation-notification.bottom-left,
    .donation-notification.bottom-right {
        bottom: 20px;
    }
    
    .donation-notification.top-left,
    .donation-notification.top-right {
        top: 20px;
        transform: translateY(-100%) !important;
    }
    
    .donation-notification.top-left.hide,
    .donation-notification.top-right.hide {
        transform: translateY(-100%) !important;
    }

    /* Spécifique mobile pour la position centrée */
    .donation-notification.center {
        width: calc(100vw - 40px);
        max-width: 420px;
        left: 50% !important;
        right: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
    }
    .donation-notification.center.show {
        transform: translate(-50%, -50%) !important;
    }
    .donation-notification.center.hide {
        transform: translate(-50%, -50%) scale(0.95) !important;
    }
}


