/* RESET */
body, header, nav, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }
.bold {font-weight: bold}

body {background-color: #ffffff; color: #008081; font-family: poppins, sans-serif;}

/* --- HEADER --- */
header .logo img{ height: 150px;}


nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    text-decoration: none;
    font-family: poppins, sans-serif;
    font-size: 1.2em;
    color: #008081;
}
nav a:hover {
    text-decoration: underline
}

/* --- BURGER (mobile) --- */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.4s;
    transform-origin: center;
}


#info {display: flex;align-items: center; justify-content: space-around; width: 100%; position: sticky; z-index: 999; top: 0; background-color: #FFF; box-shadow: 0 1px 5px #999;}

#bandeau {background: url("../images/banniere.jpg"); width: 100%; background-size: cover; height: 400px }
#gauche-header {display: flex; align-items: center; padding: 10px 0;}
#tel {text-decoration: none; color:#008081; font-size: 2em; padding: 0 50px;font-family: poppins, sans-serif;}

main {display: flex; flex-direction: column; align-items: center; padding: 20px 0}
main section {padding: 10px 15%;}
main section article {display: flex}

main section article img {border-radius: 30px; width: 50%; height: auto; object-fit: cover; }
main section.imgG article img {margin: 30px 30px 30px 0;}
main section.imgD article img {margin: 30px 0 30px 30px;}

main section article div {width: 50%; padding: 1em;}

ul.list {column-count: 2; list-style-type: circle; list-style-position: inside}
ul.list1 {column-count: 1; list-style-type: circle; list-style-position: inside}

footer {background-color:#008081; color:#ffffff; font-size: 0.8em; padding: 5px 0}
footer p {display: flex; align-items: center; justify-content: center; gap: 0.5em;}
footer a {color: #ffffff; text-decoration: none}
footer a:hover {text-decoration: underline}
footer img {height: 25px; width: auto ; vertical-align: middle /* sécurité pour anciens navigateurs */; }

iframe.gmap {width: 600px; height: 450px}

section a {color:#008081;}

@media (max-width: 1600px) {
    nav ul { gap: 20px;}
    nav a {font-size: 1em;}
    header .logo img{ height: 125px;}
    #tel {font-size: 1.5em}
}
@media (max-width: 1240px) {
    h1 {padding-left: 10px; padding-right: 10px; font-size: 1em}
    main section {padding: 10px 0;}
    #info {flex-direction: column;}
    nav {padding-bottom: 10px;}
    main section article {flex-direction: column; align-items: center}
    main section article img {border-radius: 30px; width: 90%; height: auto; object-fit: cover;}
    main section#imgG article img,main section#imgD article img {margin: 10px 0;}
    main section article div {width: 90%; padding: 0;}

}


/* --- NAV MOBILE --- */
@media (max-width: 768px) {
    main {
        padding: 0 0 20px;
    }
    main section {padding: 0;}
    #gauche-header {flex-direction: column;}
    main section#imgG article img,main section#imgD article img {margin: 0;}

    main section article img {border-radius: 0px; width: 100%; height: auto; object-fit: cover;}
    nav ul {
        flex-direction: column;
        gap: 15px;
        padding: 30px;
    }

    nav {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        background: white;
        transition: 0.4s;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    }

    nav.open {
        left: 0;
    }

    .burger {
        display: flex;
        position: fixed;
        top: 10px;
        right: 10px;
    }

    /* Effet croix */

    .burger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) ;
    }
    .burger.open span:nth-child(2) {
        opacity: 0;
    }
    .burger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) ;
    }

    ul.list {column-count: 1;}
    iframe.gmap {width: 100%}

}

/* Grille des chantiers */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.project {
    width: 300px;           /* Tu peux ajuster ici */
    cursor: pointer;
    text-align: center;
}

.project img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project h2 {
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Petit effet hover */
.project:hover img {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* Lightbox (overlay) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;              /* caché par défaut */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    padding: 1rem;
}

.lightbox.show {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

/* Boutons flèches & fermeture */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    background: rgba(0,0,0,1);
    color: #fff;
    font-size: 2rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

.lightbox-close {
    top: -20px;
    right: 0;
}

.lightbox-prev {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Légende (titre du chantier) */
#lightbox-caption {
    color: #fff;
    margin-top: 0.8rem;
    text-align: center;
    font-size: 1rem;
}

main section article.project {flex-direction: column; align-items: center}

