/* =========================================================
   La Fresn' N Run - CSS général
   Structure prête pour migration PHP/Twig :
   - variables globales
   - font-face centralisé
   - styles Stitch extraits des pages
   - corrections responsive communes
   ========================================================= */

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

:root {
    --lfnr-blue: #004aad;
    --lfnr-white: #ffffff;
    --lfnr-green: #316b00;
    --lfnr-bg: #f7f9fb;
    --font-logo: 'Baloo 2', cursive;
    --font-body: 'Quicksand', 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-body);
}

.brand-title,
.footer-logo-text,
.logo-title {
    font-family: 'Baloo 2', cursive !important;
    font-weight: 800 !important;
    color: #004AAD;
}

.navbar .brand-title {
    font-family: 'Baloo 2', cursive !important;
    font-weight: 800 !important;
}

.brand-title,
.footer-logo-text,
.logo-title,
.hero-title {
    font-family: var(--font-logo) !important;
    font-weight: 700 !important;
}


/* ===== Styles extraits de index.html ===== */

        :root {
            --primary-color: #0052cc;
            --surface-bg: #f7f9fb;
            --text-main: #1a1c1e;
            --text-muted: #44474a;
            --accent-green: #7dc045;
            --font-main: 'Plus Jakarta Sans', sans-serif;
        }

        body {
            font-family: var(--font-main);
            color: var(--text-main);
            background-color: var(--surface-bg);
            overflow-x: hidden;
        }

        /* Navbar Customization */
        .navbar {
            padding: 1.25rem 0;
            background: white !important;
            border-bottom: 1px solid #e1e3e5;
        }

        .navbar-brand img {
            height: 100PX;
            margin: -20px;
        }

        .nav-link {
            font-weight: 600;
            color: var(--text-main) !important;
            margin: 0 1rem;
            position: relative;
        }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--primary-color);
        }

        .btn-register {
            background-color: var(--primary-color);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 700;
            transition: all 0.3s ease;
        }

        .btn-register:hover {
            background-color: #0041a3;
            color: white;
            transform: translateY(-2px);
        }

        /* Hero Section */

        .parcours-hero {
            min-height: 430px;
            display: flex;
            align-items: center;
            background:
                url('../images/parcours.jpg')
                center center / cover no-repeat;
        }

        .parcours-hero-overlay {
            background:
                linear-gradient(
                    90deg,
                    rgba(0, 61, 155, 0.78) 0%,
                    rgba(0, 61, 155, 0.52) 45%,
                    rgba(0, 0, 0, 0.25) 100%
                );
        }

        .parcours-hero .velocity-pattern {
            mix-blend-mode: soft-light;
        }

        .parcours-hero .speed-line {
            z-index: 2;
        }

        .hero-actions {
            display: flex;
            align-items: stretch;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .btn-cta-main {
            min-height: 86px;
            padding: 1rem 2.25rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .hero-countdown {
            min-height: 86px;
            display: flex;
            align-items: center;
            gap: 0;
            background: #ffffff;
            color: #004aad;
            border-radius: 10px;
            padding: 0.8rem 1.2rem;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
        }

        .countdown-item {
            min-width: 82px;
            text-align: center;
            padding: 0 1rem;
            border-right: 1px solid rgba(0, 74, 173, 0.25);
        }

        .countdown-item:last-child {
            border-right: 0;
        }

        .countdown-item span {
            display: block;
            font-family: "Baloo 2", cursive;
            font-size: 2.2rem;
            font-weight: 800;
            line-height: 1;
        }

        .countdown-item small {
            display: block;
            margin-top: 0.35rem;
            color: #1a1c1e;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
        }

        @media (max-width: 767.98px) {
            .hero-actions {
                flex-direction: column;
            }

            .btn-cta-main,
            .hero-countdown {
                width: 100%;
            }

            .hero-countdown {
                justify-content: space-between;
                padding: 0.8rem;
            }

            .countdown-item {
                min-width: auto;
                flex: 1;
                padding: 0 0.45rem;
            }

            .countdown-item span {
                font-size: 1.65rem;
            }
        }

        .hero-section {
            position: relative;
            height: 580px;
            background: url('../images/affiche.png') center / cover no-repeat;
            display: flex;
            align-items: center;
            color: white;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4));
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 700px;
        }

        .hero-badge {
            background: #4a5d23; /* Darker green from poster */
            display: inline-block;
            padding: 0.5rem 1rem;
            font-weight: 800;
            font-size: 0.875rem;
            text-transform: uppercase;
            margin-bottom: 1.5rem;
        }

        .hero-title {
            font-size: 5rem;
            font-weight: 900;
            line-height: 0.9;
            text-transform: uppercase;
            font-style: italic;
            margin-bottom: 1.5rem;
            text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
        }

        .hero-description-box {
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(8px);
            padding: 1.5rem;
            border-radius: 8px;
            border-left: 4px solid var(--accent-green);
            margin-bottom: 2rem;
        }

        .btn-cta-main {
            background-color: var(--primary-color);
            color: white;
            font-weight: 800;
            padding: 1rem 2rem;
            border-radius: 8px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
            font-size: 30px;
        }

        .btn-cta-location {
            background: white;
            color: var(--text-main);
            padding: 1rem;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            margin-left: 1rem;
        }

        /* Challenges Section */
        .section-padding {
            padding: 80px 0;
        }

        .section-title {
            font-size: 3rem;
            font-weight: 800;
        }

        .section-title span {
            color: var(--primary-color);
            text-decoration: underline;
        }

        .card-challenge {
            border: 1px solid #e1e3e5;
            border-radius: 12px;
            padding: 2rem;
            height: 100%;
            position: relative;
            background: white;
            transition: transform 0.3s ease;
        }

        .card-challenge:hover {
            transform: translateY(-10px);
        }

        .challenge-badge {
            position: absolute;
            top: 0;
            right: 0;
            background: var(--primary-color);
            color: white;
            padding: 0.5rem 1.5rem;
            border-radius: 0 12px 0 12px;
            font-size: 0.75rem;
            font-weight: 700;
        }

        .challenge-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 1.5rem;
        }

        /* Stats Section */
        .stats-section {
            background: #1a1c1e;
            color: white;
            padding: 60px 0;
        }

        .stat-item {
            text-align: center;
            border-right: 1px solid rgba(255,255,255,0.1);
        }

        .stat-item:last-child {
            border-right: none;
        }

        .stat-value {
            font-size: 3rem;
            font-weight: 800;
            color: #7dc045;
        }

        .stat-label {
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 2px;
            opacity: 0.8;
        }

        /* Footer */
        .site-footer {
            background: #f1f3f5;
            padding: 40px 0;
            border-top: 4px solid var(--accent-green);
        }

        .footer-logo-text {
            font-weight: 800;
            color: var(--primary-color);
            text-transform: uppercase;
        }
    

/* ===== Styles extraits de infos-pratiques.html ===== */

        .velocity-pattern {
            background-image: radial-gradient(#0052cc 0.5px, transparent 0.5px);
            background-size: 16px 16px;
            opacity: 0.1;
        }
        .speed-line {
            height: 2px;
            background: linear-gradient(90deg, #0052cc, transparent);
        }
        .hard-offset-card {
            border: 1px solid #c3c6d6;
            transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .hard-offset-card:hover {
            transform: translate(-4px, -4px);
            box-shadow: 4px 4px 0px #316b00;
        }
    

/* ===== Styles extraits de inscriptions.html ===== */

        .velocity-pattern {
            background-image: radial-gradient(circle at 2px 2px, #0052cc 1px, transparent 0);
            background-size: 24px 24px;
            opacity: 0.05;
        }
        .hard-offset-card {
            border: 1px solid #e0e3e5;
            transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border-radius: 0.75rem;
        }
        .hard-offset-card:hover {
            transform: translate(-4px, -4px);
            box-shadow: 6px 6px 0px 0px #0052cc;
        }
        .pill-button {
            transition: all 0.2s ease-in-out;
            border-radius: 9999px;
        }
        .pill-button:active {
            transform: scale(0.95);
        }
    

/* ===== Styles extraits de parcours.html ===== */

        .velocity-pattern {
            background-image: radial-gradient(circle at 2px 2px, #c3c6d6 1px, transparent 0);
            background-size: 24px 24px;
        }
        .speed-line {
            position: absolute;
            height: 2px;
            background: linear-gradient(90deg, transparent, #003d9b, transparent);
            animation: speed 3s infinite linear;
        }
        @keyframes speed {
            0% { transform: translateX(-100%); opacity: 0; }
            50% { opacity: 0.5; }
            100% { transform: translateX(200%); opacity: 0; }
        }
        .material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        .elevation-offset {
            box-shadow: 8px 8px 0px 0px rgba(0, 82, 204, 0.1);
        }
    

/* Corrections locales sans modifier le design Stitch */
.navbar-brand img { object-fit: contain; }
.hero-section { background-position: center !important; }
@media (max-width: 767.98px) { .hero-title { font-size: 3.2rem !important; } .btn-cta-location { margin-left: 0 !important; margin-top: 1rem; } .hero-content .d-flex { flex-wrap: wrap; } }


/* ===== Corrections communes ===== */
.navbar-brand img,
header img[src*="logo"] {
    object-fit: contain;
}

.hero-section {
    background-position: center !important;
}

/* Menu mobile commun pour les pages Stitch/Tailwind */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid #c3c6d6;
    background: #ffffff;
    color: #004aad;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    font-weight: 800;
}

.mobile-nav-panel {
    display: none;
    border-top: 1px solid #c3c6d6;
    background: #ffffff;
    padding: 16px;
}

.mobile-nav-panel.is-open {
    display: block;
}

.mobile-nav-panel a {
    display: block;
    padding: 12px 8px;
    color: #191c1e;
    font-weight: 700;
    text-decoration: none;
}

.mobile-nav-panel a.active,
.mobile-nav-panel a:hover {
    color: #004aad;
}

@media (max-width: 767.98px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .mobile-hide-cta {
        display: none !important;
    }

    .hero-title {
        font-size: 3.2rem !important;
    }

    .btn-cta-location {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .hero-content .d-flex {
        flex-wrap: wrap;
    }

    .px-margin-desktop {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* Cartes parcours HTML + visuels de parcours uniquement */
.course-card {
    --course-color: #004aad;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #c3c6d6;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 8px 8px 0 rgba(0, 82, 204, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: var(--course-color);
    box-shadow: 10px 12px 0 rgba(0, 82, 204, 0.14);
}

.course-card--blue { --course-color: #004aad; }
.course-card--green { --course-color: #316b00; }
.course-card--teal { --course-color: #046380; }

.course-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--course-color);
    color: #ffffff;
}

.course-card-header h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    font-style: italic;
}

.course-card-header p {
    margin-top: 0.55rem;
    font-size: 0.92rem;
    font-weight: 700;
    opacity: 0.95;
}

.course-card-header > .material-symbols-outlined {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    font-size: 1.7rem;
}

.course-map {
    position: relative;
    margin: 1.5rem 1.5rem 0;
    height: 320px;
    overflow: hidden;
    border-radius: 0.65rem;
    background: #eef2f4;
}

.course-map img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.course-card:hover .course-map img {
    transform: scale(1.04);
}

.course-map-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.4rem 0.7rem;
    border-radius: 0.35rem;
    background: rgba(25, 28, 30, 0.92);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.course-info-list {
    display: grid;
    gap: 0.75rem;
    padding: 1.5rem;
}

.course-info-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem;
    border-left: 4px solid var(--course-color);
    border-radius: 0 0.55rem 0.55rem 0;
    background: #f2f4f6;
}

.course-info-item > .material-symbols-outlined {
    color: var(--course-color);
    font-size: 1.65rem;
}

.course-info-item small {
    display: block;
    margin-bottom: 0.15rem;
    color: #737685;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.course-info-item strong {
    display: block;
    color: #191c1e;
    font-size: 1rem;
    font-weight: 800;
}

.course-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: auto 1.5rem 1.5rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--course-color);
    border-radius: 0.55rem;
    color: var(--course-color);
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.course-button:hover {
    background: var(--course-color);
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 767.98px) {
    .course-card-header h2 { font-size: 1.35rem; }
    .course-map { margin: 1rem 1rem 0; }
    .course-info-list { padding: 1rem; }
    .course-button { margin: auto 1rem 1rem; }
}

.parcours-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    color: #fff;
}

.parcours-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 61, 155, 0.82) 0%,
        rgba(0, 61, 155, 0.58) 45%,
        rgba(0, 0, 0, 0.22) 100%
    );
    z-index: 1;
}

.parcours-hero .container {
    position: relative;
    z-index: 2;
}

.parcours-hero-content {
    max-width: 760px;
    margin-left: 22%;
}

.parcours-badge {
    background: #0052cc;
    color: #fff;
}

.parcours-title {
    color: #fff !important;
    font-size: 3.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.parcours-lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.35rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .parcours-hero-content {
        margin-left: 0;
    }

    .parcours-title {
        font-size: 2.6rem;
    }

    .parcours-lead {
        font-size: 1.1rem;
    }
}

.route-key-section {
    background: #f7f9fb;
}

.route-key-section .card-challenge {
    min-height: 310px;
}