/* --- Variables & Reset --- */
:root {
    --primary-color: #2E5D31;
    /* Deep Forest Green */
    --secondary-color: #558B2F;
    /* Lighter Green */
    --accent-color: #E65100;
    /* Burnt Orange for vibrancy/call to action */
    --dark-bg: #1B261C;
    --light-bg: #F5F7F5;
    --white: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Outfit', sans-serif;
    /* Switch to Outfit for a cleaner, more modern geometric look */
    --font-body: 'Open Sans', sans-serif;
    /* Excellent readability */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.lead {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #FF6D00;
    border-color: #FF6D00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 81, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 700;
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.btn-more {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-bg);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--dark-bg);
    position: relative;
}

.nav-links a:not(.btn-nav):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover:after {
    width: 100%;
}

.btn-nav {
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.phone-cta {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.phone-cta:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-bg);
    transition: var(--transition);
}

/* Wave Divider (Removed per prompt generally if not needed, but kept if user likes it. 
   Assuming keep for now unless explicit remove). Actually, user didn't ask to remove it,
   but previous version had a class `custom-shape-divider` which might be broken or empty.
   I'll leave the style but ensure it works if used. */
.custom-shape-divider-bottom-1689945000 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1689945000 svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom-1689945000 .shape-fill {
    fill: var(--body-bg);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    background-image: url('images/Gemini_Generated_Image_1j7wse1j7wse1j7w.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    padding-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4.5rem;
    /* Increased size */
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
    /* Stronger shadow */
    letter-spacing: -2px;
    margin-bottom: 25px;
    font-weight: 800;
    /* Bolder */
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.2);
    /* Subtle backing for readability */
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 50px;
    /* Moved up slightly */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    font-size: 2.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.tax-credit-badge {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tax-credit-badge i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 10px;
}

.tax-credit-badge span {
    font-weight: 600;
    font-size: 1rem;
}

/* --- Services Section --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.separator {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 20px;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer base shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncier transition */
    border-bottom: 4px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--accent-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: #F1F8E9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-card p {
    color: var(--text-light);
}

/* --- Modals --- */
.modal-container {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-container.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-container.show .modal-content {
    transform: translateY(0);
}

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

.close-modal:hover {
    background: rgba(0, 0, 0, 0.6);
}

.modal-header {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.service-photo {
    position: relative;
    overflow: hidden;
}

.service-photo img {
    width: 100%;
    display: block;
}

.modal-header-media {
    position: absolute;
    inset: 0;
}

.modal-header-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.modal-title {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: var(--white);
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
    z-index: 2;
}

.modal-body-content {
    padding: 40px;
}

.modal-body-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.modal-gallery .gallery-photo {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
}

.modal-gallery .gallery-photo img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* --- Avant / Après --- */
.before-after-section {
    margin-top: 40px;
}

.ba-pair {
    display: flex;
    flex-wrap: wrap;
    /* Allows stacking on very small screens */
    gap: 15px;
    margin-bottom: 30px;
    align-items: stretch;
}

.ba-item {
    flex: 1 1 calc(50% - 15px);
    position: relative;
    min-width: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.ba-photo {
    height: 100%;
}

.ba-photo img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.ba-item:hover .ba-photo img {
    transform: scale(1.03);
}

.ba-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.ba-badge.before {
    background-color: var(--dark-bg);
}

.ba-badge.after {
    background-color: var(--accent-color);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-media {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox.show img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 3001;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}


/* --- Advantages Section --- */
.advantages {
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.advantages-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.advantages-text {
    flex: 1;
}

.advantages h2 {
    color: var(--white);
}

.advantages ul {
    margin: 30px 0;
}

.advantages li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.advantages li i {
    color: #81C784;
    background: rgba(255, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 0.9rem;
}

.advantages-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.big-icon {
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
}

/* --- About Section --- */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.about-images {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    max-width: 400px;
}

.profile-img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.illustration-img {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: auto;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-md);
    transform: rotate(5deg);
    transition: var(--transition);
}

.illustration-img:hover {
    transform: rotate(0deg) scale(1.05);
}

.about-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.hours-box {
    background-color: #FFF3E0;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    border-left: 4px solid var(--accent-color);
}

.hours-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.hours-box ul li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.hours-box ul li:last-child {
    border-bottom: none;
}

.about-map {
    grid-column: 1 / -1;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-bg);
    color: #e0e0e0;
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.logo-footer {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: inline-block;
    margin-bottom: 20px;
}

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

.footer-contact h3,
.footer-social h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #bbb;
}

.contact-list li i {
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.footer-social .social-icons .fa-brands {
    font-size: 1.5rem;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social .social-icons .fa-brands:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #888;
}

.footer-credit {
    margin-top: 8px;
    font-size: 0.82rem;
    color: #737373;
}

.footer-credit a {
    color: #9a9a9a;
}

.footer-credit a:hover {
    color: var(--secondary-color);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Center items in mobile menu */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 40px;
        gap: 20px;
        /* Consistent gap */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        /* Larger font for mobile menu */
    }

    .btn-nav {
        width: 100%;
        text-align: center;
        display: block;
    }

    .phone-cta {
        margin-right: 0;
        justify-content: center;
        width: 100%;
    }

    .advantages-container {
        flex-direction: column;
        text-align: center;
    }

    .advantages li {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .section {
        padding: 70px 0;
    }

    .hero-content {
        padding: 0 20px;
        max-width: 800px;
        /* Constrain width on tablets */
    }

    .service-card {
        padding: 30px 20px;
    }

    .advantages-text {
        padding: 0 15px;
    }

    .modal-content {
        width: 95%;
        margin-top: 20px;
    }

    .modal-header {
        height: 200px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        /* Smaller heading for tablets */
        text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
    }

    .hero-content p {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .tax-credit-badge {
        margin-top: 25px;
        padding: 8px 15px;
    }

    .tax-credit-badge span {
        font-size: 0.9rem;
    }

    .modal-title {
        font-size: 1.8rem;
    }

}
