/* ============================================================
   BESCHERELLE.CSS — Les Cahiers APC
   ============================================================ */

/* ── En-tête ──────────────────────────────────────────────── */
.besch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.besch-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A5276;
}
.besch-session-pill {
  background: #1A5276;
  color: #fff;
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Choix de mode ────────────────────────────────────────── */
.besch-choix-mode {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.besch-mode-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  background: #fff;
}
.besch-mode-card:hover {
  border-color: #1A5276;
  box-shadow: 0 4px 12px rgba(26,82,118,0.15);
  transform: translateY(-2px);
}
.besch-mode-icon  { font-size: 1.8rem; margin-bottom: 6px; }
.besch-mode-label { font-weight: 700; color: #1A5276; font-size: 0.9rem; }
.besch-mode-desc  { font-size: 0.78rem; color: #718096; margin-top: 3px; }

/* ── Section titre ────────────────────────────────────────── */
.besch-section-titre {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1A5276;
  padding: 7px 14px;
  background: #eaf4fb;
  border-left: 4px solid #1A5276;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}

/* ── Verbes vedettes ──────────────────────────────────────── */
.besch-vedettes-grille {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.besch-vedette-btn {
  border: 1.5px solid #1A5276;
  border-radius: 8px;
  padding: 6px 14px;
  background: #eaf4fb;
  color: #1A5276;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.besch-vedette-btn:hover { background: #1A5276; color: #fff; transform: scale(1.04); }

/* ── Recherche verbe ──────────────────────────────────────── */
.besch-recherche-zone { margin-bottom: 10px; }
.besch-input-recherche {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  color: #1c2833;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.besch-input-recherche:focus { border-color: #1A5276; }

/* ── Filtres groupes ──────────────────────────────────────── */
.besch-filtres { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.besch-filtre {
  padding: 5px 12px;
  border-radius: 99px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.besch-filtre:hover { border-color: #1A5276; }
.besch-filtre.actif { background: #1A5276; color: #fff; border-color: #1A5276; }

/* ── Liste des verbes ─────────────────────────────────────── */
.besch-liste-verbes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}
.besch-verbe-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.88rem;
}
.besch-verbe-item:hover { border-color: #1A5276; background: #eaf4fb; }
.besch-inf { font-weight: 600; color: #1c2833; }
.besch-badge { font-size: 0.7rem; color: #718096; }

/* ── Tableau de conjugaison ───────────────────────────────── */
.besch-verbe-titre {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}
.besch-inf-big {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1A5276;
}
.besch-groupe-badge {
  background: #eaf4fb;
  border: 1px solid #1A5276;
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 0.8rem;
  color: #1A5276;
}
.besch-tableaux {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.besch-bloc-mode {
  border: 2px solid #888;
  border-radius: 10px;
  overflow: hidden;
}
.besch-mode-titre {
  padding: 7px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.besch-temps-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
}
.besch-tableau-temps {
  padding: 10px 12px;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.besch-temps-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.besch-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}
.besch-table td { padding: 2px 4px; }
.besch-td-pronom { color: #718096; width: 40%; font-style: italic; }
.besch-td-forme  { color: #1c2833; font-weight: 600; }
.besch-tr-vide   { display: none; }
.besch-form-hl td.besch-td-forme { color: #1A5276; font-weight: 700; }

.besch-btn-entrainer { margin-top: 8px; }

/* ── Exercice ─────────────────────────────────────────────── */
.besch-exo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.besch-exo-inf  { font-weight: 700; color: #1A5276; font-size: 1rem; flex: 1; }
.besch-exo-score { font-size: 0.9rem; color: #1A5276; font-weight: 600; white-space: nowrap; }

.besch-exo-carte {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  animation: gam-fade-in 0.3s ease;
}
.besch-exo-consigne {
  font-size: 1rem;
  color: #1c2833;
  margin: 0 0 14px;
  line-height: 1.5;
}
.besch-saisie-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.besch-input {
  flex: 1;
  min-width: 160px;
  padding: 9px 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 1rem;
  color: #1c2833;
  outline: none;
  transition: border-color 0.15s;
}
.besch-input:focus { border-color: #1A5276; }
.besch-input:disabled { background: #f1f5f9; }

.besch-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.besch-opt {
  padding: 9px 18px;
  border-radius: 9px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.besch-opt:hover:not(:disabled) { border-color: #1A5276; background: #eaf4fb; }
.besch-opt:disabled { cursor: default; }
.besch-opt-ok { background: #d1fae5 !important; border-color: #10b981 !important; color: #065f46 !important; font-weight: 700; }
.besch-opt-ko { background: #fee2e2 !important; border-color: #ef4444 !important; color: #7f1d1d !important; }

.besch-feedback {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  animation: gam-fade-in 0.25s ease;
  line-height: 1.5;
}
.besch-fb-ok { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.besch-fb-ko { background: #fee2e2; color: #7f1d1d; border: 1px solid #ef4444; }

.besch-btn-suivant { margin-top: 4px; }

/* Mini tableau de rappel sous l'exercice */
.besch-mini-tableau {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.besch-mini-titre {
  font-size: 0.78rem;
  color: #718096;
  margin-bottom: 6px;
  font-style: italic;
}
.besch-table-mini { font-size: 0.82rem; }
.besch-table-mini .besch-td-forme { font-weight: 600; }
.besch-table-mini .besch-form-hl .besch-td-forme {
  color: #1A5276;
  font-weight: 700;
  background: #eaf4fb;
  border-radius: 4px;
  padding: 1px 5px;
}

/* ── Scores ───────────────────────────────────────────────── */
.besch-score-global {
  text-align: center;
  padding: 16px;
  background: #1A5276;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 16px;
}
.besch-score-big    { font-size: 2.5rem; font-weight: 700; }
.besch-score-detail { font-size: 0.9rem; opacity: 0.85; margin-bottom: 8px; }
.besch-barre-fond   { height: 8px; background: rgba(255,255,255,0.3); border-radius: 99px; overflow: hidden; }
.besch-barre-remplie { height: 100%; background: #D4AC0D; border-radius: 99px; transition: width 0.6s; }

.besch-scores-liste { display: flex; flex-direction: column; gap: 6px; }
.besch-score-ligne {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: background 0.15s;
}
.besch-score-ligne:hover { background: #eaf4fb; }
.besch-score-inf  { font-weight: 600; color: #1c2833; min-width: 90px; }
.besch-score-barre-mini { flex: 1; height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.besch-score-pct  { font-weight: 700; font-size: 0.85rem; min-width: 36px; text-align: right; }
.besch-score-nb   { font-size: 0.8rem; color: #718096; min-width: 40px; text-align: right; }

/* ── Bouton retour ────────────────────────────────────────── */
.besch-retour { margin-bottom: 10px; }
