/* ============================================================================
   Application 2 — Vocabulaire : compléments de style (s'appuie sur ../styles.css)
   ========================================================================== */

.mode-list { display: grid; gap: 12px; }

/* ------------------------------------------------------------------ cartes */
.flashcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 16px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.flashcard.is-back { border-left: 5px solid var(--gold-graphic); }
.flash-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.flash-term {
  font-size: clamp(1.9rem, 9vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 4px 0 2px;
}
.flash-full { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.flash-face {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--eyebrow);
}
.flash-section { margin-bottom: 14px; }
.flash-section h4 {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.flash-section p { font-size: 1rem; margin: 0; }
.flash-formula {
  font-family: var(--mono);
  font-size: .92rem;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}
.flash-trap {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 11px 13px;
  font-size: .92rem;
}
.flash-trap strong { color: var(--warn); }
.flash-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; flex-wrap: wrap; }
.flash-actions .btn { flex: 1 1 140px; }

.deck-progress { display: flex; align-items: center; gap: 12px; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.deck-track { flex: 1 1 120px; height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.deck-fill { height: 100%; background: var(--gold-graphic); }
.deck-chip {
  background: var(--warn-bg);
  color: #8a5209;
  border: 1px solid #e8c98a;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
  font-size: .76rem;
}

/* -------------------------------------------------------------------- quiz */
.qcard-v {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.qcard-v .qprompt { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.qcard-v .qdefine {
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 15px;
  font-size: .98rem;
  margin-bottom: 14px;
}
.explain {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: .92rem;
  background: var(--paper-2);
  border-left: 4px solid var(--muted-2);
}
.explain.is-ok { background: var(--ok-bg); border-left-color: var(--ok); }
.explain.is-bad { background: var(--bad-bg); border-left-color: var(--bad); }
.explain h4 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.explain.is-ok h4 { color: var(--ok); }
.explain.is-bad h4 { color: var(--bad); }

/* --------------------------------------------------------------- acronymes */
.acro-input-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.acro-input-row .input {
  flex: 1 1 180px;
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
}
.acro-hint { font-size: .82rem; color: var(--muted-2); margin-top: 8px; }

/* ---------------------------------------------------------------- session */
.session-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.session-meta { font-size: .86rem; color: var(--muted); }
.session-side { margin-left: auto; }

/* ------------------------------------------------------------ petite liste */
.term-list { display: grid; gap: 10px; }
.term-row {
  border: 1px solid var(--line);
  border-left: 4px solid var(--bad);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
  padding: 13px 15px;
}
.term-row.is-right { border-left-color: var(--ok); }
.term-row h4 { font-size: 1rem; margin-bottom: 4px; }
.term-row .full { font-size: .84rem; color: var(--muted-2); font-weight: 600; }
.term-row p { font-size: .9rem; margin: 6px 0 0; color: #2b3240; }

@media (max-width: 720px) {
  .flashcard { padding: 17px; min-height: 260px; }
  .qcard-v { padding: 16px; }
  .flash-actions .btn { flex: 1 1 100%; }
  /* the LC emblem is a tall mark: give it a little more room on phones */
  .brand img { height: 40px; }
  .lang-toggle .lang-on { padding: 6px 10px; }
}
