:root {
    --primary-color: #95c11f;
    --secondary-color: #3e9b1af1;
    --text-color: #333;
    --bg-color: #f4f7f9;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    height: 40px;
    justify-content: flex-start;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.hero {
    background-image: url('../images/camion.jpg');
    padding: 150px 0 100px;
    text-align: center;
    height: 100vh;
    background-size: cover;
    background-position: -1px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the last value (0.5) to control darkness */
    z-index: 1;
}

.hero h1,
.hero p,
.hero .cta-button {
    position: relative;
    z-index: 2;
    color: white; /* Ensure text is visible on darker background */
}

.hero h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

.analysis {
    padding: 50px 0;
}

.analysis h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

#data-visualization {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    margin-top: 20px;
}

.bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.bar {
    width: 40px;
    background-color: var(--primary-color);
    margin-bottom: 10px;
    transition: height 0.5s ease;
}

.label {
    font-size: 0.8em;
    text-align: center;
    margin-bottom: 5px;
}

.value {
    font-weight: bold;
}

footer {
    background-color: var(--bg-color);
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
    color: #666;
}