@font-face {
  font-family: "Bangers";
  src: url("./fonts/bangers-v25-latin-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
}

body {
  background: #212121;
  font-family: "Orbitron", sans-serif;
  color: #ffffff;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #eb7e25;
  outline-offset: 2px;
}
/*============================================*/

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2vh 4vw;
  gap: 2vw;
  position: relative;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.logo > li {
  list-style-type: none;
}

.logo > li > a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
}

.logo > li > a span {
  color: #ff4d00;
}

.nav {
  background-color: #424242;
  box-shadow: 0 0.5vh 1.5vh rgba(255, 255, 255, 0.15);
  border-radius: 1.084vh;
  width: fit-content;
}

.nav-ul {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-ul > li {
  list-style-type: none;
}

.nav-ul > li:hover {
  background-color: #616161;
  border: 1px solid #616161;
  border-radius: 1.084vh;
}

.nav-ul > li > a {
  display: block;
  text-decoration: none;
  color: #ffffff;
  padding: 2.2vh 2.4vw;
  text-align: center;
}

/* La barre de recherche ne doit pas changer de couleur au survol */
.nav-ul > li.li-search:hover {
  background-color: transparent;
  border-color: transparent;
}

.compte {
  flex-shrink: 0;
  background-color: #424242;
  border-radius: 1.084vh;
  box-shadow: 0 0.5vh 1.5vh rgba(0, 0, 0, 0.15);
  padding: 1.6vh 1.6vw;
  margin: 0;
  width: fit-content;
}

.compte:hover {
  background-color: #616161;
}

.compte > li {
  list-style-type: none;
}

.compte > li > a {
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}
/*============================================*/

/* Barre de recherche */
.search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.search__input {
  font-family: inherit;
  font-size: inherit;
  background-color: #424242;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 0.7rem 1rem;
  border-radius: 30px;
  width: 12em;
  transition: all ease-in-out 0.5s;
  margin-right: -2rem;
}

.search__input:hover,
.search__input:focus {
  box-shadow: 0 0 1em #ffff;
}

.search__input:focus {
  outline: none;
  background-color: #424242;
}

.search__input::-webkit-input-placeholder {
  font-weight: 100;
  color: #ffffff;
}

.search__input:focus + .search__button {
  background-color: #424242;
}

.search__button {
  border: none;
  background-color: #424242;
  margin-top: 0.1em;
}

.search__button:hover {
  cursor: pointer;
}

.search__icon {
  height: 1.3em;
  width: 1.3em;
  fill: #ffffff;
}

/* Menu déroulant */
.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  color: white;
}

nav .has-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 0;
  margin: 0;
  background-color: #424242;
  width: fit-content;
  min-width: 100%;
  padding: 0.867vh 0;
  border-radius: 0.65vh;
  box-shadow: 0 0.867vh 2.169vh rgba(0, 0, 0, 0.2);
  z-index: 101;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: flex;
}

.dropdown-menu li {
  color: #ffffff;
  font-weight: 500;
  padding: 1.084vh 2.169vh;
  text-align: left;
  list-style-type: none;
  white-space: nowrap;
}

.dropdown-menu li:hover {
  background-color: #616161;
}

.dropdown-menu a {
  color: inherit;
  text-decoration: none;
}
/*============================================*/

/* Main */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2vh 10vw 6vh;
  margin: 0;
  width: 100%;
}

main > h2,
.section-titre {
  color: white;
  margin: 5vh 0 2.5vh;
  font-size: 1.5rem;
}

.section-titre {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.section-titre::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}
/*============================================*/

/* Bannière d'accueil */
.banniere {
  width: 100%;
  min-height: 34vh;
  border-radius: 14px;
  padding: 5vh 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5vh;
  background: rgba(33, 33, 33, 0.95);
  box-shadow: 0 0.5vh 1.5vh rgba(255, 255, 255, 0.08);
}

.banniere h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
}

.banniere p {
  margin: 0;
  max-width: 48ch;
  color: #cfcfcf;
  line-height: 1.6;
}

.btn-orange {
  display: inline-block;
  width: fit-content;
  margin-top: 1vh;
  padding: 1.4vh 2.4vw;
  border-radius: 50px;
  background: white;
  color: black;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.2s;
}

.btn-orange:hover {
  background: #616161;
}
/*============================================*/

/* Cartes de jeux */
.grille-jeux {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
}

.carte-jeu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}

.div2-ps5 {
  position: relative;
  display: flex;
  background-color: black;
  border: 1px solid black;
  width: 100%;
  aspect-ratio: 3 / 4;
  color: white;
  border-radius: 10px;
  overflow: hidden;
  background-image: linear-gradient(160deg, #424242, #212121);
  transition: box-shadow 0.2s;
}

.carte-jeu:hover .div2-ps5 {
  box-shadow: 0 0 1em rgba(255, 255, 255, 0.35);
}

.div2-ps5 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-promo {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #ff4d00;
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 0 10px 0 10px;
}

.carte-jeu .titre {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.carte-jeu .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  color: #bdbdbd;
}

.carte-jeu .prix {
  color: #ffffff;
  font-weight: 900;
  font-size: 1rem;
}

.carte-jeu .prix s {
  color: #9e9e9e;
  font-weight: 400;
  font-size: 0.75rem;
  margin-right: 6px;
}
/*============================================*/

/* Avis */
.avis {
  background-color: white;
  border: 1px solid white;
  color: #212121;
  width: fit-content;
  padding: 10px 10px;
  border-radius: 10px;
}

.avis > div + div {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.avis p {
  margin: 0 0 4px;
}

.avis-etoile {
  width: 300px;
}

.avis-etoile .etoiles {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.avis-etoile input {
  display: none;
}

.avis-etoile label {
  cursor: pointer;
}

.avis-etoile label svg {
  width: 60px;
  height: 60px;
}

.avis-etoile label svg path {
  stroke: #ccc;
  fill: transparent;
  transition: 0.3s all ease-in-out;
}

.avis-etoile input:checked ~ label svg path,
.avis-etoile label:hover svg path,
.avis-etoile label:hover ~ label svg path {
  stroke: #eb7e25;
  fill: #eb7e25;
}

.avis-etoile button {
  margin-top: 12px;
  padding: 8px 16px;
  cursor: pointer;
}

.com {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  color: white;
}

.com textarea {
  width: 100%;
  min-height: 100px;
  padding: 8px;
  resize: vertical;
  box-sizing: border-box;
}
/*============================================*/

/* Footer */
footer {
  background-color: #2c1b1b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding: 1.5vh 2vw;
  border: 1px solid rgba(255, 255, 255, 0.308);
}

footer > .doc {
  text-decoration: none;
  color: white;
  font-size: 1.8vh;
  margin-right: 3vw;
  white-space: nowrap;
}

footer > .doc:last-child {
  margin-right: 0;
}

footer > .doc:hover {
  color: #e61e2a;
}
/*============================================*/

/* ============================================
   PAGE DESCRIPTION D'UN JEU (jeu.html)
   ============================================ */
.page-jeu {
  padding: 0;
  align-items: stretch;
}

.jeu-hero {
  width: 100%;
  padding: 18vh 7vw 6vh;
  margin-top: -9vh;
}

.jeu-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 4vw;
  align-items: start;
}

.jeu-cover {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 7 / 4;
  background: linear-gradient(135deg, #e9e5e1, #cfc9c4);
  box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.35);
}

.jeu-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Panneau d'achat */
.achat {
  border-radius: 14px;
  padding: 3vh 2.4vw 3.4vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2vh;
  background: linear-gradient(180deg, #78868d 0%, #3a4348 55%, #2b3236 100%);
  box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.35);
}

.achat h1 {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.6rem);
  font-weight: 700;
  text-align: center;
}

.pastille {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  background: rgba(33, 33, 33, 0.7);
  border-radius: 40px;
  padding: 8px 18px 8px 8px;
  font-size: 0.75rem;
}

.pastille .plateforme {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.pastille .logo-plateforme {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1b4a8a;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.pastille .ok::before {
  content: "✓";
  color: #5bd75b;
  font-weight: 900;
  margin-right: 6px;
}

.utilisateurs {
  margin: 0;
  font-size: 0.85rem;
}

.utilisateurs::before {
  content: "🔥";
  margin-right: 8px;
}

.achat select {
  font-family: inherit;
  font-size: 0.9rem;
  color: #ffffff;
  background: rgba(33, 33, 33, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 1.7vh 1.4vw;
  width: min(100%, 17em);
  cursor: pointer;
}

.achat select option {
  background: #424242;
  color: #ffffff;
}

.prix-bloc {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.prix-bloc .ancien {
  text-decoration: line-through;
  font-weight: 700;
}

.prix-bloc .remise {
  color: #ff4d00;
  font-size: 0.9rem;
}

.prix-bloc .nouveau {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
}

.actions-achat {
  display: flex;
  align-items: center;
  gap: 1.2vw;
  width: 100%;
}

.btn-coeur {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s;
}

.btn-coeur:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-coeur svg {
  width: 30px;
  height: 30px;
}

.btn-panier {
  flex: 1;
  height: 68px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, #ff7a1a, #ff4d30);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn-panier:hover {
  filter: brightness(1.12);
}

/* Bas de page : à propos + infos */
.jeu-bas {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 4vw;
  padding: 4vh 7vw 6vh;
}

.apropos h2 {
  font-size: 2rem;
  margin: 3vh 0 4vh;
}

.apropos p {
  color: #bdbdbd;
  line-height: 1.8;
  font-size: 0.9rem;
  margin: 0 0 1.2em;
}

.apropos a {
  color: #bdbdbd;
}

.apropos a:hover {
  color: #ffffff;
}

/* Notes */
.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  margin-bottom: 4vh;
}

.note {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #bdbdbd;
  font-size: 0.85rem;
  line-height: 1.7;
}

.note strong {
  display: block;
  color: #ffffff;
  font-weight: 500;
}

.rond {
  --pct: 85;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background:
    radial-gradient(closest-side, #212121 78%, transparent 80%),
    conic-gradient(#6fdc4a calc(var(--pct) * 1%), rgba(111, 220, 74, 0.25) 0);
  color: #6fdc4a;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Fiche technique */
.fiche {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 22px;
  margin: 0;
  font-size: 0.85rem;
}

.fiche dt {
  color: #bdbdbd;
}

.fiche dd {
  margin: 0;
  color: #ffffff;
  font-weight: 500;
}

.fiche dd.gris {
  color: #bdbdbd;
}

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

.fiche a:hover {
  text-decoration: underline;
}

.fiche .steam-notes {
  color: #00a8ff;
}

/* Tags */
.tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #bdbdbd;
  font-size: 0.85rem;
}

.tags a {
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #bdbdbd;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.75rem;
  transition: background-color 0.2s;
}

.tags a:hover {
  background-color: #616161;
}



/* =====================================================================
   RESPONSIVE - adaptation à la taille de l'écran
   Grands écrans > tablettes / petits portables > téléphones
   ===================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.com textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Sécurité : si le menu devient trop long (liens ajoutés plus tard), il passe à la ligne au lieu de déborder */
.nav {
  min-width: 0;
  max-width: 100%;
}

.nav-ul {
  flex-wrap: wrap;
}

/* ---------- Très grands écrans : on limite la largeur du contenu ---------- */
@media (min-width: 1700px) {
  .header {
    padding-inline: max(4vw, calc((100% - 1500px) / 2));
  }

  main {
    padding-inline: max(10vw, calc((100% - 1400px) / 2));
  }
}

/* ---------- Portables et tablettes (jusqu'à 1240px) ---------- */
@media (max-width: 1240px) {
  /* Ligne 1 : logo + compte. Ligne 2 : menu sur toute la largeur */
  .header {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 12px;
    padding: 1.5vh 4vw;
  }

  .logo { order: 1; }
  .compte { order: 2; padding: 12px 16px; }

  .nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }

  .nav-ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-ul > li > a {
    padding: 14px 18px;
  }

  /* Le <li> vide qui ne servait qu'à décaler le menu */
  .nav-ul > li > p {
    display: none;
  }

  .nav-ul > li.li-search {
    flex: 1 1 220px;
    min-width: 200px;
    padding: 6px 10px;
  }

  .search {
    width: 100%;
  }

  .search__input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  /* Le menu déroulant reste dans l'écran */
  nav .has-dropdown .dropdown-menu {
    left: 0;
    transform: none;
  }

  main {
    padding-inline: 6vw;
  }

  .grille-jeux {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

/* ---------- Tablettes en portrait (jusqu'à 900px) : 4 jeux par ligne ---------- */
@media (max-width: 900px) {
  .grille-jeux {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .carte-jeu .titre {
    font-size: 0.8rem;
  }

  .carte-jeu .meta {
    flex-wrap: wrap;
    gap: 2px 8px;
    font-size: 0.72rem;
  }

  .badge-promo {
    font-size: 13px;
    padding: 6px 9px;
  }
}

/* ---------- Téléphones (jusqu'à 700px) ---------- */
@media (max-width: 700px) {
  .logo > li > a {
    font-size: 1.3rem;
  }

  .compte {
    padding: 10px 14px;
  }

  .nav-ul > li > a {
    padding: 11px 13px;
    font-size: 0.85rem;
  }

  /* La recherche passe sur sa propre ligne, sous les liens */
  .nav-ul > li.li-search {
    order: 10;
    flex: 1 1 100%;
    padding: 6px 8px 8px;
  }

  main {
    padding: 2vh 4vw 5vh;
  }

  main > h2,
  .section-titre {
    font-size: 1.15rem;
    margin: 3vh 0 2vh;
  }

  .banniere {
    min-height: 0;
    padding: 28px 20px;
    border-radius: 12px;
  }

  .banniere p {
    font-size: 0.9rem;
  }

  .btn-orange {
    padding: 12px 22px;
    min-height: 44px;
  }

  /* Cartes de jeux : 2 par ligne */
  .grille-jeux {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .carte-jeu .titre {
    font-size: 0.8rem;
  }

  .carte-jeu .meta {
    flex-wrap: wrap;
    gap: 2px 8px;
    font-size: 0.72rem;
  }

  .carte-jeu .prix {
    font-size: 0.9rem;
  }

  .carte-jeu .prix s {
    margin-right: 4px;
  }

  .badge-promo {
    font-size: 12px;
    padding: 5px 8px;
  }

  /* Avis clients */
  .avis {
    width: 100%;
  }

  .avis-etoile {
    width: 100%;
    max-width: 320px;
  }

  .avis-etoile label svg {
    width: clamp(40px, 13vw, 60px);
    height: clamp(40px, 13vw, 60px);
  }

  .avis-etoile button {
    min-height: 44px;
  }

  footer {
    padding: 14px 4vw;
    gap: 8px 16px;
  }

  footer > .doc {
    margin-right: 0;
    font-size: 0.72rem;
    white-space: normal;
    text-align: center;
  }
}

/* Appareils tactiles : pas de survol, cibles plus grandes */
@media (hover: none) {
  .nav-ul > li:hover {
    background-color: transparent;
    border-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}


/* ---------- Page d'un jeu : portables / tablettes ---------- */
@media (max-width: 1240px) {
  /* L'en-tête fait maintenant deux lignes : plus besoin de remonter l'image sous le menu */
  .jeu-hero {
    padding: 4vh 6vw 4vh;
    margin-top: 0;
  }

  .jeu-bas {
    padding: 4vh 6vw 6vh;
  }
}

@media (max-width: 900px) {
  .jeu-hero {
    padding: 3vh 5vw 4vh;
  }

  .jeu-grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .achat {
    padding: 24px 20px 26px;
    gap: 18px;
  }

  .achat select {
    width: 100%;
    padding: 12px 14px;
  }

  .jeu-bas {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 3vh 5vw 5vh;
  }

  .apropos h2 {
    font-size: 1.5rem;
    margin: 0 0 2vh;
  }
}

@media (max-width: 480px) {
  .pastille {
    border-radius: 24px;
    padding: 8px 12px;
  }

  .actions-achat {
    gap: 12px;
  }

  .btn-coeur {
    width: 56px;
    height: 56px;
  }

  .btn-panier {
    height: 56px;
    font-size: 0.95rem;
  }

  .fiche {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .fiche dt {
    margin-top: 12px;
    font-size: 0.75rem;
  }

  .tags {
    gap: 8px;
  }
}