@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    /* Couleurs principales: Asphalte / Industriel */
    --bg-dark: #121417;
    /* Fond général */
    --bg-card: #1F2227;
    /* Fond des blocs */
    --bg-card-hover: #262930;

    /* Textes */
    --text-light: #F5F6F8;
    --text-muted: #A0A5AE;

    /* Accents: Orange Sécurité / Sport */
    --accent-orange: #FF5722;
    --accent-orange-hover: #E84A15;

    /* Utilitaires */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 87, 34, 0.3);

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

svg {
    max-width: 100%;
    height: auto;
}

/* ========================================= */
/* LAYOUT UTILITIES                          */
/* ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-accent {
    color: var(--accent-orange);
}

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

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

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

/* Boutons */
button,
.btn {
    background: var(--accent-orange);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

button:hover,
.btn:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

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

.btn-outline:hover {
    background: var(--accent-orange);
    color: #fff;
}

/* ========================================= */
/* HEADER & NAVIGATION                       */
/* ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(18, 20, 23, 0.85);
    /* Transparent initialement */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: padding var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(18, 20, 23, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-dot {
    color: var(--accent-orange);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
    opacity: 0.7;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-orange);
    transition: width var(--transition-smooth);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ========================================= */
/* SECTIONS GLOBALES                         */
/* ========================================= */
.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 4rem;
}

/* Section Héro (Accueil) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
    background: radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
}

#hero-3d-container {
    position: absolute;
    top: 60%;
    right: -5%;
    width: 60%;
    height: 100%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: auto;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-3d-container:active {
    cursor: grabbing;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

#hero-3d-loader {
    color: var(--accent-orange);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 1s infinite alternate;
}

/* Container du Moteur 3D */
.engine-3d-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: radial-gradient(circle at center, rgba(255, 69, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 70%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: grab;
}

.engine-3d-wrapper:active {
    cursor: grabbing;
}

.engine-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-orange);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulse 1s infinite alternate;
    transition: opacity 0.5s ease-out;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 87, 34, 0.1);
    color: var(--accent-orange);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 87, 34, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* ========================================= */
/* GRIDS ET CARTES                           */
/* ========================================= */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-brand-color, var(--accent-orange));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: var(--bg-card-hover);
}

.card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.card-icon {
    width: 50px;
    height: 50px;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    background: rgba(255, 87, 34, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Marques Specific */
.brand-card {
    display: flex;
    flex-direction: column;
}

.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-nationality {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.brand-nationality img.flag {
    width: 20px;
    border-radius: 2px;
}

.brand-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-sport {
    background: rgba(255, 87, 34, 0.1);
    color: var(--accent-orange);
}

.tag-premium {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.tag-urban {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.tag-history {
    background: rgba(158, 158, 158, 0.1);
    color: #9E9E9E;
}


/* ========================================= */
/* FOOTER                                    */
/* ========================================= */
.footer {
    background: var(--bg-card);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================= */
/* ANIMATIONS OBSERVER                       */
/* ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    #hero-3d-container {
        width: 100%;
        right: 0;
        opacity: 0.3;
        z-index: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simplification (Hamburger menu ideally needed here for production) */
    }

    /* Simple mobile nav override for 2 pages */
    .nav-links {
        display: flex;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}