@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');


@font-face {
    font-family: 'MinecraftTitles';
    src: url('MinecraftTen-VGORe.ttf') format('truetype');
}

/* index.css - Styles spécifiques à la page d'accueil */

/* Base et conteneur */
body {
    font-family: 'Press Start 2P', cursive;
    line-height: 1.6;
    color: #333;
    background-image: url('images/BACK.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border: 3px solid #5a3e12;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Navigation */
nav {
    background-color: rgba(0, 128, 0, 0.5);
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-family: 'MinecraftTitles', sans-serif;
   
}

nav a:hover {
    background-color: #34495e;
    color: #fff;
}

.panier-link {
    background-color: #f39c12;
    padding: 0.5rem 1rem;
    margin-left: auto;
    color: white;
    text-decoration: none;
    font-family: 'MinecraftTitles', sans-serif;
   
}

.panier-link:hover {
    background-color: #e67e22;
}

/* Titre principal */
h1 {
    font-family: 'MinecraftTitles', sans-serif;
    color: #000000;
    margin: 2rem 0 1rem;
    font-size: 2.2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
    text-align: center;
    width: 100%;
}

/* Section de filtres */
.filter-section {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin: 1rem 0;
    
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
    font-family: 'Press Start 2P';
    font-size: 0.8rem;
}

.filter-group select, 
.filter-group input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: border 0.3s;
    font-family: 'Press Start 2P';

}

.filter-group select:focus, 
.filter-group input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-inputs span {
    font-family: 'Press Start 2P';
    font-size: 0.8rem;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: green;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'MinecraftTitles', sans-serif;
    font-size: 1rem;
  
}

.btn:hover {
    background-color: #3e5c20;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: blue;
}

.btn-secondary:hover {
    background-color: #1a237e;
}

/* Conteneur des mobs */
.mobs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
    justify-content: flex-start;
}

/* Cartes de mob */
.mob-card {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 1.5rem);
    min-width: 300px;
    flex-grow: 1;
    
}

.mob-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.mob-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.mob-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
    
}

.mob-card:hover .mob-image {
    transform: scale(1.1);
}

.mob-info {
    padding: 1.2rem;
    flex-grow: 1;
}

.mob-info h3 {
    margin: 0 0 0.8rem;
    color: #2c3e50;
    font-size: 1.4rem;
    font-family: 'MinecraftTitles', sans-serif;
}

.mob-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
    font-family: 'Press Start 2P';
}

.mob-power {
    display: inline-block;
    background-color: #e8f4fc;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-family: 'Press Start 2P';
    
}

.mob-price {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: green;
    margin: 0.5rem 1.2rem;
    text-align: right;
    font-family: 'MinecraftTitles', sans-serif;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0 1.2rem 1.2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.page-link {
    padding: 8px 14px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    
    font-family: 'Press Start 2P';
}

.page-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
    border-color: #dee2e6;
}

.page-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 2rem;
    font-family: 'MinecraftTitles';
    color: #555;
    width: 100%;
}

.no-results p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .mob-card {
        width: calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .panier-link {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .mob-card {
        width: 100%;
        min-width: auto;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .container {
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mob-card {
    animation: fadeIn 0.5s ease forwards;
}

.mob-card:nth-child(1) { animation-delay: 0.1s; }
.mob-card:nth-child(2) { animation-delay: 0.2s; }
.mob-card:nth-child(3) { animation-delay: 0.3s; }
.mob-card:nth-child(4) { animation-delay: 0.4s; }
.mob-card:nth-child(5) { animation-delay: 0.5s; }
.mob-card:nth-child(6) { animation-delay: 0.6s; }