/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'Russo One';
    src: url('../fonts/RussoOne-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Variables */
:root {
    /* Main Colors */
    --color-primary: #CD374D;
    --color-primary-dark: #A02334;
    --color-cta: #0F52BA;
    --color-cta-dark: #083D91;

    /* Neutrals */
    --color-dark: #121212;
    --color-surface: #1E1E1E;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-light: #F4F4F4;

    /* Text */
    --text-main: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-dark: #121212;
    --color-gray-text: #CCCCCC;
    /* Keeping for backward compatibility initially */

    /* Typography */
    --font-heading: 'Russo One', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-lg: 16px;
    --section-spacing: 100px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(205, 55, 77, 0.3);
}

/* Global Styles */
body {
    font-family: var(--font-body);
    color: var(--color-white);
    background-color: var(--color-white);
    /* Base white, sections will override */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Container responsive - padding adaptatif */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* S'assurer que les vidéos et iframes ne débordent pas */
video, iframe {
    max-width: 100%;
    display: block;
}

/* Responsive images dans les sections spécifiques */
.about-text img,
.promo-image img,
.members-image img {
    width: 100%;
    height: auto;
}

/* Fix pour les maps Google */
.footer-map iframe,
.map-background iframe,
.map-placeholder iframe {
    width: 100%;
    border: none;
}

/* Éviter les débordements de texte */
h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix pour les boutons longs */
.btn, .btn-secondary {
    white-space: normal;
}

/* Buttons */
/* Buttons - Premium Upgrade */
.btn {
    display: inline-block;
    padding: 14px 34px;
    font-family: var(--font-heading);
    text-decoration: none;
    text-transform: uppercase;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-dark) 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(15, 82, 186, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, #1565C0 0%, #0F52BA 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 82, 186, 0.5);
}

.btn:active {
    transform: translateY(-1px);
}

.btn.full-width {
    width: 100%;
    text-align: center;
}

/* Header - Clean Full Width */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: transparent;
    transition: transform 0.4s ease, background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background: rgba(18, 18, 18, 0.95);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.header-hidden {
    transform: translateY(-100%);
}

/* Force header consistency across all pages */
.header,
body .header {
    padding: 25px 0 !important;
    min-height: 90px;
    box-sizing: border-box;
}

.header.scrolled,
body .header.scrolled {
    padding: 15px 0 !important;
    min-height: 70px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    /* Wider container for header */
    margin: 0 auto;
    padding: 0 40px;
}

.logo img {
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(205, 55, 77, 0.3));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Cacher le li du bouton X en desktop */
.nav-links li:has(.menu-close-btn) {
    display: none;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s;
    letter-spacing: 1px;
    opacity: 0.7;
}

.nav-links a:hover {
    color: var(--color-primary);
    opacity: 1;
    text-shadow: 0 0 15px rgba(205, 55, 77, 0.5);
}

.nav-links a.active {
    color: var(--color-primary);
    opacity: 1;
}

/* Hero Section */
/* Hero Section - Redesign 2026 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--color-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('../images/hero_track_bg.webp');
    background-image: image-set(url('../images/hero_track_bg.webp') type('image/webp'), url('../images/hero_track_bg.png') type('image/png'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 1. DARK OVERLAY & CONTRAST */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Deep dark left (#050505) -> Transparent right to reveal track */
    background: linear-gradient(90deg,
            #050505 0%,
            rgba(5, 5, 5, 0.98) 35%,
            rgba(5, 5, 5, 0.9) 50%,
            rgba(5, 5, 5, 0.6) 65%,
            rgba(5, 5, 5, 0.2) 80%,
            rgba(5, 5, 5, 0.05) 100%);
    z-index: 1;
}

.hero-bg {
    /* Removed old element styling if present, or keep empty */
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    justify-content: flex-start;
    /* Left aligned */
    height: 100%;
    padding: 100px 40px 40px 40px;
    text-align: left;
    /* Left align text */
}

/* 2. TYPOGRAPHY & TEXT */
.hero-text {
    flex: 0 0 60%;
    /* Adjusted width to leave room for track on right */
    max-width: 800px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align items */
    justify-content: space-between;
    height: 100%;
    padding: 20px 0;
}

.hero-top {
    flex-shrink: 0;
}

.hero-middle {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Sticker / Badge "Affilié FFVRC" */
.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #FFF 0%, #E0E0E0 100%);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    transform: skew(-10deg);
    /* Racing sticker look */
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    /* Responsive big text */
    font-style: italic;
    /* Speed */
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 15px;
    margin-top: 0;
    color: var(--color-white);
    /* Depth shadow */
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-text h1 span {
    color: var(--color-primary);
    display: block;
    /* On new line or emphasized */
    position: relative;
    z-index: 1;
}

.hero-text p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 550px;
    margin-bottom: 25px;
    line-height: 1.5;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    /* Restore border */
    padding-left: 15px;
}

/* 3. BUTTONS RACING STYLE */
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

/* Hero Buttons - Style cohérent avec le reste du site */
.hero-btns .btn {
    padding: 16px 40px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(15, 82, 186, 0.3);
    background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-dark) 100%);
    color: var(--color-white);
    text-decoration: none;
    display: inline-block;
    border: none;
}

.hero-btns .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 82, 186, 0.5);
    background: linear-gradient(135deg, #1565C0 0%, #0F52BA 100%);
}

.hero-btns .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-btns .btn-outline:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-dark);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Stats */
.hero-stats {
    margin-top: 30px;
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    justify-content: flex-start;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-cta);
    font-style: italic;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4. CAR IMAGE - DEPTH & FIXES */
/* Car image removed */


/* About / Qui Sommes Nous */
.about {
    padding: var(--section-spacing) 0;
    background-color: #f0f0f0;
    background-image: radial-gradient(circle, #e0e0e0 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--color-black);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--color-black);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Photo Gallery */
.photo-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.photo-gallery .gallery-main {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.gallery-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gallery-secondary img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: block;
}

.gallery-secondary img:hover {
    transform: scale(1.02);
}

.about-text h3,
.track-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.track-info p,
.about-text p {
    color: #444;
}

/* Info Highlights Cards */
.info-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
    align-items: stretch;
}

.highlight-card {
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a2a2a 100%);
    color: var(--color-white);
    padding: 20px 15px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #0F52BA;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.highlight-icon {
    font-size: 32px;
    background: rgba(15, 82, 186, 0.25);
    padding: 15px;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-content h4 {
    font-size: 1.1rem;
    color: var(--color-white);
    margin: 0 0 8px 0;
}

.highlight-content span {
    font-size: 0.85rem;
    color: #AAA;
    line-height: 1.4;
}

/* Info Cards Section */
.info-cards-section {
    background-color: var(--color-dark);
    padding: var(--section-spacing) 0;
    background-image: url('../images/damier background.webp');
    background-image: image-set(url('../images/damier background.webp') type('image/webp'), url('../images/damier background.png') type('image/png'));
    background-size: cover;
    background-blend-mode: overlay;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background-color: var(--color-white);
    color: var(--text-dark);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.info-card h3 {
    font-family: var(--font-body);
    /* Based on screenshot looks like Inter bold */
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: none;
    /* Override uppercase */
    margin-bottom: 30px;
}

/* Track Promo Section */
.track-promo {
    background-color: #1a1a1a;
    padding: var(--section-spacing) 0;
    color: var(--color-white);
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.promo-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.promo-text h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.promo-text h4 {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    padding: 60px 0 20px;
    color: white;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-contact p {
    margin-bottom: 5px;
    color: #CCC;
}

/* .footer-bottom défini plus bas avec le reste des styles footer */

/* =========================================
   RESPONSIVE - TABLETTE (768px - 1024px)
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 80px;
    }

    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        gap: 25px;
    }

    .hero-text {
        flex: 0 0 65%;
    }

    .hero-text h1 {
        font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    }

    .about-grid,
    .promo-grid,
    .members-grid {
        gap: 40px;
    }

    .info-highlights {
        gap: 12px;
    }

    .highlight-card {
        padding: 18px 12px;
    }

    .highlight-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
        padding: 12px;
    }

    .card-grid {
        gap: 20px;
    }

    .info-card {
        padding: 35px 25px;
        min-height: 280px;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .values-grid,
    .club-life-grid {
        gap: 20px;
    }

    .value-card {
        padding: 35px 20px;
    }

    .circuit-info-card {
        padding: 40px 50px;
        max-width: 360px;
    }

    .footer-main {
        gap: 40px 60px;
    }
}

/* =========================================
   RESPONSIVE - MOBILE (< 1024px)
   ========================================= */
@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
    }

    :root {
        --section-spacing: 60px;
    }

    .navbar {
        justify-content: space-between;
        padding: 0 16px;
    }

    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        height: 100dvh;
        top: 0;
        background-color: var(--color-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 75%;
        max-width: 320px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding: 80px 0 40px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        pointer-events: auto;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        transition-delay: 0s;
    }

    .nav-links.nav-active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.nav-active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.nav-active li:nth-child(2) { transition-delay: 0.12s; }
    .nav-links.nav-active li:nth-child(3) { transition-delay: 0.19s; }
    .nav-links.nav-active li:nth-child(4) { transition-delay: 0.26s; }

    /* Le li contenant le bouton close : visible en mobile, pas d'animation de lien */
    .nav-links li:has(.menu-close-btn) {
        display: block;
        opacity: 1;
        transform: none;
        transition: none;
        transition-delay: 0s;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 15px 0;
        opacity: 1;
        pointer-events: auto;
    }

    .menu-close-btn {
        display: none;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1003;
        align-items: center;
        justify-content: center;
    }

    .menu-close-btn::before,
    .menu-close-btn::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background: white;
    }

    .menu-close-btn::before {
        transform: rotate(45deg);
    }

    .menu-close-btn::after {
        transform: rotate(-45deg);
    }

    .nav-links.nav-active .menu-close-btn {
        display: flex;
    }

    .burger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1002;
        padding: 12px;
        position: relative;
        background: rgba(0,0,0,0.3);
        border-radius: 8px;
        min-width: 48px;
        min-height: 48px;
    }

    .burger * {
        pointer-events: none;
    }

    /* Cacher le burger quand le menu est ouvert */
    .burger.toggle {
        opacity: 0;
        pointer-events: none;
    }

    .header,
    body .header {
        padding: 20px 0 !important;
        min-height: 80px;
    }

    .header.scrolled,
    body .header.scrolled {
        padding: 12px 0 !important;
        min-height: 64px;
    }

    /* Overlay pour le menu mobile */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .header {
        background: var(--color-dark) !important;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: 0;
        text-align: center;
    }

    .hero::before {
        background: linear-gradient(180deg,
                #050505 0%,
                rgba(5, 5, 5, 0.98) 40%,
                rgba(5, 5, 5, 0.85) 70%,
                rgba(5, 5, 5, 0.6) 100%);
    }

    .hero-content {
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
        padding: 100px 16px 40px;
        align-items: center;
    }

    .hero-text {
        padding-left: 0;
        max-width: 100%;
        height: auto;
        min-height: calc(100vh - 140px);
        min-height: calc(100svh - 140px);
        justify-content: space-between;
        padding: 0;
        align-items: center;
    }

    .hero-top {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-middle {
        flex-grow: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-badge {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 0.7rem;
        padding: 5px 12px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
        letter-spacing: -0.5px;
        margin-bottom: 15px;
        line-height: 1.1;
    }

    .hero-text p {
        border-left: none;
        border-bottom: 2px solid var(--color-primary);
        padding-left: 0;
        padding-bottom: 15px;
        margin: 0 auto 20px;
        font-size: 0.95rem;
        max-width: 100%;
        line-height: 1.5;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 30px;
        width: 100%;
    }

    .hero-btns .btn {
        padding: 14px 20px;
        font-size: 0.8rem;
        flex: 1;
        min-width: 120px;
        max-width: 180px;
    }

    .hero-stats {
        gap: 20px;
        justify-content: center;
        margin-top: auto;
        padding-top: 20px;
        padding-bottom: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        flex-wrap: wrap;
    }

    .stat-item {
        align-items: center;
        min-width: 70px;
    }

    .stat-num {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* About section mobile */
    .about {
        padding: 60px 0;
    }

    .about h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .about-grid,
    .card-grid,
    .promo-grid,
    .members-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .photo-gallery .gallery-main {
        height: 180px;
    }

    .gallery-secondary {
        gap: 8px;
    }

    .gallery-secondary img {
        height: 100px;
    }

    .info-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .highlight-card {
        flex-direction: row;
        text-align: left;
        padding: 15px 20px;
        gap: 15px;
    }

    .highlight-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        padding: 10px;
        flex-shrink: 0;
    }

    .highlight-content h4 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .highlight-content span {
        font-size: 0.8rem;
    }

    /* Info cards section */
    .info-cards-section {
        padding: 60px 0;
    }

    .card-grid {
        gap: 20px;
    }

    .info-card {
        padding: 30px 25px;
        min-height: auto;
    }

    .info-card h3 {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* Track promo */
    .track-promo {
        padding: 60px 0;
    }

    .promo-text h2 {
        font-size: 1.6rem;
    }

    .promo-text h4 {
        font-size: 1rem;
    }

    /* Footer mobile */
    .footer-main {
        flex-direction: column;
        gap: 40px;
        padding: 40px 0;
    }

    .footer-col {
        width: 100%;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-logo img {
        max-width: 150px;
    }

    .footer-desc {
        max-width: 400px;
        margin: 0 auto 20px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-nav ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-nav ul li a {
        display: block;
        padding: 12px 8px;
        min-height: 44px;
    }

    .footer-contact-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact-info {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-map {
        max-width: 100%;
        width: 100%;
    }

    .footer-bottom {
        padding: 15px 0;
        flex-direction: column-reverse;
        gap: 10px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 8px 16px;
        justify-content: center;
    }

    .footer-links a {
        font-size: 0.75rem;
    }

    .copyright {
        font-size: 0.75rem;
    }

    /* Club page mobile */
    .club-hero,
    .page-hero {
        height: 40vh;
        min-height: 300px;
        padding-top: 60px;
    }

    .club-hero h1,
    .page-hero-content h1 {
        font-size: clamp(1.4rem, 7vw, 2rem);
        letter-spacing: 1px;
    }

    .history-section {
        padding: 40px 0;
    }

    .history-text {
        padding: 30px 20px;
        font-size: 1rem;
    }

    .track-video-section {
        padding: 60px 0;
    }

    .track-video-section h2 {
        font-size: 1.8rem;
    }

    .video-container {
        padding: 0;
    }

    .video-wrapper {
        max-width: 100%;
        margin: 0 16px;
    }

    .members-section {
        padding: 60px 0;
    }

    .members-text h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .members-image {
        border-radius: var(--radius-sm);
    }

    .values-section {
        padding: 60px 0;
    }

    .values-section h2 {
        font-size: 1.8rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-card {
        padding: 30px 25px;
    }

    .club-life-section {
        padding: 60px 0;
    }

    .club-life-section h2 {
        font-size: 1.6rem;
    }

    .club-life-section .subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .club-life-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }

    .life-card {
        padding: 30px 25px;
    }

    .life-card h3 {
        font-size: 1.2rem;
    }

    /* Circuit location section */
    .circuit-location-section {
        height: 400px;
    }

    .circuit-info-card {
        padding: 30px 25px;
        max-width: 90%;
        width: auto;
        min-width: 280px;
        margin: 0 auto;
        left: 0;
        right: 0;
    }

    .circuit-info-card h2 {
        font-size: 1.4rem;
    }

    /* Pricing section mobile */
    .pricing-section {
        padding: 60px 0;
    }

    .pricing-section h2 {
        font-size: 1.6rem;
        margin-bottom: 50px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pricing-card {
        padding: 30px 25px;
    }

    .pricing-card.popular {
        transform: none;
        order: -1;
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }

    .popular-tag {
        font-size: 0.75rem;
        padding: 4px 12px;
        top: -12px;
    }

    .card-header h3 {
        font-size: 1.1rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .adhesion-cta {
        padding: 30px 20px;
        margin-top: 40px;
    }

    .adhesion-cta .btn {
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        padding: 16px 20px;
    }

    /* Documents section */
    .documents-section {
        padding: 60px 0;
    }

    .docs-content h2 {
        font-size: 1.6rem;
    }

    .steps-list {
        padding: 0;
        margin: 30px 0;
    }

    .step {
        gap: 12px;
    }

    .step-num {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .download-area {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .btn-secondary {
        justify-content: center;
        padding: 14px 20px;
        min-height: 48px;
        width: 100%;
        text-align: center;
    }

    /* Contact page mobile */
    .contact-info {
        order: 1;
    }

    .contact-form-wrapper {
        order: 2;
        padding: 25px 16px;
        border-radius: 8px;
    }

    .contact-info h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .contact-form-wrapper h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .info-item {
        margin-bottom: 16px;
    }

    .info-item h3 {
        font-size: 0.85rem;
        margin-bottom: 4px;
        letter-spacing: 1px;
    }

    .info-item p,
    .info-item a {
        font-size: 0.95rem;
    }

    .info-item a {
        display: inline-block;
        padding: 4px 0;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        padding: 12px;
        font-size: 1rem;
        box-sizing: border-box;
    }

    .form-group textarea {
        min-height: 110px;
    }

    .contact-form .btn {
        width: 100%;
        padding: 16px;
        min-height: 52px;
        box-sizing: border-box;
    }

    .map-section {
        height: 350px;
    }

    .map-placeholder iframe {
        height: 350px;
    }

    /* Legal pages mobile */
    .legal-section {
        padding: 60px 0;
    }

    .legal-content {
        padding: 30px 20px;
    }

    .legal-content h2 {
        font-size: 1.2rem;
        margin: 30px 0 15px;
    }

    .legal-content h3 {
        font-size: 1.1rem;
    }

    .download-section {
        margin-top: 30px;
        padding-top: 25px;
    }
}

.nav-active {
    transform: translateX(0%);
}


.burger {
    display: none;
}

.burger * {
    pointer-events: none;
}

@media (min-width: 1200px) {
    .burger {
        display: none !important;
    }
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger:hover div {
    background-color: #CD374D;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* =========================================
   LE CLUB PAGE STYLES
   ========================================= */

/* Hero - Notre Histoire */
.club-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-color: black;
    background-image: url('../images/Médias/rc-car-3-4-side.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.club-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.club-hero h1 {
    font-size: clamp(1.8rem, 6vw, 4rem);
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    z-index: 2;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* History Section */
.history-section {
    padding: 80px 0;
    background-color: var(--color-light);
}

.history-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    background: var(--color-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.history-text p {
    margin-bottom: 1.5rem;
}

.history-text p:last-child {
    margin-bottom: 0;
}

/* Track Video Section */
.track-video-section {
    padding: var(--section-spacing) 0;
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    background-image: radial-gradient(var(--color-surface) 1px, transparent 1px);
    background-size: 20px 20px;
}

.track-video-section h2 {
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.video-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.video-container {
    max-width: 500px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    margin: 0 auto;
    background: var(--color-surface);
}

.track-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 9/16;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--color-cta);
}

.play-btn svg {
    width: 32px;
    height: 32px;
    color: white;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .video-wrapper {
        max-width: 300px;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
    }

    .play-btn svg {
        width: 24px;
        height: 24px;
    }

    .circuit-location-section {
        height: 400px;
    }
}

    .circuit-info-card {
        padding: 35px 40px;
        max-width: 320px;
    }

    .circuit-info-card h2 {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .legal-content {
        padding: 30px 25px;
    }
}

.track-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.video-play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(15, 82, 186, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    background: rgba(15, 82, 186, 1);
    box-shadow: 0 6px 30px rgba(15, 82, 186, 0.5);
}

.play-btn svg {
    width: 32px;
    height: 32px;
    color: white;
    margin-left: 4px;
}

.video-wrapper:hover .video-play-overlay:not(.hidden) {
    background: rgba(0, 0, 0, 0.4);
}

.video-caption {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Nos Membres */
.members-section {
    padding: var(--section-spacing) 0;
    background-color: var(--color-light);
    color: var(--color-black);
}

.members-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.members-text h2 {
    color: var(--color-black);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.members-text p {
    color: #444;
}

.members-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    line-height: 0;
}

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

/* Nos Valeurs */
.values-section {
    padding: var(--section-spacing) 0;
    background-color: var(--color-light);
    text-align: center;
}

.values-section h2 {
    color: var(--color-black);
    margin-bottom: 20px;
}

.divider-red {
    width: 100px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 0 auto 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--color-white);
    padding: 40px 20px;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    transition: transform 0.3s;
    box-shadow: var(--shadow-sm);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-card h3 {
    color: var(--color-black);
    margin-bottom: 15px;
}

.value-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Club Life */
.club-life-section {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--section-spacing) 0;
    background-image: radial-gradient(var(--color-surface) 1px, transparent 1px);
    background-size: 20px 20px;
}

.club-life-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.club-life-section .subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text-secondary);
}

.club-life-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.life-card {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--color-white);
}

.life-card.red-border {
    border: 2px solid var(--color-primary);
}

.life-card.blue-border {
    border: 2px solid var(--color-cta);
}

.life-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.center-btn {
    text-align: center;
}

/* Circuit Location Section */
.circuit-location-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-background iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.6);
    z-index: 2;
}

.circuit-info-card {
    position: relative;
    z-index: 3;
    background: var(--color-dark);
    padding: 50px 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
}

.circuit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.circuit-info-card h2 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.circuit-info-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1rem;
}

.open-gps-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.open-gps-link:hover {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
}

/* Nouveau Footer Style - 3 colonnes */
footer {
    background-color: var(--color-dark);
    padding: 0;
    color: white;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 60px;
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--color-white);
    font-family: var(--font-heading);
}

/* Colonne 1: Logo et description */
.footer-about .footer-logo {
    margin-bottom: 20px;
}

.footer-about .footer-logo img {
    height: 50px;
    width: auto;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Colonne 2: Navigation */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav ul li a:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

/* Colonne 3: Contact */
.footer-contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    word-break: break-word;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-white);
}

/* Carte footer - pleine largeur sous les colonnes */
.footer-map {
    grid-column: 1 / -1;
    margin-top: 10px;
    position: relative;
}

.map-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 22px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.3s ease;
    z-index: 2;
}

.map-link:hover {
    background: var(--color-primary-dark);
}

/* Responsive pour le footer 3 colonnes */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-about .footer-logo {
        justify-content: center;
        display: flex;
    }
    
    .footer-desc {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Footer mobile : logo full-width, nav+contact côte à côte, carte full-width */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
        padding: 28px 0 16px;
    }

    /* Logo : pleine largeur centré */
    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .footer-desc {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    /* Nav et Contact : chacun dans sa colonne */
    .footer-col {
        text-align: left;
    }

    .footer-col h4 {
        margin-bottom: 10px;
        font-size: 0.75rem;
    }

    .footer-nav ul li {
        margin-bottom: 0;
    }

    .footer-nav ul li a {
        display: block;
        padding: 9px 0;
        min-height: 40px;
        font-size: 0.85rem;
    }

    .footer-nav ul li a:hover {
        transform: none;
    }

    /* Contact : colonne normale à côté de Navigation */
    .footer-contact-col {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .footer-contact-col h4 {
        margin-bottom: 4px;
    }

    .footer-contact-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 0;
    }

    .contact-item {
        display: block;
        padding: 0;
        min-height: auto;
    }

    /* Masquer les icônes vides dans le footer mobile */
    .contact-item .icon {
        display: none;
    }

    .contact-item span,
    .contact-item a {
        display: block;
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .contact-item a {
        padding: 0;
    }

    /* Carte : pleine largeur sous les deux colonnes */
    .footer-map {
        grid-column: 1 / -1;
        margin-top: 4px;
    }

    .footer-map iframe {
        height: 130px;
        display: block;
    }

    .map-link {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid #333;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

/* Legal Pages Styles */
.legal-section {
    padding: 80px 0;
    background-color: var(--color-light);
    color: var(--color-black);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.legal-date {
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
}

.legal-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-content h2 {
    color: var(--color-dark);
    font-size: 1.4rem;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.legal-content h3 {
    color: var(--color-dark);
    font-size: 1.2rem;
    margin: 30px 0 15px 0;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #444;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.download-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.download-section h3 {
    margin-bottom: 15px;
}

/* Updates active state for nav */
.nav-links a.active {
    color: var(--color-primary);
    font-weight: 700;
}

/* Responsive adjustments for new pages */
@media (max-width: 900px) {

    .members-grid,
    .values-grid,
    .club-life-grid {
        grid-template-columns: 1fr;
    }

    .club-hero,
    .page-hero {
        height: 40vh;
        min-height: 300px;
        padding-bottom: 0;
    }

    .club-hero h1,
    .page-hero-content h1 {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }

    .history-section {
        padding: 60px 0;
    }

    .history-text {
        padding: 30px 25px;
        font-size: 1rem;
    }

    .video-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
    }

    .play-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Très grands écrans - limiter la taille du contenu */
@media (min-width: 1920px) {
    .hero-text {
        max-width: 900px;
    }

    .hero-text h1 {
        font-size: 5rem;
    }

    .hero-text p {
        font-size: 1.3rem;
        max-width: 650px;
    }
}

/* =========================================
   ADHÉSION PAGE STYLES
   ========================================= */

.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-color: var(--color-dark);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 0;
    box-sizing: border-box;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
}

.page-hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 4rem);
    margin: 0;
    color: white;
    letter-spacing: 2px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Adhesion Hero */
.adhesion-hero {
    background-image: url('../images/Médias/rc-car-front.webp');
}

/* Contact Hero */
.contact-hero {
    background-image: url('../images/Médias/rc-car-wheel.webp');
}

/* Pricing Section */
.pricing-section,
.adhesion-section {
    padding: var(--section-spacing) 0;
    background-color: var(--color-light);
    color: var(--color-black);
}

.pricing-section h2,
.adhesion-section h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-black);
}

.adhesion-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.adhesion-intro h2 {
    margin-bottom: 20px;
}

.adhesion-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.adhesion-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.adhesion-option {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 400px;
    flex: 1;
    min-width: 300px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.adhesion-option.highlight {
    border: 2px solid var(--color-cta);
    position: relative;
}

.option-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-cta);
    color: var(--color-white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-light);
}

.option-age {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-black);
}

.option-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
}

.option-price .per-year {
    font-size: 0.9rem;
    font-weight: normal;
    color: #777;
}

.option-content {
    flex-grow: 1;
    margin-bottom: 25px;
}

.option-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

.option-content p:last-child {
    margin-bottom: 0;
}

.adhesion-option .btn {
    width: 100%;
    text-align: center;
}

.licences-section {
    max-width: 800px;
    margin: 0 auto;
}

.licences-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
}

.licences-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.licence-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px;
    border-left: 4px solid var(--color-cta);
}

.licence-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.licence-title h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-black);
    margin: 0;
}

.licence-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary);
}

.licence-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.adhesion-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: var(--color-dark);
    border-radius: var(--radius-lg);
    color: var(--color-white);
}

.adhesion-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.licence-item.highlight-cta {
    border-left-color: var(--color-primary);
    background: linear-gradient(135deg, #fff 0%, #fef5f5 100%);
}

.pack-famille {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 40px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--color-cta);
}

.pack-famille h2 {
    margin-bottom: 15px;
}

.pack-famille > p {
    color: #666;
    margin-bottom: 30px;
}

.pack-info {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.pack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pack-members {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-black);
    margin-bottom: 5px;
}

.pack-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.pack-detail {
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 768px) {
    .adhesion-option {
        max-width: 100%;
    }
    
    .option-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .licence-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .pack-info {
        flex-direction: column;
        gap: 25px;
    }
}

.pricing-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.pricing-grid .pricing-card {
    flex: 0 1 300px;
    max-width: 350px;
}

@media (max-width: 768px) {
    .pricing-grid .pricing-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #EEE;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

/* Popular Card Style */
.pricing-card.popular {
    border: 2px solid var(--color-cta);
    transform: scale(1.05);
}

/* Licenses Grid - Horizontal Layout */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.license-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 25px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #EEE;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.license-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.license-header h3 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--color-dark);
    line-height: 1.3;
}

.license-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.license-price span {
    font-size: 1rem;
    color: #999;
}

.license-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.license-features li {
    padding: 8px 0;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.license-features li:last-child {
    border-bottom: none;
}

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

@media (max-width: 768px) {
    .licenses-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-cta);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #EEE;
    padding-bottom: 20px;
}

.card-header h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}

.price {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-primary);
}

.price span {
    font-size: 1rem;
    color: #999;
}

.features-list {
    margin-bottom: 30px;
    flex-grow: 1;
    /* Push button to bottom */
}

.features-list li {
    margin-bottom: 15px;
    color: #555;
    font-size: 0.95rem;
}

/* Documents Step Section */
.documents-section {
    padding: 80px 0;
    background-color: white;
    color: var(--color-black);
}

.docs-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.docs-content h2 {
    margin-bottom: 30px;
}

.steps-list {
    text-align: left;
    margin: 40px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.step-num {
    background-color: var(--color-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.download-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-dark);
    background: var(--color-white);
    border: 2px solid var(--color-dark);
    padding: 10px 18px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

.contact-section {
    padding: 80px 0;
    background-color: white;
    color: var(--color-black);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

@media (max-width: 1024px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.contact-info h2 {
    margin-bottom: 30px;
    color: var(--color-black);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: #F7F7F7;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.info-item-icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.info-item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-item h3 {
    font-size: 0.7rem;
    margin: 0 0 4px 0;
    color: #999;
    letter-spacing: 1.5px;
    font-family: var(--font-heading);
}

.info-item p,
.info-item a {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.info-item a:hover {
    color: var(--color-primary);
}

.social-links h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    background: #EEE;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background 0.2s;
}

.social-icon:hover {
    background: var(--color-cta);
    color: white;
}

/* Form */
.contact-form-wrapper {
    background: #F9F9F9;
    padding: 40px;
    border-radius: 12px;
    box-sizing: border-box;
    min-width: 0;
}

.contact-form-wrapper h2 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDD;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-cta);
    box-shadow: 0 0 0 2px rgba(15, 82, 186, 0.1);
}

/* Map Section */
.map-section {
    height: 450px;
    background-color: #EEE;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    background-color: #DDD;
}

/* Responsive Contact/Adhesion - Suppression du doublon, déjà inclus dans la media query principale */

/* =========================================
   MODALE CONTACT
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.modal-overlay.modal-visible {
    display: flex;
}

.modal-box {
    background: var(--color-white);
    border-radius: 12px;
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    margin-bottom: 20px;
    line-height: 1;
}

.modal-icon svg {
    display: inline-block;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-message {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal-close-btn {
    min-width: 160px;
}

/* =========================================
   TRÈS PETITS ÉCRANS (< 360px)
   ========================================= */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .hero-btns .btn {
        padding: 12px 20px;
        font-size: 0.8rem;
        min-width: 120px;
    }

    .stat-num {
        font-size: 1.2rem;
    }

    .about h2,
    .values-section h2,
    .track-video-section h2 {
        font-size: 1.5rem;
    }

    .club-hero h1,
    .page-hero-content h1 {
        font-size: clamp(1.2rem, 8vw, 1.6rem);
        letter-spacing: 0px;
    }

    .circuit-info-card {
        padding: 25px 20px;
        min-width: auto;
        width: calc(100% - 32px);
    }

    .footer-main {
        padding: 30px 0;
    }

    .value-card {
        padding: 25px 20px;
    }

    .life-card {
        padding: 25px 20px;
    }

    .pricing-card {
        padding: 25px 20px;
    }

    .price {
        font-size: 2rem;
    }
}

/* =========================================
   FIX POUR LE SCROLL HORIZONTAL INATTENDU
   ========================================= */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* =========================================
   FIX POUR LES ÉLÉMENTS QUI DÉBORDENT
   ========================================= */
* {
    box-sizing: border-box;
}

/* Correction pour les sections avec fond fixe sur iOS */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
    }
}