body {
    background: linear-gradient(135deg, #667eea 0%, #764ba8 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
}

.header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    text-align: center;
}

.legend {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid #4facfe;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.stats {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stats-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.stat-badge {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.stat-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.stat-badge .count {
    background: rgba(255,255,255,0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    margin-left: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Styles pour l'accordéon personnalisé */
.accordion-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba8 100%);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-item {
    margin: 1rem 0;
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.accordion-header button {
    border-radius: 15px 15px 0 0;
}

.accordion-button.collapsed {
    border-radius: 15px;
}

.accordion-body {
    padding: 1.5rem;
    background: white;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.item {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.item.adore {
    background: linear-gradient(135deg, #7d2e79, #7a3077);
    color: white;
    border-color: #7d2e79;
}

.item.aime {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
}

.item.curiosité {
    background: linear-gradient(135deg, #FF9800, #f57c00);
    color: white;
    border-color: #FF9800;
}

.item.dislike {
    background: linear-gradient(135deg, #FF5722, #d84315);
    color: white;
    border-color: #FF5722;
}

.item.non_strict {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border-color: #f44336;
}

.export-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
    color: white;
}
.image-btn {
    background:#00f2fe;
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.image-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
    background:#00f2fe;
    color: white;
}
.dropdown-menu {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.dropdown-item:hover small {
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-item small {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: #6c757d;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Animation du dropdown */
.dropdown-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: block !important;
    visibility: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.import-btn {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.import-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
    color: white;
}

/* Badge de compteur dans l'en-tête */
.category-counter {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .main-container {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .header {
        border-radius: 15px 15px 0 0;
        padding: 1.5rem;
    }

    .stats-badges {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stat-badge {
        min-width: 200px;
    }
}