* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins";
  display: flex;
  flex-direction: column;
}

.nav-links a.active {
    color: #fff;
    background-color: #e76d0a;
    border-radius: 5px;
    padding: 5px 10px;
}

/* MAIN */

  main {
    padding: 80px 50px 50px;
    background-image: url(../images/bodyimage.png);
    background-repeat: no-repeat;
    background-size: cover;
    flex-grow: 1;
  }

.animecardcollection {
  height: 400px;
  padding: 30px 0px 30px 0px;
  display: flex;
  justify-content: center;
}

.animecardcollection img {
  width: 100%;
  object-fit: cover;
  border-radius: 50px;
  border: 3px solid white;
}

input#searchbar {
  height: 30px;
  width: 40%;
  margin: 20px auto;
  display: block;
  padding: 10px;
  border-radius: 20px;
  border: 2px solid #ffa074;
  font-size: 16px;
  outline: none;
  text-align: center;
}

input#searchbar:focus {
  border-color: #e76d0a;
  background: linear-gradient(to top, #ffe4b2, #fff);
}

input#searchbar::placeholder {
  color: #bbb;
  font-style: italic;
}

/* Comment obtenir des cartes ? */

.obtain-cards-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, #f6f8ff 0%, #ffffff 100%);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.obtain-cards-title {
  color: #2d3748;
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.obtain-cards-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #4299e1 0%, #667eea 100%);
  margin: 1rem auto;
  border-radius: 2px;
}

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

.method-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

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

.method-title {
  color: #2b6cb0;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.method-description {
  color: #4a5568;
  line-height: 1.6;
}

/* Filtre cartes */

.filters-container {
  display: flex;
  justify-content: center;
}

.filter-group {
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

label {
  font-weight: 600;
  color: #420502;
}

select {
  width: 100%;
  padding: 2px;
  border: 2px solid #420502;
  border-radius: 8px;
  outline: none;
  background-color: #fff;
  cursor: pointer;
  text-align: center;
}

/* CATALOGUE ET CARTES */

.catalogue {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  justify-content: center;
  padding-top: 30px;
}

.catalogue2 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 15px;
  justify-content: center;
  padding-top: 50px;
}

#Catalogue {
  font-size: 2em;
  text-align: center;
  color: white;
  padding-top: 20px;
  text-shadow: -2px -2px 0 #420502, 2px -2px 0 #420502, -2px 2px 0 #420502,
    2px 2px 0 #420502;
}

.card {
  background: linear-gradient(white 90%, rgb(250, 157, 17));
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: black;
  border: 3px solid white;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: auto;
}

.card-content {
  padding: 5px;
}

.card-title {
  font-size: 20px;
  margin: 0 0 5px;
  text-align: center;
}

.card-description {
  text-align: center;
  font-size: 16px;
  color: #555;
}

#main-compte {
  padding: 130px 0px;
}

/* Utilisateurs cartes */

.card-content p {
  font-size: 0.9em;
  color: #555;
  margin: 5px 0;
}
.card.expanded .card-content {
  height: auto;
  padding-bottom: 20px;
  background: linear-gradient(white 75%, #fa9d11);
}
.owners-list {
  display: none;
  color: #808080;
  font-size: 14px;
  text-align: center;
  padding: 10px 0;
}
.card.expanded .owners-list {
  display: block;
}

/* ========================================= */
/* RECHERCHE ET FILTRES */
/* ========================================= */

.search-filters-container {
    max-width: 700px;
    margin: 30px auto 40px;
    padding: 0 20px;
}

.search-form {
    background: linear-gradient(to bottom, #e04e39, #ff7f32, #ffcc33); /* dégradé orange, jaune, rouge clair */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}



.search-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

#searchbar {
    width: 100%;
    padding: 18px 60px 18px 25px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

#searchbar:focus {
    outline: none;
    border-color: #ea8b66;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #d36e44 0%, #800020 100%); /* dégradé bordeaux, orange brûlé */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}


.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.filters {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 250px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem;
}

#sectionFilter {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sectionFilter:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#rarityFilter {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

#rarityFilter:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.reset-filters {
    padding: 12px 25px;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reset-filters:hover {
    background: #ee5a52;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* ========================================= */
/* COMPTEUR DE POINTS DU JOUEUR */
/* ========================================= */

.player-stats-inline {
    margin-top: 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.player-stats-inline .player-points {
    color: #ffb300; /* doré élégant */
    font-weight: 700;
}

.player-stats-inline .player-cards {
    color: #b36322;
    font-weight: 700;
}

/* ========================================= */
/* PAGINATION MODERNE */
/* ========================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
    flex-wrap: wrap;
}

.pagination-top {
    margin-top: 20px;
    margin-bottom: 5px;
}

.pagination-bottom {
    margin-top: 50px;
    margin-bottom: 30px;
}

.pagination-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.pagination-btn.prev::before {
    content: '';
}

.pagination-btn.next::after {
    content: '';
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-number {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-number:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.page-number.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transform: scale(1.15);
}

.pagination-dots {
    color: #999;
    font-weight: bold;
    padding: 0 5px;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin: 40px auto;
    max-width: 600px;
}

.no-results p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 20px;
}

.no-results a {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-results a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive */

@media (max-width: 599px) {
  .navbar .menu-burger {
    display: block;
  }

  /* Catalogue et cartes */

  .catalogue {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 20px;
  }

  .catalogue2 {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    justify-content: center;
    padding-top: 20px;
  }

  #Catalogue {
    font-size: 1.2em;
  }

  .card {
    background: linear-gradient(white 75%, rgb(250, 157, 17));
    /* color: black; */
  }

  .card-content {
    padding: 0px;
  }

  .card-content p {
  text-align: center;
}
  .card-title {
    font-size: 16px;
    margin: 0 0 0px;
  }

  .card-description {
    font-size: 12px;
  }

  .card.special-card .card-title {
    font-size: 10px;
  }

  /* Comment obtenir des cartes */

  .method-card {
    width: 80%;
  }

  .method-title {
    font-size: 16px;
    font-weight: 700;
  }

  .obtain-cards-title {
    font-size: 20px;
    margin-bottom: 2rem;
  }

  .methods-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  /* Page de connexion / compte */

  form {
    padding: 20px;
    margin: 20px auto;
    max-width: 80%;
  }

  form h1 {
    font-size: 28px;
    width: 100%;
  }

  form .inputs {
    width: 80%;
  }

  input#searchbar {
    width: 65%;
    margin: 5px auto;
    font-size: 12px;
  }

  /* Pagination search bar etc */
      .search-form {
        padding: 20px;
    }

    #searchbar {
        font-size: 1rem;
        padding: 15px 55px 15px 20px;
    }

    .search-btn {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: 100%;
    }

    .reset-filters {
        width: 100%;
        text-align: center;
    }

    .pagination {
        gap: 8px;
        padding: 15px;
    }

    .pagination-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .page-number {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .pagination-numbers {
        gap: 5px;
    }
}
