/* ========================================
   PANTONE-COLORS.CSS - Page Guide Couleurs Pantone
   Design gris clair unifié avec le site
   ======================================== */

/* Hero Pantone - Design gris clair */
.hero-pantone {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 3% 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f5 100%);
    overflow: hidden;
}

.hero-pantone::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(25,230,107,0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    z-index: 0;
}

.hero-pantone::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0,123,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -80px;
    z-index: 0;
}

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

.hero-pantone-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-pantone-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0a0a0a;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-pantone-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: #1a1a2e;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-pantone-subtitle {
    font-size: 1rem;
    color: #555;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-pantone-subtitle strong {
    color: #0a0a0a;
}

/* ========================================
   PALETTE BUILDER - Barre sticky en bas (plus grande)
   ======================================== */

.palette-builder {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
    border-top: 3px solid var(--color-accent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.palette-builder.has-colors {
    display: block;
    padding: 16px 3%;
    transform: translateY(0);
}

.palette-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.palette-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.palette-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a2e;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.palette-header h3 svg {
    color: #0a0a0a;
}

.palette-actions {
    display: flex;
    gap: 6px;
}

.palette-action-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.palette-action-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #0a0a0a;
}

.palette-colors {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    flex: 1;
    padding: 4px 0;
}

.palette-colors::-webkit-scrollbar {
    height: 4px;
}

.palette-colors::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.palette-empty {
    display: none;
}

.palette-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 20px;
    position: relative;
    transition: all 0.2s ease;
    animation: chipAppear 0.2s ease-out;
    flex-shrink: 0;
}

@keyframes chipAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.palette-chip:hover {
    transform: scale(1.05);
}

.chip-name {
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.chip-remove:hover {
    opacity: 1;
}

.palette-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.preview-strips {
    display: flex;
    width: 150px;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.preview-strip {
    flex: 1;
    transition: flex 0.2s ease;
}

.preview-strip:hover {
    flex: 1.3;
}

.preview-info {
    color: #6c757d;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* ========================================
   SEARCH SECTION - Statique (pas sticky)
   ======================================== */

.pantone-search-section {
    background: #f8f9fa;
    padding: 30px 3%;
    position: relative;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Search Tabs */
.search-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.search-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tab:hover {
    border-color: var(--color-accent);
    color: #0a0a0a;
}

.search-tab.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #0a0a0a;
}

.search-tab svg {
    width: 18px;
    height: 18px;
}

/* Search Panels */
.search-panel {
    display: none;
}

.search-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Name Search */
.search-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 500px;
}

.search-input-wrapper svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6c757d;
}

#pantone-search {
    width: 100%;
    padding: 16px 20px 16px 50px;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

#pantone-search:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(25, 230, 107, 0.1);
}

#pantone-search::placeholder {
    color: #adb5bd;
}

.search-stats {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

.search-stats strong {
    color: #0a0a0a;
}

/* Hex Search */
.hex-search-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hex-input-group {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s ease;
}

.hex-input-group:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(25, 230, 107, 0.1);
}

.hex-color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 4px;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

#hex-search {
    width: 120px;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: 'Monaco', 'Consolas', monospace;
    border: none;
    outline: none;
    background: transparent;
    text-transform: uppercase;
}

#hex-picker {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}

#hex-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

#hex-picker::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

.btn-find-similar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-accent);
    color: #0a0a0a;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-find-similar:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25,230,107,0.3);
}

/* Similar Results */
.similar-results {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    animation: slideDown 0.4s ease;
}

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

.similar-results h4 {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.similar-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.similar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.similar-preview {
    height: 70px;
    position: relative;
}

.match-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.similar-info {
    padding: 10px;
    text-align: center;
}

.similar-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-hex {
    font-size: 0.7rem;
    font-family: 'Monaco', 'Consolas', monospace;
    color: #6c757d;
}

/* Color Filter Buttons */
.color-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: #0a0a0a;
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #0a0a0a;
}

.filter-btn.active .filter-dot {
    box-shadow: 0 0 0 2px #fff;
}

.filter-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.filter-dot-fluo {
    background: linear-gradient(135deg, #DFFF00, #FF00FF, #00FFFF);
    animation: fluoPulse 2s ease-in-out infinite;
}

@keyframes fluoPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(223, 255, 0, 0.8); }
    50% { box-shadow: 0 0 10px rgba(255, 0, 255, 0.8); }
}

.filter-fluo {
    border-color: #DFFF00 !important;
}

.filter-fluo.active {
    background: linear-gradient(135deg, #DFFF00, #00FF00);
    border-color: #DFFF00;
    color: #000;
}

/* Disclaimer */
.color-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #6d4c00;
}

.color-disclaimer svg {
    color: #ffa000;
    flex-shrink: 0;
}

/* ========================================
   COLORS GRID SECTION
   ======================================== */

.pantone-colors-section {
    padding: 50px 3% 120px; /* Extra padding bottom for palette bar */
    background: #fff;
    min-height: 50vh;
}

.colors-container {
    max-width: 1400px;
    margin: 0 auto;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

/* Color Swatch Card */
.color-swatch {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-swatch:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.color-swatch.in-palette {
    box-shadow: 0 0 0 3px var(--color-accent), 0 8px 25px rgba(25,230,107,0.3);
}

.color-swatch.in-palette::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
    border-radius: 50%;
    z-index: 10;
}

.color-preview {
    height: 110px;
    position: relative;
    background-color: var(--color-bg, #f0f0f0);
}

/* Fluo Badge */
.fluo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #DFFF00, #00FF00);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 5;
}

.color-swatch.is-fluo {
    box-shadow: 0 0 0 2px rgba(223, 255, 0, 0.5), 0 2px 8px rgba(0,0,0,0.08);
}

.copy-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.color-swatch:hover .copy-indicator {
    opacity: 1;
}

.color-swatch.in-palette .copy-indicator {
    display: none;
}

.btn-add-palette {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-add-palette svg {
    color: #0a0a0a;
}

.color-swatch:hover .btn-add-palette {
    opacity: 1;
    transform: scale(1);
}

.color-info {
    padding: 12px;
    text-align: center;
}

.color-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.3;
    word-break: break-word;
}

.color-hex {
    font-size: 0.75rem;
    font-family: 'Monaco', 'Consolas', monospace;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No results message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.no-results svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #343a40;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1rem;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-notification {
    position: fixed;
    bottom: 100px; /* Above palette bar */
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a2e;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification.success {
    background: #00AA86;
}

.toast-notification.warning {
    background: #FF9800;
}

.toast-notification.info {
    background: #0085CF;
}

/* ========================================
   FAQ SECTION - GEO/LLM Visible Content
   ======================================== */

.pantone-faq-section {
    background: #f8f9fa;
    padding: 80px 3%;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #1a1a2e;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-question::before {
    content: '?';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--color-accent);
    color: #0a0a0a;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
}

.faq-answer {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
    padding-left: 40px;
}

/* ========================================
   CTA SECTION
   ======================================== */

.pantone-cta-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    padding: 80px 3%;
    text-align: center;
}

.pantone-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.pantone-cta-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #0a0a0a;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.pantone-cta-content p {
    font-size: 1.1rem;
    color: rgba(10,10,10,0.9);
    margin-bottom: 2rem;
}

.pantone-cta-content .btn-cta-white {
    display: inline-block;
    background: #fff;
    color: #0a0a0a;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pantone-cta-content .btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .palette-container {
        flex-wrap: wrap;
    }

    .palette-preview {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .hero-pantone {
        min-height: 35vh;
        padding: 80px 3% 40px;
    }
}

@media (max-width: 768px) {
    .hero-pantone {
        min-height: 30vh;
        padding: 70px 3% 30px;
    }

    .hero-pantone-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-pantone-subtitle {
        font-size: 0.9rem;
    }

    .palette-builder.has-colors {
        padding: 12px 3%;
    }

    .palette-header h3 {
        font-size: 0.85rem;
    }

    .palette-colors {
        gap: 6px;
    }

    .palette-chip {
        padding: 5px 8px;
    }

    .chip-name {
        font-size: 0.65rem;
        max-width: 50px;
    }

    .preview-strips {
        width: 120px;
        height: 25px;
    }

    .pantone-search-section {
        padding: 20px 3%;
    }

    .search-tabs {
        gap: 8px;
    }

    .search-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .search-wrapper {
        flex-direction: column;
    }

    .search-input-wrapper {
        width: 100%;
        max-width: none;
    }

    .hex-search-wrapper {
        flex-direction: column;
    }

    .similar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .colors-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .color-preview {
        height: 90px;
    }

    .color-info {
        padding: 10px;
    }

    .color-name {
        font-size: 0.75rem;
    }

    .color-hex {
        font-size: 0.7rem;
    }

    .color-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .filter-dot {
        width: 10px;
        height: 10px;
    }

    .pantone-colors-section {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .search-tab span:not(.search-tab svg) {
        display: none;
    }

    .search-tab {
        padding: 10px 14px;
    }

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

    .colors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .color-preview {
        height: 80px;
    }

    .filter-btn span:not(.filter-dot) {
        display: none;
    }

    .filter-btn {
        padding: 8px 10px;
    }

    .palette-header h3 span {
        display: none;
    }

    .palette-preview {
        display: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .palette-builder,
    .pantone-search-section,
    .pantone-cta-section,
    .copy-indicator,
    .btn-add-palette {
        display: none !important;
    }

    .colors-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }

    .color-swatch {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .color-preview {
        height: 50px;
    }

    .color-info {
        padding: 8px;
    }

    .pantone-colors-section {
        padding-bottom: 50px;
    }
}

/* ========================================
   IMAGE COLOR PICKER - Design simple et propre
   ======================================== */

.image-picker-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* Upload Zone - Simple et propre */
.image-upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-upload-zone:hover {
    border-color: var(--color-accent);
    background: #fff8f6;
}

.image-upload-zone.drag-over {
    border-color: var(--color-accent);
    background: #fff0ed;
}

.upload-content {
    text-align: center;
    color: #666;
}

.upload-content svg {
    color: #999;
    margin-bottom: 10px;
    width: 36px;
    height: 36px;
}

.image-upload-zone:hover .upload-content svg {
    color: #0a0a0a;
}

.upload-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.upload-formats {
    font-size: 0.8rem;
    color: #888;
}

/* Canvas Container */
.image-canvas-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.canvas-instruction {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.canvas-instruction::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

.canvas-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 8px;
}

.zoom-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background: #f0f0f0;
    color: #0a0a0a;
}

.zoom-level {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    min-width: 40px;
    text-align: center;
}

.btn-remove-image {
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px;
    cursor: pointer;
    color: #666;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-image:hover {
    background: #fee;
    border-color: #e53935;
    color: #e53935;
}

.canvas-wrapper {
    position: relative;
    padding: 15px;
    background: #f5f5f5;
    min-height: 150px;
    max-height: 350px;
    overflow: auto;
    cursor: crosshair;
}

#image-canvas {
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform-origin: center center;
    transition: transform 0.2s ease;
}

/* Color Magnifier */
.color-magnifier {
    position: absolute;
    width: 50px;
    height: 60px;
    pointer-events: none;
    transform: translate(-50%, -100%) translateY(-5px);
    display: none;
    z-index: 100;
}

.magnifier-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin: 0 auto;
}

.magnifier-crosshair {
    width: 2px;
    height: 12px;
    background: #fff;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Picked Color Result */
.picked-color-result {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.picked-color-header h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.picked-color-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.picked-swatch {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.picked-info {
    flex: 1;
}

.picked-hex {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.image-similar-results h4 {
    font-size: 0.75rem;
    color: #888;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.image-similar-results .similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.image-similar-results .similar-card {
    border-radius: 6px;
}

.image-similar-results .similar-preview {
    height: 40px;
}

.image-similar-results .similar-info {
    padding: 6px;
}

.image-similar-results .similar-name {
    font-size: 0.6rem;
}

.image-similar-results .similar-hex {
    font-size: 0.55rem;
}

/* Responsive Image Picker */
@media (max-width: 768px) {
    .image-upload-zone {
        height: 120px;
    }

    .upload-content svg {
        width: 30px;
        height: 30px;
    }

    .canvas-wrapper {
        max-height: 250px;
    }

    #image-canvas {
        max-height: 220px;
    }

    .image-similar-results .similar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .image-upload-zone {
        height: 100px;
    }

    .image-similar-results .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
