/* style.css */

/* Global */
html, body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #212121;
    background: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #2e9d41;
    font-weight: 600;
    padding: 8px 20px;              /* espace autour du texte */
    border: 2px solid #2e9d41;      /* contour initial */
    border-radius: 25px;             /* coins arrondis */
    transition: all 0.3s ease;       /* transition douce */
    display: inline-block;           /* pour que padding et border fonctionnent */
    position: relative;              /* pour pseudo-élément si nécessaire */
    text-align: center;
    background-color: transparent;   /* fond transparent par défaut */
}

nav ul li a:hover {
    color: #fff;                     /* texte clair au survol */
    background-color: #257e34;       /* fond vert */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* ombre légère */
    border-color: #257e34;           /* contour assorti au fond */
}

/* Hero Section (fusionnée et corrigée) */
.hero {
    position: relative;
    background-image: url("accueil/bois.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 30vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* Verdure */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("accueil/verdure.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

/* Overlay sombre */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero > * {
    position: relative;
    z-index: 3;
}


.hero h1 {
    font-family: 'Playball', cursive;
    font-size: 3rem; /* Réduite pour équilibre */
    margin-bottom: 15px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero .button {
    background: #2e9d41;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.hero .button:hover {
    background: #257e34;
}

/* Sections */
section {
    padding: 80px 5%;
}


section h2 {
    font-family: 'Noto Serif', serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #4c3831;
}

section p {
    margin-bottom: 20px;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.service-card h3 {
    color: #2e9d41;
    margin-bottom: 15px;
}

.service-card p {
    color: #555;
}

/* Buttons */
button {
    background: #2e9d41;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #257e34;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 5%;
    background: #212121;
    color: #fff;
}

footer a {
    color: #2e9d41;
}

/* Formulaire */
form {
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    height: 150px;
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Sections de services (fusionnée) */
.service-section {
    padding: 80px 5%;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    color: #000000;
}

.service-content-flex {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.service-text {
    flex: 1 1 50%;
    padding-right: 20px;
}

.service-image {
    flex: 1 1 40%;
    max-width: 500px;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-image img:hover {
    transform: scale(1.05);
}

.service-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-section p {
    font-size: 1.2rem;
}

/* Backgrounds pour services (remplace les thèmes couleurs) */

#service-terrasse {
    background-image: url('terrasses/terrasses2.jpeg');
}

#service-interieure {
    background-image: url('https://www.maatkastenonline.be/storage/app/media/ONZE%20KASTEN%20-%20FR%20-%20NOS%20ARMOIRES/PLACARD-SOUS-L-ESCALIER/maatkastenonline-armoire-d-escalier-sur-mesure.jpg');
}

#service-exterieure {
    background-image: url('https://www.monamenagementjardin.fr/media/catalog/product/cache/8aaa6a9712f489d0a5edbc9e529668d8/t/o/tonnelle-bois-epicea-traite-ventelles-mobiles-veneto-12m-1.jpg');
}

#service-jardin {
    background-image: url('https://www.creationverte.com/wp-content/uploads/2022/03/paysage-retenue-rocaille-plantation-creation-verte-1.jpg');
}

/* Responsive global */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        height: 60vh;
        min-height: 300px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .service-section {
        min-height: 700px;
        padding: 60px 5%;
    }

    .service-content-flex {
        flex-direction: column;
    }

    .service-text {
        padding-right: 0;
        margin-bottom: 20px;
    }
}

/* Équipe - photos plus grandes, disposition horizontale */
.team-photos {
    display: flex;
    justify-content: center; /* centre l’ensemble */
    align-items: flex-start;
    gap: 40px; /* espace entre Quentin et Thomas */
    flex-wrap: wrap; /* pour mobile, permet de passer à la ligne */
}

.team-member {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1; /* chaque membre prend la moitié de l'espace disponible */
    min-width: 250px; /* pour éviter que ça devienne trop petit */
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px); /* léger effet au survol */
}

.member-image img {
    width: 120px;       /* taille du cercle plus grande */
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2e9d41; /* contour vert pour effet */
}

.member-info {
    flex: 1;
}

.member-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.member-info blockquote {
    margin: 0;
    font-style: italic;
    color: #555;
}

/* Responsive pour petits écrans */
@media (max-width: 767px) {
    .team-photos {
        flex-direction: column;
        gap: 20px;
    }

    .team-member {
        flex-direction: row;
        justify-content: flex-start;
    }

    .member-image img {
        width: 100px;
        height: 100px;
    }
}

/* Partenaires - cadre moderne */
.partners-card {
    background: #fff;
    border: 2px solid #2e9d41;
    border-radius: 15px;
    padding: 40px 30px;
    margin: 60px 5%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.partners-card h3 {
    font-family: 'Noto Serif', serif;
    color: #4c3831;
    margin-bottom: 15px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.partner-logo {
    width: 140px;
    height: auto;
    transition: transform 0.4s ease, opacity 0.4s ease;
    filter: grayscale(20%);
}

.partner-logo:hover {
    transform: scale(1.15);
    opacity: 1;
    filter: grayscale(0%);
}

/* Section réalisations */
.realisation-section {
    padding: 60px 5%;
}

.realisation-section h2 {
    font-family: 'Noto Serif', serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #4c3831;
    text-align: center;
}

.realisation-section p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #555;
}

/* Grille de galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Galerie moderne */
.framed-gallery img {
    width: 100%;
    border-radius: 15px;                       /* coins arrondis */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);   /* ombre douce pour relief */
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    border: 4px solid rgba(255,255,255,0.8);  /* cadre semi-transparent élégant */
    cursor: pointer;
    display: block;
    filter: brightness(0.95);                  /* léger assombrissement initial */
}

/* Hover dynamique */
.framed-gallery img:hover {
    transform: translateY(-10px) scale(1.05); /* effet de levée + zoom léger */
    box-shadow: 0 20px 35px rgba(0,0,0,0.25); /* ombre plus marquée */
    filter: brightness(1);                     /* image plus lumineuse */
}

/* Optionnel : effet “transition smooth” si plusieurs images */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Overlay pour l'image agrandie */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;           /* caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 50px 5%;
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.category-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

