body {
    margin: 0;
    padding: 1rem;
    background: radial-gradient(circle at center, #1a1a1e 0%, #0a0a0c 100%);
    font-family: 'Beaufort for LoL', serif;
    color: #f0e6d2;
    min-height: 100vh;
}

.header-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.header-section h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #f0e6d2;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.header-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, #c8aa6e, transparent);
}

.header-section p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #d4cfa4;
    max-width: min(700px, 90%);
    margin: 1rem auto 0;
    line-height: 1.6;
}

.grille-champions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 1.5rem;
    justify-items: center;
    padding: 0 1rem;
}

.carte {
    width: 100%;
    max-width: 200px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #1e2328 0%, #463714 100%);
    border: 3px solid transparent;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.carte::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    z-index: -1;
    background: linear-gradient(135deg, #c8aa6e 0%, #785a28 50%, #c8aa6e 100%);
    border-radius: inherit;
    opacity: 0.8;
}

.image-champion-conteneur {
    width: 100%;
    height: 70%;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.image-champion {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(1.05) contrast(1.05);
    transition: transform 0.3s ease;
}

.carte:hover .image-champion {
    transform: scale(1.1);
}

.info-champion {
    padding: 10px;
    text-align: center;
}

.nom-champion {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #c8aa6e, #f0e6d2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.titre-champion {
    font-size: 0.85rem;
    font-style: italic;
    color: #f0e6d2;
    margin-top: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.filtres-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filtre-groupe {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #c8aa6e;
    font-size: 0.9rem;
    min-width: 150px;
}

.filtre-groupe label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.filtre-groupe select {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    background-color: #2c2c2c;
    color: #f0e6d2;
    font-family: 'Beaufort for LoL', serif;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

.filtre-groupe select:focus {
    box-shadow: 0 0 5px #c8aa6e;
}

.no-results {
    display: none;
    text-align: center;
    color: #c8aa6e;
    font-size: 1.2rem;
    margin-top: 2rem;
    grid-column: 1 / -1;
}

.barre-recherche {
    display: block;
    margin: 2rem auto;
    padding: 0.75rem 1.2rem;
    width: min(300px, 90%);
    border: none;
    border-radius: 8px;
    background: #2c2c2c;
    color: #f0e6d2;
    font-size: 1rem;
    font-family: 'Beaufort for LoL', serif;
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.2);
}

.barre-recherche::placeholder {
    color: #a89c79;
    font-style: italic;
}

.barre-recherche:focus {
    outline: none;
    background: #3a3a3a;
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.6);
}

/* Media Queries pour les écrans plus petits */
@media (max-width: 768px) {
    .grille-champions {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .carte {
        height: 250px;
    }
    
    .filtres-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .filtre-groupe {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .grille-champions {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .carte {
        height: 220px;
    }
    
    .nom-champion {
        font-size: 0.85rem;
    }
    
    .titre-champion {
        font-size: 0.75rem;
    }
}
