/* ═══════════════════════════════════════════════════════════
   CDIAct — dashboard.css
   Fusion gestion.css + style inline dashboard.html
   Mode sombre uniquement
═══════════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── TOKENS DARK ── */
:root {
  --bg:       #0d1117;
  --surface:  #161b22;
  --surface2: #1f2937;
  --border:   #30363d;
  --text:     #e6edf3;
  --muted:    rgba(139, 148, 15,8.5);
  --muted2:   rgba(191, 192, 194, 0.72);
  --accent:   #f59e0b;
  --blue:     #3b82f6;
  --green:    #10b981;
  --purple:   #8b5cf6;
  --red:      #f87171;
  --hero-bg:  rgba(59, 130, 246, .06);
}

/* ── BASE ── */
body {
  background: var(--bg);
  color: #000000;
  min-height: 100vh;
  font-family: "Outfit", "Roboto", sans-serif;
  display: flex;
  font-style: 16px;
  flex-direction: column;
}

a, a:active, a:focus, a:hover {
  color: var(--blue);
  text-decoration: none;
}


.page {
  max-width: 960px;
  min-height: 90vh;
  background: white;
  margin: 12px auto;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

/* HEADER */
.header{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: #13367a;
    border-radius: 12px;
    padding: .5rem;
    gap: .5rem;
}
.zone-titre{
    text-align:center;
}
.zone-titre h1{
    margin:0;
    color:white;
    font-family:"Special Elite", serif;
    font-size:clamp(1.2rem, 4vw, 4rem);
    line-height:1.1;
}
.sous-titre{
    color:white;
    font-size:clamp(0.5rem, 1.2vw, 2rem);
}
.zone-icone{
    width:clamp(24px, 14vw, 160px);
}
.zone-icone img{
    width:100%;
    height:auto;
    display:block;
}
.zone-icone button{
    all:unset;
    cursor:pointer;
    display:block;
}
.une-seule-icone{
    grid-template-columns:auto 1fr;
}
/* Fin header */
/* ══════════════════════════════════════
   AUTH
══════════════════════════════════════ */
.authContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 1.5rem;
  padding: 1rem;
}


/* Mot de passe */
.authPW {
  position: relative;
  font-family: "Share Tech Mono", monospace;
  background-color: #002b5c;
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 90%;
  max-width: 640px;
  margin: 3rem auto 2rem;
}

.authPW h2 {
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px #000;
  text-align: center;
  font-size: 2.6rem;
  margin: 1em 0;
  color: #fafafa;
  font-weight: bolder;
  text-transform: uppercase;
}

.authPW .inPw {
  width: 80%;
  font-size: 2.5em;
  margin: 0.2em auto 0.2em;
  background: white;
  border-radius: 5px;
  text-align: center;
}

/* Fin authentification */

.input-container {
  position: relative;
  margin-bottom: 1rem;
}

.password-input {
  width: 100%;
  padding: .7rem 2.6rem .7rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: .92rem;
  font-family: "Outfit", sans-serif;
  outline: none;
  transition: border-color .18s;
}

.password-input:focus {
  border-color: var(--blue);
}

.eye-icon {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-icon img {
  width: 18px;
  height: 18px;
  opacity: .5;
  transition: opacity .15s;
  position: absolute;
}

.eye-icon img.eye-open  { display: none; }
.eye-icon img.eye-closed { display: none; }
.eye-icon img.active    { display: block; opacity: .7; }

.validate-btn {
  width: 100%;
  padding: .65rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  font-family: "DM Mono", monospace;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .18s, transform .1s;
}

.validate-btn:hover  { background: #2563eb; }
.validate-btn:active { transform: scale(.97); }

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.cont-top {
  max-width: 960px;
  margin: 2rem auto 0;
  padding: 0 16px 20px;
}

/* ══════════════════════════════════════
   TOP BAR
══════════════════════════════════════ */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background:rgb(70, 1, 134);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 0 10px rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding:48px;
  margin: 2rem auto;
}

.home-btn {
  width: 38px;
  height: 38px;
  margin-left: 1rem;
  border: none;
  border-radius: 12px;
  background: var(--surface2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, transform .1s;
  text-decoration: none;
  flex-shrink: 0;
}

.home-btn:hover  { background: var(--border); }
.home-btn:active { transform: scale(.92); }

.home-btn img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
}

.clock-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  cursor: default;
}

.clock-date {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
}

.clock-time {
  font-family: "DM Mono", monospace;
  font-weight: 500;
  font-size: 1.82rem;
  color: #4ade80;
  letter-spacing: .02em;
}
.import-btn {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .38rem .85rem;
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .1s;
  white-space: nowrap;
}

.import-btn:hover  { background: #2563eb; }
.import-btn:active { transform: scale(.97); }

/* ══════════════════════════════════════
   TIROIR IMPORT
══════════════════════════════════════ */
.import-drawer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .38s cubic-bezier(.4,0,.2,1), opacity .3s;
  opacity: 0;
  margin: 0 -16px;
  border-bottom: 1px solid var(--border);
}

.import-drawer.open {
  max-height: 280px;
  opacity: 1;
}

.import-inner {
  padding: 1rem 1.2rem;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  background: var(--surface2);
  padding: 1.2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--blue);
  background: rgba(59,130,246,.08);
  transform: scale(1.01);
}

.drop-zone .dz-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: .4rem;
}

.drop-zone .dz-txt {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}

.drop-zone .dz-sub {
  font-size: .72rem;
  color: var(--muted2);
  margin-top: .25rem;
}

#importRapport {
  margin-top: .7rem;
  font-size: .82rem;
  min-height: 1.2em;
  line-height: 1.6;
}

#importRapport .ok    { color: var(--green); }
#importRapport .warn  { color: var(--accent); }
#importRapport .error { color: var(--red); }
#importRapport .bold  { font-weight: 700; }

/* ══════════════════════════════════════
   BANNERS
══════════════════════════════════════ */
#sourceBanner {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .82rem;
}

#sourceBanner.demo {
  display: flex;
  background: rgba(245,158,11,.05);
  color: var(--accent);
  border: 1px solid rgba(245,158,11,.3);
}

#sourceBanner.live {
  display: flex;
  background: rgba(16,185,129,.1);
  color: var(--green);
  border: 1px solid rgba(16,185,129,.3);
}

/* ══════════════════════════════════════
   INFO HEADER
══════════════════════════════════════ */
.info-header {
  margin-top: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.etab-name {
  font-family: "DM Serif Display", serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: .25rem;
}

.resume-stats {
  font-size: 1.8rem;
  color: var(--muted);
  line-height: 1.8;
}

#storage { margin-top: .7rem; }

.bar-container {
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}

.bar-used {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #1a5fbf);
  border-radius: 3px;
  transition: width .6s;
}

#storage-info {
  font-size: .72rem;
  color: var(--muted2);
  margin-top: .3rem;
}

/* ══════════════════════════════════════
   HERO KPIs
══════════════════════════════════════ */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-top: 1.1rem;
}

@media(max-width:600px) {
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
}

.hero-card {
  background: var(--hero-bg);
  border: 3px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
    justify-content: center;
  align-items: center;
  gap: .2rem;
  position: relative;
  overflow: hidden;
  transition: transform .15s, border-color .15s;
}

.hero-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.hero-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.hero-val {
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
  color:black;
  line-height: 1;
  margin-top: .2rem;
}

.hero-lbl {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted2);
  font-weight: 700;
  font-family: "DM Mono", monospace;
}

.hero-sub {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .1rem;
}

.hero-trend          { font-size: .72rem; font-weight: 700; margin-top: .1rem; }
.hero-trend.up       { color: var(--green); }
.hero-trend.down     { color: var(--red); }
.hero-trend.flat     { color: var(--muted); }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section { margin-top: 1.4rem; }

.section-title {
  font-size: 1.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 2.75rem 0 1rem 0;
  padding-left: .6rem;
  border-left: 3px solid var(--blue);
  font-family: "DM Mono", monospace;
}

/* ══════════════════════════════════════
   GRIDS
══════════════════════════════════════ */
.cards-row {
  display: grid;
  gap: .75rem;
}

.c2 { grid-template-columns: 1fr 1fr; }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }

@media(max-width:580px) {
  .c4, .c3 { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width:420px) {
  .c2 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.stat-card {
  display: flex;
  flex-direction: column;
      justify-content: center;
  align-items: center;
  gap: .15rem;
  border-left: 4px solid var(--border);
}

.c-bleu   { border-left-color: var(--blue); }
.c-vert   { border-left-color: #22c55e; }
.c-orange { border-left-color: var(--accent); }
.c-rouge  { border-left-color: var(--red); }
.c-violet { border-left-color: var(--purple); }

.stat-val {
  font-family: "DM Serif Display", serif;
  font-size: 2.6rem;
  color: var(--text);
  line-height: 1;
}

.stat-lbl {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted2);
  font-weight: 700;
  margin-top: .15rem;
  font-family: "DM Mono", monospace;
}

.stat-sub {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .2rem;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

/* ══════════════════════════════════════
   PLAGE DATES
══════════════════════════════════════ */
.plage-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.plage-date {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .6rem .8rem;
}

.pd-lbl {
  font-size: .65rem;
  color: var(--muted2);
  font-weight: 700;
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
}

.pd-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: .1rem;
}

.plage-arrow {
  font-size: 1.2rem;
  color: var(--border);
}

/* ══════════════════════════════════════
   BOXPLOT
══════════════════════════════════════ */
.distrib-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .8rem;
}

.distrib-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.legend-boxplot {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .4rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

/* ══════════════════════════════════════
   TOP / FLOP JOURS
══════════════════════════════════════ */
.topflopContainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.topflopBadge {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .4rem;
}

.topBadge  { background: rgba(34,197,94,.15); color: #22c55e; }
.flopBadge { background: rgba(248,113,113,.15); color: var(--red); }

.topflopLabel {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted2);
  margin-bottom: .5rem;
  font-family: "DM Mono", monospace;
}

.jour-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}

.jour-row:last-child { border-bottom: none; }

.jour-rank    { font-size: 1rem; flex-shrink: 0; }
.jour-date    { flex: 1; color: var(--muted); }
.jour-passage { font-weight: 700; color: var(--blue); }

.txtPass {
  font-weight: 400;
  color: var(--muted2);
  font-size: .75rem;
}

.resume-explication {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   STATS 1-2-3
══════════════════════════════════════ */
.stats123 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-bottom: .8rem;
}

.stat123-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem;
  text-align: center;
}

.stat123-number {
  font-family: "DM Serif Display", serif;
  font-size: 1.6rem;
  color: var(--blue);
  line-height: 1;
}

.stat123-label {
  font-size: .65rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .2rem;
  font-family: "DM Mono", monospace;
}

/* ══════════════════════════════════════
   INSIGHTS
══════════════════════════════════════ */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
}

@media(max-width:540px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}

.insight-card {
  background: var(--surface2);
  border-radius: 12px;
  padding: .8rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: border-color .15s, transform .15s;
}

.insight-card:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.insight-icon  { font-size: 1.4rem; }

.insight-value {
  font-family: "DM Serif Display", serif;
  font-size: 1.4rem;
  color: var(--text);
  margin: .2rem 0;
  line-height: 1;
}

.insight-label {
  font-size: .68rem;
  color: var(--muted);
  line-height: 1.4;
}

.insight-label small { color: var(--muted2); }

/* ══════════════════════════════════════
   TOP 10
══════════════════════════════════════ */
.top5-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.top5-item {
  display: grid;
  grid-template-columns: 28px 1fr auto 80px;
  align-items: center;
  gap: .5rem;
  padding: .4rem .6rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  position: relative;
  overflow: hidden;
  transition: border-color .15s;
}

.top5-item:hover { border-color: var(--blue); }

.top5-rank  { font-size: .9rem; text-align: center; }
.top5-nom   { font-weight: 600; color: var(--text); }
.top5-cls   { font-size: .72rem; color: var(--muted2); text-align: right; }

.top5-count {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  text-align: right;
}

.top5-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 0 2px 2px 0;
  transition: width .6s;
}

/* ══════════════════════════════════════
   DIVERS
══════════════════════════════════════ */
#activ {
  font-size: 1.82rem;
  color: lightgrey;
  margin-bottom: .6rem;
  line-height: 1.3;
}
#activ strong {
  color: rgb(216, 191, 25);
}
.small {
  font-size: .78rem;
  color: var(--muted);
}

.inv, .hidden {
  display: none;
  opacity: 0;
  visibility: hidden;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.page-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: .72rem;
  color: var(--muted2);
  gap: .4rem;
  font-family: "DM Mono", monospace;
}

.page-footer a { color: var(--muted); }
.page-footer a:hover { color: var(--blue); }

/* ══════════════════════════════════════
   PRINT BTN
══════════════════════════════════════ */
.print-btn {
  z-index: 200;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0d1117;
  border: none;
  border-radius: 12px;
  padding: .7rem 1.6rem;
  font-size: .92rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245,158,11,.4);
  transition: background .18s, transform .12s, box-shadow .18s;
  letter-spacing: .01em;
  white-space: nowrap;
}

.print-btn:hover {
  background: #d97706;
  box-shadow: 0 6px 28px rgba(245,158,11,.55);
  transform: translateY(-2px);
}

.print-btn:active { transform: scale(.96); }

.print-btn.loading {
  opacity: .7;
  cursor: wait;
}

/* ══════════════════════════════════════
   PRINT @media
══════════════════════════════════════ */
@media print {
  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 12px;
  }

  .card, .chart-card, .info-header {
    background: #fff !important;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .stat-val, .etab-name { color: #111 !important; }

  .top-bar, .import-drawer, .print-btn { display: none !important; }

  .page-wrap {
    max-width: 100%;
    padding: 0 8px;
  }

  .section {
    margin-top: 1rem;
    page-break-inside: avoid;
  }

  canvas { max-width: 100% !important; }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.text-center {
  text-align: center;
}

.center-flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ══════════════════════════════════════
   SÉANCES
══════════════════════════════════════ */
.obs-seances {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem 1.1rem;
  margin-top: .75rem;
  font-family: "Outfit", sans-serif;
  color: var(--text);
}

.obs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .75rem;
  gap: .5rem;
  flex-wrap: wrap;
}

.obs-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.obs-header-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.obs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.obs-title-txt {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
}

.obs-tag {
  font-family: "DM Mono", monospace;
  font-size: .62rem;
  font-weight: 500;
  color: var(--purple);
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.3);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.obs-muted {
  font-size: .68rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
}

.obs-btn-primary {
  font-family: "Outfit", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #000;
  transition: background .18s;
}

.obs-btn-primary:hover { background: #d97706; }

/* CHIPS */
.obs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.obs-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .68rem;
  font-family: "DM Mono", monospace;
  color: var(--text);
  white-space: nowrap;
  cursor: default;
  transition: border-color .15s;
}

.obs-chip:hover     { border-color: var(--purple); }
.obs-chip-hour      { color: var(--accent); }

.obs-chip-n {
  font-size: .6rem;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 0 5px;
}

/* SOUS-TITRE tableau séances */
.obs-sub-title {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted2);
  font-family: "DM Mono", monospace;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.obs-sub-title::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

/* TABLEAUX SÉANCES */
.obs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}

.obs-table thead tr  { border-bottom: 1px solid var(--border); }

.obs-table th {
  font-family: "DM Mono", monospace;
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted2);
  padding: .45rem .6rem;
  text-align: left;
}

.obs-table td {
  padding: .42rem .6rem;
  border-bottom: 1px solid rgba(48,54,61,.6);
  color: var(--text);
  vertical-align: middle;
}

.obs-table tbody tr:last-child td { border-bottom: none; }

.obs-table tbody tr:hover td {
  background: rgba(139,92,246,.06);
}

.obs-table .td-num {
  font-family: "DM Mono", monospace;
  font-size: .62rem;
  color: var(--muted2);
}

.obs-table .td-date {
  font-family: "DM Mono", monospace;
  font-weight: 500;
}

.obs-table .td-jour  { font-size: .72rem; color: var(--muted); }
.obs-table .td-heure { color: var(--accent); font-family: "DM Mono", monospace; font-weight: 500; }
.obs-table .td-eleves { color: var(--green); font-family: "DM Mono", monospace; font-weight: 600; }
.obs-table .td-period { color: var(--purple); font-size: .72rem; font-family: "DM Mono", monospace; }
.obs-table .td-total  { font-weight: 700; color: var(--blue); }

.obs-table .td-cell         { text-align: center; font-family: "DM Mono", monospace; font-size: .75rem; }
.obs-table .td-cell.has-val { color: var(--text); }
.obs-table .td-cell.no-val  { color: var(--border); }

/* PAGINATION SÉANCES */
.obs-pag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  margin-top: .55rem;
  font-family: "DM Mono", monospace;
  font-size: .75rem;
}

.obs-pag-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: .8rem;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.obs-pag-btn:hover:not(:disabled) {
  border-color: var(--purple);
  color: var(--purple);
}

.obs-pag-btn:disabled {
  opacity: .2;
  cursor: not-allowed;
}

.obs-pag-info {
  color: var(--text);
  letter-spacing: .04em;
}

.obs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: .85rem;
}

@media(max-width:600px) {
  .obs-two-col { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   MOBILE — désactiver hover visuel
══════════════════════════════════════ */
@media(hover: none) {
  .card:hover { transform: none; box-shadow: none; }
}


/* Footer */
.hr-light {
  height: 1px;
  border: none;
  margin: 2rem auto 1.2rem;
  background: linear-gradient(to right, transparent, #6cb8ff, transparent);
  opacity: 0.6;
}

footer {
  margin: auto auto 2.5rem;
  background: rgba(15, 18, 35, 0.96);
  padding: 1rem;
  border-radius: 6px;
  max-width: 960px;
  width: 100%;
  color: whitesmoke;
  font-family: "Roboto", sans-serif;
  font-size: 0.75rem;
  line-height: 1.6;
  border-top: 1px solid rgba(108, 184, 255, 0.15);
}

.footerGrid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footerGrid>div:first-child {
  text-align: left;
}

.footerGrid>div:nth-child(2) {
  text-align: center;
}

.footerGrid>div:last-child {
  text-align: right;
}

.footerGrid .version {
  opacity: 0.85;
}

.footerGrid a {
  color: #9cb35b;
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.footerGrid a:hover {
  color: #daba70;
  opacity: 1;
}

.author {
  color: rgb(143, 178, 238);
  font-style: italic;
}

@media (max-width: 600px) {
  .footerGrid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footerGrid>div {
    text-align: center !important;
  }
}

/* Fin footer */