* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Lato, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 140px; /* espace pour top-bar + navbar fixes */
}

/* Conteneur central */

/* Navbar en haut */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
}

.top-bar {
    position: fixed;
    top: 105px; /* dépend de la hauteur de ta navbar */
    left: 0;
    width: 100%;
    background-color: #2e6613;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    z-index: 999; /* juste sous la navbar */
}

/* Top-bar liens */
.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

.top-bar .right span {
    margin-left: 15px;
}

/* Navigation links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #4caf50;
}

/* Burger menu */
.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        text-align: center;
        z-index: 998;
    }

    #menu-toggle:checked + .menu-icon + .nav-links {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    .main-nav {
        flex-wrap: wrap;
    }
}
/* Logo */
.logo {
    height: 75px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

/* Top-bar SOUS la navbar */
.top-bar {
    position: fixed;
    top: 105px; /* dépend de la hauteur de ta navbar */
    left: 0;
    width: 100%;
    background-color: #2e6613;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    z-index: 999; /* juste sous la navbar */
}

/* Top-bar liens */
.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

.top-bar .right span {
    margin-left: 15px;
}

/* Navbar en haut */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
}

/* Logo */
.logo {
    height: 75px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}
/* Pour positionner le sous‑menu */
.services-item {
    position: relative;           /* référence pour le sous‑menu */
}

/* Sous‑menu caché par défaut */
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;                    /* juste sous le lien parent */
    left: 0;
    background: #f5f5f5;
    border: 1px solid #ddd;
    min-width: 220px;
    display: none;                /* masqué */
    z-index: 10;
}

/* Style des liens du sous‑menu */
.submenu > li > a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.submenu > li > a:hover {
    background: #eaeaea;
    color: #c62828;
}


.hero-banner {
    position: relative;
    height: 300px;
    background-image: url('images/hero_contact.png'); /* Peinture intérieure */
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner .overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Overlay semi-transparent */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5em;
    margin: 0;
}

.hero-content p {
    font-size: 1.2em;
    margin-top: 10px;
}

.contact-banner {
    background-color: #b22222;
    color: white;
    padding: 30px 20px;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 45px
}

main {
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 15px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    margin-top: 20px;
    padding: 12px;
    background-color: #b22222;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.contact-form button:hover {
    background-color: #8b1a1a;
}

.site-footer {
  background-color: #2e6613;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  margin-top: 60px;
}
