/* --- Variables & Reset --- */
:root {
    --primary-color: #0056b3; /* Bleu Transport */
    --secondary-color: #004494; /* Bleu foncé hover */
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Utilitaires --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.bg-light { background-color: var(--gray-light); }
.text-center { text-align: center; }

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* --- Boutons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.logo .highlight { color: var(--primary-color); }

.nav-links { display: flex; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary-color); }

.btn-nav {
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: 4px;
}

/* Burger Menu (Mobile) */
.burger { display: none; cursor: pointer; }
.burger div {
    width: 25px; height: 3px; background-color: var(--text-dark);
    margin: 5px; transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-image: url('../img/truck.jpg'); /* Image de fond */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Assombrit l'image */
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-buttons { margin-top: 30px; }
.hero-buttons .btn { margin: 0 10px; }

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.card:hover { transform: translateY(-10px); }

.card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

/* --- À Propos --- */
.values-list { margin-top: 20px; }
.values-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.values-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}
.alert.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* --- Footer --- */
footer {
    background: #111;
    color: #aaa;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-info h3 { color: var(--white); margin-bottom: 15px; }
.footer-links a { color: var(--white); text-decoration: underline; }

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 70px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links li { margin: 30px 0; opacity: 0; }
    .burger { display: block; }
    
    .nav-active { transform: translateX(0%); }
    
    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0); }
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-buttons { display: flex; flex-direction: column; gap: 10px; }
}
