/* ============================================================
   TRIATHLON NANTES ERDRE 2027 — DESIGN SYSTEM
   ============================================================ */

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

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    /* Couleurs */
    --color-bg: #0C1D2A;
    /* Fond principal (Bleu très sombre) */
    --color-surface: #16354D;
    /* Surface (Bleu Logo) */
    --color-surface-2: #1D4666;
    /* Surface hover */
    --color-cta: #EE6123;
    /* Boutons (Orange Logo) */
    --color-cta-dark: #D3511A;
    /* Boutons survol (Orange foncé) */
    --color-text: #F8F9FA;
    /* Blanc Cassé */
    --color-text-muted: #9BA3B8;
    /* Texte secondaire */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-danger: #FF4757;
    /* Cut-off, erreurs */
    --color-warning: #FFA502;
    /* Alertes */
    --color-swim: #388596;
    /* Bleu natation (Teal Logo) */
    --color-bike: #FFB74D;
    /* Jaune vélo */
    --color-run: #EF5350;
    /* Rouge course */
    --color-duathlon: #AB47BC;
    /* Violet duathlon */

    /* Typographie */
    --font-title: 'Teko', 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Tailles de police */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 4rem;
    --text-hero: clamp(3rem, 8vw, 6rem);

    /* Espacement */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Conteneur */
    --container-max: 1200px;
    --container-pad: clamp(1rem, 4vw, 2.5rem);

    /* Bordures */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-cta: 0 0 24px rgba(238, 97, 35, 0.3);

    /* Transitions */
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Header */
    --header-height: 72px;
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ── Layout Utilitaires ───────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section {
    padding-block: var(--space-20);
}

.section--lg {
    padding-block: var(--space-24);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.text-left {
    text-align: left;
}

/* ── Typographie ──────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

h4 {
    font-size: var(--text-xl);
}

.text-cta {
    color: var(--color-cta);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-swim {
    color: var(--color-swim);
}

.text-bike {
    color: var(--color-bike);
}

.text-run {
    color: var(--color-run);
}

.text-dual {
    color: var(--color-duathlon);
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-title);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-cta);
    color: var(--color-bg);
    box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
    background: var(--color-cta-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(238, 97, 35, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--color-cta);
    border: 2px solid var(--color-cta);
}

.btn-outline:hover {
    background: rgba(238, 97, 35, 0.1);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: var(--text-xl);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--transition);
}

.card:hover {
    border-color: rgba(238, 97, 35, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card--cta {
    border-color: rgba(238, 97, 35, 0.3);
    background: linear-gradient(135deg, var(--color-surface), var(--color-surface-2));
}

/* ── Badge / Pill ─────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-cta {
    background: rgba(238, 97, 35, 0.15);
    color: var(--color-cta);
}

.badge-swim {
    background: rgba(56, 133, 150, 0.15);
    color: var(--color-swim);
}

.badge-bike {
    background: rgba(255, 183, 77, 0.15);
    color: var(--color-bike);
}

.badge-run {
    background: rgba(239, 83, 80, 0.15);
    color: var(--color-run);
}

.badge-dual {
    background: rgba(171, 71, 188, 0.15);
    color: var(--color-duathlon);
}

/* ── Section Titre ────────────────────────────────────────── */
.section-header {
    margin-bottom: var(--space-12);
}

.section-header .eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-cta);
    margin-bottom: var(--space-3);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 640px;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
    width: 60px;
    height: 3px;
    background: var(--color-cta);
    border-radius: var(--radius-full);
    margin-block: var(--space-4);
}

.divider--center {
    margin-inline: auto;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(238, 97, 35, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(238, 97, 35, 0);
    }
}

@keyframes flipDown {
    from {
        transform: rotateX(-90deg);
        opacity: 0;
    }

    to {
        transform: rotateX(0);
        opacity: 1;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 8px rgba(238, 97, 35, 0.5);
    }

    50% {
        text-shadow: 0 0 24px rgba(238, 97, 35, 0.9);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

.animate-delay-1 {
    animation-delay: 0.15s;
}

.animate-delay-2 {
    animation-delay: 0.30s;
}

.animate-delay-3 {
    animation-delay: 0.45s;
}

.animate-delay-4 {
    animation-delay: 0.60s;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-input,
.form-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: border-color var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-cta);
    background: rgba(238, 97, 35, 0.04);
}

.form-input.error,
.form-select.error {
    border-color: var(--color-danger);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239BA3B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option {
    background: var(--color-surface);
    color: var(--color-text);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-cta);
    cursor: pointer;
}

.form-error-msg {
    font-size: var(--text-xs);
    color: var(--color-danger);
    margin-top: var(--space-1);
}

/* ── Tags / Labels ────────────────────────────────────────── */
.tag-date {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-cta);
    background: rgba(238, 97, 35, 0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

/* ── Glassmorphism Panel ──────────────────────────────────── */
.glass {
    background: rgba(28, 37, 65, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

/* ── Séparateur Visuel ────────────────────────────────────── */
.wave-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive Helpers ───────────────────────────────────── */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }

    .section {
        padding-block: var(--space-12);
    }

    .section--lg {
        padding-block: var(--space-16);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   STYLES PRINCIPAUX — Triathlon Nantes Erdre 2027
   ============================================================ */

/* ── NAVIGATION STICKY ──────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(11, 19, 43, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-slow);
}

.site-header.scrolled {
    background: rgba(11, 19, 43, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
    gap: var(--space-6);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--color-cta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-family: var(--font-title);
    font-size: var(--text-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--color-cta);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
}

.header-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-divider {
    width: 2px;
    height: 32px;
    background: var(--color-border);
    margin: 0 var(--space-3);
    border-radius: 2px;
}

.header-partner-img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 4px;
    /* Slightly round the JPG corners */
}

.footer-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.footer-partner-img {
    height: 52px;
    width: auto;
    display: block;
    border-radius: 4px;
}

/* Navigation principale */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex: 1;
    justify-content: center;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.07);
}

/* Dropdown nav */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    gap: 0.25rem;
}

.nav-dropdown>a::after {
    content: '▾';
    font-size: 0.7rem;
    margin-left: 2px;
    transition: transform var(--transition);
}

.nav-dropdown:hover>a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-8px);
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: all var(--transition);
}

.dropdown-menu a:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-section {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-cta);
    font-weight: 700;
    margin-top: var(--space-2);
}

.dropdown-section:first-child {
    margin-top: 0;
}

/* CTA sticky header */
.header-cta {
    flex-shrink: 0;
    animation: pulse 2.5s ease infinite;
}

/* Burger menu mobile */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.burger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu mobile overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 19, 43, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: var(--space-8) var(--container-pad);
    overflow-y: auto;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    display: block;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    transition: all var(--transition);
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:hover {
    color: var(--color-cta);
    background: rgba(0, 250, 154, 0.05);
}

.mobile-nav .mobile-cta {
    margin-top: var(--space-6);
    text-align: center;
    color: var(--color-bg) !important;
    background: var(--color-cta) !important;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .burger {
        display: flex;
    }
}

@media (max-width: 640px) {
    .logo-text {
        display: none;
    }
}

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(11, 19, 43, 0.92) 0%,
            rgba(11, 19, 43, 0.70) 50%,
            rgba(11, 19, 43, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-block: var(--space-20);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-cta);
    margin-bottom: var(--space-5);
}



.hero h1 {
    font-size: var(--text-hero);
    line-height: 0.95;
    margin-bottom: var(--space-4);
    max-width: 100%;
}

.hero h1 .accent {
    color: var(--color-cta);
    display: block;
}

/* Two-column title layout */
.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(2rem, 5vw, 5rem);
    margin-bottom: var(--space-6);
}

.hero-title-left {
    flex-shrink: 0;
}

.hero-title-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
}

.hero-partner-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-partner-img {
    height: clamp(80px, 15vw, 160px);
    width: auto;
    border-radius: var(--radius-md);
    display: block;
    box-shadow: var(--shadow-lg);
    background-color: white;
    padding: var(--space-3) var(--space-4);
}

@media (max-width: 640px) {
    .hero-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-6);
    }
}

.hero-desc {
    font-size: var(--text-xl);
    color: rgba(248, 249, 250, 0.8);
    max-width: 540px;
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.hero-date-big {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.02em;
    display: inline-block;
}

.hero-venue {
    font-size: var(--text-base);
    color: var(--color-cta);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: center;
}

.hero-meta {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-12);
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(248, 249, 250, 0.7);
}

.hero-meta-item strong {
    color: var(--color-text);
    font-weight: 600;
}

.hero-meta-item .icon {
    color: var(--color-cta);
    font-size: 1rem;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(248, 249, 250, 0.4);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    z-index: 1;
    animation: fadeIn 2s ease 2s both;
}

.scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 250, 154, 0.6), transparent);
    animation: fadeIn 2s ease 2.5s both;
}

/* ── COUNTDOWN ──────────────────────────────────────────────── */
.countdown-section {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-12);
}

.countdown-label {
    text-align: center;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-cta);
    font-weight: 700;
    margin-bottom: var(--space-6);
}

#countdown-block {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.cd-number {
    font-family: var(--font-title);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-cta);
    min-width: 2ch;
    text-align: center;
    transition: all 0.3s ease;
    animation: glowPulse 3s ease infinite;
}

.cd-number.flip {
    animation: flipDown 0.25s ease both;
}

.cd-sep {
    font-family: var(--font-title);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: rgba(0, 250, 154, 0.3);
    line-height: 1;
    align-self: flex-start;
    margin-top: -2px;
}

.cd-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    font-weight: 700;
}

.countdown-date {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.countdown-live {
    text-align: center;
    font-size: var(--text-2xl);
    color: var(--color-cta);
    animation: pulse 1s ease infinite;
}

/* ── GRILLE ÉPREUVES ────────────────────────────────────────── */
.epreuves-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

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

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

.epreuve-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.epreuve-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-color, var(--color-cta));
    opacity: 0.8;
}

.epreuve-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: var(--card-color, rgba(0, 250, 154, 0.3));
}

.epreuve-card-date {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--card-color, var(--color-cta));
    margin-bottom: var(--space-3);
}

.epreuve-card-title {
    font-family: var(--font-title);
    font-size: var(--text-2xl);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.epreuve-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.epreuve-distances {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.epreuve-dist-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
}

.epreuve-dist-item .icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.epreuve-card-link {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--card-color, var(--color-cta));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: gap var(--transition);
}

.epreuve-card:hover .epreuve-card-link {
    gap: var(--space-3);
}

/* ── BANDEAU RASSURANCE ─────────────────────────────────────── */
.reassurance {
    background: linear-gradient(135deg, var(--color-surface), var(--color-surface-2));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-16);
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
}

.reassurance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
}

.reassurance-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 250, 154, 0.1);
    border: 1px solid rgba(0, 250, 154, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.reassurance-title {
    font-family: var(--font-title);
    font-size: var(--text-xl);
    font-weight: 600;
    text-transform: uppercase;
}

.reassurance-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ── PARTENAIRES ────────────────────────────────────────────── */
.partners {
    padding-block: var(--space-16);
}

.partners-label {
    text-align: center;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
}

.partner-logo {
    opacity: 0.45;
    filter: grayscale(100%);
    transition: all var(--transition);
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Partner placeholder */
.partner-placeholder {
    height: 48px;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.45;
    transition: opacity var(--transition);
}

.partner-placeholder:hover {
    opacity: 1;
}

/* ── MODALE VIP ─────────────────────────────────────────────── */
#vip-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(11, 19, 43, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

#vip-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#vip-modal {
    background: var(--color-surface);
    border: 1px solid rgba(0, 250, 154, 0.2);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    width: 100%;
    max-width: 520px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-slow);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 250, 154, 0.1);
    max-height: 90svh;
    overflow-y: auto;
}

#vip-overlay.active #vip-modal {
    transform: scale(1) translateY(0);
}

.vip-modal-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.vip-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(0, 250, 154, 0.1);
    border: 1px solid rgba(0, 250, 154, 0.25);
    border-radius: var(--radius-full);
    padding: 0.3rem 1rem;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-cta);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.vip-modal-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: var(--space-3);
}

.vip-modal-header p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}

#vip-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

#vip-submit {
    width: 100%;
    padding: 1rem;
    font-size: var(--text-lg);
    justify-content: center;
    margin-top: var(--space-2);
}

#vip-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: none;
}

#vip-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

#vip-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text);
    transform: rotate(90deg);
}

#vip-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
    padding: var(--space-8) 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 250, 154, 0.1);
    border: 2px solid var(--color-cta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

#vip-success h3 {
    font-size: var(--text-2xl);
    color: var(--color-cta);
}

#vip-success p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: var(--text-sm);
}

/* ── TIMELINE INTERACTIVE ───────────────────────────────────── */
.timeline-wrapper {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-cta) var(--color-surface);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-6);
}

#race-timeline {
    position: relative;
    min-width: 700px;
}

.tl-header {
    position: relative;
    height: 28px;
    margin-bottom: var(--space-4);
    margin-left: 140px;
}

.tl-tick {
    position: absolute;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 700;
    transform: translateX(-50%);
    white-space: nowrap;
}

.tl-grid {
    position: absolute;
    left: 140px;
    top: 28px;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tl-gridline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(-50%);
}

.tl-row {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-4);
    position: relative;
}

.tl-row-label {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-right: var(--space-4);
}

.tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tl-row-bar {
    flex: 1;
    position: relative;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
}

.tl-segment {
    position: absolute;
    top: 4px;
    bottom: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    cursor: pointer;
    transition: filter var(--transition), transform var(--transition);
    overflow: visible;
}

.tl-segment:hover {
    filter: brightness(1.25);
    transform: scaleY(1.2);
    z-index: 10;
}

.tl-icon {
    font-size: 0.8rem;
    pointer-events: none;
}

.tl-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a2544;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
    line-height: 1.6;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.tl-segment:hover .tl-tooltip {
    opacity: 1;
}

.tl-cutoff {
    color: var(--color-danger);
    font-weight: 700;
}

.tl-cutoff-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-danger);
    opacity: 0.8;
    transform: translateX(-50%);
}

.tl-cutoff-marker::before {
    content: '⏱';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
}

.tl-now {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-warning);
    pointer-events: none;
}

.tl-now::before {
    content: 'Maintenant';
    position: absolute;
    top: 0;
    left: 4px;
    font-size: var(--text-xs);
    color: var(--color-warning);
    white-space: nowrap;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
    background: #07101f;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-brand .logo {
    margin-bottom: var(--space-5);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
    color: var(--color-text-muted);
}

.footer-social a:hover {
    background: var(--color-cta);
    color: var(--color-bg);
    border-color: var(--color-cta);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: var(--font-title);
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: var(--space-5);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-col ul li a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-cta);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-block: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom-text {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-5);
}

.footer-bottom-links a {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    transition: color var(--transition);
}

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ── PAGE HERO (pages internes) ────────────────────────────── */
.page-hero {
    padding-top: calc(var(--header-height) + var(--space-16));
    padding-bottom: var(--space-16);
    background: linear-gradient(160deg, var(--color-surface) 0%, var(--color-bg) 100%);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 250, 154, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-cta);
    margin-bottom: var(--space-4);
}

.page-hero h1 {
    margin-bottom: var(--space-5);
}

.page-hero p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 680px;
    line-height: 1.7;
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-5);
}

.breadcrumb a {
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-cta);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.2);
}

/* ── INFO BLOCK ─────────────────────────────────────────────── */
.info-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-cta);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-5) var(--space-6);
    margin-block: var(--space-6);
}

.info-block.warn {
    border-left-color: var(--color-warning);
}

.info-block.danger {
    border-left-color: var(--color-danger);
}

.info-block p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ── STATS BAR ──────────────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6);
    text-align: center;
    border-right: 1px solid var(--color-border);
}

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

.stat-number {
    font-family: var(--font-title);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-cta);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

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

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--color-border);
    }
}

/* ── MAP CONTAINER ──────────────────────────────────────────── */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.map-container iframe {
    display: block;
    width: 100%;
    border: none;
}

.map-actions {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

/* ── PROGRAMME TABLE ────────────────────────────────────────── */
.programme-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.programme-table th,
.programme-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.programme-table th {
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.programme-table tr:last-child td {
    border-bottom: none;
}

.programme-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.programme-table .cutoff-row td {
    color: var(--color-danger);
    font-weight: 600;
}

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}