:root {
            --primary-orange: #ff7b00;
            --dark-grey: #2d2d2d;
            --black-bg: #121212;
            --text-light: #f4f4f4;
            --orange-glow: rgba(255, 123, 0, 0.3);
        }

        body {
            background-color: var(--black-bg);
            color: var(--text-light);
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            overflow-x: hidden;
        }
		
		.font-alter-1, h1, h2, .navbar-brand {
    font-family: 'Black Ops One', cursive !important;
    letter-spacing: 2px;
			font-size: 30px;
}

        /* --- Alert Piste --- */
        .alert-piste {
			z-index: 1050 !important; /* On le met au-dessus du menu membre (1200) */
            background: var(--primary-orange);
            color: black;
            font-weight: 800;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 1px;
        }


        /* --- Navbar --- */
        .navbar {
            background: rgba(18, 18, 18, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #333;
        }
        .nav-link { font-weight: 600; text-transform: uppercase; font-size: 0.8rem; }
        .nav-link:hover { color: var(--primary-orange) !important; }

        /* --- Hero Section --- */
        .hero {
    min-height: 100vh; /* Prend 100% de la hauteur de l'écran */
    display: flex;
    align-items: center; /* Centre le contenu verticalement */
    padding-top: 80px; /* Évite que le contenu soit caché sous la navbar si elle est fixe */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/bg_intro.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optionnel : effet parallaxe sympa */
}

/* Correction pour les mobiles (évite les bugs de barre d'adresse) */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 56px); 
    }
}
        .hero h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 900; line-height: 0.9; margin-bottom: 20px; }

        /* --- Boutons --- */
        .btn-racing {
            background-color: var(--primary-orange);
            color: black;
            border-radius: 4px;
            font-weight: 800;
            padding: 12px 30px;
            border: none;
            transition: 0.3s;
            text-decoration: none;
            display: inline-block;
        }
        .btn-racing:hover { background-color: white; transform: scale(1.05); color: black; }

        /* --- Manifestations (Affiches) --- */
        .poster-card {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #444;
            aspect-ratio: 2/3;
            box-shadow: 0 10px 20px rgba(0,0,0,0.5);
            transition: 0.3s;
            height: 100%;
        }
        .poster-card img { width: 100%; height: 100%; object-fit: cover; }
        .poster-content {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            padding: 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
        }
        .poster-card:hover { border-color: var(--primary-orange); transform: translateY(-5px); }

        .badge-racing {
            font-size: 0.7rem; padding: 5px 10px; font-weight: 800;
            text-transform: uppercase; border-radius: 4px; margin-bottom: 8px; display: inline-block;
        }

        /* --- Sections Icons --- */
        .section-box {
            background: #1e1e1e; border: 2px solid transparent; padding: 40px 20px;
            text-align: center; transition: 0.3s;
        }
        .section-box:hover { border-color: var(--primary-orange); background: #252525; }

        /* --- Comité --- */
        .member-img {
            width: 140px; height: 140px; border-radius: 50%;
            object-fit: cover; border: 3px solid var(--primary-orange);
            padding: 5px; filter: grayscale(1); transition: 0.5s;
        }
        .member-card:hover .member-img { filter: grayscale(0); }
        .carousel-control-prev-icon, .carousel-control-next-icon {
            filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(1deg) brightness(118%) contrast(119%);
        }
        
        .text-orange { color: var(--primary-orange); }
		
		.section-box {
        position: relative;
        height: 250px;
        border-radius: 15px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.4s ease;
        border: 1px solid #333;
        background-color: #1a1a1a;
    }

    /* Images de fond pour chaque section (Remplace par tes vraies photos) */
    .bg-buggy { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/section-buggy.jpg') center/cover; }
    .bg-miniz { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/section/miniz.jpg') center/cover; }
    .bg-crawler { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/section-crawler.jpg') center/cover; }
    .bg-touring { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/section-touring.jpg') center/cover; }

    .section-box h5 {
        color: white;
        font-weight: 900;
        z-index: 2;
        letter-spacing: 2px;
        margin-top: 10px;
        transition: 0.3s;
    }

    .section-box i {
        display: block;
        font-size: 2.5rem;
        color: #ff7b00;
        margin-bottom: 10px;
        transition: 0.3s;
    }

    .section-box:hover {
        transform: translateY(-10px);
        border-color: #ff7b00;
        box-shadow: 0 10px 30px rgba(255, 123, 0, 0.3);
    }

    .section-box:hover h5 {
        color: #ff7b00;
        transform: scale(1.1);
    }
    
    .section-box:hover i {
        color: white;
        transform: scale(1.2);
    }

    .section-content {
        text-align: center;
        z-index: 2;
    }
		
.nav-lang-btn img, .dropdown-item img {
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px; /* Pour un look plus propre */
}

/* Force l'affichage du dropdown même si Bootstrap bug */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
}

.dropdown-menu-dark {
    border: 1px solid #333;
    background-color: #1a1a1a;
}

.navbar-nav .nav-link.active {
    color: #ff7b00 !important; /* Ton orange MBCJ */
    font-weight: bold;
}


/* --- Price Cards --- */
        .price-card {
            background: var(--dark-grey);
            border: 1px solid #444;
            border-radius: 15px;
            padding: 40px 30px;
            transition: 0.4s;
            height: 100%;
            display: flex;
            flex-direction: column;
            text-align: center;
        }

        .price-card:hover {
            border-color: var(--primary-orange);
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(255, 123, 0, 0.2);
        }

        .price-card.featured {
            border: 2px solid var(--primary-orange);
            background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
            position: relative;
        }

        .featured-badge {
            position: absolute;
            top: -15px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--primary-orange);
            color: black;
            padding: 5px 20px;
            font-weight: 800;
            border-radius: 20px;
            text-transform: uppercase;
            font-size: 0.8rem;
        }

        .price-value {
            font-size: 3.5rem;
            font-weight: 900;
            margin: 20px 0;
            line-height: 1;
        }

        .price-currency {
            font-size: 1.2rem;
            vertical-align: super;
            margin-right: 5px;
        }

        .price-list {
            list-style: none;
            padding: 0;
            margin: 30px 0;
            flex-grow: 1;
            color: #bbb;
        }

        .price-list li {
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid #3d3d3d;
        }

        .btn-racing {
            background-color: var(--primary-orange);
            color: black;
            font-weight: 800;
            border: none;
            padding: 12px;
            border-radius: 5px;
            text-decoration: none;
            transition: 0.3s;
        }

    .bg-orange { background-color: #ff7b00; }
    .border-dashed { border-style: dashed !important; }

.border-orange {
    border: 2px solid #ff7b00 !important;
}

/* Optionnel : zoom au survol sur l'image dans la modal */
.modal-body img {
    cursor: zoom-in;
}

/* Style du bouton Go to Top */
.btn-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #ff7b00; /* Ton orange MBCJ */
    color: #000 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 1000;
    opacity: 0; /* Masqué au départ */
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.btn-to-top:hover {
    background-color: #fff;
    transform: translateY(-5px); /* Petit saut au survol */
}

/* Classe affichée via JS */
.btn-to-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 120px;
    background-color: #111; /* Noir très légèrement plus clair que le fond */
    border: 1px solid #222;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.btn-section-title {
    color: #fff;
    font-family: 'Black Ops One', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    z-index: 2;
    transition: color 0.3s ease;
}

/* La petite barre orange décorative */
.btn-section-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background-color: #ff7b00;
    transition: width 0.3s ease;
}

/* --- EFFETS HOVER --- */

.btn-section:hover {
    background-color: #1a1a1a;
    border-color: #333;
    transform: translateY(-3px);
}

.btn-section:hover .btn-section-title {
    color: #ff7b00;
}

.btn-section:hover .btn-section-line {
    width: 100%; /* La barre s'étend sur toute la largeur au survol */
}

/* Style spécifique pour mobile pour que ce soit plus compact */
@media (max-width: 768px) {
    .btn-section {
        height: 100px;
    }
    .btn-section-title {
        font-size: 1rem;
    }
}

/* --- PAGE HISTORIQUE --- */

/* Titres de section */
.section-title {
    font-family: 'Black Ops One', sans-serif;
    border-left: 5px solid #ff7b00;
    padding-left: 15px;
    margin-bottom: 30px;
    text-uppercase: uppercase;
}

/* Boîtes Héritage (RCTJ & MBCJ) */
.heritage-box {
    background-color: #111;
    border: 1px solid #222;
    padding: 25px;
    border-radius: 10px;
    height: 100%;
    transition: border-color 0.3s ease;
}

.heritage-box:hover {
    border-color: #ff7b00;
}

/* Chronologie (Log Container) */
.log-container {
    position: relative;
    padding-left: 30px;
    margin-top: 40px;
}

/* La ligne verticale de la timeline */
.log-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ff7b00, #333);
}

.log-item {
    position: relative;
    margin-bottom: 40px;
}

/* Le point orange sur la ligne */
.log-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #ff7b00;
    border-radius: 50%;
    border: 2px solid #000;
    z-index: 2;
}

.log-year {
    font-family: 'Black Ops One', sans-serif;
    color: #ff7b00;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 5px;
}

.log-content {
    background-color: #0c0c0c;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #222;
    color: #ccc;
    line-height: 1.6;
}

/* Mise en évidence pour 2026 */
.log-item:last-child .log-content {
    border: 1px solid #ff7b00 !important;
    background-color: rgba(255, 123, 0, 0.05);
}

/* Images et ombres */
.img-fluid.shadow {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    border: 1px solid #333;
}

/* Typographie spécifique */
.fw-900 {
    font-weight: 900;
}

/* Change la couleur de fond de l'élément actif dans le menu déroulant */
.dropdown-item.active, .dropdown-item:active {
    background-color: #ff7b00 !important; /* Ton orange */
    color: #fff !important; /* Texte en blanc */
}

/* Optionnel : Change aussi la couleur au survol de la souris */
.dropdown-item:hover {
    background-color: rgba(255, 123, 0, 0.1); /* Orange très clair au survol */
    color: #ff7b00;
}

/* On garde l'avatar miniature pour la navbar */
    .btn-avatar-mini {
        background: #ff7b00; /* Orange MBCJ */
        color: white;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 11px;
        font-weight: bold;
        border: 1px solid rgba(255,255,255,0.2);
    }

    /* Le rideau (Overlay) reste identique */
    #memberMenu {
        height: 100vh;
        width: 100%;
        position: fixed;
        z-index: 9999; /* Très élevé pour passer au-dessus de la navbar */
        top: -100%; 
        left: 0;
        background: rgba(255, 123, 0, 0.98);
        transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
    }
    #memberMenu.active { top: 0; }

        footer { border-top: 1px solid #333; padding: 60px 0; background: #0a0a0a; }