:root {
--Plante: #74CB48;
--Feu: #FF9D55;
--Eau: #6390F0;
--Électrique: #F7D02C;
--Psy: #F95587;
--Combat: #FF0000;
--Ténèbres: #705746;
--Métal: #979797;
--Dragon: #6F35FC;
--Normal: #999;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #222;
  color: var(--text);
  line-height: 1.6;
}

.hero {
  margin-top: 4.5rem;
  padding: 2rem 2rem;
  text-align: center;
  position: relative;
  color: white;
  border-radius: 0 0 2rem 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/fr/index/img/background.avif');
  background-size: cover;
  background-color: #ff000051;
  background-blend-mode: color-burn;
  filter: blur(2px);
  z-index: -1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
  position: relative;
}

.game-choice-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  position: relative;
}

.game-choice {
  background: rgb(29 29 29 / 49%);
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 300px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game-choice:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.game-choice.selected {
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
}

.game-choice h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.cta-button {
  background: white;
  color: var(--header-color);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s;
  display: inline-block;
  margin-top: 2rem;
}

.cta-button:hover {
  transform: translateY(-2px);
}

.cta-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.recent-decks {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.recent-decks h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--text);
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.deck-card {
  background: #333;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.deck-card:hover {
  transform: translateY(-5px);
}

.deck-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  position: relative;
}

.deck-card-preview {
  height: 160px;
  width: 115px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s;
  position: relative;
}

.deck-card-preview:hover {
  transform: translateY(-10px);
}

.deck-card-preview:nth-child(2) {
  margin-left: -30px;
  margin-right: -30px;
}

.deck-info {
  background-color: #444;
  color: white;
  padding: 1rem;
}

.deck-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-direction: row-reverse;
  justify-content: space-around;
}

.deck-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--header-color);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  order: -1;
}

.deck-link:hover {
  background-color: #ca1603;
}

.recent-decks h2 {
  color: white;
}
.game-choice img {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}
.deck-information {
  display: flex;
  justify-content: space-evenly;
  margin-top: 3%;
  background-color: #333;
  padding: 0.5rem;
  border-radius: 10px;
}
.deck-information span {
  color: white;
}
.deck-stats span {
  background: #333;
  padding: 0.5rem 0.8rem;
  border-radius: 25px;
  font-size: 0.85rem;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: white;
}


/* Img Energy */
.deck-Plante {
  background-image: url('/fr/index/img/energy/energy-plante.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Eau {
  background-image: url('/fr/index/img/energy/energy-eau.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Feu {
  background-image: url('/fr/index/img/energy/energy-feu.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Électrique {
  background-image: url('/fr/index/img/energy/energy-electrique.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Psy {
  background-image: url('/fr/index/img/energy/energy-psy.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Combat {
  background-image: url('/fr/index/img/energy/energy-combat.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Ténèbres {
  background-image: url('/fr/index/img/energy/energy-tenebres.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Métal {
  background-image: url('/fr/index/img/energy/energy-metal.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Dragon {
  background-image: url('/fr/index/img/energy/energy-dragon.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Normal {
  background-image: url('/fr/index/img/energy/energy-normal.png');
  width: 25px;
  background-repeat: no-repeat;
}

/* EN */

.deck-Grass {
  background-image: url('/fr/index/img/energy/energy-plante.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Water {
  background-image: url('/fr/index/img/energy/energy-eau.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Fire {
  background-image: url('/fr/index/img/energy/energy-feu.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Lightning {
  background-image: url('/fr/index/img/energy/energy-electrique.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Psychic {
  background-image: url('/fr/index/img/energy/energy-psy.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Fighting {
  background-image: url('/fr/index/img/energy/energy-combat.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Darkness {
  background-image: url('/fr/index/img/energy/energy-tenebres.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Metal {
  background-image: url('/fr/index/img/energy/energy-metal.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Dragon {
  background-image: url('/fr/index/img/energy/energy-dragon.png');
  width: 25px;
  background-repeat: no-repeat;
}
.deck-Normal {
  background-image: url('/fr/index/img/energy/energy-normal.png');
  width: 25px;
  background-repeat: no-repeat;
}







@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .game-choice-container {
    flex-direction: column;
    align-items: center;
  }
  
  .game-choice {
    width: 280px;
    height: 230px;
  }
  
  .game-choice img {
    width: 80px;
  }
}
