        .hero-calendar {
            background: transparent;
            color: var(--white);
            text-align: center;
            padding: 80px 20px 60px;
            position: relative;
            overflow: hidden;
            border-bottom: 4px solid var(--burnt-orange);
        }

        .hero-calendar h1 {
            font-size: 2.6rem;
            font-weight: 900;
            line-height: 0.95;
            letter-spacing: -2.5px;
            text-transform: uppercase;
            margin-bottom: 20px;
        }

        .hero-calendar h1 span {
            color: var(--burnt-orange);
        }

        .hero-calendar p {
            font-size: 1.15rem;
            font-weight: 500;
            max-width: 700px;
            margin: 0 auto 30px;
            opacity: 0.9;
            line-height: 1.6;
            letter-spacing: -0.5px;
        }

        .filters-container {
            max-width: 1100px;
            margin: -25px auto 40px;
            padding: 15px 20px;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            position: relative;
            z-index: 10;
        }

        .filter-btn {
            padding: 8px 20px;
            border-radius: 20px;
            border: 1.5px solid #cbd5e1;
            background: white;
            color: var(--slate-blue);
            cursor: pointer;
            font-weight: 700;
            font-size: 0.9rem;
            transition: all 0.2s;
            font-family: inherit;
        }

        .filter-btn:hover {
            border-color: var(--slate-blue);
        }

        .filter-btn.active {
            border-color: var(--burnt-orange);
            background: var(--burnt-orange);
            color: white;
        }

        .races-grid {
            max-width: 1100px;
            margin: 0 auto 80px;
            padding: 0 20px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 30px;
        }

        .race-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            border: 1px solid #f0f2f5;
            transition: transform 0.3s, box-shadow 0.3s;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .race-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
        }

        .race-card-img {
            height: 160px;
            background-size: cover;
            background-position: center;
            background-color: var(--sand-beige);
            /* Fallback */
            position: relative;
        }

        .race-tag {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(4px);
            color: var(--slate-blue);
            font-weight: 800;
            font-size: 0.75rem;
            padding: 4px 12px;
            border-radius: 20px;
            text-transform: uppercase;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .race-card-body {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .race-date {
            color: var(--burnt-orange);
            font-weight: 800;
            font-size: 0.85rem;
            margin-bottom: 5px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .race-title {
            color: var(--slate-blue);
            font-size: 1.2rem;
            font-weight: 800;
            margin-bottom: 10px;
            line-height: 1.2;
        }

        .race-location {
            color: #7b809a;
            font-size: 0.85rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .race-distances {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 20px;
        }

        .distance-badge {
            font-size: 0.75rem;
            background: #f1f5f9;
            color: #475569;
            padding: 4px 10px;
            border-radius: 6px;
            font-weight: 600;
        }

        .race-card-footer {
            margin-top: auto;
            padding-top: 15px;
            border-top: 1px solid #f0f2f5;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .meute-count {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--slate-blue);
        }

        .meute-count span {
            color: var(--burnt-orange);
        }

        .btn-participate {
            background: #f8f9fa;
            border: 1px solid #e1e4e8;
            padding: 8px 16px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--slate-blue);
            text-decoration: none;
            transition: all 0.2s;
        }

        .btn-participate:hover {
            background: var(--slate-blue);
            color: white;
            border-color: var(--slate-blue);
        }

        /* BOUTON AJOUTER UNE COURSE UGC */
        .btn-add-race {
            background-color: var(--burnt-orange);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 800;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 10px rgba(211, 84, 0, 0.2);
            height: fit-content;
            align-self: center;
        }

        .btn-add-race:hover {
            background-color: #e65c00;
            transform: translateY(-2px);
        }

        /* --- MOBILE OPTIMIZATIONS --- */
        @media (max-width: 650px) {
            .hero-calendar {
                padding: 40px 15px 40px;
            }

            .hero-calendar h1 {
                font-size: 2rem;
                line-height: 1.1;
                margin-bottom: 15px;
            }

            .hero-calendar p {
                font-size: 0.95rem;
                margin-bottom: 20px;
            }

            .filters-container {
                margin: -20px 15px 30px;
                padding: 15px;
                gap: 10px;
                flex-direction: column;
            }

            .filter-select {
                width: 100%;
                font-size: 0.9rem;
            }

            .races-grid {
                padding: 0 15px;
                gap: 20px;
                margin-bottom: 50px;
            }

            .race-card-img {
                height: 140px;
            }

            .race-card-body {
                padding: 20px;
            }

            .race-title {
                font-size: 1.1rem;
            }

            .btn-participate {
                padding: 6px 12px;
                font-size: 0.8rem;
            }
        }
