/* =====================================================
   EXTREME DYNAMICS CREW
   NEON / CYBERPUNK / IMAGES / EFFECTS
   COMPATIBLE CODE EXISTANT
   ===================================================== */

/* === VARIABLES === */
:root {
    --bg-color: #050505;
    --bg-card: #0f0f11;
    --primary-neon: #ff004c;
    --secondary-neon: #00f3ff;
    --text-main: #ffffff;
    --text-muted: #888888;

    --font-title: 'Teko', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-tech);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,0,76,0.06), transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(0,243,255,0.06), transparent 25%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* === CONTAINER === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   HEADER
   ===================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-neon);
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon);
    transition: 0.3s;
}

nav a:hover {
    color: var(--secondary-neon);
}

nav a:hover::after {
    width: 100%;
}

/* =====================================================
   BOUTONS
   ===================================================== */
.btn-glitch {
    padding: 12px 32px;
    border: 2px solid var(--primary-neon);
    background: transparent;
    color: var(--primary-neon);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-glitch:hover {
    background: var(--primary-neon);
    color: white;
    box-shadow:
        0 0 20px rgba(255,0,76,0.7),
        0 0 40px rgba(0,243,255,0.4);
}

/* =====================================================
   HERO (TON CODE ACTUEL)
   ===================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) contrast(1.2);
    transform: scale(1.1);
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    color: var(--secondary-neon);
    letter-spacing: 6px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 8.5rem;
    line-height: 0.85;
    text-transform: uppercase;
    text-shadow: 5px 5px 0 rgba(0,0,0,0.6);
}

.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px white;
}

.hero h1 .highlight {
    color: var(--primary-neon);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 30px rgba(255,0,76,0.6);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 100px 0 50px;
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 4rem;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-main);
    position: relative;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: 4px;
    left: 4px;
    color: var(--primary-neon);
    opacity: 0.25;
    z-index: -1;
}

/* =====================================================
   CARDS / GRID
   ===================================================== */
.card,
.car-card {
    background: var(--bg-card);
    border: 1px solid #222;
    overflow: hidden;
    transition: 0.4s;
}

.card:hover,
.car-card:hover {
    border-color: var(--primary-neon);
    transform: translateY(-6px);
    box-shadow:
        0 15px 40px rgba(0,0,0,0.6),
        0 0 30px rgba(255,0,76,0.5);
}

.card-img-wrap {
    height: 60%;
    overflow: hidden;
}

.card-img-wrap img {
    height: 100%;
    transition: 0.6s;
}

.car-card:hover img {
    transform: scale(1.1);
}

.card-info {
    padding: 20px;
    background: #151518;
}

.card-info h3 {
    font-family: var(--font-title);
    font-size: 2rem;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =====================================================
   FOOTER (CORRIGÉ)
   ===================================================== */
footer {
    background: #000;
    border-top: 4px solid var(--primary-neon);
    padding: 80px 0 30px;
}

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

.footer-col h4 {
    font-family: var(--font-display);
    margin-bottom: 20px;
}

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

.footer-col ul li a {
    color: #666;
}

.footer-col ul li a:hover {
    color: var(--primary-neon);
    padding-left: 6px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #111;
    padding-top: 25px;
    font-size: 0.8rem;
    color: #444;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 4.5rem;
    }

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

    nav ul {
        gap: 20px;
    }
}

        /* --- HERO SECTION --- */
        .hero {
            height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            overflow: hidden;
        }

        /* Image de fond avec overlay */
        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://picsum.photos/seed/sportscar_dark/1920/1080.jpg') no-repeat center center/cover;
            filter: brightness(0.4) contrast(1.2);
            z-index: -2;
            transform: scale(1.1); /* Pour le parallax */
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 200px;
            background: linear-gradient(to top, var(--bg-color), transparent);
            z-index: -1;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            color: var(--secondary-neon);
            letter-spacing: 5px;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .hero h1 {
            font-family: var(--font-title);
            font-size: 9rem;
            line-height: 0.8;
            text-transform: uppercase;
            color: white;
            margin-bottom: 20px;
            text-shadow: 4px 4px 0px rgba(0,0,0,0.5);
        }

        .hero h1 span {
            display: block;
            color: transparent;
            -webkit-text-stroke: 2px white;
        }

        .hero h1 span.highlight {
            color: var(--primary-neon);
            -webkit-text-stroke: 0;
            text-shadow: 0 0 30px rgba(255, 0, 76, 0.5);
        }

        /* --- FEATURED CARS (MASONRY STYLE) --- */
        .featured {
            padding: 100px 0;
        }

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

        .car-card {
            background: var(--bg-card);
            border: 1px solid #222;
            position: relative;
            overflow: hidden;
            transition: 0.4s;
            group-hover:;
        }

        .car-card:hover {
            border-color: var(--primary-neon);
            transform: translateY(-5px);
            box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        }

        /* Tailles différentes pour l'effet Bento / Masonry */
        .card-lg {
            grid-column: span 8;
            height: 500px;
        }
        .card-sm {
            grid-column: span 4;
            height: 500px;
        }
        
        /* Mobile Reset */
        @media (max-width: 900px) {
            .card-lg, .card-sm { grid-column: span 12; height: 350px; }
            .hero h1 { font-size: 5rem; }
            .skew-box, .unskew { transform: none !important; }
        }

        .card-img-wrap {
            height: 70%;
            overflow: hidden;
            position: relative;
        }

        .card-img-wrap img {
            width: 100%;
            height: 100%;
            transition: 0.6s;
        }

        .car-card:hover .card-img-wrap img {
            transform: scale(1.1);
            filter: grayscale(0%);
        }

        .card-info {
            padding: 20px;
            height: 30%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background: #151518;
            position: relative;
        }

        /* Triangle décoratif */
        .card-info::before {
            content: '';
            position: absolute;
            top: -20px;
            right: 0;
            border-width: 20px;
            border-style: solid;
            border-color: transparent var(--bg-card) transparent transparent;
        }

        .card-info h3 {
            font-family: var(--font-title);
            font-size: 2.5rem;
            text-transform: uppercase;
        }

        .specs-bar {
            display: flex;
            justify-content: space-between;
            font-family: var(--font-tech);
            font-size: 1.1rem;
            color: var(--text-muted);
        }

        .spec-item span {
            color: var(--secondary-neon);
            font-weight: 700;
        }

        /* --- MARQUEE (SCROLLING TEXT) --- */
        .marquee {
            background: var(--primary-neon);
            color: var(--bg-color);
            padding: 15px 0;
            overflow: hidden;
            white-space: nowrap;
            transform: rotate(-2deg) scale(1.05);
            margin: 50px 0;
            border-top: 2px solid white;
            border-bottom: 2px solid white;
        }

        .marquee-content {
            display: inline-block;
            animation: scroll 20s linear infinite;
            font-family: var(--font-title);
            font-size: 2rem;
            text-transform: uppercase;
            font-weight: 700;
        }

        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* --- TECH / PERFORMANCE SECTION --- */
        .tech-section {
            padding: 100px 0;
            background: #080808;
            position: relative;
        }

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

        .tech-img {
            position: relative;
        }
        
        .tech-img img {
            clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
            border: 2px solid var(--secondary-neon);
        }

        .tech-content h2 {
            font-family: var(--font-title);
            font-size: 4rem;
            margin-bottom: 20px;
            line-height: 1;
        }

        .tech-content p {
            font-size: 1.2rem;
            color: var(--text-muted);
            margin-bottom: 30px;
        }

        .stat-row {
            display: flex;
            gap: 40px;
            border-left: 4px solid var(--primary-neon);
            padding-left: 30px;
            margin-bottom: 40px;
        }

        .stat h4 {
            font-size: 3rem;
            color: white;
            font-family: var(--font-display);
        }
        .stat span {
            color: var(--secondary-neon);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 0.9rem;
        }

        /* --- FOOTER --- */
        footer {
            background: #000;
            padding: 80px 0 30px;
            border-top: 4px solid var(--primary-neon);
            position: relative;
        }

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

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

        .footer-col ul li { margin-bottom: 12px; }
        .footer-col ul li a { color: #666; font-weight: 500; }
        .footer-col ul li a:hover { color: var(--primary-neon); padding-left: 5px; }

        .newsletter input {
            width: 100%;
            padding: 15px;
            background: #111;
            border: 1px solid #333;
            color: white;
            font-family: var(--font-tech);
            margin-bottom: 10px;
            outline: none;
        }
        
        .newsletter input:focus { border-color: var(--secondary-neon); }

        .newsletter button {
            width: 100%;
            padding: 15px;
            background: var(--primary-neon);
            border: none;
            color: white;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
            transition: 0.3s;
            letter-spacing: 1px;
        }

        .newsletter button:hover { background: white; color: black; }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid #111;
            color: #444;
            font-size: 0.8rem;
        }

        /* Effets de dégradés de texte pour le style */
        .gradient-text {
            background: linear-gradient(90deg, #fff, var(--secondary-neon));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
