/* --- RESET & VARIABLES --- */
:root {
    --primary-color:forestgreen; /* Bleu professionnel */
    --secondary-color:forestgreen; /* Orange pour les Call-to-Action */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* --- HEADER & NAV --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}
.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* Important pour le menu mobile */
}

/* Style du Logo */
.logo-img {
    height: 60px;
    width: auto;
    vertical-align: middle;
}

/* Menu de navigation (Version Desktop par défaut) */
.nav-links {
    display: flex; /* Affiché en ligne sur PC */
    align-items: center;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

/* Le bouton burger est caché sur PC */
.menu-button {
    display: none; 
    flex-direction: column;
    gap: 5px;
    /*background: none;*/
    border: none;
    cursor: pointer;
}
.menu-button .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Bouton devis */
.btn-devis {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 4px;
}
.btn-devis:hover {
    background-color: #228b10;
}

/* Barre de recherche */
.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    margin-left: 15px;
}
.search-box input {
    border: none;
    padding: 5px 10px;
    outline: none;
}
.search-box button {
    background: var(--light-bg);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 102, 37, 0.8), rgba(0,51,102,0.6)), url('https://source.unsplash.com/1600x900/?business,logistics') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-primary {
     background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 10px;
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color); /* Inversion au survol */
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- SERVICES GRID --- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-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;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--secondary-color);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}

/* --- NEWS & NEWSLETTER --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-content {
    padding: 20px;
}

.news-content .date {
    font-size: 0.8rem;
    color: #888;
}

.newsletter {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter form {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter input {
    padding: 10px;
    width: 300px;
    border-radius: 4px;
    border: none;
}

/* --- FOOTER --- */
footer {
    background: #222;
    color: #ccc;
    padding-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-col p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    background: #111;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
}
/* --- RESPONSIVE MOBILE (Tablette et Mobile) --- */
@media (max-width: 900px) { /* Changé à 900px pour inclure les tablettes */
    
    /* Afficher le bouton burger */
    .menu-button {
        display: flex;
        z-index: 1001; /* Au dessus du menu */
    }

    /* Configuration du menu mobile */
    .nav-links {
        display: none; /* Caché par défaut */
        position: absolute;
        top: 100%; /* Juste en dessous de la barre de menu */
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* Classe ajoutée par JS pour afficher le menu */
    .nav-links.active {
        display: flex; 
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    /* Ajustement barre de recherche sur mobile */
    .search-box {
        display: none; /* Souvent on cache la recherche sur mobile ou on la met dans le menu */
    }
    
    /* Animation du bouton burger (Optionnel - transforme en X) */
    .menu-button.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-button.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-button.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: block; /* Masquer la top-bar sur très petits écrans si nécessaire */
    }
    .hero h2 {
        font-size: 2rem;
    }
    .newsletter form {
        flex-direction: column;
        align-items: center;
    }
    .newsletter input {
        width: 100%;
    }
}