/* APERÇU « séparateurs de sections » (26 nov. 2026) — seulement en local, rien n'est publié.
   Fine ligne grise entre les grands blocs + petit trait jaune au centre.
   v2 : MÊME espace au-dessus et au-dessous du trait (--sep), les marges propres des blocs sont neutralisées. */
:root { --sep: 40px; --sep-ligne: #343a4c; }
@media (max-width: 600px) { :root { --sep: 30px; } }

/* Le bloc qui reçoit le trait : espace identique en haut (marge) et en bas (marge intérieure) */
main > section + section,
main > .ad + section,
article.game > section + section,
article.game > .ad + section {
  position: relative;
  margin-top: var(--sep) !important;
  padding-top: var(--sep) !important;
  border-top: 1px solid var(--sep-ligne);
}
/* Le premier élément du bloc (souvent le titre) ne rajoute pas sa propre marge sous le trait */
main > section + section > :first-child,
main > .ad + section > :first-child,
article.game > section + section > :first-child,
article.game > .ad + section > :first-child { margin-top: 0 !important; }
/* Le bloc d'avant ne rajoute pas sa propre marge au-dessus du trait */
main > :has(+ section), article.game > :has(+ section) { margin-bottom: 0 !important; }
/* 26/11 (capture du propriétaire, fiche GTA VI) : l'espace INTÉRIEUR d'un cadre n'est jamais retiré, sinon le texte touche le bord */
main > :has(+ section) > :last-child, article.game > :has(+ section) > :last-child { margin-bottom: 0 !important; }

/* Petit trait jaune au centre de la ligne */
main > section + section::before,
main > .ad + section::before,
article.game > section + section::before,
article.game > .ad + section::before,
.ed-panel > .cmp-box::before {
  content: ""; position: absolute; top: -2px; left: 50%;
  width: 48px; height: 3px; margin-left: -24px;
  background: var(--accent); border-radius: 2px; z-index: 1;
}

/* Fiche : entre la présentation du jeu et le comparateur (qui a déjà son cadre) :
   la ligne est dessinée au milieu de l'espace, sans toucher au cadre */
.ed-panel > .game-head { margin-bottom: 0 !important; }
.ed-panel > .cmp-box { position: relative; margin-top: calc(var(--sep) * 2 + 1px) !important; }
.ed-panel > .cmp-box::before { top: calc(-1 * var(--sep) - 2px); }
.ed-panel > .cmp-box::after { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--sep) - 1px); height: 1px; background: var(--sep-ligne); }

/* 26/11 (capture du propriétaire, fiche GTA VI) : le cadre du jeu n'avait aucun espace intérieur en bas (déjà avant les séparateurs) :
   « Prix relevés le … » touchait le bord. Même espace qu'en haut. */
.ed-panel > .game-head { padding-bottom: 20px !important; }
