/* Variables CSS */
:root {
    --primary-color: #E0DE35;
    --secondary-color: #AACA37;
    --accent-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-accent: Georgia, serif;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-accent);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
    font-size: small;
    text-align: justify;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    display: flex;
    background: linear-gradient(to right, #E0DE35, #AACA37);
    color: var(--text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-wrapper {
    background-color: white;
    padding: 0 50px 0 20px;
    display: flex;
    align-items: center;
    margin-top: -1rem;
    margin-bottom: -1.5rem;
    z-index: 1001;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.logo {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-img {
    height: 100px;
    width: auto;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

nav ul li a:hover {
    font-weight: 800;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Background Logo Watermark */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 80%; 
    height: 90%;
    background-image: url('img/logo-full-med.webp');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    opacity: 0.07; /* Un peu plus visible */
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* Hero section doesn't need watermark over background image */
.hero::before {
    display: none;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(44, 62, 80, 0.83), rgba(78, 125, 156, 0.54)), url('img/Application-vernis-bois-700x394.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
    scroll-margin-top: 100px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: white;
    scroll-margin-top: 100px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 5px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

/*
.about-image img:hover {
    transform: scale(1.05);
}
*/

.about-content {
    flex: 1;
    min-width: 300px;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--light-color);
    scroll-margin-top: 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

/* Ajout du style pour les éléments de la galerie */
.gallery-item p {
    text-align: center;
    font-size: small;
    margin: 5px;
}

.gallery-item > p > a {
	display: block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.gallery-item > p > a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background-color: white;
    scroll-margin-top: 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 5px;
    height: 315px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    transition: transform 0.5s;
    cursor: pointer;
    min-height: 0;
    margin-top: 10px;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light-color);
    scroll-margin-top: 100px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.contact-form .btn {
    width: 100%;
}

.btn:hover {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background: linear-gradient(to right, #E0DE35, #AACA37);
    color: var(--text-color);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content p {
	text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.social-links a {
    color: var(--text-color);
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Lightbox styles */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#lightbox img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border: 2px solid white;
    border-radius: 5px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ccc;
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 0 20px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-wrapper {
        padding: 0 10px;
    }

    section::before {
        width: 100%;
        right: 0;
        background-position: center;
        opacity: 0.05;
    }

    .logo-img {
        height: 70px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 1rem 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 0.5rem;
        color: white;
    }

    nav ul li a:hover {
        font-weight: 800;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .hero h1 {
        font-size: 2rem;
    }
}
