* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #000000;
    background: white;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 60px;
    background: rgba(31, 41, 51, 0.95);
    backdrop-filter: blur(10px);

    z-index: 1000;
}
body {
    padding-top: 90px;
}

nav h2 {
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

#hero a {
    background: #c47f17;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
#hero {
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #eee;
}

#hero h1 {
    font-size: 45px;
    margin-bottom: 20px;
}

#hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

#hero a {
    background: #c47f17;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
#services {
    padding: 80px 60px;
    text-align: center;
    background: #f8f8f8;
}

#services h2 {
    font-size: 35px;
    margin-bottom: 40px;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.service {
    width: 300px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service:hover {
    transform: translateY(-10px);
}

.service h3 {
    margin-bottom: 15px;
    color: #c47f17;
}

.service h3 {
    margin-bottom: 15px;
}
#galerie {
    padding: 60px;
    text-align: center;
}

#galerie h2 {
    font-size: 35px;
    margin-bottom: 40px;
}

.galerie-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.chantier {
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.chantier img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}
#contact {
    padding: 60px;
    text-align: center;
    background: #f2f2f2;
}

#contact h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

#contact p {
    margin-bottom: 25px;
}

#contact a {
    background: #222;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
}

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}
h1, h2, h3 {
    font-weight: 700;
}

#hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("images/chantier.jpg");

    background-size: cover;
    background-position: center;

    color: white;
}
nav a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #c47f17;
}
@media (max-width: 768px) {

    nav {
        flex-direction: column;
        padding: 20px;
    }

    nav ul {
        margin-top: 20px;
        gap: 15px;
    }

    #hero h1 {
        font-size: 32px;
    }

    #hero p {
        font-size: 18px;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 90%;
    }

    .galerie-container {
        flex-direction: column;
        align-items: center;
    }

    .photo {
        width: 90%;
    }
} 
#presentation {
    padding: 60px;
    text-align: center;
}

#presentation h2 {
    font-size: 35px;
    margin-bottom: 25px;
}

#presentation p {
    max-width: 800px;
    margin: auto;
    font-size: 18px;
    line-height: 1.6;
}
.galerie-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.chantier {
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.chantier h3 {
    height: 100px;
    padding: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
}
.photos-chantier {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;

    max-height: 250px;
    overflow-y: scroll;
}
.photos-chantier::-webkit-scrollbar {
    width: 8px;
}

.photos-chantier::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 10px;
}

.photos-chantier img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}
.chantier {
    transition: transform 0.3s, box-shadow 0.3s;
}

.chantier:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}
.lightbox img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    border-radius: 10px;
}
.contact-info {
    margin: 30px 0;
    font-size: 18px;
}

.contact-info p {
    margin: 10px;
}

.contact-button {
    display: inline-block;
    background: #c47f17;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    background: #c47f17;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #a66a12;
}
section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}
#avantages {
    padding: 80px 60px;
    background: white;
    text-align: center;
}

#avantages h2 {
    font-size: 35px;
    margin-bottom: 50px;
}

.avantages-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.avantage {
    padding: 30px;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.avantage:hover {
    transform: translateY(-8px);
}
.logo img {
    height: 70px;
    display: block;
}
.hero-logo {
    width: 180px;
    margin-bottom: 25px;
}