@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&family=Nunito:wght@400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 75%, #16213e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animation du gradient de fond */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Éléments visuels décoratifs */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(15, 52, 96, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 26, 46, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(22, 33, 62, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Particules flottantes */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; }

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Formes géométriques décoratives */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: rotate 30s infinite linear;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background: #0f3460;
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    top: 20%;
    right: 10%;
    width: 40px;
    height: 40px;
    background: #1a1a2e;
    transform: rotate(45deg);
    animation-delay: 5s;
}

.shape-3 {
    bottom: 20%;
    left: 15%;
    width: 50px;
    height: 50px;
    background: #16213e;
    border-radius: 30%;
    animation-delay: 10s;
}

.shape-4 {
    bottom: 30%;
    right: 20%;
    width: 35px;
    height: 35px;
    background: #0f3460;
    border-radius: 50%;
    animation-delay: 15s;
}

@keyframes rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ===== TOPBAR ERGONOMIQUE AMÉLIORÉE ===== */
.topbar {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
    flex-wrap: nowrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: #00AAA2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.3px;
    text-shadow: 0 0 10px rgba(15, 52, 96, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 5px rgba(15, 52, 96, 0.7));
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
}

.nav-links li {
    display: inline-block;
}

/* NOUVELLE ANIMATION POUR LES LIENS DE NAVIGATION */
.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Effet de bordure qui grandit */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0f3460;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* État hover avec une transition plus douce */
.nav-links a:hover {
    background: rgba(15, 52, 96, 0.3);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(15, 52, 96, 0.5);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Pour les liens actifs, effet plus marqué */
.nav-links a.active {
    background: rgba(15, 52, 96, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(15, 52, 96, 0.6);
}

.nav-links a.active::after {
    width: 90%;
    height: 3px;
}

.user-section {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-shrink: 0;
}

#userGreeting {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.9rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-form {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.login-input {
    padding: 0.4rem 0.8rem;
    border: 2px solid rgba(15, 52, 96, 0.5);
    border-radius: 15px;
    font-size: 0.8rem;
    width: 120px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.login-input:focus {
    outline: none;
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.3);
    background: rgba(255, 255, 255, 0.15);
    width: 140px;
    transform: scale(1.02);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Styles pour le lien modération */
#moderationLink a {
    color: #ff6b6b !important;
    font-weight: bold !important;
}

#moderationLink a:hover {
    background: rgba(255, 107, 107, 0.2) !important;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3) !important;
}

/* Navigation mobile améliorée */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        gap: 1rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 200px;
        text-align: center;
        opacity: 0;
        transform: translateX(-50px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Animation décalée pour chaque lien */
    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.5s; }
    
    .user-section {
        gap: 0.5rem;
    }
    
    .login-input {
        width: 100px;
        font-size: 0.7rem;
    }
    
    #userGreeting {
        font-size: 0.7rem;
        max-width: 80px;
    }
}
/* ===== FIN TOPBAR ERGONOMIQUE AMÉLIORÉE ===== */

/* Boutons améliorés */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Nouvelle animation pour les boutons : effet de scale et glow */
.btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-primary {
    background: #0f3460;
    color: white;
    box-shadow: 0 3px 10px rgba(15, 52, 96, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 5px 15px rgba(15, 52, 96, 0.6);
    background: #0a2748;
}

.btn-outline {
    background: transparent;
    border: 2px solid #0f3460;
    color: #0f3460;
    padding: 0.4rem 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #0f3460;
    color: white;
    box-shadow: 0 3px 10px rgba(15, 52, 96, 0.5);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(26, 26, 46, 0.8) !important;
    color: white !important;
    border: 1px solid rgba(26, 26, 46, 0.5) !important;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(22, 33, 62, 0.9) !important;
    border-color: rgba(15, 52, 96, 0.7) !important;
    transform: scale(1.05) translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

.btn-secondary:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Styles pour les messages */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.message {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.message.success {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    border-left: 4px solid #28a745;
}

.message.error {
    background: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section héro */
.hero {
    text-align: center;
    padding: 4rem 0;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(15, 52, 96, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Sections */
.section-title {
    text-align: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.user-status {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 15px;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Grilles d'activités */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ===== CARTES D'ACTIVITÉS SIMPLIFIÉES ===== */
.activity-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 52, 96, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover::before {
    opacity: 1;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.activity-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.activity-age {
    color: #0f3460;
    font-weight: 500;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.activity-author {
    font-size: 0.9rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    position: relative;
    z-index: 1;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

.meta-tag {
    background: #0f3460;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(15, 52, 96, 0.4);
}

.activity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.favorite-btn.active {
    background: #ff6b6b;
    color: white;
}

.favorite-btn.active:hover {
    background: #ff5252;
}

/* Section statistiques */
.stats-section {
    margin: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 52, 96, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0f3460;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(15, 52, 96, 0.4);
}

.stat-label {
    color: #666;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Section catégories */
.categories-section {
    margin: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 52, 96, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.category-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.category-count {
    color: #0f3460;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Formulaires */
.form-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(15, 52, 96, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.2);
    background: rgba(255, 255, 255, 1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Actions de recherche */
.search-section {
    margin-bottom: 2rem;
}

.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Upload d'images */
.image-upload-container {
    position: relative;
    border: 2px dashed rgba(15, 52, 96, 0.3);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.image-upload-container:hover {
    border-color: #0f3460;
    background: rgba(15, 52, 96, 0.1);
}

.image-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* États visuels pour les résultats */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: white;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: white;
}

.error-state {
    text-align: center;
    padding: 2rem;
    color: white;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 20px;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Styles pour les filtres */
.filters-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.filters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 52, 96, 0.05);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    z-index: 1;
}

.filters-title {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.results-count {
    background: #0f3460;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(15, 52, 96, 0.4);
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-filter-center {
    justify-self: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    padding: 0.5rem 0;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #ddd 0%, #ddd 100%);
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0f3460;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(15, 52, 96, 0.5);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(15, 52, 96, 0.7);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0f3460;
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 10px rgba(15, 52, 96, 0.5);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(15, 52, 96, 0.7);
}

.slider-value {
    text-align: center;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(15, 52, 96, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.slider:focus {
    background: #0f3460;
}

@media (min-width: 768px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .search-input {
        grid-column: 1 / -1;
    }
    
    .category-filter-center {
        grid-column: 1 / -1;
        max-width: 400px;
    }
}

@media (min-width: 1024px) {
    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .search-input {
        grid-column: 1 / -1;
    }
    
    .category-filter-center {
        grid-column: 2 / 3;
    }
}

.filter-label {
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input, .search-input {
    padding: 0.8rem;
    border: 2px solid rgba(15, 52, 96, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-input:focus, .search-input:focus {
    outline: none;
    border-color: #0f3460;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(15, 52, 96, 0.4);
}

.search-input {
    grid-column: 1 / -1;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1rem;
}

.search-input::placeholder {
    color: #666;
    font-style: italic;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.clear-filters {
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    border: 2px solid rgba(15, 52, 96, 0.3);
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.clear-filters:hover {
    background: rgba(15, 52, 96, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(15, 52, 96, 0.4);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .activity-card {
        padding: 1.5rem;
    }
    
    .filters-section {
        padding: 1.5rem;
    }
}