/* Liste des projets : une fiche d'étude par ligne (web/tags/project.html) */

.study-list { display: flex; flex-direction: column; gap: 0.75rem; }

.study-row {
    --study-tone: var(--bs-gray-500);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-left: 4px solid var(--study-tone);
    border-radius: var(--radius-xl, 0.75rem);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.study-row.status-en-cours { --study-tone: var(--bs-success); }
.study-row.status-en-preparation { --study-tone: var(--bs-warning); }
.study-row.status-en-valorisation { --study-tone: var(--bs-info); }
.study-row:hover,
.study-row:focus-within { box-shadow: var(--shadow-md); border-color: rgba(0, 32, 69, 0.25); border-left-color: var(--study-tone); }

.study-logo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    background: var(--bs-gray-100, #f8f9fa);
    border-radius: var(--radius-lg, 0.5rem);
    overflow: hidden;
}
.study-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.study-logo-initials { font-weight: 700; font-size: 1.25rem; color: var(--bs-primary); letter-spacing: 0.05em; }

.study-body { flex: 1 1 auto; min-width: 0; }

.study-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.25rem; }
.study-ids { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; min-width: 0; }
.study-acronym { font-weight: 800; font-size: 1.05rem; color: var(--bs-primary); letter-spacing: 0.02em; }
.study-number { font-size: 0.75rem; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }

.study-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-body-color);
    white-space: nowrap;
}
.study-status-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--study-tone); }

.study-title { font-size: 1rem; font-weight: 600; line-height: 1.4; margin: 0 0 0.5rem; }
.study-title a {
    color: var(--bs-body-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.study-title.is-acronym { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; }
.study-title.is-acronym a { color: var(--bs-primary); }
.study-summary {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--bs-secondary-color);
    margin: -0.15rem 0 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.study-row:hover .study-title a { color: var(--bs-primary); }

.study-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.6rem; }
.study-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 32, 69, 0.07);
    color: var(--bs-primary);
}
.study-tag-muted { background: var(--bs-gray-100, #f8f9fa); color: var(--bs-secondary-color); font-weight: 500; }

.study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}
.study-meta li { display: inline-flex; align-items: baseline; gap: 0.35rem; }
.study-meta .mdi { color: var(--bs-primary); opacity: 0.7; }
.study-more { font-weight: 600; color: var(--bs-primary); }

.study-arrow { align-self: center; font-size: 1.5rem; color: var(--bs-gray-400); transition: transform 0.2s ease, color 0.2s ease; }
.study-row:hover .study-arrow { color: var(--bs-primary); transform: translateX(3px); }

/* Onglets de statut avec effectif */
.status-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.status-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bs-body-color);
    text-decoration: none;
    background: #fff;
}
.status-tab:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
.status-tab.active { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.status-tab-count { font-size: 0.75rem; font-weight: 700; opacity: 0.7; font-variant-numeric: tabular-nums; }
.status-tab.active .status-tab-count { opacity: 0.85; }
.status-tab.is-empty { opacity: 0.55; }

@media (max-width: 575.98px) {
    .study-row { gap: 0.9rem; padding: 1rem; }
    .study-logo { flex-basis: 52px; width: 52px; height: 52px; }
    .study-arrow { display: none; }
    .study-head { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
}
