@import url('https://fonts.googleapis.com/css2?family=Fontdiner+Swanky&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mogra&display=swap');

/* ==========================================================================
   PLANET MODS - STYLE V1
   Socle V2 : mêmes classes, mêmes couleurs et mêmes comportements visuels.
   ========================================================================== */

:root {
  --bg-page:#ffffff;
  --text-page:#333333;
  --bg-header:rgba(255,255,255,.55);
  --link-color:#007bff;
  --btn-primary-bg:#007bff;
  --btn-primary-color:#ffffff;
  --ariane-color:#585858;
  --ariane-color-hover:#828282;
  --search-bar-bg:#d5d5d5;
  --search-bar-txt:#1a1a1a;
  --bg-fiche-jeu:rgba(230,230,230,.8);

  --card-bg:#fff;
  --card-text:#333;
  --card-border:#ddd;
  --card-shadow:rgba(0,0,0,.1);
  --btn-bg:#007bff;
  --btn-text:#fff;
  --btn-hover-bg:#0056b3;
  --card-text-muted:#aaa;
}

[data-theme="dark"] {
  --bg-page:#272d36;
  --text-page:#e0e0e0;
  --bg-header:rgba(0,0,0,.95);
  --link-color:#5a48e2;
  --btn-primary-bg:#5a48e2;
  --btn-primary-color:#fff;
  --ariane-color:#c2c2c2;
  --ariane-color-hover:#fff;
  --search-bar-bg:#1a1a1a;
  --search-bar-txt:#f0f0f0;
  --bg-fiche-jeu:rgba(62,62,62,.7);

  --card-bg:#2a2a2a;
  --card-text:#eee;
  --card-border:#444;
  --card-shadow:rgba(0,0,0,.6);
  --btn-bg:#375a7f;
  --btn-text:#fff;
  --btn-hover-bg:#2c3e50;
  --card-text-muted:#888;
}

html,
body {
  width:100%;
  min-height:100%;
  margin:0;
}

body {
  display:flex;
  flex-direction:column;
  min-height:100vh;
  font-family:'Inter',sans-serif;
  color:var(--text-page);
  background:var(--bg-page);
}

body::before {
  content:"";
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  background-image:url('/assets/site/background.svg');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  background-repeat:no-repeat;
  opacity:.03;
  z-index:-1;
  pointer-events:none;
}

a {
  transition:color .2s ease, background .2s ease, transform .2s ease;
}

.container-head {
  display:flex !important;
  width:100%;
  height:50px;
  margin:0 auto;
  padding:0 2rem;
  justify-content:space-between;
  align-items:center;
  z-index:2000;
}

header.pm-site-header {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  padding:.5rem 0;
  background:#000;
  border-bottom:1px solid #fff;
  box-shadow:0 10px 20px rgba(0,0,0,.5);
  z-index:9999;
}

.pm-site-header__inner {
  max-width:1500px;
}

.logo-title-wrapper {
  position:relative;
  display:inline-block;
  margin-left:1rem;
  flex:0 0 auto;
}

.background-logo {
  position:absolute;
  top:5px;
  left:-40px;
  width:50px;
  height:50px;
  object-fit:contain;
  z-index:0;
  pointer-events:none;
  filter:drop-shadow(0 0 10px rgba(0,0,0,.4));
}

.logo-title-wrapper h1 {
  position:relative;
  z-index:1;
  margin:0;
  line-height:1;
}

header h1 a {
  display:inline-block;
  position:relative;
  color:#fff;
  font-family:'Fontdiner Swanky',cursive;
  font-size:1.7rem;
  font-weight:700;
  letter-spacing:1px;
  text-decoration:none;
  transition:transform .3s ease,text-shadow .3s ease;
}

header h1 a:hover {
  color:#fff;
  transform:scale(1.05) rotate(-1.5deg);
  text-shadow:
    0 0 6px #fff,
    0 0 12px #fff,
    0 0 16px #6a11cb,
    0 0 22px #6a11cb,
    0 0 28px #2575fc,
    0 0 36px #2575fc;
}

.search-bar-wrapper {
  flex:1 1 auto;
  display:flex;
  justify-content:center;
  min-width:0;
  margin:0 20px;
}

.search-form {
  display:flex;
  align-items:center;
  width:100%;
  max-width:600px;
  height:38px;
  padding:3px 10px;
  background:#222;
  border:1px solid #444;
  border-radius:25px;
}

.search-form input[type="text"] {
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  padding:5px 10px;
  font-size:.9rem;
}

.search-form input::placeholder {
  color:#bbb;
}

.search-form button {
  flex:0 0 auto;
  border:0;
  background:transparent;
  color:#fff;
  font-size:1rem;
  cursor:pointer;
}

.container-head nav {
  flex:0 0 auto;
}

.container-head nav > ul {
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:.45rem;
  margin:0;
  padding:0;
  list-style:none;
}

.container-head nav ul li {
  flex:0 0 auto;
  margin:0;
}

.container-head nav ul li > a,
.pm-header-icon-button,
.pm-language-menu summary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:38px;
  padding:.5rem;
  border:0;
  border-radius:.5rem;
  background:transparent;
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  font-size:1.05rem;
}

.container-head nav ul li > a:hover,
.pm-header-icon-button:hover,
.pm-language-menu summary:hover {
  color:#fff;
  background:rgba(255,255,255,.2);
}

.pm-language-menu {
  position:relative;
}

.pm-language-menu details,
.pm-language-menu summary {
  list-style:none;
}

.pm-language-menu summary::-webkit-details-marker {
  display:none;
}

.pm-language-dropdown {
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:190px;
  overflow:hidden;
  padding:6px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background:#1f1f1f;
  box-shadow:0 10px 30px rgba(0,0,0,.45);
}

.pm-language-dropdown a {
  display:flex !important;
  justify-content:flex-start !important;
  gap:10px;
  width:100%;
  min-height:38px !important;
  color:#ddd !important;
  font-size:.88rem !important;
}

.pm-language-dropdown a.active,
.pm-language-dropdown a:hover {
  background:#333 !important;
  color:#fff !important;
}

.hamburger {
  display:none;
  border:0;
  background:transparent;
  color:#fff;
  font-size:1.8rem;
  cursor:pointer;
}

.overlay-text {
  position:absolute;
  top:65px;
  left:50%;
  width:100%;
  max-width:1200px;
  padding:10px 20px;
  transform:translateX(-50%);
  color:var(--text-page);
  opacity:.2;
  font-family:'Fontdiner Swanky',cursive;
  font-size:4vw;
  text-align:center;
  white-space:nowrap;
  pointer-events:none;
  z-index:0;
}

/* Carousel V1 */
.carousel-wrapper {
  position:relative;
  max-width:50%;
  margin:auto;
}

.carousel-wrapper.pm-header-carousel-gap {
  margin-top:68px !important;
}

.scroll-container {
  display:flex;
  width:100%;
  margin:0 auto;
  padding:1rem 10px;
  gap:1rem;
  overflow-x:auto;
  scroll-behavior:smooth;
  scrollbar-width:none;
}

.scroll-container::-webkit-scrollbar {
  display:none;
}

.carousel-img {
  display:flex;
  align-items:center;
  justify-content:center;
  width:90px;
  height:130px;
  object-fit:cover;
  flex-shrink:0;
  overflow:hidden;
  border-radius:8px;
  transition:transform .3s ease;
}

.carousel-img:hover {
  transform:scale(1.08);
}

.pm-carousel-placeholder {
  color:#fff;
  background:linear-gradient(145deg,#1a1a1a,#323232);
  font-size:1.7rem;
}

.carousel-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  padding:.5rem 1rem;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.9);
  color:#fff;
  cursor:pointer;
  z-index:2;
}

.carousel-arrow.left { left:-50px; }
.carousel-arrow.right { right:-50px; }

.pm-header-spacer {
  height:78px;
}

/* Fil d'Ariane */
.container_ariane {
  width:90%;
  margin:6px auto 0;
  padding:2px;
  color:var(--ariane-color);
  font-size:.8rem;
}

.breadcrumb {
  display:flex;
  flex-wrap:wrap;
  gap:0;
  margin:0;
  padding:0;
  color:var(--ariane-color);
  font-size:.8rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content:"›";
  color:var(--ariane-color);
}

.breadcrumb-item a {
  color:var(--ariane-color);
  text-decoration:none;
}

.breadcrumb-item a:hover {
  color:var(--ariane-color-hover);
}

.breadcrumb-item.active {
  color:var(--ariane-color);
}

/* Contenu */
.container-central {
  width:90%;
  margin:0 auto;
  padding:0 2rem 100px;
  flex:1 0 auto;
  z-index:2;
  display:block;
  text-align:center;
}

#content {
  width:100%;
  margin-top:40px;
  opacity:1;
  color:var(--text-page);
}

.pm-db-notice {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  max-width:900px;
  margin:0 auto 18px;
  padding:10px 14px;
  border:1px solid rgba(255,193,7,.45);
  border-radius:10px;
  background:rgba(255,193,7,.10);
  color:var(--text-page);
  font-size:.86rem;
}

/* Fiche globale V1 */
.fiche-jeu-global {
  position:relative;
  width:100%;
  max-width:100%;
  min-width:300px;
  margin:0 auto;
  padding:1.5rem;
  overflow:hidden;
  border-radius:2rem;
  color:var(--card-text);
}

.fiche-jeu-global h1,
.fiche-jeu-global h2 {
  color:var(--text-page);
}

/* Featured V1 */
.hero-featured {
  position:relative;
  overflow:hidden;
  width:100%;
  margin:0 auto;
  background-position:center;
  background-size:cover;
  border-radius:18px;
  box-shadow:0 16px 36px rgba(0,0,0,.18);
}

.hero-featured.hero-compact {
  height:clamp(220px,35vh,420px);
}

.hero-overlay {
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:space-between;
  padding:clamp(20px,4vw,54px);
  color:#fff;
  background:
    linear-gradient(90deg,rgba(0,0,0,.80) 0%,rgba(0,0,0,.50) 48%,rgba(0,0,0,.12) 100%),
    linear-gradient(0deg,rgba(0,0,0,.20),transparent 60%);
}

.hero-content {
  max-width:720px;
  text-align:left;
}

.hero-featured.hero-compact .hero-content h1 {
  margin:.2rem 0 1rem;
  color:#fff;
  font-size:clamp(22px,3.2vw,44px);
  line-height:1.15;
  font-weight:800;
  text-shadow:0 3px 14px rgba(0,0,0,.7);
}

.hero-label {
  display:inline-flex;
  align-items:center;
  padding:.25rem .55rem;
  border-radius:999px;
  background:#5a48e2;
  color:#fff;
  font-size:.8rem;
  font-weight:700;
  box-shadow:0 6px 16px rgba(0,0,0,.28);
}

.btn-cta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.55rem 1.1rem;
  border:0;
  border-radius:8px;
  background:#5a48e2;
  color:#fff !important;
  font-size:.95rem;
  font-weight:700;
  text-decoration:none !important;
  box-shadow:0 7px 18px rgba(0,0,0,.25);
}

.btn-cta:hover {
  background:#4538c7;
  transform:translateY(-1px);
}

/* Grid accueil V1 */
.home-max {
  max-width:1350px;
  margin:0 auto;
  padding:0 1rem;
}

.mods-grid {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:20px;
  width:100%;
  margin-top:28px;
}

.mods-grid > .tilt {
  flex:0 1 calc(25% - 20px);
  min-width:0;
}

.mods-grid .tilt {
  transform:rotate(var(--r,0deg));
}

.basic-card,
.dlc-card,
.top-card,
.mod-card {
  flex:0 0 335px;
  width:100%;
  max-width:335px;
}

.basic-card .card,
.dlc-card .card,
.top-card .card,
.mod-card .card {
  width:100%;
  overflow:hidden;
  border:1px solid var(--card-border);
  border-radius:12px;
  background:var(--card-bg);
  color:var(--card-text);
  box-shadow:0 5px 18px var(--card-shadow);
  transition:transform .2s ease,box-shadow .2s ease;
}

.basic-card .card:hover,
.mod-card .card:hover {
  transform:translateY(-4px);
  box-shadow:0 11px 28px rgba(0,0,0,.25);
}

.card-link-wrapper {
  display:block;
  color:inherit !important;
  text-decoration:none !important;
}

.card-img-wrapper {
  position:relative;
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--search-bar-bg);
}

.card-img-top {
  width:100%;
  height:100%;
  min-height:190px;
  object-fit:cover;
}

.card-body {
  color:var(--card-text);
}

.card-title {
  color:var(--card-text);
  font-weight:700;
}

.pub-date {
  color:var(--card-text-muted);
  font-size:.78rem;
}

.card-author {
  color:var(--card-text);
  font-size:.84rem;
}

.author-avatar,
.author-avatar-placeholder {
  flex:0 0 40px;
}

.rating-stars {
  margin:4px 0 7px;
  min-height:20px;
}

.stats {
  color:var(--card-text-muted);
  font-size:.78rem;
  line-height:1.45;
}

.platform-bar {
  position:absolute;
  right:8px;
  bottom:8px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(0,0,0,.78);
  color:#fff;
  backdrop-filter:blur(4px);
  box-shadow:0 4px 12px rgba(0,0,0,.25);
}

.platform-bar i {
  font-size:.9rem;
}

/* DLC V1 */
.dlc-slider,
.dlc-swiper {
  width:100%;
  min-width:0;
  overflow:hidden;
}

.dlc-swiper .swiper-wrapper {
  align-items:stretch;
}

.dlc-swiper .swiper-slide {
  display:flex;
  justify-content:center;
  align-items:stretch;
  box-sizing:border-box;
}

.dlc-swiper .swiper-slide > .hero-featured {
  flex:0 0 90%;
  width:90%;
  margin-right:auto;
  margin-left:auto;
  aspect-ratio:16/9;
}

.dlc-swiper:not(.swiper-initialized) .swiper-wrapper {
  display:flex;
  width:100%;
}

.dlc-swiper:not(.swiper-initialized) .swiper-slide {
  flex:0 0 100%;
  width:100%;
}

.dlc-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  display:none;
}

.swiper-pagination-bullet {
  background:#fff;
  opacity:.55;
}

.swiper-pagination-bullet-active {
  opacity:1;
  background:#5a48e2;
}

.hero-featured .ribbon {
  position:absolute;
  top:-10px;
  right:-10px;
  width:150px;
  height:150px;
  overflow:visible;
  pointer-events:none;
  z-index:8;
}

.hero-featured .ribbon span {
  position:absolute;
  top:30px;
  right:-55px;
  display:block;
  width:225px;
  padding:10px 0;
  transform:rotate(45deg);
  background:#28a745;
  color:#fff;
  font-weight:bold;
  text-align:center;
  text-transform:uppercase;
  font-size:.85rem;
  box-shadow:0 12px 16px rgba(0,0,0,.5);
}

.game-logo-wrapper-2 {
  position:relative;
  top:50px;
  left:50%;
  transform:translateX(-50%);
  height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:2px;
  border-radius:6px;
  overflow:visible;
  z-index:5;
}

.game-logo {
  display:block;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

/* États */
.pm-state-card {
  width:min(720px,100%);
  margin:60px auto;
  padding:40px 25px;
  border:1px solid var(--card-border);
  border-radius:18px;
  background:var(--card-bg);
  color:var(--card-text);
  box-shadow:0 10px 30px var(--card-shadow);
}

.pm-state-code {
  color:#5a48e2;
  font-family:'Fontdiner Swanky',cursive;
  font-size:clamp(2.8rem,8vw,6rem);
}

.pm-state-card h1,
.pm-state-card h2 {
  color:var(--card-text);
}

/* Footer V1 actuel */
footer.pm-footer {
  display:block;
  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__logo {
  display:inline-flex;
  align-items:center;
  gap:13px;
  color:#fff !important;
  text-decoration:none !important;
}

.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);
  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;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(255,255,255,.055);
}

.pm-footer__search input {
  flex:1;
  min-width:0;
  padding:0 14px;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
}

.pm-footer__search input::placeholder {
  color:#7f8791;
}

.pm-footer__search button {
  width:48px;
  border:0;
  color:#fff;
  background:#5a48e2;
}

.pm-footer__column h2 {
  margin:3px 0 18px;
  color:#fff;
  font-size:.9rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

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

.pm-footer__column li {
  margin:0;
}

.pm-footer__column a,
.pm-footer__muted-item {
  display:flex;
  align-items:flex-start;
  gap:9px;
  color:#aeb4bc !important;
  font-size:.9rem;
  line-height:1.45;
  text-decoration:none !important;
}

.pm-footer__column a:hover {
  color:#fff !important;
  transform:translateX(2px);
}

.pm-footer__column i {
  flex:0 0 18px;
  margin-top:2px;
  text-align:center;
}

.pm-footer__community p {
  color:#aeb4bc;
  font-size:.9rem;
  line-height:1.6;
}

.pm-footer__socials {
  display:flex;
  gap:10px;
  margin:17px 0;
}

.pm-footer__social {
  display:grid !important;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:10px;
  color:#fff !important;
  background:rgba(255,255,255,.08);
}

.pm-footer__social--youtube:hover { background:#ff0033; }
.pm-footer__social--discord:hover { background:#5865f2; }

.pm-footer__top {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:9px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:.82rem;
  cursor:pointer;
}

.pm-footer__divider {
  height:1px;
  margin:44px 0 20px;
  background:rgba(255,255,255,.08);
}

.pm-footer__bottom {
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#7f8791;
  font-size:.78rem;
}

.pm-footer__bottom p {
  margin:0;
}
