/* Identité visuelle Nintendo-Master. */

:root {
    --nm-ink: #1f2433;          /* titres : bleu nuit plutôt que gris */
    --nm-text: #2e3240;
    --nm-muted: #626879;
    --nm-border: #e4e7ee;
    --nm-surface-alt: #f4f6fa;
    --nm-tint: #eaf3f9;         /* survol des listes, bleu très clair */
    --nm-radius: 12px;
    --nm-radius-sm: 8px;
    --nm-control-border: #788493;
    --nm-shadow: 0 1px 2px rgb(31 36 51 / 6%), 0 4px 14px rgb(31 36 51 / 8%);
    --nm-shadow-hover: 0 2px 4px rgb(31 36 51 / 8%), 0 10px 24px rgb(31 36 51 / 14%);
}

body { color: var(--nm-text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--nm-ink); text-wrap: balance; }
.page { box-shadow: 0 4px 28px rgb(20 40 70 / 22%); }

/* En-tête : filet rouge Nintendo en haut, onglet actif souligné. */
.site-header { background: #fff; border-top: 4px solid var(--nm-label); }
.site-nav > ul > li > a, .nav-disclosure > summary, .site-tools .tool { color: var(--nm-ink); font-weight: 500; position: relative; }
.site-nav > ul > li > a::after, .nav-disclosure > summary::after {
    content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; border-radius: 3px;
    background: var(--nm-label); transition: left .15s, right .15s;
}
.site-nav > ul > li > a:is(:hover, :focus-visible)::after, .nav-disclosure:is([open], :focus-within) > summary::after, .nav-disclosure > summary:hover::after { left: 14px; right: 14px; }
.site-nav > ul > li > a:hover { color: var(--nm-ink); text-decoration: none; }
.submenu, .account-menu-list, .context-actions ul { border-radius: var(--nm-radius-sm); box-shadow: var(--nm-shadow-hover); padding: 6px; }
.submenu a, .account-menu-list a, .account-menu-list .link-button, .context-actions a { border-radius: 6px; }
.submenu a:hover, .account-menu-list a:hover, .account-menu-list .link-button:hover, .context-actions a:is(:hover, :focus-visible) { background: var(--nm-tint); color: var(--nm-blue-dark); }

/* Barre bleue : réseaux en pastilles rondes (le libellé reste pour les lecteurs d'écran). */
.subbar { background: linear-gradient(90deg, var(--nm-blue-dark), var(--nm-blue)); }
.social { gap: 6px; align-items: center; padding: 0 12px; }
.social a { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 50%; background: rgb(255 255 255 / 14%); }
.social a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.social .fb, .social .tw, .social .yt, .social .rss { background: rgb(255 255 255 / 14%); }
.social .fb:hover { background: #3b5998; }
.social .tw:hover { background: #14171a; }
.social .yt:hover { background: #e62117; }
.social .rss:hover { background: #b8530a; }
.social .icon { width: 15px; height: 15px; }

/* Cartes de la une : titre sur un dégradé plutôt qu'un bandeau gris plein. */
.card { border: 0; box-shadow: var(--nm-shadow); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--nm-shadow-hover); }
.card .caption {
    background: linear-gradient(to top, rgb(10 14 24 / 96%), rgb(10 14 24 / 82%));
    padding: 34px 18px 12px; font-weight: 600; text-shadow: 0 1px 2px rgb(0 0 0 / 40%);
}
.card .caption b { font-weight: 800; }
.featured .card .caption { background: #1f2433; padding: 10px 14px; text-shadow: none; }
.featured .card:focus-visible { outline: 3px solid #fff; outline-offset: -5px; box-shadow: 0 0 0 2px #1f2433; }
.card .label, .article-cover-wrap .label {
    top: 12px; left: 12px; padding: 3px 10px; border-radius: 6px; font-size: .82rem; font-weight: 600;
    letter-spacing: .01em; box-shadow: 0 2px 8px rgb(0 0 0 / 30%);
}
@media (prefers-reduced-motion: reduce) { .card img, .card { transition: none; } .card:hover img { transform: none; } }

/* Raccourcis de rubriques : boutons de même hauteur, plus discrets. */
.pills { gap: 10px; }
.pills a { padding: 6px 18px; font-weight: 600; font-size: .9rem; box-shadow: 0 1px 3px rgb(0 0 0 / 15%); }

/* Titres de jours : libellé suivi d'un filet. */
.day-title { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; color: var(--nm-ink); }
.day-title::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--nm-label) 0 48px, var(--nm-border) 48px); }

/* Fil des news : plus de lignes zébrées, survol bleuté, vignettes arrondies. */
.news-item img { border-radius: var(--nm-radius-sm); }
.news-item :is(h2, h3, h4) a { color: var(--nm-ink); font-weight: 650; }
.news-item:hover :is(h2, h3, h4) a { color: var(--nm-blue-dark); }
.news-list--feed .news-item:nth-child(even) { background: none; }
.news-list--feed .news-item { border-radius: var(--nm-radius-sm); transition: background .15s; }
.news-list--feed .news-item:hover { background: var(--nm-tint); }
.news-list--feed .news-item + .news-item { border-top: 1px solid var(--nm-border); }
.review-item { border-left: 0; background: linear-gradient(90deg, var(--nm-tint), transparent 70%); }
.news-list--feed .review-item:hover { background: var(--nm-tint); }
.news-excerpt { color: var(--nm-muted); }
.tag { border-radius: 5px; font-weight: 600; }
.bubble { box-shadow: 0 1px 3px rgb(0 0 0 / 20%); }

/* Colonne de droite : encadrés arrondis à en-tête coloré. */
.side-box, .game-card { border: 1px solid var(--nm-border); border-radius: var(--nm-radius); box-shadow: var(--nm-shadow); }
.side-box h2 { font-size: .92rem; letter-spacing: .05em; padding: 9px 12px; }
.side-box--calendar li:nth-child(even) { background: none; }
.side-box--calendar li:hover { background: var(--nm-tint); }
.side-box-more { font-weight: 600; }
.game-card h2 { padding: 9px 12px; font-weight: 600; }
.discord-card { border-radius: var(--nm-radius); box-shadow: var(--nm-shadow); }

/* Article : titre plus affirmé, texte plus aéré. */
.article-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.article-header h1 { flex-basis: 100%; font-size: 2rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .3em; }
.article-header .meta { font-size: .85rem; }
.article-body { font-size: 1.06rem; line-height: 1.75; }
.article-format { margin: 0 0 4px; color: var(--nm-blue-dark); font-size: .9rem; font-weight: 700; }
.article-body .review-test-note { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 12px; row-gap: 4px; text-align: right; color: var(--nm-muted); font-size: .9rem; font-style: italic; }
.review-test-note a { text-decoration: underline; text-underline-offset: 2px; }
.article-body h2 { border-bottom: 0; padding-bottom: 0; font-size: 1.4rem; margin-top: 1.6em; }
.article-body h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 6px; border-radius: 3px; background: var(--nm-label); }
.article-body blockquote { border-left-color: var(--nm-blue); border-radius: 0 var(--nm-radius-sm) var(--nm-radius-sm) 0; background: var(--nm-tint); }
.article-cover { box-shadow: var(--nm-shadow); }
.conclusion, .verdict > div { border-radius: var(--nm-radius); }
.score { border-radius: var(--nm-radius-sm); box-shadow: var(--nm-shadow); }
@media (max-width: 640px) { .article-header h1 { font-size: 1.45rem; } .article-body { font-size: 1.02rem; line-height: 1.7; } }

/* Bouton Partager. */
.share-button {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 14px;
    border: 0; border-radius: var(--nm-radius-sm); background: transparent; color: var(--nm-blue-dark);
    font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.share-button .icon { width: 15px; height: 15px; }
.share-button:hover { background: var(--nm-tint); }

/* Commentaires : citations et bouton Citer. */
.comment { padding: 14px 0; }
.comment-body blockquote { margin: .4em 0 .6em; padding: 6px 12px; border-left: 3px solid var(--nm-blue); background: var(--nm-surface-alt); border-radius: 0 6px 6px 0; color: var(--nm-muted); font-size: .94em; }
.comment-body blockquote p { margin: 0 0 .2em; }
.comment-body blockquote strong { color: var(--nm-ink); }
.form-panel :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), select, textarea),
.comment-form textarea, .report-form :is(select, input:not([type="hidden"]), textarea),
.catalogue-tools :is(input[type="search"], select), .list-sort select {
    border-color: var(--nm-control-border); border-radius: var(--nm-radius-sm); color: var(--nm-ink); background-color: var(--nm-surface);
}
.comment-form textarea:focus, .form-panel input:focus { border-color: var(--nm-blue); }

/* Boutons et formulaires. */
.button { border-radius: var(--nm-radius-sm); font-weight: 600; }
.flash, .form-status { border-radius: var(--nm-radius-sm); }
.form-panel .form-status { margin: 0 0 14px; }
.form-panel > form > .button, .account-settings form > .button { justify-self: start; max-width: 100%; }
.account-settings { max-width: 720px; }
.account-settings .platform-filter { margin-bottom: 12px; }
.account-settings .panel-title { margin-block: 0 4px; }
.account-settings .settings-section { border-top: 1px solid var(--nm-border); padding-block: 16px; }
.account-settings .settings-section > form { max-width: 460px; }
.account-settings .settings-section p { max-width: 60ch; overflow-wrap: anywhere; }
.account-settings .settings-security-actions { display: grid; gap: 8px; margin-top: 12px; }
.account-settings .settings-security-actions > details > summary { width: fit-content; padding-block: 5px; color: var(--nm-blue-dark); cursor: pointer; }
.account-settings .settings-delete { margin-top: 12px; }
.account-settings .settings-delete > summary { width: fit-content; padding-block: 6px; color: var(--nm-red); font-weight: 600; cursor: pointer; }
.pagination a, .pagination span { border-radius: 6px; }
.pagination a:hover { background: var(--nm-tint); text-decoration: none; }

/* Pied de page : bleu nuit. */
.site-footer { background: var(--nm-ink); color: #b9bfcf; }
.site-footer a { color: #e3e7f0; }
.footer-social a { background: rgb(255 255 255 / 8%); }
.footer-note { border-top-color: rgb(255 255 255 / 10%); color: #9aa1b4; }

/* Bandeau d'annonce (Admin › Outils). */
.announce { display: flex; align-items: center; gap: 12px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); color: #fff; font-weight: 600; font-size: .92rem; }
.announce p { flex: 1; min-width: 0; margin: 0; text-align: center; overflow-wrap: anywhere; }
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.announce-info { background: var(--nm-blue-dark); }
.announce-important { background: var(--nm-red); }
.announce-event { background: var(--nm-purple); }
.announce-close { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: rgb(255 255 255 / 15%); color: inherit; cursor: pointer; }
.announce-close:hover { background: rgb(255 255 255 / 28%); }
.announce-close .icon { width: 14px; height: 14px; }

/* Retour en haut. */
.to-top {
    position: fixed; z-index: 50; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--nm-ink); color: #fff; box-shadow: var(--nm-shadow-hover); opacity: .9;
}
.to-top:hover { color: #fff; opacity: 1; background: var(--nm-blue); }
.to-top .icon { width: 18px; height: 18px; }

@media (max-width: 640px), (max-width: 900px) and (max-height: 420px) {
    .to-top {
        position: static;
        margin: 12px auto max(12px, env(safe-area-inset-bottom, 0px));
        scroll-margin-block-end: max(12px, env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 640px) {
    /* site.css sépare déjà les lignes du fil par un filet bas. */
    .news-list--feed .news-item + .news-item { border-top: 0; }
    .day-title { font-size: .95rem; }
    .announce { font-size: .85rem; }
}

/* L'attribut hidden l'emporte sur les display ci-dessus. */
.to-top[hidden], .announce[hidden] { display: none; }

/* Liens au fil d'un article (listes comprises) : soulignés, pas seulement colorés (WCAG 1.4.1). */
.article-body a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }

/* Intertitres de panneaux (Commentaires, Derniers commentaires, sections des formulaires) : plus marqués. */
.panel-title, .form-panel h2 { font-weight: 700; font-size: 1.2rem; }
.form-panel h2 { margin-top: 1.4em; }
.site-footer .footer-grid { grid-template-columns: 220px minmax(0, 1fr) 270px; }
.site-footer ul a { overflow-wrap: anywhere; }
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.pills a { text-transform: uppercase; letter-spacing: .02em; }
.pills .pill-rdv, .pills .pill-news, .pills .pill-rss { text-transform: none; letter-spacing: 0; }
.comment-form .form-note { margin: 0; font-size: .8rem; }

/* Fiche jeu : avis de la rédaction, images. */
.game-verdict { display: flex; gap: 16px; align-items: flex-start; margin: 20px 0; padding: 16px; border-radius: var(--nm-radius); background: var(--nm-surface-alt); border: 1px solid var(--nm-border); }
.game-verdict h2 { font-size: 1.1rem; margin-bottom: .3em; }
.game-verdict p:not(.score) { margin: 0 0 10px; }
.game-verdict .button { margin-top: 0; }
.game-thumbs { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.game-thumbs a { display: block; border-radius: var(--nm-radius-sm); }
.game-thumbs img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--nm-radius-sm); }
.game-verdict--link { align-items: center; gap: .75rem; color: var(--nm-ink); }
.game-verdict--link strong { min-width: 0; overflow-wrap: anywhere; }
.game-verdict--link .score { flex: none; min-width: 0; padding: .6rem; font-size: 1.05rem; white-space: nowrap; }
.game-verdict--link .icon { margin-inline-start: auto; color: var(--nm-blue); }
.game-verdict--link:hover { background: var(--nm-tint); }
@media (max-width: 640px) { .game-verdict:not(.game-verdict--link) { flex-direction: column; } }
.comment-date { color: inherit; } .comment-date:hover { text-decoration: underline; }
.comment-member-activity > span, .comment-published { display: inline-block; }
.latest-comments .comment-subject { display: block; }

/* Actions secondaires des commentaires, avis et messages. */
.context-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px; }
.context-heading > .meta { align-self: center; margin-block: 0; overflow-wrap: anywhere; }
.context-actions { position: relative; }
.context-actions summary { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; list-style: none; border-radius: 50%; color: var(--nm-muted); cursor: pointer; }
.context-actions summary::-webkit-details-marker { display: none; }
.context-actions summary span { font-size: 1.35rem; line-height: 1; }
.context-actions summary:hover, .context-actions[open] summary { background: var(--nm-tint); color: var(--nm-ink); }
.context-actions ul { position: absolute; z-index: 5; inset-block-start: calc(100% + 3px); inset-inline-end: 0; min-width: 9rem; list-style: none; margin: 0; border: 1px solid var(--nm-border); background: var(--nm-surface); }
.context-actions a { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 4px 9px; color: var(--nm-ink); font-size: .88rem; }
.context-actions a:is(:hover, :focus-visible) { text-decoration: none; }
.context-actions .icon { width: 16px; height: 16px; flex: none; color: var(--nm-muted); }
.context-panel { scroll-margin-top: 12px; }
.context-panel:not([data-open]):not(:target) { display: none; }
.comment:has(.comment-editor:is([data-open], :target)) .comment-body { display: none; }
.comment-editor { margin-block: 4px 8px; }
.context-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 12px; margin-top: 4px; }
.context-form-actions > a { display: inline-grid; place-items: center; min-height: 34px; font-size: .88rem; }
.context-form-actions .button { margin: 0; white-space: normal; }
.context-form-actions .context-danger { background: var(--nm-red); }
.context-form-actions .context-danger:hover { background: #991b1b; }
.report-form { display: grid; gap: 5px; max-width: 400px; margin-block: 6px; padding: 10px; border: 1px solid var(--nm-border); border-radius: var(--nm-radius-sm); background: var(--nm-surface-alt); font-size: .88rem; }
.report-form :is(select, input:not([type="hidden"]), textarea) { width: 100%; min-height: 36px; font: inherit; padding: 5px 8px; border: 1px solid var(--nm-control-border); color: var(--nm-ink); background: var(--nm-surface); border-radius: var(--nm-radius-sm); }
.report-form textarea { resize: vertical; }
.report-form .form-note { margin: 0; }

.block-list { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; margin-bottom: 10px; }

/* Calendrier des sorties : intertitres par période, lignes jaquette + nom + console + date. */
.release-heading { margin: 24px 0 8px; font-size: 1.05rem; color: var(--nm-text); border-bottom: 2px solid var(--nm-red); padding-bottom: 4px; }
.release-list { list-style: none; margin: 0; padding: 0; }
.release-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) fit-content(37%); grid-template-areas: "img name date" "img tag score"; column-gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--nm-border); }
.release-list img { grid-area: img; width: 48px; height: 60px; object-fit: cover; border-radius: 3px; }
.release-list li > div { min-width: 0; overflow-wrap: anywhere; }
.release-list a { grid-area: name; font-weight: 600; }
.release-list .tag { grid-area: tag; justify-self: start; white-space: normal; overflow-wrap: anywhere; }
.release-list time, .release-list .release-vague { grid-area: date; color: var(--nm-muted); font-size: .9rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.release-list .score { grid-area: score; justify-self: end; margin: 0; }
@media (max-width: 640px) {
    .release-list li { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "img name" "img tag" "img date" "img score"; row-gap: 3px; }
    .release-list .follow-form { justify-self: start; }
}

/* Catalogue des jeux : recherche par nom, tri, testés seulement. */
.catalogue-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 12px 0 16px; }
.catalogue-tools > div { display: flex; flex-direction: column; gap: 4px; }
.catalogue-tools label { font-size: .85rem; font-weight: 600; }
.catalogue-tools .checkbox { font-weight: normal; padding-bottom: 6px; }
.catalogue-tools input[type="search"], .catalogue-tools select { font: inherit; padding: 6px 8px; border: 1px solid var(--nm-control-border); border-radius: var(--nm-radius-sm); background: var(--nm-surface); }
.catalogue-tools input[type="search"] { width: 14rem; max-width: 100%; }

/* Page de test : note rappelée sous le titre, versions d'un même test, autres tests. */
.meta .score--top { margin: 0 4px 0 0; padding: 2px 8px; font-size: .85rem; text-decoration: none; vertical-align: middle; color: #fff; }
.meta .score--top:hover { color: #fff; filter: brightness(1.08); }
.review-versions { margin-top: 20px; font-size: .95rem; }
.review-versions h2 { font-size: 1rem; }
.review-versions ul { margin: 6px 0 0; padding-left: 20px; }
.other-tests .game-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.other-tests--sidebar .game-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .other-tests .game-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Menu sur petit écran : icône au-dessus du libellé, les six entrées tiennent sans défilement. */
@media (max-width: 480px) {
    .site-nav > ul > li > a, .nav-disclosure > summary { flex-direction: column; gap: 2px; padding: 7px 3px 6px; font-size: .74rem; line-height: 1.1; }
    .site-nav > ul > li > a::after, .nav-disclosure > summary::after { display: none; }
    .site-nav .icon { width: 18px; height: 18px; }
    .site-nav .caret { width: 8px; height: 8px; }
}

/* Soutien (Tipeee…) en bas des articles. */
.support-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--nm-border); border-radius: var(--nm-radius); background: var(--nm-tint); }
.support-box p { margin: 0; flex: 1 1 22rem; font-size: .95rem; }

/* Derniers commentaires : encadré de l'accueil et page /commentaires. */
.side-box--comments h2 { background: var(--nm-ink, #2b2f3a); }
.side-box--comments li { padding: 7px 12px; border-bottom: 1px solid var(--nm-border); }
.side-box--comments li a { display: block; font-size: .88rem; line-height: 1.3; }
.side-box--comments li .comment-member-activity,
.side-box--comments li .side-comment-excerpt { display: block; margin-top: 2px; font-size: .8rem; color: var(--nm-muted); overflow-wrap: anywhere; }
.latest-comments { list-style: none; margin: 0; padding: 0; }
.latest-comments li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--nm-border); }
.latest-comments .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.latest-comments p { margin: 0; overflow-wrap: anywhere; }
.latest-comments .meta { margin-bottom: 4px; }

/* Inscription : le règlement en bref, au-dessus de la case à cocher. */
.rules-summary { margin: 16px 0 8px; padding: 12px 14px; border-left: 4px solid var(--nm-blue); background: var(--nm-tint); border-radius: 0 var(--nm-radius-sm) var(--nm-radius-sm) 0; font-size: .92rem; }
.rules-summary p { margin: 0 0 6px; }
.rules-summary ul { margin: 0; padding-left: 1.2em; }
.release-list .follow-form { grid-area: score; justify-self: end; margin: 0; }
.release-list .follow-button { padding: 2px 10px; font-size: .8rem; }
.other-versions .tag { margin: 0 4px 4px 0; text-decoration: none; }

/* Sondage dans une news. */
.news-poll { margin: 24px 0 0; border: 1px solid var(--nm-border); border-radius: var(--nm-radius); overflow: hidden; }
.news-poll h2 { display: flex; align-items: center; gap: 6px; margin: 0; padding: 9px 12px; background: #23883b; color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; }
.news-poll form { display: grid; gap: 6px; padding: 0 12px 12px; }
.news-poll .button { justify-self: start; margin-top: 6px; background: #23883b; }
.news-poll .poll-results { list-style: none; margin: 0; padding: 0 0 6px; }
.news-poll .poll-total { margin: 0 12px 12px; font-size: .85rem; color: var(--nm-muted); }

/* Points de la une (mobile seulement, quand elle défile au doigt). */
.featured-dots { display: none; }
@media (max-width: 640px), (max-height: 480px) and (max-width: 900px) {
    .featured-dots { display: flex; justify-content: center; gap: 8px; margin: 8px 0 0; }
    .featured-dots button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; }
    .featured-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nm-muted); }
    .featured-dots button[aria-current]::before { width: 22px; border-radius: 4px; background: var(--nm-red); }
}
@media (prefers-reduced-motion: reduce) { .featured-dots button { transition: none; } }

/* Avis des joueurs. */
.rating-list { list-style: none; margin: 0 0 12px; padding: 0; }
.rating-list > li { padding: 10px 0; border-bottom: 1px solid var(--nm-border); }
.rating-list p { margin: 0 0 4px; overflow-wrap: anywhere; }
.rating-list--wide > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.rating-list--wide img { width: 64px; height: 80px; object-fit: cover; border-radius: 3px; }
.rating-opinions { border-top: 1px solid var(--nm-border); padding: 10px 14px; }
.rating-opinions h2 { margin: 0; font-size: .95rem; }
.rating-opinions > .meta { margin: 0; }
.rating-opinions .rating-list { margin-bottom: 0; }
.rating-opinions .rating-list > li:last-child { border-bottom: 0; }
.game-discussion-archive { margin: 10px 16px 20px; }
.game-discussion-archive > summary { width: fit-content; cursor: pointer; padding-block: 8px; color: var(--nm-blue-dark); font-size: .9rem; }
.staff-moderation-notice { border-inline-start: 3px solid var(--nm-blue); background: var(--nm-tint); padding: 8px 12px; margin: 0 0 12px; font-size: .88rem; }
.work-review-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 14px; font-size: .9rem; font-weight: 650; }
.work-review-links a { padding-block: 4px; }
.rating-form summary { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; list-style: none; cursor: pointer; color: var(--nm-blue); font-weight: 650; }
.rating-form summary::-webkit-details-marker { display: none; }
.rating-form form { display: grid; gap: 10px; margin-top: 12px; }
.rating-form fieldset { border: 0; margin: 0; padding: 0; }
.rating-form legend { font-weight: 600; margin-bottom: 6px; }
.rating-form .button { justify-self: start; }
.side-box--ratings h2 { background: #806000; }
.side-box--ratings li { padding: 7px 12px; border-bottom: 1px solid var(--nm-border); }
.side-box--ratings li a { display: block; font-size: .88rem; line-height: 1.3; }
.side-box--ratings li span { display: block; margin-top: 2px; font-size: .8rem; color: var(--nm-muted); overflow-wrap: anywhere; }

/* Profil public et aperçu de l’avatar dans l’éditeur. */
.member-profile, .profile-editor { max-width: 1080px; margin-inline: auto; overflow-wrap: anywhere; }
.member-profile { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.member-profile-header { --profile-inset: clamp(14px, 2.5vw, 28px); min-width: 0; border: 1px solid var(--nm-border); border-radius: var(--nm-radius); }
.member-profile-cover {
    position: relative; isolation: isolate; height: clamp(68px, 9vw, 122px); border-radius: calc(var(--nm-radius) - 1px) calc(var(--nm-radius) - 1px) 0 0;
    background: linear-gradient(116deg, var(--profile-cover-base, #17263d) 0 57%, var(--profile-cover-mid, #1b567a) 57% 80%, var(--profile-cover-accent, var(--nm-label)) 80%);
}
.member-profile-cover[data-banner-theme="theme-foret"] { --profile-cover-base: #203d36; --profile-cover-mid: #3e7751; --profile-cover-accent: #a0b75c; }
.member-profile-cover[data-banner-theme="theme-ocean"] { --profile-cover-base: #123956; --profile-cover-mid: #177a91; --profile-cover-accent: #59c5b9; }
.member-profile-cover[data-banner-theme="theme-crepuscule"] { --profile-cover-base: #303052; --profile-cover-mid: #744d7e; --profile-cover-accent: #e1846b; }
.member-profile-cover::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(circle, rgb(255 255 255 / 22%) 1px, transparent 1.3px) right top / 12px 12px;
    mask-image: linear-gradient(to right, transparent 50%, #000 93%);
}
.member-profile-identity {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; padding: 12px var(--profile-inset);
}
.member-profile-avatar {
    display: grid; place-items: center; position: relative; inline-size: clamp(66px, 9vw, 96px); aspect-ratio: 1; margin-top: -37px;
    overflow: hidden; border: 4px solid var(--nm-surface); border-radius: 19%; background: var(--nm-tint); box-shadow: 0 2px 8px rgb(31 36 51 / 16%);
}
.member-profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-profile-avatar [data-avatar-initial] { color: var(--nm-blue-dark); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 750; }
.member-profile-avatar [data-avatar-initial]:not([hidden]) + img { display: none; }
.member-profile-name h1, .profile-editor-heading h1 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.16; text-wrap: initial; }
.member-profile-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 5px; font-size: .9rem; }
.member-profile-meta .tag { margin: 0; }
.member-profile-edit {
    display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--nm-control-border);
    border-radius: var(--nm-radius-sm); color: var(--nm-blue-dark); font-size: .875rem; font-weight: 650; justify-self: start;
}
.member-profile-edit:hover { background: var(--nm-tint); text-decoration: none; }
.member-profile-tabs { display: flex; flex-wrap: wrap; gap: 0 4px; padding-inline: var(--profile-inset); border-top: 1px solid var(--nm-border); }
.member-profile-tabs a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 7px 10px; border-bottom: 3px solid transparent;
    color: var(--nm-muted); font-size: .9rem; font-weight: 600;
}
.member-profile-tabs a:is(:hover, [aria-current]) { color: var(--nm-blue-dark); background: var(--nm-tint); text-decoration: none; }
.member-profile-tabs a[aria-current] { border-bottom-color: var(--nm-blue-dark); }
.member-profile-tabs a:focus-visible { outline-offset: -3px; }
.member-profile-overview, .member-profile-activity { display: grid; gap: clamp(16px, 2.5vw, 26px); min-width: 0; }
.member-profile-about {
    align-self: start; padding: clamp(14px, 2vw, 22px); border: 1px solid var(--nm-border); background: var(--nm-surface-alt); border-radius: var(--nm-radius);
}
.member-profile h2, .profile-editor h2 { margin: 0; font-size: 1.16rem; line-height: 1.3; text-wrap: initial; }
.member-profile-bio { white-space: pre-line; max-width: 66ch; }
.member-profile-about :is(.member-profile-bio, .member-profile-motto) { margin: 8px 0 0; }
.member-profile-motto { color: var(--nm-blue-dark); font-weight: 650; }
.member-profile-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; padding: 0; list-style: none; color: var(--nm-muted); font-size: .875rem; }
.member-profile-stats strong { color: var(--nm-ink); font-variant-numeric: tabular-nums; }
.member-profile-about .member-profile-stats { padding-top: 9px; border-top: 1px solid var(--nm-border); }
.member-profile-section { min-width: 0; padding-top: 12px; border-top: 1px solid var(--nm-border); }
.member-profile-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; }
.member-profile-section-head a { display: inline-flex; align-items: center; gap: .4em; min-height: 36px; text-underline-offset: 3px; font-size: .9rem; }
.member-profile-section > :is(.game-grid, .rating-list, .platform-filter, .archive-table) { margin-top: 12px; }
.member-profile-section .platform-filter { flex-wrap: wrap; overflow: visible; }
.member-profile-section > .member-profile-showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.member-profile .game-grid img { border-radius: var(--nm-radius-sm); }
.member-profile .rating-list > li:last-child { border-bottom: 0; }
.member-profile .rating-list--wide img { border-radius: var(--nm-radius-sm); }
.profile-comments { margin: 8px 0 0; padding: 0; list-style: none; }
.profile-comments li { padding: 12px 0; border-bottom: 1px solid var(--nm-border); }
.profile-comments li:last-child { border-bottom: 0; }
.profile-comments a { font-weight: 650; }
.profile-comments time { display: block; margin-top: 2px; }
.profile-comments p { margin: 4px 0 0; }
.member-profile > .empty-box { margin: 0; }
.profile-editor { max-width: 960px; }
.profile-editor-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 20px; }
.profile-editor-heading p { margin: 6px 0 0; }
.profile-editor-form { max-width: none; }
.profile-editor-fields { display: grid; gap: clamp(16px, 3vw, 32px); }
.profile-editor-picture, .profile-editor-intro { min-width: 0; border-top: 1px solid var(--nm-border); padding-top: 14px; }
.profile-editor-swatch { padding-bottom: 10px; margin-top: 12px; border: 1px solid var(--nm-border); border-radius: var(--nm-radius); background: var(--nm-surface-alt); }
.profile-editor-swatch .member-profile-cover { height: 62px; }
.profile-editor-swatch .member-profile-avatar, .profile-editor-swatch strong { margin-inline: 12px; }
.profile-editor-swatch .member-profile-avatar { inline-size: 72px; margin-top: -33px; }
.profile-editor-swatch strong { display: block; margin-top: 5px; }
.profile-banner-picker { min-width: 0; border: 0; margin: 14px 0 0; padding: 0; }
.profile-banner-picker legend { padding: 0; font-weight: 700; }
.profile-banner-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 6px 0; }
.profile-editor-form .profile-banner-choices label { display: block; min-width: 0; margin: 0; }
.profile-banner-option {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 6px; min-height: 44px;
    padding: 5px 7px; border: 1px solid var(--nm-control-border); border-radius: var(--nm-radius-sm); color: var(--nm-ink);
    background: var(--nm-surface); cursor: pointer; font-size: .875rem; line-height: 1.2;
}
.profile-banner-option .member-profile-cover { grid-column: 1 / -1; height: 12px; border-radius: 3px; }
.profile-banner-option::after { content: ""; width: 11px; height: 11px; border: 1px solid var(--nm-control-border); border-radius: 50%; }
.profile-banner-option:hover, .profile-banner-choices input:checked + .profile-banner-option { background: var(--nm-tint); }
.profile-banner-choices input:checked + .profile-banner-option { border-color: var(--nm-blue-dark); box-shadow: inset 0 0 0 1px var(--nm-blue-dark); }
.profile-banner-choices input:checked + .profile-banner-option::after { border: 3px solid var(--nm-blue-dark); }
.profile-banner-choices input:focus-visible + .profile-banner-option { outline: 2px solid var(--nm-blue-dark); outline-offset: 2px; }
.profile-editor-form label { display: block; margin-top: 12px; }
.profile-editor-form .meta { margin: 4px 0; }
.profile-editor-form :is(input:not([type="radio"]), textarea) { width: 100%; max-width: 100%; }
.profile-editor-form :is(input[type="text"], textarea) { min-height: 44px; margin-top: 5px; padding: 10px; font: inherit; }
.profile-editor-form textarea { resize: vertical; }
.profile-editor-form input[type="file"] { margin-top: 4px; }
.profile-editor-form input[type="file"]::file-selector-button { min-height: 44px; padding-inline: 10px; border-color: var(--nm-control-border); color: var(--nm-blue-dark); }
.profile-editor-form input[type="file"]:focus-visible { outline: 2px solid var(--nm-blue); outline-offset: 2px; }
.profile-editor-form .profile-avatar-status:empty { margin: 0; }
.profile-avatar-reset { min-height: 44px; text-align: start; text-decoration: underline; text-underline-offset: 3px; }
.profile-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; padding-block: 12px; border-top: 1px solid var(--nm-border); }
.profile-editor-actions .button { min-height: 44px; margin: 0; }
.profile-editor-actions > a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 820px) {
    .member-profile-overview--split { grid-template-columns: minmax(220px, 1fr) minmax(0, 2.5fr); }
    .profile-editor-fields { grid-template-columns: minmax(235px, 1fr) minmax(0, 2fr); }
}
@media (max-width: 640px) {
    .member-profile-identity { grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; }
    .member-profile-identity .member-profile-edit { grid-column: 2; }
    .member-profile-tabs { padding-inline: 6px; }
    .member-profile-tabs a { padding-inline: 8px; }
    .member-profile-section > .member-profile-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.collection-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.collection-buttons .follow-form { margin: 0; }
.players-score { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--nm-border); font-size: .92rem; }

/* Page Vidéos : vignettes 16/9 avec un bouton lecture. */
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.video-grid a { display: block; color: var(--nm-ink); }
.video-grid a:hover { text-decoration: none; color: var(--nm-blue); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--nm-radius); background: #111; margin-bottom: 8px; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 54px; height: 38px; transform: translate(-50%, -50%); border-radius: 10px; background: rgb(227 27 27 / 92%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 24px no-repeat; }
.video-grid strong { display: block; font-size: .95rem; line-height: 1.3; }

/* ===== Page de test (refonte) ===== */
.reading-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: var(--nm-label); }

.review-page { overflow: hidden; }
.review-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 20px; padding: 26px 24px 20px; border-radius: var(--nm-radius); background: linear-gradient(135deg, var(--nm-tint), #fff); }
/* Avec visuel : l'image en haut (souvent avec le logo du jeu), le titre dessous, la note à cheval. */
.review-hero--cover { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 0; background: #fff; border: 1px solid var(--nm-border); overflow: hidden; }
.review-hero-image { grid-column: 1 / -1; display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; }
.review-hero--cover .review-hero-content { padding: 16px 20px 18px; }
.review-hero--cover .review-hero-score { align-self: start; margin: -52px 20px 0 0; }
.review-hero--cover .score-ring { filter: drop-shadow(0 4px 12px rgb(0 0 0 / 25%)); }
@media (max-width: 640px) {
    .review-hero--cover { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .review-hero--cover .review-hero-image { grid-row: 1; }
    .review-hero--cover .review-hero-score {
        grid-area: 1 / 1; align-self: end; justify-self: end; margin: 0 12px 10px;
    }
}
.review-hero-content, .review-hero-score { position: relative; }
.review-hero-content { min-width: 0; }
.review-hero h1 { margin: 6px 0 12px; font-size: 2.1rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.review-kicker { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.review-byline { display: flex; align-items: center; gap: 10px; font-size: .88rem; line-height: 1.35; color: var(--nm-muted); }
.review-byline .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.review-hero-score { flex: none; text-decoration: none; }
.review-hero-score:hover { text-decoration: none; }

/* Anneau de note. */
.score-ring { position: relative; display: inline-grid; place-items: center; flex: none; --ring: #2e7d32; }
.score-ring--mid { --ring: #e09a2f; }
.score-ring--low { --ring: #c9302c; }
.score-ring svg { width: 100%; height: 100%; }
.score-ring-track { fill: #fff; stroke: #e7eaf0; stroke-width: 10; }
.score-ring-value { fill: none; stroke: var(--ring); stroke-width: 10; stroke-linecap: round; }
.score-ring-text { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 0; color: var(--nm-ink); font-variant-numeric: tabular-nums; }
.score-ring-text b { font-weight: 800; line-height: 1; }
.score-ring-text small { color: var(--nm-muted); font-weight: 600; }
.score-ring-text--word { flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.score-ring--lg { width: 104px; height: 104px; }
.score-ring--lg .score-ring-text b { font-size: 2rem; }
.score-ring--lg .score-ring-text small { font-size: .75rem; margin-top: 2px; }
.score-ring--lg .score-ring-text--word b { font-size: .8rem; max-width: 76px; line-height: 1.1; text-wrap: balance; }
.score-ring--md { width: 76px; height: 76px; }
.score-ring--md .score-ring-text b { font-size: 1.3rem; }
.score-ring--md .score-ring-text small { font-size: .62rem; margin-top: 1px; }
.score-ring--md .score-ring-text--word b { font-size: .66rem; max-width: 56px; line-height: 1.1; text-wrap: balance; }

/* En bref. */
.review-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 22px; align-items: start; margin: 0 0 24px; padding: 18px; border: 1px solid var(--nm-border); border-radius: var(--nm-radius); background: #fbfcfe; }
.review-summary-verdict { display: flex; align-items: center; gap: 12px; min-width: 11rem; }
.review-summary--screen .review-summary-verdict { min-width: 0; }
.review-summary-verdict p { margin: 0 0 2px; }
.review-verdict-word { font-size: 1.15rem; font-weight: 800; color: var(--nm-ink); }
.review-summary-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.review-summary-points--full { grid-column: 1 / -1; }
.review-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding-top: 12px; border-top: 1px solid var(--nm-border); font-size: .88rem; }
.review-facts dt { color: var(--nm-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.review-facts dd { margin: 0; font-weight: 600; }
.review-toc { grid-column: 1 / -1; font-size: .92rem; }
.review-toc summary { cursor: pointer; font-weight: 700; color: var(--nm-blue); }
.review-toc ol { margin: 8px 0 0; padding-left: 1.4em; columns: 2 16rem; column-gap: 24px; }
.review-toc li { margin-bottom: 4px; break-inside: avoid; }
.review-reading-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: .88rem; }
.review-reading-actions > a { padding-block: 6px; }

/* Points forts et faibles (encadré et verdict). */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .93rem; line-height: 1.4; }
.points li { position: relative; padding-left: 26px; }
.points li::before { position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: .72rem; font-weight: 800; }
.points--pros li::before { content: "+"; background: #2e7d32; }
.points--cons li::before { content: "−"; background: #c9302c; }

/* Corps de l'article : chapeau, largeur de lecture, sommaire sous l'en-tête collant. */
.review-page .article-body { max-width: 72ch; }
.article-body .lead { font-size: 1.14rem; line-height: 1.7; font-weight: 500; color: var(--nm-ink); padding-left: 14px; border-left: 4px solid var(--nm-label); }
.article-body h2[id] { scroll-margin-top: 8px; }

/* Verdict complet. */
.review-verdict { margin: 32px 0 20px; padding: 22px; border-radius: var(--nm-radius); background: linear-gradient(160deg, #fff, var(--nm-tint)); border: 1px solid var(--nm-border); box-shadow: var(--nm-shadow); scroll-margin-top: 8px; }
.review-verdict-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.review-verdict-head h2 { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--nm-muted); }
.review-verdict-head .review-verdict-word { margin: 2px 0 0; font-size: 1.6rem; }
.review-verdict-text p { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.7; }
.review-verdict-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.review-verdict-points h3 { margin: 0 0 8px; font-size: .95rem; }

/* Carte de l'auteur. */
.author-card { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; padding: 14px 16px; border-radius: var(--nm-radius); background: var(--nm-surface-alt); }
.author-card .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-card p { margin: 0; }

@media (max-width: 640px) {
    .review-hero { padding: 18px 16px 14px; }
    .review-hero h1 { font-size: 1.5rem; }
    .review-hero--cover .review-hero-content { padding: 12px 14px 14px; }
    .review-hero:not(.review-hero--cover) { flex-wrap: wrap; gap: 12px; }
    .review-hero:not(.review-hero--cover) .review-hero-content { flex-basis: 100%; }
    .review-hero-score .score-ring--lg { width: 76px; height: 76px; }
    .review-hero-score .score-ring--lg .score-ring-text b { font-size: 1.4rem; }
    .review-summary { grid-template-columns: 1fr; padding: 14px; }
    .review-summary-points, .review-verdict-points { grid-template-columns: 1fr; }
    .review-verdict { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .reading-progress { display: none; } }

/* Visionneuse d'images des articles. */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox[open] {
    position: fixed; inset: 0; margin: auto; display: flex; flex-direction: column;
    width: max-content; max-width: min(1400px, 94vw); max-height: calc(100dvh - 16px); overflow: hidden;
}
.lightbox::backdrop { background: rgb(8 10 16 / 88%); }
.lightbox-media { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.lightbox-media img { margin-inline: auto; }
.lightbox-caption { margin: 8px 0 0; padding: 8px 10px; max-width: 54ch; background: #202431; color: #fff; overflow-wrap: anywhere; }
.lightbox-media:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
/* Réserver la hauteur des commandes et une marge même à fort zoom. */
.lightbox img { display: block; max-width: min(1400px, 94vw); max-height: min(86vh, max(0px, calc(100dvh - 66px))); width: auto; height: auto; border-radius: 6px; }
.lightbox-bar { display: flex; flex: none; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: #fff; font-size: .9rem; }
.lightbox button { min-width: 44px; min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 15%); color: #fff; font: inherit; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgb(255 255 255 / 28%); }

/* Accueil : blocs pleine largeur de la colonne, plus lus, lettre d'information. */
.side-boxes .side-box--wide, .side-boxes .discord-card { grid-column: 1 / -1; }
.side-boxes .discord-card { margin-top: 0; }
.side-box--popular h2 { background: #c2410c; }
.side-box--popular ol { margin: 0; padding: 6px 12px 10px 34px; }
.side-box--popular li { padding: 5px 0; font-size: .88rem; line-height: 1.3; border-bottom: 1px solid var(--nm-border); }
.side-box--popular li:last-child { border-bottom: 0; }
.side-box--popular li::marker { font-weight: 800; color: var(--nm-label); }
.side-box--newsletter h2 { background: var(--nm-label); }
.side-box-body { padding: 10px 12px 12px; }
.newsletter-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid #8a90a0; border-radius: 6px; font: inherit; }
.newsletter-form .meta { margin: 6px 0 0; font-size: .78rem; }

/* Bons plans. */
.deal-grid { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.deal-card { padding: 14px; border: 1px solid var(--nm-border); border-radius: var(--nm-radius); background: #fff; box-shadow: var(--nm-shadow); }
.deal-card img { object-fit: contain; border-radius: 6px; background: var(--nm-surface-alt); }
.deal-card h2 { margin: 2px 0 6px; font-size: 1rem; line-height: 1.3; }
.deal-card p { margin: 0 0 4px; }
.deal-grid--featured { grid-template-columns: minmax(0, 1fr); }
.deal-card--featured { border-inline-start: 4px solid #9b650e; background: linear-gradient(120deg, #fff6e5, var(--nm-surface) 75%); }
.deal-card--featured h2 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.deal-featured-tag { display: inline-block; width: fit-content; margin-bottom: 4px; background: #f5e3bd; color: #533600; }
.deal-off { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #2e7d32; color: #fff; font-size: .8rem; font-weight: 700; }
.deals-expired { margin-top: 16px; color: var(--nm-muted); }
.side-box--deals h2 { background: #2e7d32; }
.side-box--deals li { padding: 7px 12px; border-bottom: 1px solid var(--nm-border); }
.side-box--deals li a { display: block; font-size: .88rem; line-height: 1.3; font-weight: 600; }
.side-box--deals li span { display: block; margin-top: 2px; font-size: .8rem; color: var(--nm-muted); }

/* Séries. */
.series-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.series-grid a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--nm-border); border-radius: var(--nm-radius); background: #fff; box-shadow: var(--nm-shadow); }
.series-grid a:hover { text-decoration: none; border-color: var(--nm-label); }
.series-grid span { font-size: .85rem; color: var(--nm-muted); }
.series-header img { width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: var(--nm-radius); margin-bottom: 12px; }
.series-header .lead { font-size: 1.08rem; max-width: 72ch; }
.author-header { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 12px; }
.author-header .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.author-header h1 { margin: 0 0 4px; }
@media (max-width: 640px) { .author-header { flex-direction: column; } }

/* Direct commenté. */
.live-feed { margin: 16px 0 24px; padding: 16px 18px; border: 2px solid var(--nm-label); border-radius: var(--nm-radius); background: #fff; }
.live-feed h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.2rem; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--nm-label); color: #fff; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live-pulse 1.4s infinite; }
@keyframes live-pulse { 50% { opacity: .25; } }
.live-entries { list-style: none; margin: 10px 0 0; padding: 0; }
.live-entries li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--nm-border); }
.live-entries time { font-weight: 800; color: var(--nm-label); font-variant-numeric: tabular-nums; }
.live-entries li > div > :first-child { margin-top: 0; }
.live-entries li > div > :last-child { margin-bottom: 0; }
.live-entries .is-important { background: #fff7e6; margin: 0 -18px; padding: 10px 18px; }
.live-entries .is-important time { color: var(--nm-ink); }
.live-entries .is-new { animation: live-new 2s ease-out; }
@keyframes live-new { from { background: #fff0c2; } }
@media (prefers-reduced-motion: reduce) { .live-badge::before, .live-entries .is-new { animation: none; } }

/* ===== Audit esthétique du 30/10 ===== */
/* Vignette YouTube : remplit le cadre (la règle générale des images du texte la déformait). */
.article-body .embed-facade img { height: 100%; }
/* Anneau « Attente » d'une preview en mobile : le mot tient dans le cercle. */
@media (max-width: 640px) { .review-hero-score .score-ring--lg .score-ring-text--word b { font-size: .62rem; max-width: 56px; } }
/* Couverture ancienne trop petite : centrée à sa taille, sur un fond neutre, plutôt qu'étirée. */
.article-cover--small { width: auto; max-width: 100%; margin: 12px auto; display: block; box-shadow: none; }
.article-cover-wrap:has(.article-cover--small) { background: var(--nm-surface-alt); border-radius: var(--nm-radius); padding: 12px; }
/* Annuaire et équipe : cartes alignées en haut, avatars sur fond neutre (PNG transparents). */
.member-grid li { align-content: start; }
.member-grid img, .team img { background: var(--nm-surface-alt); }
/* Séries : cartes de même hauteur. */
.series-grid a { height: 100%; }
.series-grid img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
/* Sondage : boutons radio de taille constante même sur deux lignes. */
.poll-option { align-items: flex-start; }
.poll-option input { flex: none; margin-top: 2px; }
/* Archives des sondages : barre sous le libellé, colonne de lecture limitée, gagnant en gras. */
.poll ul { max-width: 640px; }
.poll li { grid-template-columns: minmax(0, 1fr) 3rem; grid-template-areas: "label pct" "bar bar"; row-gap: 4px; }
.poll li > :first-child { grid-area: label; }
.poll li .poll-bar { grid-area: bar; }
.poll li > :last-child { grid-area: pct; text-align: right; font-variant-numeric: tabular-nums; }
.poll li.is-winner > :first-child { font-weight: 700; }
/* Listes : largeur de lecture sur grand écran (titres et pastilles pas à 900 px l'un de l'autre). */
.panel > .news-list, .panel > .latest-comments, .panel > .rating-list--wide, .panel > .release-list { max-width: 920px; }
/* Filtres et raccourcis : le défilement horizontal conserve une barre visible. */
@media (max-width: 640px) {
    .catalogue-tools > div, .catalogue-tools input[type="search"] { width: 100%; }
    .pills, .letter-filter, .platform-filter { scrollbar-width: thin; }
    .pills::-webkit-scrollbar, .letter-filter::-webkit-scrollbar, .platform-filter::-webkit-scrollbar { display: block; height: 5px; }
    .letter-filter a { min-width: 34px; min-height: 34px; display: inline-grid; place-items: center; }
}
/* Colonne de l'accueil : chaque encadré garde sa couleur (repère visuel des habitués).
   Bons plans en vert foncé pour ne pas se confondre avec le vert du sondage. */
.side-box--deals h2 { background: #1b6b3a; }
/* Vignettes du catalogue : console, année et note sur une ligne. */
.game-grid .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
/* Liens des pages légales soulignés partout (listes comprises). */
.legal a, .page-content a { text-decoration: underline; text-underline-offset: 2px; }
/* Pages courtes : le pied de page reste en bas. */
.site-main { min-height: 55vh; }
/* États vides : un encadré clair avec des pistes. */
.empty-box { display: grid; align-items: start; gap: 12px; margin-block: 12px; padding: 14px 16px; background: var(--nm-surface-alt); border-radius: var(--nm-radius-sm); overflow-wrap: anywhere; }
.empty-box--with-icon { grid-template-columns: 36px minmax(0, 1fr); }
.empty-box > .icon { width: 22px; height: 22px; margin: 5px; color: var(--nm-blue-dark); }
.empty-box p { margin: 0; }
.empty-box .empty-detail { color: var(--nm-muted); margin-top: 4px; }
.empty-links { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 16px; list-style: none; margin: 4px 0 0; padding: 0; }
.empty-links a { display: inline-block; padding-block: 5px; font-size: .9rem; text-decoration: underline; text-underline-offset: 2px; }
.search-results-title { margin-top: 16px; }
.empty-links li:first-child a { font-weight: 600; }
.empty-links li:not(:first-child) a { color: var(--nm-muted); }
.empty-box--inline { padding: 8px 0; background: none; color: var(--nm-muted); font-size: .9rem; }
.empty-box--inline strong { font-weight: 500; }
.contact-box { margin: 8px 0 20px; padding: 14px 16px; border-radius: var(--nm-radius); background: var(--nm-tint); }
.contact-box p { margin: 0 0 4px; }
/* Grilles de jaquettes compactes (recherche, collection, séries) : plus serrées que le catalogue. */
.game-grid--compact { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.search-games strong { overflow-wrap: anywhere; }
.site-footer .link-button { color: #fff; text-decoration: underline; font: inherit; }
.site-footer .push-toggle { min-height: 24px; }
.panel > form.catalogue-tools { align-items: end; }
.game-features { display: flex; flex-wrap: wrap; gap: 4px; }
.game-features .tag { margin: 0; }
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.list-head h1 { margin: 0; }
.list-sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.list-sort select { padding: 6px 28px 6px 10px; border: 1px solid var(--nm-control-border); border-radius: var(--nm-radius-sm); background-color: var(--nm-surface); }
/* En-tête connecté : notifications et messages en icônes (pastille du nombre), pseudo raccourci :
   le menu principal tient sur une ligne. */
.site-tools .tool--icon { position: relative; }
.site-tools .tool--icon .tool-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-tools .tool--icon .badge { position: absolute; top: 2px; right: 0; margin: 0; }
.account-menu summary .tool-label { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

/* Champs de saisie : focus qui suit les coins arrondis (bordure bleue et halo léger), au lieu du
   contour carré décalé du reste du site. Champ collé à son bouton (recherche) : anneau intérieur,
   rien ne déborde sur le bouton ni hors du panneau. */
input:not([type="checkbox"]):not([type="radio"]):focus-visible, textarea:focus-visible, select:focus-visible {
    outline: none; border-color: var(--nm-blue); box-shadow: 0 0 0 3px rgb(24 113 159 / 22%);
}
.header-search input:focus-visible, .search-form input:focus-visible { box-shadow: inset 0 0 0 1px var(--nm-blue); }
.header-search button:focus-visible, .search-form button:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--nm-blue); }

/* Champ de commentaire ou de message avec smileys en image (public/js/site.js). */
.smiley-source { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; resize: none; }
.smiley-input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--nm-border); border-radius: 8px; background: #fff;
    font: inherit; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; max-height: 24em; overflow-y: auto; }
.smiley-input:focus-visible { outline: none; border-color: var(--nm-blue); box-shadow: 0 0 0 3px rgb(24 113 159 / 22%); }
.smiley-input.is-empty::before { content: attr(data-placeholder); color: var(--nm-muted); pointer-events: none; }
.smiley-input img.smiley { vertical-align: middle; margin: 0 1px; }
.smiley-input blockquote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .4rem; margin: .25rem 0; padding: .45rem .65rem; border-inline-start: 3px solid var(--nm-blue); border-radius: 0 5px 5px 0; background: var(--nm-surface-alt); }
.smiley-input blockquote > *:not(button) { grid-column: 1; }
.smiley-input blockquote > button { grid-area: 1 / 2 / span 2; align-self: start; min-width: 32px; min-height: 32px; font-size: 1.2rem; }
.smiley-input[aria-invalid="true"] { border-color: #c41d1d; }
.comment-form, .form-panel { position: relative; }

.push-invitation:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    padding: .8rem 1rem;
    margin: 1rem 0;
    border: 1px solid var(--nm-border);
    border-radius: 10px;
    background: var(--nm-tint);
}
.push-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .8rem; }
.push-actions .button { margin: 0; }
.push-invitation [role="status"] { display: block; }
.tag.editorial-pick { background: #ffe0a0; color: #6a280c; }
.article-image-zoom { display: inline-block; max-width: 100%; cursor: zoom-in; }
.article-image-zoom:focus-visible { outline: 3px solid var(--nm-blue); outline-offset: 3px; }
.lightbox .lightbox-bar { padding: 0 .25rem; }
.format-controls { display: flex; flex-wrap: wrap; gap: .35rem; margin-block: .35rem; }
.format-controls button { min-height: 34px; padding: .15rem .6rem; }
.game-score-area { display: grid; gap: 10px; margin-block: 1rem; }
.game-score-area > * { margin: 0; }
.game-score-area--with-editorial-score .game-verdict--link > strong { font-size: 1.125rem; }
.game-score-area--with-editorial-score .game-verdict--link .score { min-width: 4.25rem; font-size: 1.45rem; }
.tag.editorial-pick { display: inline-flex; gap: .35rem; align-items: center; }
.tag.editorial-pick img { width: 1.45rem; height: 1.45rem; object-fit: contain; }
.review-kicker .editorial-pick img { width: 2.25rem; height: 2.25rem; }

/* Notes des joueurs : synthèse et échelle partageant la même carte. */
.player-rating {
    --rating-border: #d9e3ed;
    --rating-wash: #edf5fb;
    --rating-navy: #142742;
    --rating-red: var(--nm-red);
    container: player-rating / inline-size;
    min-width: 0;
    border: 1px solid var(--rating-border);
    border-radius: 14px;
    background: #fff;
    color: var(--nm-ink);
    scroll-margin-top: 8px;
}
.player-rating-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
}
summary.player-rating-header { list-style: none; cursor: pointer; border-radius: 13px; }
summary.player-rating-header::-webkit-details-marker { display: none; }
summary.player-rating-header:focus-visible {
    outline: 3px solid var(--nm-blue);
    outline-offset: -3px;
}
.player-rating-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 61px;
    padding: 7px 10px;
    border-radius: 10px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: radial-gradient(ellipse at top right, #1d526f, var(--rating-navy) 82%);
}
.player-rating-mark strong { font-size: 1.7rem; letter-spacing: -.06em; font-weight: 800; }
.player-rating-mark small { font-size: .67rem; margin-top: 3px; font-weight: 700; }
.player-rating-mark--empty {
    align-items: center;
    color: var(--nm-blue-dark);
    background: #e8f3f9;
    font-size: 1.4rem;
    font-weight: 750;
}
.player-rating-caption { display: grid; line-height: 1.28; gap: 2px; }
.player-rating-caption > strong { font-size: 1.08rem; letter-spacing: -.015em; }
.player-rating-caption > span, .player-rating-unavailable { color: var(--nm-muted); font-size: .83rem; }
.player-rating-action, .player-rating-submit, .player-rating-secondary {
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    background: var(--rating-red);
    color: #fff;
    padding: 8px 14px;
    font: inherit;
    font-size: .88rem;
    font-weight: 750;
    cursor: pointer;
}
.player-rating-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    justify-self: end;
}
.player-rating-open-label, .player-rating-close-label { display: inline-flex; gap: .4em; align-items: center; }
.player-rating-action .icon, .player-rating-footer .icon, .player-rating-remove .icon { width: 1em; flex: none; }
.player-rating-close-label, .player-rating-panel[open] .player-rating-open-label { display: none; }
.player-rating-panel[open] .player-rating-close-label { display: inline-flex; }
.player-rating-panel[open] .player-rating-action { min-width: 44px; padding: 8px; }
.player-rating-close-label .icon { width: 1.15rem; }
.player-rating-panel[open] .player-rating-action, .player-rating-action--rated {
    background: var(--rating-wash);
    color: var(--nm-blue-dark);
}
.player-rating-action b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-rating-header:hover .player-rating-action, .player-rating-submit:not(:disabled):hover { filter: brightness(.92); }
.player-rating-submit:disabled { background: #dbe6ef; color: #46566a; cursor: default; }
.player-rating-editor { margin: 0 14px 14px; }
.player-rating-editor > form[data-rating-form] {
    display: grid;
    gap: 8px;
    background: var(--rating-wash);
    padding: 12px;
    border-radius: 10px;
}
.player-rating-rail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(10px, 3cqi, 22px);
}
.player-rating-exact label { display: block; color: var(--nm-muted); font-size: .78rem; font-weight: 650; }
.player-rating-exact select {
    min-height: 44px;
    padding: 4px 6px;
    border: 1px solid #b1c7d7;
    border-radius: 6px;
    background: #fff;
    color: var(--rating-red);
    font: inherit;
    font-weight: 800;
}
.player-rating-track:not([hidden]) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.player-rating-track span { font-weight: 650; font-size: .78rem; color: var(--nm-muted); }
.player-rating-track input[type="range"] {
    --rating-fill: linear-gradient(90deg, var(--rating-red) var(--rating-position, 0%), #bdcdda var(--rating-position, 0%));
    appearance: none;
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 0;
    height: 44px;
    outline-offset: 2px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
}
.player-rating-track input[type="range"]:focus-visible { outline: 3px solid var(--nm-blue); box-shadow: none; }
.player-rating-track input::-webkit-slider-runnable-track { height: 6px; border-radius: 10px; background: var(--rating-fill); }
.player-rating-track input::-moz-range-track { height: 6px; border-radius: 10px; background: var(--rating-fill); }
.player-rating-track input::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    margin-top: -9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--rating-red);
    box-shadow: 0 1px 4px #1427423d;
}
.player-rating-track input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--rating-red);
    box-shadow: 0 1px 4px #1427423d;
}
.player-rating-track input:active { cursor: grabbing; }
.player-rating-caption .player-rating-few { font-weight: 700; color: var(--nm-ink); }
.player-rating-written summary, .player-rating-distribution summary, .player-review-spoiler summary { cursor: pointer; }
.player-rating-written summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    font-weight: 700;
    color: var(--nm-blue-dark);
    list-style: none;
}
.player-rating-written summary::-webkit-details-marker { display: none; }
.player-rating-written summary small { color: var(--nm-muted); font-weight: 500; }
.player-rating-written label { display: block; font-size: .88rem; }
.player-rating-written textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-block: 4px;
    padding: 8px 10px;
    border: 1px solid #b1c7d7;
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}
.player-rating-written .meta, .player-rating-editor .form-error, .player-rating-moderated, .player-rating-invite { margin: 0; }
.player-rating-written .player-rating-spoiler-toggle { display: flex; align-items: center; gap: .35rem; min-height: 36px; }
.player-rating-buttons { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.player-rating-secondary { background: #fff; color: var(--nm-blue-dark); border: 1px solid #adc4d5; }
.player-rating-distribution { border-top: 1px solid var(--rating-border); margin-inline: 14px; padding-block: 4px; font-size: .83rem; }
.player-rating-distribution summary { min-height: 40px; line-height: 40px; color: var(--nm-blue-dark); font-weight: 650; }
.player-rating-distribution ul { list-style: none; padding: 0; margin: 0 0 8px; }
.player-rating-distribution li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) 2.5rem; gap: 8px; align-items: center; }
.player-rating-distribution meter { width: 100%; }
.player-review-spoiler summary { color: var(--nm-blue-dark); font-weight: 650; }
.player-review-spoiler p { margin-top: 6px; }
.player-review-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.player-rating-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 12px;
    align-items: center;
    border-top: 1px solid var(--rating-border);
    margin-inline: 14px;
    font-size: .82rem;
}
.player-rating-footer p, .player-rating-footer a, .player-rating-remove .link-button {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    min-height: 40px;
    margin: 0;
}
.player-rating-footer p { color: #28683a; font-weight: 700; }
.player-rating-footer p:focus { outline: 2px solid #3f8455; outline-offset: 2px; border-radius: 4px; }
.player-rating-footer a { font-weight: 700; }
.player-rating-remove { display: flex; justify-content: flex-end; }
.player-rating-remove .link-button { color: var(--nm-muted); font-size: .82rem; }
.player-rating-remove .link-button:hover { color: var(--rating-red); }
.review-player-tools .player-rating { margin-top: 1rem; }
#ecrire-avis { scroll-margin-top: 8px; }
@container player-rating (max-width: 510px) {
    .player-rating-rail { grid-template-columns: minmax(0, 1fr); gap: 3px; }
    .player-rating-exact { display: flex; align-items: center; justify-content: space-between; }
    .player-rating-buttons > button { flex: 1 1 100%; }
}
@container player-rating (max-width: 390px) {
    .player-rating-header { gap: 10px; }
    .player-rating-mark { min-width: 58px; min-height: 52px; }
    .player-rating-caption > strong { font-size: 1rem; }
    .player-rating-action { padding-inline: 10px; }
    .player-rating-open-label .icon { display: none; }
    .player-rating-open-label b { display: block; font-size: .95rem; }
    .player-rating-action--rated .player-rating-open-label { display: grid; gap: 0; line-height: 1.15; font-size: .72rem; }
}
@container player-rating (max-width: 300px) {
    .player-rating-header { padding: 10px; grid-template-columns: auto minmax(0, 1fr); }
    .player-rating-panel:not([open]) .player-rating-action, .player-rating-unavailable { grid-column: 1 / -1; justify-self: stretch; }
    .player-rating-panel[open] .player-rating-header { grid-template-columns: auto minmax(0, 1fr) auto; }
    .player-rating-panel[open] .player-rating-caption > strong { font-size: .97rem; }
    .player-rating-editor, .player-rating-footer { margin-inline: 10px; }
    .player-rating-editor > form[data-rating-form] { padding: 9px; }
}
.game-score-area--with-editorial-score .player-rating-header { padding: 8px 12px; }
.game-score-area--with-editorial-score .player-rating-mark { min-width: 52px; min-height: 44px; padding: 5px 8px; }
.game-score-area--with-editorial-score .player-rating-mark strong { font-size: 1.25rem; }
.game-score-area--with-editorial-score .player-rating-mark--empty { font-size: 1.15rem; }
.game-score-area--with-editorial-score .player-rating-caption > strong { font-size: .95rem; }
.game-score-area--with-editorial-score .player-rating-action { background: var(--rating-wash); color: var(--nm-blue-dark); }
@media (forced-colors: active) {
    .card .caption { background: Canvas; color: LinkText; text-shadow: none; }
    .header-search button:focus-visible, .search-form button:focus-visible {
        outline: 3px solid Highlight;
        outline-offset: 1px;
    }
    .player-rating-track input[type="range"] { appearance: auto; }
    .player-rating-action, .player-rating-submit { border: 1px solid ButtonText; }
}
.game-deals { margin-block: 1.25rem; }
.game-deals h2 { margin: 0 0 .5rem; font-size: 1.12rem; }
.game-deals h2 .icon { width: 1rem; color: var(--nm-blue); }
.game-deals h3 { font-size: .96rem; margin: .6rem 0 .25rem; }
.game-deals > p { margin: .4rem 0 0; }
.deal-card-header { display: flex; gap: .75rem; align-items: center; margin-bottom: .8rem; }
.deal-card-header img { flex: 0 0 auto; width: 62px; height: 72px; }
.deal-card-header > div { min-width: 0; overflow-wrap: anywhere; }
.deal-offers { display: grid; gap: .28rem; list-style: none; padding: 0; margin: 0; }
.deal-offers > li { min-width: 0; }
.deal-offers a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    padding: .44rem .6rem;
    border-radius: 7px;
    background: var(--nm-surface-alt);
    color: var(--nm-blue);
}
.deal-offers a:hover { background: var(--nm-tint); }
.deal-offers a > span:first-child { flex: 1 1 7ch; min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.deal-offer-prices { display: flex; flex-wrap: wrap; gap: .2rem .45rem; align-items: baseline; min-width: 0; }
.deal-offers strong, .deal-offer-prices s { white-space: nowrap; font-variant-numeric: tabular-nums; }
.deal-offer-prices s { color: var(--nm-muted); font-size: .75rem; }
.deal-offers a > .icon { flex: 0 0 .9rem; width: .9rem; height: .9rem; }
.deal-offers .deal-off { white-space: nowrap; }
.article-deals-link { margin-block: 1rem; }

/* Laisser l’actualité visible dès l’arrivée sur l’accueil. */
.short-home-feed { display: none; }
@media (min-width: 641px) {
    .home-featured { grid-template: none / repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(132px, auto); }
    .home-featured .card:nth-child(1), .home-featured .card:nth-child(4) { grid-area: auto; }
    .home-featured .card:only-child, .home-featured .card:first-child:nth-last-child(3) { grid-column: 1 / -1; }
    .home-featured .card .caption, .home-featured .card:nth-child(1) .caption { font-size: 1rem; padding: 8px 12px; }
}
@media (max-width: 640px) {
    .home-featured .card { min-height: 8rem; }
    .home-layout .pills { flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 12px 0 8px; }
    .home-layout .pills a { min-width: 0; padding: 4px 13px; }
}
@media (min-width: 641px) and (max-width: 900px) and (max-height: 480px) {
    .site-header { gap: 4px 8px; padding-block: 4px; }
    .site-logo img { width: 140px; }
    .site-nav > ul > li > a, .nav-disclosure > summary { flex-direction: row; font-size: .85rem; }
    .site-nav > ul > li > a .icon, .nav-disclosure > summary .icon { max-height: 17px; }
    .subbar .social { display: none; }
    .short-home-feed { display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding-inline: .75rem; color: #fff; text-decoration: underline; }
    .short-home-feed:hover { color: #fff; }
    .home-featured { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
    .home-featured .card { flex: 0 0 47%; min-height: 6.5rem; scroll-snap-align: start; }
    .home-featured ~ .home-feed { margin-block-start: .75rem; }
}
.home-featured .card:only-child { flex-basis: 100%; }
.home-layout .push-invitation { margin-block: 16px; }
.news-item--article .news-item-title::after { content: ""; position: absolute; inset: 0; }
.news-item--article .meta a, .news-item--article .bubble { z-index: 1; }
.news-item--article .meta a { position: relative; }
.news-item--article .news-item-title:focus-visible::after { outline: 3px solid var(--nm-blue); outline-offset: -3px; border-radius: var(--nm-radius-sm); }
.comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.comment-actions .reactions { margin-block: 0; }
.comment-quote { align-self: stretch; min-height: 28px; color: var(--nm-muted); font-size: .85rem; }
.article-image-zoom.float-left img, .article-image-zoom.float-right img { display: block; }
.notification-menu-list { width: min(22rem, calc(100vw - 2rem)); }
.notification-menu-list a { overflow-wrap: anywhere; }
.notification-menu-list small { display: block; color: var(--nm-muted); }
.notification-menu-empty { padding: 8px 10px; color: var(--nm-muted); }

.calendar-views, .calendar-jump, .notification-tools, .notification-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.calendar-views a, .calendar-jump a, .notification-tools button, .notification-meta button { display: inline-flex; align-items: center; min-height: 34px; }
.calendar-views [aria-current] { color: var(--nm-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.calendar-jump { padding-block: 8px; border-block: 1px solid var(--nm-border); margin-bottom: 14px; font-size: .9rem; }
.notification-tools { justify-content: space-between; }
.notification-meta { margin-top: 4px; color: var(--nm-muted); font-size: .86rem; }
.message-preview .message-excerpt { display: block; margin-top: 3px; overflow-wrap: anywhere; }

.discovery-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .75rem;
    margin: 1.25rem 0;
}

.discovery-filters label {
    display: grid;
    gap: .25rem;
    min-width: min(10rem, 100%);
}

.discovery-filters select {
    width: 100%;
    min-height: 2.5rem;
    padding: .375rem .5rem;
    font: inherit;
    color: var(--nm-ink);
    background: var(--nm-surface);
    border: 1px solid var(--nm-control-border);
    border-radius: var(--nm-radius-sm);
}

.discovery-filters > button {
    margin-top: 0;
}

.discovery-filters > a {
    align-self: center;
}

.deal-best {
    display: block;
    color: var(--nm-muted);
    font-weight: 600;
}

.deal-price-check {
    margin: .25rem 0 0;
}

.profile-error-summary ul { margin: 5px 0 0; padding-inline-start: 1.2em; }
.profile-error-summary a { color: inherit; text-decoration: underline; }

.message-participants { margin-block: .25rem .75rem; }
.message-participants > summary { color: var(--nm-blue); cursor: pointer; font-weight: 650; min-height: 32px; }
.message-participants-list { max-block-size: min(22rem, 55dvh); overflow: auto; padding: .5rem; }
.message-participants-list .block-list { margin-bottom: 0; }
