/* ==========================================
   THEME CARDS (partagé site + admin)
   ========================================== */
.theme {
    width: 180px;
    font-size: 13px;
    margin: 12px;
    cursor: pointer;
    position: relative;
}
.theme .app {
    font-family: 'Inter', Arial, sans-serif;
    border: 2px solid var(--border, rgba(255,255,255,0.1));
    border-radius: var(--radius, 12px);
    padding: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.theme .app:hover {
    border-color: var(--primary, #3b82f6);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.theme .app .nb {
    position: absolute;
    right: 5px;
    top: 4px;
    padding: 1px 7px;
    background: var(--secondary, #1e293b);
    border: 2px solid #475569;
    border-radius: 20px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    display: none;
    color: var(--text-color, #f8fafc);
}
.theme .app .nb.top {
    border-color: #ef4444;
    background: #ef4444;
    font-weight: bold;
    color: #fff;
    font-size: 18px;
    top: -2px;
    right: -6px;
    padding: 3px 8px;
    line-height: 28px;
    height: 28px;
}
.theme .app .num .inner { background: rgba(15, 23, 42, 0.8); }
.theme .app:hover .num .inner { background: rgba(15, 23, 42, 1); }
.theme div { padding: 10px 10px; }
.theme .cell {
    padding: 2px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
}
.theme .cell:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.theme .cell.bt {
    border-radius: 4px;
    width: 90px;
    text-align: center;
    margin: 2px auto;
    border-color: transparent;
}
.theme .num { text-align: center; }
.theme .num .inner {
    display: inline-block;
    padding: 3px 8px;
    color: var(--text-color, #f8fafc);
    font-weight: bold;
}

#liste_theme {
    display: flex;
    flex-wrap: wrap;
    margin-left: 90px;
}

.bt-supp-theme {
    position: absolute;
    top: 2px;
    right: 7px;
    font-size: 20px;
    z-index: 1000;
    display: none;
    color: #ef4444;
    cursor: pointer;
}
.theme:hover .bt-supp-theme { display: block !important; }

.bt-dl-from-app {
    text-align: center;
    margin: auto;
    display: inline-block;
    background: var(--secondary, #1e293b);
    color: var(--text-color, #f8fafc);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 4px;
    padding: 0px 8px;
    margin-top: 2px;
    cursor: pointer;
}
.bt-dl-from-app:hover {
    color: var(--text-color, #f8fafc);
    background: rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
    .theme { width: 140px; margin: 8px; }
    #liste_theme { margin-left: 0; }
}
