/* ═══════════════════════════════════════════════════════════════
   KANBANZINE — Design System
   Palette : rouge missions / teal étude / slate réalisation / jaune validation
═══════════════════════════════════════════════════════════════ */

/* ── Variables — couleurs extraites du plateau physique Kanbanzine ── */
:root {
  /* Colonnes Kanban (couleurs du plateau original) */
  --missions:     #F07272;   /* corail / saumon         */
  --missions-dk:  #CC2828;   /* rouge foncé (titre)     */
  --etude:        #5ECEC8;   /* turquoise / teal        */
  --etude-dk:     #1A7A76;   /* teal foncé (titre)      */
  --real:         #ADADAD;   /* gris moyen              */
  --real-dk:      #5A5A5A;   /* gris foncé (titre)      */
  --valid:        #F5C832;   /* jaune vif               */
  --valid-dk:     #9A7C00;   /* jaune-or foncé (titre)  */

  /* Types d'articles (couleurs de la grille mix) */
  --supplement:   #7B5EA7;   /* violet (Supplément)     */
  --reportage:    #D4830A;   /* orange-ambre (Reportage)*/
  --actualite:    #1A7A76;   /* teal foncé (Actualité)  */
  --pa:           #E06820;   /* orange-rouge (P.Annonce)*/
  --invest:       #2E8B57;   /* vert (Investissement)   */

  /* UI générale */
  --green:   #2E8B57;
  --green-lt:#3BAA6A;
  --dark:    #1C2833;
  --bg:      #F5F5F5;
  --card-bg: #FFFFFF;
  --border:  #D8D8D8;
  --text:    #222222;
  --text-2:  #666666;
  --shadow:  0 2px 8px rgba(0,0,0,.12);
  --radius:  8px;
  --font: 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input  { font-family: inherit; }

/* ── Views ─────────────────────────────────────────────────── */
.view { display: none; width: 100%; height: 100vh; }
.view.active { display: flex; flex-direction: column; }


/* ═══════════════════════════════════════════════════════════
   PAGE SESSION
═══════════════════════════════════════════════════════════ */
.session-page {
  min-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(145deg, #1C2833 0%, #2a3a48 60%, #1a3040 100%);
  padding: 40px 20px;
}

.session-hero {
  text-align: center;
  margin-bottom: 40px;
}
.hero-logo {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.hero-license {
  margin-top: 10px;
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
}
.hero-license a {
  color: rgba(255,255,255,.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-license a:hover { color: #fff; }

.hero-tagline {
  margin-top: 8px;
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
}

.session-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 900px;
}

.panel {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-row input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  transition: border-color .2s;
  outline: none;
}
.form-row input:focus { border-color: var(--teal); }

/* Session list */
#session-list { display: flex; flex-direction: column; gap: 10px; }
.session-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.session-item:hover { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,160,133,.1); }
.session-item-body { flex: 1; min-width: 0; }
.session-item-name { font-weight: 700; font-size: .95rem; }
.session-item-meta { font-size: .8rem; color: var(--text-2); margin-top: 2px; }
.session-item-players { font-size: .78rem; color: var(--teal); margin-top: 3px; }

.empty-hint { color: var(--text-2); font-size: .9rem; text-align: center; padding: 24px 0; }

.session-footer {
  margin-top: 32px;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}


/* ═══════════════════════════════════════════════════════════
   BOUTONS GLOBAUX
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--etude-dk); color: #fff; }
.btn-full { width: 100%; justify-content: center; padding: 12px; font-size: 1rem; margin-top: 8px; }

.btn-icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}
.btn-danger { background: #E74C3C; color: #fff; }

/* Header buttons */
.btn-dice  { background: var(--dark);        color: var(--valid);   }
.btn-next  { background: var(--etude-dk);    color: #fff;           }
.btn-pub   { background: var(--missions-dk); color: #fff;           }
.btn-back  { background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.2); }


/* ═══════════════════════════════════════════════════════════
   HEADER DE JEU
═══════════════════════════════════════════════════════════ */
#game-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 56px;
  background: var(--dark);
  flex-shrink: 0;
  z-index: 10;
}
.hd-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.hd-logo  { font-size: 1.3rem; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.hd-session { font-size: .8rem; color: rgba(255,255,255,.5); }
.hd-center { display: flex; align-items: center; gap: 14px; }
.hd-right  { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }

.day-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 4px 12px;
  line-height: 1;
}
.day-lbl { font-size: .65rem; color: rgba(255,255,255,.5); text-transform: uppercase; }
.day-num  { font-size: 1.4rem; font-weight: 900; color: #fff; }
.issue-badge {
  font-size: .9rem;
  font-weight: 700;
  color: var(--yellow-lt);
  background: rgba(241,196,15,.1);
  padding: 4px 12px;
  border-radius: 20px;
}


/* ═══════════════════════════════════════════════════════════
   PLATEAU (board grid)
═══════════════════════════════════════════════════════════ */
#board {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 12px 12px 0;
}

.col-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--border);
  flex-shrink: 0;
  width: 22px;
  padding-bottom: 50px;
}
.col-arrow-down {
  align-items: flex-start;
  padding-top: 30px;
  padding-bottom: 0;
}

/* ─── Colonnes ─────────────────────────────────────────── */
.column {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;        /* fix flexbox scroll — sans ça les cartes débordent sans scroller */
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  border: 2px solid var(--border);
  border-bottom: none;
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-weight: 800;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-shrink: 0;
  color: #fff;
}
.col-missions    .col-header { background: var(--missions-dk); }
.col-etude       .col-header { background: var(--etude-dk);    }
.col-realisation .col-header { background: var(--real-dk);     }
.col-validation  .col-header { background: var(--valid-dk);    color: #fff; }
.col-published   .col-header { background: var(--dark);        }

/* Fond teinté des colonnes (fidèle au plateau) */
.col-missions    { background: rgba(240,114,114,.10); border-color: var(--missions); }
.col-etude       { background: rgba( 94,206,200,.12); border-color: var(--etude);    }
.col-realisation { background: rgba(173,173,173,.12); border-color: var(--real);     }
.col-validation  { background: rgba(245,200, 50,.14); border-color: var(--valid);    }
.col-published   { background: rgba( 28, 40, 51,.06); border-color: var(--dark);     }

.col-wip {
  background: rgba(255,255,255,.85);
  color: var(--dark);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.col-wip.wip-near { background: #F39C12; color: #fff; }
.col-wip.wip-warn {
  background: #E74C3C;
  color: #fff;
  animation: wip-alert .6s ease infinite alternate;
}
@keyframes wip-alert {
  from { opacity: 1; }
  to   { opacity: .75; }
}

/* Barre de remplissage WIP sous le header */
.col-wip-bar {
  height: 4px;
  width: 100%;
  background: rgba(0,0,0,.1);
  flex-shrink: 0;
}
.col-wip-bar-fill {
  height: 100%;
  transition: width .3s ease, background .3s;
  background: var(--green);
}
.col-wip-bar-fill.near { background: #F39C12; }
.col-wip-bar-fill.warn { background: #E74C3C; }

/* Sous-colonnes en cours / terminé (Étude & Réalisation) */
.col-subcols {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 0;
}
.subcol {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.subcol-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-2);
  text-align: center;
  padding: 3px 4px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.5);
  flex-shrink: 0;
}
.subcol .col-cards {
  flex: 1;
  padding: 6px;
}
.subcol-sep {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.col-cards {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}
.col-cards::-webkit-scrollbar { width: 4px; }
.col-cards::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.col-empty {
  text-align: center;
  color: var(--text-2);
  font-size: .8rem;
  padding: 16px;
  font-style: italic;
}

/* Dés inline sous chaque colonne */
.dice-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,.7);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  min-height: 40px;
}
.dice-row { display: flex; gap: 4px; flex-wrap: wrap; }
/* .die et ses variantes sont définis dans la section ANIMATION DÉS ci-dessus */

.btn-roll-stage {
  font-size: 1rem;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(0,0,0,.06);
  transition: background .15s;
}
.btn-roll-stage:hover { background: rgba(0,0,0,.12); }

.pts-lbl { font-size: .75rem; color: var(--text-2); white-space: nowrap; }
.pts-lbl strong { color: var(--text); font-size: .9rem; }


/* ═══════════════════════════════════════════════════════════
   CARTES
═══════════════════════════════════════════════════════════ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 10px 12px;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s, border-color .15s;
  position: relative;
  user-select: none;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.card.dragging { opacity: .5; transform: scale(.97); }
.card.card-ready { border-color: #27AE60; box-shadow: 0 0 0 2px rgba(39,174,96,.25); }

/* Bandeau couleur gauche selon type — couleurs de la grille mix */
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: var(--radius) 0 0 var(--radius);
}
.c-reportage::before  { background: var(--reportage);  }
.c-actualite::before  { background: var(--actualite);  }
.c-pa::before         { background: var(--pa);         }
.c-supplement::before { background: var(--supplement); }
.c-invest::before     { background: var(--invest);     }

/* Badge couleur du type dans le tag */
.c-reportage  .card-type-tag { color: var(--reportage);  }
.c-actualite  .card-type-tag { color: var(--actualite);  }
.c-pa         .card-type-tag { color: var(--pa);         }
.c-supplement .card-type-tag { color: var(--supplement); }
.c-invest     .card-type-tag { color: var(--invest);     }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.card-type-tag {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-2);
}
.audience-badge {
  font-size: .78rem;
  font-weight: 700;
  color: var(--missions-dk);
  background: rgba(204,40,40,.1);
  padding: 1px 6px;
  border-radius: 10px;
}
.card-title { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.card-sub   { font-size: .75rem; color: var(--text-2); margin-top: 2px; margin-bottom: 6px; }

/* Étoiles */
.card-stars { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0; }
.star {
  background: none;
  border: none;
  font-size: .9rem;
  color: var(--border);
  cursor: pointer;
  padding: 1px;
  transition: color .1s, transform .1s;
  line-height: 1;
}
.star:hover { transform: scale(1.2); color: var(--yellow); }
.star.done  { color: var(--yellow); }

/* Barre de progression compacte */
.card-prog {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}
.prog {
  font-size: .7rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-2);
  font-weight: 600;
}
.prog.prog-done { background: rgba(39,174,96,.15); color: var(--green); }
.freshness-warn { font-size: .7rem; color: #E74C3C; font-weight: 700; margin-left: auto; }

/* Boutons sur carte */
.btn-advance, .btn-pull {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 5px;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  transition: opacity .15s;
}
.btn-advance { background: rgba(46,139,87,.14); color: var(--green); }
.btn-advance:hover { background: var(--green); color: #fff; }
.btn-pull    { background: rgba(26,122,118,.12); color: var(--etude-dk); }
.btn-pull:hover { background: var(--etude-dk); color: #fff; }

/* ─── Colonne Published : pages de magazine ─── */
.pub-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-height: 80px;
  color: var(--border);
}
.pub-empty-icon { font-size: 1.8rem; opacity: .4; }
.pub-empty-txt  { font-size: .72rem; font-style: italic; }

.pub-page {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  overflow: hidden;
  position: relative;
  min-height: 52px;
  transition: transform .1s;
}
.pub-page:hover { transform: translateX(2px); }

.pub-page-spine {
  width: 5px;
  background: var(--type-color, var(--border));
  flex-shrink: 0;
}
.pub-page-body {
  flex: 1;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pub-page-type {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--type-color, var(--text-2));
}
.pub-page-title {
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pub-page-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.pub-page-pts {
  font-size: .72rem;
  font-weight: 700;
  color: var(--missions-dk);
}
.pub-badge {
  font-size: .6rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 1px 5px;
}
.pub-penalty { background: rgba(231,76,60,.12); color: #C0392B; }
.pub-scoop   { background: rgba(204,40,40,.12);  color: var(--missions-dk); }

.pub-page-num {
  position: absolute;
  bottom: 4px;
  right: 5px;
  font-size: .6rem;
  color: var(--border);
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER : Timeline + Scores
═══════════════════════════════════════════════════════════ */
#game-footer {
  display: flex;
  align-items: center;
  height: 48px;
  background: #fff;
  border-top: 1.5px solid var(--border);
  flex-shrink: 0;
}

#timeline {
  flex: 1;
  display: flex;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  padding: 0 12px;
  gap: 3px;
}
#timeline::-webkit-scrollbar { height: 3px; }
#timeline::-webkit-scrollbar-thumb { background: var(--border); }

.tl-day {
  min-width: 52px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.tl-day.tl-past    { opacity: .4; }
.tl-day.tl-current { background: var(--etude-dk); color: #fff; border-color: var(--etude-dk); font-weight: 900; }

.tl-debrief {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  height: 28px;
  background: var(--dark);
  color: #fff;
  border-radius: 14px;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 6px;
  transition: background .15s;
}
.tl-debrief:hover { background: #3a5068; color: #fff; }

.tl-issue {
  min-width: 44px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 900;
  border-radius: 6px;
  background: var(--missions-dk);  /* rouge magazine comme sur le plateau */
  color: #fff;
  border: 2px solid var(--missions-dk);
  flex-shrink: 0;
  line-height: 1.1;
}
.tl-issue.tl-issue-done { background: var(--green); border-color: var(--green); }
.tl-issue small { font-size: .65rem; font-weight: 600; }

#score-panel {
  border-top: 1.5px solid var(--border);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  background: rgba(28,40,51,.04);
}
.score-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--text-2); letter-spacing: .06em; }
.score-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  color: var(--text-2);
  padding: 2px 0;
}
.score-num  { font-weight: 800; color: var(--text); }
.score-cnt  { font-size: .7rem; }
.score-pts  { font-weight: 700; color: var(--etude-dk); text-align: right; }
.score-pts-empty { color: var(--border); font-weight: 400; }
.score-current .score-num { color: var(--missions-dk); }
.score-published { color: var(--text); }
.score-published .score-cnt { color: var(--text-2); }
.badge-mix {
  font-size: .65rem;
  background: rgba(30,139,87,.15);
  color: var(--green);
  border-radius: 10px;
  padding: 1px 5px;
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modal-in .2s ease;
}
@keyframes modal-in { from { opacity:0; transform:scale(.95) translateY(10px) } to { opacity:1; transform:none } }

.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 1.1rem;
  color: var(--text-2);
  z-index: 1;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:hover { background: var(--bg); }

/* ─── Card detail modal ─────────────────────────────────── */
.modal-card-box { width: 520px; max-width: 100%; }
.mc-color-bar   { height: 6px; border-radius: 14px 14px 0 0; }
.mc-body        { padding: 20px 24px 24px; }
.mc-type        { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin-bottom: 4px; }
.mc-title       { font-size: 1.3rem; font-weight: 900; }
.mc-sub         { color: var(--text-2); margin: 4px 0 12px; }
.mc-aud-badge   { display: inline-block; background: rgba(204,40,40,.1); color: var(--missions-dk); font-weight: 700; padding: 3px 10px; border-radius: 20px; font-size: .85rem; margin-bottom: 12px; }

.mc-stages { display: flex; gap: 12px; margin: 16px 0; }
.modal-stage {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  opacity: .55;
}
.modal-stage.modal-stage-active  { opacity: 1; border-color: var(--teal); }
.modal-stage.modal-stage-done    { background: rgba(39,174,96,.08); border-color: var(--green-lt); }
.modal-stage-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.modal-stage-stars { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.star-lg {
  background: none;
  font-size: 1.1rem;
  color: var(--border);
  cursor: pointer;
  padding: 2px;
  transition: color .1s, transform .1s;
}
.star-lg:hover { transform: scale(1.2); color: var(--yellow); }
.star-lg.done  { color: var(--yellow); }
.modal-stage-count { font-size: .78rem; color: var(--text-2); margin-top: 6px; font-weight: 700; }
.mc-timing  { font-size: .8rem; color: var(--text-2); margin: 10px 0 4px; border-top: 1px solid var(--border); padding-top: 10px; }
.mc-effect-box { background: rgba(46,139,87,.1); border-radius: 6px; padding: 8px 12px; font-size: .82rem; color: var(--invest); margin-top: 8px; }

/* ─── Event modal ───────────────────────────────────────── */
.modal-event-overlay { align-items: center; }
.modal-event-box {
  width: 480px;
  max-width: 100%;
  padding: 36px 32px;
  text-align: center;
}
.ev-icon  { font-size: 3rem; margin-bottom: 12px; }
.ev-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 12px; }
.ev-msg   { font-size: .92rem; color: var(--text-2); line-height: 1.6; margin-bottom: 20px; }

/* ─── Publication modal ─────────────────────────────────── */
.modal-pub-overlay { align-items: center; }
.modal-pub-box {
  width: 520px;
  max-width: 100%;
  padding: 36px 32px;
  text-align: center;
}
.pub-newspaper { font-size: 3.5rem; margin-bottom: 8px; }
.pub-title     { font-size: 1.4rem; font-weight: 900; color: var(--missions-dk); margin-bottom: 16px; }
.pub-cards     { background: var(--bg); border-radius: 8px; padding: 12px; margin-bottom: 12px; text-align: left; }
.pub-card-row  { display: flex; justify-content: space-between; padding: 4px 0; font-size: .85rem; border-bottom: 1px solid var(--border); }
.pub-card-row:last-child { border-bottom: none; }
.pub-row       { font-size: .88rem; padding: 6px 0; border-bottom: 1px solid var(--border); }
.pub-bonus     { color: var(--green); font-weight: 700; }
.pub-no-bonus  { color: #E74C3C; }
.pub-total-row { font-size: .95rem; padding: 10px 0; }
.pub-score     { font-size: 1.5rem; color: var(--etude-dk); }
.btn-pub-close { margin-top: 16px; }


/* ═══════════════════════════════════════════════════════════
   TOASTS
═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--dark);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 200;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.toast.toast-in { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-warn    { background: var(--reportage);  }
.toast.toast-success { background: var(--green);      }
.toast.toast-info    { background: var(--etude-dk);   }


/* ═══════════════════════════════════════════════════════════
   PANNEAU JOURNALISTES
═══════════════════════════════════════════════════════════ */
#journalist-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
  min-height: 72px;
  overflow-x: auto;
}
#journalist-panel::-webkit-scrollbar { height: 3px; }
#journalist-panel::-webkit-scrollbar-thumb { background: var(--border); }

.jp-arrow {
  font-size: 1.2rem;
  color: var(--border);
  flex-shrink: 0;
  padding: 0 2px;
}

.jp-zone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 2px dashed var(--border);
  min-width: 90px;
  min-height: 56px;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.jp-zone.jp-dragover {
  border-color: var(--etude-dk);
  background: rgba(94,206,200,.08);
}
.jp-pool              { border-color: #bbb; background: var(--bg); }
.jp-zone-etude        { border-color: var(--etude);       background: rgba(94,206,200,.07); }
.jp-zone-realisation  { border-color: var(--real);        background: rgba(173,173,173,.07); }
.jp-zone-validation   { border-color: var(--valid);       background: rgba(245,200,50,.08); }

.jp-zone-label {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-2);
}
.jp-zone-etude       .jp-zone-label { color: var(--etude-dk); }
.jp-zone-realisation .jp-zone-label { color: var(--real-dk);  }
.jp-zone-validation  .jp-zone-label { color: var(--valid-dk); }

.jp-zone-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 36px;
}
.jp-empty {
  font-size: .75rem;
  color: var(--border);
  align-self: center;
  padding: 4px;
}

/* ── Avatar journaliste ─────────────────────────────────── */
.j-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: grab;
  user-select: none;
  padding: 4px 6px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
  background: var(--j-bg, #eee);
}
.j-avatar:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  border-color: var(--j-color, #aaa);
}
.j-avatar:active { cursor: grabbing; }

.j-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--j-color, #888);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .75rem;
  letter-spacing: -.5px;
}
.j-name {
  font-size: .62rem;
  font-weight: 700;
  color: var(--j-color, #555);
  white-space: nowrap;
}
.j-spec {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: .65rem;
  background: var(--valid);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.j-dice-count {
  font-size: .6rem;
  font-weight: 800;
  color: var(--j-color, #555);
  white-space: nowrap;
}

/* Légende */
.jp-legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .62rem;
  color: var(--text-2);
  padding-left: 8px;
  border-left: 1px solid var(--border);
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════
   ANIMATION DÉS (améliorée)
═══════════════════════════════════════════════════════════ */
@keyframes dice-roll {
  0%   { transform: rotate(0deg)   scale(1);    }
  10%  { transform: rotate(-35deg) scale(1.15); }
  25%  { transform: rotate(25deg)  scale(0.9);  }
  40%  { transform: rotate(-20deg) scale(1.1);  }
  55%  { transform: rotate(18deg)  scale(0.95); }
  70%  { transform: rotate(-10deg) scale(1.05); }
  85%  { transform: rotate(6deg)   scale(1);    }
  100% { transform: rotate(0deg)   scale(1);    }
}

@keyframes pts-flash {
  0%   { transform: scale(1);    color: var(--text); }
  40%  { transform: scale(1.4);  color: var(--etude-dk); }
  100% { transform: scale(1);    color: var(--text); }
}

.die {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  transition: transform .15s, box-shadow .2s;
  flex-shrink: 0;
}
.die.die-spec  { box-shadow: 0 0 0 2px rgba(255,255,255,.4) inset; }
.die.die-other { opacity: .75; }

.die-etude      { background: var(--etude-dk);  }
.die-realisation{ background: var(--real-dk);   }
.die-validation { background: var(--valid-dk);  }

.die.rolling {
  animation: dice-roll .6s ease infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.die.rolled {
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transform: scale(1.08);
  transition: transform .15s;
}

.no-die {
  font-size: .7rem;
  color: var(--border);
  font-style: italic;
  padding: 4px;
}

#pts-etude, #pts-realisation, #pts-validation {
  display: inline-block;
  min-width: 1.4em;
  text-align: center;
}
.pts-flash { animation: pts-flash .5s ease; }


/* ─── Multiplicateur sur les dés ─── */
.die {
  position: relative;
}
.die-multiplier {
  position: absolute;
  bottom: -6px; right: -4px;
  background: #fff;
  color: var(--dark);
  font-size: .55rem;
  font-weight: 900;
  border-radius: 4px;
  padding: 0 2px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}


/* ═══════════════════════════════════════════════════════════
   SCOOPS
═══════════════════════════════════════════════════════════ */

/* Bouton header */
.btn-scoop {
  background: linear-gradient(135deg, #CC2828, #e04040);
  color: #fff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: .82rem;
  letter-spacing: .3px;
  animation: scoop-pulse 2s ease infinite;
}
@keyframes scoop-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204,40,40,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(204,40,40,0); }
}

/* Badge sur les cartes */
.scoop-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: var(--missions-dk);
  border-radius: 10px;
  padding: 2px 7px;
  margin: 2px 0 4px;
}
.scoop-badge.scoop-warn    { background: #D4830A; }
.scoop-badge.scoop-urgent  { background: #CC2828; animation: scoop-pulse 1s ease infinite; }

/* Contour rouge clignotant sur les cartes scoop */
.card-scoop {
  border: 2px solid var(--missions-dk) !important;
}

/* Barre de scoops actifs (au-dessus du board) */
.scoop-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 12px;
  background: #fff8f8;
  border-bottom: 1px solid #fdd;
  min-height: 0;
}
.scoop-bar-item {
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  color: #fff;
}
.scoop-bar-item.scoop-active  { background: var(--missions-dk); }
.scoop-bar-item.scoop-urgent  { background: #CC2828; animation: scoop-pulse 1s ease infinite; }
.scoop-bar-item.scoop-expired { background: #999; }

/* Modal scoops */
.modal-scoop-overlay { align-items: center; justify-content: center; }
.modal-scoop-box {
  max-width: 480px;
  width: 90%;
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.scoop-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.scoop-modal-icon { font-size: 1.8rem; }
.scoop-modal-title { font-size: 1.3rem; font-weight: 800; }
.scoop-modal-desc {
  font-size: .82rem;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.5;
}
.scoop-section-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-2);
  margin: 12px 0 6px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.scoop-modal-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.scoop-modal-item.active {
  border-color: var(--missions-dk);
  background: #fff8f8;
}
.scoop-modal-item strong { font-size: .9rem; }
.scoop-meta {
  font-size: .75rem;
  color: var(--text-2);
  margin-top: 4px;
}
.scoop-launch-btn {
  margin-top: 8px;
  width: 100%;
}

/* Info scoop dans modal détail carte */
.mc-scoop-info {
  margin-top: 12px;
  padding: 8px 12px;
  background: #fff8f8;
  border: 1px solid #fdd;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  color: var(--missions-dk);
}

/* Bouton secondaire (générique) */
.btn-secondary {
  background: var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: var(--radius);
  font-weight: 600;
}
.btn-secondary:hover { background: #ccc; }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE (compact pour écrans < 1100px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .card-title { font-size: .82rem; }
  .card-sub   { display: none; }
  .col-arrow  { width: 14px; font-size: 1.2rem; }
  #game-header .hd-right .btn { padding: 6px 10px; font-size: .78rem; }
}

@media (max-width: 900px) {
  .session-panels { grid-template-columns: 1fr; }
  #board { overflow-x: auto; }
  .column { min-width: 160px; }
}
