/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --stone-900: #1a1714;
    --stone-800: #292420;
    --stone-700: #3d3530;
    --stone-600: #5c4f45;
    --stone-500: #78685c;
    --stone-400: #a0917f;
    --stone-300: #c4b5a3;
    --stone-200: #e0d5c7;
    --stone-100: #f0ebe4;
    --stone-50:  #f8f5f1;
    --accent: #b08d6a;
    --accent-light: #d4b896;
    --white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--stone-800);
    background: var(--stone-50);
    line-height: 1.6;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--stone-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--stone-500);
    max-width: 600px;
    line-height: 1.7;
}

/* ========== NAV ========== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

.nav.scrolled {
    background: rgba(26, 23, 20, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    padding: 0.75rem 2rem;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav-logo span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-light);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26,23,20,0.45) 0%,
        rgba(26,23,20,0.3) 50%,
        rgba(26,23,20,0.7) 100%
    );
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    color: var(--accent-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-divider {
    width: 60px; height: 2px;
    background: var(--accent);
    margin: 0 auto 2rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s;
    cursor: pointer;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-indicator svg { width: 20px; height: 20px; stroke: rgba(255,255,255,0.5); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== SERVICES ========== */
.services {
    padding: 7rem 2rem;
    background: var(--white);
}

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

.services-header { text-align: center; margin-bottom: 4rem; }
.services-header .section-subtitle { margin: 0 auto; }

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

.service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--stone-200);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

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

.service-icon {
    width: 48px; height: 48px;
    margin: 0 auto 1.25rem;
    color: var(--accent);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--stone-800);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--stone-500);
    line-height: 1.6;
}

/* ========== ABOUT SPLIT ========== */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 4rem;
    background: var(--stone-900);
    color: var(--stone-200);
}

.about-content .section-title { color: var(--white); }

.about-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    color: var(--stone-300);
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--stone-700);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
    margin-top: 0.35rem;
}

/* ========== GALLERY ========== */
.gallery {
    padding: 7rem 2rem;
    background: var(--stone-50);
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-header .section-subtitle { margin: 0 auto; }

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid var(--stone-300);
    background: transparent;
    color: var(--stone-600);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--stone-800);
    border-color: var(--stone-800);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16/9; }

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,23,20,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
    border-radius: 2px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ========== CREDENTIALS ========== */
.credentials {
    background: var(--stone-50);
}

/* ========== CONTACT ========== */
.contact {
    padding: 7rem 2rem;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--stone-800);
}

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--stone-100);
    color: var(--accent);
    border-radius: 50%;
}

.contact-detail-icon svg { width: 20px; height: 20px; }

.contact-detail-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--stone-800);
    margin-bottom: 0.15rem;
}

.contact-detail-text span,
.contact-detail-text a {
    font-size: 0.95rem;
    color: var(--stone-500);
    transition: color 0.3s;
}

.contact-detail-text a:hover { color: var(--accent); }

.contact-map {
    aspect-ratio: 4/3;
    background: var(--stone-100);
    overflow: hidden;
    position: relative;
}

.contact-map iframe {
    width: 100%; height: 100%;
    border: 0;
    filter: grayscale(30%);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--stone-900);
    color: var(--stone-400);
    padding: 3rem 2rem 1.5rem;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--stone-200);
}

.footer p {
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--stone-400);
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent-light); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item.tall { grid-row: span 2; }
    .gallery-item.wide { grid-column: span 2; }
    .about { grid-template-columns: 1fr; }
    .about-image { height: 400px; }
    .about-content { padding: 4rem 2.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(26,23,20,0.97);
        padding: 1.5rem 2rem;
        gap: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
    .gallery-item.wide { grid-column: span 1; }

    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

    .about-stats { gap: 2rem; }
    .stat-number { font-size: 2rem; }
    .about-content { padding: 3rem 2rem; }

    .hero-content h1 { font-size: 2.5rem; }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .service-card { padding: 1.75rem 1.25rem; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.wide { grid-column: span 1; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .about-stats { flex-direction: column; gap: 1.25rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* ========== CREDENTIALS STRIP ========== */
.credentials {
    background: var(--stone-900);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--stone-700);
}
.credentials-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.credential-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--stone-700);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--stone-200);
}
.credential-pill svg { width: 15px; height: 15px; color: var(--accent-light); flex-shrink: 0; }
.credential-pill.highlight {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.credential-pill.highlight svg { color: var(--white); }

/* ========== PROCESS (clé en main) ========== */
.process {
    padding: 7rem 2rem;
    background: var(--stone-100);
}
.process-header { text-align: center; margin-bottom: 3.5rem; }
.process-header .section-subtitle { margin: 0 auto; }
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.process-step {
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--stone-200);
}
.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}
.process-step h3 {
    font-size: 1.05rem;
    color: var(--stone-800);
    margin-bottom: 0.6rem;
}
.process-step p {
    font-size: 0.9rem;
    color: var(--stone-500);
    line-height: 1.6;
}

/* ========== EXPERT / TIMELINE ========== */
.expert {
    padding: 7rem 2rem;
    background: var(--white);
}
.expert-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
}
.expert-aside { position: sticky; top: 100px; }
.expert-photo {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 2px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-600), var(--stone-900));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}
.expert-photo img { width: 100%; height: 100%; object-fit: cover; }
.expert-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--stone-900);
}
.expert-role {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-top: 0.25rem;
}
.expert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}
.expert-badge {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    background: var(--stone-100);
    color: var(--stone-700);
    border-radius: 100px;
}
.expert-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--stone-600);
    margin-bottom: 2.5rem;
}
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--stone-200);
}
.timeline-item {
    position: relative;
    padding-bottom: 1.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 7px);
    top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent-light);
}
.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.1rem;
}
.timeline-text {
    font-size: 0.98rem;
    color: var(--stone-600);
    line-height: 1.5;
}
.timeline-text strong { color: var(--stone-800); font-weight: 600; }

/* ========== LITIGE BAND ========== */
.litige {
    background: var(--stone-900);
    color: var(--stone-200);
    padding: 5.5rem 2rem;
}
.litige-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.litige-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1.5rem;
    color: var(--accent-light);
}
.litige h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
}
.litige p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--stone-300);
    max-width: 680px;
    margin: 0 auto 2rem;
}

/* new blocks — responsive */
@media (max-width: 900px) {
    .expert-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .expert-aside { position: static; max-width: 260px; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .process-steps { grid-template-columns: 1fr; }
    .credential-pill { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
}
