/* --- 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);
}

.logo h1 {
    color:darkgreen;
    font-size: 1.8rem;
}

.logo span {
    color: forestgreen;

}

.nav-links {
    display: flex;
    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);
}

/* Bouton spécial Devis dans le menu */
.btn-devis {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 4px;
}

.btn-devis:hover {
    background-color: #228b10;
}

.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;
}

.burger {
    display: none;
    font-size: 1.5rem;
    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 --- */
@media (max-width: 768px) {
    .nav-links, .search-box {
        display: none; /* Cacher le menu par défaut sur mobile pour simplifier l'exemple */
    }
    
    .burger {
        display: block;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .newsletter form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter input {
        width: 100%;
    }
}
.logo-img{
    height: 60px;
    width: auto;
    vertical-align: middle;
}
.actu-image{
    height: 30px;
    width: auto;
}