/* =====================================================================================================================
   Blocs de l'accueil Config Gamer (maquette C « Hybride »). Lit les variables --cg-* du gabarit cgc
   (valeurs de secours = DA C claire si le module est affiché ailleurs).
   ===================================================================================================================== */
.cgh {
  --h-surface: var(--cg-surface, #fff); --h-surface-2: var(--cg-surface-2, #f2f2f3); --h-ligne: var(--cg-ligne, #ececee);
  --h-ligne-2: var(--cg-ligne-2, #e4e4e7); --h-texte: var(--cg-texte, #1b1b1e); --h-discret: var(--cg-discret, #4f4f56);
  --h-discret-2: var(--cg-discret-2, #5f5f66); --h-accent: var(--cg-accent, #b00000); --h-accent-texte: var(--cg-accent-texte, #b00000);
  --h-actif: var(--cg-actif, #161618); --h-actif-texte: var(--cg-actif-texte, #fff); --h-rayon: var(--cg-rayon, 8px);
  --h-titre: var(--cg-police-titre, "Rajdhani", "Segoe UI", sans-serif);
  color: var(--h-texte);
}
/* Remises à zéro sans poids (:where) : les règles des blocs ci-dessous l'emportent toujours. */
:where(.cgh) ul, :where(.cgh) ol { list-style: none; margin: 0; padding: 0; }
:where(.cgh) li + li { border-top: 0; }
:where(.cgh) a { color: inherit; text-decoration: none; }
:where(.cgh) a:hover { color: var(--h-accent-texte); }
.cgh-carte { background: var(--h-surface); border-radius: var(--h-rayon); box-shadow: var(--cg-ombre, 0 1px 2px rgba(0, 0, 0, .06)); }

/* ---------------------------------------------------------------- éléments communs */
.cgh-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 20px; }
.cgh-titre { margin: 0; font-family: var(--h-titre); font-weight: 700; line-height: 1.05; color: var(--h-texte); }
.cgh-titre--xl { font-size: clamp(28px, 3.2vw, 36px); line-height: 1; }
.cgh-titre--l { font-size: clamp(24px, 2.6vw, 30px); line-height: 1; }
.cgh-titre--m { font-size: 26px; }
.cgh-titre--s { font-size: 22px; }
.cgh-surtitre { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--h-accent-texte); }
.cgh-petit-titre { margin: 6px 0 0; font: 600 13px/1.2 var(--cg-police-texte, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--h-discret); }
.cgh-note { margin: 0; font-size: 13px; color: var(--h-discret-2); }
.cgh-lien { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--h-accent-texte) !important; }
.cgh-lien:hover { text-decoration: underline !important; }
.cgh-etiquette {
  display: inline-block; align-self: flex-start; padding: 3px 8px; border-radius: 3px; background: var(--h-accent); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
}
.cgh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--cg-rayon-petit, 4px);
  font: 600 15px/1 var(--cg-police-texte, sans-serif); cursor: pointer; white-space: nowrap;
}
.cgh-btn--actif { background: var(--h-actif); color: var(--h-actif-texte) !important; }
.cgh-btn--rouge { background: var(--h-accent); color: #fff !important; }
.cgh-btn--rouge:hover { background: var(--cg-accent-fonce, #8b0000); }
.cgh-btn--actif:hover { opacity: .9; }
.cgh-btn--petit { min-height: 36px; padding: 0 12px; font-size: 13px; }
.cgh-btn--plein { width: 100%; }
.cgh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cgh-chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--cg-rayon-petit, 4px);
  background: var(--h-surface-2); font-size: 14px; font-weight: 500;
}
.cgh-chips--rond a { border-radius: 20px; background: transparent; border: 1px solid var(--h-ligne-2); }
.cgh-chips-plus { min-height: 40px; padding: 0 12px; border: 1px dashed var(--h-ligne-2); border-radius: var(--cg-rayon-petit, 4px); background: transparent; color: var(--h-discret); font: 600 14px/1 var(--cg-police-texte, sans-serif); cursor: pointer; }
.cgh-chips-plus:hover { color: var(--h-accent-texte); border-color: var(--h-accent); }
.cgh-chips a:hover { color: var(--h-accent-texte); box-shadow: inset 0 0 0 1px var(--h-accent); }
.cgh-rang {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--h-surface-2);
  font: 700 17px/1 var(--h-titre);
}

/* onglets */
.cgh-onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--h-ligne-2); overflow-x: auto; scrollbar-width: none; }
.cgh-onglets::-webkit-scrollbar { display: none; }
.cgh-onglets--marge { margin: 10px 20px 0; }
.cgh-onglets [role="tab"] {
  flex: none; height: 44px; padding: 0 12px; margin-bottom: -1px; background: transparent; border: 0; border-bottom: 3px solid transparent;
  cursor: pointer; font: 600 14px/1 var(--cg-police-texte, sans-serif); color: var(--h-discret-2);
}
.cgh-onglets [role="tab"][aria-selected="true"] { color: var(--h-texte); border-bottom-color: var(--h-accent); }
.cgh-onglets [role="tab"]:hover { color: var(--h-texte); }
.cgh-onglets [role="tab"]:focus-visible { outline-offset: -3px; }
.cgh-compte { font-weight: 400; color: var(--h-discret-2); }
[data-cgh-cache][hidden] { display: none !important; }

/* ---------------------------------------------------------------- À la une (bandeau sombre, position banner) */
.cgh-une { display: flex; flex-wrap: wrap; gap: 12px; color: #fff; }
.cgh-une-hero {
  flex: 5 1 520px; position: relative; display: block; min-height: 380px; border-radius: var(--h-rayon); overflow: hidden; background: #000; color: #fff !important;
}
.cgh-une-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .4s ease; }
.cgh-une-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .9) 95%); }
.cgh-une-hero:hover img { transform: scale(1.03); }
.cgh-une-texte { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.cgh-une-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: #d8d8dc; }
.cgh-une-titre { font: 700 clamp(26px, 3vw, 34px)/1.02 var(--h-titre); color: #fff; text-wrap: balance; }
.cgh-une-jeux { flex: 6 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.cgh-jeu {
  height: 100%; min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 16px;
  border-radius: var(--h-rayon); background: var(--cg-bandeau-2, #2a2a2e); color: #fff !important; transition: background .2s;
}
.cgh-jeu:hover { background: #34343a; }
.cgh-jeu-sur { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #ff6b62; }
.cgh-jeu-nom { font: 700 22px/1.05 var(--h-titre); color: #fff; }
.cgh-jeu-sous { font-size: 13px; color: #b9b9bf; }
.cgh-jeu--tous { align-items: center; justify-content: center; flex-direction: row; background: transparent; border: 1px solid #3a3a40; font-weight: 600; }
.cgh-jeu--tous:hover { border-color: var(--h-accent); background: transparent; }

/* ---------------------------------------------------------------- Guides d'achat (top-a) */
.cgh-guides { display: flex; flex-direction: column; gap: 20px; padding: 22px 24px 24px; }
.cgh-guides-cartes { display: flex; flex-wrap: wrap; gap: 12px; }
.cgh-guides-petits { flex: 3 1 560px; display: flex; flex-wrap: wrap; gap: 12px; }
.cgh-visuel { flex: 1 1 260px; position: relative; display: block; min-height: 172px; border-radius: var(--h-rayon); overflow: hidden; background: #000; color: #fff !important; }
.cgh-visuel--grand { flex: 2 1 520px; min-height: 360px; }
.cgh-visuel img, .cgh-visuel-vide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .4s ease; }
.cgh-visuel-vide { background: linear-gradient(135deg, #2a2a2e, #161618); }
.cgh-visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .92) 95%); }
.cgh-visuel:hover img { transform: scale(1.04); }
.cgh-visuel-texte { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.cgh-visuel-titre { font: 700 22px/1.05 var(--h-titre); color: #fff; }
.cgh-visuel--grand .cgh-visuel-titre { font-size: clamp(24px, 2.6vw, 30px); }
.cgh-familles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; border-top: 1px solid var(--h-ligne); }
.cgh-familles nav { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }

/* ---------------------------------------------------------------- Comparateur (top-b) */
.cgh-cmp { display: flex; flex-wrap: wrap; overflow: hidden; }
.cgh-cmp-top { flex: 3 1 560px; min-width: 0; padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.cgh-cmp-top .cgh-tete .cgh-note { max-width: 420px; }
.cgh-top li { border-bottom: 1px solid var(--h-ligne); }
.cgh-top a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 0; }
.cgh-top-nom { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; }
.cgh-top-prix { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.cgh-top-prix strong { font: 700 22px/1 var(--h-titre); color: var(--h-accent-texte); white-space: nowrap; }
.cgh-cmp-cherche { flex: 2 1 340px; min-width: 0; padding: 20px 24px 22px; background: var(--h-surface-2); display: flex; flex-direction: column; gap: 14px; }
.cgh-cmp--seul .cgh-cmp-cherche { flex-basis: 100%; }
.cgh-cmp-cherche form { display: flex; flex-direction: column; gap: 10px; }
.cgh-champ { display: flex; gap: 8px; }
.cgh-champ input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--h-ligne-2); border-radius: var(--cg-rayon-petit, 4px); padding: 0 12px; font: inherit; background: var(--h-surface); color: var(--h-texte); }
.cgh-champ .cgh-btn { min-height: 46px; }
.cgh-cmp-cherche .cgh-chips--rond a { background: var(--h-surface); }

/* ---------------------------------------------------------------- Derniers articles (main-top) */
.cgh-articles { overflow: hidden; }
.cgh-tete--marge { padding: 16px 20px 0; align-items: center; }
.cgh-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 0 24px; padding: 4px 20px 12px; }
.cgh-liste li { border-bottom: 1px solid var(--h-ligne); }
.cgh-liste a { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.cgh-liste img, .cgh-vignette-vide { flex: none; width: 104px; height: 68px; object-fit: cover; border-radius: 6px; background: var(--h-surface-2); }
.cgh-vignette-vide {
  display: grid; place-items: center; padding: 4px; text-align: center; font: 700 14px/1 var(--h-titre); color: var(--h-discret); text-transform: uppercase; letter-spacing: .06em;
}
.cgh-liste-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cgh-liste-texte .cgh-surtitre { margin: 0; }
.cgh-liste-titre { font-weight: 500; line-height: 1.3; }
.cgh-prix-bp { flex: none; padding: 4px 8px; border-radius: 4px; background: var(--h-accent); color: #fff; font: 700 20px/1 var(--h-titre); white-space: nowrap; }

/* ---------------------------------------------------------------- Nos configs (main-bottom) */
.cgh-configs { padding: 16px 20px; }
.cgh-configs .cgh-tete { align-items: baseline; margin-bottom: 10px; }
.cgh-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(136px, 100%), 1fr)); gap: 8px; }
.cgh-tuile {
  height: 100%; display: flex; flex-direction: column; padding: 10px 12px; border-radius: 6px; background: var(--h-surface-2);
  border-top: 3px solid var(--palier, #6b6b72); transition: transform .15s ease;
}
.cgh-tuile:hover { transform: translateY(-2px); }
.cgh-tuile-niveau { font-size: 12px; color: var(--h-discret-2); }
.cgh-tuile-prix { font: 700 19px/1.15 var(--h-titre); }
.cgh-palier-1 { --palier: #6b6b72; }
.cgh-palier-2 { --palier: #7a1a1a; }
.cgh-palier-3 { --palier: #9a0a0a; }
.cgh-palier-4 { --palier: #d0161b; }
.cgh-palier-5 { --palier: #ff4a3d; }
.cgh-tuile--top { background: var(--h-actif); color: var(--h-actif-texte) !important; border-top-color: var(--h-accent); }
.cgh-tuile--top .cgh-tuile-niveau { color: inherit; opacity: .8; }

/* ---------------------------------------------------------------- Demander une config (sidebar-right) */
.cgh-demande { overflow: hidden; }
.cgh-bandeau {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; background: var(--cg-entete, #161618);
  border-bottom: 3px solid var(--h-accent); color: #fff;
}
.cgh-bandeau .cgh-titre { color: #fff; font-size: 21px; white-space: nowrap; }
.cgh-bandeau span { font-size: 12px; color: #b9b9bf; white-space: nowrap; }
.cgh-demande-corps { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.cgh-demande-corps label { font-weight: 600; font-size: 14px; }
.cgh-demande-corps select { height: 44px; border: 1px solid var(--h-ligne-2); border-radius: 4px; padding: 0 10px; font: inherit; background: var(--h-surface); color: var(--h-texte); }
.cgh-progres { display: flex; gap: 4px; }
.cgh-progres span { flex: 1; height: 4px; border-radius: 2px; background: var(--h-ligne-2); }
.cgh-progres .cgh-on { background: var(--h-accent); }

/* ---------------------------------------------------------------- Forum (sidebar-right) */
.cgh-forum { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.cgh-forum .cgh-tete { align-items: center; }
.cgh-vus { display: flex; flex-direction: column; gap: 8px; }
.cgh-vus a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 6px; background: var(--h-surface-2); }
.cgh-vus .cgh-rang { width: 40px; height: 40px; background: var(--h-surface); font-size: 18px; }
.cgh-vus-texte { display: flex; flex-direction: column; min-width: 0; }
.cgh-vus-titre, .cgh-direct-titre { font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.cgh-direct li { border-top: 1px solid var(--h-ligne); }
.cgh-direct a { display: flex; flex-direction: column; padding: 9px 0; }
.cgh-pastille-verte { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--cg-ok, #1e9e57); vertical-align: 1px; }

/* ---------------------------------------------------------------- sous un article (jeux, similaires) */
.cgh-sous { display: flex; flex-direction: column; gap: 12px; }
.cgh-sous .cgh-tete { align-items: baseline; }
.cgh-sous-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.cgh-sous-jeu { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.cgh-sous-jeu .cgh-surtitre { margin: 0; }
.cgh-sous-nom { font: 700 21px/1.1 var(--h-titre); }
.cgh-sous-jeu:hover .cgh-sous-nom, .cgh-sous-carte:hover .cgh-sous-titre { color: var(--h-accent-texte); }
.cgh-sous-carte { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.cgh-sous-carte img, .cgh-sous-carte .cgh-vignette-vide { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.cgh-sous-texte { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.cgh-sous-texte .cgh-surtitre { margin: 0; }
.cgh-sous-titre { font-weight: 600; line-height: 1.3; }

/* ---------------------------------------------------------------- tendance des prix (fiches) */
.cgh-tendance { padding: 16px 18px; margin: 0 0 18px; border-left: 4px solid var(--h-accent); }
.cgh-tendance .cgh-tete { margin-bottom: 10px; }
.cgh-tendance-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; }
.cgh-tendance--seul .cgh-tendance-liste { grid-template-columns: 1fr; }
.cgh-tendance-liste li { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 6px; background: var(--h-surface-2); }
.cgh-tendance-nom { font: 700 18px/1.1 var(--h-titre); }
.cgh-tendance-chiffres { font-size: 14px; color: var(--h-discret); }
.cgh-tendance-chiffres strong { font: 700 20px/1 var(--h-titre); }
.cgh-tendance-hausse .cgh-tendance-chiffres strong, .cgh-tendance-hausse .cgh-courbe { color: var(--cg-rupture, #d92d20); }
.cgh-tendance-baisse .cgh-tendance-chiffres strong, .cgh-tendance-baisse .cgh-courbe { color: var(--cg-ok, #1e9e57); }
.cgh-tendance-stable .cgh-tendance-chiffres strong, .cgh-tendance-stable .cgh-courbe { color: var(--h-discret); }
.cgh-tendance-avis { margin: 4px 0; font-size: 15px; }

/* ---------------------------------------------------------------- colonne de lecture : dans la même rubrique */
.cgh-rubrique { padding: 16px 18px; }
.cgh-rubrique .cgh-titre { margin: 0 0 10px; }
.cgh-rubrique-liste { list-style: none; margin: 0 0 10px; padding: 0; }
.cgh-rubrique-liste li { padding: 9px 0; border-top: 1px solid var(--h-ligne, var(--cg-ligne, #ececee)); }
.cgh-rubrique-liste li:first-child { border-top: 0; padding-top: 0; }
.cgh-rubrique-liste a { display: flex; align-items: center; gap: 12px; color: var(--h-texte, var(--cg-texte, #1b1b1e)); text-decoration: none; }
.cgh-rubrique-vignette { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: var(--cg-rayon-petit, 4px); background: var(--h-surface-2); }
.cgh-rubrique-titre { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cgh-rubrique-liste a:hover .cgh-rubrique-titre, .cgh-rubrique-liste a:focus-visible .cgh-rubrique-titre { color: var(--h-accent-texte); text-decoration: underline; }

/* ---------------------------------------------------------------- fiches de jeux : « Mon PC fait-il tourner ce jeu ? » */
.cgh-verif { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px; margin: 0 0 18px;
  border-left: 4px solid var(--h-accent); }
.cgh-verif-texte { flex: 1 1 280px; min-width: 0; }
.cgh-verif-titre { margin: 0; font: 700 19px/1.2 var(--h-titre); }
.cgh-verif-res { margin: 6px 0 0; font-weight: 600; }
.cgh-verif-res--ultra, .cgh-verif-res--reco { color: var(--cg-ok, #1a7f45); }
.cgh-verif-res--min { color: var(--cg-attente, #a15c00); }
.cgh-verif-res--non { color: var(--cg-rupture, #d92d20); }
.cgh-verif-btn { flex: none; }
.cgh-tendance-modeles { display: grid; gap: 6px; margin: 6px 0; padding: 0; list-style: none; }
.cgh-tendance-modeles li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 10px; border-radius: 6px; background: var(--h-surface, #fff); font-size: 14px; }
.cgh-tendance-modeles a { font-weight: 700; }
.cgh-tendance-modeles span { color: var(--h-discret); }
.cgh-tendance-modeles .cgh-tendance-baisse strong { color: var(--cg-ok, #1e9e57); }
.cgh-tendance-modeles .cgh-tendance-hausse strong { color: var(--cg-rupture, #d92d20); }
.cgh-tendance-modeles .cgh-tendance-stable strong { color: var(--h-discret); }
.cgh-tendance .cgh-lien { font-size: 13px; }

/* ---------------------------------------------------------------- vidéos et photos des membres (colonnes) */
.cgh-videos, .cgh-photos { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.cgh-videos-liste li + li { border-top: 1px solid var(--h-ligne); }
.cgh-videos-liste a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.cgh-videos-liste li:first-child a { padding-top: 0; }
.cgh-videos-vignette { position: relative; flex: none; width: 120px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--h-surface-2); }
.cgh-videos-vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cgh-videos-duree { position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 3px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; }
.cgh-videos-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cgh-videos-titre { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cgh-videos-liste a:hover .cgh-videos-titre, .cgh-videos-liste a:focus-visible .cgh-videos-titre { color: var(--h-accent-texte); }
.cgh-videos-texte time { white-space: nowrap; }
.cgh-videos .cgh-petit-titre { margin: 0; }
.cgh-videos-rubriques a { min-height: 36px; font-size: 13px; }
.cgh-photos-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
.cgh-photos-grille a { display: flex; flex-direction: column; gap: 4px; }
.cgh-photos-grille img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--h-surface-2); }
.cgh-photos-nom { font-size: 12px; line-height: 1.3; color: var(--h-discret); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgh-photos-grille a:hover .cgh-photos-nom, .cgh-photos-grille a:focus-visible .cgh-photos-nom { color: var(--h-accent-texte); }
.cgh-photos-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }

/* ---------------------------------------------------------------- forum : catégories (colonne de gauche) */
.cgh-forumcats { padding: 12px; }
.cgh-forumcats-section { margin: 4px 6px 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h-discret); }
.cgh-forumcats-section span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.cgh-forumcats ul + .cgh-forumcats-section { margin-top: 14px; }
.cgh-forumcats a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 6px; font-weight: 500; }
.cgh-forumcats a:hover { background: var(--h-surface-2); }
.cgh-forumcats a[aria-current="page"] { background: var(--cg-accent-doux, #fbf3f3); box-shadow: inset 3px 0 0 var(--h-accent); color: var(--h-accent-texte); font-weight: 600; }
@media (max-width: 960px) {
  /* Téléphone : les catégories deviennent une rangée de pastilles défilantes (maquette mobile). */
  .cgh-forumcats { display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: none; }
  .cgh-forumcats-section { display: none; }
  .cgh-forumcats ul { display: flex; gap: 6px; }
  .cgh-forumcats a { white-space: nowrap; border: 1px solid var(--h-ligne-2); border-radius: 20px; padding: 7px 12px; }
}

/* ---------------------------------------------------------------- petits écrans */
@media (max-width: 760px) {
  .cgh-une { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--cg-gouttiere, 20px)); padding: 0 var(--cg-gouttiere, 20px); }
  .cgh-une::-webkit-scrollbar { display: none; }
  .cgh-une-hero { flex: 0 0 84%; min-height: 240px; scroll-snap-align: start; }
  .cgh-une-jeux { flex: none; display: flex; gap: 8px; }
  .cgh-une-jeux li { flex: 0 0 150px; scroll-snap-align: start; }
  .cgh-jeu { min-height: 240px; justify-content: flex-end; }
  .cgh-jeu-nom { font-size: 19px; }
  .cgh-guides, .cgh-cmp-top, .cgh-cmp-cherche { padding: 16px; }
  .cgh-visuel--grand { min-height: 240px; }
  .cgh-top .cgh-btn { display: none; }
  .cgh-tete--marge { padding: 14px 16px 0; }
  .cgh-onglets--marge { margin: 8px 16px 0; }
  .cgh-liste { padding: 0 16px 8px; }
  .cgh-liste img, .cgh-vignette-vide { width: 72px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .cgh-une-hero img, .cgh-visuel img, .cgh-tuile { transition: none; }
  .cgh-une-hero:hover img, .cgh-visuel:hover img, .cgh-tuile:hover { transform: none; }
}
