/* Nintendo-Master — refonte 2026 (essai).
   Couche posée sur site.css, chargée après lui : même identité (décor Mario, bleu, étiquettes
   rouges), en plus net. Pour revenir à l'ancien style, retirer la ligne qui charge ce fichier
   dans resources/views/components/layout.blade.php. */

: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-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 { 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 { border-radius: 6px; }
.submenu a:hover, .account-menu-list a:hover, .account-menu-list .link-button:hover { 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 / 92%) 0, rgb(10 14 24 / 70%) 60%, transparent 100%);
    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 h2 a, .news-item h3 a { color: var(--nm-ink); font-weight: 650; }
.news-item:hover h2 a, .news-item:hover h3 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-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: 1px solid var(--nm-border); border-radius: 999px; background: #fff; color: var(--nm-ink);
    font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.share-button .icon { width: 15px; height: 15px; }
.share-button:hover { border-color: var(--nm-blue); color: var(--nm-blue); }

/* 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); }
.comment-form textarea, .form-panel input[type="text"], .form-panel input[type="email"], .form-panel input[type="password"] { border-color: #8a90a0; border-radius: var(--nm-radius-sm); }
.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 { border-radius: var(--nm-radius-sm); }
.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; margin: 0; text-align: center; }
.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) {
    /* 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); }
@media (max-width: 640px) { .game-verdict { flex-direction: column; } }
.comment-date { color: inherit; } .comment-date:hover { text-decoration: underline; }

/* Signaler, bloquer. */
.report { margin-top: 6px; font-size: .85rem; }
.report summary { cursor: pointer; color: var(--nm-muted); display: inline-block; }
.report summary:hover { color: var(--nm-red); }
.report-form { display: grid; gap: 4px; max-width: 360px; margin-top: 6px; padding: 10px; border: 1px solid var(--nm-border); border-radius: var(--nm-radius-sm); background: var(--nm-surface-alt); }
.report-form select, .report-form input { font: inherit; padding: 6px 8px; border: 1px solid #8a90a0; border-radius: 6px; }
.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 1fr auto; 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 a { grid-area: name; font-weight: 600; }
.release-list .tag { grid-area: tag; justify-self: start; }
.release-list time, .release-list .release-vague { grid-area: date; color: var(--nm-muted); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.release-list .score { grid-area: score; justify-self: end; margin: 0; }

/* 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 #8a90a0; border-radius: 4px; background: #fff; }
.catalogue-tools input[type="search"] { width: 14rem; max-width: 100%; }
.empty-state { padding: 16px; background: var(--nm-surface-alt); border-radius: 6px; }

/* 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)); }
@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 span { 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) {
    .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. */
.ratings-summary { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.ratings-summary .score { font-size: 1.1rem; padding: 4px 10px; margin: 0; }
.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-form summary { display: inline-flex; list-style: none; cursor: pointer; }
.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-scale { display: flex; flex-wrap: wrap; gap: 6px; }
.rating-scale label { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--nm-border); border-radius: 6px; cursor: pointer; font-variant-numeric: tabular-nums; }
.rating-scale label:has(input:checked) { border-color: var(--nm-blue); background: var(--nm-tint); }
.rating-form .button { justify-self: start; }
.ratings-more { margin: 12px 0 0; font-size: .9rem; }
.side-box--ratings h2 { background: #b8860b; }
.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; }
.profile-showcase { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-bottom: 16px; }
.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%)); }
.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-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-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-summary .share-button { grid-column: 1 / -1; justify-self: start; }

/* 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: 90px; }

/* 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: 90px; }
.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; }
.review-scores { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--nm-border); }
.review-scores p { margin: 0; }
.review-scores p:not(.meta) { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 4.5rem; align-items: center; gap: 12px; font-size: .92rem; }
.review-scores b { text-align: right; font-variant-numeric: tabular-nums; }
.review-bar { height: 10px; border-radius: 5px; background: #e7eaf0; overflow: hidden; }
.review-bar span { display: block; height: 100%; width: var(--value); border-radius: 5px; background: var(--nm-blue); }
.review-bar--players span { background: #b8860b; }

/* 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--cover .review-hero-score { margin: -40px 12px 0 0; }
    .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-scores p:not(.meta) { grid-template-columns: 6.5rem minmax(0, 1fr) 3.8rem; }
    .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; }
.lightbox::backdrop { background: rgb(8 10 16 / 88%); }
.lightbox img { display: block; max-width: min(1400px, 94vw); max-height: 86vh; width: auto; height: auto; border-radius: 6px; }
.lightbox-bar { display: flex; 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(300px, 1fr)); gap: 16px; }
.deal-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid var(--nm-border); border-radius: var(--nm-radius); background: #fff; box-shadow: var(--nm-shadow); }
.deal-card img { width: 96px; height: 96px; object-fit: contain; border-radius: 6px; background: var(--nm-surface-alt); }
.deal-card h3 { margin: 2px 0 6px; font-size: 1rem; line-height: 1.3; }
.deal-card p { margin: 0 0 4px; }
.deal-store { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--nm-muted); }
.deal-price b { font-size: 1.3rem; color: #2e7d32; }
.deal-price s { color: var(--nm-muted); margin-left: 6px; }
.deal-off { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #2e7d32; color: #fff; font-size: .8rem; font-weight: 700; }
.deal-card .button { margin-top: 6px; }
.deals-expired { margin-top: 16px; color: var(--nm-muted); }
@media (max-width: 640px) { .deal-grid { grid-template-columns: 1fr; } }
.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-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; }
/* Fiche du jeu collante dans la colonne de droite des articles. */
@media (min-width: 901px) { .layout > aside .game-card { position: sticky; top: 12px; } }
/* 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; justify-items: center; gap: 10px; text-align: center; padding: 28px 18px; border: 1px dashed var(--nm-border); border-radius: var(--nm-radius); background: var(--nm-surface-alt); }
.empty-box .icon { width: 34px; height: 34px; color: var(--nm-muted); }
.empty-box p { margin: 0; max-width: 52ch; }
.empty-box nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.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)); }
.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-border); border-radius: 8px; background-color: var(--nm-surface, #fff); }
/* 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[aria-invalid="true"] { border-color: #c41d1d; }
.comment-form, .form-panel { position: relative; }
