:root {
    --bg-dark: #0a0a12;
    --card-bg: #1a1b2e;
    --primary: #ff7e8b;
    --secondary: #74b9ff;
    --accent: #fdcb6e;
    --text-light: #f8f9fa;
    --text-muted: #a0a3bd;
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glow-primary: 0 0 15px rgba(255, 126, 139, 0.2);
    --glow-secondary: 0 0 15px rgba(116, 185, 255, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    background:
        linear-gradient(180deg, rgba(10, 10, 18, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="%231a1b2e" d="M0,0h1000v1000H0V0z"/><path fill="%230a0a12" d="M0,0l100,100l-100,100l100,100l-100,100l100,100L0,600Z" opacity="0.03" transform="rotate(45 500 500) scale(1.41)"/></svg>');
    position: relative;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg-dark);
}

header {
    text-align: center;
    padding: 3rem 0 2rem;
    position: relative;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--glow-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.slogan {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 300;
}

.stats {
    font-size: 1.1rem;
    color: var(--secondary);
    margin: 1.5rem 0 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filters {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    position: relative;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 27, 46, 0.6);
    color: var(--text-light);
    font-size: 1rem;
    appearance: none;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fdcb6e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center, center;
    background-size: 12px, auto;
    box-shadow: var(--shadow-subtle);
}

.filter-group select:focus,
.filter-group select:hover {
    border-color: var(--secondary);
    box-shadow: var(--glow-secondary);
    outline: none;
}

.duck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.duck-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.duck-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.duck-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.duck-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: rgba(26, 27, 46, 0.3);
    padding: 1.5rem;
    transition: transform 0.35s;
}

.duck-card:hover img {
    transform: scale(1.03);
}

.duck-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.duck-info h2 {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.duck-info__details {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.duck-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.duck-info strong {
    color: var(--secondary);
    font-weight: 500;
}

.tags {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tag {
    background: rgba(116, 185, 255, 0.1);
    color: var(--secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(116, 185, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.tag:hover {
    background: rgba(255, 126, 139, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.duck-card:nth-child(1) { animation-delay: 0.1s; }
.duck-card:nth-child(2) { animation-delay: 0.2s; }
.duck-card:nth-child(3) { animation-delay: 0.3s; }
.duck-card:nth-child(4) { animation-delay: 0.4s; }
.duck-card:nth-child(5) { animation-delay: 0.5s; }

/* Responsive */
@media (max-width: 1024px) {
    .duck-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }
    .duck-card img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .duck-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    h1 {
        font-size: 2rem;
    }
    .slogan {
        font-size: 1rem;
    }
    .filters {
        flex-direction: column;
        max-width: 100%;
        padding: 0 1rem;
    }
    .filter-group {
        min-width: 100%;
    }
}

/* Effet de particules subtiles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 126, 139, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(116, 185, 255, 0.05) 0%, transparent 30%);
}
