:root {
    --primary: #d63031;
    --primary-dark: #b71c1c;
    --secondary: #2d3436;
    --accent: #ff7675;
    --text: #2d3436;
    --text-light: #636e72;
    --bg: #ffffff;
    --bg-light: #f5f6fa;
    --border: #dfe6e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bottom navigation bar - modern and classy */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    z-index: 1000;
    border-top: 1px solid rgba(214, 48, 49, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.nav-item svg {
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item:active,
.nav-item.active {
    color: var(--primary);
    background: rgba(214, 48, 49, 0.08);
}

.nav-item.active {
    font-weight: 700;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

.nav-item:hover svg,
.nav-item:active svg,
.nav-item.active svg {
    transform: scale(1.1);
}

/* Add padding to body to account for fixed bottom nav */
body {
    padding-bottom: 80px;
}

.hero {
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%),
        linear-gradient(135deg, rgba(214, 48, 49, 0.3) 0%, transparent 70%),
        url('images/hero.jpg?v=real');
    background-size: cover;
    background-position: center 40%;
    background-attachment: scroll;
    background-repeat: no-repeat;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    will-change: background-position;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 60px 20px;
    will-change: transform, opacity;
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

.hero-logo {
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

.hero-logo img {
    height: 120px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
}

.tagline {
    font-size: 1.8rem;
    margin-bottom: 50px;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 20px 60px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1.4s ease-out;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(214, 48, 49, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

section {
    padding: 80px 20px;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
    font-weight: 800;
}

.intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
    text-align: center;
}

.about {
    background: var(--bg-light);
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.obstacles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.obstacle-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.obstacle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.obstacle-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.obstacle-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.obstacle-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.parcours-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.info-item {
    text-align: center;
    padding: 30px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.info-item p {
    font-size: 2.5rem;
    font-weight: 800;
}

.signup {
    background: var(--bg-light);
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.category-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.category-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.category-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

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

.sub-price {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.category-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.category-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 25px;
}

.category-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.event-details {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.event-details h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--secondary);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.detail strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

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

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-light);
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item svg {
    color: var(--primary);
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.social-links h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

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

.social-icons a {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

footer {
    background: var(--secondary);
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.cookie-banner {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    background: var(--secondary);
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: var(--accent);
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .bottom-nav {
        padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    }

    .nav-item {
        font-size: 0.7rem;
        padding: 6px 8px;
        min-width: 50px;
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    .hero {
        min-height: 100vh;
        background-attachment: scroll;
    }

    .hero-logo img {
        height: 80px;
    }

    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: 3px;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 16px 40px;
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .obstacles-grid {
        grid-template-columns: 1fr;
    }

    .parcours-info {
        grid-template-columns: 1fr;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .category-card.featured {
        transform: none;
    }

    .cookie-banner {
        bottom: 70px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
