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

/* Variables */ 
:root {
    --color-background: #f5f1ea;
    --color-surface: #e7dfd4;
    --color-text: #1f1f1f;
    --color-text-muted: #5f5a54;
    --color-accent: #7a4b2f;
    --color-white: #ffffff;

    --font-title: "Cormorant Garamond", serif;
    --font-body: "Inter", sans-serif;

    --container-width: 1200px;
    --transition: 0.3s ease;
}

/* Base du document */
html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

section {
    scroll-margin-top: 120px;
}

.container {
    width: min(90%, var(--container-width));
    margin: 0 auto;
}

/* ==================
    HEADER
================== */
.site-header  {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 0;
    background-color: rgba(245, 241, 234, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(31, 31, 31, 0.08);
    z-index: 1000;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 600;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-list a {
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-list a:hover {
    color: var(--color-accent);
}

/* ==================
    HERO
================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 110px;
}

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

.hero-subtitle {
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    color: var(--color-accent);
}

.hero h1 {
    margin-bottom: 24px;
    font-family: var(--font-title);
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    line-height: 0.95;
    font-weight: 700;
}

.hero-text {
    max-width: 580px;
    margin-bottom: 34px;
    font-size: 1.05rem;
    color: var(--color-text-muted)
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border: 1px solid var(--color-text);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

.hero-button:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

/* ==================
    SECTIONS GLOBAL 
================== */
.section {
    padding: 110px 0;
}

.section-header {
    margin-bottom: 50px;
    max-width: 760px;
}

.section-label {
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.1;
}

/* ==================
    TEXT CONTENT
================== */
.text-content {
    max-width: 760px;
    display: grid;
    gap: 24px;
}

.text-content p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==================
    WORKS GRID
================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 30px;
    align-items: stretch;
}

.work-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 850px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(31, 31, 31, 0.08);
    box-shadow: 0 10px 30px rgba(31, 31, 31, 0.04);
    overflow: hidden;
    transition: all var(--transition), box-shadow var(--transition);
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-image {
    position: relative;
    height: 320px;
    margin-bottom: 16px;
    overflow: hidden;
    background-color: #f0ebe5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.12), 
        rgba(0, 0, 0, 0)
    );
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.work-card:hover .work-image::after {
    opacity: 1;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform var(--transition);
}

.work-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.work-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
}

.work-card h3 {
    margin-bottom: 0;
    font-family: var(--font-title);
    font-size: 2rem;
    line-height: 1.1;
    transition: color var(--transition);
}

.work-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.work-card:hover h3 {
    color: var(--color-accent);
}

.work-img {
    cursor: pointer;
}

.work-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04rem;
}

.work-description {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 6px;
}

/* ==================
    CONTACT 
================== */

.contact {
    background-color: var(--color-surface);
}

.contact-text {
    max-width: 700px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.contact-link {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: opacity var(--transition);
}

.contact-link:hover {
    opacity: 0.75;
}

/* ==================
    FOOTER 
================== */
.site-footer {
    padding: 32px 0;
    border-top: 1px solid rgba(31, 31, 31, 0.08);
    background-color: var(--color-background);
}

.site-footer p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-signature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-signature img {
    height: 22px;
    opacity: 0.8;
    transition: opacity var(--transition), transform var(--transition);
}

.footer-signature a {
    display: flex;
    align-items: center;
}

/* ==================
    HEARDER SCROLLED 
================== */
.site-header.scrolled {
    padding: 16px 0;
    background-color: rgba(245, 241, 234, 0.96);
    box-shadow: 0 8px 24px rgba(31, 31, 31, 0.05);
}

/* ==================
    ACTIVE NAV LINK
================== */
.nav-link {
    position: relative;
}

.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
}

/* ==================
    REVEAL ANIMATION
================== */
.reveal,
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ==================
    LIGHTBOX
================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 2000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

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

.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.35s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ==================
    RESPONSIVE 
================== */
@media (max-width: 900px) {
    .nav-list {
        gap: 18px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 10vw, 5rem);
    }

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

@media (max-width: 700px) {
    .site-header {
        padding: 18px 0;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 14px;
    }

    .section {
        padding: 90px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 160px;
        padding-bottom: 80px;
    }

    .hero-text,
    .hero-content,
    .section-header,
    .text-content {
        max-width: 100%;
    }

    .work-image {
        height: 280px;
    }

    .work-card h3 {
        font-size: 1.7rem;
    }
}