/* ⚠️ L'IMPORT GOOGLE FONTS A ÉTÉ RETIRÉ ICI, ET IL NE DOIT PAS REVENIR.
   =========================================================================
   Cette ligne demandait « Outfit » en 400/500/600/700 à fonts.googleapis.com.
   Or `includes/local-fonts.php` sert DÉJÀ ces quatre graisses depuis le
   domaine : mesuré sur la production le 30 août 2026, `outfit-400.woff2`,
   `-500`, `-600` et `-700` partaient bien en local. La police était donc
   téléchargée deux fois.

   ⚠️ ET UN `@import` EST LE PIRE CAS. Il n'est découvert qu'après le
   téléchargement de CETTE feuille, et il bloque le rendu le temps de deux
   requêtes de plus. PageSpeed a mesuré la chaîne le 30 août, sur mobile :

       cette feuille  482 ms  ->  fonts.googleapis.com  502 ms
                              ->  fonts.gstatic.com   1 499 ms

   Presque deux secondes et demie de chemin critique, pour une police déjà
   présente.

   ⚠️ POURQUOI `local-fonts.php` NE L'AVAIT PAS ATTRAPÉ. Il inspecte les
   feuilles ENREGISTRÉES auprès de WordPress et retire celles qui pointent vers
   fonts.googleapis.com (voir sa ligne 261). Un `@import` écrit à l'intérieur
   d'un fichier CSS n'est pas une feuille enregistrée : il lui est invisible.
   Un garde-fou ne protège que de ce qu'il peut voir. */


/* ==========================================================================
   TON CSS ORIGINAL – 100 % INTACT
   ========================================================================== */
.igdb-game-info {
    margin: 0 auto;
    /* DE L'AIR AU-DESSUS DE LA FICHE (16/08/2026)
     *
     * `margin-top: 0 !important` collait ce bloc au dernier paragraphe du
     * test : sur un article, la fiche IGDB commençait pile sous le texte,
     * sans rien pour marquer qu'on quitte l'avis de la rédaction pour des
     * données brutes.
     *
     * Le `!important` est CONSERVÉ, et volontairement : c'est lui qui rend
     * l'écart indépendant du thème actif — le bloc est rendu par un
     * shortcode, donc au milieu du contenu, où chaque thème pose ses propres
     * marges sur les éléments voisins.
     *
     * <svg style="display:inline-block; width:1.1em; height:1.1em; vertical-align:-0.15em; margin-right:2px;" viewBox="0 0 24 24" width="1em" height="1em" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" class="rh24-icon"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg> Seul le HAUT prend une marge. Le bas reste collé : `border-radius:
     * 20px 20px 0 0` n'arrondit que les coins supérieurs parce qu'un second
     * bloc (les avis lecteurs) s'accole en dessous et forme un ensemble
     * continu avec celui-ci. Les espacer romprait le dessin. */
    margin-top: 40px !important;
    background: #f2f2f2;
    max-width: 1420px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 20px 20px 0px 0px;
}
.igdb-content {
    max-width: 1324px;
    margin: 5px auto;
    padding: 20px;
    font-family: 'Outfit',sans-serif;
    font-size: 1.7rem;
    line-height: 1.75;
    color: #131315;
    box-sizing: border-box;
}
.igdb-mini-card {
    display: flex;
    gap: 20px;
    border-radius: 8px;
}
.igdb-mini-card .igdb-cover {
    width: 250px;
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
}
.igdb-mini-card .igdb-info {flex: 1;
}
.igdb-mini-card .igdb-title {
    margin: 0 0 12px;
    font-size: 3.6rem;
    font-weight: 700;
    color: #131315;
}
.igdb-text {
    margin: 8px 0;
    font-size: 1.7rem;
    line-height: 1.75;
    color: #131315;
}
.igdb-label {
    font-weight: 600;
    color: #2a2a2c;
}
.igdb-error {
    margin: 20px 0;
    font-size: 1.7rem;
    font-weight: 600;
    color: #d00;
    text-align: center;
}

/* Responsive */
@media (max-width:1200px) {
    .igdb-mini-card { display: block; gap: 0; }
    .igdb-mini-card .igdb-cover { display: none!important; }
}
@media (max-width:768px) {
    .igdb-content { padding: 10px; }
    .igdb-mini-card .igdb-title { font-size: 3.6rem; text-align: center; }
}
@media (max-width:480px) {
    .igdb-mini-card .igdb-title { font-size: 3.6rem; }
}
.igdb-minimal-list .igdb-text:first-of-type,
.igdb-mini-card .igdb-text:first-of-type {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   WIDGETS – ALIGNEMENT TITRE + SCORE SUR LA MÊME LIGNE
   ========================================================================== */

/* ⚠️ CINQ RÈGLES RETIRÉES ICI (v6.10.53).
   Elles alignaient titre et score DANS LE WIDGET DE LET'S REVIEW
   (`.lets-review__widget`), que ce plugin n'a jamais écrit lui-même —
   vérifié : aucune occurrence de cette classe en PHP ni en JavaScript. Le
   plugin tiers étant désinstallé, plus rien ne porte ces classes et ces
   règles ne s'appliquaient à aucun élément.

   La règle `.score-bar` ci-dessous, elle, reste : elle ne dépend pas du
   plugin tiers. */

/* Barre de score - 100% sous le titre + score */
.widget_igdb_game_list .score-bar {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* LOGO IGDB CENTRÉ EN BAS (v6.4.7)
 *
 * 84x84 : la taille qu'il aurait fallu si la feuille avait chargé plus tôt.
 * Depuis la v6.4.6, elle charge enfin (le widget était un identifiant
 * inexistant) — et à cette taille, le logo dominait chaque widget au lieu
 * d'être un simple crédit en pied. Ramené à une taille de badge de pied de
 * page, comme demandé. */
.widget_igdb_game_list {
    position: relative !important;
    padding-bottom: 34px !important;
}

.widget_igdb_game_list::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 8px !important;
    transform: translateX(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: url('https://www.igdb.com/packs/static/images/igdbLogo-bcd49db90003ee7cd4f4.svg') center/contain no-repeat !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

/* LIGHT MODE → NOIR */
html:not([data-theme="dark"]) .widget_igdb_game_list::after {
    filter: invert(100%) !important;
}

/* DARK MODE → BLANC+ROSE */
html[data-theme="dark"] .widget_igdb_game_list::after {
    filter: none !important;
}

/* ==========================================================================
   POPSCORE – DESIGN DE OUF
   ========================================================================== */
.igdb-popscore-container {
    margin: 0px 0;
}

.igdb-popscore {
    background: #f2f2f2;
    color: #fff;
    border-radius: 20px;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    animation: popIn 0.9s ease-out;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.95) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.popscore-header {
    background: var(--rh24-brand, #e04b43);
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.popscore-header h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: white;
}

.popscore-global {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1;
}

.popscore-global .score {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popscore-global .max {
    font-size: 1.7rem;
    opacity: 0.85;
    font-weight: 500;
}

.popscore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
    padding: 28px;
}

.popscore-item {
    background: var(--rh24-brand, #e04b43);
    padding: 16px 20px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
}

.popscore-item:hover {
    transform: translateY(-6px);
    background: #000;
}

.popscore-item .label {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popscore-item .value {
    font-size: 2.4rem;
    font-weight: 800;
}

/* Couleurs des valeurs */
.popscore-item.positive .value { color: #4ade80; }
.popscore-item.negative .value { color: #f87171; }
.popscore-item.peak .value     { color: #fb923c; }

/* Responsive */
@media (max-width: 768px) {
    .popscore-header { flex-direction: column; text-align: center; }
    .popscore-global { font-size: 3.2rem; }
    .popscore-grid { grid-template-columns: 1fr; padding: 20px; }
    .popscore-item .value { font-size: 2.1rem; }
}
@media (max-width: 480px) {
    .igdb-popscore { border-radius: 16px; }
    .popscore-header { padding: 16px; }
    .popscore-header h3 { font-size: 1.7rem; }
}