/* ==========================================================================
   CITIZEN PLAY — style.css (version consolidée)
   --------------------------------------------------------------------------
   Sommaire
   01. Variables & reset
   02. Utilitaires
   03. Header (marque, recherche, navigation, compte, recherche mobile)
   04. Footer
   05. Éléments génériques (formulaires, boutons, tableaux, alertes…)
   06. Pages « legacy » (listing, article, fiche jeu, connexion de base)
   07. Composants éditoriaux partagés (titres de section, cartes, jeux…)
   08. Accueil (.cp-home)
   09. Publicités
   10. Pagination
   11. Page de rubrique
   12. Page article
   13. Fiche jeu
   14. Catalogue des jeux
   15. Recherche
   16. Connexion / compte / membres / auteur
   17. Pages À propos, légales, contact, erreur
   18. Styles legacy probablement inutilisés (anciennes classes d'accueil)
   19. Commentaires
   ========================================================================== */


/* ==========================================================================
   01. VARIABLES & RESET
   ========================================================================== */

:root {
  --cp-blue: #0070d1;
  --cp-blue-dark: #003791;
  --cp-violet: #665cbe;
  --ink: #171923;
  --ink-soft: #394052;
  --muted: #747d8f;
  --line: #e4e8ef;
  --paper: #fff;
  --paper-soft: #f6f8fb;
  --paper-blue: #eef5fc;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(20, 35, 65, .07);
  --font-body: 'Inter', Arial, sans-serif;
  --font-display: 'Mukta Malar', 'Inter', sans-serif;

  /* Alias « cp- » */
  --cp-navy: #003791;
  --cp-purple: #665cbe;
  --cp-ink: #171923;
  --cp-muted: #747986;
  --cp-line: #e4e8ef;
  --cp-paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

main {
  margin-top: 20px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-color: var(--cp-blue);
}


/* ==========================================================================
   02. UTILITAIRES
   ========================================================================== */

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.announcement-line {
  height: 4px;
  background: linear-gradient(90deg, var(--cp-blue-dark), var(--cp-blue), var(--cp-violet));
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 30px, 600px);
  }
}


/* ==========================================================================
   03. HEADER
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, .97);
  border-bottom: 0;
  box-shadow: 0 3px 10px rgba(20, 35, 65, .07);
}

.header-main {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* --- Marque ------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 80px;
    height: 80px;
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  // background: linear-gradient(145deg, var(--cp-blue), var(--cp-blue-dark));
  color: #fff;
  // box-shadow: 0 5px 14px rgba(0, 55, 145, .18);
  font: 800 32px/1 var(--font-display);
  letter-spacing: -.12em;
}

.brand-mark span:first-child {
  transform: translateX(3px);
}

.brand-mark span:last-child {
  font-size: 27px;
  transform: translate(-1px, 5px);
  margin-left: -2px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-wordmark strong {
    font: 900 clamp(28px, 3vw, 44px) / 1 'Anta';
    letter-spacing: -3.0px;
    word-spacing: -1px;
    white-space: nowrap;
}

.brand-wordmark em {
  font-style: normal;
  margin-left: -3px;
  color: var(--cp-blue-dark);
}

.brand-wordmark small {
  margin-top: 4px;
  color: var(--cp-blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .35px;
  white-space: nowrap;
}

/* --- Outils (recherche, réseaux) ---------------------------------------- */

.logohome {
  padding-right: 10px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-search-form {
  display: flex;
  width: min(390px, 36vw);
  height: 36px;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.header-search-form input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
}

.header-search-form input::placeholder {
  color: #8b94a5;
}

.header-search-form button {
  flex: 0 0 53px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(145deg, #0070d1 0%, #003791 100%);
  color: #fff;
  cursor: pointer;
}

.header-search-form button:hover {
  color: var(--muted);
}

.header-search-form button i {
  font-size: 14px;
}

.header-search-form svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.header-console {
  color: var(--cp-blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  white-space: nowrap;
}

.header-console span {
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  padding: 3px 6px;
  background: var(--paper-blue);
  border-radius: 4px;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #141925;
  font-size: 17px;
  transition: color .18s ease;
}

.header-socials a:hover {
  color: var(--cp-blue);
}

/* --- Navigation principale ---------------------------------------------- */

.nav-wrap {
  border-top: 1px solid #f0f2f6;
}

.nav-inner {
  min-height: 40px;
  padding-bottom: 12px;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 32px;
}

.primary-nav > a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 3px 15px 0;
  color: #283044;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav > a:first-child {
  padding-left: 0;
}

.primary-nav > a:hover,
.primary-nav > a:focus-visible {
  color: var(--cp-blue);
}

/* Soulignement animé (visible en permanence sur la rubrique active) */
.primary-nav > a::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 0;
  left: 10px;
  height: 2px;
  background: var(--cp-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.primary-nav > a:first-child::after {
  left: 0;
  right: 10px;
}

.primary-nav > a:hover::after,
.primary-nav > a:focus-visible::after,
.primary-nav > a.is-active::after {
  transform: scaleX(1);
}

.primary-nav > a.is-active {
  color: var(--cp-blue-dark);
}

.primary-nav .nav-editor {
  margin-left: auto;
  color: var(--cp-blue-dark);
}

/* --- Plateformes (à droite de la nav) ----------------------------------- */

.nav-platforms {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-left: auto;
  padding-left: 12px;
  border-left: 0;
}

.nav-platforms a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 0;
  color: #202737;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: color .18s ease;
}

.nav-platforms a i {
  font-size: 14px;
}

.nav-platforms a:hover {
  color: var(--cp-blue);
}

/* --- Compte membre ------------------------------------------------------ */

.nav-account {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  height: 100%;
  margin-left: auto;
  padding: 0 0 0 12px;
  box-sizing: border-box;
  transform: translateY(4px);
}

.nav-account-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #dce5f2;
  border-radius: 50%;
  background: #edf4ff;
  color: #0757b8;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.nav-account-image {
    overflow: hidden;
    padding: 0;
}

.nav-account-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-account-btn i {
  display: block;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.nav-account-btn:hover {
  background: #0757b8;
  border-color: #0757b8;
  color: #fff;
  box-shadow: 0 3px 10px rgba(7, 87, 184, .18);
}

.nav-account-btn:focus-visible {
  outline: 2px solid #0757b8;
  outline-offset: 3px;
}

/* Infobulle (texte pris dans l'attribut title) */
.nav-account-btn::after {
  content: attr(title);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  padding: 7px 10px;
  border-radius: 5px;
  background: #172438;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}

.nav-account-btn:hover::after,
.nav-account-btn:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Avatar (membre connecté) */
.nav-account-avatar {
  background: #edf4ff;
  border-color: #dce5f2;
  color: #0757b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.nav-account-avatar span {
  display: block;
  padding: 0;
}

.nav-account-avatar:hover {
  background: #0757b8;
  border-color: #0757b8;
  color: #fff;
}

/* --- Recherche mobile (bouton + modale) --------------------------------- */

/* --- Raccourcis du header mobile ---------------------------------------- */

.mobile-account-trigger,
.mobile-menu-trigger {
  display: none;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #dce5f2;
  border-radius: 50%;
  background: #edf4ff;
  color: #0757b8;
  font-size: 16px;
  cursor: pointer;
}

.mobile-account-trigger:hover,
.mobile-menu-trigger:hover {
  background: #0757b8;
  border-color: #0757b8;
  color: #fff;
}

.mobile-account-avatar {
  overflow: hidden;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.mobile-account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-account-avatar span {
  display: block;
}

.mobile-menu-overlay {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(7, 13, 27, .68);
}

.mobile-menu-overlay[hidden] {
  display: none;
}

.mobile-menu-panel {
  width: min(390px, 88vw);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 22px 32px;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
  animation: mobile-menu-slide-in .22s ease-out;
}

@keyframes mobile-menu-slide-in {
  from {
    transform: translateX(35px);
    opacity: .7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.mobile-menu-open {
  overflow: hidden;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf4;
}

.mobile-menu-header strong {
  color: #172438;
  font: 800 18px 'Anta', sans-serif;
  letter-spacing: .8px;
}

.mobile-menu-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f3f8;
  color: #26344a;
  font-size: 19px;
  cursor: pointer;
}

.mobile-menu-close:hover {
  background: #e2ebf8;
  color: var(--cp-blue);
}

.mobile-menu-account {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #e1e9f4;
  border-radius: 10px;
  background: #f5f8fc;
}

.mobile-menu-account-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}

.mobile-menu-account-label {
  color: #788397;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mobile-menu-account-info strong {
  color: #172438;
  font-size: 16px;
}

.mobile-menu-account > p {
  margin: 0 0 14px;
  color: #26344a;
  font-size: 14px;
  font-weight: 700;
}

.mobile-menu-account > a,
.mobile-menu-account form button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: #0757b8;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-menu-account form {
  margin: 0;
  border-top: 1px solid #e1e9f4;
}

.mobile-menu-account form button {
  color: #687386;
}

.mobile-menu-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.mobile-menu-account-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.mobile-menu-login {
  background: var(--cp-blue);
  color: #fff;
}

.mobile-menu-register {
  border: 1px solid #cbd9eb;
  background: #fff;
  color: #0757b8;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
}

.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 51px;
  padding: 10px 5px;
  border-bottom: 1px solid #edf0f5;
  color: #202b3e;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  transition: color .18s ease, padding-left .18s ease;
}

.mobile-drawer-nav a i {
  width: 20px;
  color: var(--cp-blue);
  font-size: 16px;
  text-align: center;
}

.mobile-drawer-nav a:hover {
  padding-left: 10px;
  color: var(--cp-blue);
}

.mobile-menu-socials {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8edf4;
}

.mobile-menu-socials > span {
    display: block;
    margin-bottom: 13px;
    color: #788397;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.mobile-menu-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e1e9f4;
    border-radius: 50%;
    background: #f5f8fc;
    color: #0757b8;
    font-size: 17px;
    transition: background .2s ease, color .2s ease;
}

.mobile-menu-social-links a:hover {
    background: #0757b8;
    color: #fff;
}

.mobile-search-trigger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #202737;
  font-size: 17px;
  cursor: pointer;
}

.mobile-search-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18vh 20px 20px;
  background: rgba(10, 18, 35, .55);
}

.mobile-search-modal[hidden] {
  display: none;
}

.mobile-search-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .2);
}

.mobile-search-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: #41495a;
  font-size: 18px;
}

.mobile-search-dialog form > label {
  display: block;
  margin: 0 35px 14px 0;
  font-size: 18px;
  font-weight: 800;
}

.mobile-search-field {
  display: flex;
  height: 42px;
  border: 1px solid #dce2ec;
  border-radius: 5px;
  overflow: hidden;
}

.mobile-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
}

.mobile-search-field button {
  flex: 0 0 42px;
  width: 42px;
  padding: 0;
  border-radius: 0;
}

/* --- Header : responsive ------------------------------------------------ */

@media (max-width: 1000px) {
  .header-main {
    gap: 18px;
  }

  .header-tools {
    gap: 18px;
  }

  .header-console {
    display: none;
  }

  .header-socials {
    gap: 13px;
  }

  .primary-nav > a {
    padding-inline: 10px;
  }

  .nav-platforms a {
    padding-inline: 7px;
    font-size: 9px;
  }
}

@media (max-width: 850px) {
  .nav-account {
    height: auto;
  }

  .nav-account-btn {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 760px) {
  .header-main {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 17px;
    padding-bottom: 15px;
  }

.header-socials {
    display: none;
}

  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 7px;
    font-size: 25px;
  }

  .brand-mark span:last-child {
    font-size: 22px;
  }

  .brand-wordmark strong {
    font-size: 22px;
    letter-spacing: -.8px;
  }

  .brand-wordmark small {
    font-size: 7px;
    letter-spacing: .3px;
  }

  .header-tools {
    margin-left: auto;
    gap: 9px;
  }

  /* Recherche : le bouton ouvre la modale existante */
  .header-search-form {
    display: none;
  }

  .mobile-search-trigger {
    display: inline-flex;
  }

  /* Compte et hamburger accessibles directement */
  .mobile-account-trigger,
  .mobile-menu-trigger {
    display: inline-flex;
  }

  .header-socials {
    gap: 9px;
  }

  /* La navigation horizontale est remplacée par le panneau hamburger */
  .nav-wrap {
    display: none;
  }
}

@media (max-width: 440px) {
  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-wordmark strong {
    font-size: 18px;
    letter-spacing: -.7px;
  }

  .brand-wordmark small {
    font-size: 6px;
  }

  .header-tools {
    gap: 7px;
  }

  .header-socials {
    gap: 8px;
  }

  .mobile-account-trigger,
  .mobile-menu-trigger,
  .mobile-search-trigger {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}


/* ==========================================================================
   04. FOOTER
   ========================================================================== */

.site-footer {
  margin-top: 30px;
  background: #10182a;
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 42px;
  padding-bottom: 38px;
}

.footer-brand-column .brand-mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  font-size: 26px;
}

.footer-brand-column .brand-wordmark strong {
  font-size: 32px;
}

.footer-brand-column .brand-wordmark em {
  color: var(--cp-blue);
}

.footer-brand-column .brand-wordmark small {
  font-size: 8px;
  color: #c1c9d9;
  letter-spacing: .7px;
}

.footer-brand-column p {
  max-width: 360px;
  margin: 18px 0 0;
  color: #b8c1d2;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #c3cada;
  font-size: 13px;
}

.footer-links strong {
  margin-bottom: 7px;
  color: #fff;
  font: 800 12px 'Anta';
  letter-spacing: .8px;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: #8dcaff;
}

.footer-links span {
  font-size: 12px;
}

.footer-bottom {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: #aeb8ca;
  font-size: 11px;
}

/* Footer : responsive
   (le sélecteur .site-footer .footer-main est plus spécifique et impose
   les 3 colonnes à partir de 800px, y compris sur très petits écrans) */
@media (max-width: 800px) {
  .site-footer .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .site-footer .footer-brand-column {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .site-footer .footer-links {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .footer-main {
    padding-top: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (max-width: 420px) {
  .site-footer .footer-main {
    column-gap: 12px;
    row-gap: 24px;
  }
}


/* ==========================================================================
   05. ÉLÉMENTS GÉNÉRIQUES
   ========================================================================== */

/* --- Champs de formulaire ---------------------------------------------- */

.search-page-form input,
.search-form input,
.game-search input,
.game-filters input,
.game-filters select,
input[type=text],
input[type=email],
input[type=password],
input[type=date],
input[type=datetime-local],
input[type=number],
input[type=url],
input[type=search],
select,
textarea {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #dce2eb;
  border-radius: 6px 0 0 6px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cp-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 209, .1);
}

/* --- Formulaires de recherche ------------------------------------------ */

.search-page-form,
.search-form {
  display: flex;
  margin: 20px 0;
}

.search-page-form input,
.search-form input {
  flex: 1;
  min-width: 0;
}

.game-search,
.search-form {
  display: flex;
  gap: 8px;
}

.search-page-form {
  width: 100%;
  gap: 0;
}

.search-page-form input[type="search"] {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #d9e0eb;
  border-right: 0;
  border-radius: 6px 0 0 6px;
}

.search-page-form button {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin: 0;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(145deg, #0070d1 0%, #003791 100%);
  color: #fff;
  cursor: pointer;
}

.search-page-form button:hover {
  color: var(--cp-muted);
}

.search-page .search-page-form {
  margin: 0 0 20px;
}

.search-page .search-page-form input[type="search"]:focus {
  border-color: var(--cp-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 209, .1);
}

.search-page .search-page-form button:hover {
  background: #004fa3;
}

/* --- Boutons ------------------------------------------------------------ */

button,
.btn {
  padding: 10px 15px;
  border: 0;
  border-radius: 6px;
  background: var(--cp-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  background: var(--cp-blue-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--cp-blue-dark);
  border: 1px solid #cbd7e7;
}

.text-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cp-blue-dark);
}

/* --- Alertes, statuts --------------------------------------------------- */

.alert {
  padding: 12px 15px;
  border: 1px solid #f4d0cc;
  border-radius: 7px;
  background: #fff0ef;
  color: #9d2b24;
}

.status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 4px;
  background: #eef2f7;
  font-size: 11px;
  font-weight: 800;
}

.status-published {
  background: #e2f7ed;
  color: #146a43;
}

.status-draft {
  background: #fff2d8;
  color: #885a00;
}

/* --- Tableaux ----------------------------------------------------------- */

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f5f7fa;
  color: #596377;
  font-size: 10px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

td {
  font-size: 13px;
}

tr:last-child td {
  border-bottom: 0;
}


/* ==========================================================================
   06. PAGES « LEGACY »
   ========================================================================== */

/* --- Pages génériques --------------------------------------------------- */

.listing-page,
.search-page,
.article-page,
.game-detail-page {
  padding-top: 30px;
  padding-bottom: 20px;
}

.listing-page h1,
.search-page h1,
.article-header h1,
.game-detail-heading h1 {
  margin: 5px 0 15px;
  font: 800 clamp(30px, 4vw, 46px)/1.12 var(--font-display);
  letter-spacing: -1.4px;
}

.catalogue-intro,
.search-message {
  color: var(--muted);
}

.search-results-heading {
  margin-top: 28px;
}

.catalogue-count {
  font-size: 12px;
  color: var(--muted);
}

/* --- Article (ancien gabarit) ------------------------------------------ */


.article-preview-notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    margin: 0 0 25px;
    background: rgba(242, 140, 40, .12);
    border: 1px solid rgba(242, 140, 40, .35);
    border-radius: 8px;
    font-size: 14px;
}

.article-preview-notice i {
    color: #f28c28;
}

.article-preview-notice a {
    font-weight: 700;
    text-decoration: underline;
}

.article-page {
  max-width: 920px;
}

.article-header {
  margin-bottom: 24px;
}

.article-lead {
  max-width: 780px;
  color: #535e70;
  font-size: 19px;
  line-height: 1.55;
}

.article-cover {
  width: 100%;
  max-height: 520px;
  margin: 20px 0;
  object-fit: cover;
  border-radius: 10px;
}

.article-content {
  color: #303849;
  font-size: 17px;
  line-height: 1.85;
}


.article-content h2,
.article-content h3 {
  margin-top: 1.7em;
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: -.5px;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--cp-blue);
  background: var(--paper-blue);
  font: 700 20px/1.5 var(--font-display);
}

.article-content img {
  border-radius: 8px;
}

.article-byline,
.article-meta {
  color: var(--muted);
}

.article-associated-games,
.game-related-section,
.review-panel {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.article-associated-games h2,
.game-related-section h2,
.review-panel h2 {
  font: 800 22px var(--font-display);
}

.associated-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.associated-game-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.associated-game-card img {
  width: 58px;
  height: 66px;
  object-fit: cover;
  border-radius: 4px;
}

.article-type-label {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--paper-blue);
  color: var(--cp-blue-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-score,
.related-review-score {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--cp-blue-dark);
  color: #fff;
  font-weight: 800;
}

.review-score strong {
  font-size: 20px;
}

.review-score small {
  font-size: 10px;
}

.review-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.review-points-good,
.review-points-bad {
  padding: 15px;
  border-radius: 7px;
  background: var(--paper-soft);
}


/* =========================================
   PARTAGE DES ARTICLES
========================================= */

.psw-share {
    margin: 15px 0 -10px;
}



.psw-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.psw-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 30px;
    padding: 0 15px;
    border-radius: 8px;
    background: #fff;
    color: #26384d;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease,
                background .18s ease, color .18s ease;
}

.psw-share-button i {
    font-size: 15px;
}

.psw-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(15, 35, 65, .12);
}

.psw-share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.psw-share-x:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.psw-share-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.psw-share-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #fff;
}

.psw-share-copy:hover,
.psw-share-native:hover {
    background: #102b50;
    border-color: #102b50;
    color: #fff;
}

.psw-share-native {
    display: none !important;
}




/* --- Catalogue / fiche jeu (ancien gabarit) ---------------------------- */

.game-catalogue {
  padding-top: 30px;
  padding-bottom: 30px;
}

.game-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.game-filters label,
.check-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.check-label {
  flex-direction: row;
  align-items: center;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.game-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f8;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-content {
  padding: 14px;
}

.game-card-content h3 {
  margin: 8px 0;
  font: 800 16px/1.3 var(--font-display);
}

.game-card-date,
.game-card-genres {
  font-size: 11px;
  color: var(--muted);
}

.game-detail-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

.game-detail-cover {
  width: 100%;
  border-radius: 10px;
}

.game-detail-line {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.game-release {
  color: var(--muted);
}

.game-back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--cp-blue-dark);
  font-weight: 700;
}

.game-pagination,
.games-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}

.game-platform-tags-large {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-platform-tags-large span {
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--paper-blue);
  color: var(--cp-blue-dark);
  font-size: 11px;
  font-weight: 700;
}

.game-illustration {
  background: var(--paper-blue);
  border-radius: 9px;
}

/* --- Connexion (base) --------------------------------------------------- */

.login-wrap {
  display: grid;
  place-items: center;
  min-height: 65vh;
  padding: 40px 20px;
}

.login-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card h1 {
  font: 800 26px var(--font-display);
}

.login-card form {
  display: grid;
  gap: 12px;
}

.login-card label {
  font-size: 12px;
  font-weight: 700;
}

.login-register-link {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e8ebf0;
  text-align: center;
}

.login-register-link p {
  margin: 0 0 6px;
  color: #687386;
  font-size: 13px;
}

.login-register-link a {
  color: var(--cp-blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.login-register-link a:hover {
  text-decoration: underline;
}

/* Rester connecté */
.login-card .login-remember {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    margin: 14px 0 18px;
    width: 100%;
}

.login-card .login-remember input[type="checkbox"] {
    appearance: auto !important;
    display: block !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: 7px !important;
    accent-color: #0875cf !important;
}

.login-card .login-remember label {
    display: block;
    width: auto;
    margin: 0 !important;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

/* Bouton afficher / masquer le mot de passe */
.login-card .password-field {
    position: relative !important;
    width: 100%;
}

.login-card .password-field input {
    width: 100%;
    padding-right: 45px !important;
}

.login-card .password-field button.password-toggle {
    all: unset !important;
    position: absolute !important;
    top: 35% !important;
    right: 10px !important;
    transform: translateY(-50%) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    color: #64748b !important;

    cursor: pointer !important;
    box-shadow: none !important;
}

.login-card .password-field button.password-toggle:hover {
    background: transparent !important;
    color: #0875cf !important;
}

.login-card .password-field button.password-toggle i {
    font-size: 16px;
}

/* --- Legacy : responsive ------------------------------------------------ */

@media (max-width: 1000px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-detail-hero {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
  }

  .associated-game-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-page {
    padding-top: 22px;
  }

  .article-lead,
  .article-content {
    font-size: 16px;
  }

  .review-points {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 600px) {
    .psw-share {
        padding: 20px;
        margin: 15px 0 -10px;
    }

    .psw-share-buttons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .psw-share-button {
        width: 100%;
        box-sizing: border-box;
    }

    .psw-share-native {
        display: inline-flex !important;
    }
}

@media (max-width: 440px) {
  .game-detail-hero {
    grid-template-columns: 1fr;
  }

  .game-detail-cover {
    max-width: 200px;
  }

  .associated-game-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   07. COMPOSANTS ÉDITORIAUX PARTAGÉS
   (utilisés sur l'accueil, les rubriques, les articles, les fiches jeu…)
   ========================================================================== */

/* --- Titres de section, liens, étiquettes ------------------------------ */

.cp-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.cp-section-heading h2 {
  margin: 4px 0 0;
  color: var(--cp-ink);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.cp-section-heading h2 > span {
  color: var(--cp-purple);
}

.cp-compact-heading {
  margin-bottom: 12px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--cp-navy);
}

.cp-compact-heading h2 {
  font-size: 23px;
}

.cp-eyebrow {
  display: block;
  color: var(--cp-purple);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
}

.cp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--cp-blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.cp-text-link:hover {
  color: var(--cp-purple);
}

.cp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--cp-muted);
  font-size: 10px;
  line-height: 1.5;
}

.cp-article-pegi {
  margin-left: auto;
    width: 50px;
    height: 61px;
    background-size: contain;
}

.pegi-3 {background-image:url('../images/pegi/3.svg');}
.pegi-7 {background-image:url('../images/pegi/7.svg');}
.pegi-12 {background-image:url('../images/pegi/12.svg');}
.pegi-16 {background-image:url('../images/pegi/16.svg');}
.pegi-18 {background-image:url('../images/pegi/18.svg');}

.cp-article-byline-separator {
  color: var(--cp-blue);
}

/* Liens de titres : héritent la couleur, soulignement supprimé */
.cp-news-copy h3 a,
.cp-article-card h3 a,
.cp-small-game h3 a,
.cp-feed-copy h3 a,
.cp-secondary-lead h2 a,
.cp-main-game h3 a {
  color: inherit;
  text-decoration: none;
}

.cp-news-copy h3 a:hover,
.cp-article-card h3 a:hover,
.cp-small-game h3 a:hover,
.cp-feed-copy h3 a:hover,
.cp-secondary-lead h2 a:hover,
.cp-main-game h3 a:hover {
  color: var(--cp-blue);
}

/* --- Liste d'actualités (panneau « Dernières actualités ») ------------- */

.cp-news-panel {
  min-width: 0;
  padding: 2px 0 0;
}

.cp-news-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 13px;
  padding: 12.8px 0;
  border-bottom: 1px solid var(--cp-line);
}

.cp-news-row:last-of-type {
  border: none;
}

.cp-news-image {
  display: block;
  width: 105px;
  aspect-ratio: 1.25 / 1;
  overflow: hidden;
  border-radius: 5px;
  background-color: #edf0f6;
  background-position: center;
  background-size: cover;
}

.cp-news-copy {
  min-width: 0;
}

.cp-news-copy > span {
  display: block;
  margin: 0 0 5px;
  color: var(--cp-blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cp-news-copy h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}

.cp-news-copy time {
  color: var(--cp-muted);
  font-size: 12px;
}

/* --- Colonnes principales ---------------------------------------------- */

.cp-main-column,
.cp-side-column {
  min-width: 0;
}

.cp-main-column {
  margin-top: 0;
}

.cp-section {
  margin-bottom: 42px;
}

.cp-more-section {
  margin-top: 0;
}

.cp-games-section {
  margin-bottom: 28px;
}

/* --- Grilles d'articles ------------------------------------------------- */

.cp-article-grid {
  display: grid;
  gap: 22px;
}

.cp-three-columns,
.cp-main-game {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 15px;
}

/* --- Carte d'article ---------------------------------------------------- */

.cp-article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  background: var(--cp-paper);
  transition: transform .18s ease, box-shadow .18s ease;
}

.cp-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 26px rgba(20, 34, 65, .08);
}

.cp-article-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background-color: #eef0f6;
  background-position: center;
  background-size: cover;
}

.cp-article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 15px;
}

.cp-article-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 2px 0 10px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.27;
  letter-spacing: -.02em;
}

.cp-article-card-body > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0 0 18px;
  color: #646a77;
  font-size: 14px;
  line-height: 1.5;
}

.cp-type-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 8px;
  border-radius: 3px;
  background: var(--cp-blue-dark);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
}

/* Pastille de note (cartes d'articles et jaquettes du catalogue) */
.cp-score {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 40px;
  height: 40px;
  padding: 7px 9px;
  box-sizing: border-box;
  border-radius: 6px;
  background: linear-gradient(145deg, #0070d1 0%, #003791 100%);
  box-shadow: 0 5px 18px rgba(0, 25, 70, .25);
  color: var(--cp-line);
  font-size: 13px;
  font-weight: 850;
}

.cp-card-date {
  margin-top: auto;
  padding-top: 10px;
  color: var(--cp-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cp-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--cp-line);
  color: var(--cp-muted);
  font-size: 10px;
}

.cp-card-bottom a {
  color: var(--cp-blue);
  font-weight: 800;
  text-decoration: none;
}

/* --- Deuxième « une » (bannière éditoriale) ---------------------------- */

.cp-secondary-lead {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .95fr;
  aspect-ratio: 4 / 1;
  min-height: 0;
  margin: 30px 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(100, 145, 255, .18);
  border-radius: 10px;
  background: #06142e;
  box-shadow: 0 8px 24px rgba(4, 14, 35, .12);
}

/* Fondu entre le texte et l'image */
.cp-secondary-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #06142e 0%,
    #06142e 32%,
    rgba(6, 20, 46, .96) 43%,
    rgba(6, 20, 46, .48) 63%,
    rgba(6, 20, 46, .05) 100%
  );
}

.cp-secondary-lead-image {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: -2;
  display: block;
  background-color: #071735;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cp-secondary-lead-image > span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  background: var(--cp-purple);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
}

.cp-secondary-lead-copy {
  grid-column: 1 / -1;
  align-self: center;
  width: 58%;
  padding: 24px 30px;
  color: #fff;
}

.cp-secondary-lead-copy .cp-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--cp-paper);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cp-secondary-lead-copy .cp-meta i {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b8dff;
}

.cp-secondary-lead-copy h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.cp-secondary-lead-copy h2 a {
  color: inherit;
  text-decoration: none;
}

.cp-secondary-lead-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.5;
}

.cp-secondary-lead-copy > .cp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 5px;
  background: #fff;
  color: #075be8;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.cp-secondary-lead-copy > .cp-text-link:hover {
  background: #eaf1ff;
  transform: translateY(-1px);
}

/* --- Jeu principal (jaquette + infos) ---------------------------------- */

.cp-main-game {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--cp-line);
  border-radius: 5px;
  background: #fff;
}

.cp-main-game-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: #eef0f6;
}

.cp-main-game-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .25s ease;
}

.cp-main-game-cover:hover img {
  transform: scale(1.025);
}

.cp-no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--cp-navy);
  font-family: 'Anta';
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.cp-main-game-copy {
  min-width: 0;
  padding: 0;
}

.cp-main-game h3 {
  margin: 7px 0;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.cp-main-game-actions {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
}

.cp-main-game-actions > .cp-game-price {
  width: 70px;
}

.cp-game-platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.cp-game-platform-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid var(--cp-line);
  border-radius: 5px;
  background: #f3f7fc;
  color: var(--cp-navy);
  font-size: 10px;
  font-weight: 850;
}

.cp-game-genres {
  margin: 0;
  color: var(--cp-muted);
  font-size: 11px;
  line-height: 1.5;
}

.cp-game-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 8px 0 12px;
  color: #646a77;
  font-size: 11px;
  line-height: 1.5;
}

/* Bouton prix / note (carré bleu) */
.cp-game-price {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 7px 10px;
  border-radius: 6px;
  background: linear-gradient(145deg, #0070d1 0%, #003791 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.cp-game-price:hover {
  background: var(--cp-navy);
  color: #fff;
}

/* --- Petits jeux (liste compacte) -------------------------------------- */

.cp-small-game {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cp-line);
}

.cp-small-game-cover {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 5px;
}

.cp-small-game-cover > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--cp-navy);
  font-size: 14px;
  font-weight: 900;
}

.cp-small-game-copy {
  min-width: 0;
}

.cp-small-game h3 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.cp-small-game p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 10px;
  line-height: 1.4;
}

.cp-game-price-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 74px;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cp-note-small {
  min-width: 0 !important;
  width: 43px !important;
  min-height: 44px;
}

.cp-note-small.cp-note-empty {
  visibility: hidden;
  box-shadow: none;
}

.cp-small-game-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cp-muted);
  font-size: 21px;
  text-decoration: none;
}

/* --- Bloc éditorial (signature Citizen Play) --------------------------- */

.cp-editorial-box {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  margin-top: 30px;
  padding: 30px 34px;
  border: 1px solid rgba(0, 112, 209, .22);
  border-radius: 10px;
  background: #07172f;
  color: #fff;
}

/* Cercles décoratifs dans le coin droit */
.cp-editorial-box::before,
.cp-editorial-box::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.cp-editorial-box::before {
  top: -155px;
  right: -55px;
  width: 280px;
  height: 280px;
  border: 35px solid rgba(0, 112, 209, .17);
  box-shadow: 0 0 70px rgba(0, 112, 209, .12);
}

.cp-editorial-box::after {
  top: -100px;
  right: 5px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(105, 181, 255, .18);
  background: rgba(0, 55, 145, .12);
  filter: blur(2px);
}

.cp-editorial-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

.cp-editorial-box .cp-eyebrow {
  color: #69b5ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.cp-editorial-box h2 {
  max-width: 100%;
  margin: 8px 0 10px;
  color: #fff;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.cp-editorial-box p {
  max-width: 100%;
  margin: 0 0 16px;
  color: #c3ccdc;
  font-size: 13px;
  line-height: 1.65;
}

.cp-editorial-box .cp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cp-blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.cp-editorial-box .cp-text-link:hover {
  color: #fff;
}

/* Variante insérée sous « À lire en ce moment » */
.cp-editorial-inline {
  display: block;
  margin: 15px 0;
  padding: 26px 28px;
}

.cp-editorial-inline .cp-editorial-symbol {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
}

.cp-editorial-inline .cp-editorial-content h2 {
  margin: 6px 0 8px;
  font-size: 23px;
}

.cp-editorial-inline .cp-editorial-content p {
  margin: 0 0 30px;
}

/* --- Fil d'actualités (liste verticale) -------------------------------- */

.cp-feed-section {
  margin-top: 10px;
  padding-top: 32px;
  border-top: 2px solid var(--cp-navy);
}

.cp-feed-count {
  color: var(--cp-muted);
  font-size: 11px;
}

.cp-feed-list {
  border-top: 1px solid var(--cp-line);
}

.cp-feed-row {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--cp-line);
}

.cp-feed-image {
  display: block;
  width: 155px;
  aspect-ratio: 1.45 / 1;
  background: #eef0f6;
  background-position: center;
  background-size: cover;
}

.cp-feed-copy {
  min-width: 0;
}

.cp-feed-copy h3 {
  margin: 7px 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.cp-feed-copy > p {
  margin: 0;
  color: #646a77;
  font-size: 12px;
  line-height: 1.6;
}

.cp-feed-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cp-line);
  border-radius: 50%;
  color: var(--cp-blue);
  text-decoration: none;
}

.cp-feed-arrow:hover {
  background: var(--cp-blue);
  border-color: var(--cp-blue);
  color: #fff;
}

.cp-empty {
  padding: 22px;
  border: 1px solid var(--cp-line);
  color: var(--cp-muted);
  font-size: 13px;
}

/* --- Composants partagés : responsive ---------------------------------- */

@media (max-width: 1100px) {
  .cp-three-columns {
    gap: 14px;
  }

  .cp-article-card-body {
    padding: 12px;
  }

  .cp-article-card h3 {
    font-size: 15px;
  }
}

@media (max-width: 800px) {
  .cp-news-panel {
    padding-top: 4px;
  }

  .cp-three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-editorial-box {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .cp-news-row {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 11px;
  }

  .cp-news-image {
    width: 94px;
    max-width: 100%;
  }

  .cp-news-copy h3 {
    font-size: 13px;
  }

  .cp-three-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .cp-article-card-body {
    padding: 15px;
  }

  .cp-article-card h3 {
    font-size: 18px;
  }

  .cp-editorial-box {
    padding: 24px;
  }

  /* Décors du bloc éditorial décalés pour ne pas masquer le texte */
  .cp-editorial-box::before {
    right: -150px;
  }

  .cp-editorial-box::after {
    right: -90px;
  }

  .cp-secondary-lead-image {
    aspect-ratio: 1.4 / 1;
  }

  .cp-secondary-lead-copy {
    padding: 19px;
  }

  .cp-feed-row {
    grid-template-columns: 95px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
  }

  .cp-feed-image {
    width: 95px;
    aspect-ratio: 1 / 1;
  }

  .cp-feed-copy h3 {
    font-size: 15px;
  }

  .cp-feed-copy > p,
  .cp-feed-arrow {
    display: none;
  }
}


/* ==========================================================================
   08. ACCUEIL (.cp-home)
   --------------------------------------------------------------------------
   Les sélecteurs « .cp-home .cp-x » sont plus spécifiques que « .cp-x » :
   ils surchargent donc les composants partagés ci-dessus sur l'accueil.
   Les fusions de ce bloc supposent que .cp-top-grid, .cp-content-grid,
   .cp-hero*, .cp-side-column ne servent que sur l'accueil.
   ========================================================================== */

.cp-home {
  --cp-purple: #003791;   /* les accents violets deviennent bleu profond */
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: #fff;
  color: #171a20;
}

/* --- Kicker (ligne au-dessus de la une) -------------------------------- */

.cp-home-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--cp-line);
  color: var(--cp-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.cp-home-kicker > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cp-navy);
}

.cp-home-kicker i,
.cp-home .cp-hero-label i {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.cp-home-kicker i {
  background: var(--cp-purple);
}

.cp-home .cp-hero-label i {
  background: #0070d1;
}

/* --- Grilles de page ---------------------------------------------------- */

.cp-home .cp-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, .85fr);
  gap: 28px;
  align-items: start;
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
  margin: 0 auto 46px;
  box-sizing: border-box;
}

.cp-home .cp-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .92fr);
  gap: 34px;
  align-items: start;
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
  margin: 42px auto 0;
  box-sizing: border-box;
}

.cp-home .cp-main-column,
.cp-home .cp-side-column,
.cp-home .cp-news-panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.cp-home .cp-side-column {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.cp-home .cp-news-panel {
  width: 100%;
  overflow: hidden;
}

/* --- Une (hero) --------------------------------------------------------- */

.cp-home .cp-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
  border-radius: 10px;
  background-color: #10182a;
  background-image: var(--cp-hero-image);
  background-position: center;
  background-size: cover;
  color: #fff;
  text-decoration: none;
}

.cp-home .cp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .78) 0%,
    rgba(0, 0, 0, .62) 28%,
    rgba(0, 0, 0, .25) 58%,
    rgba(0, 0, 0, 0) 100%
  );
  transition: background-color .2s ease;
}

.cp-home .cp-hero:hover .cp-hero-overlay {
  background-color: rgba(0, 35, 90, .12);
}

.cp-home .cp-hero-content {
  position: relative;
  z-index: 1;
  width: 70%;
  min-width: 0;
  padding: 30px;
  box-sizing: border-box;
  text-align: left;
}

.cp-home .cp-hero-label,
.cp-home .cp-hero-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--cp-paper);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cp-home .cp-hero-label {
  margin-bottom: 12px;
}

.cp-home .cp-hero-date {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .78);
  font-weight: 600;
  letter-spacing: .04em;
}

.cp-home .cp-hero-content h1 {
  max-width: none;
  margin: 0 0 12px;
  color: #fff;
  font-size: 2.39em;
  font-weight: 750;
  line-height: 1.07;
  letter-spacing: -.035em;
  text-align: left;
}

.cp-home .cp-hero-content > p {
  max-width: none;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}

.cp-home .cp-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 4px;
  background: #0070d1;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease;
}

.cp-home .cp-hero-link:hover {
  background: #003791;
}

.cp-home .cp-hero-link b {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
}

/* Note du test (carré bleu en haut à droite) */
.cp-home .cp-hero-score {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 76px;
  height: 76px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 6px;
  background: linear-gradient(145deg, #0070d1 0%, #003791 100%);
  box-shadow: 0 5px 18px rgba(0, 25, 70, .25);
  color: #fff;
}

.cp-home .cp-hero-score strong {
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.04em;
}

.cp-home .cp-hero-score small {
  font-size: 10px;
  font-weight: 700;
  opacity: .9;
}

/* --- Titres de section (accueil) --------------------------------------- */

.cp-home .cp-section-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 0 0 4px;
  border-bottom: 1px solid #d7dbe2;
}

.cp-home .cp-section-heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 38px;
  height: 3px;
  background: #003791;
}

.cp-home .cp-section-heading h2 {
  margin: 0;
  color: #171a20;
  font-family: var(--font-body), sans-serif;
  font-size: clamp(13px, 2vw, 19px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.055em;
}

.cp-home .cp-section-heading h2 > span {
  color: #0070d1;
}

.cp-home .cp-section-heading .cp-text-link {
  flex-shrink: 0;
}

/* --- Liens et accents (accueil) ---------------------------------------- */

.cp-home .cp-text-link,
.cp-home .cp-article-card h3 a:hover,
.cp-home .cp-small-game h3 a:hover,
.cp-home .cp-feed-copy h3 a:hover,
.cp-home .cp-main-game h3 a:hover {
  color: #003791;
}

.cp-home .cp-eyebrow,
.cp-editorial-box .cp-text-link {
  color: var(--cp-blue);
  font-size: 12px;
  letter-spacing: -.01em;
}

.cp-home .cp-secondary-lead h2 a:hover {
  color: #efe8e8;
}

/* --- Colonne principale ------------------------------------------------- */

.cp-home .cp-article-grid.cp-three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cp-home .cp-secondary-lead {
  margin: 38px 0 42px;
}

.cp-home .cp-games-section {
  margin: 0;
}

/* --- Jeu principal (accueil) ------------------------------------------- */

.cp-home .cp-main-game {
  display: grid;
  grid-template-columns: minmax(90px, 30%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  overflow: hidden;
  border: 1px solid #e5e7ed;
  background: #fff;
}

.cp-home .cp-main-game-cover {
  display: block;
  min-width: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f0f1f4;
}

.cp-home .cp-main-game-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cp-home .cp-main-game-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.cp-home .cp-main-game-copy .cp-eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  color: #666d79;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.cp-home .cp-main-game h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 6px 0 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.cp-home .cp-main-game-copy .cp-game-summary {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.55;
}

.cp-home .cp-main-game-copy .cp-text-link {
  margin-top: 4px;
}

/* --- Petits jeux (accueil) --------------------------------------------- */

.cp-home .cp-small-games {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 12px;
  margin-top: 10px;
}

.cp-home .cp-small-game {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--cp-line);
}

.cp-home .cp-small-game-cover {
  display: block;
  width: 68px;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 5px;
}

.cp-home .cp-small-game-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cp-home .cp-small-game-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cp-home .cp-small-game h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.2;
}

.cp-home .cp-small-game p {
  margin: 0;
  color: #707784;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cp-home .cp-game-price-small {
  justify-self: end;
  min-width: 74px;
  white-space: nowrap;
}

.cp-home .cp-small-game-arrow {
  justify-self: end;
}

/* --- Fil d'actualités (accueil) ---------------------------------------- */

.cp-home .cp-feed-section {
  width: min(1360px, calc(100% - 48px));
  margin: 48px auto 0;
}

.cp-home .cp-feed-list {
  border-top: 1px solid #e0e3e8;
}

.cp-home .cp-feed-row {
  border-bottom: 1px solid #e0e3e8;
}

/* --- Bannière publicitaire horizontale de l'accueil -------------------- */

.cp-home-banner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 9px 0 24px;
  box-sizing: border-box;
  text-align: center;
}

.cp-home-banner-label {
  display: block;
  margin-bottom: 8px;
  color: var(--cp-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cp-home-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.cp-home-banner-content iframe {
  display: block;
  max-width: 100%;
}

.cp-home-banner-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.cp-home-banner-content .adsbygoogle {
  max-width: 100%;
}

/* Instant Gaming : format horizontal */
.cp-home-banner-content .ig-dynamic-banner {
  width: 728px !important;
  max-width: 100% !important;
  height: 90px !important;
  box-sizing: border-box;
  background-position: center !important;
  background-size: cover !important;
}

/* --- Accueil : responsive ---------------------------------------------- */

@media (max-width: 1100px) {
  /* Hors accueil uniquement : sur l'accueil, la grille est pilotée plus bas */
  .cp-hero {
    min-height: 400px;
  }
}

@media (max-width: 1050px) {
  .cp-home .cp-content-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 24px;
  }

  .cp-home .cp-article-grid.cp-three-columns {
    gap: 15px;
  }
}

@media (max-width: 800px) {
  .cp-home .cp-top-grid,
  .cp-home .cp-content-grid {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .cp-home .cp-main-column,
  .cp-home .cp-side-column {
    width: 100%;
  }

  .cp-home .cp-news-panel {
    overflow: visible;
  }

  .cp-home .cp-hero-content {
    max-width: 70%;
    padding: 22px;
  }

  .cp-home .cp-hero-content h1 {
    font-size: clamp(22px, 4vw, 30px);
    overflow-wrap: anywhere;
  }

  .cp-home .cp-hero-content > p {
    font-size: 12px;
    line-height: 1.5;
  }

  .cp-home .cp-hero-score strong {
    font-size: 23px;
  }
}

@media (max-width: 760px) {
  .cp-home .cp-feed-section {
    width: calc(100% - 32px);
  }

  .cp-home .cp-article-grid.cp-three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-home .cp-small-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-home-banner {
    margin: 22px 0 28px;
  }
}

@media (max-width: 650px) {
  .cp-home .cp-small-games {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-home .cp-main-game-copy .cp-text-link {
    display: none;
  }

  .cp-home .cp-small-game {
    grid-template-columns: 58px minmax(0, 1fr) auto 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .cp-home .cp-small-game-cover {
    width: 58px;
  }

  .cp-home .cp-small-game-cover img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .cp-home .cp-small-game-copy h3 {
    margin: 0;
    overflow-wrap: anywhere;
  }

  .cp-home .cp-small-game-copy p {
    margin: 4px 0 0;
    line-height: 1.3;
  }

  .cp-home .cp-small-game .cp-game-price {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .cp-home .cp-secondary-lead {
    grid-template-columns: minmax(0, 1fr);
    aspect-ratio: auto;
    min-height: 0;
    margin-top: 24px;
  }

  .cp-home .cp-secondary-lead-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
  }

  .cp-home .cp-secondary-lead-copy {
    min-width: 0;
    padding: 16px;
  }

  .cp-home .cp-secondary-lead-copy h2 {
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
    font-size: 20px;
    line-height: 1.25;
  }

  .cp-home .cp-secondary-lead-copy .cp-text-link {
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .cp-home-kicker {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 9px;
  }

  .cp-home .cp-top-grid,
  .cp-home .cp-content-grid {
    gap: 24px;
  }

  .cp-home .cp-hero {
    aspect-ratio: auto;
    min-height: 340px;
  }

  .cp-home .cp-hero-overlay {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, .88) 0%,
      rgba(0, 0, 0, .58) 55%,
      rgba(0, 0, 0, .08) 100%
    );
  }

  .cp-home .cp-hero-content {
    width: 100%;
    max-width: 100%;
    padding: 22px 20px;
  }

  .cp-home .cp-hero-content h1 {
    max-width: calc(100% - 48px);
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.1;
  }

  .cp-home .cp-hero-score {
    top: 12px;
    right: 12px;
    width: 58px;
    height: 58px;
    padding: 5px;
  }

  .cp-home .cp-hero-score strong {
    font-size: 21px;
  }

  .cp-home .cp-main-game {
    grid-template-columns: minmax(100px, 38%) minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .cp-home .cp-article-grid.cp-three-columns {
    grid-template-columns: 1fr;
  }

  .cp-home .cp-main-game {
    gap: 12px;
  }

  .cp-home .cp-main-game h3 {
    font-size: 16px;
  }

  .cp-home .cp-main-game-copy .cp-game-summary {
    font-size: 12px;
  }

  .cp-home .cp-section-heading {
    align-items: flex-start;
  }

  .cp-home .cp-section-heading .cp-text-link {
    font-size: 11px;
  }
}

/* Une pleine largeur entre 800 et 1200px, actualités en 4 colonnes dessous.
   Placé en dernier pour l'emporter sur les règles de base. */
@media (min-width: 800px) and (max-width: 1200px) {
  .cp-home .cp-top-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-home .cp-news-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
  }

  .cp-home .cp-news-panel > .cp-section-heading {
    grid-column: 1 / -1;
  }

  .cp-home .cp-news-panel > .cp-news-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .cp-home .cp-news-panel .cp-news-image {
    display: block;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .cp-home .cp-news-panel .cp-news-copy {
    min-width: 0;
  }

  .cp-home .cp-news-panel .cp-news-copy h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  .cp-home .cp-news-row:last-of-type {
    border-bottom: 1px solid var(--cp-line);
  }
}


/* ==========================================================================
   09. PUBLICITÉS
   ========================================================================== */

.cp-morris {
  box-sizing: border-box;
  border-radius: 10px;
}

.cp-morris-label {
  display: block;
  margin-bottom: 12px;
  color: #747d8f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.cp-ig-banner {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

/* Surcharge du radius imposé par Instant Gaming */
.ig-dynamic-banner.ig-size-800,
.ig-dynamic-banner.ig-size-650,
.ig-dynamic-banner.ig-size-500,
.ig-dynamic-banner.ig-size-400 {
  border-radius: 8px !important;
}

/* Gamesplanet */
.cp-advertiser-gameplanet {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.cp-advertiser-gameplanet iframe {
  display: block;
  width: 300px;
  max-width: 100%;
  height: 250px;
  border: 0;
}

/* Fnac (Awin) : format carré par défaut */
.cp-advertiser-fnac {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.cp-advertiser-fnac a,
.cp-advertiser-fnac img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: 250px;
  border: 0;
  object-fit: contain;
}

/* Fnac : format horizontal (leaderboard) */
.cp-category-ad-horizontal .cp-advertiser-fnac a,
.cp-home-banner .cp-advertiser-fnac a,
.cp-home-banner .cp-advertiser-fnac img {
  width: 728px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


/* ==========================================================================
   10. PAGINATION
   ========================================================================== */

.cp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 48px;
  padding: 27px 0 5px;
  color: var(--cp-muted);
  font-size: 12px;
}

.cp-pagination a {
  color: var(--cp-blue);
  font-weight: 800;
  text-decoration: none;
}

.cp-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--cp-blue);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.cp-pagination-link:hover,
.cp-pagination-link.is-active {
  background: var(--cp-blue);
  border-color: var(--cp-blue);
  color: #fff;
}

.cp-pagination-link.is-active {
  pointer-events: none;
}

.cp-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  color: var(--cp-muted);
}

@media (max-width: 560px) {
  .cp-pagination {
    font-size: 11px;
  }
}


/* ==========================================================================
   11. PAGE DE RUBRIQUE (category.php)
   ========================================================================== */

.cp-category-page {
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  padding: 24px 0 0;
  color: var(--ink, #151b29);
}

.cp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--muted, #747d8f);
  font-size: 12px;
}

.cp-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.cp-breadcrumb a:hover {
  color: var(--cp-blue, #0070d1);
}

.cp-breadcrumb [aria-current=page] {
  color: var(--ink, #151b29);
  font-weight: 700;
}

/* --- En-tête de rubrique ------------------------------------------------ */

.cp-category-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line, #e5e9f0);
}

.cp-category-heading-copy {
  min-width: 0;
}

.cp-category-kicker {
  display: block;
  color: var(--cp-blue, #0070d1);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cp-category-kicker > span {
  padding: 0 3px;
  color: #9aa4b5;
}

.cp-category-header h1 {
  margin: 8px 0 9px;
  font: 800 clamp(34px, 4vw, 52px)/1.06 var(--font-display, "Manrope", sans-serif);
  letter-spacing: -1.8px;
}

.cp-category-header h1 > span {
  color: var(--cp-blue, #0070d1);
}

.cp-category-header p {
  max-width: 680px;
  margin: 0;
  color: var(--muted, #747d8f);
  font-size: 15px;
  line-height: 1.65;
}

.cp-category-count {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-bottom: 3px;
}

.cp-category-count strong {
  font: 800 30px/1 var(--font-display, "Manrope", sans-serif);
  letter-spacing: -1px;
}

.cp-category-count span {
  color: var(--muted, #747d8f);
  font-size: 11px;
}

/* --- Filtres ------------------------------------------------------------ */

.cp-category-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 18px 0 22px;
  scrollbar-width: thin;
}

.cp-category-filters a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line, #e5e9f0);
  border-radius: 5px;
  background: #fff;
  color: #515d70;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s, background .18s, border-color .18s;
}

.cp-category-filters a:hover,
.cp-category-filters a.is-active {
  border-color: var(--cp-blue, #0070d1);
  background: var(--cp-blue, #0070d1);
  color: #fff;
}

/* --- Emplacements publicitaires ---------------------------------------- */

.cp-category-ad {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  text-align: center;
}

.cp-category-ad-label {
  display: block;
  margin: 0 0 8px;
  color: #8993a3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.cp-category-ad-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.cp-category-ad-content > * {
  max-width: 100%;
}

.cp-category-ad-content iframe {
  display: block;
  max-width: 100%;
  border: 0;
}

.cp-category-ad-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.cp-category-ad-horizontal {
  width: 100%;
  margin: 0;
}

.cp-category-ad-rectangle,
.cp-category-ad-inline {
  width: 100%;
  margin: 0 0 26px;
}

.cp-category-ad-rectangle .cp-category-ad-content iframe,
.cp-category-ad-rectangle .cp-category-ad-content img,
.cp-category-ad-inline .cp-category-ad-content iframe,
.cp-category-ad-inline .cp-category-ad-content img {
  width: 300px;
  max-width: 100%;
}

/* --- Mise en page ------------------------------------------------------- */

.cp-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 32px;
}

.cp-category-results,
.cp-category-sidebar {
  min-width: 0;
}

.cp-category-results-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 0 0 4px;
  border-bottom: 1px solid #d7dbe2;
}

.cp-category-results-heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 58px;
  height: 3px;
  background: var(--cp-blue-dark);
}

.cp-category-results-heading h2 {
  margin: 0;
  color: #171a20;
  font-family: var(--font-body), sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.cp-category-results-heading h2 span {
  color: var(--cp-blue);
}

.cp-category-results-heading > span {
  color: var(--muted, #747d8f);
  font-size: 11px;
}

/* --- Cartes de rubrique ------------------------------------------------- */

.cp-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px 18px;
}

.cp-category-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line, #e5e9f0);
  border-radius: 8px;
  background: #fff;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.cp-category-card:hover {
  transform: translateY(-3px);
  border-color: #d1dbea;
  box-shadow: 0 10px 28px #14264214;
}

.cp-category-card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #edf1f7 center / cover no-repeat;
  text-decoration: none;
}

/* Visuel de remplacement quand aucune image n'est définie */
.cp-category-card-image:not([style])::before {
  content: "PSW";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f1f5fa, #e5ebf4);
  color: #a6b3c6;
  font: 800 13px var(--font-display, "Manrope", sans-serif);
  letter-spacing: 2px;
}

.cp-category-card-type {
  position: absolute;
  left: 11px;
  bottom: 10px;
  max-width: calc(100% - 22px);
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--cp-blue, #0070d1);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.cp-category-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px;
}

.cp-category-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--muted, #747d8f);
  font-size: 10px;
  line-height: 1.4;
}

.cp-category-card-meta > span:first-child {
  color: var(--cp-blue, #0070d1);
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.cp-category-card h3 {
  margin: 0 0 10px;
  font: 800 16px/1.35 var(--font-display, "Manrope", sans-serif);
  letter-spacing: -.25px;
}

.cp-category-card h3 a {
  color: var(--ink, #151b29);
  text-decoration: none;
}

.cp-category-card h3 a:hover {
  color: var(--cp-blue, #0070d1);
}

.cp-category-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0 0 15px;
  color: #626d7e;
  font-size: 12px;
  line-height: 1.6;
}

.cp-category-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--cp-blue, #0070d1);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.cp-category-read-more:hover {
  color: var(--cp-navy, #003791);
}

/* --- Barre latérale ----------------------------------------------------- */

.cp-category-sidebar-note {
  padding: 22px;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  background: #f5f8fc;
}

.cp-category-sidebar-note h2 {
  margin: 10px 0;
  font: 800 21px/1.25 var(--font-display, "Manrope", sans-serif);
  letter-spacing: -.5px;
}

.cp-category-sidebar-note p {
  margin: 0 0 17px;
  color: #626d7e;
  font-size: 13px;
  line-height: 1.65;
}

.cp-category-sidebar-note > a,
.cp-category-empty > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cp-blue, #0070d1);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

/* Bloc « Les plus lus » : reprend le composant « Dernières actualités » */
.cp-category-sidebar .cp-category-popular-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 26px;
  padding: 2px 0 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cp-category-sidebar .cp-category-popular-panel .cp-section-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 10px;
  padding: 0 0 4px;
  border-bottom: 1px solid #d7dbe2;
}

.cp-category-sidebar .cp-category-popular-panel .cp-section-heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 58px;
  height: 3px;
  background: var(--cp-blue-dark);
}

.cp-category-sidebar .cp-category-popular-panel .cp-section-heading h2 {
  margin: 0;
  color: #171a20;
  font-family: var(--font-body), sans-serif;
  font-size: clamp(13px, 2vw, 19px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.055em;
}

.cp-category-sidebar .cp-category-popular-panel .cp-section-heading h2 > span {
  color: var(--cp-blue);
}

.cp-category-sidebar .cp-category-popular-panel .cp-news-row {
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cp-line);
}

.cp-category-sidebar .cp-category-popular-panel .cp-news-image {
  width: 105px;
  aspect-ratio: 1.25 / 1;
  overflow: hidden;
  border-radius: 5px;
}

.cp-category-sidebar .cp-category-popular-panel .cp-news-copy > span {
  color: var(--cp-blue);
}

.cp-category-sidebar .cp-category-popular-panel .cp-news-copy h3 {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.cp-category-sidebar .cp-category-popular-panel .cp-news-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.cp-category-sidebar .cp-category-popular-panel .cp-news-copy h3 a:hover {
  color: var(--cp-blue);
}

.cp-category-popular-panel .cp-news-copy time {
  color: var(--muted);
}

.cp-category-popular-caption {
  flex: 0 0 auto;
  color: var(--cp-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

/* --- Rubrique vide ------------------------------------------------------ */

.cp-category-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px;
  border: 1px dashed #d3dce9;
  border-radius: 9px;
  background: #fafbfd;
  text-align: center;
}

.cp-category-empty-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--cp-blue, #0070d1);
  color: #fff;
  font: 800 17px 'Anta';
}

.cp-category-empty h2 {
  margin: 0 0 8px;
  font: 800 23px var(--font-display, "Manrope", sans-serif);
}

.cp-category-empty p {
  margin: 0 0 18px;
  color: var(--muted, #747d8f);
  font-size: 14px;
}

/* --- Rubrique : responsive --------------------------------------------- */

@media (max-width: 1100px) {
  .cp-category-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
  }

  .cp-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 15px;
  }
}

@media (max-width: 1000px) {
  .cp-category-layout {
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .cp-category-page {
    width: min(100% - 30px, 640px);
    padding-top: 20px;
  }

  .cp-breadcrumb {
    margin-bottom: 22px;
  }

  .cp-category-header {
    align-items: flex-start;
    gap: 16px;
  }

  .cp-category-header h1 {
    font-size: clamp(32px, 8vw, 43px);
    letter-spacing: -1.2px;
  }

  .cp-category-header p {
    font-size: 13px;
  }

  .cp-category-count {
    padding-top: 3px;
  }

  .cp-category-count strong {
    font-size: 24px;
  }

  .cp-category-count span {
    max-width: 70px;
    line-height: 1.4;
    text-align: right;
  }

  .cp-category-layout {
    display: block;
  }

  .cp-category-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 28px;
  }

  .cp-category-ad-horizontal {
    margin-bottom: 24px;
  }

  .cp-category-ad-rectangle {
    margin-bottom: 0;
  }

  .cp-category-ad-inline {
    display: block;
    grid-column: 1 / -1;
  }

  .cp-category-sidebar-note {
    padding: 20px;
  }

  .cp-category-sidebar .cp-category-popular-panel {
    overflow: visible;
  }

  .cp-category-sidebar .cp-category-popular-panel .cp-news-row {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 11px;
  }

  .cp-category-sidebar .cp-category-popular-panel .cp-news-image {
    width: 94px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .cp-category-page {
    width: calc(100% - 24px);
  }

  .cp-category-header {
    display: block;
  }

  .cp-category-count {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
  }

  .cp-category-count span {
    max-width: none;
    text-align: left;
  }

  .cp-category-filters {
    margin-right: -12px;
    padding-right: 12px;
  }

  .cp-category-results-heading {
    display: block;
  }

  .cp-category-results-heading h2 {
    font-size: 18px;
  }

  .cp-category-results-heading > span {
    display: none;
    margin-top: 5px;
  }

  .cp-category-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .cp-category-card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
  }

  .cp-category-card-image {
    height: 100%;
    min-height: 170px;
    aspect-ratio: auto;
  }

  .cp-category-card-type {
    left: 7px;
    bottom: 7px;
    padding: 4px 5px;
    font-size: 8px;
  }

  .cp-category-card-body {
    padding: 12px;
  }

  .cp-category-card-meta {
    gap: 5px;
    margin-bottom: 7px;
    font-size: 9px;
  }

  .cp-category-card h3 {
    font-size: 14px;
    line-height: 1.3;
  }

  .cp-category-card p {
    margin-bottom: 7px;
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .cp-category-read-more {
    font-size: 10px;
  }

  .cp-category-empty {
    padding: 48px 18px;
  }
}


/* ==========================================================================
   12. PAGE ARTICLE
   ========================================================================== */

.cp-article-page {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 26px 0 0;
  box-sizing: border-box;
  color: var(--ink, #151b29);
}

.cp-article-page .cp-category-kicker {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 10px;
  box-sizing: border-box;
}

.cp-article {
  min-width: 0;
}

/* --- Grille éditoriale (identique à l'accueil) ------------------------- */

.cp-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .85fr);
  gap: 28px;
  align-items: start;
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.cp-article-main {
  min-width: 0;
}

.cp-article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.cp-article-main .cp-article-reading {
  width: 100%;
}

/* --- En-tête ------------------------------------------------------------ */

.cp-article-header {
  max-width: 900px;
  margin: 0 auto 28px;
}

.cp-article-main .cp-article-header {
  max-width: none;
}

.cp-article-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.cp-article-type {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 4px;
  background: var(--cp-blue, #0070d1);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}

.cp-article-category {
  color: var(--muted, #747d8f);
  font-size: 12px;
  font-weight: 700;
}

.cp-article-header h1 {
  margin: 0 0 17px;
  font: 800 clamp(32px, 5vw, 54px)/1.08 var(--font-display, "Manrope", sans-serif);
  letter-spacing: -1.8px;
  overflow-wrap: anywhere;
}

.cp-article-header h1 > span {
  color: var(--cp-blue, #0070d1);
}

.cp-article-lead {
  max-width: 820px;
  margin: 0 0 20px;
  color: var(--muted, #747d8f);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.cp-article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted, #747d8f);
  font-size: 12px;
}

.cp-article-byline strong {
  color: var(--ink, #151b29);
}

.cp-article-cover {
  width: 100%;
  margin: 0 0 32px;
}

.cp-article-cover img {
  display: block;
  width: 100%;
  max-height: 560px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #eef1f5;
}

.cp-article-cover figcaption {
  margin-top: 8px;
  color: var(--muted, #747d8f);
  font-size: 11px;
  line-height: 1.5;
}

/* Mention de la version testée / prévisualisée */
.cp-article-version-note {
  margin: -12px 0 28px;
  padding: 10px 14px;
  color: var(--cp-navy);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

/* --- Contenu rédactionnel ---------------------------------------------- */

.cp-article-reading {
  width: min(100%, 760px);
  margin: 0 auto;
}

.cp-article-content {
  min-width: 0;
  color: var(--ink, #202738);
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.cp-article-content > :first-child {
  margin-top: 0;
}

.cp-article-content h2 {
  margin: 38px 0 14px;
  font: 800 26px/1.5 var(--font-display, "Manrope", sans-serif);
  color:var(--cp-blue-dark);
  letter-spacing: -.7px;
}

.cp-article-content h3 {
  margin: 30px 0 12px;
  font: 800 26px/1.5 var(--font-display, "Manrope", sans-serif);
  color:var(--cp-blue-dark);
}

.cp-article-content p {
  margin: 0 0 22px;
}

/* Encadré éditorial dans les articles */

.cp-article-content p.article-highlight {
    margin: 28px 0;
    padding: 22px 26px;
    background: #edf4ff;
    border-left: 4px solid var(--cp-blue);
    border-radius: 7px;
    color: #263b58;
    font-size: 16px;
    line-height: 1.75;
}

.cp-article-content p.article-highlight strong {
    color: #174f9e;
}


.cp-article-content a {
  color: var(--cp-blue, #0070d1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cp-article-content ul,
.cp-article-content ol {
  margin: 0 0 24px;
  padding-left: 25px;
}

.cp-article-content li {
  margin-bottom: 8px;
}



blockquote {
   color: var(--cp-blue-dark);
    font-family: var(--font-body);
    font-size: 40px;
    width: 80%;
    margin: 0 auto 50px auto;
}
blockquote h1 {
   font-size: 4rem;
}
blockquote p {
   font-style: italic;
   margin-bottom: 0;
}

blockquote p::before,
blockquote p::after {
   content: "“";
   font-family: var(--font-display);
   font-size: 7rem;
   margin: -3rem 0 0 -4rem;
   position: absolute;
   opacity: 0.5;
}

blockquote p::after {
   content: "”";
   margin: -1rem -4rem 0 0;
}

blockquote cite {
   font-size: 1.5rem;
}

.cp-article-content img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  vertical-align: top;
  border-radius: 8px;
}

.cp-article-content figure {
  max-width: 100%;
  margin: 26px 0;
}

.cp-article-content p:has(> img + img) {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cp-article-content p:has(> img + img) img {
  margin: 0;
  min-width: 0;
  width: calc(50% - 6px);
}

/* Deux figures consécutives : affichage en deux colonnes */
.cp-article-content > figure:has(+ figure) {
    float: left;
    width: calc(50% - 6px);
    margin: 12px 12px 22px 0;
    box-sizing: border-box;
}

.cp-article-content > figure + figure {
    float: left;
    width: calc(50% - 6px);
    margin: 12px 0 22px;
    box-sizing: border-box;
}

/* L'image remplit sa figure, même si TinyMCE indique width="50%" */
.cp-article-content > figure img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* La légende reste sous son image */
.cp-article-content > figure figcaption {
    width: 100%;
    margin-top: 8px;
}

/* Le texte suivant reprend sous les deux images */
.cp-article-content > figure + p {
    clear: both;
}

.cp-article-content figcaption {
  margin-top: 8px;
  color: var(--muted, #747d8f);
  font-size: 12px;
  line-height: 1.5;
}

.cp-article-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 28px 0;
  border: 0;
  border-radius: 10px;
}

/* =========================================
   TABLEAUX — CONTENU DES ARTICLES PS WORLD
========================================= */

.cp-article-content table {
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 5px 20px rgba(15, 35, 65, 0.06);
}

/* En-tête */
.cp-article-content table thead {
    background: linear-gradient(110deg, #102b50, #174d80);
    color: #fff;
}

.cp-article-content table th {
    padding: 15px 17px;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    color: var(--cp-blue-dark);
    border-bottom: 2px solid var(--cp-blue);
}

/* Cellules */
.cp-article-content table td {
    padding: 13px 17px;
    color: #26384d;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

/* Alternance des lignes */
.cp-article-content table tbody tr:nth-child(even) {
    background: #f2f7fc;
}

.cp-article-content table tbody tr:nth-child(odd) {
    background: #fff;
}

/* Survol */
.cp-article-content table tbody tr {
    transition: background .18s ease;
}

.cp-article-content table tbody tr:hover {
    background: #e5f1fc;
}

/* Dernière ligne */
.cp-article-content table tbody tr:last-child td {
    border-bottom: 0;
}

/* Première colonne */
.cp-article-content table tbody td:first-child {
    font-weight: 700;
    color: #173e68;
}

/* Liens */
.cp-article-content table a {
    color: #1672b9;
    font-weight: 700;
    text-decoration: none;
}

.cp-article-content table a:hover {
    color: #0b4d83;
    text-decoration: underline;
}

/* Gras dans les cellules */
.cp-article-content table strong {
    color: #123b65;
}

.cp-article-content hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line, #e5e9f0);
}

/* Intégrations réseaux sociaux dans les articles */

.cp-social-embed {
    width: 100%;
    max-width: 100%;
    margin: 28px auto;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.cp-social-embed iframe {
    max-width: 100%;
}

.cp-social-x,
.cp-social-instagram {
    width: 100%;
}

.cp-social-x blockquote,
.cp-social-instagram blockquote {
    margin: 0 auto !important;
}

.cp-social-facebook iframe {
    width: 500px;
    max-width: 100%;
}

.cp-social-youtube iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

@media (max-width: 760px) {
  .cp-article-content blockquote {
    padding: 20px;
    font-size: 17px;
    margin-bottom: 10px;
  }
  blockquote p::before,
{
   content: "“";
   font-family: var(--font-display);
   font-size: 2rem;
   margin: -3rem 0 0 -4rem;
   position: absolute;
   opacity: 0.5;
}
blockquote p::after {
  content:'';
}
}
@media (max-width: 600px) {
    .cp-article-content p.article-highlight {
        padding: 17px 18px;
        margin: 22px 0;
        font-size: 15px;
    }
    .cp-article-content table {
        display: block;
        overflow-x: auto;
        white-space: normal;
        -webkit-overflow-scrolling: touch;
        font-size: 13px;
    }

    .cp-article-content table th,
    .cp-article-content table td {
        padding: 11px 13px;
        min-width: 110px;
    }
}


/* --- Verdict des tests -------------------------------------------------- */

.cp-review-panel {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 2px 20px;
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid var(--line, #e5e9f0);
  border-radius: 12px;
  background: #fff;
}

.cp-review-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 140px;
  padding: 14px 10px;
  border-radius: 10px;
  background: linear-gradient(145deg, #0879e8, #003d91);
  box-shadow: 0 6px 16px rgb(0 61 145 / 20%);
  color: #fff;
}

.cp-review-score strong {
  font: 900 58px/.95 var(--font-display, sans-serif);
  letter-spacing: -3px;
}

.cp-review-score > span {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  opacity: .8;
}

.cp-review-score small {
  margin-top: 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
}

.cp-review-verdict {
  min-width: 0;
}

.cp-review-verdict p {
  margin: 10px 0 0;
  color: #26364d;
  font-size: 15px;
  line-height: 1.7;
}

.cp-review-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #e5e9f0);
}

.cp-review-points-good,
.cp-review-points-bad {
  padding: 16px;
  border-radius: 9px;
}

.cp-review-points-good {
  border: 1px solid #ccebd6;
  background: #effaf3;
}

.cp-review-points-bad {
  border: 1px solid #f4d0d0;
  background: #fff1f1;
}

.cp-review-points h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
}

.cp-review-points-good h2 {
  color: #167342;
}

.cp-review-points-bad h2 {
  color: #b42332;
}

.cp-review-points ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.55;
}

.cp-review-points li {
  position: relative;
  margin: 0;
  padding-left: 20px;
}

.cp-review-points-good li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #16834a;
  font-weight: 900;
}

.cp-review-points-bad li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: #c62838;
  font-weight: 900;
}

/* --- Jeux associés ------------------------------------------------------ */

.cp-article-associated {
  margin-top: 28px;
  padding-top: 6px;
}

.cp-article-associated .cp-section-heading {
  margin-bottom: 18px;
}

.cp-article-associated .cp-section-heading h2 {
  margin: 0;
  color: #171a20;
  font-family: var(--font-body), sans-serif;
  font-size: clamp(13px, 2vw, 19px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.055em;
}

.cp-article-associated .cp-section-heading h2 span {
  color: var(--cp-blue, #0070d1);
}

.cp-article-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cp-article-game {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line, #e5e9f0);
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #151b29);
  text-decoration: none;
  transition: border-color .18s, transform .18s;
}

.cp-article-game:hover {
  transform: translateY(-2px);
  border-color: var(--cp-blue, #0070d1);
}

.cp-article-game img,
.cp-article-game-placeholder {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  height: 64px;
  aspect-ratio: 1 / 2;
  border-radius: 4px;
  background: #eef1f5;
  object-fit: cover;
}

.cp-article-game-placeholder {
  color: var(--cp-blue, #0070d1);
  font-weight: 900;
}

.cp-article-game-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cp-article-game-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.cp-article-game-platform {
  margin-top: 4px;
  color: #8a94a5;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.cp-article-game-arrow {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--cp-blue, #0070d1);
}

/* --- Pied d'article ----------------------------------------------------- */

.cp-article-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line, #e5e9f0);
}

.cp-article-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 5px;
  background: var(--cp-blue, #0070d1);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s;
}

.cp-article-button:hover {
  background: var(--cp-navy, #003791);
}

.cp-article-back-home {
  color: var(--muted, #747d8f);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.cp-article-back-home:hover {
  color: var(--cp-blue, #0070d1);
}

/* --- Article introuvable ------------------------------------------------ */

.cp-article-not-found {
  padding: 70px 20px;
  text-align: center;
}

.cp-article-not-found h1 {
  margin: 12px 0;
  font: 800 clamp(30px, 5vw, 46px)/1.1 var(--font-display, "Manrope", sans-serif);
}

.cp-article-not-found h1 span {
  color: var(--cp-blue, #0070d1);
}

.cp-article-not-found p {
  margin-bottom: 24px;
  color: var(--muted, #747d8f);
}

/* --- Article : responsive ---------------------------------------------- */

@media (max-width: 800px) {
  .cp-article-layout {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 32px);
  }

  .cp-article-sidebar {
    width: 100%;
  }
}

/* Entre 800 et 1200px, la sidebar article garde la liste d'actualités
   verticale (ne reprend pas la grille 4 colonnes de l'accueil) */
@media (min-width: 800px) and (max-width: 1200px) {
  aside.cp-article-sidebar .cp-news-panel {
    display: block;
  }

  aside.cp-article-sidebar .cp-news-panel > .cp-news-row {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    flex-direction: initial;
    gap: 13px;
  }

  aside.cp-article-sidebar .cp-news-panel .cp-news-image {
    flex: initial;
    width: 105px;
    height: auto;
    aspect-ratio: 1.25 / 1;
  }

  aside.cp-article-sidebar .cp-news-panel .cp-news-copy h3 {
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 760px) {
  .cp-article-page {
    padding-top: 20px;
  }

  .cp-article-page .cp-category-kicker {
    margin-bottom: 22px;
  }

  .cp-article-header {
    margin-bottom: 22px;
  }

  .cp-article-cover {
    margin-bottom: 25px;
  }

  .cp-article-content {
    font-size: 16px;
    line-height: 1.8;
  }

  .cp-article-content h2 {
    font-size: 25px;
  }

  .cp-article-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cp-review-panel {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .cp-review-score {
    min-height: 115px;
    padding: 10px 6px;
  }

  .cp-review-score strong {
    font-size: 42px;
  }

  .cp-review-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cp-article-header h1 {
    font-size: clamp(30px, 8vw, 38px);
    letter-spacing: -1.1px;
  }

  .cp-article-lead {
    font-size: 15px;
  }

  .cp-article-cover img {
    border-radius: 7px;
  }

  .cp-article-games {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-article-game {
    padding: 10px;
  }

  .cp-article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   13. FICHE JEU
   ========================================================================== */

.cp-game-overview {
    display: grid;
    grid-template-columns: minmax(107px, 140px) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    margin: 24px 0 34px;
    padding: 26px;
    min-width: 0;
    background:
        linear-gradient(
            90deg,
            #e6e9f0 0%,
            rgba(230, 233, 240, 0.98) 28%,
            rgba(230, 233, 240, 0.82) 48%,
            rgba(230, 233, 240, 0.25) 100%
        ),
        var(--game-illustration, none) center / cover no-repeat,
        var(--cp-line);
    border: 1px solid var(--cp-border, rgba(0, 55, 145, 0.35));
    border-radius: 16px;
}

.cp-game-overview-cover img {
  display: block;
  width: 95%;
  max-height: 270px;
  aspect-ratio: 1 / 1.4;
  object-fit: cover;
  border-radius: 10px;
}

.cp-game-cover-placeholder {
  display: grid;
  place-items: center;
  min-height: 230px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  font-weight: 700;
  letter-spacing: .12em;
  font: 900 clamp(12px, 3vw, 18px) / 1 'Anta';
  background-color: var(--paper-blue);
  border:1px solid var(--cp-blue-dark);
}

.cp-game-overview-content h1 {
  margin: 12px 0;
}

.cp-game-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}

.cp-game-articles-column,
.cp-game-affiliation-column {
  min-width: 0;
}

.cp-game-content-layout .cp-game-affiliation-panel {
  position: sticky;
  top: 24px;
}

.cp-game-details {
  margin-bottom: 28px;
}

.cp-game-details > p:not(.cp-article-lead) {
  margin: 8px 0;
  font-size: .9rem;
}

.cp-game-details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 16px;
}

.cp-game-details-meta p {
  margin: 0;
  font-size: .9rem;
}

/* --- Offres marchands --------------------------------------------------- */

.cp-game-offer-logo {
  border-radius: 6px;
  background: rgba(127, 127, 127, .12);
}

.cp-game-offer-placeholder-row .cp-small-game-copy p {
  opacity: .65;
}

.cp-game-offer-unavailable {
  opacity: .48;
  filter: grayscale(1);
}

.cp-game-unavailable-label {
  display: block;
  margin-top: 3px;
  color: var(--cp-muted, #a0a7b4);
  font-size: .7rem;
  line-height: 1.2;
}

.cp-game-empty-offers {
  margin-top: 20px;
  padding: 24px 20px;
  border-radius: 10px;
  background: var(--paper-blue);
  text-align: center;
}

.cp-game-empty-offers-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: var(--cp-blue);
  color: var(--cp-line);
  font-size: 1.2rem;
}

.cp-game-empty-offers h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.cp-game-empty-offers p {
  margin: 0 0 18px;
  color: var(--cp-muted, #a0a7b4);
  font-size: .9rem;
  line-height: 1.6;
}

.cp-game-empty-offers-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f28c28;
  font-weight: 600;
  text-decoration: none;
}

.cp-game-empty-offers-link:hover {
  text-decoration: underline;
}

.cp-game-affiliation-disclaimer {
  margin: 4px 0 0;
  color: var(--cp-muted, #a0a7b4);
  font-size: .75rem;
  line-height: 1.5;
}

/* Logos marchands */
.cp-game-merchant-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #fff;
  color: #202431;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

.cp-game-merchant-fnac {
  background: #fff;
  border: 1px solid #ebb300;
  color: #fff;
    background-image: url('../images/ads/fnac.png');
  background-position: center center;
    background-size: 80%;
    background-repeat: no-repeat;
}

.cp-game-merchant-amazon {
  background: 1px solid #ffa500;
  border: 1px solid #ff741d;
  color: orange;
  font-size: 12px;
  letter-spacing: -.5px;
      background-image: url('../images/ads/amazon.png');
  background-position: center center;
    background-size: 80%;
    background-repeat: no-repeat;
}

.cp-game-merchant-instantgaming {
  background: #43403f;
  border: 1px solid #ff422c;
  color: #171923;
  font-size: 10px;
  background-image: url('../images/ads/ig-logo.svg');
  background-position: center center;
    background-size: 50%;
    background-repeat: no-repeat;
}

.cp-game-merchant-gamesplanet {
  background: #000;
  border: 1px solid #717170;
  color: #fff;
  font-size: 12px;
  background-image: url('../images/ads/gp-logo.png');
  background-position: center center;
    background-size: 90%;
    background-repeat: no-repeat;
}

.cp-game-merchant-default {
  background: rgba(127, 127, 127, .12);
  color: var(--cp-ink);
}

/* --- Métadonnées de la fiche ------------------------------------------- */

.game-metadata {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.game-metadata-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0 !important;
}

.game-metadata-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #edf4ff;
  color: #0874e1;
  font-size: 16px;
}

.game-metadata-content {
  min-width: 0;
}

.game-metadata-label {
  display: block;
  margin-bottom: 3px;
  color: #778397;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.game-metadata-value {
  display: block;
  color: #172337;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.game-metadata-value a {
  color: inherit;
  text-decoration: none;
}

.game-metadata-value a:hover {
  color: #0874e1;
}

/* --- Fiche jeu : responsive -------------------------------------------- */

@media (max-width: 800px) {
  .cp-game-overview {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .cp-game-content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-game-content-layout .cp-game-affiliation-panel {
  position: static;
}
}

@media (max-width: 520px) {
  .cp-game-overview {
    grid-template-columns: 1fr;
  }

  .cp-game-overview-cover {
    max-width: 180px;
  }

  .cp-game-overview-cover img {
    max-height: 260px;
  }
}


/* ==========================================================================
   14. CATALOGUE DES JEUX
   ========================================================================== */

.cp-games-page {
  min-width: 0;
  padding-top: 24px;
}

.cp-games-header {
  align-items: flex-end;
  margin-bottom: 22px;
}

.cp-games-header .cp-category-heading-copy {
  min-width: 0;
}

.cp-games-header h1 {
  overflow-wrap: anywhere;
}

.cp-games-header .cp-category-count {
  min-width: 105px;
}

/* --- Filtres ------------------------------------------------------------ */

.cp-games-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 12px;
  margin: 22px 0 14px;
  padding: 18px;
  border: 1px solid var(--line, #e5e9f0);
  border-radius: 8px;
  background: var(--surface, #fff);
}

.cp-games-filters label {
  display: block;
  margin: 0 0 7px;
  color: var(--muted, #747d8f);
  font-size: 11px;
  font-weight: 700;
}

.cp-games-filters input,
.cp-games-filters select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line, #dce2eb);
  border-radius: 5px;
  background: #fff;
  color: var(--ink, #151b29);
  font: inherit;
  font-size: 13px;
}

.cp-games-filters input:focus,
.cp-games-filters select:focus {
  outline: 2px solid var(--cp-blue, #0070d1);
  outline-offset: 1px;
}

/* Recherche et actions sur la première ligne, plateformes dessous */
.cp-games-search-field {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.cp-games-filter-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 43px;
}

.cp-games-filter-actions button {
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid var(--cp-blue, #0070d1);
  border-radius: 5px;
  background: var(--cp-blue, #0070d1);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cp-games-filter-actions button:hover {
  filter: brightness(.93);
}

.cp-games-filter-actions a {
  color: var(--muted, #747d8f);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cp-games-filter-actions a:hover {
  color: var(--cp-blue, #0070d1);
}

.cp-games-platform-field {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

/* Boutons de filtre par plateforme */
.game-platform-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  grid-column: 1 / -1;
  gap: 8px;
}

.game-platform-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line, #dce2eb);
  border-radius: 5px;
  background: var(--surface, #fff);
  color: var(--ink, #151b29);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}

.game-platform-button:hover {
  border-color: var(--cp-blue, #0070d1);
  color: var(--cp-blue, #0070d1);
}

.game-platform-button.is-active {
  border-color: var(--cp-blue, #0070d1);
  background: var(--cp-blue, #0070d1);
  color: #fff;
}

.game-platform-button i {
  font-size: 15px;
}

.game-platform-button .platform-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* --- Résultats ---------------------------------------------------------- */

.cp-games-results-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 17px;
  color: var(--muted, #747d8f);
  font-size: 12px;
}

.cp-games-results-line p {
  margin: 0;
}

.cp-games-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.cp-games-card {
  min-width: 0;
  border: 1px solid var(--line, #e5e9f0);
  border-radius: 8px;
  background: var(--surface, #fff);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cp-games-card:hover {
  transform: translateY(-3px);
  border-color: #cbd7e7;
  box-shadow: 0 8px 24px rgba(20, 35, 60, .08);
}

.cp-games-card-image {
  position: relative;
  background: #edf1f7;
}

.cp-games-card-image img {
  display: block;
  transition: transform .25s ease;
}

.cp-games-card:hover .cp-games-card-image img {
  transform: scale(1.035);
}

/* Illustrations horizontales dans le catalogue */
.cp-games-page .game-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.cp-games-page .game-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-games-card-image .cp-score {
  right: 10px;
  bottom: 10px;
}

.cp-games-card-content {
  min-width: 0;
  padding: 13px;
}

.cp-games-card-content h2 {
  margin: 8px 0 7px;
  font: 800 14px/1.35 var(--font-display, "Manrope", sans-serif);
  overflow-wrap: anywhere;
}

.cp-games-card-content h2 a {
  color: var(--ink, #151b29);
  text-decoration: none;
}

.cp-games-card-content h2 a:hover {
  color: var(--cp-blue, #0070d1);
}

.cp-games-card-content .game-platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cp-games-card-content .game-platform-tags span {
  max-width: 100%;
  padding: 4px 6px;
  border-radius: 3px;
  background: #edf4fc;
  color: #355577;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cp-games-card-content .game-card-genres {
  margin: 0 0 7px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cp-games-card-content .game-card-date {
  margin: 0;
  line-height: 1.45;
}

.cp-games-card .game-no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  color: #78869a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-align: center;
  font: 900 clamp(12px, 3vw, 18px) / 1 'Anta';
}

.cp-games-empty {
  margin-top: 20px;
}

/* --- Pagination du catalogue ------------------------------------------- */

.cp-games-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 32px 0 0;
}

.cp-games-pagination .cp-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line, #e5e9f0);
  border-radius: 5px;
  background: #fff;
  color: var(--ink, #151b29);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.cp-games-pagination .cp-pagination-link:hover,
.cp-games-pagination .cp-pagination-link.is-active {
  border-color: var(--cp-blue, #0070d1);
  background: var(--cp-blue, #0070d1);
  color: #fff;
}

.cp-games-pagination .cp-games-page-arrow {
  padding-inline: 14px;
}

.cp-games-pagination .cp-pagination-ellipsis {
  padding: 0 3px;
  color: var(--muted, #747d8f);
}

/* --- Catalogue : responsive -------------------------------------------- */

@media (max-width: 1100px) {
  .cp-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
  }
}

@media (max-width: 900px) {
  .cp-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cp-games-page {
    padding-top: 18px;
  }

  .cp-games-page .cp-category-kicker {
    margin-bottom: 18px;
  }

  .cp-games-header {
    display: block;
    padding-bottom: 20px;
  }

  .cp-games-header .cp-category-count {
    align-items: flex-start;
    margin-top: 16px;
    padding: 0;
  }

  .cp-games-header .cp-category-count strong {
    font-size: 23px;
  }

  .cp-games-filters {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 18px;
    padding: 14px;
  }

  .cp-games-search-field,
  .cp-games-filter-actions,
  .cp-games-platform-field {
    grid-column: 1;
    grid-row: auto;
  }

  .cp-games-filter-actions {
    flex-wrap: wrap;
  }

  .cp-games-filter-actions button {
    flex: 1;
  }

  .game-platform-button {
    min-width: 0;
    padding: 0 6px;
    font-size: 11px;
  }

  /* Pas de logos / icônes dans les boutons sur mobile */
  .cp-games-page .game-platform-button img,
  .cp-games-page .game-platform-button .platform-logo,
  .cp-games-page .game-platform-button i {
    display: none;
  }

  .cp-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .cp-games-card-content {
    padding: 10px;
  }

  .cp-games-card-content h2 {
    font-size: 13px;
  }

  .cp-games-card-content .game-platform-tags span {
    font-size: 8px;
  }

  .cp-games-pagination {
    gap: 5px;
    margin-top: 24px;
  }

  .cp-games-pagination .cp-pagination-link {
    min-width: 34px;
    min-height: 36px;
    padding: 0 8px;
  }

  .cp-games-pagination .cp-games-page-arrow {
    padding-inline: 9px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .cp-games-grid {
    gap: 8px;
  }

  .cp-games-card-content {
    padding: 8px;
  }

  .cp-games-card-content h2 {
    font-size: 12px;
  }

  .cp-games-card-content .game-card-genres,
  .cp-games-card-content .game-card-date {
    font-size: 10px;
  }

  .cp-games-pagination .cp-games-page-arrow {
    width: 100%;
  }
}


/* ==========================================================================
   15. RECHERCHE
   ========================================================================== */

/* Pagination des résultats */
.search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 12px;
}

.search-pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.search-pagination a,
.search-pagination-pages .is-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.search-pagination a:hover {
  border-color: var(--cp-blue);
  color: var(--cp-blue);
}

.search-pagination-pages .is-current {
  border-color: var(--cp-blue);
  background: var(--cp-blue);
  color: #fff;
}

.search-pagination-pages > span:not(.is-current) {
  padding: 0 3px;
  color: var(--muted);
}

.search-pagination-info {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Mise en page : deux tiers résultats, un tiers barre latérale */
.search-page .search-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 20px;
}

.search-page .search-category-results,
.search-page .search-category-sidebar {
  min-width: 0;
}

.search-page .search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Recherche — aucun résultat */
.search-page .empty-state {
    padding: 28px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-soft);
    text-align: center;
}

.search-page .empty-state h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 18px;
}

.search-page .empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .search-page .search-category-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .search-page .search-results-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .search-pagination {
    gap: 8px;
  }

  .search-pagination-link {
    font-size: 13px;
  }

  .search-pagination-pages {
    gap: 4px;
  }

  .search-pagination a,
  .search-pagination-pages .is-current {
    min-width: 34px;
    min-height: 34px;
    padding: 0 7px;
    font-size: 13px;
  }
}


/* ==========================================================================
   16. CONNEXION / COMPTE PUBLIC
   ========================================================================== */

   /* ==========================================================
   FICHE AUTEUR
   ========================================================== */

.cp-people-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 35px 0;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--line, #e5e9f0);
}

.cp-people-identity {
    display: flex;
    align-items: center;
    gap: 25px;
    min-width: 0;
}

.cp-people-avatar {
    display: flex;
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #edf1f7;
    border: 4px solid #fff;
    box-shadow: 0 3px 15px rgba(20, 34, 65, .12);
}

.cp-people-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cp-people-avatar > span {
    color: var(--cp-blue);
    font: 800 48px/1 var(--font-display, "Manrope", sans-serif);
}

.cp-people-info {
    min-width: 0;
}

.cp-people-info h1 {
    margin: 7px 0 10px;
    color: var(--ink, #151b29);
    font: 800 clamp(32px, 4vw, 46px)/1.1 var(--font-display, "Manrope", sans-serif);
    letter-spacing: -1.8px;
}

.cp-people-info h1 > span {
    color: var(--cp-blue);
}

.cp-people-info p {
    max-width: 650px;
    margin: 0;
    color: var(--muted, #747d8f);
    font-size: 14px;
    line-height: 1.7;
}

.cp-people-count {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.cp-people-count strong {
    color: var(--ink, #151b29);
    font: 800 34px/1 var(--font-display, "Manrope", sans-serif);
}

.cp-people-count span {
    color: var(--muted, #747d8f);
    font-size: 11px;
}

.cp-people-publications {
    margin-bottom: 45px;
}

.cp-people-publications .cp-section-heading {
    margin-bottom: 20px;
}

.cp-people-publications .cp-section-heading h2 span {
    color: var(--cp-blue);
}



/* ==========================================================================
   COMPTES MEMBRES
   ========================================================================== */


.profile-pseudonym {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.profile-label {
    font-size: 14px;
    font-weight: 600;
}

.profile-avatar-preview {
    margin: 12px 0 20px;
}

.profile-avatar-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #dce3ed;
}

.profile-no-avatar {
    font-size: 13px;
    color: #777;
    margin: 10px 0 20px;
}

.profile-logout {
    text-align: center;
    margin-top: 18px;
}

.profile-logout-link {
    background: none;
    border: none;
    padding: 8px;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.profile-logout-link:hover {
    color: #003b91;
    text-decoration: underline;
}

.auth-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.cp-auth-page .login-wrap  .auth-terms {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cp-auth-page .login-wrap .auth-terms input {
    flex: 0 0 auto;
    width: auto !important;
    min-height: 0 !important;
    margin: 2px 0 0 !important;
}

.cp-auth-page .login-wrap .auth-terms input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
}

.cp-auth-page .login-wrap  .auth-terms {
    line-height: 1.4;
}

.cp-auth-page textarea {
    width: 100%;
    min-height: 110px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}

.cp-auth-page .alert-success {
    padding: 12px 14px;
    border: 1px solid #b8e0c6;
    border-radius: 6px;
    background: #edf9f0;
    color: #176b35;
}

.profile-logout {
    width: 100%;
    max-width: 430px;
    margin-top: 15px;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 25px;
}

.author-avatar {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
    border-radius: 50%;
    object-fit: cover;
}



.cp-auth-page .login-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 48px 20px 0;
  box-sizing: border-box;
}

.cp-auth-page .login-register-link {
  width: 100%;
  max-width: 430px;
  margin-top: 18px;
  box-sizing: border-box;
}

.cp-auth-page .login-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 430px;
  margin: 0;
  padding: 30px;
  box-sizing: border-box;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(22, 37, 63, .06);
}

.cp-auth-page .login-card .eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--cp-blue-dark, #0645a5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.cp-auth-page .login-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display, inherit);
  font-size: 23px;
  line-height: 1.3;
}

.cp-auth-page .login-card p {
  margin: 0 0 22px;
  color: var(--muted, #657087);
  font-size: 14px;
  line-height: 1.6;
}

.cp-auth-page .login-card label {
  display: block;
  margin: 0 0 7px;
  color: #414b5f;
  font-size: 13px;
  font-weight: 700;
}

.cp-auth-page .login-card input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0 0 18px;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  background: #fff;
  color: #191d28;
  font: inherit;
}

.cp-auth-page .login-card input:focus {
  outline: 2px solid rgba(0, 87, 184, .2);
  border-color: var(--cp-blue, #0757b8);
}

.cp-auth-page .login-card .alert {
  margin: 0 0 18px;
}

.cp-auth-page .login-card button {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  background: linear-gradient(145deg, #0070d1 0%, #003791 100%);
}

/* =========================================
   AVATAR & CROPPER
========================================= */

.profile-avatar-editor {
    margin: 20px 0;
}

.profile-avatar-help,
.avatar-crop-content > p {
    font-size: 13px;
    opacity: .7;
}

.profile-avatar-help {
    margin-top: 8px;
}

.profile-avatar-preview {
    margin: 12px 0 20px;
}

.profile-avatar-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

/* =========================================
   MODALE
========================================= */

.avatar-crop-modal[hidden] {
    display: none !important;
}

.avatar-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.avatar-crop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(6px);
}

.avatar-crop-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 24px;
    background: var(--card-bg, #20232a);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0,0,0,.55);
    color: var(--ink, #fff);
}

/* En-tête */

.avatar-crop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar-crop-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.avatar-crop-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px !important;
    height: 38px;
    padding: 0 !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 9px !important;
    color: inherit !important;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}

.avatar-crop-close:hover {
    background: rgba(255,255,255,.16) !important;
}

/* Zone de recadrage */

.avatar-crop-frame {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    margin: 0 auto;
    overflow: hidden;
    background: #111;
    border-radius: 8px;
}

.avatar-crop-frame img {
    display: block;
    max-width: 100%;
}

.avatar-crop-content > p {
    margin: 14px 0 18px;
    text-align: center;
    line-height: 1.5;
}

/* Commandes */

.avatar-crop-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.avatar-crop-controls button {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    flex: 0 0 auto;
}

#avatar-zoom-in,
#avatar-zoom-out {
    width: 40px !important;
    height: 40px;
    padding: 0 !important;
    font-size: 20px;
}

#avatar-crop-cancel,
#avatar-crop-confirm {
    flex: 1 1 0;
    height: 42px;
    padding: 0 12px !important;
}

.avatar-crop-controls button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Verrouillage du scroll */

body.avatar-modal-open {
    overflow: hidden;
}


@media (max-width: 760px) {
    .cp-people-header {
        align-items: flex-start;
        gap: 18px;
        padding: 25px 0;
    }

    .cp-people-identity {
        align-items: flex-start;
        gap: 16px;
    }

    .cp-people-avatar {
        flex-basis: 85px;
        width: 85px;
        height: 85px;
    }

    .cp-people-avatar > span {
        font-size: 35px;
    }

    .cp-people-info h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .cp-people-info p {
        font-size: 12px;
    }

    .cp-people-count strong {
        font-size: 25px;
    }
}

@media (max-width: 560px) {
    .cp-people-header {
        display: block;
    }

    .cp-people-count {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
    }

    .cp-people-count strong {
        font-size: 22px;
    }
}


@media (max-width: 600px) {

    .avatar-crop-modal {
        padding: 12px;
    }

    .avatar-crop-dialog {
        padding: 18px;
        border-radius: 14px;
    }

    .avatar-crop-frame {
        max-width: min(100%, 360px);
    }

    .avatar-crop-controls {
        flex-wrap: wrap;
    }

    #avatar-crop-cancel,
    #avatar-crop-confirm {
        flex: 1 1 calc(50% - 5px);
    }

  .cp-auth-page .login-wrap {
    padding: 28px 0 40px;
  }

  .cp-auth-page .login-register-link {
    margin-top: 14px;
  }

  .cp-auth-page .login-card {
    padding: 24px 20px;
  }
   .author-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .author-avatar {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
    }
}


/* ==========================================================================
   17. PAGES À PROPOS, LÉGALES, CONTACT
   ========================================================================== */

   .cp-team-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- À propos / mentions légales --------------------------------------- */

.cp-about-content {
  display: grid;
  gap: 28px;
  padding: 30px 0 0;
}

.cp-about-hero,
.cp-about-section {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(22, 37, 63, .04);
}

.cp-about-hero .eyebrow,
.cp-about-section-heading .eyebrow {
  color: var(--cp-blue-dark, #0645a5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.cp-about-hero h2 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.cp-about-hero p,
.cp-about-section p,
.cp-about-section li {
  color: var(--muted, #657087);
  line-height: 1.75;
}

.cp-about-section-heading {
  margin-bottom: 22px;
}

.cp-about-section-heading h2 {
  margin: 8px 0 0;
  font-size: 25px;
}

.cp-about-section h3 {
  margin: 24px 0 9px;
  font-size: 17px;
}

.cp-about-section h3:first-of-type {
  margin-top: 0;
}

.cp-about-section ul {
  padding-left: 22px;
}

.cp-about-section li {
  margin-bottom: 8px;
}

.cp-about-note {
  margin: 18px 0 0;
  font-size: 12px;
}

.cp-legal-section p {
  margin: 0 0 14px;
}

.cp-legal-section a,
.cp-about-note a {
  color: var(--cp-blue, #0757b8);
  font-weight: 700;
}

.cp-to-complete {
  color: #8a4b00;
  font-weight: 700;
}

.cp-legal-warning {
  padding: 16px 18px;
  border: 1px solid #f0d9a5;
  border-radius: 8px;
  background: #fff8e8;
  color: #785514;
  font-size: 13px;
  line-height: 1.7;
}

.cp-legal-warning ul {
  margin-bottom: 0;
  padding-left: 22px;
}

.cp-legal-warning li {
  margin: 5px 0;
}

/* --- Équipe ------------------------------------------------------------- */

.cp-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.cp-team-card {
  padding: 20px;
  border: 1px solid #e5eaf1;
  border-radius: 9px;
  background: #fbfcfe;
}

.cp-team-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--cp-blue, #0757b8);
  font-size: 17px;
}

.cp-team-card h3 {
  margin: 14px 0 4px;
  font-size: 16px;
}

.cp-team-card p {
  margin: 0;
  font-size: 12px;
}


/*   CITIZEN PLAY — PAGE D'ERREUR */

.cp-error-page {
    padding-top: 28px;
    padding-bottom: 76px;
}

.cp-error-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(28px, 5vw, 76px);
    max-width: 1080px;
    margin: 24px auto 0;
    padding: clamp(28px, 5vw, 64px);
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(24, 38, 70, 0.06);
}

.cp-error-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 260px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 20px;
    background:
        radial-gradient(circle at 70% 25%, rgba(102, 92, 190, 0.17), transparent 38%),
        linear-gradient(145deg, #f0f3ff, #f7f8fc 65%, #edf5ff);
}

.cp-error-code {
    position: relative;
    z-index: 2;
    color: #003791;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(76px, 10vw, 124px);
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 1;
}

.cp-error-orbit {
    position: absolute;
    z-index: 1;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(0, 112, 209, 0.2);
    border-radius: 50%;
}

.cp-error-orbit-one {
    transform: translate(24px, -14px);
}

.cp-error-orbit-two {
    width: 240px;
    height: 240px;
    transform: translate(-12px, 18px);
    border-color: rgba(102, 92, 190, 0.16);
}

.cp-error-cross {
    position: absolute;
    top: 22px;
    right: 28px;
    color: #665cbe;
    font-size: 30px;
    font-weight: 700;
}

.cp-error-content {
    min-width: 0;
}

.cp-error-content .eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #665cbe;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.cp-error-content h1 {
    margin: 0 0 18px;
    color: #202737;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.12;
}

.cp-error-content h1 span {
    color: #0070d1;
}

.cp-error-content > p:not(.cp-error-footnote) {
    max-width: 480px;
    margin: 0;
    color: #687386;
    font-size: 16px;
    line-height: 1.8;
}

.cp-error-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.cp-error-home,
.cp-error-back {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cp-error-home {
    color: #fff;
    background: linear-gradient(110deg, #0070d1, #003791);
}

.cp-error-home:hover {
    transform: translateY(-2px);
}

.cp-error-back {
    color: #202737;
    background: #f1f3f7;
    border: 1px solid #e8ebf0;
    cursor: pointer;
}

.cp-error-back:hover {
    background: #e8ebf0;
}

.cp-error-footnote {
    margin: 28px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e8ebf0;
    color: #687386;
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .cp-error-page {
        padding-top: 18px;
        padding-bottom: 44px;
    }

    .cp-error-card {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 18px;
        padding: 20px;
        border-radius: 18px;
    }

    .cp-error-visual {
        min-height: 180px;
        border-radius: 14px;
    }

    .cp-error-code {
        font-size: 88px;
    }

    .cp-error-orbit-one {
        width: 145px;
        height: 145px;
    }

    .cp-error-orbit-two {
        width: 185px;
        height: 185px;
    }

    .cp-error-content h1 {
        font-size: 34px;
    }

    .cp-error-content > p:not(.cp-error-footnote) {
        font-size: 15px;
    }

    .cp-error-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cp-error-home,
    .cp-error-back {
        width: 100%;
        box-sizing: border-box;
    }
}


/* --- Contact ------------------------------------------------------------ */

.cp-contact-layout {
  display: flex;
  justify-content: center;
  padding: 30px 0 0;
}

.cp-contact-form {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 640px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(22, 37, 63, .04);
}

.cp-contact-field {
  display: grid;
  gap: 7px;
}

.cp-contact-field label {
  color: #414b5f;
  font-size: 13px;
  font-weight: 700;
}

.cp-contact-field input,
.cp-contact-field select,
.cp-contact-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  background: #fff;
  color: #191d28;
  font: inherit;
}

.cp-contact-field textarea {
  line-height: 1.6;
  resize: vertical;
}

.cp-contact-field input:focus,
.cp-contact-field textarea:focus {
  outline: 2px solid rgba(0, 87, 184, .2);
  border-color: var(--cp-blue, #0757b8);
}

.cp-contact-form button {
  justify-self: start;
  background: linear-gradient(145deg, #0070d1 0%, #003791 100%);
}

.cp-contact-success {
  padding: 13px 15px;
  border: 1px solid #c7ebd0;
  border-radius: 7px;
  background: #edf9f0;
  color: #176534;
}

/* Champ piège anti-spam : hors écran */
.cp-contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 600px) {
  .cp-about-content {
    padding-bottom: 40px;
  }

  .cp-contact-layout {
    padding-bottom: 40px;
  }

  .cp-contact-form button {
    width: 100%;
  }
}


/* ==========================================================================
   18. STYLES LEGACY PROBABLEMENT INUTILISÉS
   --------------------------------------------------------------------------
   Anciennes classes d'accueil qui n'avaient AUCUNE règle de base, seulement
   des ajustements responsive.
   ========================================================================== */

@media (max-width: 1000px) {
  .home-lead-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr); gap: 20px; }
  .hero-story { min-height: 390px; }
  .hero-story-content { padding: 28px; }
  .news-row { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
  .news-row-image { height: 72px; }
  .home-lower-grid { gap: 20px; }
}

@media (max-width: 760px) {
  .home-topline span:last-child { display: none; }
  .content-wrap { padding-top: 16px; }
  .home-lead-grid { grid-template-columns: 1fr; }
  .hero-story { min-height: 410px; }
  .hero-story-content { padding: 24px; }
  .hero-story h1 { font-size: 34px; }
  .hero-story p { font-size: 13px; }
  .latest-news-panel { margin-top: 10px; }
  .news-row { grid-template-columns: 95px minmax(0, 1fr); }
  .news-row-image { height: 76px; }
  .section-heading { align-items: flex-end; }
  .section-heading h2 { font-size: 23px; }
  .home-articles-section { margin-top: 30px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .article-card-body { padding: 12px; }
  .article-card h3 { font-size: 14px; }
  .article-card p { font-size: 11px; }
  .card-bottom { font-size: 9px; }
  .home-lower-grid { grid-template-columns: 1fr; }
  .home-editorial-card { min-height: 240px; }
}

@media (max-width: 440px) {
  .hero-story { min-height: 390px; }
  .hero-story h1 { font-size: 29px; }
  .hero-story-content { padding: 19px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-thumb { aspect-ratio: 16 / 8; }
  .home-articles-section .section-heading .text-link { font-size: 10px; }
  .featured-game-row { grid-template-columns: 62px minmax(0, 1fr) 26px; gap: 10px; padding: 10px; }
  .featured-game-cover { width: 62px; height: 70px; }
}


/* =========================================================
   19. COMMENTAIRES COMMUNAUTAIRES — PS WORLD
========================================================= */

.psw-comments {
    margin: 42px auto 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--cp-line);
}

/* En-tête */

.psw-comments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.psw-comments-heading h2 {
    margin: 0;
    color: var(--cp-ink, #101827);
    font: 800 28px/1.2 var(--font-display, "Manrope", sans-serif);
    letter-spacing: -0.7px;
}

.psw-comments-heading h2 span {
    color: var(--cp-blue, #0875d1);
}

.psw-comments-heading-copy p {
    margin: 8px 0 0;
    color: var(--cp-muted, #697586);
    font-size: 14px;
}

.psw-comments-heading-copy p span {
    margin: 0 5px;
    color: var(--cp-blue, #0875d1);
}

.psw-comments-total {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 30px;
    background: #edf4fc;
    color: #075db5;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* Formulaire */

.psw-comment-form {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    background: transparent;
}

.psw-comment-form-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

.psw-comment-form-content {
    min-width: 0;
}

.psw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.psw-comment-form textarea,
.psw-comment-edit textarea {
    display: block;
    width: 100%;
    min-height: 125px;
    padding: 16px 18px;
    border: 1px solid #d9e1ed;
    border-radius: 12px;
    background: #f7f9fc;
    color: var(--cp-ink, #101827);
    font: inherit;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.psw-comment-form textarea:focus,
.psw-comment-edit textarea:focus {
    outline: none;
    border-color: var(--cp-blue, #0875d1);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 117, 209, .09);
}

.psw-comment-form textarea::placeholder {
    color: #8993a3;
}

.psw-comment-edit summary,
.psw-comment-delete button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #7b8493;
    cursor: pointer;
    list-style: none;
    opacity: .65;
    transition: opacity .2s, background .2s, color .2s;
}

.psw-comment-edit summary::-webkit-details-marker {
    display: none;
}

.psw-comment-edit summary:hover {
    color: var(--cp-blue);
    background: #edf4fc;
    opacity: 1;
}

.psw-comment-delete button:hover {
    color: #dc3545;
    background: #fff0f0;
    opacity: 1;
}

.psw-comment-delete {
    margin: 0;
}

.psw-comment-edit summary:focus-visible,
.psw-comment-delete button:focus-visible {
    outline: 2px solid var(--cp-blue);
    outline-offset: 2px;
}

.psw-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.psw-comment-form-footer small {
    color: var(--cp-muted, #778294);
    font-size: 12px;
    line-height: 1.5;
}

.psw-comment-form-footer .cp-article-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 19px;
    border: 0;
    border-radius: 9px;
    background: var(--cp-blue, #0875d1);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.psw-comment-form-footer .cp-article-button:hover {
    background: var(--cp-blue-dark, #075db5);
    transform: translateY(-1px);
}

/* Invitation à rejoindre la communauté (visiteurs non connectés) */

.psw-comment-login {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: 174px;
    overflow: hidden;
    margin: 0 0 28px;
    border: 1px solid #d9e5f5;
    border-radius: 13px;
    background: linear-gradient(115deg, #07152f 0%, #0b2450 58%, #073b79 100%);
    box-shadow: 0 8px 24px rgba(7, 35, 79, .10);
}

.psw-comment-login-visual {
    position: relative;
    min-height: 174px;
    overflow: hidden;
    background: #06132c;
}

.psw-comment-login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 55%, #0b2450 100%);
    pointer-events: none;
}

.psw-comment-login-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 174px;
    object-fit: cover;
    object-position: center 48%;
}

.psw-comment-login-content {
    align-self: center;
    min-width: 0;
    padding: 22px 26px 22px 16px;
    color: #fff;
}

.psw-comment-login-kicker {
    display: block;
    margin-bottom: 5px;
    color: #66baff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.psw-comment-login-content h3 {
    margin: 0 0 5px;
    color: #fff;
    font: 800 21px/1.25 var(--font-display, "Manrope", sans-serif);
    letter-spacing: -.35px;
}

.psw-comment-login-content p {
    margin: 0 0 14px;
    color: #d4e2f6;
    font-size: 13px;
    line-height: 1.5;
}

.psw-comment-login-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.psw-comment-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 39px;
    padding: 9px 15px;
    border: 1px solid #1689f5;
    border-radius: 6px;
    background: #0875d1;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.psw-comment-register:hover {
    transform: translateY(-1px);
    background: #1689f5;
    box-shadow: 0 5px 15px rgba(0, 112, 209, .3);
}

.psw-comment-signin {
    color: #dceaff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(220, 234, 255, .45);
    text-underline-offset: 3px;
}

.psw-comment-signin:hover {
    color: #fff;
}

/* Liste */

.psw-comment-list {
    display: grid;
    gap: 0;
}

.psw-comment {
    display: flex;
    gap: 18px;
    scroll-margin-top: 100px;
    padding: 10px 8px 15px 8px;
             border: #edeff1 1px solid;
    margin-bottom: 10px;
}

.psw-comment:nth-child(even) {
    background: #fbfbfb;
 border: #f6f9ff 1px solid; 
}


.psw-comment-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;

    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

.psw-comment-avatar-link {
    display: block;
    flex: 0 0 auto;
    text-decoration: none;
}

.psw-comment-meta strong a {
    color: inherit;
    text-decoration: none;
}

.psw-comment-meta strong a:hover {
    color: var(--primary-color, #0875d1);
}

.psw-default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 23px;
    line-height: 1;
}

.psw-comment-form-avatar img {

    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-blue   { background: #dbeafe; }
.avatar-purple { background: #ede9fe; }
.avatar-orange { background: #ffedd5; }
.avatar-green  { background: #dcfce7; }
.avatar-grey   { background: #e5e7eb; }
.avatar-red    { background: #fee2e2; }
.avatar-pink   { background: #fce7f3; }
.avatar-yellow { background: #fef3c7; }
.avatar-cyan   { background: #cffafe; }
.avatar-dark   { background: #dbe4f0; }

.psw-comment-avatar img,
.psw-comment-form-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.psw-comment-main {
    min-width: 0;
    flex: 1;
}

.psw-comment-meta {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
    font-size: 13px;
}

.psw-comment-meta strong {
    color: var(--cp-ink, #101827);
    font-size: 15px;
    font-weight: 900;
}

.psw-comment-meta time,
.psw-comment-meta span {
    color: var(--cp-muted, #778294);
    font-size: 12px;
}

.psw-comment-text {
    margin: 13px 0 16px;
    color: var(--cp-ink, #202738);
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.psw-comments-empty {
    padding: 22px 0;
    color: var(--cp-muted, #778294);
}


.psw-card-comments {
  position: static;
  z-index: auto;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cp-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: none;
}
/* Compteur de commentaires dans les actualités de la une */
.cp-news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.psw-news-comments {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
  color: var(--cp-muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.cp-article-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--cp-blue, #0070d1);
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.cp-article-comments-link:hover {
    color: var(--cp-blue-dark, #0056a8);
    text-decoration: underline;
}

.psw-comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
}

/* Pagination */
.psw-comments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.psw-comments-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.psw-comments-pagination a:hover,
.psw-comments-pagination a.active {
    background: var(--cp-blue);
    color: #fff;
    border-color: var(--cp-blue);
}

.psw-comments-pagination a.active {
    font-weight: 700;
}

/* Fenêtre modale d'édition des commentaires */
.psw-comment-edit-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #7b8493;
    cursor: pointer;
    opacity: .65;
    transition: opacity .2s, background .2s, color .2s;
}

.psw-comment-edit-trigger:hover {
    color: var(--cp-blue);
    background: #edf4fc;
    opacity: 1;
}

.psw-comment-moderate:focus-visible,
.psw-comment-edit-trigger:focus-visible,
.psw-comment-edit-close:focus-visible,
.psw-comment-edit-cancel:focus-visible,
.psw-comment-edit-save:focus-visible {
    outline: 2px solid var(--cp-blue);
    outline-offset: 2px;
}


.psw-comment-edit-dialog {
    width: min(620px, calc(100% - 32px));
    max-width: 620px;
    max-height: min(85vh, 720px);
    padding: 0;
    border: 1px solid #dfe6ef;
    border-radius: 16px;
    background: #fff;
    color: var(--cp-ink, #101827);
    box-shadow: 0 24px 80px rgba(10, 25, 48, .28);
}

.psw-comment-edit-dialog::backdrop {
    background: rgba(12, 22, 38, .62);
    backdrop-filter: blur(3px);
}

.psw-comment-edit-dialog[open] {
    animation: psw-comment-dialog-in .18s ease-out;
}

@keyframes psw-comment-dialog-in {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.psw-comment-edit-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #e8edf4;
}

.psw-comment-edit-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.psw-comment-edit-close {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--paper-soft);
    color: #687386;
    cursor: pointer;
    padding: 0;
}

.psw-comment-edit-close:hover {
  background: var(--paper-blue);
}

.psw-comment-edit-form {
    padding: 22px;
}


.psw-comment-edit-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 190px;
    max-height: 45vh;
}

.psw-comment-edit-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.psw-comment-edit-dialog-footer > span {
    color: var(--cp-muted, #778294);
    font-size: 12px;
}

.psw-comment-edit-dialog-footer > div {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}


.psw-comment-edit-cancel,
.psw-comment-edit-save {
    min-height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.psw-comment-edit-cancel {
    border: 1px solid #dfe5ed;
    background: #fff;
    color: #596579;
}

.psw-comment-edit-save {
    border: 1px solid var(--cp-blue, #0875d1);
    background: var(--cp-blue, #0875d1);
    color: #fff;
}

/* Commentaires masqués : visibles uniquement pour l'équipe */
.psw-comment-hidden {
    opacity: .65;
    border-left: 3px solid #d99a42;
}

.psw-comment-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(217, 154, 66, .13);
    color: red !important;
    font-size: 11px;
    font-weight: 700;
}

.psw-comment-moderate {
    display: inline-flex;
    margin: 0;
}

.psw-comment-moderate button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #7b8493;
    cursor: pointer;
    opacity: .65;
    transition: opacity .2s, background .2s, color .2s;
}

.psw-comment-moderate button:hover {
    color: var(--cp-purple);
    background: #edf4fc;
    opacity: 1;
}



/* Mobile */

@media (max-width: 640px) {

      .psw-comment-edit-dialog {
        width: calc(100% - 24px);
        border-radius: 13px;
    }

    .psw-comment-edit-dialog-header,
    .psw-comment-edit-form {
        padding: 17px;
    }

    .psw-comment-edit-dialog-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .psw-comment-edit-dialog-footer > div {
        width: 100%;
        margin-left: 0;
    }

    .psw-comment-edit-dialog-footer button {
        flex: 1;
    }

    .psw-comments {
        margin-top: 32px;
        padding-top: 22px;
    }

    .psw-comments-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 22px;
    }

    .psw-comments-heading h2 {
        font-size: 24px;
    }

    .psw-comment-form {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .psw-comment-form-avatar {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .psw-comment-form textarea {
        min-height: 115px;
        padding: 13px;
        font-size: 14px;
    }

    .psw-comment-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .psw-comment-form-footer .cp-article-button {
        width: 100%;
    }

    .psw-comment {
        gap: 11px;
        padding: 20px 0;
    }

    .psw-comment-avatar {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .psw-comment-login {
    grid-template-columns: 112px minmax(0, 1fr);
}

.psw-comment-login-visual,
.psw-comment-login-visual img {
    min-height: 100%;
}

.psw-comment-login-content {
    padding: 17px 16px;
}

.psw-comment-login-content h3 {
    font-size: 18px;
}

.psw-comment-login-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
}
}