/* ============================================================
   ITS Rugby — Annonces (single + archive)
   Aligné V2 — utilise les variables CSS de itsrugby-common.css
   ============================================================ */

/* ── Page wrapper (single + archive) ───────────────────────── */
.its-annonce-page,
.its-annonces-archive { font-family: var(--sans); color: var(--teal); background: var(--vanilla); }

/* ── Page hero (archive) ───────────────────────────────────── */
.its-annonces-archive .page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, #254D42 50%, var(--teal-dk) 100%);
  padding: 48px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.its-annonces-archive .page-hero::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(142,217,104,.12) 0%, transparent 70%);
  pointer-events: none;
}
.its-annonces-archive .page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--g-bright);
}
.its-annonces-archive .page-hero h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 900;
  color: var(--vanilla);
  letter-spacing: -.5px;
  line-height: 1.1;
  margin: 0 0 16px;
}
.its-annonces-archive .page-hero-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--vanilla-d);
  opacity: .75;
  max-width: 720px;
  margin: 0 auto;
}

/* ── Container ─────────────────────────────────────────────── */
.its-annonces-archive .container,
.its-annonce-page .container {
  max-width: min(90%, 1200px);
  margin: 0 auto;
  padding: 24px 24px 48px;
}
@media (max-width: 600px) {
  .its-annonce-page .container { padding: 16px 16px 32px; }
  /* Archive : un peu plus d'air sous le hero full-bleed sombre. */
  .its-annonces-archive .container { padding: 24px 16px 32px; }
}

/* ── Page hero pleine page (full-bleed dans <main>) ────────── */
.its-annonces-archive .page-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

/* ── Badges types ──────────────────────────────────────────── */
.its-annonces-archive .its-badge,
.its-annonce-page .its-badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #cfcfcf;
  background: #f3f3f3;
  font-weight: 800;
  font-size: 11px;
  vertical-align: middle;
  color: var(--ink);
}
.its-annonces-archive .its-badge.joueur,
.its-annonce-page .its-badge.joueur { background: #e9f8e9; border-color: #9bd59b; color: #1b6b1b; }
.its-annonces-archive .its-badge.staff,
.its-annonce-page .its-badge.staff  { background: #e6f0ff; border-color: #9bbde5; color: #1a3a8f; }
.its-annonces-archive .its-badge.club,
.its-annonce-page .its-badge.club   { background: #fff7e6; border-color: #ffd27a; color: #8a5a00; }
.its-annonces-archive .its-badge.bar,
.its-annonce-page .its-badge.bar    { background: #fde8e8; border-color: #e5a0a0; color: #8b1a1a; }
.its-annonces-archive .its-badge.une,
.its-annonce-page .its-badge.une    { background: var(--teal); border-color: var(--teal); color: var(--vanilla); }

/* ── Status badges (publiée / brouillon / fermée / attente) ── */
.its-annonce-page .its-badge.ok     { background: #e9f8e9; border-color: #9bd59b; color: #1b6b1b; }
.its-annonce-page .its-badge.wait   { background: #fff7e6; border-color: #ffd27a; color: #8a5a00; }
.its-annonce-page .its-badge.draft  { background: #f0f0f0; border-color: #ccc; color: #666; }
.its-annonce-page .its-badge.closed { background: #fde8e8; border-color: #e5a0a0; color: #8b1a1a; }

/* ── Buttons ──────────────────────────────────────────────── */
.its-annonces-archive .its-btn,
.its-annonce-page .its-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--vanilla) !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-family: var(--sans);
}
.its-annonces-archive .its-btn:hover,
.its-annonce-page .its-btn:hover { background: var(--teal-dk); border-color: var(--teal-dk); }
.its-annonces-archive .its-btn-outline,
.its-annonce-page .its-btn-outline {
  background: #fff; color: var(--teal) !important;
}
.its-annonces-archive .its-btn-outline:hover,
.its-annonce-page .its-btn-outline:hover { background: var(--sage-lt, #D7EAE2); }
.its-annonces-archive .its-btn-sm,
.its-annonce-page .its-btn-sm { padding: 7px 10px; font-size: 12px; }
.its-annonces-archive .its-btn-danger,
.its-annonce-page .its-btn-danger {
  background: #C0392B; border-color: #C0392B; color: #fff !important;
}
.its-annonces-archive .its-btn-danger:hover,
.its-annonce-page .its-btn-danger:hover { background: #A02921; border-color: #A02921; }

/* ════════════════════════════════════════════════════════════
   ARCHIVE
   ════════════════════════════════════════════════════════════ */

/* ── Search + filter toggle ────────────────────────────────── */
.archive-search {
  background: transparent;
  padding: 0 0 20px;
  margin-bottom: 4px;
}
.archive-search .search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.archive-search input[type="search"],
.archive-search input[type="text"] {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: var(--sans);
  background: #fff;
  color: var(--teal);
}
.archive-search input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28,61,52,.1);
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--sans);
  color: var(--teal);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.filter-toggle:hover {
  border-color: var(--teal);
  background: var(--sage-lt, #D7EAE2);
}
.filter-toggle.active {
  background: var(--teal);
  color: var(--vanilla);
  border-color: var(--teal);
}
.filter-toggle .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 800;
  background: var(--g-bright);
  color: var(--teal-dk, #172713);
}

/* ── Type tabs ─────────────────────────────────────────────── */
.type-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.type-tabs a.type-tab,
.type-tabs button.type-tab,
.type-tabs .type-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--sans);
  color: var(--muted, #5C5C5C) !important;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  text-decoration: none !important;
}
.type-tabs a.type-tab:hover,
.type-tabs button.type-tab:hover,
.type-tabs .type-tab:hover {
  border-color: var(--teal);
  color: var(--teal) !important;
  background: var(--sage-lt, #D7EAE2);
}
.type-tabs a.type-tab.active,
.type-tabs button.type-tab.active,
.type-tabs .type-tab.active {
  background: var(--teal);
  color: var(--vanilla) !important;
  border-color: var(--teal);
}
.type-tabs a.type-tab.active:hover,
.type-tabs button.type-tab.active:hover {
  background: var(--teal-dk, #172713);
  color: var(--vanilla) !important;
}
.type-tab .tab-count {
  font-size: 10px;
  font-weight: 800;
  opacity: .6;
  margin-left: 6px;
}
.type-tab.active .tab-count { opacity: .85; }

/* ── Filters panel ─────────────────────────────────────────── */
.archive-filters { display: none; padding-top: 16px; }
.archive-filters.open { display: block; }
.filters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-item {
  flex: 1;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--g-bright);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-item label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--teal);
}
.filter-item select {
  width: 100%;
  padding: 9px 30px 9px 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--teal);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.filter-item select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28,61,52,.1);
}
.filters-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.reset-filters {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #5C5C5C);
  font-family: var(--sans);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}
.reset-filters:hover { color: var(--teal); }

/* ── Sort bar ──────────────────────────────────────────────── */
.archive-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
}
.archive-sort-bar .result-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #5C5C5C);
}
.archive-sort-bar .sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.archive-sort-bar .sort-group label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--teal);
}
.archive-sort-bar .sort-group select {
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--teal);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.archive-sort-bar .sort-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28,61,52,.1);
}

/* — Localisation : input dans la grille de filtres — */
.filter-item input[type="text"] {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--teal);
}
.filter-item input[type="text"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28,61,52,.1);
}

/* — Utilitaire de masquage (conditional filters, etc.) — */
.its-hidden { display: none !important; }

/* ── Paywall banner archive ────────────────────────────────── */
.archive-paywall-banner {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.archive-paywall-banner-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 6px;
}
.archive-paywall-banner-text {
  font-size: 13px;
  color: var(--muted, #5C5C5C);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* ── Cards grid ────────────────────────────────────────────── */
.annonce-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 8px;
}
@media (max-width: 960px) {
  .annonce-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .annonce-cards-grid { grid-template-columns: 1fr; }
}

/* ── Annonce card ──────────────────────────────────────────── */
.annonce-card {
  background: #fff;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.annonce-card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.annonce-card-type-bar {
  display: block;
  height: 4px;
  width: 100%;
}
.annonce-card-type-bar.joueur { background: var(--g-bright); }
.annonce-card-type-bar.staff  { background: var(--blue, #1A3A8F); }
.annonce-card-type-bar.club   { background: var(--yellow, #C47D08); }
.annonce-card-type-bar.bar    { background: #C0392B; }

.annonce-card-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.annonce-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.annonce-card-date {
  font-size: 11px;
  color: var(--muted, #5C5C5C);
  font-weight: 600;
  margin-left: auto;
}
.annonce-card-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--teal);
  margin: 0 0 8px;
  line-height: 1.35;
}
.annonce-card:hover .annonce-card-title { text-decoration: underline; }
.annonce-card-excerpt {
  font-size: 12px;
  color: var(--muted, #5C5C5C);
  line-height: 1.5;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.annonce-card-locked-msg {
  font-size: 11px;
  color: var(--muted, #5C5C5C);
  line-height: 1.4;
  flex: 1;
  display: flex;
  align-items: center;
  font-style: italic;
}
.annonce-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.annonce-card-tag {
  padding: 3px 7px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
}
.annonce-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: auto;
}
.annonce-card-author {
  font-size: 11px;
  color: var(--muted, #5C5C5C);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}
.annonce-card-author-empty { color: var(--border); }
.annonce-card-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
  text-decoration: none;
}
.annonce-card-link:hover { text-decoration: underline; }

/* ── Pagination ────────────────────────────────────────────── */
.its-annonces-archive .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
}
.its-annonces-archive .pagination a,
.its-annonces-archive .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--teal);
  text-decoration: none;
}
.its-annonces-archive .pagination a:hover {
  background: var(--sage-lt, #D7EAE2);
  border-color: var(--teal);
}
.its-annonces-archive .pagination .current {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--vanilla);
}
.its-annonces-archive .pagination .dots {
  border: none;
  background: none;
  color: var(--muted, #5C5C5C);
}

/* ── Note info ─────────────────────────────────────────────── */
.its-note-info {
  background: var(--sage-lt, #D7EAE2);
  border: 1px solid var(--sage, #ABC8A2);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--teal-dk, #172713);
  line-height: 1.6;
}
.its-annonces-archive-info {
  margin-top: 32px;
}

/* ════════════════════════════════════════════════════════════
   SINGLE
   ════════════════════════════════════════════════════════════ */

.its-annonce-page .annonce-detail {
  margin-top: 32px;
  margin-bottom: 48px;
  padding: 0 24px;
  max-width: min(90%, 1200px);
  margin-left: auto;
  margin-right: auto;
}
.annonce-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1100px) {
  .annonce-layout { grid-template-columns: 1fr 320px; }
}

.annonce-box {
  background: #fff;
  border: 1px solid #ddd;
}
.annonce-header { padding: 24px; border-bottom: 1px solid #eee; }
.annonce-une-flag { margin-bottom: 8px; }
.annonce-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--teal);
  line-height: 1.3;
  margin: 0 0 10px;
}
.annonce-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted, #5C5C5C);
}
.annonce-meta .sep { color: var(--border); }

.annonce-image {
  border-bottom: 1px solid #eee;
  background: #f6f6f6;
}
.annonce-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

/* ── Info cards (champs ACF) ───────────────────────────────── */
.annonce-infos {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.annonce-info-item {
  padding: 12px;
  background: #f9f9f9;
  border: 1px solid #eee;
}
.annonce-info-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted, #5C5C5C);
  margin-bottom: 4px;
}
.annonce-info-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}
.annonce-info-span3 { grid-column: span 3; }
/* Tablette / mobile : 2 colonnes (les valeurs sont courtes → évite un empilement
   interminable qui allongeait le scroll de la fiche sur téléphone). */
@media (max-width: 720px) {
  .annonce-infos { grid-template-columns: repeat(2, 1fr); padding: 16px; }
  .annonce-info-span3 { grid-column: span 2; }
}
/* Très petits écrans seulement : on repasse à 1 colonne. */
@media (max-width: 380px) {
  .annonce-infos { grid-template-columns: 1fr; }
  .annonce-info-span3 { grid-column: span 1; }
}

/* ── Body ──────────────────────────────────────────────────── */
.annonce-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--teal);
}
.annonce-body p { margin: 0 0 14px; }
.annonce-body p:last-child { margin-bottom: 0; }
.annonce-body-resume {
  font-size: 15px;
  padding: 12px 14px;
  background: var(--sage-lt, #D7EAE2);
  border-left: 3px solid var(--g-bright);
}

/* ── Author ────────────────────────────────────────────────── */
.annonce-author {
  padding: 20px 24px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f9f9f9;
}
.author-avatar {
  width: 44px; height: 44px;
  background: var(--sage, #ABC8A2);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.author-avatar-img { object-fit: cover; padding: 0; background: #eee; }
.author-info { flex: 1; min-width: 0; }
.author-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--teal);
}
.author-name a { color: var(--teal); text-decoration: none; }
.author-name a:hover { text-decoration: underline; }
.author-role {
  font-size: 12px;
  color: var(--muted, #5C5C5C);
  margin-top: 2px;
}

/* ── Owner actions ─────────────────────────────────────────── */
.annonce-owner-actions {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  background: #fcfcfa;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.annonce-owner-actions form { margin: 0; padding: 0; }

/* ── Locked box (paywall) ──────────────────────────────────── */
.annonce-locked-box {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid #eee;
}
.annonce-locked-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: #f3f3f3;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted, #5C5C5C);
  margin-bottom: 16px;
  letter-spacing: .3px;
}
.annonce-locked-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 8px;
}
.annonce-locked-text {
  font-size: 13px;
  color: var(--muted, #5C5C5C);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.annonce-sidebar { display: flex; flex-direction: column; gap: 16px; }
.annonce-sidebar-box {
  background: #fff;
  border: 1px solid #ddd;
}
.annonce-sidebar-head {
  padding: 10px 16px;
  background: var(--teal);
  color: var(--vanilla);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-left: 4px solid var(--g-bright);
}
.annonce-sidebar-actions {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.annonce-sidebar-actions .its-btn { justify-content: center; }
.annonce-sidebar-tags {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
}
.sidebar-tax-group { margin: 0; }
.sidebar-tax-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted, #5C5C5C);
  margin-bottom: 6px;
}
.sidebar-tax-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sidebar-tax-tag {
  display: inline-block;
  padding: 3px 8px;
  background: #f3f3f3;
  border: 1px solid #ddd;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
}

/* ── Sidebar : liste compacte (Caractéristiques + entité) ── */
.annonce-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.annonce-sidebar-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.annonce-sidebar-list li:last-child { border-bottom: none; }
.annonce-sidebar-list .sidebar-tax-label { margin: 0; }
.annonce-sidebar-list .sidebar-tax-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}
.annonce-sidebar-list .sidebar-tax-val a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(28,61,52,.3);
  text-underline-offset: 2px;
}
.annonce-sidebar-list .sidebar-tax-val a:hover {
  text-decoration-color: var(--teal);
}
.annonce-sidebar-list .sidebar-tax-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, #5C5C5C);
}

/* ── Sidebar : box Contact (sous-titre Agent) ── */
.annonce-sidebar-subhead {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted, #5C5C5C);
  border-top: 1px solid #eee;
}

/* ── Sidebar : box Contact verrouillée (audience non ciblée) ── */
.annonce-sidebar-contact--locked .annonce-sidebar-locked-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.annonce-sidebar-contact--locked .annonce-sidebar-locked-text {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #5C5C5C);
  line-height: 1.4;
}

/* ── Sidebar : entité liée (bar / club / joueur / staff) ──
 * Réutilise le design .entity-player-card (cf. itsrugby-article.css) — header
 * teal + photo 52x52 + body blanc. Règles dupliquées ici car article.css n'est
 * pas chargé sur les pages d'annonces. La sidebar liste ses infos sous le
 * header. */
a.annonce-sidebar-entity {
  color: inherit;
  text-decoration: none;
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
a.annonce-sidebar-entity:hover {
  box-shadow: 0 2px 12px rgba(28,61,52,.12);
  border-color: var(--g-bright);
}
.annonce-sidebar-entity .entity-player-header {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--teal);
}
.annonce-sidebar-entity .entity-player-photo {
  width: 52px; height: 52px;
  background: rgba(242,229,210,.15);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vanilla);
  font-weight: 900;
  font-size: 18px;
}
.annonce-sidebar-entity .entity-player-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.annonce-sidebar-entity .entity-player-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.annonce-sidebar-entity .entity-player-kicker {
  font-size: 9px;
  font-weight: 800;
  color: var(--g-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}
.annonce-sidebar-entity .entity-player-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--vanilla);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.annonce-sidebar-entity .entity-player-position {
  font-size: 10px;
  font-weight: 700;
  color: var(--g-bright);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.annonce-sidebar-entity-infos {
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  padding: 0;
}
.annonce-sidebar-entity-infos li {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.annonce-sidebar-entity-infos li:last-child { border-bottom: none; }
.annonce-sidebar-entity-infos .sidebar-tax-label {
  color: var(--muted);
  font-weight: 600;
}
.annonce-sidebar-entity-infos .sidebar-tax-val {
  color: var(--teal);
  font-weight: 700;
  text-align: right;
}
.annonce-sidebar-entity-infos .sidebar-tax-val a {
  color: var(--teal);
  text-decoration: none;
}
.annonce-sidebar-entity-infos .sidebar-tax-val a:hover { text-decoration: underline; }
.annonce-sidebar-entity .entity-player-cta {
  display: block;
  padding: 8px;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--teal);
  background: var(--sage-lt);
  border-top: 1px solid var(--border);
}

/* ── Unavailable / fallback ───────────────────────────────── */
.its-annonce-unavailable {
  padding: 60px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted, #5C5C5C);
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
