/* Planet Mods — styles intégrés de l'ancien template/header/footer, repris à l'identique. */

/* ---- template.php bloc 2 ---- */
.site-footer-slot {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      width: 100%;
      flex: 0 0 auto;
      clear: both;
      position: relative;
      z-index: 5;
    }

/* ---- template.php bloc 3 ---- */
.pm-maintenance-banner {
      position: fixed;
      top: 66px;
      right: 0;
      left: 0;
      z-index: 9998;
      width: 100%;
      color: #fff;
      background: linear-gradient(90deg, #92400e 0%, #d97706 48%, #b45309 100%);
      border-bottom: 1px solid rgba(255,255,255,.24);
      box-shadow: 0 8px 24px rgba(0,0,0,.2);
      visibility: visible !important;
      opacity: 1 !important;
      transform: none !important;
    }
    .pm-maintenance-banner-spacer {
      display: block;
      width: 100%;
      height: 48px;
      flex: 0 0 auto;
      pointer-events: none;
    }
    .pm-maintenance-banner__inner {
      width: min(1500px, calc(100% - 32px));
      min-height: 48px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 0;
    }
    .pm-maintenance-banner__icon { font-size: 1.25rem; flex: 0 0 auto; }
    .pm-maintenance-banner__content {
      min-width: 0;
      flex: 1;
      display: flex;
      align-items: baseline;
      gap: 10px;
    }
    .pm-maintenance-banner__content strong { white-space: nowrap; }
    .pm-maintenance-banner__content span { line-height: 1.35; }
    .pm-maintenance-banner__time {
      flex: 0 0 auto;
      padding: 5px 9px;
      border-radius: 999px;
      background: rgba(0,0,0,.18);
      font-size: .82rem;
      white-space: nowrap;
    }
    .pm-maintenance-banner__admin {
      flex: 0 0 auto;
      padding: 6px 10px;
      border-radius: 7px;
      color: #fff;
      background: rgba(0,0,0,.24);
      border: 1px solid rgba(255,255,255,.28);
      text-decoration: none;
      font-weight: 800;
    }
    .pm-maintenance-banner__admin:hover { background: rgba(0,0,0,.4); color: #fff; }
    @media (max-width: 760px) {
      .pm-maintenance-banner__inner { width: min(100% - 20px, 1500px); align-items: flex-start; flex-wrap: wrap; }
      .pm-maintenance-banner__content { align-items: flex-start; flex-direction: column; gap: 2px; }
      .pm-maintenance-banner__content strong { white-space: normal; }
      .pm-maintenance-banner__time { margin-left: 34px; }
    }

/* ---- includes/header.php bloc 1 ---- */
.pm-header-notifications{position:relative}
            .pm-header-notifications details{position:relative}
            .pm-header-notifications summary{position:relative;width:42px;height:42px;display:grid;place-items:center;border-radius:10px;cursor:pointer;list-style:none;transition:background .18s ease,color .18s ease}
            .pm-header-notifications summary::-webkit-details-marker{display:none}
            .pm-header-notifications details[open] summary,.pm-header-notifications summary:hover{background:rgba(255,255,255,.08)}
            .pm-header-notification-count{position:absolute;right:-2px;top:-3px;min-width:19px;height:19px;padding:0 5px;display:grid;place-items:center;border:2px solid #15181c;border-radius:999px;background:#ef4444;color:#fff;font-size:.62rem;font-weight:900;line-height:1}
            .pm-header-notification-dropdown{position:absolute;right:-4px;top:calc(100% + 12px);z-index:10030;width:min(410px,calc(100vw - 28px));overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:15px;background:#15181c;box-shadow:0 22px 58px rgba(0,0,0,.5);color:#f4f6f8}
            .pm-header-notification-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px 11px;border-bottom:1px solid rgba(255,255,255,.08)}
            .pm-header-notification-head>div{display:grid;gap:2px;text-align:left}.pm-header-notification-head strong{font-size:.94rem}.pm-header-notification-head small{color:#9098a3;font-size:.7rem}
            .pm-header-notification-head>a{width:auto!important;min-height:0!important;padding:4px 0!important;color:#65dc98!important;font-size:.76rem!important;font-weight:800!important;text-decoration:none!important;background:none!important;border:0!important}
            .pm-header-notification-list{max-height:min(480px,60vh);overflow:auto;padding:6px;scrollbar-width:thin;scrollbar-color:#454b53 transparent}
            .pm-header-notification-item{position:relative;display:grid!important;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;width:100%!important;min-height:0!important;gap:9px;padding:10px!important;border-radius:10px;color:#e8ebef!important;text-align:left;text-decoration:none!important;background:transparent!important;transition:background .16s ease,transform .16s ease}
            .pm-header-notification-item:hover,.pm-header-notification-item:focus-visible{background:rgba(255,255,255,.065)!important;transform:translateX(1px);outline:none}
            .pm-header-notification-item.unread{background:rgba(45,200,117,.105)!important}.pm-header-notification-item.unread:hover{background:rgba(45,200,117,.17)!important}
            .pm-header-notification-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.06);color:#71dfa0;font-size:.88rem}
            .pm-header-notification-copy{display:grid;min-width:0;gap:3px}.pm-header-notification-copy strong{overflow:hidden;color:#f5f7f9;font-size:.82rem;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
            .pm-header-notification-message{display:-webkit-box;overflow:hidden;color:#aeb4bc;font-size:.73rem;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}
            .pm-header-notification-meta{display:flex;align-items:center;gap:7px;color:#858d98;font-size:.64rem;line-height:1}.pm-header-notification-category{color:#70dc9c;font-weight:800}.pm-header-notification-meta time{color:#858d98}
            .pm-header-notification-dot{align-self:center;width:8px;height:8px;margin:0 3px;border-radius:50%;background:#36d17d;box-shadow:0 0 0 3px rgba(54,209,125,.13)}
            .pm-header-notification-empty{display:grid;place-items:center;gap:8px;padding:30px 15px;color:#8f97a1;text-align:center;font-size:.8rem}.pm-header-notification-empty i{font-size:1.35rem}
            .pm-header-notification-footer{padding:7px;border-top:1px solid rgba(255,255,255,.08)}.pm-header-notification-footer form{margin:0;padding:0}.pm-header-notification-footer button{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 10px;border:0;border-radius:9px;background:#282d33;color:#f1f3f5;font:inherit;font-size:.75rem;font-weight:800;cursor:pointer;transition:background .16s ease}.pm-header-notification-footer button:hover:not(:disabled){background:#333941}.pm-header-notification-footer button:disabled{opacity:.48;cursor:default}
            @media(max-width:980px){.pm-header-notification-dropdown{position:fixed;top:72px;right:14px;left:auto;width:min(410px,calc(100vw - 28px))}}
            @media(max-width:480px){.pm-header-notification-dropdown{right:8px;width:calc(100vw - 16px)}.pm-header-notification-list{max-height:56vh}}

/* ---- includes/header.php bloc 2 ---- */
/* Planet Mods — Header compact V1 */
.pm-site-header .search-form{
  position:relative;
}

.pm-site-header .pm-header-surprise-search{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  margin-right:3px;
  border-radius:50%;
  color:#d7b7ff;
  text-decoration:none;
  transition:
    background .16s ease,
    color .16s ease,
    transform .16s ease;
}

.pm-site-header .pm-header-surprise-search:hover,
.pm-site-header .pm-header-surprise-search:focus-visible{
  color:#fff;
  background:rgba(168,85,247,.18);
  transform:rotate(-8deg) scale(1.04);
  outline:none;
}

.pm-site-header .pm-header-discover{
  position:relative;
}

.pm-site-header .pm-header-discover-details{
  position:relative;
}

.pm-site-header .pm-header-discover-details > summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:42px;
  min-height:42px;
  padding:.5rem;
  border-radius:.5rem;
  color:#fff;
  cursor:pointer;
  list-style:none;
  user-select:none;
  transition:background .16s ease;
}

.pm-site-header .pm-header-discover-details > summary::-webkit-details-marker{
  display:none;
}

.pm-site-header .pm-header-discover-details > summary:hover,
.pm-site-header .pm-header-discover-details > summary:focus-visible,
.pm-site-header .pm-header-discover-details[open] > summary{
  background:rgba(255,255,255,.12);
  outline:none;
}

.pm-site-header .pm-header-discover-chevron{
  font-size:.48rem;
  opacity:.65;
  transition:transform .16s ease;
}

.pm-site-header .pm-header-discover-details[open] .pm-header-discover-chevron{
  transform:rotate(180deg);
}

.pm-site-header .pm-header-discover-menu{
  position:absolute;
  z-index:10080;
  top:calc(100% + 10px);
  right:0;
  display:grid;
  gap:5px;
  width:260px;
  padding:8px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:#20242a;
  box-shadow:0 18px 42px rgba(0,0,0,.34);
}

.pm-site-header .pm-header-discover-menu a{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  align-items:center;
  gap:9px;
  width:100%;
  box-sizing:border-box;
  padding:9px 10px;
  border-radius:9px;
  color:#eef1f4;
  text-decoration:none;
  text-align:left;
}

.pm-site-header .pm-header-discover-menu a:hover,
.pm-site-header .pm-header-discover-menu a:focus-visible{
  background:rgba(255,255,255,.08);
  outline:none;
}

.pm-site-header .pm-header-discover-menu a > i{
  color:#a9a2ff;
  text-align:center;
}

.pm-site-header .pm-header-discover-menu strong{
  display:block;
  color:#fff;
  font-size:.76rem;
  line-height:1.15;
}

.pm-site-header .pm-header-discover-menu small{
  display:block;
  margin-top:3px;
  color:#8e97a3;
  font-size:.62rem;
  line-height:1.2;
}

.pm-site-header nav .pm-header-discover-menu a{
  height:auto;
  padding:9px 10px;
  font-size:inherit;
}

.pm-site-header nav .pm-header-discover-details > summary{
  font-size:clamp(14px,2vw,20px);
}

@media(max-width:980px){
  .pm-site-header .pm-header-discover-menu{
    position:fixed;
    top:72px;
    right:12px;
    width:min(300px,calc(100vw - 24px));
  }
}

@media(max-width:680px){
  .pm-site-header .pm-header-surprise-search{
    flex-basis:32px;
    width:32px;
    height:32px;
  }
}

/* ---- includes/header.php bloc 3 ---- */
/*
 * Planet Mods — Header compact V1.4
 * Style épuré : aucune carte autour des icônes.
 */
.pm-site-header nav > ul > li.pm-header-games-link,
.pm-site-header nav > ul > li.pm-header-teams-link,
.pm-site-header nav > ul > li.pm-header-discover{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
}

.pm-site-header nav > ul > li.pm-header-games-link > a,
.pm-site-header nav > ul > li.pm-header-teams-link > a,
.pm-site-header nav > ul > li.pm-header-discover
  > .pm-header-discover-details
  > summary{
  box-sizing:border-box !important;
  display:inline-grid !important;
  place-items:center !important;
  position:relative !important;

  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;

  margin:0 !important;
  padding:0 !important;

  color:#eef1f3 !important;

  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  outline:0 !important;
  box-shadow:none !important;

  text-decoration:none !important;
  cursor:pointer !important;
  list-style:none !important;
  line-height:1 !important;

  transition:
    color .18s ease,
    transform .18s ease,
    opacity .18s ease !important;
}

.pm-site-header nav > ul > li.pm-header-games-link > a:hover,
.pm-site-header nav > ul > li.pm-header-games-link > a:focus-visible,
.pm-site-header nav > ul > li.pm-header-teams-link > a:hover,
.pm-site-header nav > ul > li.pm-header-teams-link > a:focus-visible,
.pm-site-header nav > ul > li.pm-header-discover
  > .pm-header-discover-details
  > summary:hover,
.pm-site-header nav > ul > li.pm-header-discover
  > .pm-header-discover-details
  > summary:focus-visible,
.pm-site-header nav > ul > li.pm-header-discover
  > .pm-header-discover-details[open]
  > summary{
  color:#65dc98 !important;
  background:transparent !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  transform:translateY(-1px) scale(1.04);
}

.pm-site-header nav > ul > li.pm-header-games-link > a i,
.pm-site-header nav > ul > li.pm-header-teams-link > a i,
.pm-site-header nav > ul > li.pm-header-discover
  > .pm-header-discover-details
  > summary
  > i:first-child{
  font-size:1.05rem !important;
}

/*
 * Petite flèche du menu Découvrir, sans créer d'encadré.
 */
.pm-site-header nav > ul > li.pm-header-discover
  .pm-header-discover-chevron{
  position:absolute !important;
  right:5px !important;
  bottom:5px !important;
  font-size:.40rem !important;
  opacity:.62 !important;
}

/*
 * Supprime également tout effet de fond hérité lorsqu'un <details>
 * est ouvert.
 */
.pm-site-header .pm-header-discover-details[open] > summary,
.pm-site-header .pm-header-discover-details > summary:hover,
.pm-site-header .pm-header-discover-details > summary:focus-visible{
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}

/* ---- includes/header.php bloc 4 ---- */
.pm-remember-option {
    width: 100%;
    margin: .15rem 0 .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    color: inherit;
    font-size: .92rem;
    cursor: pointer;
    user-select: none;
  }

  .pm-remember-option input {
    width: 1rem !important;
    height: 1rem !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #30c875;
  }

  .pm-login-help,
  .pm-back-login {
    margin: .8rem 0 1rem;
    text-align: right !important;
  }

  .pm-back-login {
    text-align: center !important;
  }

  .pm-login-help a,
  .pm-back-login a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .92rem;
  }

  .pm-forgot-intro {
    margin: 0 0 1rem !important;
    color: #666;
    line-height: 1.55;
    text-align: left !important;
  }

  [data-theme="dark"] .pm-forgot-intro {
    color: #b8b8b8;
  }

  #forgotPasswordSubmit[disabled] {
    opacity: .7;
    cursor: wait;
  }


  .pm-auth-divider {
    display:flex;
    align-items:center;
    gap:12px;
    margin:1rem 0;
    color:#8c929a;
    font-size:.78rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
  }
  .pm-auth-divider::before,
  .pm-auth-divider::after {
    content:"";
    flex:1 1 auto;
    height:1px;
    background:rgba(127,127,127,.25);
  }
  .pm-google-auth-button {
    width:100%;
    min-height:44px;
    padding:10px 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    box-sizing:border-box;
    color:#202124 !important;
    background:#fff !important;
    border:1px solid #dadce0 !important;
    border-radius:9px;
    font:inherit;
    font-weight:700;
    text-decoration:none !important;
    box-shadow:0 1px 2px rgba(0,0,0,.08);
    transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }
  .pm-google-auth-button:hover,
  .pm-google-auth-button:focus-visible {
    color:#202124 !important;
    border-color:#b8bec7 !important;
    box-shadow:0 3px 10px rgba(0,0,0,.14);
    transform:translateY(-1px);
    outline:none;
  }
  .pm-google-auth-button .fa-google {
    font-size:1.05rem;
    color:#4285f4;
  }


  /* ================================================================
     HEADER PLANET MODS — même identité visuelle que le footer
     ================================================================ */
  .pm-site-header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    min-height: 66px;
    padding: 0 !important;
    color: #f4f6f8;
    background:
      radial-gradient(circle at 12% -120%, rgba(77, 183, 118, .18), transparent 26rem),
      radial-gradient(circle at 90% -140%, rgba(90, 72, 226, .18), transparent 25rem),
      linear-gradient(145deg, rgba(21, 24, 28, .98) 0%, rgba(16, 18, 21, .99) 58%, rgba(11, 13, 15, .99) 100%) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .34) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    isolation: isolate;
    z-index: 9999;
  }

  .pm-site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, #30c875 0%, #8cdd52 34%, #5a48e2 68%, #30c875 100%);
    background-size: 220% 100%;
    animation: pmHeaderAccent 12s linear infinite;
    opacity: .9;
  }

  @keyframes pmHeaderAccent {
    to { background-position: 220% 0; }
  }

  .pm-site-header *,
  .pm-site-header *::before,
  .pm-site-header *::after {
    box-sizing: border-box;
  }

  .pm-site-header .pm-site-header__inner {
    width: min(1500px, calc(100% - 38px));
    height: 66px;
    margin: 0 auto;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(230px, auto) minmax(260px, 650px) minmax(230px, auto);
    align-items: center;
    gap: clamp(18px, 3vw, 48px);
  }

  .pm-site-header .logo-title-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0 !important;
    padding-left: 58px;
  }

  .pm-site-header .background-logo {
    position: absolute;
    top: 50%;
    left: 0;
    width: 52px;
    height: 52px;
    object-fit: contain;
    transform: translateY(-50%);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .38));
  }

  .pm-site-header .logo-title-wrapper h1 {
    margin: 0;
    line-height: 1;
  }

  .pm-site-header h1 a {
    display: inline-block;
    color: #fff !important;
    font-family: 'Fontdiner Swanky', serif;
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    animation: none !important;
    text-shadow: 0 4px 16px rgba(0, 0, 0, .38);
    transition: transform .2s ease, text-shadow .2s ease;
  }

  .pm-site-header h1 a:hover {
    color: #fff !important;
    transform: translateY(-1px);
    text-shadow: 0 0 18px rgba(48, 200, 117, .42);
  }

  .pm-site-header .search-bar-wrapper {
    width: 100%;
    margin: 0 !important;
    display: flex;
    justify-content: center;
  }

  .pm-site-header .search-form {
    width: 100%;
    max-width: 650px;
    min-height: 43px;
    margin: 0;
    padding: 0 !important;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: rgba(255, 255, 255, .055) !important;
    border: 1px solid rgba(255, 255, 255, .13) !important;
    border-radius: 13px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  }

  .pm-site-header .search-form:focus-within {
    background: rgba(255, 255, 255, .075) !important;
    border-color: rgba(72, 207, 126, .76) !important;
    box-shadow: 0 0 0 4px rgba(48, 200, 117, .11);
  }

  .pm-site-header .search-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 43px;
    margin: 0;
    padding: 0 16px;
    color: #f5f7f8 !important;
    font: inherit;
    font-size: .92rem;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .pm-site-header .search-form input::placeholder {
    color: #858c95 !important;
    opacity: 1;
  }

  .pm-site-header .search-form button {
    flex: 0 0 48px;
    width: 48px;
    height: 43px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    color: #fff !important;
    background: linear-gradient(135deg, #2dbf6d, #1d9953) !important;
    border: 0 !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
  }

  .pm-site-header .search-form button:hover {
    filter: brightness(1.12);
  }

  .pm-site-header .search-form button:active {
    transform: scale(.96);
  }

  .pm-site-header nav {
    justify-self: end;
    flex: none;
  }

  .pm-site-header nav > ul {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pm-site-header nav > ul > li {
    display: flex;
    align-items: center;
    margin: 0;
  }

  .pm-site-header nav > ul > li > a,
  .pm-site-header .user-toggle,
  .pm-site-header .pm-theme-quick-toggle,
  .pm-site-header .hamburger {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center;
    color: #eef1f3 !important;
    background: rgba(255, 255, 255, .052) !important;
    border: 1px solid rgba(255, 255, 255, .105) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  }

  .pm-site-header nav > ul > li > a:hover,
  .pm-site-header .user-toggle:hover,
  .pm-site-header .pm-theme-quick-toggle:hover,
  .pm-site-header .pm-theme-quick-toggle:focus-visible,
  .pm-site-header .hamburger:hover {
    color: #65dc98 !important;
    background: rgba(48, 200, 117, .11) !important;
    border-color: rgba(72, 207, 126, .46) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    transform: translateY(-2px);
  }

  .pm-site-header nav > ul > li > a i,
  .pm-site-header .pm-theme-quick-toggle i,
  .pm-site-header .hamburger i {
    font-size: 1rem;
  }

  .pm-site-header .pm-theme-quick-toggle {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    line-height: 1;
  }

  .pm-site-header .pm-theme-quick-toggle:focus-visible {
    outline: 2px solid rgba(101, 220, 152, .85);
    outline-offset: 3px;
  }

  .pm-site-header .pm-theme-quick-toggle i {
    transition: transform .22s ease;
  }

  .pm-site-header .pm-theme-quick-toggle:hover i {
    transform: rotate(18deg);
  }

  .pm-site-header .user-menu {
    position: relative;
  }

  .pm-site-header .user-avatar {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: cover;
    border: 2px solid rgba(72, 207, 126, .68);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  }

  .pm-site-header .dropdown-user-menu {
    top: calc(100% + 13px);
    right: 0;
    width: 245px;
    padding: 8px;
    overflow: visible;
    color: #f4f6f8;
    background:
      radial-gradient(circle at 100% 0%, rgba(90, 72, 226, .14), transparent 13rem),
      linear-gradient(145deg, #191c20, #101215) !important;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 15px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .48);
  }

  .pm-site-header .dropdown-user-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 14px;
    width: 13px;
    height: 13px;
    background: #171a1e;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-left: 1px solid rgba(255, 255, 255, .1);
    transform: rotate(45deg);
  }

  .pm-site-header .user-header {
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, .05) !important;
    border-radius: 10px;
  }

  .pm-site-header .dropdown-avatar {
    width: 38px;
    height: 38px;
    margin: 0;
    border: 2px solid rgba(72, 207, 126, .62);
    border-radius: 10px;
  }

  .pm-site-header .dropdown-username {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: .94rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pm-site-header .dropdown-user-menu .user-actions {
    display: block !important;
    margin: 8px 0 0;
    padding: 0;
  }

  .pm-site-header .dropdown-user-menu .user-actions li {
    display: block;
    border: 0 !important;
  }

  .pm-site-header .dropdown-user-menu .user-actions li + li {
    margin-top: 3px;
  }

  .pm-site-header .dropdown-user-menu .user-actions li a {
    width: 100%;
    min-height: 39px;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    color: #c8cdd3 !important;
    font-size: .89rem;
    border-radius: 9px;
    transition: color .18s ease, background .18s ease;
  }

  .pm-site-header .dropdown-user-menu .user-actions li a i {
    width: 22px;
    margin: 0 7px 0 0;
    color: #55d58b;
  }

  .pm-site-header .dropdown-user-menu .user-actions li a:hover {
    color: #fff !important;
    background: rgba(48, 200, 117, .105) !important;
  }

  .pm-site-header .pm-logout-form {
    width: 100%;
    margin: 0;
  }

  .pm-site-header .pm-logout-button {
    width: 100%;
    min-height: 39px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #c8cdd3;
    font: inherit;
    font-size: .89rem;
    text-align: left;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
  }

  .pm-site-header .pm-logout-button i {
    width: 22px;
    color: #ff7373;
  }

  .pm-site-header .pm-logout-button:hover,
  .pm-site-header .pm-logout-button:focus-visible {
    color: #fff;
    background: rgba(255, 82, 82, .12);
    outline: none;
  }

  .pm-site-header .theme-switch-wrapper {
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
  }

  .pm-site-header .hamburger {
    display: none !important;
    position: static !important;
    font-size: 1rem;
  }

  @media (max-width: 980px) {
    .pm-site-header .pm-site-header__inner {
      width: min(100% - 28px, 1500px);
      grid-template-columns: minmax(190px, auto) minmax(220px, 1fr) auto;
      gap: 16px;
    }

    .pm-site-header .logo-title-wrapper {
      padding-left: 47px;
    }

    .pm-site-header .background-logo {
      width: 43px;
      height: 43px;
    }

    .pm-site-header h1 a {
      font-size: 1.35rem;
    }
  }

  @media (max-width: 768px) {
    .pm-site-header {
      min-height: 62px;
    }

    .pm-site-header .pm-site-header__inner {
      position: relative;
      width: calc(100% - 22px) !important;
      height: 62px;
      grid-template-columns: auto 1fr auto;
      gap: 12px;
      padding: 0 !important;
    }

    .pm-site-header .logo-title-wrapper {
      padding-left: 42px;
    }

    .pm-site-header .background-logo {
      width: 39px;
      height: 39px;
    }

    .pm-site-header h1 a {
      font-size: 1.15rem !important;
    }

    .pm-site-header .search-form {
      min-height: 40px;
      border-radius: 11px !important;
    }

    .pm-site-header .search-form input[type="text"] {
      height: 40px;
      padding: 0 11px;
      font-size: .84rem;
    }

    .pm-site-header .search-form button {
      flex-basis: 42px;
      width: 42px;
      height: 40px;
    }

    .pm-site-header .hamburger {
      display: inline-grid !important;
      width: 40px !important;
      height: 40px !important;
      min-width: 40px;
    }

    .pm-site-header nav {
      position: static;
    }

    .pm-site-header nav > ul {
      display: none !important;
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: min(270px, calc(100vw - 22px));
      padding: 10px !important;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      background:
        radial-gradient(circle at 100% 0%, rgba(90, 72, 226, .14), transparent 13rem),
        linear-gradient(145deg, #191c20, #101215) !important;
      border: 1px solid rgba(255, 255, 255, .11);
      border-radius: 15px;
      box-shadow: 0 20px 48px rgba(0, 0, 0, .48);
    }

    .pm-site-header nav > ul.open {
      display: flex !important;
    }

    .pm-site-header nav > ul > li {
      width: 100%;
    }

    .pm-site-header nav > ul > li > a,
    .pm-site-header nav > ul > li > .user-toggle,
    .pm-site-header nav > ul > li > .pm-theme-quick-toggle {
      width: 100% !important;
      min-height: 42px;
      justify-content: center;
    }

    .pm-site-header .user-menu {
      flex-direction: column;
    }

    .pm-site-header .dropdown-user-menu {
      position: static;
      width: 100%;
      margin-top: 7px;
      box-shadow: none;
    }

    .pm-site-header .dropdown-user-menu::before {
      display: none;
    }
  }

  @media (max-width: 540px) {
    .pm-site-header .pm-site-header__inner {
      grid-template-columns: auto 1fr auto;
    }

    .pm-site-header .logo-title-wrapper {
      padding-left: 38px;
    }

    .pm-site-header .background-logo {
      width: 35px;
      height: 35px;
    }

    .pm-site-header h1 a {
      max-width: 112px;
      overflow: hidden;
      font-size: 1.02rem !important;
      text-overflow: clip;
    }

    .pm-site-header .search-form input[type="text"] {
      padding: 0 9px;
    }

    .pm-site-header .search-form input[type="text"]::placeholder {
      color: transparent !important;
    }
  }

/* ---- includes/header.php bloc 5 ---- */
.pm-site-header .pm-language-menu {
    position: relative;
  }

  .pm-site-header .pm-language-menu details {
    position: relative;
  }

  .pm-site-header .pm-language-menu summary {
    width: 72px;
    height: 42px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #eef1f3;
    background: rgba(255, 255, 255, .052);
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: 12px;
    cursor: pointer;
    list-style: none;
    transition: .2s ease;
  }

  .pm-site-header .pm-language-menu summary::-webkit-details-marker { display: none; }
  .pm-site-header .pm-language-menu summary::marker { display: none; content: ''; }

  .pm-site-header .pm-language-menu summary:hover,
  .pm-site-header .pm-language-menu details[open] summary {
    color: #65dc98;
    background: rgba(48, 200, 117, .11);
    border-color: rgba(72, 207, 126, .46);
  }

  .pm-language-flag-image,
  .pm-language-dropdown-flag {
    display: block;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 2px 5px rgba(0, 0, 0, .28);
  }

  .pm-language-flag-image {
    width: 18px;
    height: 12px;
  }

  .pm-language-dropdown-flag {
    width: 20px;
    height: 14px;
  }
  .pm-language-code { font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
  .pm-language-menu summary .fa-chevron-down { font-size: .58rem; transition: transform .2s ease; }
  .pm-language-menu details[open] summary .fa-chevron-down { transform: rotate(180deg); }

  .pm-language-dropdown {
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    width: 190px;
    padding: 7px;
    display: grid;
    gap: 3px;
    background: linear-gradient(145deg, #191c20, #101215);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .48);
    z-index: 10020;
  }

  .pm-language-dropdown a {
    position: relative;
    isolation: isolate;
    min-height: 39px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 22px 1fr 18px;
    align-items: center;
    gap: 9px;
    overflow: hidden;
    color: #e4e7ea !important;
    text-decoration: none;
    border-radius: 9px;
    font-size: .88rem;
    transition: color .2s ease, transform .2s ease, box-shadow .2s ease;
  }

  .pm-language-dropdown a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transform: scale(1.08);
    background-image:
      linear-gradient(90deg, rgba(8, 10, 13, .48), rgba(8, 10, 13, .36)),
      var(--pm-language-hover-flag);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: opacity .22s ease, transform .28s ease;
  }

  .pm-language-dropdown a.is-active {
    color: #fff !important;
    background: rgba(48, 200, 117, .13);
  }

  .pm-language-dropdown a:hover,
  .pm-language-dropdown a:focus-visible {
    color: #fff !important;
    background: transparent !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 7px 18px rgba(0, 0, 0, .24);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
    transform: translateX(3px);
    outline: none;
  }

  .pm-language-dropdown a:hover::before,
  .pm-language-dropdown a:focus-visible::before {
    opacity: 1;
    transform: scale(1);
  }

  .pm-language-dropdown a:hover .pm-language-dropdown-flag,
  .pm-language-dropdown a:focus-visible .pm-language-dropdown-flag {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 3px 8px rgba(0, 0, 0, .5);
  }

  .pm-language-dropdown a i {
    color: #62dc97;
    font-size: .75rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
  }

  @media (max-width: 980px) {
    .pm-language-dropdown { position: fixed; top: 72px; right: 16px; }
  }

/* ---- includes/footer.php bloc 1 ---- */
/* Badge reCAPTCHA visible quand reCAPTCHA est chargé (secours de Turnstile) : la mention n'est plus dans le pied de page. */
.grecaptcha-badge {
    z-index: 9000;
  }

  footer.pm-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    width: 100%;
    min-height: 260px;
    margin: clamp(38px, 6vw, 78px) 0 0 !important;
    padding: 0 !important;
    overflow: hidden;
    flex: 0 0 auto;
    clear: both;
    color: #f4f6f8;
    text-align: left;
    background:
      radial-gradient(circle at 15% 0%, rgba(77, 183, 118, .13), transparent 32rem),
      radial-gradient(circle at 90% 20%, rgba(90, 72, 226, .13), transparent 28rem),
      linear-gradient(145deg, #15181c 0%, #101215 58%, #0b0d0f 100%);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .18);
    isolation: isolate;
    z-index: 6;
  }

  .pm-footer *,
  .pm-footer *::before,
  .pm-footer *::after {
    box-sizing: border-box;
  }

  .pm-footer__accent {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #30c875 0%, #8cdd52 34%, #5a48e2 68%, #30c875 100%);
    background-size: 220% 100%;
    animation: pmFooterAccent 12s linear infinite;
  }

  @keyframes pmFooterAccent {
    to { background-position: 220% 0; }
  }

  .pm-footer__inner {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 54px 0 24px;
  }

  .pm-footer__main {
    display: grid;
    grid-template-columns: minmax(290px, 1.35fr) minmax(145px, .58fr) minmax(175px, .72fr) minmax(225px, .9fr) minmax(190px, .72fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
  }

  .pm-footer__brand {
    min-width: 0;
  }

  .pm-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    max-width: 100%;
    color: #fff;
    text-decoration: none;
  }

  .pm-footer__logo:hover {
    color: #fff;
  }

  .pm-footer__logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35));
  }

  .pm-footer__logo span {
    font-family: 'Fontdiner Swanky', serif;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    line-height: 1.1;
    white-space: nowrap;
  }

  .pm-footer__description {
    max-width: 520px;
    margin: 20px 0 22px;
    color: #aeb4bc;
    font-size: .95rem;
    line-height: 1.75;
  }

  .pm-footer__search {
    display: flex;
    width: min(100%, 480px);
    min-height: 46px;
    overflow: hidden;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  }

  .pm-footer__search:focus-within {
    background: rgba(255, 255, 255, .075);
    border-color: rgba(72, 207, 126, .75);
    box-shadow: 0 0 0 4px rgba(48, 200, 117, .11);
  }

  .pm-footer__search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 15px;
    color: #f5f7f8;
    font: inherit;
    font-size: .91rem;
    background: transparent;
    border: 0;
    outline: none;
  }

  .pm-footer__search input::placeholder {
    color: #838a93;
  }

  .pm-footer__search button {
    flex: 0 0 48px;
    height: 46px;
    color: #fff;
    background: linear-gradient(135deg, #2dbf6d, #1d9953);
    border: 0;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
  }

  .pm-footer__search button:hover {
    filter: brightness(1.12);
  }

  .pm-footer__search button:active {
    transform: scale(.96);
  }

  .pm-footer__column h2 {
    position: relative;
    margin: 5px 0 22px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
  }

  .pm-footer__column h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    background: linear-gradient(90deg, #32c776, #75d05e);
    border-radius: 99px;
  }

  .pm-footer__column ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pm-footer__column li {
    margin: 0;
  }

  .pm-footer__column li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #aeb4bc;
    font-size: .91rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
  }

  .pm-footer__column li a i {
    width: 17px;
    color: #62d392;
    font-size: .88rem;
    text-align: center;
    transition: color .2s ease;
  }

  .pm-footer__column li a:hover {
    color: #fff;
    transform: translateX(4px);
  }

  .pm-footer__column li a:hover i {
    color: #8ce9ae;
  }

  .pm-footer__legal-button {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 8px 0;
    color: #aeb4bc;
    font: inherit;
    font-size: .91rem;
    line-height: 1.42;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
  }

  .pm-footer__legal-button i {
    flex: 0 0 17px;
    width: 17px;
    margin-top: 2px;
    color: #62d392;
    font-size: .88rem;
    text-align: center;
    transition: color .2s ease;
  }

  .pm-footer__legal-button:hover,
  .pm-footer__legal-button:focus-visible {
    color: #fff;
    transform: translateX(4px);
    outline: none;
  }

  .pm-footer__legal-button:hover i,
  .pm-footer__legal-button:focus-visible i {
    color: #8ce9ae;
  }

  .pm-footer__legal-button[aria-busy="true"] {
    cursor: wait;
    opacity: .72;
  }

  .pm-footer__consent-status {
    min-height: 1.25em;
    margin: 8px 0 0;
    color: #8d949d;
    font-size: .75rem;
    line-height: 1.45;
  }

  .pm-footer__consent-status.is-error {
    color: #ffb4b4;
  }

  .pm-footer__muted-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #8d949d;
    font-size: .88rem;
    line-height: 1.55;
  }

  .pm-footer__muted-item i {
    margin-top: 4px;
    color: #62d392;
  }

  .pm-footer__community > p {
    margin: -3px 0 19px;
    color: #959ca5;
    font-size: .88rem;
    line-height: 1.6;
  }

  .pm-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
  }

  .pm-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  .pm-footer__social i {
    font-size: 1.15rem;
  }

  .pm-footer__social:hover {
    color: #fff;
    transform: translateY(-3px);
  }

  .pm-footer__social--youtube:hover {
    background: #e62117;
    border-color: #e62117;
    box-shadow: 0 8px 24px rgba(230, 33, 23, .25);
  }
  .pm-footer__social--discord:hover {
    background: #7289da;
    border-color: #7289da;
    box-shadow: 0 8px 24px rgba(114, 137, 218, .25);
  }
  .pm-footer__social-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
  }

  .pm-footer__social--x:hover {
    color: #0f1114;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 8px 24px rgba(255, 255, 255, .18);
  }

  .pm-footer__top {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 15px;
    color: #e8ebee;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 11px;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
  }

  .pm-footer__top:hover {
    color: #fff;
    background: rgba(48, 200, 117, .13);
    border-color: rgba(48, 200, 117, .48);
    transform: translateY(-2px);
  }

  .pm-footer__divider {
    width: 100%;
    height: 1px;
    margin: 46px 0 22px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13) 15%, rgba(255, 255, 255, .13) 85%, transparent);
  }

  .pm-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }

  .pm-footer__copyright,
  .pm-footer__recaptcha {
    margin: 0;
  }

  .pm-footer__copyright {
    flex: 0 0 auto;
    color: #aeb4bc;
    font-size: .84rem;
  }

  .pm-footer__copyright strong {
    color: #f0f2f4;
    font-weight: 700;
  }

  .pm-footer__recaptcha {
    max-width: 720px;
    color: #757d86;
    font-size: .72rem;
    line-height: 1.55;
    text-align: right;
  }

  .pm-footer__recaptcha a {
    color: #9ba2aa;
    text-decoration: underline;
    text-decoration-color: rgba(155, 162, 170, .45);
    text-underline-offset: 2px;
  }

  .pm-footer__recaptcha a:hover {
    color: #fff;
  }

  @media (max-width: 1180px) {
    .pm-footer__main {
      grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(165px, .7fr));
    }

    .pm-footer__community {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: minmax(180px, 1fr) auto auto;
      align-items: center;
      gap: 18px;
      padding-top: 2px;
    }

    .pm-footer__community h2 {
      grid-column: 1 / -1;
      margin-bottom: 2px;
    }

    .pm-footer__community > p,
    .pm-footer__socials {
      margin: 0;
    }
  }

  @media (max-width: 760px) {
    .pm-footer__inner {
      width: min(100% - 32px, 620px);
      padding-top: 42px;
    }

    .pm-footer__main {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 34px 28px;
    }

    .pm-footer__brand,
    .pm-footer__community {
      grid-column: 1 / -1;
    }

    .pm-footer__community {
      display: block;
      padding-top: 0;
    }

    .pm-footer__community h2 {
      margin-bottom: 22px;
    }

    .pm-footer__community > p {
      margin-bottom: 18px;
    }

    .pm-footer__socials {
      margin-bottom: 18px;
    }

    .pm-footer__bottom {
      align-items: flex-start;
      flex-direction: column;
      gap: 13px;
    }

    .pm-footer__recaptcha {
      text-align: left;
    }
  }

  @media (max-width: 480px) {
    .pm-footer__inner {
      width: calc(100% - 28px);
      padding: 36px 0 20px;
    }

    .pm-footer__main {
      grid-template-columns: 1fr;
      gap: 32px;
    }

    .pm-footer__brand,
    .pm-footer__community {
      grid-column: auto;
    }

    .pm-footer__logo img {
      width: 52px;
      height: 52px;
    }

    .pm-footer__logo span {
      font-size: 1.45rem;
    }

    .pm-footer__description {
      margin-top: 16px;
    }

    .pm-footer__divider {
      margin: 36px 0 20px;
    }
  }


  /* Sécurité supplémentaire : le doublon Google est supprimé dans template.php. */
  .google-revocation-link-placeholder {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    pointer-events: none !important;
  }

  @media (prefers-reduced-motion: reduce) {
    .pm-footer__accent {
      animation: none;
    }

    .pm-footer *,
    .pm-footer *::before,
    .pm-footer *::after {
      scroll-behavior: auto !important;
      transition-duration: .01ms !important;
    }
  }

/* ---- template.php : doublon du lien de révocation AdSense ---- */
.google-revocation-link-placeholder {
  display: none !important; visibility: hidden !important; opacity: 0 !important;
  width: 0 !important; height: 0 !important; min-height: 0 !important; max-height: 0 !important;
  margin: 0 !important; padding: 0 !important; overflow: hidden !important; border: 0 !important;
  pointer-events: none !important;
}

/* ---- Refonte : remplace les anciens attributs style="" (CSP) ---- */
#ads-footer-wrap.pm-ads-footer { display: flex; justify-content: center; width: 100%; }
#ads-footer-wrap .adsbygoogle { display: block; width: 500px; height: 100px; margin: 0 auto; }
.pm-flash { margin: 16px auto; max-width: 1100px; }

/* ---- Refonte : pages connexion / compte (réutilisent les variables du thème) ---- */
.pm-auth-page { min-height: 55vh; display: grid; place-items: center; padding: 40px 16px; }
.pm-auth-page .modal-content { margin: 0 auto; box-shadow: 0 10px 30px var(--card-shadow); }
.pm-auth-page .modal-content .invalid-feedback { display: block; margin: -.6rem 0 .8rem; }
.pm-account { width: min(1100px, 100% - 32px); margin: 32px auto; display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.pm-account__nav { background: var(--card-bg); color: var(--card-text); border: 1px solid var(--card-border); border-radius: 14px; padding: 10px; position: sticky; top: 90px; }
.pm-account__nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 600; }
.pm-account__nav a:hover, .pm-account__nav a.is-active { background: rgba(34,197,94,.14); color: #16a34a; }
.pm-card { background: var(--card-bg); color: var(--card-text); border: 1px solid var(--card-border); border-radius: 14px; padding: 24px; box-shadow: 0 4px 14px var(--card-shadow); margin-bottom: 24px; }
.pm-card h2 { font-size: 1.25rem; margin: 0 0 4px; }
.pm-card > p.pm-muted, .pm-muted { color: var(--card-text-muted); }
.pm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pm-form-grid .pm-span-2 { grid-column: 1 / -1; }
.pm-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.pm-field input, .pm-field select, .pm-field textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--card-border); border-radius: 8px; background: var(--bg-page); color: var(--text-page); }
.pm-field .pm-error { color: #dc2626; font-size: .875rem; margin-top: 4px; }
.pm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pm-btn { display: inline-flex; align-items: center; gap: 8px; padding: .6rem 1.1rem; border-radius: 8px; border: 0; font-weight: 700; cursor: pointer; text-decoration: none; background: #22c55e; color: #fff; }
.pm-btn:hover { background: #16a34a; color: #fff; }
.pm-btn--ghost { background: transparent; color: inherit; border: 1px solid var(--card-border); }
.pm-btn--danger { background: #dc2626; }
.pm-btn--danger:hover { background: #b91c1c; }
.pm-avatar-preview { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.pm-qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; }
.pm-codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 24px; font-family: ui-monospace, monospace; font-size: 1.05rem; padding: 14px; border-radius: 10px; background: rgba(0,0,0,.06); }
.pm-session { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--card-border); }
.pm-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(34,197,94,.15); color: #16a34a; }
.pm-section-title { width: min(1500px, 100% - 32px); margin: 32px auto 12px; }
.pm-simple-grid { width: min(1500px, 100% - 32px); margin: 0 auto 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pm-simple-grid .pm-card { margin: 0; padding: 16px; }
.pm-simple-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.pm-notification-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--card-border); color: inherit; text-decoration: none; }
.pm-notification-row.is-unread strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-left: 8px; vertical-align: middle; }
@media (max-width: 860px) {
  .pm-account { grid-template-columns: 1fr; }
  .pm-account__nav { position: static; display: flex; overflow-x: auto; }
  .pm-form-grid { grid-template-columns: 1fr; }
}
.modal-content a.pm-btn-link, .modal-content a.pm-btn-link:hover { color: #fff; text-decoration: none; }
.pm-account, .pm-account .pm-card { text-align: left; }
.pm-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Pages d'authentification (connexion, inscription, mot de passe, confirmation admin…) :
   l'ancien site les affichait dans une modale blanche hors de #content, donc en texte sombre.
   Ici elles sont dans #content, qui impose un texte clair : on rétablit le texte sombre. */
#content .pm-auth-page .modal-content { color: #212529; }
#content .pm-auth-page .modal-content :is(h1, h2, h3, h4, p, label, span, small, summary, li, legend, .form-text) { color: inherit; }
#content .pm-auth-page .modal-content .text-muted,
#content .pm-auth-page .modal-content .form-text { color: #6c757d !important; }
#content .pm-auth-page .modal-content .alert-danger { color: #842029; }
#content .pm-auth-page .modal-content .alert-success { color: #0f5132; }
#content .pm-auth-page .modal-content .alert-warning { color: #664d03; }
#content .pm-auth-page .modal-content .alert-info { color: #055160; }
#content .pm-auth-page .modal-content > p:first-of-type { margin-top: .4rem; }

/* ---- Logos de team : toujours ronds, avec le cadrage (zoom + position) choisi dans « Modifier la team » ----
   Le cadrage est appliqué sur l'image en transform translate(x %, y %) scale(zoom) ; le rond masque le reste. */
.pm-team-logo-round{display:inline-grid;place-items:center;flex:0 0 auto;width:var(--pm-logo-size,40px);height:var(--pm-logo-size,40px);border-radius:50%;overflow:hidden;background:rgba(255,255,255,.06);vertical-align:middle}
.pm-team-logo-round img{width:100%;height:100%;object-fit:contain;transform-origin:center}
.pm-team-logo-round>span{font-weight:900;font-size:calc(var(--pm-logo-size,40px) * .42)}
body .pm-team-logo,
body .pm-team-profile-logo-frame,
body .pm-team-profile-logo-frame .pm-team-logo,
body .team-edit-logo,
body .cs-team-logo,
body .team-banner-logo,
body .tp-logo,
body .pm-mod-team-logo,
body .pm-sub-avatar.pm-team-logo-round,
body .pm-profile-team-logo.pm-team-logo-round{border-radius:50% !important;overflow:hidden !important}
body .pm-team-logo,body .team-banner-logo{width:118px !important;height:118px !important;padding:0 !important}
body .pm-team-detail-title .pm-team-logo{width:150px !important;height:150px !important}
body .pm-team-private-detail .pm-team-logo{width:150px !important;height:150px !important}
body .pm-team-profile-logo-frame .pm-team-logo{width:100% !important;height:100% !important}
body .team-edit-logo{width:110px !important;height:110px !important;flex-basis:110px !important;padding:0 !important}
body .cs-team-logo{padding:0 !important}
:is(.pm-team-logo,.team-edit-logo,.cs-team-logo,.team-banner-logo,.tp-logo,.pm-mod-team-logo) img{width:100% !important;height:100% !important;object-fit:contain !important;transform-origin:center}
@media(max-width:720px){body .pm-team-detail-title .pm-team-logo{width:120px !important;height:120px !important}}

/* Éditeur de cadrage du logo (Modifier la team › Apparence) */
.pm-logo-cropper{display:grid;gap:10px;justify-items:center}
.pm-logo-cropper__stage{position:relative;width:min(200px,100%);aspect-ratio:1;height:auto;border-radius:50%;overflow:hidden;cursor:grab;touch-action:none;user-select:none;background:repeating-conic-gradient(rgba(255,255,255,.08) 0 25%,transparent 0 50%) 0 0/20px 20px;box-shadow:0 0 0 3px rgba(34,197,94,.55)}
.pm-logo-cropper__stage.is-dragging{cursor:grabbing}
.pm-logo-cropper__stage img{width:100%;height:100%;object-fit:contain;pointer-events:none;transform-origin:center}
.pm-logo-cropper__stage>span{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted,#aaa);font-size:.85rem;text-align:center;padding:20px}
.pm-logo-cropper__zoom{display:flex;align-items:center;gap:10px;width:100%;max-width:280px}
.pm-logo-cropper__zoom input{flex:1;accent-color:#22c55e}
.pm-logo-cropper__help{font-size:.8rem;opacity:.8;text-align:center;margin:0}

/* ---- Pagination du site (même style que l'ancienne pagination de la fiche jeu) ---- */
.pm-pagination{display:flex;flex-wrap:wrap;gap:.4rem}
.pm-pagination .page-item{margin:0}
.pm-pagination .page-link{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 .7rem;border:1px solid var(--card-border);border-radius:8px !important;background-color:var(--search-bar-bg);color:var(--search-bar-txt);font-weight:600;line-height:1;box-shadow:none;transition:transform .15s ease,background-color .2s ease,border-color .2s ease,color .2s ease}
.pm-pagination .page-item:not(.active):not(.disabled) .page-link:hover{z-index:2;border-color:var(--btn-primary-bg);background-color:var(--card-bg);color:var(--btn-primary-bg);transform:translateY(-1px)}
.pm-pagination .page-item.active .page-link{z-index:3;border-color:var(--btn-primary-bg);background-color:var(--btn-primary-bg);color:var(--btn-primary-color)}
.pm-pagination .page-item.disabled .page-link{opacity:.45;cursor:not-allowed;transform:none}
.pm-pagination .page-link:focus{z-index:4;box-shadow:0 0 0 3px rgba(90,72,226,.18)}

/* ---- Emplacements publicitaires AdSense (Admin › Emplacements publicitaires) ---- */
.pm-ad{position:relative;width:100%;text-align:center}
.pm-ad__label{display:block;margin-bottom:4px;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;opacity:.55}
.pm-ad--banner{max-width:1200px;margin:0 auto}
.pm-ad-card{display:flex;align-items:center;justify-content:center;min-height:280px;padding:12px;overflow:hidden}
.pm-ad-card .pm-ad{width:100%}
.pm-ads-footer .pm-ad,.pm-ads-top .pm-ad{display:flex;flex-direction:column;align-items:center}
/* Google n'a pas d'annonce à proposer : on retire l'emplacement plutôt que de laisser une case vide. */
.tilt:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.pm-ad-card-wrap:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.pm-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]){display:none}

/* Espace RGPD « Mes données » */
.pm-card--danger { border-color: rgba(220, 53, 69, .45); }
.pm-card--danger h2 { color: #dc3545; }

/* Pied de page : survol propre (la règle « nav ul li a » de l'ancien en-tête ajoutait un fond gris décalé et coupé). */
.pm-footer .pm-footer__column li a,
.pm-footer .pm-footer__legal-button {
  width: auto;
  margin-left: -10px;
  padding: 7px 12px 7px 10px;
  border-radius: 10px;
  background: transparent;
  font-size: .91rem;
  transition: color .2s ease, background-color .2s ease;
}
.pm-footer .pm-footer__column li a:hover,
.pm-footer .pm-footer__column li a:focus-visible,
.pm-footer .pm-footer__legal-button:hover,
.pm-footer .pm-footer__legal-button:focus-visible {
  color: #fff;
  background: rgba(98, 211, 146, .1);
  transform: none;
  outline: none;
}
.pm-footer .pm-footer__column li a:focus-visible,
.pm-footer .pm-footer__legal-button:focus-visible { box-shadow: 0 0 0 2px rgba(98, 211, 146, .55); }
html[data-theme="light"] .pm-footer .pm-footer__column li a:hover,
html[data-theme="light"] .pm-footer .pm-footer__legal-button:hover { background: rgba(28, 150, 90, .1); }

/* Creator Studio › Paramètres : onglets (Profil et compte, Sécurité, Mes données, Alertes). */
.pm-settings-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(0,0,0,.18); }
.pm-settings-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; color: #c4c9d0; font-weight: 600; font-size: .92rem; text-decoration: none; transition: background-color .2s, color .2s; }
.pm-settings-tabs a i { color: #62d392; }
.pm-settings-tabs a:hover { background: rgba(255,255,255,.06); color: #fff; }
.pm-settings-tabs a.is-active { background: rgba(98,211,146,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(98,211,146,.35); }
.pm-settings-sub__body > .pm-card { margin-bottom: 18px; }
.pm-settings-sub { text-align: left; }
html[data-theme="light"] .pm-settings-tabs { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); }
html[data-theme="light"] .pm-settings-tabs a { color: #3b4250; }
html[data-theme="light"] .pm-settings-tabs a:hover, html[data-theme="light"] .pm-settings-tabs a.is-active { color: #111; }

/* Menu mobile : les icônes seules ne disent pas ce qu'elles ouvrent → on affiche leur nom à côté. */
@media (max-width: 768px) {
  html body .pm-site-header nav > ul > li:not(.pm-language-menu) > a[aria-label],
  html body .pm-site-header nav > ul > li:not(.pm-language-menu) > details,
  html body .pm-site-header nav > ul > li:not(.pm-language-menu) > details > summary[aria-label],
  html body .pm-site-header nav > ul > li > .user-toggle[aria-label] {
    width: 100% !important;
    max-width: none !important;
  }
  html body .pm-site-header nav > ul > li:not(.pm-language-menu) > a[aria-label],
  html body .pm-site-header nav > ul > li:not(.pm-language-menu) > details > summary[aria-label],
  html body .pm-site-header nav > ul > li > .user-toggle[aria-label] {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 12px;
    padding: 0 14px !important;
    min-height: 42px;
  }
  html body .pm-site-header nav > ul > li:not(.pm-language-menu) > a[aria-label]::after,
  html body .pm-site-header nav > ul > li:not(.pm-language-menu) > details > summary[aria-label]::after,
  html body .pm-site-header nav > ul > li > .user-toggle[aria-label]::after {
    content: attr(aria-label);
    font-size: .92rem;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
  }
  html body .pm-site-header nav > ul > li > details > summary .pm-header-discover-chevron { order: 2; margin-left: auto; }
}
