/* Norme validée maintenant : sommaire +/− et tableaux. Pas le bouton CTA. */
.cj-test-bg .contenu {
  overflow-x: auto;
}
.cj-test-bg .contenu table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}
.cj-test-bg .contenu table th,
.cj-test-bg .contenu table td {
  border: 1px solid #d5dde3;
  padding: 0.65rem 0.8rem;
  vertical-align: top;
  text-align: left;
}
.cj-test-bg .contenu table thead th {
  background: #e6f0f0;
  color: #161925;
  font-weight: 600;
}
.cj-test-bg .contenu table tbody tr:nth-child(even) td {
  background: #f7fafa;
}
/* Mobile : largeur mini par cellule (82px). Effet = hybride automatique sans compter les colonnes :
   - ≤4 colonnes (4×82=328 < 360) → le tableau tient, toutes colonnes visibles, pas de défilement ;
   - ≥5 colonnes (5×82=410 > 360) → tableau plus large que l'écran → défile dans .table-wrap, cellules lisibles (82px au lieu d'être écrasées). */
@media (max-width: 700px) {
  .cj-test-bg .contenu table { font-size: 0.85rem; min-width: 0; width: 100%; }
  .cj-test-bg .contenu table th,
  .cj-test-bg .contenu table td {
    padding: 0.5rem 0.4rem;
    min-width: 82px;
    overflow-wrap: break-word;
  }
}
.cj-test-bg .cj-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.45rem;
  border: 1px solid #2374AB;
  background: #fff;
  color: #2374AB;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.cj-test-bg nav.sommaire li {
  list-style: none;
}
/* Numérotation decimalnested (1, 1.1, 1.2) — réglage lwptoc mesuré dans le WP. */
.cj-test-bg nav.sommaire #TableOfContents ul {
  counter-reset: cj-toc;
}
.cj-test-bg nav.sommaire #TableOfContents li {
  counter-increment: cj-toc;
}
.cj-test-bg nav.sommaire #TableOfContents li > a::before {
  content: counters(cj-toc, ".");
  margin-right: 2px;
}
.cj-maj-future .custom-block-tip a,
.cj-maj-future .cta-carte .bouton {
  display: block;
  background: #2374AB;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  line-height: 1.45;
}
.cj-maj-future .cta-carte {
  border: 1px solid #d7e2ea;
  background: #f4f7fa;
  padding: 0.9rem 1rem;
  margin: 0.8rem 0;
}
.cj-maj-future .cta-titre {
  color: #1a1a2e;
  font-weight: 700;
  margin: 0 0 0.55rem;
}
.cj-test-bg nav.sommaire li > ul[hidden],
.cj-test-bg #TableOfContents[hidden],
.cj-test-bg .categories > ul[hidden] {
  display: none;
}

/* Bloc satellites replie : texte du guide d'abord, cartes a la demande. */
.cj-satellites {
  margin: 28px 0 18px;
  border: 1px solid #d7e2ea;
  border-radius: 8px;
  background: #ffffff;
}
.cj-sat-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  color: #161925;
  list-style: none;
}
.cj-sat-summary::-webkit-details-marker { display: none; }
.cj-sat-summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: #2374AB;
  flex: 0 0 auto;
}
.cj-satellites[open] .cj-sat-summary::after { content: "\2212"; }
.cj-sat-count {
  font-weight: 600;
  font-size: 0.85rem;
  color: #2374AB;
  background: #e6f0f0;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: auto;
}
.cj-satellites .categories {
  margin: 0;
  padding: 0 16px 16px;
}
.cj-satellites .categories > h2 { display: none; }


/* Barre de recherche du bloc satellites */
.cj-sat-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px 12px;
  flex-wrap: wrap;
}
.cj-sat-tools input[type="search"] {
  flex: 1 1 260px;
  min-width: 200px;
  padding: 9px 12px;
  border: 1px solid #cfdae4;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #161925;
  background: #f8fafb;
}
.cj-sat-tools input[type="search"]:focus {
  outline: 2px solid #2374AB;
  outline-offset: 1px;
  background: #ffffff;
}
.cj-sat-n {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2374AB;
  white-space: nowrap;
}
.cj-sat-empty {
  padding: 18px 16px;
  color: #5a6470;
  font-style: italic;
}

/* Moteur de recherche de la sidebar « Our guides: » */
.cj-side-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
}
.cj-side-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.9rem;
  color: #161925;
  background: #ffffff;
  border: 1px solid #cfd6dd;
  border-radius: 4px;
}
.cj-side-search input[type="search"]:focus {
  outline: 2px solid #2374AB;
  outline-offset: 1px;
}
.cj-side-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2374AB;
  white-space: nowrap;
}
.cj-side-empty {
  padding: 10px 0;
  font-size: 0.85rem;
  font-style: italic;
  color: #5a6470;
}
.cj-side-empty a {
  color: #2374AB;
  font-style: normal;
  font-weight: 600;
}
