/* Produits à compléter : une ligne par produit, formulaire en ligne. */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; padding: 6px 14px; border: 1px solid var(--sand); border-radius: 999px; background: #fff; color: var(--brown); cursor: pointer; }
.chip[aria-pressed='true'] { border-color: var(--accent-dark); background: #FDF3EA; font-weight: 500; }
.chip__count { color: var(--brown-soft); margin-left: 4px; }
.search input { font: inherit; padding: 8px 12px; border: 1px solid var(--sand); border-radius: 8px; min-width: 240px; background: #fff; color: var(--brown); }

.items { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.item { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 16px 18px; }
.item--done { border-color: #9cc5a1; background: #f3faf3; }
.item__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.item__name { margin: 0; font-size: 16px; font-weight: 500; }
.item__meta { font-size: 13px; color: var(--brown-soft); }
.missing { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #FBEAD9; color: #8B2F12; }

.sheet { display: grid; grid-template-columns: 1.1fr 2fr .8fr .8fr .9fr auto; gap: 8px 12px; align-items: end; margin-top: 12px; }
.sheet label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.sheet input, .sheet select { font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid var(--sand); border-radius: 8px; background: #fff; color: var(--brown); min-width: 0; }
.sheet [aria-invalid='true'] { border-color: var(--error); }
/* Exemples (placeholder) : nettement plus pâles qu'une vraie saisie, pour ne pas les confondre */
.sheet input::placeholder { color: var(--brown); opacity: .38; }
.sheet .button { padding: 9px 16px; }
.item__status { margin: 8px 0 0; font-size: 14px; }
.item__status:empty { display: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 900px) {
    .sheet { grid-template-columns: 1fr 1fr; }
    .sheet__aromas { grid-column: 1 / -1; order: -1; }
    .sheet .button { grid-column: 1 / -1; }
}

.formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.format { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--sand-light); font-size: 13px; }
.format__shops { color: var(--brown-soft); }
.suggestion { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid #9cc5a1; background: #f3faf3; font-size: 14px; }
.linklike { font: inherit; padding: 0; border: 0; background: none; color: var(--accent-dark); text-decoration: underline; cursor: pointer; }

/* Progression de l'équipe : une barre = toutes les fiches (complétées + à faire) ; chaque
   part complétée porte les initiales de son auteur, à sa juste proportion. Même couleur pour
   tous (pas de mise en avant), 2 px d'écart entre les parts ; ordre alphabétique, sans rang. */
.progress { margin: 8px 0 24px; padding: 16px 18px; background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); }
.progress__title { margin: 0 0 10px; font-size: 16px; }
.progress__title strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.progress__track { display: flex; gap: 2px; height: 22px; background: var(--sand-light); border-radius: 6px; overflow: hidden; }
.progress__part {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3px;
    background: var(--brown);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    white-space: nowrap;
    overflow: hidden;
}
.progress__part:first-child { border-radius: 6px 0 0 6px; }
.progress__legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
.progress__legend li { display: inline-flex; align-items: baseline; gap: 5px; }
.progress__legend b { font-weight: 600; }
.progress__legend .todo { color: var(--brown-soft); }
.progress__swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--brown); align-self: center; }
.progress__swatch--todo { background: var(--sand-light); outline: 1px solid var(--sand); }
.progress__note { margin: 8px 0 0; font-size: 14px; color: var(--brown-soft); font-variant-numeric: tabular-nums; }
.progress__note:empty { display: none; }
.progress__initials[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .progress__part { transition: none; } }

/* Corrections de fiches déjà complètes : comptées à part, discrètement (RG-A3) */
.progress__corrections { margin: 6px 0 0; padding-top: 8px; border-top: 1px dashed var(--sand); font-size: 13px; color: var(--brown-soft); font-variant-numeric: tabular-nums; }
.progress__corrections strong { color: var(--brown); font-weight: 500; }
