* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Lato, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 135px; /* espace pour top-bar + navbar fixes */
}

/* Header */
.site-header {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
    padding: 20px 0;
}

/* 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;
}

/* 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;
}

/* Icône Facebook dans la top‑bar */
.top-bar .social {
    margin-left: 12px;           /* espace après le téléphone */
    color: #ffffff;              /* assure la même couleur que le texte */
    text-decoration: none;
    font-size: 18px;             /* adapte la taille si besoin */
}

.top-bar .social:hover {
    color: #cfd8dc;              /* léger changement au survol (optionnel) */
}

/* 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;
    }
}

a {
    color: #b88950;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Bannière */
.hero {
    background: url('images/hero_Peinture_Terasse.png') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: zoomIn 10s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% {
        background-size: 100%;
    }
    100% {
        background-size: 110%;
    }
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

/* Titres */
h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 1rem;
    margin-top: 2rem;
    position: relative;
}

/* Listes */
ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style-type: disc;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
/* Animations douces */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.site-footer {
  background-color: #2e6613;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  margin-top: 60px;
}
