/* ============================================
   HELPOFFICE : compteur de jours ouvrés
   ============================================
   Un seul écran, trois onglets. Le résultat principal est UN grand chiffre :
   tout le reste (tuiles, listes, tableau) vient le détailler, jamais le
   concurrencer.
   ============================================ */

.jo-intro { color: var(--brand-ink-soft, #6a6967); margin-bottom: 1.25rem; }

.jo-cache { display: none !important; }

.jo-aide { font-size: .9rem; color: #949089; margin: 0 0 1rem; }

/* ---- Zone de fériés (partagée par les onglets) ---- */
.jo-zone { max-width: 26rem; margin-bottom: 1.25rem; }

/* ---- Onglets ---- */
.jo-onglets {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  border-bottom: 2px solid #eee9e2;
  margin-bottom: 1.25rem;
}
.jo-onglet {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 0;
  background: none;
  padding: .7rem 1rem;
  min-height: 44px;                 /* cible tactile */
  font-weight: 600;
  font-size: .95rem;
  color: #6a6967;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;              /* le filet actif recouvre la bordure */
  cursor: pointer;
}
.jo-onglet:hover { color: var(--ho-primary-700, #14574c); }
.jo-onglet.actif {
  color: var(--ho-primary-700, #14574c);
  border-bottom-color: var(--ho-primary-500, #1a7d6d);
}
.jo-onglet i { font-size: .85rem; opacity: .8; }

/* ---- Raccourcis de période ---- */
.jo-raccourcis { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.jo-raccourci {
  border: 1px solid var(--ho-border-default, #d9d2c7);
  background: #faf7f2;
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .88rem;
  font-weight: 600;
  color: #4b4945;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.jo-raccourci:hover {
  background: #fff;
  border-color: var(--ho-primary-500, #1a7d6d);
  color: var(--ho-primary-700, #14574c);
}

/* ---- Dates ---- */
.jo-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 1rem;
  max-width: 34rem;
  margin-bottom: 1.25rem;
}
.jo-case {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .45rem;
  font-size: .85rem;
  color: #6a6967;
}
.jo-case input { accent-color: var(--ho-primary-500, #1a7d6d); }

/* ---- Semaine personnalisée ---- */
.jo-perso { border: 0; padding: 0; margin: 0 0 1.25rem; }
.jo-perso legend {
  font-size: .95rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: .25rem;
  float: none;      /* annule le legend flottant de Bootstrap */
  width: auto;
}
.jo-jours { display: flex; gap: .45rem; flex-wrap: wrap; }
.jo-jour {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ho-border-default, #d9d2c7);
  background: #fff;
  font-weight: 700;
  color: #949089;
  cursor: pointer;
  transition: all .15s ease;
}
.jo-jour[aria-pressed="true"] {
  background: var(--ho-primary-500, #1a7d6d);
  border-color: var(--ho-primary-500, #1a7d6d);
  color: #fff;
}
.jo-jour:focus-visible { outline: 3px solid var(--ho-primary-300, #4aa393); outline-offset: 2px; }

/* ---- Grand résultat ---- */
.jo-grand {
  text-align: center;
  background: linear-gradient(135deg, #f1f8f6, #e5f2ef);
  border: 1px solid #cfe5df;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  margin-bottom: 1.25rem;
}
.jo-grand-nombre {
  display: block;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ho-primary-700, #14574c);
}
.jo-grand-date { font-size: 2rem; line-height: 1.2; }
.jo-grand-legende {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ho-primary-700, #14574c);
  margin-top: .35rem;
}
.jo-grand-periode { display: block; font-size: .9rem; color: #6a6967; margin-top: .35rem; }
.jo-sautes { font-style: italic; }

/* ---- Tuiles de détail ---- */
.jo-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 100%), 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.jo-tuile {
  background: #faf7f2;
  border: 1px solid #eee9e2;
  border-radius: 12px;
  padding: .85rem .5rem;
  text-align: center;
  font-size: .82rem;
  color: #6a6967;
}
.jo-tuile-nombre {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-ink, #302e2c);
}

/* ---- Liste des fériés ---- */
.jo-sous-titre { font-size: 1.05rem; font-weight: 700; margin: 0 0 .75rem; }
.jo-feries { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.jo-feries li {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .55rem 0;
  border-bottom: 1px solid #eee9e2;
}
.jo-feries li:last-child { border-bottom: 0; }
.jo-ferie-nom { font-weight: 600; flex: 0 0 auto; }
.jo-ferie-date { color: #6a6967; font-size: .92rem; flex: 1 1 auto; }
.jo-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .18rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.jo-badge-we { background: #f3f4f6; color: #6b7280; }
.jo-badge-sem { background: #dcfce7; color: #15803d; }
.jo-aucun { color: #949089; font-size: .92rem; margin: 0 0 1.25rem; }

.jo-copier { font-size: .92rem; }

/* ---- Onglet report ---- */
.jo-report {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* ---- Tableau annuel ---- */
.jo-table-defile { overflow-x: auto; margin-bottom: 1.5rem; }
.jo-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.jo-table th, .jo-table td {
  padding: .5rem .75rem;
  text-align: center;
  border-bottom: 1px solid #eee9e2;
  white-space: nowrap;
}
.jo-table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #949089;
}
.jo-table tbody th { text-align: left; font-weight: 600; }
.jo-col-forte { font-weight: 700; color: var(--ho-primary-700, #14574c); background: #f1f8f6; }
.jo-total th, .jo-total td { border-top: 2px solid var(--ho-primary-500, #1a7d6d); font-weight: 700; }

/* ---- Repères ---- */
.jo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1.25rem;
}
.jo-bloc h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.jo-bloc p { margin: 0; font-size: .95rem; color: var(--brand-ink-soft, #6a6967); }

/* ---- Mobile ---- */
@media (max-width: 575.98px) {
  .jo-grand-nombre { font-size: 2.6rem; }
  .jo-grand-date { font-size: 1.4rem; }
  .jo-onglet { padding: .6rem .65rem; font-size: .88rem; }
}
