/* ========================================
   MathLamb — Arène (sélection de jeu)
   ======================================== */

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

body {
  font-family: 'Nunito', sans-serif;
  background-color: #f7f3ef;
  color: #522b09;
  min-height: 100vh;
  overflow-x: hidden;
}

.arene {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 1rem 3rem;
}

.arene__header {
  text-align: center;
  margin-bottom: 2rem;
}

.arene__logo {
  width: 190px;
  height: auto;
  animation: areneIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.arene__main {
  width: 100%;
  max-width: 560px;
}

.arene__title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.75rem;
  font-weight: 500;
  color: #522b09;
  text-align: center;
  margin-bottom: 1.5rem;
  animation: areneIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

.arene__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.arene__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 28px 20px 24px;
  background: #fff;
  border: 1px solid #ebdac4;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: areneIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.arene__card:nth-child(1) { animation-delay: 0.15s; }
.arene__card:nth-child(2) { animation-delay: 0.25s; }
.arene__card:nth-child(3) { animation-delay: 0.35s; }
.arene__card:nth-child(4) { animation-delay: 0.45s; }

@keyframes areneIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.arene__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.arene__card:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.arene__card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  margin-bottom: 12px;
}

.arene__card-img {
  max-width: 92px;
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.arene__card-name {
  font-family: 'Baloo 2', cursive;
  font-size: 1.125rem;
  font-weight: 500;
  color: #634216;
  text-align: center;
}

.arene__card-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  color: #a89478;
  text-align: center;
  line-height: 1.35;
  margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .arene {
    padding: 24px 1rem 2rem;
  }

  .arene__logo {
    width: 150px;
  }

  .arene__title {
    font-size: 1.4rem;
  }

  .arene__grid {
    gap: 12px;
  }

  .arene__card {
    padding: 20px 12px 18px;
  }

  .arene__card-visual {
    height: 80px;
  }

  .arene__card-img {
    max-width: 80px;
    max-height: 70px;
  }
}
