/* =========================================================
   La Fresn' N Run - Feuille de style principale
   Organisation :
   01. Variables, typographies et base
   02. Navigation, footer et composants communs
   03. Page accueil
   04. Page parcours
   05. Page inscriptions
   06. Page guide pratique
   07. Page mentions légales
   08. Modales, cartes et responsive
   ========================================================= */

@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;
}

.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;
}

/* 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;
    }

    .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;
}

/* =========================================================
   Page inscriptions
   ========================================================= */

.inscriptions-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('../images/inscriptions.jpg') center 38% / cover no-repeat;
    color: #ffffff;
}

.inscriptions-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 61, 155, 0.82) 0%, rgba(0, 61, 155, 0.55) 45%, rgba(0, 0, 0, 0.28) 100%);
}

.inscriptions-hero .velocity-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    mix-blend-mode: soft-light;
}

.inscriptions-hero-content {
    max-width: 760px;
}

.inscriptions-badge {
    background: #316b00;
    color: #ffffff;
}

.inscriptions-title {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.inscriptions-title span {
    color: #ffffff;
    text-decoration-color: #a6f470;
}

.inscriptions-lead {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.25rem;
    line-height: 1.6;
}

.registration-pricing-section {
    background: #f7f9fb;
}

.registration-card,
.registration-info-card,
.registration-main-card,
.registration-village-box {
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 8px 8px 0 rgba(0, 82, 204, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.registration-card:hover,
.registration-info-card:hover,
.registration-main-card:hover {
    transform: translateY(-8px);
    box-shadow: 10px 12px 0 rgba(0, 82, 204, 0.12);
}

.registration-card {
    position: relative;
    height: 100%;
    padding: 2rem;
    overflow: hidden;
}

.registration-card--blue {
    --registration-color: #004aad;
}

.registration-card--green {
    --registration-color: #316b00;
}

.registration-card--dark {
    --registration-color: #1a1c1e;
}

.registration-card:hover {
    border-color: var(--registration-color);
}

.registration-card-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--registration-color);
    color: #ffffff;
    padding: 0.55rem 1.5rem;
    border-radius: 0 12px 0 12px;
    font-size: 0.8rem;
    font-weight: 800;
}

.registration-card-icon {
    color: var(--registration-color);
    font-size: 2.7rem;
    margin-bottom: 1.4rem;
}

.registration-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.registration-price {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--registration-color);
}

.registration-price span {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.registration-price small {
    margin-bottom: 0.35rem;
    color: #737685;
    font-weight: 800;
    text-transform: uppercase;
}

.registration-card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #e1e3e5;
    padding-top: 1.25rem;
}

.registration-steps-section {
    background: #ffffff;
}

.registration-main-card {
    height: 100%;
    padding: 2.5rem;
    background: #1a1c1e;
    color: #ffffff;
    overflow: hidden;
}

.registration-main-card h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.05;
    margin: 1rem 0;
}

.registration-main-card p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.6;
}

.registration-info-card {
    height: 100%;
    padding: 1.75rem;
}

.registration-info-card i {
    color: #004aad;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.registration-info-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.registration-info-card p {
    margin: 0;
    color: #434654;
}

.registration-village-section {
    background: #f7f9fb;
}

.registration-village-box {
    padding: 3rem;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(166, 244, 112, 0.22), transparent 32%), #ffffff;
}

.village-mini-card {
    height: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    background: #f2f4f6;
    border-left: 4px solid #316b00;
}

.village-mini-card i {
    display: block;
    color: #316b00;
    font-size: 1.8rem;
    margin-bottom: 0.7rem;
}

.village-mini-card strong {
    font-weight: 800;
}

.registration-reminder {
    padding: 2rem;
    border-radius: 12px;
    background: #004aad;
    color: #ffffff;
}

.registration-reminder h3 {
    font-weight: 800;
    margin-bottom: 1rem;
}

.registration-reminder ul {
    margin: 0;
    padding-left: 1.2rem;
}

.registration-reminder li {
    margin-bottom: 0.55rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .inscriptions-hero {
        min-height: 460px;
    }

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

    .inscriptions-lead {
        font-size: 1.05rem;
    }

    .registration-card-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .registration-card-details .btn {
        width: 100%;
    }

    .registration-village-box,
    .registration-main-card {
        padding: 1.5rem;
    }
}


/* =========================================================
   Page Guide pratique / Infos
   ========================================================= */

.guide-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('../images/parcours-hero.jpg') center center / cover no-repeat;
    color: #ffffff;
}

.guide-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 61, 155, 0.82) 0%, rgba(0, 61, 155, 0.55) 45%, rgba(0, 0, 0, 0.26) 100%);
}

.guide-hero .velocity-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    mix-blend-mode: soft-light;
}

.guide-hero-content {
    max-width: 780px;
}

.guide-badge {
    background: #316b00;
    color: #ffffff;
}

.guide-title {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.guide-title span {
    color: #ffffff;
    text-decoration-color: #a6f470;
}

.guide-lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.25rem;
    line-height: 1.6;
}

.guide-program-section,
.guide-links-section {
    background: #f7f9fb;
}

.guide-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.timeline-card,
.guide-info-card,
.guide-main-card,
.useful-link-card,
.guide-accordion .accordion-item {
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 8px 8px 0 rgba(0, 82, 204, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover,
.guide-info-card:hover,
.guide-main-card:hover,
.useful-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 10px 12px 0 rgba(0, 82, 204, 0.12);
}

.timeline-card {
    padding: 1.4rem;
}

.timeline-card strong {
    display: block;
    color: #004aad;
    font-weight: 800;
}

.timeline-card span {
    display: inline-block;
    margin: 0.6rem 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #004aad;
    color: #ffffff;
    font-weight: 800;
}

.timeline-card p {
    margin: 0;
    color: #434654;
    font-size: 0.95rem;
}

.guide-access-section {
    background: #ffffff;
}

.guide-main-card {
    height: 100%;
    padding: 2.5rem;
    background: #1a1c1e;
    color: #ffffff;
    overflow: hidden;
}

.guide-main-card h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.05;
    margin: 1rem 0;
}

.guide-main-card p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.6;
}

.guide-info-card {
    height: 100%;
    padding: 1.75rem;
}

.guide-info-card i {
    color: #004aad;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.guide-info-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.guide-info-card p {
    margin: 0;
    color: #434654;
}

.guide-info-card a {
    display: inline-block;
    margin-top: 0.8rem;
    color: #004aad;
    font-weight: 800;
    text-decoration: none;
}

.useful-link-card {
    --useful-color: #004aad;
    display: block;
    height: 100%;
    padding: 2rem;
    color: #191c1e;
    text-decoration: none;
    border-left: 5px solid var(--useful-color);
}

.useful-link-card--blue {
    --useful-color: #004aad;
}

.useful-link-card--green {
    --useful-color: #316b00;
}

.useful-link-card--dark {
    --useful-color: #1a1c1e;
}

.useful-link-card--teal {
    --useful-color: #046380;
}

.useful-link-card i {
    color: var(--useful-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.useful-link-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.useful-link-card p {
    color: #434654;
}

.useful-link-card span {
    color: var(--useful-color);
    font-weight: 800;
}

.guide-faq-section {
    background: #ffffff;
}

.guide-accordion .accordion-item {
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: none;
}

.guide-accordion .accordion-button {
    font-weight: 800;
    font-size: 1.05rem;
}

.guide-accordion .accordion-button:not(.collapsed) {
    color: #004aad;
    background: #dae2ff;
}

@media (max-width: 991.98px) {
    .guide-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .guide-hero {
        min-height: 440px;
    }

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

    .guide-lead {
        font-size: 1.05rem;
    }

    .guide-timeline {
        grid-template-columns: 1fr;
    }

    .guide-main-card {
        padding: 1.5rem;
    }

    .site-footer .text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}


/* =========================================================
   Page Inscriptions - version visuelle
   ========================================================= */

.registration-visual-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('../images/inscriptions-hero.jpg') center center / cover no-repeat;
    color: #ffffff;
}

.registration-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 74, 173, 0.92) 0%,
        rgba(0, 74, 173, 0.70) 38%,
        rgba(0, 0, 0, 0.08) 100%
    );
}

.registration-visual-content {
    max-width: 900px;
    margin: 0 auto;
}

.registration-visual-badge {
    background: #004AAD;
    color: #FFFFFF;
}

.registration-visual-content h1 {
    max-width: 700px;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 1.5rem 0 1rem;
}

.registration-visual-content p {
    font-size: 1.25rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.94);
    margin-bottom: 1.75rem;
    margin-left: auto;
    margin-right: auto;
}

.registration-overview-section {
    background:
        radial-gradient(circle at top left, rgba(0, 74, 173, 0.08), transparent 26%),
        #ffffff;
}

.registration-race-card,
.registration-village-card,
.registration-cta-card,
.registration-info-card,
.registration-main-card {
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 8px 8px 0 rgba(0, 82, 204, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.registration-race-card:hover,
.registration-village-card:hover,
.registration-info-card:hover,
.registration-main-card:hover {
    transform: translateY(-8px);
    box-shadow: 10px 12px 0 rgba(0, 82, 204, 0.12);
}

.registration-race-card {
    --race-color: #004aad;
    position: relative;
    height: 100%;
    min-height: 345px;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.registration-race-card--blue { --race-color: #004aad; }
.registration-race-card--green { --race-color: #316b00; }
.registration-race-card--dark { --race-color: #1a1c1e; }

.registration-race-card:hover {
    border-color: var(--race-color);
}

.race-hour {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 78px;
    padding: 0.55rem 1rem;
    border-radius: 0 12px 0 12px;
    background: var(--race-color);
    color: #ffffff;
    font-weight: 800;
    text-align: center;
}

.race-icon {
    display: block;
    color: var(--race-color);
    font-size: 2.7rem;
    margin: 0.4rem 0 1.4rem;
}

.registration-race-card h3 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.registration-race-card p {
    color: #434654;
    line-height: 1.55;
}

.race-meta {
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid #e1e3e5;
}

.race-meta small {
    display: block;
    color: #737685;
    text-transform: uppercase;
    font-weight: 700;
}

.race-meta strong {
    display: block;
    margin-bottom: 1rem;
}

.race-meta a {
    color: var(--race-color);
    font-weight: 800;
    text-decoration: none;
}

.race-price {
    margin: 1.25rem -2rem -2rem;
    padding: 0.75rem 1rem;
    background: var(--race-color);
    color: #ffffff;
    text-align: center;
    font-weight: 800;
}

.registration-village-card {
    height: 100%;
    overflow: hidden;
}

.registration-village-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.registration-village-content {
    padding: 1.75rem;
}

.registration-village-content i {
    color: #316b00;
    font-size: 2rem;
}

.registration-village-content h3 {
    display: inline-block;
    margin-left: 0.6rem;
    font-size: 1.55rem;
    font-weight: 800;
}

.registration-village-content p {
    color: #434654;
    margin: 0.75rem 0 0;
}

.registration-cta-card {
    max-width: 1000px;
    margin: 5rem auto 5.5rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #f2f4f6;
}

.registration-cta-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #004aad;
    background: #dae2ff;
    font-size: 1.8rem;
}

.registration-cta-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
}

.registration-cta-card p {
    margin: 0;
    color: #434654;
}

.registration-cta-actions {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}

.registration-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1020px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.benefit-item i {
    color: #004aad;
    font-size: 1.65rem;
}

.benefit-item strong,
.benefit-item span {
    display: block;
}

.benefit-item strong {
    font-weight: 800;
}

.benefit-item span {
    color: #737685;
    font-size: 0.9rem;
}

.registration-steps-section {
    background: #f7f9fb;
}

.registration-main-card p {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .registration-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .registration-cta-actions {
        width: 100%;
        margin-left: 0;
    }

    .registration-cta-actions .btn {
        flex: 1;
    }

    .registration-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .registration-visual-hero {
        min-height: 500px;
    }

    .registration-visual-content h1 {
        font-size: 2.5rem;
    }

    .registration-visual-content p {
        font-size: 1.05rem;
    }

    .registration-cta-actions {
        flex-direction: column;
    }

    .registration-benefits {
        grid-template-columns: 1fr;
    }

    .registration-main-card {
        padding: 1.5rem;
    }
}

.guide-location-image {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.guide-location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tourism-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    transition:.3s;
    height:100%;
}

.tourism-card:hover{
    transform:translateY(-8px);
}

.tourism-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.tourism-content{
    padding:24px;
}

.tourism-content h3{
    font-weight:700;
    margin-bottom:10px;
}

.guide-hero {
    background-image:
        linear-gradient(
            90deg,
            rgba(0,74,173,.90),
            rgba(0,74,173,.55)
        ),
        url('../images/guide-hero.jpg');
}

.guide-main-card-image{
    position:relative;
    overflow:hidden;
    min-height:420px;
    background:
        linear-gradient(
            rgba(10,15,25,.75),
            rgba(10,15,25,.2)
        ),
        url('../images/la-fresnais-village.jpg');
    background-size:cover;
    background-position:center;
    color:#fff;
}

.guide-main-card-image h2,
.guide-main-card-image p{
    color:#fff;
}

.guide-main-card-image .hero-badge{
    background:#004AAD;
    color:#fff;
}

@media (max-width: 991.98px) {

    .navbar .nav-link.active {
        color: #004AAD !important;
        font-weight: 700;
        background: rgba(0,74,173,.08);
        border-radius: 8px;
        padding-left: 12px;
    }

}

.contact-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.contact-modal .modal-header {
    border-bottom: 0;
    padding: 1.75rem 1.75rem 0;
}

.contact-modal .modal-body {
    padding: 1.25rem 1.75rem 1.75rem;
}

.contact-modal-badge {
    display: inline-block;
    background: #004AAD;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: .4rem .75rem;
    border-radius: 999px;
    margin-bottom: .75rem;
}

.contact-modal .modal-title {
    font-size: 2rem;
    font-weight: 800;
}

.contact-modal-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f2f4f6;
    border-radius: 12px;
    padding: 1rem;
    margin: 1.25rem 0;
}

.contact-modal-card i {
    color: #004AAD;
    font-size: 2rem;
}

.contact-modal-card strong,
.contact-modal-card span {
    display: block;
}

.contact-modal-card strong {
    font-weight: 800;
}

.contact-modal-card span {
    color: #737685;
    font-size: .9rem;
}

.contact-modal-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    color: #1a1c1e;
    font-weight: 800;
    text-decoration: none;
    margin-top: .75rem;
}

.contact-modal-link:hover {
    border-color: #004AAD;
    color: #004AAD;
}

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


@media (max-width: 991.98px) {

    .navbar .btn-register {
        display: inline-flex;
        width: auto;
        padding: 12px 20px;
        font-size: 0.95rem;
        margin-top: 10px;
    }

    .nav-link.active::after {
        content: '';
        left: 0;
        width: 0px;
        height: 0px;
        background: none;
    }

}

/* =========================================================
   Carte interactive parcours GPX
   ========================================================= */

.parcours-interactive-section {
    background: #f7f9fb;
}

.parcours-map-card {
    overflow: hidden;
    border: 1px solid #e1e3e5;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 8px 8px 0 rgba(0, 82, 204, 0.08);
}

.parcours-map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e1e3e5;
    background: #ffffff;
}

.parcours-map-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.parcours-map-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border: 1px solid #c3c6d6;
    border-radius: 999px;
    background: #ffffff;
    color: #1a1c1e;
    font-weight: 800;
    transition: 0.2s ease;
}

.parcours-map-tab:hover,
.parcours-map-tab.active {
    border-color: #004AAD;
    background: #004AAD;
    color: #ffffff;
}

.route-dot {
    width: 11px;
    height: 11px;
    display: inline-block;
    border-radius: 999px;
    background: #004AAD;
}

.route-dot--green {
    background: #316B00;
}

.route-dot--mixed {
    background: linear-gradient(90deg, #004AAD 0 50%, #316B00 50% 100%);
}

.parcours-map-tab.active .route-dot {
    outline: 2px solid rgba(255,255,255,0.65);
}

.parcours-map-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.parcours-interactive-map {
    width: 100%;
    height: 560px;
    background: #e7eef2;
    z-index: 1;
}

.parcours-map-legend {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid #e1e3e5;
    color: #434654;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-weight: 800;
}

.legend-line {
    width: 32px;
    height: 5px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: #004AAD;
}

.legend-line--green {
    background: #316B00;
}

.map-start-marker {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: #004AAD;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    font-size: 1rem;
}

.leaflet-container {
    font-family: "Plus Jakarta Sans", sans-serif;
}

@media (max-width: 767.98px) {
    .parcours-map-toolbar,
    .parcours-map-legend {
        flex-direction: column;
        align-items: stretch;
    }

    .parcours-map-actions {
        justify-content: stretch;
    }

    .parcours-map-actions .btn {
        flex: 1;
    }

    .parcours-interactive-map {
        height: 420px;
    }
}
/* =========================================================
   Cartes parcours avec GPX, km et sens de course
   ========================================================= */

.course-map-card .course-card-header {
    min-height: 132px;
}

.course-map-leaflet,
.course-kids-visual {
    position: relative;
    height: 310px;
    margin: 1.5rem 1.5rem 0;
    overflow: hidden;
    border-radius: 0.65rem;
    background: #eef2f4;
    z-index: 1;
}

.course-kids-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-map-leaflet .leaflet-tile {
    filter: saturate(0.92) contrast(0.98);
}

.km-marker span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.start-finish-marker span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 3px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.direction-marker span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.course-map-leaflet .leaflet-control-container {
    display: none;
}

@media (max-width: 767.98px) {
    .course-map-leaflet,
    .course-kids-visual {
        height: 280px;
        margin: 1rem 1rem 0;
    }
}

/* =========================================================
   Modal carte parcours + cartes cliquables
   ========================================================= */

.course-map-open {
    display: block;
    width: calc(100% - 3rem);
    margin: 1.5rem 1.5rem 0;
    padding: 0;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.course-map-open .course-map-leaflet {
    width: 100%;
    margin: 0;
}

.course-map-open:hover .course-map-leaflet {
    box-shadow: inset 0 0 0 4px rgba(0, 74, 173, 0.35);
}

.direction-marker {
    display: none;
}

.route-map-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.route-map-modal .modal-header {
    border-bottom: 0;
    padding: 1.5rem 1.5rem 0;
}

.route-map-modal .modal-body {
    padding: 1.5rem;
}

.route-map-modal-map {
    width: 100%;
    height: 640px;
    border-radius: 14px;
    overflow: hidden;
    background: #e7eef2;
}

.route-map-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f2f4f6;
}

@media (max-width: 767.98px) {
    .course-map-open {
        width: calc(100% - 2rem);
        margin: 1rem 1rem 0;
    }

    .route-map-modal-map {
        height: 460px;
    }

    .route-map-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   Modal parcours - infos type OpenRunner
   ========================================================= */

.route-map-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin-top: 1rem;
}

.route-stat-card {
    padding: 1rem;
    border-radius: 12px;
    background: #f2f4f6;
    border-left: 4px solid #004AAD;
}

.route-stat-card span {
    display: block;
    margin-bottom: .25rem;
    color: #737685;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.route-stat-card strong {
    display: block;
    color: #191c1e;
    font-size: 1rem;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .route-map-modal-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   Page mentions légales
   ========================================================= */

.legal-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('../images/parcours-hero.jpg') center center / cover no-repeat;
    color: #ffffff;
}

.legal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,61,155,.86) 0%, rgba(0,61,155,.62) 45%, rgba(0,0,0,.30) 100%);
}

.legal-hero .velocity-pattern {
    position: absolute;
    inset: 0;
    opacity: .15;
    mix-blend-mode: soft-light;
}

.legal-hero-content {
    max-width: 780px;
}

.legal-badge {
    background: #004AAD;
    color: #ffffff;
}

.legal-title {
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.legal-title span {
    color: #ffffff;
    text-decoration-color: #a6f470;
}

.legal-lead {
    max-width: 720px;
    color: rgba(255,255,255,.94);
    font-size: 1.15rem;
    line-height: 1.6;
}

.legal-section {
    background: #f7f9fb;
}

.legal-summary-card,
.legal-content-card {
    border: 1px solid #e1e3e5;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 8px 8px 0 rgba(0,82,204,.08);
}

.legal-summary-card {
    position: sticky;
    top: 120px;
    padding: 2rem;
}

.legal-summary-card img {
    width: 90px;
    height: auto;
    margin-bottom: 1.25rem;
}

.legal-summary-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #004AAD;
}

.legal-summary-card p {
    color: #434654;
}

.legal-content-card {
    padding: 2.25rem;
}

.legal-block {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #e1e3e5;
}

.legal-block:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
}

.legal-block h2 {
    margin-bottom: 1rem;
    color: #004AAD;
    font-size: 1.35rem;
    font-weight: 800;
}

.legal-block p {
    color: #434654;
    line-height: 1.7;
}

.legal-update {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f2f4f6;
    color: #737685;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .legal-summary-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .legal-hero {
        min-height: 320px;
    }

    .legal-title {
        font-size: 2.5rem;
    }

    .legal-content-card,
    .legal-summary-card {
        padding: 1.5rem;
    }
}
