/* ===========================
   🌐 Normalize / Reset léger
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    color: #222;
    background: #fff;
}

/* ===========================
   🔤 Titres h1 à h6
=========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin: 1em 0 0.5em;
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }







/* ===========================
   🎨 Boutons primaires/secondaires
=========================== */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}

.btn-primary {
    background: #0073aa;
    color: white;
}
.btn-primary:hover {
    background: #005d87;
}

.btn-secondary {
    background: #f3f3f3;
    color: #333;
}
.btn-secondary:hover {
    background: #e0e0e0;
}

/* ===========================
   📦 Grille responsive
   (2 col. mobile, 3 col. tablette, 4 col. desktop)
=========================== */
.grid-responsive {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr); /* mobile par défaut */
}

@media (min-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr); /* tablette */
    }
}

@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(4, 1fr); /* desktop */
    }
}

/* ===========================
   📱 Typo & spacing responsive
=========================== */
@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .btn,
    input[type="submit"] {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ===========================
   ✅ Classes utilitaires
=========================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }






/* ===========================
 AFFICHAGE CARTES POKEMON GLOBALS 
=========================== */
.pokemon-search-results {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne par défaut (mobile) */
}

@media (min-width: 768px) {
    .pokemon-search-results {
        grid-template-columns: repeat(3, 1fr); /* 3 cartes sur tablette */
    }
}

@media (min-width: 1024px) {
    .pokemon-search-results {
        grid-template-columns: repeat(5, 1fr); /* 5 cartes sur bureau */
    }
}

.carte-unifiee {
    position: relative; /* nécessaire pour positionner les boutons en absolu */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #222;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 10px;
}

.carte-unifiee:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carte-unifiee .carte-thumb img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

.carte-unifiee .carte-title {
    font-weight: bold;
    margin: 10px 0 5px;
	color:#000;
}

.prix-flottant-gauche {
    position: absolute;
    top: 100px;
    left: 0px;
    background-color: rgba(230, 0, 18, 0.75); /* Rouge avec 75% d'opacité */;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 0px 10px 10px 0px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}


.carte-unifiee .carte-extra {
    font-size: 13px;
    color: #555;
    margin-top: 5px;
}

/* Boutons favoris et collection en haut de la carte → pas de conflit avec .carte-actions existant */

.pokemon-search-results .carte-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column; /* 👉 pour les mettre en colonne */
    gap: 5px;
    z-index: 10;
    align-items: flex-end;
}

/* Style boutons favoris + collection + supprimer */
.pokemon-search-results .carte-actions button,
.pokemon-search-results .carte-actions .btn-favori-ajax,
.pokemon-search-results .carte-actions .btn-collection-ajax {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pokemon-search-results .carte-actions button:hover,
.pokemon-search-results .carte-actions .btn-favori-ajax:hover,
.pokemon-search-results .carte-actions .btn-collection-ajax:hover {
    background-color: #f0f0f0;
}


/* Boutons groupe classiques (en bas de page ou sur page carte) → inchangé */
.boutons-groupe {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 14px;
    align-items: center;
}

.boutons-groupe button,
.boutons-groupe a {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.boutons-groupe button:hover,
.boutons-groupe a:hover {
    background: #e0e0e0;
}







/* Actions boutons */
.carte-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.carte-actions button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carte-actions button:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* Selector → badges TYPE et RARETE */
.selector {
    background-color: var(--couleur-fond);
    border: 1px solid var(--couleur-claire);
    padding: 5px 10px;
    border-radius: 10px;
    width: fit-content;
    max-width: 100%;
    min-height: 26px; /* alignement propre */
    display: flex;
    align-items: center;
    justify-content: center;
}

.selector a {
    color: var(--couleur-foncee);
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
}


	
	
	
	
	
/*CSS Filtres réinitialisation*/
.filtres-elementor-appliques {
    margin: 15px auto;
    max-width: 800px;
    text-align: center;
}
.badge-filtre {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
}
.badge-filtre a {
    margin-left: 8px;
    color: #c00;
    text-decoration: none;
    font-weight: bold;
}
.reset-filtres {
    display: inline-block;
    margin-left: 10px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #eee;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
}





/*FILTRE LATERAUX VERTICAUX AJAX ELEMENTOR*/
#filtre_verticaux {
  padding: 10px 15px;
  font-family: 'Segoe UI', sans-serif;
  background: transparent;
}

/* 🎯 Titres de sections (la div .e-filter sert de regroupement ici) */
#filtre_verticaux .e-filter::before {
  content: none;
}

#filtre_verticaux .e-filter {
  margin-bottom: 22px;
}

#filtre_verticaux .e-filter-item {
  background: transparent;
  border: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  position: relative;
}

#filtre_verticaux .e-filter-item::before {
  content: "🔘"; /* icône par défaut */
  font-size: 14px;
  display: inline-block;
}

#filtre_verticaux .e-filter-item[data-filter*="feu"]::before,
#filtre_verticaux .e-filter-item[data-filter*="fire"]::before {
  content: "🔥";
}
#filtre_verticaux .e-filter-item[data-filter*="eau"]::before,
#filtre_verticaux .e-filter-item[data-filter*="water"]::before {
  content: "💧";
}
#filtre_verticaux .e-filter-item[data-filter*="plante"]::before,
#filtre_verticaux .e-filter-item[data-filter*="grass"]::before {
  content: "🍃";
}
#filtre_verticaux .e-filter-item[data-filter*="electrik"],
#filtre_verticaux .e-filter-item[data-filter*="electric"]::before {
  content: "⚡";
}
#filtre_verticaux .e-filter-item[data-filter*="psy"]::before {
  content: "🔮";
}
#filtre_verticaux .e-filter-item[data-filter*="combat"]::before {
  content: "🥊";
}
#filtre_verticaux .e-filter-item[data-filter*="vol"]::before {
  content: "🕊️";
}
#filtre_verticaux .e-filter-item[data-filter*="poison"]::before {
  content: "☠️";
}

/* 🟢 Hover & active style */
#filtre_verticaux .e-filter-item:hover {
  background: #e0f2ff;
  color: #0073aa;
}

#filtre_verticaux .e-filter-item[aria-pressed="true"] {
  background: #0073aa;
  color: #fff;
  font-weight: 600;
}

/* Responsive mobile */
@media (max-width: 768px) {
  #filtre_verticaux {
    padding: 10px 10px;
  }

  #filtre_verticaux .e-filter-item {
    font-size: 13px;
    padding: 6px 10px;
  }
}



/*CSS SHORTCODE POKEAPI*/
.pokemon-field {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.pokemon-move-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.move-chip {
  background: #fff;
  border: 2px solid #3b4cca;
  color: #3b4cca;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.move-chip:hover {
  background: #3b4cca;
  color: #fff;
}

.pokemon-abilities > div,
.pokemon-evolution,
.pokemon-varieties {
  font-size: 15px;
  line-height: 1.5;
}

.pokemon-stats li {
  margin: 4px 0;
}


/* === Champs classiques === */
.pokemon-field {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #222;
  font-family: 'Segoe UI', sans-serif;
}

/* === Liste des stats (HP, ATK...) === */
.pokemon-stats {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.pokemon-stats li {
  font-size: 14px;
  margin: 4px 0;
  color: #2a2a2a;
}

/* === Affichage des attaques === */
.pokemon-move-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.move-chip {
  background: #fff;
  border: 2px solid #3b4cca;
  color: #3b4cca;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.2s ease;
}
.move-chip:hover {
  background: #3b4cca;
  color: #fff;
}

/* === Abilities (capacités spéciales) === */
/* === Abilities (capacités spéciales) === */
.pokemon-abilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.pokemon-abilities > div {
  background: #fff;
  border: 2px solid #e3350d;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: bold;
  color: #222;
  transition: transform 0.2s ease;
}

.pokemon-abilities > div:hover {
  transform: scale(1.03);
}







/* === Évolution chain display === */

.pokemon-evolution-scroll {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  padding: 15px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  scrollbar-width: thin;
}

.pokemon-evolution-scroll::-webkit-scrollbar {
  height: 6px;
}
.pokemon-evolution-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.evo-block {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.evo-block img {
  width: 90px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.evo-name {
  margin-top: 8px;
  font-weight: 600;
  color: #222;
  font-size: 14px;
}

.evo-arrow {
  flex-shrink: 0;
  font-size: 24px;
  color: #999;
}

/* === Enfants + flèches === */
.evo-children {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.evo-arrow {
  font-size: 22px;
  color: #999;
  margin: 0 10px;
  flex-shrink: 0;
}


/* === Responsive pour petits écrans === */
@media screen and (max-width: 600px) {
  .pokemon-move-grid {
    flex-direction: column;
    gap: 6px;
  }
  .move-chip {
    font-size: 14px;
    padding: 8px 10px;
  }
}



//autre carte associés sur la page des cartes 

.cartes-associees-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 16px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carte-associee {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    scroll-snap-align: center;
    max-width: 150px;
    transition: transform 0.2s ease;
}

.carte-associee img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

.carte-titre {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.carte-associee:hover {
    transform: scale(1.05);
}






/*Numéro carte pokemon : ex : 2/100*/
/*
.pokemon-meta.numero-carte {

  background-color: #f1f1f1;
  border: 1px solid grey;
  padding:5px 15px 5px 10px;
  border-radius:10px;
}*/

.pokemon-meta.numero-carte .icon {
  font-size: 14px;
  color: #000;
}

.pokemon-meta.numero-carte .label {
  font-weight: 600;
  color: #000;
  font-size:14px;
}

.pokemon-meta.numero-carte .value {
  font-weight: 600;
  color: #000;
  font-size:14px;
}

.carte-numero {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.carte-infos-supp {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}





/* === Coût de retraite Pokémon === */
.retreat-container {
    margin: 20px 0;
    font-family: 'Segoe UI', sans-serif;
}

.retreat-title {
    margin-bottom: 10px;
}

.retreat-box {
    display: inline-block; /* taille auto */
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 10px 14px;
}

.retreat-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.retreat-icons img {
    width: 24px;
    height: 24px;
}

.retreat-fallback {
    font-size: 14px;
    color: #999;
    padding: 4px 8px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background: #f9f9f9;
}







/*ATAQUES DES CARTE POKEMON*/
.liste-attaques {
    margin-top: 20px;
}
.attaque-pokemon {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
}
.attaque-nom {
    font-size: 16px;
    margin-bottom: 8px;
}
.attaque-ligne {
    display: flex;
    align-items: center;
    gap: 10px;
}
.attaque-cout {
   
    display: inline-flex;
    gap: 6px;
}
.attaque-cout img {
    width: 24px;
    height: 24px;
}
.attaque-degats {
    font-weight: bold;
    font-size: 18px;
    color: #e3350d;
    margin-left: auto;
}
.attaque-texte {
    font-size: 14px;
    color: #444;
    margin-top: 8px;
}


/* 📦 Style pour le shortcode [pokemon_resistances] */
.resistance-container {
    margin: 20px 0;
    font-family: 'Segoe UI', sans-serif;
}


.resistance-title img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.resistance-box {
    display: inline-block;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 10px 14px;
}

.resistance-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.resistance-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.resistance-item img {
    width: 24px;
    height: 24px;
}

.resistance-label {
    font-weight: bold;
    font-size: 14px;
    color: #222;
}

.resistance-value {
    font-size: 14px;
    color: #2e7d32;
    font-weight: bold;
}









/*FAIBLESSES DES CARTE POKEMON*/
/* 🎯 Conteneur Faiblesses */

/* FAIBLESSES DES CARTES POKÉMON - style harmonisé avec attaques */
.pokemon-weaknesses {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.weakness-badge {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #222;
    min-width: 140px;
    justify-content: space-between;
}

.weakness-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.weakness-label {
    flex: 1;
}

.weakness-multiplier {
    color: #e3350d;
    font-weight: bold;
    margin-left: 10px;
    font-size: 16px;
}






/*TGCPLAYER PRIX EN GRAPHIQUE*/
.pokemon-tcgplayer {
  font-family: 'Segoe UI', sans-serif;
  margin-top: 20px;
}

.pokemon-tcgplayer h3 {
  font-size: 16px;
  font-weight: 700;
  color: #e60012;
  margin-bottom: 12px;
}

.tcg-edition {
  margin-bottom: 20px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
}

.tcg-edition-title {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #d63d81;
}

.tcg-bar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tcg-bar-list li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.tcg-type {
  min-width: 80px;
  font-weight: 500;
  color: #444;
  font-size: 13px;
}

.tcg-bar {
  flex-grow: 1;
  background: linear-gradient(90deg, #ffcb05, #e60012);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 100%;
}

.tcg-link {
  display: inline-block;
  margin-top: 10px;
  color: #d63d81;
  font-weight: bold;
  text-decoration: none;
}

.tcg-link:hover {
  text-decoration: underline;
}



/*TABLEAU COMPARATEUR DE PRIX*/
.pokemon-price-table {
  font-family: 'Segoe UI', sans-serif;
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pokemon-price-table h3 {
  background: linear-gradient(to right, #ffcb05, #e60012);
  color: #fff;
  padding: 12px 16px;
  margin: 0;
  font-size: 18px;
  border-radius: 10px 10px 0 0;
}

.pokemon-price-compare {
  width: 100%;
  border-collapse: collapse;
}

.pokemon-price-compare th,
.pokemon-price-compare td {
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.pokemon-price-compare th {
  background: #f9f9f9;
  color: #333;
  font-weight: 600;
}

.pokemon-price-compare td.tcg {
  color: #d63d81;
}

.pokemon-price-compare td.cardmarket {
  color: #3b4cca;
}

.table-links {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f8f8;
  border-top: 1px solid #eee;
  border-radius: 0 0 10px 10px;
}

.btn-tcg, .btn-cardmarket {
  display: inline-block;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
}

.btn-tcg {
  background: #d63d81;
}
.btn-cardmarket {
  background: #3b4cca;
}

.btn-tcg:hover {
  background: #b92a65;
}
.btn-cardmarket:hover {
  background: #2a3690;
}




/*BLOC HABILITES DES CARTES POKEMON*/
.liste-capacites {
    margin-top: 20px;
}
.capacite-pokemon {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
}
.capacite-nom {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
}
.capacite-texte {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}




/*TAXONOMIE PERSONNALISEE*/
.pokemon-taxo-badges {
  font-family: 'Segoe UI', sans-serif;
  margin: 20px 0;
  font-size: 14px;
}

.pokemon-taxo-badges h3 {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin-bottom: 12px;
}

.pokemon-taxo-badges ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pokemon-taxo-badges li {
  background-color: #fff;
  border:1px solid var(--couleur-foncee);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
}

.pokemon-taxo-badges li a {
  color: var(--couleur-foncee);
  font-weight: 600;
  text-decoration: none;
}

.pokemon-taxo-badges li a:hover {
  text-decoration: none;
}




/*CSS GLOBAL DES VIGNETTES ROUGES*/
#vignettes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

#vignettes .elementor-icon-list-item {
  background-color: #f1f1f1;         /* fond rouge clair Pokémon */
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#vignettes .elementor-icon-list-item:hover {
  background-color: #ffe5e5;
  transform: scale(1.04);
  cursor: pointer;
}

#vignettes .elementor-icon-list-icon svg {
  width: 16px;
  height: 16px;
  fill: #e60012;
}

#vignettes .elementor-icon-list-text {
  color: #e60012;
  font-weight: 600;
  font-size: 13px;
}

#vignettes .elementor-icon-list-text a {
  color: inherit;
  text-decoration: none;
}

#vignettes .elementor-icon-list-text a:hover {
  text-decoration: underline;
}










/*SLIDER EVOLUTION*/
.pokemon-evolution-slider {
  margin: 30px 0;
  font-family: 'Segoe UI', sans-serif;
}

.slider-title {
  font-size: 18px;
  font-weight: bold;
  color: #e60012;
  margin-bottom: 12px;
}

.evolution-scroll {
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
  scrollbar-width: thin;
}

.evolution-scroll::-webkit-scrollbar {
  height: 6px;
}
.evolution-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.evo-block {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
}

.evo-link {
  text-decoration: none;
  color: inherit;
}

.evo-image {
  width: 110px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.evo-link:hover .evo-image {
  transform: scale(1.05);
}

.evo-name {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.evo-arrow {
  font-size: 24px;
  color: #999;
  flex-shrink: 0;
}



/*Pokemon sur fiche carte [pokemon_associe_a_carte]*/
.pokemon-associes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.pokemon-associe-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s;
}

.pokemon-associe-item:hover {
    background: #f0f0f0;
}

.pokemon-associe-item img {
    width: 80px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.pokemon-associe-infos {
    display: flex;
    flex-direction: column;
}

.pokemon-associe-infos h3
{
    color: #000;
}

.pokemon-associe-infos strong {
    font-size: 18px;
    color: var(--couleur-foncee);
}

.pokemon-associe-infos .voir-pokedex {
    font-size: 14px;
    color: #555;
}









/* === Évolution Pokémon - Responsive Flex === */
.carte-evolution-chain {
  margin: 20px auto;
  max-width: 1000px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

.evo-title {
  color: #fff;
  margin-bottom: 20px;
}

.evo-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.evo-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 10px;
  width: 160px;
  transition: transform 0.3s ease, border 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.evo-card.current {
  border: 2px solid #fff;
  background-color: var(--couleur-foncee);
  box-shadow: 0 4px 8px rgba(227, 53, 13, 0.15);
}

.evo-card:hover {
  transform: scale(1.05);
}

.evo-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 8px;
  object-fit: contain;
}

.evo-card span {
  font-weight: bold;
  font-size: 14px;
  color: #fff;
}

.evo-arrow {
  font-size: 24px;
  color: #fff;
  margin: 0 6px;
}

/* 📱 Mobile responsivité */
@media screen and (max-width: 600px) {
  .evo-card {
    width: 110px;
    padding: 8px;
  }

  .evo-card span {
    font-size: 13px;
  }

  .evo-title {
    font-size: 18px;
  }

  .evo-arrow {
    font-size: 18px;
  }
}



/* bouton acheter sur ebay carte Pokémon 
*/
.ebay-button-wrapper {
    text-align: center;
    margin-top: 30px;
}
.ebay-button {
    background-color: #f1f1f1;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}
.ebay-button:hover {
    background-color: #0050a4;
    transform: translateY(-2px);
}
.ebay-button svg {
    width: 90px;
    height: auto;
}
.ebay-tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 100;
}
.ebay-button:hover .ebay-tooltip {
    visibility: visible;
    opacity: 1;
}


/* badge de rareté des cartes Pokémon et dans les grilles et slide carte Pokémon élémentaire*/

.badge-rarete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f1f1;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.badge-rarete-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.badge-rarete-emoji {
    font-size: 18px;
}

.badge-rarete-label {
    font-size: 14px;
}

/* Optionnel : style par rareté */
.badge-rare { background: #fffbe6; border: 1px solid gold; }
.badge-rare-ultra { background: #ffe6f6; border: 1px solid deeppink; }
.badge-rare-secret { background: #e6f7ff; border: 1px solid dodgerblue; }
.badge-promo { background: #fff0f0; border: 1px solid crimson; }







/*CSS DYNAMIQUE DES PAGES CARTES EN FONCTION DU TYPE DES POKEMON*/

/* 🎨 CSS DYNAMIQUE DES PAGES CARTES EN FONCTION DU TYPE DES POKEMON */

/* 🌱 Type Plante */
body.type-plante {
    --couleur-foncee: #2D6A4F;
    --couleur-claire: #6BBF59;
    --couleur-fond: #E8F8E3;
}

/* 🔥 Type Feu */
body.type-feu {
    --couleur-foncee: #D62828;
    --couleur-claire: #FF7F51;
    --couleur-fond: #FFE9E3;
}

/* 💧 Type Eau */
body.type-eau {
    --couleur-foncee: #145DA0;
    --couleur-claire: #4DA8DA;
    --couleur-fond: #D2F1FF;
}

/* ⚡ Type Électrique */
body.type-electrique {
    --couleur-foncee: #F4C10F;
    --couleur-claire: #FFD93D;
    --couleur-fond: #FFF5B7;
}

/* 🧠 Type Psy */
body.type-psy {
    --couleur-foncee: #7209B7;
    --couleur-claire: #C77DFF;
    --couleur-fond: #F3D9FA;
}

/* 🥊 Type Combat */
body.type-combat {
    --couleur-foncee: #9C2D2D;
    --couleur-claire: #E07A5F;
    --couleur-fond: #F6D0C1;
}

/* ⚙️ Type Métal */
body.type-metal {
    --couleur-foncee: #495057;
    --couleur-claire: #ADB5BD;
    --couleur-fond: #E5E5E5;
}

/* 🌑 Type Ténèbres */
body.type-tenebre {
    --couleur-foncee: #1C1C1C;
    --couleur-claire: #3C3C3B;
    --couleur-fond: #B5B5B5;
}

/* ✨ Type Fée */
body.type-fee {
    --couleur-foncee: #D86FC1;
    --couleur-claire: #FDA7DC;
    --couleur-fond: #FFE2F5;
}

/* 🐉 Type Dragon */
body.type-dragon {
    --couleur-foncee: #3B3B98;
    --couleur-claire: #A29BFE;
    --couleur-fond: #E5E5FF;
}

/* 👻 Type Spectre */
body.type-spectre {
    --couleur-foncee: #5A189A;
    --couleur-claire: #9D4EDD;
    --couleur-fond: #E8D3F8;
}

/* ⚪ Type Incolore */
body.type-incolore {
    --couleur-foncee: #6C757D;
    --couleur-claire: #DEE2E6;
    --couleur-fond: #F8F9FA;
}







/*TABLEAU DE COMPARAISON DES PRIX A MOI*/

.pokemon-price-table {
    width: 100%;
    margin: 30px auto;
    border-collapse: collapse;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pokemon-price-table th,
.pokemon-price-table td {
    padding: 12px 16px;
    border: 1px solid #eee;
    text-align: center;
}

.pokemon-price-table thead {
    background-color: #f7f9fb;
}

.pokemon-price-table th {
    font-weight: 600;
}

.pokemon-price-table .cardmarket {
    background-color: rgba(54, 162, 235, 0.08);
    color: #227dc7;
}

.pokemon-price-table .tcgplayer {
    background-color: rgba(255, 99, 132, 0.08);
    color: #c72652;
}





/* ✅ Pastille Regulation Mark */
.regulation-mark-badge {
   background-color: #fffbea;
    border: 1px solid #f1d36d;
    padding: 16px;
    margin: 20px 0;
    border-radius: 12px;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ⚠️ Style spécial pour valeur inconnue */
.regulation-mark-badge.unknown {
     background-color: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 12px;
    border-radius: 8px;
    font-style: italic;
    color: #777;
}

/*ID DE LA CARTE AFFICHAGE*/
.id-carte {
   
}



/*CSS DES REGLE DES CARTES POKEMON*/
.carte-pokemon-rules {
    background-color: #fffbea;
    border: 1px solid #f1d36d;
    padding: 16px;
    margin: 20px 0;
    border-radius: 12px;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.carte-pokemon-rules h3 {
    margin-top: 0;
    font-size: 18px;
    color: #b18500;
}

.carte-pokemon-rules ul {
    padding-left: 20px;
    margin: 10px 0 0;
}

.carte-pokemon-rules li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #333;
}

/* ✅ Style pour cas vide / inconnu */
.rules-empty {
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 12px;
    border-radius: 8px;
    font-style: italic;
    color: #777;
}












/*icone rareté*/
.badge-rarete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    white-space: nowrap;
}

.icon-rarete {
    display: inline-block;
    width: auto;
    height: auto;
    max-height: 20px;
    max-width: 20px;
    vertical-align: middle;
}

.rarete-label {
    font-family: 'Segoe UI', sans-serif;
}






/*Modifier mon compte*/
.form-modifier-infos {
    max-width: 480px;
    margin: auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.form-modifier-infos label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.form-modifier-infos input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.form-modifier-infos button {
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #e3350d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.message-succes {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.message-erreur {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}


/*STATITSTIQUES DES COLLECTION*/
.stats-collection {
    background: #f2f2f2;
    padding: 20px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 600px;
    border: 2px solid #e3350d;
}

.stats-collection h2 {
    text-align: center;
    color: #e3350d;
    margin-bottom: 20px;
}

.stats-collection ul {
    list-style: none;
    padding: 0;
    font-size: 16px;
}

.stats-collection li {
    margin-bottom: 10px;
}



/*Mes collections*/
.collection-pokemon h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #e3350d;
}

.type-titre {
    font-size: 20px;
    color: #e3350d;
    margin-top: 30px;
    border-bottom: 2px solid #e3350d;
    padding-bottom: 6px;
}

.cartes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 15px;
    margin-bottom: 30px;
    justify-content: flex-start;
}

.carte {
    width: 150px;
    background: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.carte img {
    width: 100%;
    display: block;
}

.carte .titre {
    font-weight: bold;
    margin: 8px 0 4px;
}

.carte .infos {
    font-size: 13px;
    color: #666;
}

.retirer-btn {
    background: #f1f1f1;
    color: #e3350d;
    padding: 5px 10px;
    border: none;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 6px;
}

.btn-retirer-collection
{
    color:#000;
    font-size:12px;
}



/*BOUTONS FAVORIES ET COLLECITON*/
/* 🧩 Conteneur horizontal pour les deux boutons */
.boutons-groupe {
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap; /* ✅ wrap sur mobile */
}

/* 🔘 Boutons favoris + collection */
.btn-ajouter-collection,
.btn-ajouter-favori {
    flex: 1 1 45%; /* ✅ Permet wrap propre si besoin */
    min-width: 140px;
    padding: 10px 15px;
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    white-space: normal;
    word-break: keep-all;
    transition: background-color 0.3s, transform 0.2s;
    box-sizing: border-box;
}

.btn-ajouter-collection:hover,
.btn-ajouter-favori:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

/* 🧾 Formulaires sans marges */
.form-ajouter-collection,
.form-ajouter-favori {
    margin: 0;
    flex: 1;
}

/* ✅ Messages feedback */
.message-succes,
.message-succes-favori,
.message-info,
.message-info-favori {
    padding: 10px;
    margin: 12px auto;
    border-radius: 8px;
    font-weight: bold;
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
}

.message-succes,
.message-succes-favori {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.message-info,
.message-info-favori {
    background-color: #fff3f3;
    color: #a94442;
    border-left: 4px solid #e3342f;
}

/* 📱 Responsive ajusté */
@media (max-width: 480px) {
    .btn-ajouter-collection,
    .btn-ajouter-favori {
        flex: 1 1 100%;
        max-width: 100%;
        font-size: 12px;
    }
}





/* 🌟 Image affichée via [pokemon_image_meta] */

.pokemon-meta-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: nowrap;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 🖼️ Images fixes à 25px */
.pokemon-meta-img {
    height: 25px;
    width: auto;
    max-height: 25px;
    max-width: 100%;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

/* 🖱️ Survol léger */
.pokemon-meta-img:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* 📱 Fix mobile */
@media (max-width: 600px) {
    .pokemon-meta-wrapper {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .pokemon-meta-img {
        height: 25px;
        max-width: 45vw;
    }
}






/* 🌟 Conteneur principal avec scroll horizontal */
.collection-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* 📊 Tableau principal */
.table-collection {
    width: 100%;
    min-width: 950px; /* Forcer scroll si l'écran est étroit */
    border-collapse: collapse;
    font-size: 14px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid #ccc;
}

/* 🧱 En-tête et cellules */
.table-collection th,
.table-collection td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap; /* ⛔️ Pas de retour à la ligne */
}

/* 🧠 En-tête */
.table-collection th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #333;
}

/* 🖼️ Image de carte */
.table-collection img {
    border-radius: 6px;
    max-height: 60px;
    display: block;
    margin: 0 auto;
}

/* ❌ Bouton "Retirer" */
.btn-retirer-collection {
    background-color: #fff ;
    color: #e3350d;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}
.btn-retirer-collection:hover {
    background-color: #c52d0c;
}

/* 💰 Total en bas du tableau */
.total-section {
    text-align: right;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    padding-right: 10px;
    color: #222;
}








/* ================================
   👤 Moteur de recherche
================================== */


/* 🚀 Formulaire */
#simple-search-form {
    position: relative;
    width: 100%;
}

/* 🔎 Champ de recherche simple*/
/* 🔎 Barre de recherche moderne et responsive */

#search-input {
    width: 100%;
    padding: 12px 42px 12px 42px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#search-input::placeholder {
    color: #999;
}

#search-input:focus {
    border-color: #ff9900;
    box-shadow: 0 0 0 3px rgba(255,153,0,0.2);
}

/* 🔘 Icône à gauche dans le champ */
.search-icon-left,
#search-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

.search-icon-left {
    left: 12px;
}

#search-button {
    right: 12px;
    color: #555;
    transition: color 0.2s ease;
}

#search-button:hover {
    color: #ff9900;
}

/* 📄 Suggestions sous le champ */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dcdcdc;
    border-top: none;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    border-radius: 0 0 10px 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 1;
    visibility: visible;
}

.suggestions:empty {
    display: none;
    border: 0;
    padding: 0;
    margin: 0;
    height: 0;
}

.suggestion-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
    font-size: 14px;
    color: #222;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.suggestion-item:hover {
    background-color: #f9f9f9;
}


  #simple-search-form {
    position: relative;
  }

  #filter-toggle,
  #search-button {
    top: 12px !important; /* Valeur fixe au lieu de 50% */
    transform: none !important; /* On évite le translateY qui est instable quand la hauteur change */
  }

  #search-input {
    height: 44px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-top: none;
  }
}


/* 🧩 Conteneur général */
.search-container {
    position: relative;
    max-width: 100%;
}

#simple-search-form {
    position: relative;
    width: 100%;
}

/* 📂 Menu déroulant de filtres */
#filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px 20px;
    z-index: 1000;
    margin-top: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    font-size: 15px;
}

#filter-dropdown strong {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin: 16px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
    color: #444;
}

#filter-dropdown label {
    display: block;
    margin: 6px 0 6px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

#filter-dropdown input[type="radio"] {
    margin-right: 8px;
    vertical-align: middle;
	border-radius:5px;
}



/* 📱 Responsive mobile (portrait et paysage) */
@media (max-width: 768px) {
    .search-container {
        position: relative;
        z-index: 9999;
        
    }

    #simple-search-form {
        position: relative;
    }

    #search-input {
        padding: 10px 40px;
        font-size: 16px;
        height: 44px;
        
    }

    #search-button,
    #filter-toggle {
        top: 12px !important; /* Fixé pour éviter le reflow */
        transform: none !important;
        width: 22px;
        height: 22px;
    }

    .suggestions {
        position: absolute !important; /* Toujours hors flux */
        top: 100%;
        left: 0;
        right: 0;
        z-index: 9999;
        font-size: 15px;
        max-height: 40vh;
        overflow-y: auto;
        margin-top: 0;
        border-radius: 0px;
        border: 1px solid #ccc;
        background: #fff;
    }

    .suggestion-item {
        padding: 12px 14px;
        font-size: 15px;
    }
}





/* ================================
   👤 Zone utilisateur /mon-compte/
================================== */
.mon-compte-wrapper {
    width: 100%;
    padding: 0px;
    background: #fff;
    border-radius: 16px;
    font-family: "Segoe UI", Roboto, sans-serif;
}

/* ✅ Titres */
.mon-compte-wrapper h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #222;
}

/* ✅ Formulaire général */
.mon-compte-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mon-compte-wrapper label {
    font-weight: 600;
    margin-top: 10px;
    color: #444;
}

/* ✅ Champs texte, email, mot de passe, fichier, date */
.mon-compte-wrapper input[type="text"],
.mon-compte-wrapper input[type="email"],
.mon-compte-wrapper input[type="password"],
.mon-compte-wrapper input[type="file"],
.mon-compte-wrapper input[type="date"],
.mon-compte-wrapper select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.mon-compte-wrapper input:focus,
.mon-compte-wrapper select:focus {
    border-color: #e3350d;
    box-shadow: 0 0 5px rgba(227, 53, 13, 0.3);
    outline: none;
}

/* 🔘 Bouton principal */
.mon-compte-wrapper button {
    margin-top: 15px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background: #e3350d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mon-compte-wrapper button:hover {
    background-color: #c8230b;
}

/* ✅ Avatar image preview */
.mon-compte-wrapper img[alt="Avatar"] {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #eee;
}

/* ✅ Messages */
.msg-erreur,
.msg-succes {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: bold;
}
.msg-erreur {
    background: #fdecea;
    color: #b30000;
    border: 1px solid #f5c2c7;
}
.msg-succes {
    background: #e6f4ea;
    color: #1d7a38;
    border: 1px solid #badbcc;
}

/* ✅ Connexion / inscription en grille sur large */
@media (min-width: 768px) {
    .form-connexion,
    .form-inscription {
        display: inline-block;
        vertical-align: top;
        width: 48%;
    }
    .form-connexion {
        margin-right: 4%;
    }
}









.wp-main-menu {
    padding: 0;
    margin: 10px 0 0 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wp-main-menu li a {
    text-decoration: none;
    background: #e8e8e8;
    padding: 10px 14px;
    border-radius: 8px;
    color: #222;
    font-weight: 600;
    display: block;
    transition: background 0.3s, transform 0.2s;
}

.wp-main-menu li a:hover {
    background: #e60012;
    color: white;
    transform: translateX(5px);
}

.menu-wordpress {
    margin-top: 20px;
}



/* =============================
   🎖️ [badge_pokemon_rank]
============================= */

.badge-pokemon-rank {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border: 2px solid #e3350d;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #e3350d;
    box-shadow: 1px 1px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.badge-pokemon-rank:hover {
    transform: scale(1.04);
}

.badge-pokemon-rank img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #fff;
    background: white;
}





/* ==============================
   📊 [pokemon_user_stats]
============================== */

.pokemon-user-stats-wrapper {
    width:100%;
    background: #fff;
    border-radius: 14px;
}

/* 🎖️ Badge intégré */
.pokemon-user-stats-wrapper .badge-pokemon-rank {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f6f6f6;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.pokemon-user-stats-wrapper .badge-pokemon-rank img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #fff;
}

/* 📊 Stats */
.stats-pokemon-rank {
    background: #fafafa;
    border-left: 4px solid #e3350d;
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.stats-pokemon-rank p {
    margin: 8px 0;
}

/* 🎯 Objectif */
.objectif-rank {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffca28;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
}





/* 📁 Shortcode : [cartes_collectors] */


.cartes-collectors {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Par défaut : mobile */
    gap: 5px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .cartes-collectors {
        grid-template-columns: repeat(3, 1fr); /* Tablette */
    }
}

@media (min-width: 1024px) {
    .cartes-collectors {
        grid-template-columns: repeat(5, 1fr); /* Ordinateur */
    }
}

.collector-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    text-align: center;
    transition: transform 0.2s;
}
.collector-card:hover {
    transform: scale(1.02);
}
.collector-card h4 {
    margin: 10px 0 5px;
    font-size: 16px;
}
.collector-card .price {
    font-weight: bold;
    color: #cc0000;
}
.collector-card .score {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}




/* 📁 Shortcode des cartes les plus chers : [cartes_plus_cheres]*/


.cartes-plus-cheres {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile par défaut */
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .cartes-plus-cheres {
        grid-template-columns: repeat(3, 1fr); /* Tablette */
    }
}

@media (min-width: 1024px) {
    .cartes-plus-cheres {
        grid-template-columns: repeat(5, 1fr); /* Ordinateur */
    }
}

.carte-block {
    text-align: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.carte-block:hover {
    transform: scale(1.02);
}
.carte-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.carte-block .prix {
    font-weight: bold;
    color: #cc0000;
    margin-top: 5px;
}
.carte-block a {
    margin-top: 10px;
    display: inline-block;
    background: #f3f3f3;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}
.carte-block a:hover {
    background: #e2e2e2;
}






/*popup ajout et suppression favoris et collection*/
.popup-confirmation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #f9f9f9;
    color: #222;
    padding: 14px 22px 14px 52px;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Verdana', 'Trebuchet MS', sans-serif;
    text-align: left;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #ccc;
    max-width: 85%;
    pointer-events: none;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

/* Animation apparition */
.popup-confirmation.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Icône dans la popup */
.popup-confirmation .popup-icon {
    font-size: 14px;
    margin-right: 10px;
    margin-left: -30px;
    flex-shrink: 0;
}

/* Variante pour ajout (check vert discret) */
.popup-confirmation.success {
    border-color: #28a745;
}

/* Variante pour suppression (croix rouge discret) */
.popup-confirmation.error {
    border-color: #dc3545;
}



/*bouton connexion par google*/

.connexion-google-bloc {
    text-align: center;
    margin: 30px 0;
    padding: 10px 0;
}

.connexion-google-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
}

.connexion-google-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #202124;
    border: 1px solid #dadce0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px rgba(60,64,67,.15);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    min-width: 250px;
    user-select: none;
}

.connexion-google-button:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 6px rgba(60,64,67,.3), 0 8px 12px rgba(60,64,67,.15);
    transform: translateY(-1px);
}

.connexion-google-button:active {
    box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 2px 4px rgba(60,64,67,.15);
    transform: translateY(0);
}

.google-logo {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    vertical-align: middle;
    flex-shrink: 0;
}




/* ✅ Nombre de favoris */
h2.favoris-count {
    font-size: 20px;
    font-weight: 600;
    color: #d62828; /* un beau rouge Pokémon */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

h2.favoris-count::before {
    content: "⭐";
    font-size: 24px;
}

/* ✅ Formulaire de tri */
.favoris-tri-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

.favoris-tri-form label {
    font-weight: 500;
    color: #333;
}

.favoris-tri-form select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 15px;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-size: 12px;
    cursor: pointer;
}

.favoris-tri-form select:focus {
    outline: none;
    border-color: #d62828;
    box-shadow: 0 0 0 2px rgba(214, 40, 40, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
    .favoris-tri-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .favoris-tri-form select {
        width: 100%;
    }
}





//page top recherche
ul.top-recherches-pokemon {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 480px;
    background: #f8f9fa;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    font-family: 'Segoe UI', sans-serif;
}

ul.top-recherches-pokemon li {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ebebeb;
    transition: background 0.2s ease;
}

ul.top-recherches-pokemon li:last-child {
    border-bottom: none;
}

ul.top-recherches-pokemon li:hover {
    background: #e9f5ff;
}

ul.top-recherches-pokemon li a {
    font-weight: 500;
    color: #0056b3;
    text-decoration: none;
    font-size: 16px;
    flex: 1;
}

ul.top-recherches-pokemon li a:hover {
    text-decoration: underline;
}

ul.top-recherches-pokemon li span {
    background: #0073aa;
    color: white;
    padding: 3px 9px;
    font-size: 13px;
    border-radius: 10px;
    margin-left: 12px;
    min-width: 26px;
    text-align: center;
}







/*PAGE LISTE DES DRESSEURS*/
 .liste-utilisateurs-pokemon {
        max-width: 100%;
        margin: 40px auto;
        padding: 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 0 20px rgba(0,0,0,0.05);
    }
    .liste-utilisateurs-pokemon input {
        margin-bottom: 15px;
        padding: 8px;
        width: 100%;
        max-width: 400px;
        border: 1px solid #ccc;
        border-radius: 8px;
    }
    #table-dresseurs {
        width: 100%;
        border-collapse: collapse;
        font-size: 15px;
    }
    #table-dresseurs th {
        cursor: pointer;
        padding: 12px;
        background: #64a57b;
        color: white;
        text-align: left;
        border-bottom: 2px solid #519067;
    }
    #table-dresseurs td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
        vertical-align: middle;
    }
    #table-dresseurs tr:nth-child(even) {
        background: #f9f9f9;
    }
    #table-dresseurs tr:hover {
        background-color: #f1f1f1;
    }
    #table-dresseurs a {
        color: #333;
        text-decoration: none;
    }
	
	
	/*PROFIL DES DRESSEURS*/
	