/* =========================================================
   Deck Bar - Fiche détail jeu
   Fichier : deckbar-game-detail.css
   ========================================================= */

/* =========================================================
   1. Structure générale
   ========================================================= */

.deck-game-detail-page {
  background: var(--deck-bg-light);
  color: var(--deck-deep);
  padding: 0 0 5rem;
  overflow-x: hidden;
}

.deck-game-detail-back {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.deck-game-detail-back a {
  color: var(--deck-deep);
  text-decoration: none;
  font-family: var(--deck-font-ui);
  font-size: 1rem;
  font-weight: 700;
}

.deck-game-detail-back a:hover {
  color: var(--deck-green);
}

/* =========================================================
   2. Layout fiche
   ========================================================= */

.deck-game-detail-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5rem;
  align-items: flex-start;
}

/* =========================================================
   3. Colonne image + décor feuilles
   ========================================================= */

.deck-game-detail-visual {
  position: relative;
  z-index: 1;
}

.deck-game-detail-image-box {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 500px;
  aspect-ratio: 3 / 4;

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

  padding: 3rem;

  background: var(--deck-white);
  border: 7px solid var(--deck-deep);
  border-radius: 24px;
}

.deck-game-detail-image-box img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Feuille haut droite */
.deck-game-detail-visual::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  z-index: 1;

  width: 260px;
  height: 260px;

  background-image: url("/wp-content/uploads/2026/05/feuille-verte.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  transform: rotate(155deg);
  pointer-events: none;
}

/* Feuille bas gauche */
.deck-game-detail-visual::after {
  content: "";
  position: absolute;
  bottom: -75px;
  left: -85px;
  z-index: 1;

  width: 260px;
  height: 260px;

  background-image: url("/wp-content/uploads/2026/05/feuille-verte.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  transform: rotate(-28deg);
  pointer-events: none;
}

/* =========================================================
   4. Colonne contenu
   ========================================================= */

.deck-game-detail-content {
  position: relative;
  padding-right: 5rem;
}

.deck-game-detail-title {
  margin: 0 0 0.8rem;
}

.deck-game-detail-type {
  margin: 0 0 2rem;

  color: var(--deck-muted);

  font-family: var(--deck-font-body);
  font-size: 1.4rem;
  font-weight: 600;
}

/* =========================================================
   5. Pastille rangement
   ========================================================= */

.deck-game-detail-location {
  position: absolute;
  top: 0.4rem;
  right: 0;

  text-align: center;
}

.deck-game-detail-location span {
  min-width: 72px;
  min-height: 32px;
  padding: 0 1.15rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--deck-accent);
  color: var(--deck-deep);

  border: 1px solid var(--deck-deep);
  border-radius: var(--deck-radius-pill);

  font-family: var(--deck-font-ui);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

.deck-game-detail-location small {
  display: block;
  margin-top: 0.5rem;

  color: var(--deck-deep);

  font-family: var(--deck-font-body);
  font-size: 0.8rem;
  font-weight: 500;
}

/* =========================================================
   6. Pastilles infos
   ========================================================= */

.deck-game-detail-metas {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;

  margin-bottom: 2rem;
}

.deck-game-detail-meta {
  text-align: center;
}

.deck-game-detail-pill {
  min-height: 34px;
  padding: 0 0.85rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  background: var(--deck-dark);
  color: var(--deck-white);

  border: 1px solid var(--deck-dark);
  border-radius: var(--deck-radius-pill);

  font-family: var(--deck-font-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.deck-detail-players,
.deck-detail-best,
.deck-detail-time,
.deck-detail-age {
  background: var(--deck-dark);
  color: var(--deck-white);
  border: 1px solid var(--deck-dark);
}

/* Icônes Material Symbols */
.deck-game-detail-pill::before {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 0.95rem;

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

  background: none !important;
  background-color: transparent !important;

  font-family: "Material Symbols Outlined" !important;
  font-size: 1.5rem !important;
  font-style: normal !important;
  font-weight: normal !important;
  line-height: 1 !important;

  text-transform: none !important;
  letter-spacing: normal !important;
  word-wrap: normal !important;
  white-space: nowrap !important;
  direction: ltr !important;

  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;

  font-variation-settings:
    "FILL" 0,
    "wght" 300,
    "GRAD" 0,
    "opsz" 24;
}

.deck-detail-players::before {
  content: "groups";
}

.deck-detail-best::before {
  content: "star";
}

.deck-detail-time::before {
  content: "timer";
}

.deck-detail-age::before {
  content: "candle";
}

.deck-game-detail-meta small {
  display: block;
  margin-top: 0.45rem;

  color: var(--deck-deep);

  font-family: var(--deck-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.15;
}

/* =========================================================
   7. Description et infos complémentaires
   ========================================================= */

.deck-game-detail-description {
  max-width: 620px;

  color: var(--deck-muted);

  font-family: var(--deck-font-body);
  font-size: 1rem;
  line-height: 1.45;
}

.deck-game-detail-description p {
  margin: 0 0 0.8rem;
}

.deck-game-detail-separator {
  height: 1px;
  margin: 2rem 0;

  background: rgba(0, 51, 51, 0.35);
}

.deck-game-detail-infos {
  color: var(--deck-muted);

  font-family: var(--deck-font-body);
  font-size: 1rem;
  line-height: 1.5;
}

.deck-game-detail-infos p {
  margin: 0 0 0.9rem;
}

.deck-game-detail-infos strong {
  color: var(--deck-deep);
  font-weight: 800;
}

/* Lien BGG */
.deck-game-detail-infos a {
  color: var(--deck-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.deck-game-detail-infos a:hover {
  color: var(--deck-green);
}

/* =========================================================
   8. Responsive tablette
   ========================================================= */

@media (max-width: 921px) {
  .deck-game-detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .deck-game-detail-image-box {
    max-width: 420px;
  }

  .deck-game-detail-content {
    padding-right: 0;
  }

  .deck-game-detail-location {
    position: static;
    margin-bottom: 1.5rem;
    text-align: left;
  }

  .deck-game-detail-location small {
    display: inline-block;
    margin-top: 0;
    margin-left: 0.5rem;
  }

  .deck-game-detail-visual::before {
    top: -60px;
    right: -45px;
    width: 200px;
    height: 200px;
  }

  .deck-game-detail-visual::after {
    bottom: -55px;
    left: -45px;
    width: 200px;
    height: 200px;
  }
}

/* =========================================================
   9. Responsive mobile
   ========================================================= */

@media (max-width: 767px) {
  .deck-game-detail-page {
    padding-bottom: 3rem;
  }

  .deck-game-detail-back,
  .deck-game-detail-layout {
    width: min(100% - 36px, 1180px);
  }

  .deck-game-detail-back {
    padding: 1.2rem 0 1.5rem;
  }

  .deck-game-detail-layout {
    gap: 1.5rem;
  }

  .deck-game-detail-visual {
    width: 66%;
    max-width: 300px;
    min-width: 245px;
    margin: 0 auto 2rem;
  }

  .deck-game-detail-image-box {
    width: 100%;
    max-width: none;
    aspect-ratio: 3 / 4;

    padding: 1.2rem;

    border-width: 5px;
    border-radius: 20px;
  }

  .deck-game-detail-visual::before {
    top: -42px;
    right: -44px;
    width: 115px;
    height: 115px;
    transform: rotate(155deg);
  }

  .deck-game-detail-visual::after {
    bottom: -38px;
    left: -42px;
    width: 115px;
    height: 115px;
    transform: rotate(-28deg);
  }

  .deck-game-detail-type {
    font-size: 1.15rem;
  }

  .deck-game-detail-metas {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .deck-game-detail-pill {
    min-height: 30px;
    padding: 0 0.7rem;
    font-size: 0.9rem;
  }

  .deck-game-detail-pill::before {
    width: 0.82rem;
    height: 0.82rem;
    flex-basis: 0.82rem;
    font-size: 0.82rem !important;
  }
  /* Mobile : afficher "rangement : G1" */
.deck-game-detail-location {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;

  margin-bottom: 1.2rem !important;
  text-align: left !important;
}

.deck-game-detail-location small {
  order: 1 !important;
  display: inline-flex !important;
  margin: 0 !important;

  color: var(--deck-deep) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}

.deck-game-detail-location small::after {
  content: " :" !important;
}

.deck-game-detail-location span {
  order: 2 !important;
}
}
