/*
Theme Name: Bativert Theme
Author: Nabil
Description: Thème sur mesure pour Bativert Equipement
Version: 1.4
*/

:root {
    --orange: #F29400;
    --red: #DB001B;
    --black: #1A171B;
    --gray: #9C9E9F;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --green: #25D366;
}

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

body {
    font-family: Arial, sans-serif;
    background: var(--light);
    color: var(--black);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* --- LE CONTAINER (CORRIGÉ POUR LE CENTRAGE) --- */
.container {
    width: min(1200px, 92%);
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
    display: block;
}

h1, h2, h3, h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 900;
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 45px;
    transition: transform 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: white;
    line-height: 1;
    text-transform: uppercase;
}

.logo-text .brand {
    font-size: 22px;
    font-weight: 900;
}

.logo-text .sub {
    font-size: 13px;
    letter-spacing: 3.5px;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

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

/* --- BOUTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-orange {
    background: var(--orange);
    color: white;
}

.btn-orange:hover {
    background: var(--red);
}

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

.btn-outline:hover {
    background: var(--orange);
}

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

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(.4);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.65) 50%, rgba(0,0,0,.2) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    color: white;
    max-width: 700px;
    padding-top: 60px;
}

.hero-tag {
    color: var(--orange);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero h2 {
    font-size: clamp(32px, 5vw, 62px);
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-line {
    width: 70px;
    height: 5px;
    background: var(--orange);
    margin-bottom: 30px;
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- PROOF BOXES (BADGES) --- */
.proof-wrapper {
    position: relative;
    margin-top: -80px;
    z-index: 20;
    padding-bottom: 100px;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,.1);
    overflow: hidden; /* Important pour les coins arrondis */
}

.proof-card {
    padding: 40px 25px;
    border-right: 1px solid #eee;
    border-bottom: 5px solid var(--orange);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: white;
}

/* EFFET DE SURVOL */
.proof-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 5;
}

.proof-card:last-child { border-right: none; }

/* ICONES ET STYLISATION */
.proof-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.proof-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.proof-card h3 { 
    margin-bottom: 8px; 
    font-size: 16px; 
    color: var(--black);
}

.proof-card p { 
    color: #666; 
    line-height: 1.5; 
    font-size: 13px; 
}

/* --- FOOTER --- */
footer {
    background: var(--black);
    color: #888;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
}

/* --- MOBILE BAR --- */
.mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    z-index: 1100;
}

.mobile-bar a {
    flex: 1;
    text-align: center;
    padding: 18px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.bar-call { background: #000; }
.bar-whatsapp { background: var(--green); }

/* --- RESPONSIVE TABLETTE --- */
@media(max-width:1024px) {
    nav, .navbar .btn { display: none !important; }
    .proof-grid { grid-template-columns: 1fr 1fr; }
    .proof-card:nth-child(2) { border-right: none; }
}

/* --- RESPONSIVE MOBILE FINAL --- */
@media(max-width:768px) {
    .mobile-bar { display: flex; }
    
    header { background: rgba(0, 0, 0, 0.8); }

    .hero {
        padding: 140px 0 80px 0 !important;
        min-height: auto !important;
        text-align: center;
    }

    .hero h2 { 
        font-size: 26px !important; 
        margin-bottom: 15px;
    }

    .hero-line { margin: 15px auto; }

    .hero-buttons {
        flex-direction: column !important;
        align-items: center;
        gap: 12px !important;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .proof-wrapper {
        margin-top: 0;
        padding: 20px 10px 60px 10px;
    }

    .proof-grid {
        grid-template-columns: 1fr;
        box-shadow: none;
        background: transparent;
    }

    .proof-card {
        margin-bottom: 12px;
        border-right: none;
        border-left: 5px solid var(--orange);
        border-bottom: 1px solid #eee;
        padding: 20px !important;
        border-radius: 8px;
    }
    
    .proof-card:hover {
        transform: none;
        box-shadow: none;
    }

    footer { padding-bottom: 120px !important; }
}