/* Cartes mémo : le même langage que les autres cartes de l’appli (fond blanc,
   bord 2 px lavande, relief en bas). Le violet est réservé au mot-clé SQL. */
html .collectible,html.lq .collectible{
  position:relative;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;gap:14px;
  min-width:0;padding:12px 13px 14px;border:2px solid var(--line);border-radius:18px;background:var(--surface);
  color:var(--ink);text-align:left;font-family:var(--ui);box-shadow:0 4px 0 var(--lip);overflow:hidden;
  transition:transform .12s var(--press,ease),box-shadow .12s var(--press,ease),border-color .15s;
}
html .collectible::before,html.lq .collectible::before,
html .collectible::after,html.lq .collectible::after{display:none}

.memo-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px}
.memo-num{flex:none;display:inline-grid;place-items:center;min-width:28px;height:22px;padding:0 6px;box-sizing:border-box;border-radius:8px;background:var(--surface-2);font:700 11px/1 var(--mono);letter-spacing:.02em;color:var(--ink-3)}
.memo-mod{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 12.5px/1.2 var(--display);color:var(--ink-3)}
.memo-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.memo-copy>b{font:700 18px/1.12 var(--mono);letter-spacing:-.01em;color:var(--accent-ink);overflow-wrap:anywhere}
.memo-copy>span{font-size:12.5px;line-height:1.3;color:var(--ink-2);overflow-wrap:anywhere}

/* Grille : deux cartes par ligne, compactes. Le module est déjà dans l’en-tête. */
html.lq .coll-grid,html .coll-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:4px 14px 16px;align-items:stretch}
html.lq .coll-card.collectible,html .coll-card.collectible{min-height:112px;width:100%;cursor:pointer;-webkit-tap-highlight-color:transparent}
.coll-card.collectible .memo-mod,.bravo-gcard.collectible .memo-mod{display:none}
html .coll-card.collectible:active,html.lq .coll-card.collectible:active{transform:translateY(4px);box-shadow:0 0 0 var(--lip)}
html .collectible:focus-visible,html.lq .collectible:focus-visible{outline:3px solid var(--accent-ink);outline-offset:3px}

/* Badges : « Acquise » en violet doux (le vert passe au violet sur cet écran, voir « Moins de couleurs »),
   « À revoir » en ambre, comme les retards ailleurs dans l’appli. */
html.lq .collectible .coll-badge,html .collectible .coll-badge{position:absolute;top:12px;right:12px;z-index:1;padding:4px 8px;border:0;border-radius:999px;font:700 10.5px/1.1 var(--display);font-style:normal;white-space:nowrap;box-shadow:none}
html.lq .collectible .coll-badge.is-due,html .collectible .coll-badge.is-due{background:var(--warn-fill);color:#3D2600}
html.lq .collectible .coll-badge.is-ok,html .collectible .coll-badge.is-ok{background:var(--success-soft);color:var(--success)}
html.lq .collectible .coll-badge.is-ok::before,html .collectible .coll-badge.is-ok::before{content:'✓ '}
html.lq .coll-card.collectible.is-due,html .coll-card.collectible.is-due{border-color:var(--warn-fill);box-shadow:0 4px 0 #E2A11B}
html.lq .coll-card.collectible.is-due:active{box-shadow:0 0 0 #E2A11B}
.coll-card.collectible.is-due .memo-num{background:var(--warn-soft);color:var(--warn)}

/* À débloquer : contour en pointillés, cadenas, lien vers la leçon. */
html.lq .coll-card.collectible.lock,html .coll-card.collectible.lock{background:transparent;border:2px dashed var(--lip);box-shadow:none;color:var(--ink-3)}
html.lq .coll-card.collectible.lock:active{transform:none}
.collectible.lock .memo-num{background:transparent;box-shadow:inset 0 0 0 1.5px var(--lip)}
.memo-lock{display:grid;place-items:center;color:#B3ACD4}
.memo-lock svg{width:20px;height:20px}
.collectible.lock .memo-copy>b{font:700 14.5px/1.2 var(--display);letter-spacing:0;color:var(--ink-2)}
.collectible.lock .memo-copy>span{color:var(--ink-3);font-weight:600}

/* Fiche d’une carte : la même carte, en grand, avec le nom du module. */
html .cd-share.collectible,html.lq .cd-share.collectible{margin:0 0 18px;padding:18px 20px 20px;border-radius:24px;gap:18px;color:var(--ink)}
.cd-share.collectible .memo-copy{gap:8px}
.cd-share.collectible .memo-copy>b{font-size:30px;letter-spacing:-.02em}
.cd-share.collectible .memo-copy>span{font:700 16px/1.35 var(--display);color:var(--ink-2)}
.cd-share.collectible .memo-num{height:26px;min-width:34px;font-size:12px;border-radius:9px}

/* Récompense de fin de leçon : même carte, au format du bloc. */
html .bravo-gcard.collectible,html.lq .bravo-gcard.collectible{aspect-ratio:auto;min-height:150px;padding:14px 14px 16px;color:var(--ink)}
/* Un mot long (« Normalisation ») ne se coupe pas : bravoFitCard réduit sa taille jusqu’à ce qu’il tienne. */
.bravo-gcard.collectible .memo-copy>b{font-size:clamp(17px,4.6vw,20px);overflow-wrap:normal}

@media(min-width:600px){html.lq .coll-grid,html .coll-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}
@media(max-width:360px){html.lq .coll-grid,html .coll-grid{gap:10px;padding:4px 12px 14px}html.lq .coll-card.collectible,html .coll-card.collectible{padding:10px 11px 12px}.coll-card.collectible .memo-copy>b{font-size:15px}.coll-card.collectible .memo-copy>span{font-size:12px}}
@media(prefers-reduced-motion:reduce){html .collectible,html.lq .collectible{transition:none}}
