/* Lenticular Configurator Styles */

#lenticular-app-root {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
    font-family: 'Inter', sans-serif;
}

.lenticular-container {
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e4e4e7;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lenticular-columns {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 1024px) {
    .lenticular-columns {
        flex-direction: row;
        min-height: 700px;
        height: auto;
        align-items: stretch;
    }

    /* Apply border radius to children since overflow is visible */
    .preview-column {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .options-column {
        border-top-right-radius: 2rem;
        border-bottom-right-radius: 0;
    }
}

/* Left Column: Preview */
.preview-column {
    flex: 2;
    background: transparent;
    padding: 0 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    border-right: 1px solid #e4e4e7;
    border-top: none;
    border-bottom: none;
    border-left: none;
    /* Mobile radius */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    align-self: stretch;
}

.lenticular-preview-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    cursor: grab;
    margin-top: 0;
    padding-top: 0;
    align-self: flex-start;
    /* Hand icon */
}

/* Mode Animation : remonter la carte et mettre le slider en dessous */
.preview-column.animation-mode {
    justify-content: flex-start !important;
    align-items: center !important;
    padding-top: 0 !important;
}

.preview-column.animation-mode .lenticular-preview-wrapper {
    flex: 0 0 auto;
    height: auto;
    margin-bottom: 2rem;
    align-items: center;
    padding-top: 0;
    justify-content: center;
    align-self: center;
    width: 100%;
}

.preview-column.animation-mode .slider-wrapper {
    margin-top: 0;
    width: 100%;
    max-width: 500px;
}

.preview-column.animation-mode .animation-slider-wrapper {
    display: block !important;
}

.preview-column.animation-mode .slider-wrapper:not(.animation-slider-wrapper) {
    display: none !important;
}

.lenticular-preview-wrapper:active {
    cursor: grabbing;
}

.lenticular-card {
    position: relative;
    background: #ffffff;
    border: 4px solid #e4e4e7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
    margin-top: 20px;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Lenticular Lines Effect */
.lenticular-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.15) 0px,
            rgba(255, 255, 255, 0.15) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    z-index: 20;
    mix-blend-mode: overlay;
    border-radius: 8px;
    /* Match card radius */
}

.lenticular-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    object-fit: cover;
    pointer-events: none;
    background: transparent !important;
    border: none !important;
}

.lenticular-image.crop-active-mode {
    object-fit: contain !important;
    background-color: #ffffff !important;
    /* Solid white background as requested */
}

.image-b {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Right Column: Options */
.options-column {
    flex: 1;
    padding: 0 1.25rem 0.75rem 1.25rem;
    /* Reduced top padding to save space */
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: visible;
    /* No scrollbar - content should fit */
    position: relative;
    z-index: 10;
    /* Mobile radius */
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    align-self: stretch;
}

.custom-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-option span.dashicons {
    font-size: 24px;
    color: #4b5563;
    margin-bottom: 8px;
    display: block;
}

.custom-option img.finish-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
    border-radius: 4px;
}

.section-title {
    font-size: 1rem;
    /* Reduced */
    font-weight: 800;
    color: #18181b;
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    /* Align left */
}

.step-badge {
    background: #4f46e5;
    color: white;
    width: 1.25rem;
    /* Reduced */
    height: 1.25rem;
    /* Reduced */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Image Uploads */
.image-uploads {
    display: flex;
    gap: 0.75rem;
    /* Reduced */
    margin-bottom: 1rem;
    /* Reduced from 2rem */
}

.upload-box {
    flex: 1;
    position: relative;
    height: 12rem;
    /* Increased to 12rem */
    border: 2px dashed #d4d4d8;
    border-radius: 0.75rem;
    overflow: hidden;
    /* Ensure image is truncated/clipped */
    background: #fafafa;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.upload-box:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.upload-box:hover .upload-icon-main i {
    transform: scale(1.1);
    color: #7c3aed;
}

.upload-box:hover .upload-click-hint {
    opacity: 1;
    transform: scale(1);
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 3rem);
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    pointer-events: none;
}

.upload-icon-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon-main i {
    transition: all 0.2s;
}

.upload-click-hint {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 4px 16px rgba(139, 92, 246, 0.6);
    }
}

.upload-preview {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    /* Allow truncation */
    display: none;
    z-index: 5;
}

.upload-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    pointer-events: none;
}

.btn-browse {
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #8b5cf6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    color: white;
    width: 100%;
    transition: background-color 0.2s;
    position: relative;
    z-index: 5;
    white-space: nowrap;
}

.btn-browse:hover {
    background: #7c3aed;
}

.btn-browse:active {
    background: #6d28d9;
}

.btn-browse:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #18181b;
    margin-bottom: 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Options Grid - FORMAT et FINITION côte à côte */
.options-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
    align-items: stretch;
}

/* S'assurer que chaque carte est bien séparée et indépendante */
.options-grid > .option-card {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

/* S'assurer que FORMAT et FINITION sont bien côte à côte */
#format-card,
#finish-card {
    display: flex !important;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
}

#finish-trigger {
    justify-content: space-between;
    position: relative;
}

#finish-trigger .finish-icon-wrapper {
    position: absolute;
    left: 0.75rem;
    z-index: 1;
}

#finish-trigger .finish-text {
    text-align: center;
    flex: 1;
    width: 100%;
    padding: 0 2.5rem;
}

.option-card {
    background: #fcfcfc;
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
    /* Reduced */
    padding: 0.75rem;
    /* Reduced from 1rem */
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.2s;
    position: relative;
    /* For dropdown positioning */
}

.option-card.active {
    border-color: #6366f1;
    background: #eef2ff;
    z-index: 100;
    /* Ensure active card is above footer */
}

.option-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-label .dashicons {
    font-size: 0.875rem;
    width: 0.875rem;
    height: 0.875rem;
    color: #a1a1aa;
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    cursor: pointer;
}

.custom-select-trigger {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    /* Reduced */
    position: relative;
    font-weight: 700;
    color: #18181b;
    gap: 0.5rem;
}

.finish-icon-wrapper {
    display: flex;
    align-items: center;
    color: #8b5cf6;
    flex-shrink: 0;
}

.finish-icon-wrapper i {
    font-size: 1.25rem;
}

.finish-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.custom-select-trigger .dashicons {
    color: #a1a1aa;
    transition: transform 0.2s;
    position: absolute;
    right: 0.75rem;
}

.custom-select-trigger span:first-child {
    text-align: center;
    flex: 1;
}

#size-trigger span:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8b5cf6;
}

/* Rotation de l'icône désactivée */
/* .option-card.active .custom-select-trigger .dashicons {
    transform: rotate(180deg);
} */

/* Finish Description */
.finish-description {
    font-size: 0.95rem;
    color: #71717a;
    margin-top: 0.25rem;
    line-height: 1.4;
    font-weight: 500;
}

.custom-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e4e7;
    z-index: 9999;
    /* Increased z-index */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    padding: 0.5rem;
    width: 300px;
    /* Default width */
}

/* Wide Dropdown & Tabs */
.wide-dropdown {
    width: 320px;
    /* Wider for tabs */
    padding: 0;
    /* Reset padding for tabs */
    overflow: hidden;
}

.format-tabs {
    display: flex;
    background: #f4f4f5;
    border-bottom: 1px solid #e4e4e7;
}

.format-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #71717a;
    cursor: pointer;
    transition: all 0.2s;
}

.format-tab:hover {
    color: #18181b;
    background: #e4e4e7;
}

.format-tab.active {
    color: #4f46e5;
    background: #fff;
    border-bottom: 2px solid #4f46e5;
}

.format-tab-content {
    display: none;
    padding: 0.5rem;
}

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

/* Internal Grid for Tabs */
.options-grid-internal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.highlight-option {
    background: #e0e7ff;
    /* Stronger light blue */
    border: 2px solid #4f46e5;
    /* Blue border */
    color: #4338ca;
    font-weight: 800;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
    transform: scale(1.02);
    z-index: 5;
    position: relative;
}

.highlight-option .opt-sub {
    color: #4f46e5;
    font-weight: 600;
}

.highlight-option:hover {
    background: #c7d2fe;
    transform: scale(1.03);
}

.highlight-option .opt-main {
    color: #4f46e5;
}

/* Adjust dropdown position based on column */
.option-card:first-child .custom-options {
    left: 0;
}

.option-card:last-child .custom-options {
    right: 0;
    left: auto;
}

/* Ensure wide dropdown doesn't go off screen on mobile */
@media (max-width: 640px) {
    .custom-options.wide-dropdown {
        width: 300px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .option-card.active .custom-options.wide-dropdown {
        transform: translateX(-50%) translateY(0);
    }

    .options-grid-internal {
        grid-template-columns: 1fr;
    }
    
    /* Garantir que FORMAT et FINITION restent côte à côte même sur mobile */
    .options-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem;
    }
    
    .option-card {
        min-width: 0;
    }
}

/* Restore visibility for active dropdowns */
.option-card.active .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 0.75rem;
    /* Reduced */
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    margin-bottom: 0.25rem;
}

.custom-option:last-child {
    margin-bottom: 0;
}

.custom-option:hover {
    background: #f4f4f5;
}

.custom-option.selected {
    background: #4f46e5;
    color: #fff;
    position: relative;
}

.opt-main {
    font-weight: 700;
    font-size: 0.875rem;
    /* Reduced */
    margin-bottom: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.opt-sub {
    font-size: 0.75rem;
    color: #71717a;
}

.custom-option.selected .opt-sub {
    color: #e0e7ff;
}

/* LPI Information Section */
/* LPI Information Section */
.lpi-info-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 1px solid #e4e4e7;
    padding: 1.25rem;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
}

.lpi-info-section.lpi-full-width {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 2rem;
}

.lpi-info-section.lpi-full-width .lpi-info-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 2fr;
    gap: 1.5rem;
    align-items: start;
}

.lpi-info-section.lpi-full-width .lpi-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.lpi-info-section.lpi-full-width .lpi-description {
    margin-top: 0;
}

.lpi-info-section:hover {
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.lpi-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #bae6fd;
}

.lpi-info-header i {
    color: #0284c7;
    font-size: 1.25rem;
}

.lpi-info-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0c4a6e;
    letter-spacing: -0.01em;
}

.lpi-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lpi-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.lpi-info-row:hover {
    background: rgba(255, 255, 255, 0.9);
}

.lpi-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.lpi-info-icon {
    font-size: 0.75rem;
    color: #8b5cf6;
    cursor: help;
    position: relative;
    transition: color 0.2s;
}

.lpi-info-icon:hover {
    color: #7c3aed;
}

.lpi-info-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #18181b;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    width: 280px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    line-height: 1.5;
    text-align: left;
}

.lpi-info-icon::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 6px solid transparent;
    border-top-color: #18181b;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.lpi-info-icon:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lpi-info-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lpi-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0c4a6e;
}

.lpi-value.lpi-highlight {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.lpi-description {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #075985;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.875rem;
    border-radius: 8px;
    border-left: 3px solid #0284c7;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lpi-info-section {
        padding: 1rem;
    }

    .lpi-info-header h4 {
        font-size: 0.9rem;
    }

    .lpi-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .lpi-description {
        font-size: 0.75rem;
    }

    .lpi-info-section.lpi-full-width .lpi-info-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Footer Actions */
.action-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    padding-bottom: 0;
    border-top: 1px solid #e4e4e7;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
    /* Ensure footer stays below dropdowns */
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Share Dropdown Menu */
.share-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    width: 200px;
    overflow: hidden;
    display: none;
    /* JS Toggle */
    flex-direction: column;
}

.share-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
    font-weight: 500;
}

.share-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.share-menu-item i {
    width: 1.2rem;
    text-align: center;
    color: #6b7280;
}

/* Filter Radio Buttons Styling */
.filter-radio-label input:checked+.filter-radio-btn {
    background: #eef2ff !important;
    border-color: #6366f1 !important;
    color: #4f46e5 !important;
    box-shadow: 0 0 0 1px #6366f1;
}

.filter-radio-label:hover .filter-radio-btn {
    border-color: #a5b4fc !important;
    background: #fafafa !important;
}

.quantity-control {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.5);
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    height: 52px;
    border: 2px solid #e4e4e7;
    flex-shrink: 0;
}

.qty-btn {
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 20px;
    color: #52525b;
    transition: all 0.2s;
    flex-shrink: 0;
}

.qty-btn.small {
    width: 48px;
    font-size: 20px;
}

.qty-btn:hover {
    background: #f4f4f5;
    color: #18181b;
}

.qty-btn:active {
    background: #e4e4e7;
}

#qty-minus {
    border-right: 1px solid #e4e4e7;
}

#qty-plus {
    border-left: 1px solid #e4e4e7;
}

.qty-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #18181b;
    background: #fafafa;
    min-width: 60px;
}

.share-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.add-to-cart-btn {
    flex: 1;
    min-width: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 14px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

.add-to-cart-btn:disabled {
    background: #e4e4e7;
    color: #a1a1aa;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-price-separator {
    opacity: 0.7;
    margin: 0 4px;
    font-size: 14px;
    font-weight: 400;
}

#btn-price-display {
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* Notification d'ajout au panier */
.lenticular-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    max-width: calc(100% - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999999;
    opacity: 0;
    transform: translateX(450px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.lenticular-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    padding: 20px;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.notification-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #71717a;
}

.notification-close:hover {
    color: #18181b;
}

.notification-body {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.notification-images {
    display: flex;
    gap: 8px;
}

.notification-images img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e4e4e7;
}

.notification-details {
    flex: 1;
    font-size: 13px;
    color: #52525b;
}

.notification-details>div {
    margin-bottom: 4px;
}

.notification-footer {
    display: flex;
    gap: 8px;
}

.notification-footer .btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-footer .btn-primary {
    background: #8b5cf6;
    color: white;
    border: none;
}

.notification-footer .btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.notification-footer .btn-secondary {
    background: #f4f4f5;
    color: #52525b;
    border: 1px solid #e4e4e7;
}

.notification-footer .btn-secondary:hover {
    background: #e4e4e7;
}

/* Unsplash Modal */
.unsplash-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.unsplash-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.unsplash-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e4e4e7;
}

.unsplash-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #18181b;
}

.unsplash-modal-header h3 i {
    color: #8b5cf6;
}

.unsplash-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #71717a;
    transition: color 0.2s;
}

.unsplash-close-btn:hover {
    color: #18181b;
}

.unsplash-modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.image-source-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e4e4e7;
}

.image-source-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #71717a;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-source-tab:hover {
    color: #18181b;
    background: #f9fafb;
}

.image-source-tab.active {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
}

.unsplash-search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

#unsplash-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e4e4e7;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

#unsplash-search-input:focus {
    border-color: #8b5cf6;
}

.unsplash-search-btn {
    padding: 0.75rem 1.5rem;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unsplash-search-btn:hover {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.unsplash-selections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.unsplash-selection-card {
    border: 2px solid #e4e4e7;
    border-radius: 8px;
    padding: 0.75rem;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
}

.unsplash-selection-card:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.unsplash-selection-card:has(input[type="radio"]:checked) {
    border-color: #8b5cf6;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.unsplash-selection-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.unsplash-selection-header input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d4d4d8;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.unsplash-selection-header input[type="radio"]:checked {
    border-color: #8b5cf6;
    background: #8b5cf6;
}

.unsplash-selection-header input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.unsplash-selection-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.unsplash-selection-card:has(input[type="radio"]:checked) .unsplash-selection-label {
    color: #8b5cf6;
}

.unsplash-selection-label i {
    opacity: 0;
    transition: opacity 0.2s;
}

.unsplash-selection-card:has(input[type="radio"]:checked) .unsplash-selection-label i {
    opacity: 1;
}

.unsplash-selected-preview {
    width: 100%;
    height: 200px;
    background: #fff;
    border: 2px dashed #d4d4d8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.unsplash-selected-preview img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.unsplash-empty-text {
    font-size: 0.75rem;
    color: #a1a1aa;
    text-align: center;
}

.unsplash-selected-preview .unsplash-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.95);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.unsplash-selected-preview .unsplash-remove-btn:hover {
    background: rgb(220, 38, 38);
    transform: scale(1.1);
}

.unsplash-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #71717a;
}

.unsplash-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e4e4e7;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Spinner inline pour boutons */
.btn .spinner,
button .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

.unsplash-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.unsplash-result-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid transparent;
}

.unsplash-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.unsplash-result-item.selected {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px #8b5cf6;
}

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

.unsplash-result-item .unsplash-selection-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #8b5cf6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
}

.unsplash-result-item.selected .unsplash-selection-badge {
    display: block;
}

.unsplash-photographer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.unsplash-result-item:hover .unsplash-photographer {
    opacity: 1;
}

.unsplash-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e4e4e7;
    justify-content: flex-end;
}

.unsplash-modal-footer .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.unsplash-modal-footer .btn-secondary {
    background: #f4f4f5;
    color: #52525b;
    border: 1px solid #e4e4e7;
}

.unsplash-modal-footer .btn-secondary:hover {
    background: #e4e4e7;
}

.unsplash-modal-footer .btn-primary {
    background: #8b5cf6;
    color: white;
}

.unsplash-modal-footer .btn-primary:hover:not(:disabled) {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.unsplash-modal-footer .btn-primary:disabled {
    background: #d4d4d8;
    cursor: not-allowed;
}

/* Filter Generator Styles */
#filter-generator-container {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.2);
}

.filter-btn.active {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.filter-btn i {
    font-size: 0.875rem;
}

/* Bouton générer filtre sous chaque image */
.btn-generate-filter {
    font-weight: 500;
    transition: none !important;
}

.btn-generate-filter:hover:not(:disabled) {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

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

/* Modal de filtre */
#filter-modal {
    display: flex;
}

/* Empêcher le scroll de la page quand le modal est ouvert */
body.modal-open {
    overflow: hidden !important;
}

#filter-modal h3 {
    font-weight: 600;
}

/* Bouton de partage */
.share-btn:hover {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* Modal de partage */
#share-modal {
    display: flex;
}

#share-modal h3 {
    font-weight: 600;
}

#share-link-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

#btn-copy-link:hover {
    background: #7c3aed !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Bouton de recadrage sur les miniatures */
.upload-preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.crop-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(139, 92, 246, 0.9);
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.crop-btn:hover {
    background: #8b5cf6;
    transform: scale(1.1);
}

.crop-btn i {
    color: white;
    font-size: 14px;
}

/* Modal de recadrage */
.crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.crop-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.crop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e4e4e7;
}

.crop-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #71717a;
    transition: color 0.2s;
}

.crop-close-btn:hover {
    color: #18181b;
}

.crop-modal-body {
    flex: 1;
    padding: 24px;
    overflow: auto;
}

.crop-container {
    margin-bottom: 24px;
}

.crop-preview-wrapper {
    width: 100%;
    height: 500px;
    background: #f4f4f5;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    border: 2px solid #e4e4e7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-preview-wrapper:active {
    cursor: grabbing;
}

#crop-image {
    position: absolute;
    max-width: none;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    pointer-events: none;
}

/* Cadre guide de recadrage */
.crop-frame-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #8b5cf6;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

/* Dimensions affichées */
.crop-dimensions {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 92, 246, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.crop-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.crop-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crop-control-group label {
    font-size: 14px;
    font-weight: 600;
    color: #18181b;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: #e4e4e7;
}

#zoom-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    background: #e4e4e7;
    border-radius: 4px;
    outline: none;
}

#zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#zoom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#zoom-value {
    font-size: 14px;
    font-weight: 600;
    color: #52525b;
    min-width: 50px;
    text-align: right;
}

.crop-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 13px;
    color: #0369a1;
}

.crop-hint i {
    color: #0ea5e9;
}

.crop-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e4e4e7;
    justify-content: flex-end;
}

.crop-modal-footer .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.crop-modal-footer .btn-secondary {
    background: #f4f4f5;
    color: #52525b;
    border: 1px solid #e4e4e7;
}

.crop-modal-footer .btn-secondary:hover {
    background: #e4e4e7;
}

.crop-modal-footer .btn-primary {
    background: #8b5cf6;
    color: white;
}

.crop-modal-footer .btn-primary:hover {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Fullscreen & Crop Buttons */
#btn-crop-mode {
    position: absolute;
    top: 1rem;
    right: 5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e4e4e7;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#btn-crop-mode:hover {
    background: #fff;
    transform: scale(1.1);
    border-color: #8b5cf6;
}

#btn-crop-mode.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

#btn-crop-mode.active i {
    color: #fff !important;
}

#btn-fullscreen {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e4e4e7;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#btn-fullscreen:hover {
    background: #fff;
    transform: scale(1.1);
    border-color: #8b5cf6;
}

#btn-fullscreen i,
#btn-fullscreen .fa-expand,
#btn-crop-mode i {
    color: #18181b;
    font-size: 20px;
}

/* Tooltips stylés pour les boutons */
#btn-crop-mode::before,
#btn-fullscreen::before,
#lenticular-share-btn::before,
#lenticular-download-gif-btn::before,
#lenticular-receive-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #18181b;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#btn-crop-mode::after,
#btn-fullscreen::after,
#lenticular-share-btn::after,
#lenticular-download-gif-btn::after,
#lenticular-receive-btn::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 5px solid transparent;
    border-top-color: #18181b;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

#btn-crop-mode:hover::before,
#btn-fullscreen:hover::before,
#lenticular-share-btn:hover::before,
#lenticular-download-gif-btn:hover::before,
#lenticular-receive-btn:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#btn-crop-mode:hover::after,
#btn-fullscreen:hover::after,
#lenticular-share-btn:hover::after,
#lenticular-download-gif-btn:hover::after,
#lenticular-receive-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Crop Controls - Positionnés sur le côté */
#crop-controls {
    flex: 0 0 280px;
    margin-left: 1rem;
    z-index: 15;
    max-width: 280px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

#crop-controls[style*="display: block"],
.preview-column.crop-mode-active-layout #crop-controls {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.2s ease, visibility 0s;
}

.preview-column.crop-mode-active-layout {
    flex-direction: row !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    position: relative !important;
}

.preview-column.crop-mode-active-layout .slider-wrapper {
    display: none !important;
}

.preview-column.crop-mode-active-layout .lenticular-preview-wrapper {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.preview-column.crop-mode-active-layout #crop-controls {
    position: absolute !important;
    right: -300px !important;
    top: 0 !important;
    flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.crop-control-bar {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 2px solid #e4e4e7;
}

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

.crop-control-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #8b5cf6;
}

.crop-control-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #71717a;
    transition: color 0.2s;
}

.crop-control-close:hover {
    color: #18181b;
}

.crop-image-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.crop-select-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    background: #f4f4f5;
    border: 2px solid #e4e4e7;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #52525b;
    cursor: pointer;
    transition: all 0.2s;
}

.crop-select-btn:hover {
    background: #e4e4e7;
}

.crop-select-btn.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.crop-zoom-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.crop-zoom-btn {
    width: 32px;
    height: 32px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.crop-zoom-btn:hover {
    background: #e4e4e7;
}

#crop-zoom-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: #e4e4e7;
    border-radius: 3px;
    outline: none;
}

#crop-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
}

#crop-zoom-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}


.crop-control-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #71717a;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
}

.crop-control-hint i {
    color: #8b5cf6;
}

.crop-validate-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    background: #8b5cf6;
    border: 2px solid #8b5cf6;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.crop-validate-btn:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.crop-validate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.crop-validate-btn i {
    font-size: 0.875rem;
}

/* Crop Mode Active */
.lenticular-preview-wrapper.crop-mode-active {
    cursor: move;
}

.lenticular-preview-wrapper.crop-mode-active .lenticular-card {
    pointer-events: none;
}

.lenticular-preview-wrapper.crop-mode-active .lenticular-image {
    transition: none;
    pointer-events: auto;
    cursor: grab;
}

.lenticular-preview-wrapper.crop-mode-active .lenticular-image:active {
    cursor: grabbing;
}

.lenticular-preview-wrapper.crop-mode-active .lenticular-image.crop-active {
    outline: 3px solid #8b5cf6;
    outline-offset: -3px;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

/* Fullscreen Modal */
#fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#btn-close-fullscreen {
    position: fixed;
    top: 6rem;
    /* Plus bas */
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 4rem;
    /* Plus gros */
    height: 4rem;
    /* Plus gros */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000001 !important;
    transition: all 0.2s;
    color: #fff;
}

#btn-close-fullscreen:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

#btn-close-fullscreen .dashicons,
#btn-close-fullscreen i {
    font-size: 2rem;
    /* Icone plus grosse */
    width: 2rem;
    height: 2rem;
}

.fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 4rem 4rem 4rem;
    cursor: grab;
    position: relative;
    perspective: 1200px;
    z-index: 1;
}

.fullscreen-content::before {
    content: '✋';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: handPulse 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes handPulse {

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

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.6;
    }
}

.fullscreen-content:active {
    cursor: grabbing;
}

.fullscreen-content:active::before {
    content: '✊';
    animation: none;
    opacity: 0.6;
}

.fullscreen-card {
    position: relative;
    background: #ffffff;
    border: 4px solid #e4e4e7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    z-index: 1;
    will-change: transform;
    max-width: 90%;
    max-height: 90%;
    margin-top: calc(2rem + 10px);
    /* Dimensions will be set by JS */
}

#fs-preview-face,
#fs-preview-side {
    will-change: opacity;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Effet lignes lenticulaires pour fullscreen */
.fullscreen-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.15) 0px,
            rgba(255, 255, 255, 0.15) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    z-index: 20;
    mix-blend-mode: overlay;
    border-radius: 8px;
}

.fullscreen-controls {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000001 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
}

.zoom-slider {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.zoom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #8b5cf6;
}

.zoom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.zoom-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #8b5cf6;
}

.zoom-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

.fullscreen-hint {
    position: absolute;
    bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 1000001 !important;
    text-align: center;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Slider */
.slider-wrapper {
    width: 100%;
    max-width: 400px;
    margin-top: 1.5rem;
    /* Reduced */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lenticular-range {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    background: #e4e4e7;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.lenticular-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.lenticular-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.slider-label-text {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #d4d4d8;
    /* Light gray for inactive */
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.slider-label-text.active {
    color: #6366f1;
    /* Indigo for active/center */
}

/* Text Button (Random) */
.text-btn {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.text-btn:hover {
    background: #eef2ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1);
}

.text-btn:active {
    transform: translateY(0);
}

.text-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Flip Mode Buttons - Override pour les boutons dans flip-mode-buttons */
.flip-mode-buttons .text-btn {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    color: #52525b;
    width: 100%;
}

.flip-mode-buttons .text-btn:hover {
    background: #e4e4e7;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* Flip Mode Buttons */
.flip-mode-buttons {
    width: 100%;
    display: flex;
    gap: 0.5rem;
}

.flip-mode-buttons .text-btn {
    flex: 1;
}

/* Notification d'ajout au panier */
.lenticular-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    max-width: calc(100% - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999999;
    opacity: 0;
    transform: translateX(450px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.lenticular-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    padding: 20px;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.notification-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #71717a;
}

.notification-close:hover {
    color: #18181b;
}

.notification-body {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.notification-images {
    display: flex;
    gap: 8px;
}

.notification-images img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e4e4e7;
}

.notification-details {
    flex: 1;
    font-size: 13px;
    color: #52525b;
}

.notification-details>div {
    margin-bottom: 4px;
}

.notification-footer {
    display: flex;
    gap: 8px;
}

.notification-footer .btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-footer .btn-primary {
    background: #8b5cf6;
    color: white;
    border: none;
}

.notification-footer .btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.notification-footer .btn-secondary {
    background: #f4f4f5;
    color: #52525b;
    border: 1px solid #e4e4e7;
}

.notification-footer .btn-secondary:hover {
    background: #e4e4e7;
}

/* Unsplash Modal */
.unsplash-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.unsplash-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.unsplash-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e4e4e7;
}

.unsplash-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #18181b;
}

.unsplash-modal-header h3 i {
    color: #8b5cf6;
}

.unsplash-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #71717a;
    transition: color 0.2s;
}

.unsplash-close-btn:hover {
    color: #18181b;
}

.unsplash-modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.image-source-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e4e4e7;
}

.image-source-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #71717a;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-source-tab:hover {
    color: #18181b;
    background: #f9fafb;
}

.image-source-tab.active {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
}

.unsplash-search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

#unsplash-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e4e4e7;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

#unsplash-search-input:focus {
    border-color: #8b5cf6;
}

.unsplash-search-btn {
    padding: 0.75rem 1.5rem;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unsplash-search-btn:hover {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.unsplash-selections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.unsplash-selection-card {
    border: 2px solid #e4e4e7;
    border-radius: 8px;
    padding: 0.75rem;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
}

.unsplash-selection-card:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.unsplash-selection-card:has(input[type="radio"]:checked) {
    border-color: #8b5cf6;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.unsplash-selection-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.unsplash-selection-header input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d4d4d8;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.unsplash-selection-header input[type="radio"]:checked {
    border-color: #8b5cf6;
    background: #8b5cf6;
}

.unsplash-selection-header input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.unsplash-selection-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.unsplash-selection-card:has(input[type="radio"]:checked) .unsplash-selection-label {
    color: #8b5cf6;
}

.unsplash-selection-label i {
    opacity: 0;
    transition: opacity 0.2s;
}

.unsplash-selection-card:has(input[type="radio"]:checked) .unsplash-selection-label i {
    opacity: 1;
}

.unsplash-selected-preview {
    width: 100%;
    height: 200px;
    background: #fff;
    border: 2px dashed #d4d4d8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.unsplash-selected-preview img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.unsplash-empty-text {
    font-size: 0.75rem;
    color: #a1a1aa;
    text-align: center;
}

.unsplash-selected-preview .unsplash-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.95);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.unsplash-selected-preview .unsplash-remove-btn:hover {
    background: rgb(220, 38, 38);
    transform: scale(1.1);
}

.unsplash-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #71717a;
}

.unsplash-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e4e4e7;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Spinner inline pour boutons */
.btn .spinner,
button .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

.unsplash-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.unsplash-result-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid transparent;
}

.unsplash-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.unsplash-result-item.selected {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px #8b5cf6;
}

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

.unsplash-result-item .unsplash-selection-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #8b5cf6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
}

.unsplash-result-item.selected .unsplash-selection-badge {
    display: block;
}

.unsplash-photographer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.unsplash-result-item:hover .unsplash-photographer {
    opacity: 1;
}

.unsplash-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e4e4e7;
    justify-content: flex-end;
}

.unsplash-modal-footer .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.unsplash-modal-footer .btn-secondary {
    background: #f4f4f5;
    color: #52525b;
    border: 1px solid #e4e4e7;
}

.unsplash-modal-footer .btn-secondary:hover {
    background: #e4e4e7;
}

.unsplash-modal-footer .btn-primary {
    background: #8b5cf6;
    color: white;
}

.unsplash-modal-footer .btn-primary:hover:not(:disabled) {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.unsplash-modal-footer .btn-primary:disabled {
    background: #d4d4d8;
    cursor: not-allowed;
}

/* Filter Generator Styles */
#filter-generator-container {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.2);
}

.filter-btn.active {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.filter-btn i {
    font-size: 0.875rem;
}

/* Bouton générer filtre sous chaque image */
.btn-generate-filter {
    font-weight: 500;
    transition: none !important;
}

.btn-generate-filter:hover:not(:disabled) {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

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

/* Modal de filtre */
#filter-modal {
    display: flex;
}

/* Empêcher le scroll de la page quand le modal est ouvert */
body.modal-open {
    overflow: hidden !important;
}

#filter-modal h3 {
    font-weight: 600;
}

/* Bouton de partage */
.share-btn:hover {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* Modal de partage */
#share-modal {
    display: flex;
}

#share-modal h3 {
    font-weight: 600;
}

#share-link-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

#btn-copy-link:hover {
    background: #7c3aed !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Dropdown de filtre */
.filter-dropdown-trigger:hover {
    border-color: #8b5cf6 !important;
    background: #f5f3ff !important;
}

.filter-option:hover {
    background: #f4f4f5 !important;
}

.filter-option:last-child {
    border-bottom: none !important;
}

/* Cartes de filtre */
.filter-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-card:hover {
    background: #f4f4f5 !important;
    border-color: #8b5cf6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Bouton de fermeture modal GIF */
.close-modal-btn:hover {
    background: #f4f4f5 !important;
    color: #18181b !important;
    transform: scale(1.1);
}

/* Champs de dimensions personnalisées */
#custom-width,
#custom-height {
    font-size: 1.3rem !important;
    font-weight: 600;
    padding: 0.75rem !important;
    height: auto !important;
}

/* ============================================
   MODE SWITCH STYLES
   ============================================ */
.mode-switch-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    background: #f4f4f5;
    border-radius: 8px;
}

.mode-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mode-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.mode-slider-thumb {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mode-switch input:checked + .mode-slider {
    background-color: #8b5cf6;
}

.mode-switch input:checked + .mode-slider .mode-slider-thumb {
    transform: translateX(24px);
}

.mode-switch input:focus + .mode-slider {
    box-shadow: 0 0 1px #8b5cf6;
}

/* Mode Switch Tooltip */
.mode-switch-container {
    position: relative;
}

.mode-switch-tooltip-trigger {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: help !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    color: #8b5cf6 !important;
    transition: color 0.2s !important;
}

.mode-switch-tooltip-trigger:hover {
    color: #7c3aed !important;
}

.mode-switch-container:hover .mode-switch-tooltip,
.mode-switch-tooltip-trigger:hover ~ .mode-switch-tooltip,
.mode-switch-tooltip:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(4px) !important;
    pointer-events: auto !important;
}

.mode-switch-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #18181b;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    pointer-events: none;
    font-size: 0.875rem;
    line-height: 1.5;
}

.mode-switch-tooltip::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #18181b;
}

@media (max-width: 768px) {
    .mode-switch-tooltip {
        width: 240px;
        font-size: 0.8125rem;
        padding: 0.875rem;
    }
}

/* ============================================
   ANIMATION MODE UPLOAD GRID STYLES
   ============================================ */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.upload-box-animation {
    position: relative;
    aspect-ratio: 3/4;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

.upload-box-animation:hover {
    border-color: #8b5cf6;
    background: #f3f4f6;
}

.upload-box-animation.has-image {
    border: 2px solid #8b5cf6;
    background: #fff;
}

.upload-box-animation input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    z-index: 1;
}

.upload-placeholder-animation i {
    font-size: 2rem;
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.upload-placeholder-animation span {
    font-size: 0.75rem;
    color: #71717a;
}

.upload-preview-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.upload-box-number {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
}

.upload-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 3;
    transition: all 0.2s;
}

.upload-remove-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

/* Multiple Upload Container */
#upload-anim-multiple {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

.upload-grid > div:first-child {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-grid > div:first-child:hover {
    background: #f3f4f6;
    border-color: #7c3aed;
}

@media (max-width: 768px) {
    .upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Bloc composition sur mesure */
.lenticular-custom-composition-block {
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.lenticular-custom-composition-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.lenticular-custom-composition-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lenticular-custom-composition-text {
    flex: 1;
    color: white;
}

.lenticular-custom-composition-text h3 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.lenticular-custom-composition-text p {
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.lenticular-custom-composition-cta {
    margin-top: 15px !important;
    font-size: 18px !important;
}

.lenticular-custom-composition-actions {
    flex-shrink: 0;
}

.lenticular-custom-composition-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: #8b5cf6;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lenticular-custom-composition-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #f9fafb;
    color: #7c3aed;
}

@media (max-width: 768px) {
    .lenticular-custom-composition-block {
        padding: 30px 20px;
    }
    
    .lenticular-custom-composition-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .lenticular-custom-composition-text h3 {
        font-size: 24px;
    }
    
    .lenticular-custom-composition-text p {
        font-size: 15px;
    }
    
    .lenticular-custom-composition-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Bouton contact en haut à droite */
.lenticular-contact-btn-top {
    position: relative;
    width: 36px;
    height: 36px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    color: #8b5cf6;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 100;
}

/* Style pour le bouton contact quand il est en position absolue (ancien style) */
.lenticular-container > .lenticular-contact-btn-top {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.lenticular-contact-btn-top:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.2);
    background: #eef2ff;
    border-color: #8b5cf6;
}

.lenticular-container > .lenticular-contact-btn-top:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
}

.lenticular-contact-btn-top:active {
    transform: translateY(0) scale(0.95);
}

/* Tooltip pour le bouton contact */
.lenticular-contact-btn-top[data-tooltip] {
    position: relative;
}

.lenticular-contact-btn-top[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #18181b;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: tooltipFadeIn 0.2s ease-out;
}

.lenticular-contact-btn-top[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #18181b;
    z-index: 1001;
    animation: tooltipFadeIn 0.2s ease-out;
}

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