:root {
    /* Couleurs principales Pokémon */
    --color-dark-bg: #181818;
    --color-dark-card: #232323;
    --color-dark-text: #fff;
    --color-light-bg: #fff;
    --color-light-card: #f8f8f8;
    --color-light-text: #181818;
    /* Palette Pokémon */
    --color-accent: #e53935; /* Rouge principal */
    --color-black: #181818;
    --color-white: #fff;
    --color-grey: #ADADB8;
    --color-grey-dark: #232323;
    --color-gold: #FFD700;
    --color-silver: #C0C0C0;
    --color-bronze: #CD7F32;
    --color-border: rgba(255,255,255,0.1);
    --color-hover: #2a2a2a;
    --color-shadow-dark: rgba(0,0,0,0.18);
    --color-shadow-light: rgba(255,255,255,0.5);
    /* Transitions */
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
    --transition-slow: 0.5s ease;
    /* Ombres */
    --shadow-sm: 0 2px 4px var(--color-shadow-dark);
    --shadow-md: 0 4px 8px var(--color-shadow-dark);
    --shadow-lg: 0 8px 16px var(--color-shadow-dark);
    /* Raretés */
    --rarity-1: #6B7280;
    --rarity-2: #3B82F6;
    --rarity-3: #8B5CF6;
    --rarity-4: #F59E0B;
    --rarity-5: #EF4444;
    --rarity-6: #7F1D1D;
    --rarity-7: #DB2777;
    /* Couleurs d'action */
    --color-accent-hover: #b71c1c;
    --color-accent-shadow: #e5393533;
    --color-accept: #e53935;
    --color-accept-hover: #b71c1c;
    --color-reject: #e53935;
    --color-reject-hover: #b71c1c;
    /* Espacement */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    /* Typographie */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
}
:root[data-theme='dark'] {
    --color-bg: #181818;
    --color-bg-secondary: #c2c2c2;
    --color-bg-card: #232323;
    --color-text: #fff;
    --color-accent: #e53935;
    --color-white: #fff;
}
:root[data-theme='light'] {
    --color-bg: #fff;
    --color-bg-secondary: #444444;
    --color-bg-card: #fff;
    --color-text: #181818;
    --color-accent: #e53935;
    --color-white: #fff;
}

/* Modes daltoniens */
:root[data-colorblind="protanopia"] {
    --color-accent: #0072b2; /* bleu pour remplacer le rouge */
    --color-gold: #FFD700;
    --color-bg: #181818;
    --color-bg-secondary: #c2c2c2;
    --color-bg-card: #232323;
    --color-shadow-dark: rgba(0,0,0,0.18);
}
:root[data-colorblind="deuteranopia"] {
    --color-accent: #e69f00; /* orange pour remplacer le vert */
    --color-gold: #FFD700;
    --color-bg: #181818;
    --color-bg-secondary: #c2c2c2;
    --color-bg-card: #232323;
    --color-shadow-dark: rgba(0,0,0,0.18);
}
:root[data-colorblind="tritanopia"] {
    --color-accent: #d55e00; /* rouge/orange pour remplacer le bleu */
    --color-gold: #FFD700;
    --color-bg: #181818;
    --color-bg-secondary: #c2c2c2;
    --color-bg-card: #232323;
    --color-shadow-dark: rgba(0,0,0,0.18);
}

/* Styles globaux */
html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--color-dark-bg);
    color: var(--color-dark-text);
    transition: background-color var(--transition-medium), color var(--transition-medium);
    overflow-x: hidden; /* Empêcher le défilement horizontal */
}

body.light-mode {
    background-color: var(--color-light-bg);
    color: var(--color-light-text);
}

/* Pour éviter les marges bleues sur mobile */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

/* Styles de base des liens */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-black);
}

body.light-mode a {
    color: var(--color-accent);
}

body.light-mode a:hover {
    color: var(--color-black);
}

/* Styles de base pour les boutons */
button {
    cursor: pointer;
    font-family: inherit;
}

/* Animations générales */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Utilitaires */
.hidden {
    display: none !important;
}

.scrollable-content {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
}

.scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 6px;
}

#main-menu {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: none;
    position: relative;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 100px 0;
    margin-top: 90px;
    margin-bottom: 90px;
}

.rarity-1.rarity-glow { box-shadow: 0 0 16px 4px var(--rarity-1), 0 2px 12px 0 var(--color-shadow-dark); --rarity-glow-color: var(--rarity-1); }
.rarity-2.rarity-glow { box-shadow: 0 0 16px 4px var(--rarity-2), 0 2px 12px 0 var(--color-shadow-dark); --rarity-glow-color: var(--rarity-2); }
.rarity-3.rarity-glow { box-shadow: 0 0 16px 4px var(--rarity-3), 0 2px 12px 0 var(--color-shadow-dark); --rarity-glow-color: var(--rarity-3); }
.rarity-4.rarity-glow { box-shadow: 0 0 16px 4px var(--rarity-4), 0 2px 12px 0 var(--color-shadow-dark); --rarity-glow-color: var(--rarity-4); }
.rarity-5.rarity-glow { box-shadow: 0 0 16px 4px var(--rarity-5), 0 2px 12px 0 var(--color-shadow-dark); --rarity-glow-color: var(--rarity-5); }
.rarity-6.rarity-glow { box-shadow: 0 0 16px 4px var(--rarity-6), 0 2px 12px 0 var(--color-shadow-dark); --rarity-glow-color: var(--rarity-6); }
.rarity-7.rarity-glow { box-shadow: 0 0 16px 4px var(--rarity-7), 0 2px 12px 0 var(--color-shadow-dark); --rarity-glow-color: var(--rarity-7); }

/* Styles pour les carrousels */
.carrousel-actus,
.carrousel-cartes,
.carrousel-badges {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: grab;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    background: var(--color-bg-card);
    border-radius: 18px;
    padding: 1.2em 1.5em;
    box-shadow: 0 2px 8px var(--color-shadow);
}

.carrousel-actus.compact,
.carrousel-cartes.compact,
.carrousel-badges.compact {
    min-width: 280px;
    margin-bottom: 1em;
}

.carrousel-actus h3,
.carrousel-cartes h3,
.carrousel-badges h3 {
    color: var(--color-accent);
    margin-bottom: 0.7em;
}

.carrousel-actus::-webkit-scrollbar,
.carrousel-cartes::-webkit-scrollbar,
.carrousel-badges::-webkit-scrollbar {
    display: none;
}

.carrousel-actus:active,
.carrousel-cartes:active,
.carrousel-badges:active {
    cursor: grabbing;
}

.actus-list,
.cartes-list,
.badges-list {
    display: flex;
    align-items: stretch;
    gap: 1.2em;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.5em;
    width: 100%;
    min-width: 0;
}

.actus-item {
    background: var(--color-bg-secondary);
    color: var(--color-white);
    border-radius: 14px;
    min-width: 180px;
    max-width: 220px;
    flex: 0 0 180px;
    box-shadow: 0 4px 16px var(--color-shadow-dark);
    padding: 0.7em 0.7em 1em 0.7em;
    border: 2px solid var(--color-accent);
}

.actus-title {
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 0.3em;
    font-size: 0.9em;
}

.actus-date {
    font-size: 0.9em;
    color: var(--color-accent);
    margin-bottom: 0.5em;
}

.actus-more {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 0.4em 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.actus-more:hover {
    background: var(--color-white);
    color: var(--color-accent);
}

.carte-item {
    position: relative;
    background: var(--color-bg-card);
    color: var(--color-white);
    border-radius: 14px;
    min-width: 160px;
    max-width: 180px;
    flex: 0 0 120px;
    box-shadow: 0 1px 4px var(--color-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px;
    border: 2px solid transparent;
}

.carte-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.5em;
}

.carte-nom {
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 0.2em;
    font-size: 1em;
}

.carte-user {
    font-size: 0.9em;
    color: var(--color-white);
    margin-bottom: 0.2em;
}

.carte-rarete {
    font-size: 0.9em;
    color: var(--color-accent);
}

/* Styles pour le carrousel des badges */
.badge-item {
    position: relative;
    color: var(--color-white);
    border-radius: 14px;
    min-width: 200px;
    max-width: 220px;
    flex: 0 0 200px;
    box-shadow: 0 4px 16px var(--color-shadow-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.badge-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--color-shadow-dark);
    border-color: var(--color-accent);
}

.badge-icon {
    font-size: 3em;
    margin-bottom: 0.5em;
    color: var(--color-accent);
    filter: drop-shadow(0 2px 8px rgba(79, 209, 197, 0.3));
}

.badge-name {
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 0.3em;
    font-size: 1em;
    text-align: center;
}

.badge-user {
    font-size: 0.9em;
    color: var(--color-white);
    margin-bottom: 0.3em;
    text-align: center;
}

.badge-time {
    font-size: 0.8em;
    color: var(--color-accent);
    opacity: 0.8;
    text-align: center;
}

.badge-rarity-1 { border-color: var(--rarity-1); }
.badge-rarity-2 { border-color: var(--rarity-2); }
.badge-rarity-3 { border-color: var(--rarity-3); }
.badge-rarity-4 { border-color: var(--rarity-4); }
.badge-rarity-5 { border-color: var(--rarity-5); }

.badge-rarity-1:hover { box-shadow: 0 8px 24px var(--rarity-1); }
.badge-rarity-2:hover { box-shadow: 0 8px 24px var(--rarity-2); }
.badge-rarity-3:hover { box-shadow: 0 8px 24px var(--rarity-3); }
.badge-rarity-4:hover { box-shadow: 0 8px 24px var(--rarity-4); }
.badge-rarity-5:hover { box-shadow: 0 8px 24px var(--rarity-5); }

.badge-description {
    font-size: 0.8em;
    color: var(--color-white);
    margin-top: 0.5em;
    opacity: 0.7;
    text-align: center;
    line-height: 1.3;
}

/* Boutons de navigation des carrousels */
.carousel-left,
.carousel-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--color-dark-card);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    pointer-events: auto;
}

.carousel-left {
    left: 0;
}

.carousel-right {
    right: 0;
}

.carousel-left:hover,
.carousel-right:hover {
    background: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

/* === Loader Pokéball === */
#page-loader {
  position: absolute;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.pokeball-loader {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #fff 50%, #e53935 50%);
  border: 4px solid #222;
  position: relative;
  box-shadow: 0 0 24px #e53935aa;
  animation: pokespin 1s linear infinite;
}
.pokeball-loader::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  width: 64px;
  height: 8px;
  background: #222;
}
.pokeball-loader::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 4px solid #222;
  border-radius: 50%;
  z-index: 2;
}
@keyframes pokespin {
  100% { transform: rotate(360deg); }
}

/* Fondu pour le contenu principal SPA */
#page-content.fade-out {
  opacity: 0;
  transition: opacity 0.4s;
}
#page-content.fade-in {
  opacity: 1;
  transition: opacity 0.4s;
}
#page-content {
  opacity: 1;
  transition: opacity 0.4s;
}

.pokeball-svg-loader {
  width: 64px;
  height: 64px;
  display: block;
  animation: pokespin 1s linear infinite;
}
@keyframes pokespin {
  100% { transform: rotate(360deg); }
}

/* Styles pour les badges de possession de cartes */
.carte-container {
    position: relative;
    width: 100%;
}

.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card-badge.owned {
    background-color: #e53e3e;  /* Rouge */
}

.card-badge.not-owned {
    background-color: #1a202c;  /* Noir */
}

.info-item-card {
    position: relative;
}

/* Mise à jour des styles existants pour la cohérence */
.card-owned {
    border-color: #e53e3e !important;  /* Rouge */
}

.card-not-owned {
    border-color: #1a202c !important;  /* Noir */
}

.info-item-card-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item-card-label {
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
}

.info-item-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

/* Styles pour l'avertissement de quantité */
.card-quantity-warning {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(229, 62, 62, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    color: var(--color-accent);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-quantity-warning i {
    color: var(--color-accent);
} 
.online-players-floating {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 300px;
    background: var(--color-bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow-dark);
    z-index: 1000;
    border: 1px solid var(--color-accent);
    overflow: hidden;
}

.online-players-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-accent);
}

.online-players-header h3 {
    margin: 0;
    color: var(--color-accent);
    font-size: 1.1em;
}

.close-floating {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-floating:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: rotate(90deg);
}

.online-players-count {
    text-align: center;
    color: var(--color-text);
    padding: 8px;
    font-size: 0.9em;
    background: var(--color-accent-hover);
}

.online-players-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.online-players-list::-webkit-scrollbar {
    width: 6px;
}

.online-players-list::-webkit-scrollbar-track {
    background: var(--color-bg-card);
    border-radius: 3px;
}

.online-players-list::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

.online-player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--color-bg-card);
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.online-player-item:hover {
    transform: translateX(5px);
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px var(--color-shadow-dark);
}

.online-player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.online-player-name {
    color: var(--color-text);
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .online-players-floating {
        bottom: 70px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: 300px;
    }
}
/* Styles pour le bouton de défi dans la liste des joueurs en ligne */
.online-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
}

.online-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.challenge-button-small {
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.challenge-button-small:hover {
    background-color: #cc0000;
}

.challenge-button-small img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Options Modal */
.options-modal {
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.options-modal.active {
    opacity: 1;
    transform: translateY(0);
}

.options-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.options-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.close-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.options-content {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.options-section {
    margin-bottom: 2rem;
}

.options-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.notifications-subsection {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.notifications-subsection h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1rem;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.option-item:last-child {
    margin-bottom: 0;
}

.option-item label {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: var(--text-color);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Select */
select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-color);
    font-size: 0.9rem;
    min-width: 150px;
}

select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Options Footer */
.options-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.primary-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.primary-button:hover {
    background-color: var(--color-primary-dark);
}

/* Badge de propositions */
.proposal-badge {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

.proposal-badge .badge-count {
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Styles pour les selects personnalisés */
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.custom-select .selected-display {
    background: var(--color-bg-card);
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    color: var(--color-text);
}

.custom-select .selected-display::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--color-accent);
}

.custom-select.open .selected-display::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.custom-select.open .dropdown {
    display: block;
}

.custom-select .dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--color-text);
    transition: background-color 0.2s;
    list-style: none;
}

.custom-select .dropdown li:hover {
    background: var(--color-hover);
}

.custom-select .dropdown li.selected {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Style pour l'aperçu flottant */
.floating-preview {
    position: fixed;
    z-index: 1001;
    background: var(--color-bg-card);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow-md);
    display: none;
}

/* Style pour le conteneur d'image de carte */
.card-image-container {
    margin-top: 15px;
    text-align: center;
}

.card-image-container .card-image {
    max-height: 200px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.card-quantity-warning {
    margin-top: 10px;
    color: var(--color-accent);
    font-size: 0.9em;
}

/* Styles communs pour les modales */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(24,24,24,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, var(--color-bg-card) 0%, var(--color-black) 100%);
    border-radius: 24px;
    padding: 2.5em 2.5em 2em 2.5em;
    min-width: 350px;
    max-width: 95vw;
    max-height: 90vh;
    box-shadow: 0 12px 40px var(--color-shadow-dark);
    position: relative;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    border: 1px solid var(--color-accent);
    transition: transform 0.3s ease;
    transform: translateY(0);
    animation: modalAppear 0.3s ease-out;
}

/* Styles communs pour les boutons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    background: var(--color-accent);
    color: white;
}

.btn:hover {
    background: var(--color-accent-hover);
}

.btn.active {
    background: var(--color-accent-hover);
}

/* Styles communs pour les onglets */
.tabs {
    display: flex;
    gap: 2px;
    background: var(--color-dark-card);
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    width: 100%;
}

.tab {
    flex: 1;
    padding: 12px 24px;
    background: var(--color-dark-card);
    color: var(--color-grey);
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    border-bottom: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab:hover {
    color: var(--color-white);
    background: var(--color-hover);
}

.tab.active {
    color: var(--color-white);
    background: var(--color-dark-bg);
    border-bottom: 2px solid var(--color-accent);
}

/* Style pour le contenu des onglets */
.encheres-section,
.echanges-section {
    background: var(--color-dark-bg);
    padding: 20px;
    border-radius: 0 0 8px 8px;
    display: none;
}

.encheres-section.active,
.echanges-section.active {
    display: block;
}

/* Styles communs pour les listes personnalisées */
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.custom-select .selected-display {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: var(--color-bg-card);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-radius: 4px;
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-select.open .dropdown {
    display: block;
}

.custom-select .dropdown li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-select .dropdown li:hover {
    background: var(--color-hover);
}

.custom-select .dropdown li.selected {
    background: var(--color-accent);
    color: white;
}

.proposition-status {
    padding: 10px;
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: 15px;
}

.status-completed {
    color: #4CAF50;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(76, 175, 80, 0.1);
    display: inline-block;
} 

/* Encadré résumé des raretés pour l'admin */
.rarity-summary {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-secondary);
    color: var(--text-color-primary);
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-speed), color var(--transition-speed);
}

/* Trade buttons in modals */
.trade-buttons {
    display: flex;
    gap: 1em;
    margin-top: 1.5em;
    justify-content: center;
}

.trade-btn {
    padding: 0.8em 1.2em;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.9em;
    min-width: 140px;
    justify-content: center;
}

.trade-btn.purchase-btn {
    background: linear-gradient(135deg, var(--color-gold), #f39c12);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.trade-btn.purchase-btn:hover {
    background: linear-gradient(135deg, #f39c12, var(--color-gold));
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

.trade-btn:nth-child(2) {
    background: linear-gradient(135deg, var(--color-accent), #e74c3c);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.trade-btn:nth-child(2):hover {
    background: linear-gradient(135deg, #e74c3c, var(--color-accent));
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

/* Price validation styles */
.price-error {
    color: #e74c3c;
}

.price-warning {
    color: #f39c12;
}

.price-good {
    color: #2ecc71;
}

.btn.give-btn {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    padding: 0.6em 1.4em;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 1em;
    margin-left: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px var(--color-shadow);
    display: inline-block;
}
.btn.give-btn:hover {
    background: var(--color-gold);
    color: var(--color-accent);
} 