:root {
    /* Color Palette */
    --forest-green: #192b27;
    --forest-green-light: #243f39;
    --pale-green: #d5e2af;
    --white: #ffffff;
    --off-white: #f8fcf5;
    --text-dark: #111111;
    --text-light: #ffffff;
    --text-muted: #666666;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Layout & Effects */
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(25, 43, 39, 0.05);
    --shadow-md: 0 10px 15px rgba(25, 43, 39, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(25, 43, 39, 0.1);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--forest-green);
    background-color: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 92px;
    /* Hauteur de la navbar */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

h2.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--pale-green);
    border-radius: 2px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background-color: var(--forest-green);
    color: var(--pale-green);
}

.btn-primary:hover {
    background-color: var(--forest-green-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 43, 39, 0.2);
}

.btn-secondary {
    background-color: var(--pale-green);
    color: var(--forest-green);
}

.btn-secondary:hover {
    background-color: #c7d896;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(213, 226, 175, 0.5);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar (Glassmorphism) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--glass-shadow);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--forest-green);
}

.nav-links a:hover {
    color: var(--pale-green);
}

.nav-links .btn {
    padding: 0.8rem 1.8rem;
    color: var(--pale-green);
}

.nav-links .btn:hover {
    color: var(--pale-green);
}

.nav-links .btn:hover {
    color: var(--pale-green);
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 92px);
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    overflow: hidden;
    background-color: var(--forest-green);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--forest-green);
    background-image: linear-gradient(135deg, rgba(25, 43, 39, 0.9) 0%, rgba(25, 43, 39, 0.4) 100%), url('https://images.unsplash.com/photo-1598902108854-10e335adac99?auto=format&fit=crop&q=80&w=1920');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-logo-main {
    max-width: 200px;
    width: 50%;
    height: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    object-fit: contain;
}

.hero-subtitle {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--white);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 300;
    font-style: italic;
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .navbar {
        display: none;
    }

    .hero {
        min-height: 100vh;
        padding-top: 2rem;
    }

    .hero-logo-main {
        margin-top: 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .section {
        padding: 4rem 0;
    }
}

.hero p {
    color: var(--pale-green);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    max-width: 500px;
}

.about-image::before {
    content: '';
    display: block;
    padding-top: 100%;
    /* Rend l'image carrée ou adapte le ratio */
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content {
    flex: 1;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--forest-green);
    font-style: italic;
    margin-bottom: 2rem;
    border-left: 4px solid var(--pale-green);
    padding-left: 1.5rem;
}

.about-signature {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--forest-green-light);
}

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

.service-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(25, 43, 39, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--pale-green);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--pale-green);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--forest-green);
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Gallery - Pseudo CMS */
.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(25, 43, 39, 0.9), transparent);
    color: var(--white);
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: var(--pale-green);
    margin: 0;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--off-white);
    transition: var(--transition);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pale-green);
    box-shadow: 0 0 0 3px rgba(213, 226, 175, 0.3);
}

/* Footer */
.footer {
    background-color: var(--forest-green);
    color: var(--pale-green);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom {
    text-align: right;
}

.footer p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Social Icons */
.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: var(--transition);
}

/* Contact Social */
.contact-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.contact-social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition);
}



.contact-social:hover .contact-social-icon {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

.contact-social:hover a {
    color: var(--forest-green-light);
}

/* Footer Social */
.footer-social .social-icon {
    filter: brightness(0) saturate(100%) invert(97%) sepia(13%) saturate(543%) hue-rotate(27deg) brightness(92%) contrast(85%);
    /* Pale green */
    opacity: 0.8;
}

.footer-social:hover .social-icon {
    opacity: 1;
    transform: scale(1.1) translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }

    .about-image {
        max-width: 100%;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom {
        text-align: center;
    }
}

h1 {
    font-size: 2.5rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Mentions Légales */
.legal-section {
    padding-top: 4rem;
}

.legal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--forest-green);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--pale-green);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.legal-content strong {
    color: var(--forest-green);
}

.legal-link {
    color: inherit;
    text-decoration: underline;
    opacity: 0.8;
    transition: var(--transition);
}

.legal-link:hover {
    color: var(--pale-green);
    opacity: 1;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Fond transparent sombre */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    object-fit: contain;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--white);
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 300;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--white);
    font-size: 30px;
    font-weight: bold;
    transition: 0.3s ease;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.4);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--pale-green);
    background-color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    color: var(--white);
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    z-index: 2001;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--pale-green);
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        font-size: 20px;
        padding: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}