/* ============================================
   Moment'Home — Site Vitrine
   Palette: brun chaud, fond crème, blanc
   Mobile-first responsive
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brown: #8B6F47;
    --brown-dark: #3D2B1F;
    --brown-light: #C4A87C;
    --brown-subtle: #D4B896;
    --cream: #F8F4EF;
    --white: #FFFFFF;
    --text: #3D2B1F;
    --text-light: #6B5B4E;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brown);
    margin-bottom: 12px;
}

.section-label--center {
    display: block;
    text-align: center;
}

.section-label--light {
    color: var(--brown-light);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

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

.btn--primary:hover {
    background-color: var(--brown-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 111, 71, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: var(--brown);
    border: 2px solid var(--brown);
}

.btn--outline:hover {
    background-color: var(--brown);
    color: var(--white);
}


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: rgba(248, 244, 239, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 111, 71, 0.1);
    transition: box-shadow 0.3s ease;
}

.nav--scrolled {
    box-shadow: 0 2px 20px rgba(61, 43, 31, 0.08);
}

.nav__container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo img {
    height: 48px;
    width: auto;
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--brown-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--cream);
    padding: calc(var(--nav-height) + 24px) 32px 32px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.nav__menu.active {
    right: 0;
}

.nav__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav__link {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid rgba(139, 111, 71, 0.1);
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--brown);
}

.nav__socials {
    display: flex;
    gap: 16px;
    padding-top: 8px;
}

.nav__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(139, 111, 71, 0.08);
    color: var(--brown);
    transition: all 0.2s;
}

.nav__socials a:hover {
    background-color: var(--brown);
    color: var(--white);
}

/* Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}


/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px 60px;
    background-color: var(--cream);
    position: relative;
    overflow: hidden;
}

/* Decorative square elements inspired by the PDF */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border: 2px solid rgba(139, 111, 71, 0.12);
    border-radius: 4px;
    pointer-events: none;
}

.hero::before {
    width: 120px;
    height: 120px;
    bottom: 60px;
    right: 40px;
    transform: rotate(12deg);
}

.hero::after {
    width: 80px;
    height: 80px;
    bottom: 90px;
    right: 70px;
    transform: rotate(-5deg);
}

.hero__container {
    max-width: 720px;
}

.hero__logo {
    width: 140px;
    height: auto;
    margin: 0 auto 32px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brown-dark);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.7;
}


/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about__grid {
    display: grid;
    gap: 40px;
}

.about__image img {
    border-radius: 12px;
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.about__content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--brown-dark);
    margin-bottom: 20px;
}

.about__content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about__quote {
    margin-top: 24px;
    padding: 20px 24px;
    border-left: 4px solid var(--brown);
    background-color: var(--cream);
    border-radius: 0 8px 8px 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--brown-dark);
    line-height: 1.5;
}


/* ============================================
   APPROACH
   ============================================ */
.approach {
    padding: 80px 0;
    background-color: var(--cream);
}

.approach__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--brown-dark);
    margin-bottom: 48px;
}

.approach__grid {
    display: grid;
    gap: 24px;
}

.approach__card {
    background-color: var(--white);
    padding: 36px 28px;
    border-radius: 12px;
    border: 1px solid rgba(139, 111, 71, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.approach__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 111, 71, 0.1);
}

.approach__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: rgba(139, 111, 71, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown);
    margin-bottom: 20px;
}

.approach__card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--brown-dark);
    margin-bottom: 12px;
}

.approach__card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.approach__card--featured {
    overflow: hidden;
    padding: 0;
}

.approach__photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.approach__card--featured h3,
.approach__card--featured p {
    padding: 0 28px;
}

.approach__card--featured h3 {
    padding-top: 24px;
}

.approach__card--featured p {
    padding-bottom: 32px;
}


/* ============================================
   PROJECT
   ============================================ */
.project {
    padding: 80px 0;
    background-color: var(--white);
}

.project__grid {
    display: grid;
    gap: 40px;
}

.project__content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--brown-dark);
    margin-bottom: 16px;
}

.project__content > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 28px;
}

.project__specs {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

@media (min-width: 480px) {
    .project__specs {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.project__specs li {
    padding: 16px;
    background-color: var(--cream);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project__specs li strong {
    font-size: 1.2rem;
    color: var(--brown-dark);
}

.project__specs li span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.project__badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--brown);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100px;
    margin-bottom: 16px;
}

.project__badge--live {
    background-color: #2E7D32;
}

.project__cta-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project__image {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project__image img {
    border-radius: 12px;
    width: 100%;
    background-color: #e8e2da;
}

.project__panneau {
    max-width: 280px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(61, 43, 31, 0.15);
}

.project__image-caption {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
    font-style: italic;
}


/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
    padding: 60px 0;
    background-color: var(--cream);
}

.testimonial__card {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 32px;
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(139, 111, 71, 0.1);
    text-align: center;
    position: relative;
}

.testimonial__quote-icon {
    color: var(--brown);
    margin-bottom: 12px;
}

.testimonial__text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--brown-dark);
    margin-bottom: 24px;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    text-align: left;
}

.testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brown-light);
    flex-shrink: 0;
}

.testimonial__author strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-style: normal;
    color: var(--brown-dark);
}

.testimonial__author span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: normal;
}

.testimonial__ig-icon {
    color: var(--brown-light);
    flex-shrink: 0;
    opacity: 0.5;
}


/* ============================================
   SOCIAL
   ============================================ */
.social {
    padding: 80px 0;
    background-color: var(--cream);
}

.social__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--brown-dark);
    margin-bottom: 12px;
}

.social__subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.social__grid {
    display: grid;
    gap: 16px;
}

.social__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(139, 111, 71, 0.08);
    color: var(--brown);
    transition: all 0.25s ease;
}

.social__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(139, 111, 71, 0.12);
    border-color: var(--brown-light);
}

.social__card svg {
    margin-bottom: 16px;
}

.social__card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--brown-dark);
    margin-bottom: 4px;
}

.social__card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.social__handle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brown);
}


/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 80px 0;
    background-color: var(--brown-dark);
    color: var(--white);
}

.contact__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.contact__subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.contact__grid {
    display: grid;
    gap: 16px;
    max-width: 680px;
    margin: 0 auto 24px;
}

.contact__card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--white);
    transition: all 0.2s;
}

.contact__card:hover {
    background-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.contact__card svg {
    flex-shrink: 0;
    color: var(--brown-light);
}

.contact__card strong {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-bottom: 2px;
}

.contact__card span {
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
}

.contact__card div {
    min-width: 0;
}

.contact__location {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0 24px;
    background-color: #2C1E13;
    color: rgba(255, 255, 255, 0.6);
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.footer__logo {
    height: 56px;
    width: auto;
    opacity: 0.7;
}

.footer__tagline {
    font-size: 0.9rem;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.footer__socials a:hover {
    color: var(--brown-light);
}

.footer__bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}


/* ============================================
   RESPONSIVE — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
    .hero__title {
        font-size: 3rem;
    }

    .hero__logo {
        width: 180px;
    }

    .about__grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 56px;
    }

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

    .project__grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 56px;
    }

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

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

    .about__content h2,
    .approach__title,
    .project__content h2,
    .social__title,
    .contact__title {
        font-size: 2.2rem;
    }
}


/* ============================================
   RESPONSIVE — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    /* Desktop nav: inline links */
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: none;
        padding: 0;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }

    .nav__links {
        flex-direction: row;
        gap: 4px;
    }

    .nav__link {
        padding: 8px 16px;
        font-size: 0.9rem;
        border-bottom: none;
        border-radius: 6px;
    }

    .nav__link:hover {
        background-color: rgba(139, 111, 71, 0.06);
    }

    .nav__socials a {
        width: 36px;
        height: 36px;
    }

    .nav-overlay {
        display: none;
    }

    /* Hero */
    .hero__title {
        font-size: 3.4rem;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }

    .hero__logo {
        width: 200px;
        margin-bottom: 40px;
    }

    .hero::before {
        width: 160px;
        height: 160px;
        bottom: 80px;
        right: 80px;
    }

    .hero::after {
        width: 100px;
        height: 100px;
        bottom: 120px;
        right: 120px;
    }

    /* Sections */
    .about,
    .approach,
    .project,
    .social,
    .contact {
        padding: 100px 0;
    }

    .about__grid {
        gap: 72px;
    }

    .project__grid {
        gap: 72px;
    }

    .approach__photo {
        height: 260px;
    }
}


/* ============================================
   ANIMATIONS (subtle, on scroll)
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
