/* ============================================================
   Appels d'offres — rubrique /appels-offres/ et fiches d'avis.

   La liste réutilise les composants globaux du thème (jh2-jobs-hero,
   jh2-job-card, jh2-jobs-list-layout). La fiche reprend à l'identique les
   règles de la fiche emploi (jh2-sj-*), que le thème déclare dans
   single-job.php et qui ne sont donc pas chargées ici autrement.
   ============================================================ */

/* --- Fiche : ossature reprise de single-job.php --- */
/* Sans la police « Ubuntu » de single-job.php : elle n'est plus chargée par le
   site, et la fiche retombait sur la police système. On hérite de celle du site. */
.jh2-sj-wrap { background: var(--jh-bg); min-height: 100vh; padding-bottom: 6rem; }
.jh2-sj-hero { background: var(--jh-bg); padding: 6rem 0 3rem; border-bottom: 1px solid var(--jh-gray-100); }
body.admin-bar .jh2-sj-hero { padding-top: 8rem; }
.jh2-sj-container { max-width: 75rem; margin: 0 auto; padding: 0 1.5rem; }
.jh2-sj-hero-inner { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 992px) {
  .jh2-sj-hero-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.jh2-sj-hero-left { display: flex; gap: 1.5rem; align-items: flex-start; }
@media (max-width: 768px) {
  .jh2-sj-hero-left { flex-direction: column; }
}
.jh2-sj-logo-box { width: 5rem; height: 5rem; background: var(--jh-white); border-radius: 12px; border: 1px solid var(--jh-gray-200); display: flex; align-items: center; justify-content: center; box-shadow: var(--jh-shadow-sm); flex-shrink: 0; overflow: hidden; }
.jh2-sj-logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.jh2-sj-logo-initials { font-size: 1.75rem; font-weight: 800; color: var(--jh-blue-600); }
.jh2-sj-info-box { display: flex; flex-direction: column; gap: 0.65rem; }
.jh2-sj-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.jh2-sj-title-row h1 { font-size: 1.875rem; font-weight: 700; color: var(--jh-gray-900); margin: 0; line-height: 1.2; text-wrap: balance; }
@media (max-width: 768px) {
  .jh2-sj-title-row h1 { font-size: 1.5rem; }
}
.jh2-sj-meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.875rem; color: var(--jh-gray-500); font-weight: 500; }
.jh2-sj-meta-item { display: flex; align-items: center; gap: 0.375rem; }
.jh2-sj-meta-item svg { color: var(--jh-gray-500); flex-shrink: 0; }
.jh2-sj-company-link { color: var(--jh-blue-600); font-weight: 600; text-decoration: none; }
.jh2-sj-company-link:hover { text-decoration: underline; }
.jh2-sj-badges-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.jh2-sj-badge-type { background: var(--jh-blue-50); color: var(--jh-blue-600); font-size: 0.8rem; font-weight: 600; padding: 0.35rem 1rem; border-radius: 50px; }
.jh2-sj-badge-urgent { background: var(--jh-amber-100); color: var(--jh-amber-700); font-size: 0.8rem; font-weight: 600; padding: 0.35rem 1rem; border-radius: 50px; }
.jh2-sj-hero-right { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
@media (min-width: 992px) {
  .jh2-sj-hero-right { align-items: flex-end; flex-shrink: 0; }
}
.jh2-sj-expired-notice { color: var(--jh-red-600); font-size: 0.875rem; font-weight: 600; background: var(--jh-red-100); padding: 0.4rem 1rem; border-radius: 8px; border: 1px solid var(--jh-red-100); }
.jh2-sj-actions-group { display: flex; align-items: center; gap: 0.75rem; }
.jh2-sj-btn-apply { background: var(--jh-blue-600); color: #fff; font-weight: 700; font-size: 0.9375rem; padding: 1rem 2.25rem; border-radius: 10px; text-decoration: none; border: none; cursor: pointer; transition: background-color 0.2s, transform 0.2s; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--jh-shadow-blue); }
.jh2-sj-btn-apply:hover { background: var(--jh-blue-700); color: #fff; transform: translateY(-2px); }
.jh2-sj-body { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 992px) {
  /* minmax(0, …) : un nom d'organisme sans espace sécable ne doit pas
     élargir sa colonne aux dépens du texte de l'avis. */
  .jh2-sj-body { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
}
.jh2-sj-main-content { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.jh2-sj-desc-card { background: var(--jh-white); border-radius: 16px; border: 1px solid var(--jh-gray-200); padding: 2.5rem; box-shadow: var(--jh-shadow-sm); }
@media (max-width: 768px) {
  .jh2-sj-desc-card { padding: 1.5rem; }
}
.jh2-sj-section-block h2 { font-size: 1.35rem; font-weight: 700; color: var(--jh-gray-900); margin: 0 0 1.25rem; }
.jh2-sj-section-content { color: var(--jh-gray-600); line-height: 1.8; font-size: 1rem; }
.jh2-sj-section-content p { margin: 0 0 1.25rem; }
.jh2-sj-section-content ul { list-style: none; padding-left: 0; margin: 1rem 0 1.5rem; }
.jh2-sj-section-content li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.jh2-sj-section-content li::before { content: "•"; color: var(--jh-blue-600); font-weight: bold; position: absolute; left: 0; font-size: 1.25rem; line-height: 1; top: -1px; }
.jh2-sj-sidebar { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.jh2-sj-sidebar-card { background: var(--jh-white); border-radius: 16px; border: 1px solid var(--jh-gray-200); padding: 2rem; box-shadow: var(--jh-shadow-sm); }
.jh2-sj-sidebar-title { font-size: 1.2rem; font-weight: 700; color: var(--jh-gray-900); margin: 0 0 1.5rem; }
.jh2-sj-overview-list { display: flex; flex-direction: column; gap: 1.5rem; margin: 0; }
.jh2-sj-overview-item { display: flex; gap: 1rem; align-items: flex-start; }
.jh2-sj-overview-icon { color: var(--jh-blue-600); flex-shrink: 0; }
.jh2-sj-overview-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.jh2-sj-overview-label { font-size: 0.85rem; color: var(--jh-gray-500); font-weight: 500; }
.jh2-sj-overview-value { font-size: 0.95rem; font-weight: 700; color: var(--jh-gray-900); margin: 0; overflow-wrap: break-word; }

/* --- Fiche : compléments propres aux avis --- */
.lnv-ao-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.875rem; font-weight: 600; color: var(--jh-gray-400); }
.lnv-ao-breadcrumb a { color: var(--jh-blue-600); text-decoration: none; }
.lnv-ao-breadcrumb a:hover { text-decoration: underline; }
.lnv-ao-hero-deadline { margin: 0; font-size: 0.9375rem; color: var(--jh-gray-600); }
.lnv-ao-hero-deadline strong { color: var(--jh-gray-900); }
.lnv-ao-countdown { display: block; margin-top: 0.125rem; font-size: 0.8125rem; font-weight: 600; color: var(--jh-gray-500); }
.lnv-ao-countdown.is-soon { color: var(--jh-amber-700); }
.lnv-ao-facts dd { margin: 0; }
.lnv-ao-note { margin: -0.75rem 0 1.25rem; font-size: 0.875rem; line-height: 1.6; color: var(--jh-gray-600); }
.lnv-ao-contact-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.lnv-ao-ghost-btn {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0.75rem 1rem; border-radius: 12px;
  background: var(--jh-blue-50); color: var(--jh-blue-600);
  font-size: 0.875rem; font-weight: 700; text-align: center; text-decoration: none; overflow-wrap: break-word;
  transition: background-color 0.2s, color 0.2s;
}
.lnv-ao-ghost-btn:hover { background: var(--jh-blue-600); color: var(--jh-white); }
.lnv-ao-back-link { display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; padding: 0.5rem 0; font-size: 0.875rem; font-weight: 600; color: var(--jh-blue-600); text-decoration: none; }
.lnv-ao-back-link:hover { text-decoration: underline; }

/* Texte d'avis collé depuis Word : titres sobres, listes numérotées sans
   puce ajoutée, tableaux qui défilent au lieu de déborder. */
.lnv-ao-content { overflow-wrap: break-word; }
.lnv-ao-content h1, .lnv-ao-content h2, .lnv-ao-content h3, .lnv-ao-content h4 { font-size: 1.125rem; font-weight: 700; color: var(--jh-gray-900); line-height: 1.4; margin: 1.75rem 0 0.75rem; }
.lnv-ao-content strong { color: var(--jh-gray-900); }
.lnv-ao-content a { color: var(--jh-blue-600); font-weight: 600; }
.lnv-ao-content ol { list-style: decimal; padding-left: 1.5rem; margin: 1rem 0 1.5rem; }
.lnv-ao-content ol > li { padding-left: 0.25rem; }
.lnv-ao-content ol > li::before { content: none; }
.lnv-ao-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; line-height: 1.5; }
.lnv-ao-content th, .lnv-ao-content td { border: 1px solid var(--jh-gray-200); padding: 0.5rem 0.75rem; vertical-align: top; text-align: left; }
.lnv-ao-content th { background: var(--jh-gray-50); color: var(--jh-gray-900); }
.lnv-ao-content td p, .lnv-ao-content th p { margin: 0; }

/* --- Liste --- */
.lnv-ao-results { max-width: 64rem; margin: 0 auto; }
.lnv-ao-back-to-jobs { font-size: 0.875rem; font-weight: 600; color: var(--jh-blue-600); text-decoration: none; }
.lnv-ao-back-to-jobs:hover { text-decoration: underline; }
.lnv-ao-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.lnv-ao-chip {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 40px;
  padding: 0.5rem 1rem; border-radius: 9999px;
  background: var(--jh-white); border: 1px solid var(--jh-gray-200);
  font-size: 0.8125rem; font-weight: 600; color: var(--jh-gray-600); text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.lnv-ao-chip span { color: var(--jh-gray-500); font-weight: 500; }
.lnv-ao-chip:hover { border-color: var(--jh-blue-200); color: var(--jh-blue-600); }
.lnv-ao-chip.is-active { background: var(--jh-blue-600); border-color: var(--jh-blue-600); color: var(--jh-white); }
.lnv-ao-chip.is-active span { color: var(--jh-blue-100); }
.lnv-ao-chip:focus-visible, .lnv-ao-ghost-btn:focus-visible, .lnv-ao-jobs-link:focus-visible { outline: 2px solid var(--jh-blue-500); outline-offset: 2px; }
.lnv-ao-deadline.is-soon { color: var(--jh-amber-700); font-weight: 700; }
.lnv-ao .jh2-btn-postuler { white-space: nowrap; }
.lnv-ao .jh2-jobs-empty-desc a { color: var(--jh-blue-600); font-weight: 600; }

@media (max-width: 767px) {
  .lnv-ao .jh2-jobs-main-header { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
  .lnv-ao-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem 0.25rem; scrollbar-width: none; }
  .lnv-ao-chips::-webkit-scrollbar { display: none; }
  .lnv-ao-chip { flex-shrink: 0; }
}

/* --- Lien depuis la page des offres d'emploi (hero sombre) --- */
.lnv-ao-jobs-link-wrap { display: flex; justify-content: center; margin-top: 1.25rem; }
.lnv-ao-jobs-link {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px;
  padding: 0.625rem 1.25rem; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--jh-white); font-size: 0.875rem; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.lnv-ao-jobs-link:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); color: var(--jh-white); }
.lnv-ao-jobs-link__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.5rem; }
.lnv-ao-jobs-link__text strong { color: var(--jh-blue-400); font-weight: 700; }
.lnv-ao-jobs-link__text span { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.lnv-ao-jobs-link svg { flex-shrink: 0; color: var(--jh-blue-400); transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); }
.lnv-ao-jobs-link:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .jh2-sj-btn-apply, .lnv-ao-jobs-link svg { transition: none; }
  .jh2-sj-btn-apply:hover, .lnv-ao-jobs-link:hover svg { transform: none; }
}
