/* Bestiaire container - fond sombre comme l'image */
.bestiaire-container {
    padding: 100px 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, 
        rgba(4, 8, 20, 0.98) 0%, 
        rgba(8, 12, 30, 0.95) 50%, 
        rgba(4, 8, 20, 0.98) 100%);
    min-height: 100vh;
}

/* Titre principal */
.bestiaire-container h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Filtres - design épuré comme l'image */
.filters {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

#search {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(0, 168, 255, 0.6);
    background: rgba(0, 0, 0, 0.4);
    color: var(--color-white);
    border-radius: 8px;
    font-family: var(--font-text);
    width: 100%;
    max-width: 450px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#search:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
    background: rgba(0, 0, 0, 0.6);
}

#search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group select {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 168, 255, 0.4);
    color: var(--color-white);
    border-radius: 8px;
    font-family: var(--font-text);
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 140px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group select:hover {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
    background: rgba(0, 168, 255, 0.1);
}

/* Grille de cartes - Version avec images */
.creatures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
    align-items: start;
}

/* Carte de créature - Design avec image */
.creature-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 26, 0.95) 100%);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 168, 255, 0.3);
    backdrop-filter: blur(15px);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Container d'image de créature */
.creature-image-container {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(10, 10, 26, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.creature-image {
    width: 110px;
    height: 110px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

.creature-image.fallback {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

.creature-level-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 152, 0, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Header de carte de créature */
.creature-header {
    padding: 1rem 1rem 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Stats en ligne compacte */
.creature-stats {
    padding: 0.8rem 1rem;
    flex-shrink: 0;
}

.creature-stats .stat-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.creature-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 168, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 168, 255, 0.3);
}

.creature-stats .stat-icon {
    font-size: 1.1rem;
}

.creature-stats .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 600;
}

.creature-stats .stat-value {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1rem;
}

/* Description compacte */
.creature-description {
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0.6rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Footer avec localisation et bouton */
.creature-footer {
    padding: 0.8rem 1rem 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    flex-shrink: 0;
}

.creature-location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Bouton détails similaire aux items */
.view-details-btn {
    background: linear-gradient(135deg, #00a8ff, #0078ff);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #0078ff, #00a8ff);
    transform: translateY(-1px);
}

/* Bordures colorées selon le type comme l'image */
.creature-card.creature {
    border: 2px solid #00a8ff; /* Bleu pour créatures */
}

.creature-card.elite {
    border: 2px solid #ff9500; /* Orange pour élite */
}

.creature-card.boss {
    border: 2px solid #8a2be2; /* Violet pour boss */
}

.creature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.creature-card.creature:hover {
    box-shadow: 0 15px 40px rgba(0, 168, 255, 0.4);
}

.creature-card.elite:hover {
    box-shadow: 0 15px 40px rgba(255, 149, 0, 0.4);
}

.creature-card.boss:hover {
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.4);
}

/* En-tête de la carte - badges comme l'image */
.creature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.creature-name {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.creature-badges {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
}

.floor-badge {
    background: #4a5568;
    color: white;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-title);
    letter-spacing: 0.5px;
}

.type-badge {
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-title);
    letter-spacing: 0.5px;
    color: white;
}

.type-badge.creature {
    background: #4299e1; /* Bleu */
}

.type-badge.elite {
    background: #ed8936; /* Orange */
}

.type-badge.boss {
    background: #9f7aea; /* Violet */
}

/* Stats section - comme l'image */
.creature-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-text);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.stat-value {
    color: #00a8ff;
    font-weight: 600;
    font-size: 1rem;
}

/* Description */
.creature-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-family: var(--font-text);
}

/* Butin section */
.creature-loot {
    margin-top: 1rem;
}

.loot-title {
    color: #00a8ff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
}

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

.loot-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    padding: 2px 0;
    font-family: var(--font-text);
}

.loot-list li:before {
    content: '• ';
    color: #00a8ff;
    margin-right: 0.5rem;
}

/* Titre de créature dans la modal */
.creature-name {
    color: var(--color-accent);
    margin: 0;
    flex: 1;
}
}

.creature-level {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 1rem;
}

/* Catégorie */
.creature-category {
    display: inline-block;
    background: rgba(0, 255, 255, 0.2);
    color: var(--color-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Stats de base */
.creature-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-accent);
    font-family: var(--font-heading);
}

/* Type */
.creature-type {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-top: 1rem;
}

/* Modal pour les détails */
.creature-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, rgba(10, 10, 26, 0.98), rgba(20, 20, 40, 0.95));
    border: 2px solid var(--color-accent);
    border-radius: 15px;
    padding: 2rem;
    max-width: 1000px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
}

/* Scroll personnalisé pour le modal */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-accent), #0066cc);
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00d4ff, var(--color-accent));
}

/* Nouveau layout du modal en 2 colonnes */
.modal-header-section {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 168, 255, 0.2);
}

.modal-left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.creature-modal-image {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15), rgba(10, 10, 40, 0.4));
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid rgba(0, 168, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.2);
}

.creature-modal-image img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 8px 20px rgba(0, 168, 255, 0.4));
    transition: transform 0.3s ease;
}

.creature-modal-image img:hover {
    transform: scale(1.05);
}

.creature-modal-image img.fallback {
    object-fit: cover;
    opacity: 0.7;
}

/* Carte de stats dans le modal */
.stat-card-modal {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15), rgba(0, 100, 200, 0.1));
    border: 2px solid rgba(0, 168, 255, 0.4);
    border-radius: 10px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card-modal .stat-icon {
    font-size: 2.5rem;
}

.stat-card-modal .stat-info {
    flex: 1;
}

.stat-card-modal .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: var(--font-text);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.stat-card-modal .stat-value {
    color: var(--color-accent);
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--font-title);
}

/* Colonne de droite */
.modal-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.creature-modal-info {
    flex-shrink: 0;
}

.creature-name-modal {
    color: var(--color-accent);
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 8px rgba(0, 168, 255, 0.5);
    font-family: var(--font-title);
    line-height: 1.2;
}

.creature-badges-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.creature-badges-modal .badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sections d'informations */
.creature-info-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-block {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(10, 10, 30, 0.3));
    border-left: 4px solid var(--color-accent);
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-title {
    color: var(--color-accent);
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin: 0 0 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-content {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-text);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Section footer avec les drops */
.modal-footer-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(10, 10, 30, 0.25));
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(0, 168, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scroll personnalisé pour la section des butins */
.modal-footer-section::-webkit-scrollbar {
    width: 12px;
}

.modal-footer-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.modal-footer-section::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-accent), #0066cc);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
}

.modal-footer-section::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00d4ff, var(--color-accent));
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.7);
}

.section-title-footer {
    color: var(--color-accent);
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0, 168, 255, 0.5);
}

.drops-grid-modal {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.drop-item-modal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(10, 10, 30, 0.5));
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(0, 168, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.drop-item-modal:hover {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.25), rgba(0, 100, 200, 0.2));
    border-color: rgba(0, 168, 255, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.5);
}

.drop-item-modal .drop-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border: 2px solid rgba(0, 168, 255, 0.5);
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

.drop-item-modal .drop-icon-placeholder {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 2px solid rgba(0, 168, 255, 0.5);
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

.drop-item-modal .drop-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}

.drop-item-modal .drop-name {
    color: rgba(255, 255, 255, 0.98);
    font-family: var(--font-text);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.drop-item-modal .drop-rate {
    color: #00e1ff;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    background: rgba(0, 168, 255, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(0, 168, 255, 0.4);
    text-shadow: 0 0 10px rgba(0, 225, 255, 0.5);
}

.creature-level-overlay {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--color-accent), #0066cc);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.creature-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.creature-name {
    color: var(--color-accent);
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.creature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-common { background: #6c757d; color: white; }
.badge-elite { background: #28a745; color: white; }
.badge-boss { background: #dc3545; color: white; }
.badge-type { background: var(--color-accent); color: white; }
.badge-palier { background: #fd7e14; color: white; }

/* Responsive pour le modal */
@media (max-width: 1024px) {
    .modal-content {
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .modal-header-section {
        grid-template-columns: 260px 1fr;
        gap: 1.5rem;
    }
    
    .creature-modal-image img {
        height: 220px;
    }
    
    .creature-name-modal {
        font-size: 1.9rem;
    }
    
    .drops-grid-modal {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.2rem;
        max-height: 92vh;
    }
    
    .modal-header-section {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .modal-left-column {
        flex-direction: row;
        gap: 1rem;
    }
    
    .creature-modal-image {
        flex: 1;
    }
    
    .creature-modal-image img {
        height: 180px;
    }
    
    .stat-card-modal {
        flex: 1;
    }
    
    .creature-name-modal {
        font-size: 1.6rem;
    }
    
    .drops-grid-modal {
        grid-template-columns: 1fr;
    }
    
    .section-title-footer {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
        width: 96%;
        max-height: 95vh;
    }
    
    .modal-left-column {
        flex-direction: column;
    }
    
    .creature-modal-image img {
        height: 160px;
    }
    
    .creature-name-modal {
        font-size: 1.4rem;
    }
    
    .creature-badges-modal .badge {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .info-block {
        padding: 0.8rem 1rem;
    }
    
    .info-title {
        font-size: 1rem;
    }
    
    .info-content {
        font-size: 0.9rem;
    }
    
    .modal-footer-section {
        padding: 1rem;
    }
    
    .section-title-footer {
        font-size: 1rem;
    }
    
    .stat-card-modal .stat-icon {
        font-size: 2rem;
    }
    
    .stat-card-modal .stat-value {
        font-size: 1.6rem;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #ff6b35;
}

.filter-group select option {
    background: var(--color-bg);
    color: var(--color-white);
    padding: 0.5rem;
    font-family: var(--font-text);
}

.filter-group select option:checked {
    background: var(--color-accent);
    color: white;
}

.creatures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Styles des cartes de créatures */
.creature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.creature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.3);
}

/* Header avec nom et badges */
.creature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.creature-header h3 {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0;
}

.creature-badges {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Badges des paliers */
.palier-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.palier-1 { 
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    color: white;
}
.palier-2 { 
    background: linear-gradient(45deg, #FF9800, #FFB74D);
    color: white;
}
.palier-3 { 
    background: linear-gradient(45deg, #F44336, #EF5350);
    color: white;
}

/* Badges des catégories */
.category-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.category-badge.boss {
    background: linear-gradient(45deg, #8E24AA, #BA68C8);
    color: white;
    box-shadow: 0 0 10px rgba(142, 36, 170, 0.5);
}

.category-badge.elite {
    background: linear-gradient(45deg, #FF6F00, #FFB300);
    color: white;
    box-shadow: 0 0 10px rgba(255, 111, 0, 0.5);
}

.category-badge.creature {
    background: linear-gradient(45deg, #2E7D32, #4CAF50);
    color: white;
}

/* Bordures spéciales pour les catégories */
.category-boss {
    border-color: #8E24AA;
    box-shadow: 0 0 15px rgba(142, 36, 170, 0.3);
}

.category-elite {
    border-color: #FF6F00;
    box-shadow: 0 0 15px rgba(255, 111, 0, 0.3);
}

.category-creature {
    border-color: var(--color-accent);
}

/* Image de la créature */
.creature-image {
    text-align: center;
    margin-bottom: 1rem;
}

.creature-image img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Stats de la créature */
.creature-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

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

.stat-value {
    color: var(--color-accent);
    font-weight: 600;
}

/* Description */
.creature-description {
    margin-bottom: 1rem;
}

.creature-description p {
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Loot */
.creature-loot h4 {
    color: var(--color-accent);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.creature-loot ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.creature-loot li {
    color: var(--color-text);
    font-size: 0.8rem;
    padding: 0.2rem 0;
    border-left: 2px solid var(--color-accent);
    padding-left: 0.5rem;
    margin-bottom: 0.2rem;
}

.monster-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.monster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

.monster-image {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.monster-info {
    padding: 1.5rem;
}

.monster-name {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.monster-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat {
    font-size: 0.9rem;
    color: var(--color-white);
    opacity: 0.8;
}

.monster-location {
    font-size: 0.9rem;
    color: var(--color-cyan);
    margin-bottom: 1rem;
}

.details-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    width: 100%;
    text-align: center;
}

.details-button:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* ===== RESPONSIVE DESIGN - BESTIAIRE ===== */

/* Tablettes et écrans moyens */
@media (max-width: 1024px) {
    .bestiaire-container {
        padding: 90px 1.5rem 1.5rem;
        max-width: 1200px;
    }
    
    .creatures-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablettes en mode portrait */
@media (max-width: 768px) {
    .bestiaire-container {
        padding: 80px 1rem 1rem;
    }
    
    .bestiaire-container h1 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .filter-toggles {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 15px;
    }
    
    #search {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .creatures-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .creature-image-container {
        height: 140px;
    }
    
    .creature-image {
        width: 100px;
        height: 100px;
    }
    
    .creature-header {
        padding: 0.8rem 0.8rem 0.6rem 0.8rem;
    }
    
    .creature-name {
        font-size: 1.1rem;
    }
    
    .creature-description {
        font-size: 0.8rem;
        padding: 0 0.8rem;
    }
    
    .creature-footer {
        padding: 0.6rem 0.8rem 0.8rem 0.8rem;
    }
    
    .modal-content {
        max-width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .bestiaire-container {
        padding: 70px 0.5rem 0.5rem;
    }
    
    .bestiaire-container h1 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .filter-toggles {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    #search {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .creatures-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .creature-card {
        max-width: 100%;
    }
    
    .creature-image-container {
        height: 130px;
    }
    
    .creature-image {
        width: 90px;
        height: 90px;
    }
    
    .creature-name {
        font-size: 1rem;
    }
    
    .creature-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .view-details-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }
    
    .modal-content {
        padding: 1rem;
        max-height: 95vh;
    }
}
        text-align: center;
    }
    
    .monster-location {
        text-align: center;
    }
}

/* Très petits écrans */
@media (max-width: 320px) {
    .bestiaire-container {
        padding: 60px 0.3rem 0.3rem;
    }
    
    .bestiaire-container h1 {
        font-size: 1.5rem !important;
    }
    
    .creature-card {
        padding: 0.8rem;
        max-width: 280px;
    }
    
    .monster-name {
        font-size: 1.1rem;
    }
    
    .monster-image {
        width: 50px;
        height: 50px;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ===========================================
   PAGINATION STYLES
   =========================================== */

.pagination-container {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(10, 20, 40, 0.95) 0%, 
        rgba(15, 25, 45, 0.98) 50%, 
        rgba(10, 20, 40, 0.95) 100%);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pagination-info {
    text-align: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-text);
    font-size: 0.95rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.8) 0%, 
        rgba(0, 150, 255, 0.9) 100%);
    border: 1px solid rgba(0, 168, 255, 0.6);
    border-radius: 8px;
    color: white;
    font-family: var(--font-text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 168, 255, 0.3);
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(0, 188, 255, 0.9) 0%, 
        rgba(0, 170, 255, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.5);
}

.pagination-btn:disabled {
    background: linear-gradient(135deg, 
        rgba(100, 100, 120, 0.3) 0%, 
        rgba(80, 80, 100, 0.4) 100%);
    border-color: rgba(100, 100, 120, 0.4);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

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

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 168, 255, 0.4);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-number:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.6);
    color: white;
    transform: translateY(-1px);
}

.pagination-number.active {
    background: linear-gradient(135deg, 
        rgba(0, 168, 255, 0.8) 0%, 
        rgba(0, 150, 255, 0.9) 100%);
    border-color: rgba(0, 168, 255, 0.8);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 168, 255, 0.4);
}

.pagination-ellipsis {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.5rem;
    font-family: var(--font-text);
}

.pagination-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-text);
    font-size: 0.9rem;
}

.pagination-settings label {
    font-weight: 500;
}

.pagination-settings select {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 168, 255, 0.4);
    border-radius: 6px;
    color: white;
    font-family: var(--font-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-settings select:focus {
    outline: none;
    border-color: rgba(0, 168, 255, 0.8);
    background: rgba(0, 0, 0, 0.6);
}

.pagination-settings select option {
    background: rgba(20, 30, 50, 0.95);
    color: white;
    padding: 0.5rem;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-container {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .pagination-controls {
        gap: 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .pagination-settings {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pagination-numbers {
        gap: 0.25rem;
    }
    
    .pagination-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}