body {
    margin: 0;
    padding: 20px;
    background: #0f172a;
    font-family: Arial;
    color: white;
}

/* HEADER */
.header {
    text-align: center;
}

.search {
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
    border: none;
}

/* NAV */
.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.tabs {
    display: flex;
    gap: 6px;
}

.tab {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #2b3648;
    background: #1f2937;
    color: #d1d5db;
    cursor: pointer;
}

.tab.active {
    background: #3b82f6;
    color: white;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(10, 100px);
    justify-content: center;
    gap: 12px;
}

/* CARD */
.item {
    background: #1f2937;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.item:hover {
    transform: scale(1.05);
}

.item img {
    width: 50px;
    height: 50px;
    image-rendering: pixelated;
}

.yes { border: 1px solid #22c55e; }
.no { opacity: 0.4; }

/* PROGRESS */
.progress-wrapper {
    width: 60%;
    margin: 15px auto;
    text-align: center;
}

.progress-text {
    margin-bottom: 6px;
    color: #d1d5db;
}

.progress-container {
    height: 12px;
    background: #111827;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,#22c55e,#3b82f6);
    transition: width 0.3s;
}

/* OVERLAY */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content img {
    width: 160px;
    height: 160px;

    image-rendering: pixelated;

    margin-bottom: 10px;

    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

.modal-content {
    background: #1f2937;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transform: scale(0.6);
    transition: transform 0.25s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* STATE */
.modal-state {
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 10px;
    display: inline-block;
    font-weight: bold;
}

/* ✔ collecté */
.modal-state.ok {
    color: #22c55e;
    background: rgba(34,197,94,0.15);
}

/* ✖ non collecté */
.modal-state.nope {
    color: #9ca3af;
    background: rgba(156,163,175,0.15);
}