/* VARIABLES DA */
:root {
    --bg-main: #0A0A0A;
    --bg-secondary: #141414;
    --border-color: #2A2A2A;
    --orange-cta: #E65C00;
    --blue-bmw: #0066B1;
    --text-main: #FFFFFF;
    --text-secondary: #A0A0A5;

    --font-family: 'Inter', sans-serif;
    --container-width: 1140px;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* TYPOGRAPHIE */
h1, h2, h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.text-orange { color: var(--orange-cta); }
.text-center { text-align: center; }

.section-title {
    font-size: 36px;
    margin-bottom: 24px;
}

.body-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.micro-copy {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* LAYOUT CONTAINER */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-secondary {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* BOUTONS */
.btn-primary {
    display: inline-block;
    background-color: var(--orange-cta);
    color: #fff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background-color: #cc5200; transform: translateY(-2px); }

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-main);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { border-color: var(--text-main); }

.btn-sm { padding: 10px 20px; font-size: 12px; }

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: background-color 0.3s, padding 0.3s;
}
.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo-img { height: 24px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s; }
.nav-links a:hover { color: var(--orange-cta); }

/* HERO SECTION (Vidéo) */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}
.hero-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.9) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.hero-title { font-size: 64px; margin-bottom: 24px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 20px; color: var(--text-secondary); margin-bottom: 40px; font-weight: 500; }

/* SPLIT SECTION (Texte + Mockup) */
.split-container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.split-section.reverse .split-container {
    flex-direction: row-reverse;
}
.split-text { flex: 1; }
.split-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* MOCKUP TELEPHONE */
.phone-mockup {
    width: 300px;
    height: 600px;
    border: 12px solid #222;
    border-radius: 40px;
    background-color: var(--bg-main);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px #333;
    flex-shrink: 0;
}
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: #222;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}
.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.screen-placeholder { filter: grayscale(100%) opacity(0.5); }

/* LISTE A PUCES */
.feature-list { list-style: none; margin-top: 32px; }
.feature-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.feature-list svg { width: 20px; flex-shrink: 0; }

/* GRILLES (4 et 3 colonnes) */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.b2b-grid { text-align: left; }

.feature-card {
    background-color: var(--bg-main);
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
    border-color: var(--orange-cta);
    transform: translateY(-5px);
}
.b2b-grid .feature-card { text-align: left; }

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px auto;
    color: var(--orange-cta);
    background-color: rgba(230, 92, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.feature-icon svg { width: 24px; }
.feature-card h3 { font-size: 16px; margin-bottom: 12px; }

/* FOOTER */
.footer { padding: 80px 0 40px 0; }
.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-logo { height: 20px; filter: grayscale(100%) opacity(0.5); }

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========================================= */
/* RESPONSIVE MOBILE & TABLETTE OPTIMISÉ     */
/* ========================================= */

@media (max-width: 992px) {
    .split-container, .split-section.reverse .split-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .feature-list li { justify-content: center; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 48px; }
    .b2b-grid .feature-card { text-align: center; }
}

@media (max-width: 768px) {
    /* 1. Compacter les marges globales pour réduire le scroll */
    .section { padding: 60px 0; }
    .footer { padding: 60px 0 30px 0; }
    .split-container { gap: 32px; }

    /* 2. Réduire la typographie */
    .hero-title { font-size: 32px; margin-bottom: 16px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 24px; }
    .section-title { font-size: 28px; margin-bottom: 16px; }
    .body-text { font-size: 15px; margin-bottom: 16px; }

    /* 3. Empiler toutes les grilles sur 1 colonne */
    .grid-4, .grid-3 {
        grid-template-columns: 1fr;
        gap: 16px; /* Moins d'espace entre les cartes */
    }

    /* 4. Réduire le volume des cartes */
    .feature-card { padding: 24px 16px; }
    .feature-icon { margin-bottom: 12px; width: 40px; height: 40px; }
    .feature-icon svg { width: 20px; }

    /* 5. Réduire le mockup téléphone pour qu'il tienne sur l'écran */
    .phone-mockup {
        width: 250px;
        height: 500px;
        border-width: 8px; /* Bordures plus fines */
    }
    .phone-mockup::before { width: 100px; height: 20px; }

    /* 6. Simplifier la navbar */
    .nav-links { display: none; } /* Cache les liens sur mobile (focus sur le CTA) */
    .nav-container { padding: 0 16px; }
    .btn-sm { padding: 8px 16px; font-size: 11px; }
}

/* RÉSEAUX SOCIAUX FOOTER */
.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.social-icon {
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
    color: var(--orange-cta);
    transform: translateY(-3px);
}