/* ═══════════════════════════════════════════════════════════════════════
   css/jogging.css — Module Rédaction (Phases 1 et 2)
   Chargé uniquement sur les pages du module — redaction.html, jogging.html,
   et depuis la Phase 2 : dashboard-eleve.html (onglet « Mes joggings
   d'écriture ») et synthese-joggings-enseignant.html — jamais sur le reste
   du site. Toujours avec ?v= pour le cache-busting (piège connu, §1.1).

   Les styles de cartes/boutons du reste du site ne sont pas centralisés
   dans un composant partagé (voir §1.2 du cahier des charges) : les valeurs
   visuelles de .skill-card et .ex-validate-btn sont recopiées ici tel quel.
   Les pastilles de niveau (level-select.css) et les badges (laurels.css)
   sont, eux, bien centralisés — ils sont importés directement par les pages
   du module, pas recopiés.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Pastille "temps de conjugaison imposé" ──────────────────────────────
   4 couleurs déclinées de la charte, distinctes des couleurs de niveau
   (teal/bleu/or) pour éviter toute confusion entre les deux pastilles d'une
   même carte (§1.1 / §5.1). Réutilisées partout dans le module. */
.jog-temps {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  color: #ffffff;
  white-space: nowrap;
}
.jog-temps--present        { background: #7C5CBF; }
.jog-temps--imparfait      { background: #E0765C; }
.jog-temps--passe-compose  { background: #D62839; }
.jog-temps--futur          { background: #1A2D6B; }

/* ─── Catalogue (redaction.html) : frise explicative du dispositif ───── */
.jog-explication-frise {
  display: block;
  width: 100%;
  max-width: 750px;
  height: auto;
  margin: 0 auto 24px;
  border-radius: var(--radius-card);
}

/* ─── Catalogue (redaction.html) : grille des 15 cartes ───────────────── */
.jog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .jog-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .jog-cards-grid { grid-template-columns: 1fr; } }

/* Carte jogging — valeurs visuelles recopiées de .skill-card (styles.css
   n'en centralise que la position:relative de base). */
.jog-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms;
  position: relative;
}
.jog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16,43,106,0.18);
}

.jog-card-illustration {
  width: 100%;
  height: 64px;
  border-radius: 10px;
  background: rgba(16,43,106,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.jog-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.jog-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.35;
}

.jog-card-competence {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.jog-card-duree {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* Bouton "Commencer" — valeurs recopiées de .ex-validate-btn */
.jog-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--blue);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-top: 4px;
  transition: background 200ms, transform 200ms;
}
.jog-card-btn:hover {
  background: #0d2255;
  transform: translateY(-1px);
}

/* Rendre toute la carte cliquable quand le bouton est un <a> */
.jog-card a.jog-card-btn::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* Jogging verrouillé par l'enseignant (parcours guidé, Phase 4, §5.8) :
   reste visible mais grisé et non cliquable — jamais caché. */
.jog-card--locked {
  opacity: 0.55;
  cursor: default;
}
.jog-card--locked:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.jog-card-btn--locked {
  background: var(--muted);
  cursor: default;
}
.jog-card-btn--locked:hover {
  background: var(--muted);
  transform: none;
}

/* ─── Écran du jogging (jogging.html) ─────────────────────────────────── */

.jog-intro-consigne {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
}

.jog-intro-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.jog-intro-duree {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Bandeau de version : V1 → V2 → V3 */
.jog-version-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 20px;
}
.jog-version-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  border: 2px solid var(--border);
  color: var(--muted);
  background: var(--card-bg);
  transition: background 250ms, border-color 250ms, color 250ms;
}
.jog-version-step--done   { background: var(--blue); border-color: var(--blue); color: #fff; }
.jog-version-step--active { border-color: var(--blue); color: var(--blue); }
.jog-version-sep {
  width: 22px;
  height: 2px;
  background: var(--border);
}
.jog-version-label {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}

/* Éditeur */
.jog-textarea {
  width: 100%;
  min-height: 260px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--card-bg);
  resize: vertical;
  transition: border-color 200ms, box-shadow 200ms;
}
.jog-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(16,43,106,0.08);
}
.jog-textarea:disabled { cursor: default; opacity: 0.75; }

.jog-wordcount {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin: 6px 2px 16px;
}
.jog-wordcount.is-warning { color: var(--red); font-weight: 700; }

.jog-autosave-status {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin: -12px 2px 14px;
  min-height: 14px;
}

/* Bouton "Corriger mon texte" — pleine largeur, valeurs recopiées de
   .ex-validate-btn (variante pleine largeur type .ct-val-btn). */
.jog-validate-btn {
  display: block;
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 200ms, transform 200ms;
}
.jog-validate-btn:hover:not(:disabled) { background: #0d2255; transform: translateY(-1px); }
.jog-validate-btn:disabled { opacity: 0.5; cursor: default; }

/* Rappel visuel de la grille Code Champion (C-H-A-M-P-I-O-N-S), affiché sous
   le bouton de validation à chaque version — mêmes propriétés responsives
   que .jog-explication-frise (redaction.html). */
.jog-champion-reminder {
  display: block;
  width: 100%;
  max-width: 750px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-card);
}

/* Transition brève éditeur → correction (§3.11 : Grammalecte est quasi
   instantané, plus besoin d'un écran d'attente à message). */
.jog-fade-out { animation: jog-fade-out 300ms ease forwards; }
.jog-fade-in  { animation: jog-fade-in 400ms ease; }
@keyframes jog-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes jog-fade-in  { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Message d'erreur rassurant */
.jog-error-box {
  text-align: center;
  padding: 32px 24px;
  background: rgba(214,40,57,0.05);
  border: 1.5px solid rgba(214,40,57,0.2);
  border-radius: 14px;
}
.jog-error-text {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
}

/* ─── Écran de correction ──────────────────────────────────────────────── */

.jog-correction-text {
  position: relative;
  line-height: 1.85;
  font-size: 15px;
  color: var(--text);
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.jog-highlight {
  border-radius: 4px;
  padding: 0 2px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.jog-highlight[data-code="C"] { background: rgba(16,43,106,0.12); color: #102B6A; }
.jog-highlight[data-code="H"] { background: rgba(29,191,160,0.14); color: #0E7A66; }
.jog-highlight[data-code="A"] { background: rgba(214,40,57,0.12); color: #B21E30; }
.jog-highlight[data-code="M"] { background: rgba(245,166,35,0.16); color: #8A5A0E; }
.jog-highlight[data-code="P"] { background: rgba(74,144,217,0.16); color: #2A5F92; }
.jog-highlight[data-code="O"] { background: rgba(224,118,92,0.16); color: #A0492F; }
.jog-highlight[data-code="N"] { background: rgba(124,92,191,0.16); color: #5A3F8F; }
.jog-highlight[data-code="S"] { background: rgba(16,43,106,0.10); color: #102B6A; }

.jog-bubble {
  position: absolute;
  z-index: 20;
  max-width: 260px;
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
}
.jog-bubble-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 4px;
  color: #F5A623;
}

/* Tableau Code Champion — pleine largeur, sous le texte, jamais en colonne */
.jog-feux-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 22px 0 10px;
}
/* Une seule ligne, toujours — se lit comme "CHAMPIONS". Les tuiles
   rétrécissent jusqu'à leur largeur minimale avant de déclencher un
   défilement horizontal (jamais de passage à la ligne, jamais de tuile
   coupée sans moyen de la voir : cf. .jog-feux-grid-wrap ci-dessous). */
.jog-feux-grid-wrap {
  position: relative;
}
.jog-feux-grid {
  display: flex;
  gap: 4px;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  /* Barre de défilement volontairement visible (pas le comportement
     auto-masqué de certains systèmes) : premier indice qu'on peut glisser. */
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.jog-feux-grid::-webkit-scrollbar { height: 6px; }
.jog-feux-grid::-webkit-scrollbar-track { background: transparent; }
.jog-feux-grid::-webkit-scrollbar-thumb { background: rgba(16,43,106,0.35); border-radius: 10px; }

/* Second indice, plus visible que la barre seule : une flèche collée au
   bord droit tant qu'il reste des tuiles cachées. Ajoutée/retirée par
   renderFeuxGrid() (js/jogging-engine.js) selon le dépassement réel mesuré
   — recalculé aussi au redimensionnement de la fenêtre. */
.jog-feux-scroll-hint {
  display: none;
  position: sticky;
  right: 0;
  flex: 0 0 auto;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  width: 20px;
  margin-left: -20px;
  background: linear-gradient(to right, transparent, var(--bg) 55%);
  color: var(--blue);
  font-weight: 800;
  font-size: 16px;
  pointer-events: none;
}
.jog-feux-grid--scrollable .jog-feux-scroll-hint { display: flex; }

.jog-feu-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 29px;
  padding: 6px 2px;
  border-radius: 9px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  cursor: default;
  transition: background 400ms ease, border-color 400ms ease, transform 400ms ease;
}
/* N (Néant) : toujours en attente d'une évaluation manuelle enseignante en
   Phase 1 (jogging_enrichments, Phase 2) — bordure pointillée + curseur pour
   le distinguer de I, qui lui n'aura jamais de sens à cliquer. */
.jog-feu-cell--manual {
  border-style: dashed;
  cursor: pointer;
}
.jog-feu-cell.jog-feu-anim { animation: jog-feu-pop 400ms ease; }
@keyframes jog-feu-pop {
  0%   { transform: scale(0.85); opacity: 0.4; }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
.jog-feu-cell--vert   { background: rgba(22,163,74,0.10);  border-color: rgba(22,163,74,0.35); }
.jog-feu-cell--orange { background: rgba(245,166,35,0.14); border-color: rgba(245,166,35,0.4); }
.jog-feu-cell--rouge  { background: rgba(214,40,57,0.10);  border-color: rgba(214,40,57,0.35); }
.jog-feu-cell--blanc  { background: rgba(0,0,0,0.02);      border-color: var(--border); opacity: 0.6; }

.jog-feu-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--muted);
}
.jog-feu-icon { font-size: 15px; line-height: 1; }
.jog-feu-cell--vert   .jog-feu-icon { color: #16a34a; }
.jog-feu-cell--orange .jog-feu-icon { color: #b8760f; }
.jog-feu-cell--rouge  .jog-feu-icon { color: #D62839; }
.jog-feu-cell--blanc  .jog-feu-icon { color: var(--muted); }

/* Légende contextuelle par lettre (survol desktop / tap mobile) — même
   charte que la bulle d'explication des erreurs surlignées (.jog-bubble). */
.jog-feu-tooltip {
  position: fixed;
  z-index: 30;
  max-width: 220px;
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}
.jog-feu-tooltip-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 3px;
  color: #F5A623;
}

.jog-mission {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--blue);
  margin-top: 22px;
}
.jog-progress-msg {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.jog-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.jog-final-message {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--blue);
}

/* Générateur de premier jet (Phase 2bis, §5.5) — bouton, visible dès
   qu'une version existe (pas seulement en fin de cycle). Le rendu imprimé
   lui-même est géré par css/jogging-print.css. */
.jog-print-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1.5px dashed var(--border);
  text-align: center;
}

/* Message préventif élève — toujours visible, indépendant de l'état de la
   page (§5.4) : voir jogging.html, juste après la consigne. */
.jog-preventif-msg {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
  max-width: 480px;
  margin: 0 auto 18px;
}

/* ─── Historique (dashboard-eleve.html, onglet "Mes joggings d'écriture" et
   fiche élève de synthese-joggings-enseignant.html) — Phase 2 ───────────── */
.jog-histo-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.jog-histo-card:last-child { margin-bottom: 0; }
.jog-histo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  background: var(--bg);
  transition: background 180ms;
}
.jog-histo-card-top:hover { background: rgba(16,43,106,0.04); }
.jog-histo-title { font-weight: 700; font-size: 14px; color: var(--text); }
.jog-histo-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.jog-histo-chevron { color: var(--muted); transition: transform 200ms; flex-shrink: 0; }
.jog-histo-detail { padding: 16px 18px; border-top: 1px solid var(--border); }
.jog-histo-version { margin-bottom: 16px; }
.jog-histo-version:last-child { margin-bottom: 0; }
.jog-histo-version-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
/* ─── Vue classe enseignant (synthese-joggings-enseignant.html) — feu
   compact en cellule de tableau (mêmes couleurs que .jog-feu-cell) ──────── */
.jog-feu-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  border: 1.5px solid var(--border);
  background: var(--bg);
}
.jog-feu-dot--vert   { background: rgba(22,163,74,0.12);  border-color: rgba(22,163,74,0.4);  color: #16a34a; }
.jog-feu-dot--orange { background: rgba(245,166,35,0.16); border-color: rgba(245,166,35,0.45); color: #b8760f; }
.jog-feu-dot--rouge  { background: rgba(214,40,57,0.12);  border-color: rgba(214,40,57,0.4);   color: #D62839; }
.jog-feu-dot--blanc  { background: rgba(0,0,0,0.02);      border-color: var(--border);         color: var(--muted); opacity: 0.7; }
/* Colonne N : bordure pointillée pour rappeler l'évaluation manuelle. */
.jog-feu-dot--manual { border-style: dashed; }

/* ─── Mes progrès (dashboard-eleve.html, Phase 3) — grands feux cliquables,
   un par critère Code Champion, mêmes couleurs que .jog-feu-cell mais plus
   grands pour être facilement cliqués/tapés. ─────────────────────────────── */
.jog-progres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.jog-progres-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font: inherit;
  transition: transform 150ms ease, border-color 150ms ease;
}
.jog-progres-tile:hover,
.jog-progres-tile:focus-visible { transform: translateY(-2px); outline: none; }
.jog-progres-tile--active { border-width: 2.5px; box-shadow: 0 0 0 3px rgba(26,45,107,0.12); }
.jog-progres-tile--vert   { background: rgba(22,163,74,0.10);  border-color: rgba(22,163,74,0.4); }
.jog-progres-tile--orange { background: rgba(245,166,35,0.14); border-color: rgba(245,166,35,0.45); }
.jog-progres-tile--rouge  { background: rgba(214,40,57,0.10);  border-color: rgba(214,40,57,0.4); }
.jog-progres-tile--blanc  { background: rgba(0,0,0,0.02);      border-color: var(--border); opacity: 0.65; }
.jog-progres-tile-letter { font-family: var(--font-display, 'Fredoka', sans-serif); font-weight: 800; font-size: 20px; }
.jog-progres-tile-icon { font-size: 18px; line-height: 1; }

.jog-progres-panel {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--bg);
  margin-bottom: 16px;
}
.jog-progres-panel-title { font-family: var(--font-display, 'Fredoka', sans-serif); font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 12px; }
.jog-progres-block { margin-bottom: 12px; }
.jog-progres-block:last-child { margin-bottom: 0; }
.jog-progres-block-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }
.jog-progres-block-text { font-size: 14px; line-height: 1.55; color: var(--text); }
.jog-progres-block--reussi  .jog-progres-block-label { color: #16a34a; }
.jog-progres-block--difficile .jog-progres-block-label { color: #b8760f; }
.jog-progres-block--conseil .jog-progres-block-label { color: var(--blue); }
.jog-progres-block--defi    .jog-progres-block-label { color: #7C5CBF; }

/* ─── Mon objectif (Phase 3) ───────────────────────────────────────────── */
.jog-objectif-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26,45,107,0.08), rgba(124,92,191,0.08));
  border: 1.5px solid var(--border);
}
.jog-objectif-icon { font-size: 28px; flex-shrink: 0; }
.jog-objectif-text { font-size: 14px; font-weight: 700; color: var(--text); }

/* ─── Mon évolution (Phase 3) — mini barres verticales (feux verts par
   jogging) et barres horizontales (répartition par critère), même patron
   que .jog-bp-bar-bg/.jog-bp-bar-fill du bilan imprimé enseignant. ──────── */
.jog-evo-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  padding: 8px 4px 0;
  overflow-x: auto;
}
.jog-evo-bar-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 22px; }
.jog-evo-bar { width: 14px; border-radius: 4px 4px 0 0; background: var(--blue); min-height: 2px; }
.jog-evo-bar-label { font-size: 9px; color: var(--muted); margin-top: 4px; }

.jog-evo-repart-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.jog-evo-repart-label { width: 90px; flex-shrink: 0; color: var(--muted); font-weight: 700; }
.jog-evo-repart-bar-bg { flex: 1; height: 10px; background: rgba(0,0,0,0.05); border-radius: 5px; overflow: hidden; }
.jog-evo-repart-bar-fill { height: 100%; background: #16a34a; border-radius: 5px; }
.jog-evo-repart-count { width: 34px; text-align: right; flex-shrink: 0; color: var(--muted); }

/* ─── Mon carnet d'auteur (Phase 3) ────────────────────────────────────── */
.jog-carnet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  margin-bottom: 10px;
}
.jog-carnet-card-title { font-weight: 700; font-size: 14px; color: var(--text); }
.jog-carnet-card-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.jog-carnet-remove-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
}
.jog-btn-outline {
  border: 1.5px solid var(--blue);
  background: rgba(26,45,107,0.06);
  color: var(--blue);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.jog-btn-outline:disabled { opacity: 0.6; cursor: default; }
.jog-carnet-print-btn {
  border: none;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

/* Export "petit livre" PDF du carnet d'auteur — même mécanique que le
   bulletin enseignant (synthese-joggings-enseignant.html) : racine masquée
   basculée en display:block par une classe sur <body>, tout le reste caché
   pendant l'impression. */
#jog-carnet-print-root { display: none; }
.jog-carnet-page { font-family: 'Nunito Sans', system-ui, sans-serif; color: #1E2532; }
.jog-carnet-cover { text-align: center; padding-top: 120pt; page-break-after: always; }
.jog-carnet-cover-title { font-family: 'Fredoka', sans-serif; font-weight: 800; font-size: 24pt; color: #1A2D6B; margin-bottom: 10pt; }
.jog-carnet-cover-sub { font-size: 12pt; color: #5F6368; }
.jog-carnet-entry { margin-bottom: 24pt; page-break-inside: avoid; }
.jog-carnet-entry-title { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 13pt; color: #1A2D6B; margin-bottom: 6pt; }
.jog-carnet-entry-meta { font-size: 8.5pt; color: #9AA3B2; margin-bottom: 8pt; }
.jog-carnet-entry-text { font-size: 10.5pt; line-height: 1.7; white-space: pre-wrap; }

body.printing-jog-carnet #jog-carnet-print-root { display: block !important; }

@media print {
  body.printing-jog-carnet, body.printing-jog-carnet #jog-carnet-print-root {
    display: block !important; position: static !important; inset: auto !important;
  }
  body.printing-jog-carnet .navbar, body.printing-jog-carnet footer,
  body.printing-jog-carnet .dash-header, body.printing-jog-carnet .dash-tabs,
  body.printing-jog-carnet .dash-tab-pane, body.printing-jog-carnet .dash-actions {
    display: none !important;
  }
  body.printing-jog-carnet .dash-wrap    { padding: 0; background: #fff; min-height: unset; }
  body.printing-jog-carnet .dash-content { max-width: 100%; padding: 0; }
}
