/* ============================================
   ID PROJECTS — Emna Jamoussi
   Inspired by Terraforma Design
   ============================================ */

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

:root {
    --bg: #f5f0eb;
    --bg-dark: #1a1714;
    --text: #1a1714;
    --text-light: #6b6560;
    --accent: #c9a96e;
    --accent-dark: #a88a50;
    --cream: #f5f0eb;
    --warm-gray: #e8e0d8;
    --card-bg: #faf7f4;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    width: 100%;
    cursor: none;
    position: relative;
}

section { max-width: 100vw; overflow-x: clip; }

a { text-decoration: none; color: inherit; cursor: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }
img { max-width: 100%; height: auto; display: block; image-rendering: auto; -webkit-backface-visibility: hidden; }

/* Selection */
::selection { background: var(--accent); color: white; }

/* --- Loader --- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-inner { text-align: center; }

.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.loader-logo-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.loader-signature {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.loader-id {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.loader-projects {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

body:hover .cursor.hovering {
    width: 50px;
    height: 50px;
    background: rgba(201,169,110,0.15);
}

body:hover .cursor-follower.hovering {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }
    a, button { cursor: pointer; }
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    transition: all 0.5s var(--ease);
}

.nav.scrolled {
    background: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 4rem;
    box-shadow: 0 1px 30px rgba(0,0,0,0.05);
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1;
}

.nav-logo-row {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.nav-logo-signature {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.nav-logo-id {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.nav-logo-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

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

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-light);
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out);
}

.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav.hero-visible .nav-link { color: rgba(255,255,255,0.7); }
.nav.hero-visible .nav-link:hover, .nav.hero-visible .nav-link.active { color: white; }
.nav.hero-visible .nav-logo-text { color: white; }

.btn-nav {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.7rem 1.8rem;
    border: 1px solid var(--text);
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}

.btn-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.nav.hero-visible .btn-nav {
    border-color: rgba(255,255,255,0.4);
    color: white;
}

.nav.hero-visible .btn-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    cursor: pointer;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav.hero-visible .nav-hamburger span { background: white; }

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-link {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s var(--ease);
}

.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 100px;
    transition: all 0.4s var(--ease);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201,169,110,0.3);
}

.btn-primary.full { width: 100%; text-align: center; }

.btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 100px;
    transition: all 0.4s var(--ease);
}

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

.btn-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.btn-text:hover { gap: 1rem; }

.btn-text-light {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color 0.3s;
}

.btn-text-light:hover { color: var(--accent); }

/* --- Section Label --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.section-label.light { color: rgba(255,255,255,0.6); }

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

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.3);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,23,20,0.75) 0%, rgba(26,23,20,0.4) 50%, rgba(26,23,20,0.6) 100%);
}

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

.hero-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-tag-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-tag-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-line {
    display: block;
    overflow: hidden;
}

.hero-line-inner {
    display: block;
    transform: translateY(110%);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.hero-scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

.hero-stats {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
    display: flex;
    gap: 3rem;
    z-index: 2;
}

.hero-stat { text-align: center; }

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
}

.hero-stat-plus {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
}

.hero-stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-top: 0.3rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 10rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: 5rem;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.4;
    max-width: 900px;
    color: var(--text);
}

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

.about-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-text strong { color: var(--text); font-weight: 600; }

.about-image { position: relative; }

.about-video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    aspect-ratio: 9 / 14;
    max-height: 600px;
    margin: 0 0 0 auto;
    will-change: transform;
    max-width: 380px;
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.about-image-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: var(--accent);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(201,169,110,0.3);
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.badge-text {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 8rem 4rem;
    background: var(--card-bg);
}

.services-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.services-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.services-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.3;
}

.services-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.services-arrows { display: flex; gap: 0.5rem; }

.arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--warm-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text);
    transition: all 0.3s;
}

.arrow-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

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

.service-card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.service-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.service-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}

.service-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.service-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-line {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-top: 0.5rem;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    padding: 8rem 4rem;
    background: var(--bg-dark);
    color: white;
    overflow: hidden;
}

.process-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.process-header {
    margin-bottom: 5rem;
}

.process-header .section-label { color: rgba(255,255,255,0.5); }

.process-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: white;
    margin-bottom: 1.5rem;
}

.process-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 500px;
}

.process-timeline {
    position: relative;
    padding-left: 80px;
}

.process-line {
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.1);
    --progress: 0;
}

.process-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(var(--progress) * 100%);
    background: var(--accent);
}

.process-step {
    position: relative;
    padding-bottom: 4rem;
    opacity: 0;
    transform: translateX(-30px);
}

.process-step:last-child { padding-bottom: 0; }

.process-step-marker {
    position: absolute;
    left: -80px;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.5s var(--ease);
}

.process-step.is-active .process-step-marker {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 30px rgba(201,169,110,0.4);
}

.process-step-number {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    transition: color 0.5s;
}

.process-step.is-active .process-step-number { color: white; }

.process-step-content {
    padding: 0.5rem 0 0 1.5rem;
    border-left: none;
}

.process-step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.8rem;
}

.process-step-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
    max-width: 480px;
    margin-bottom: 0.8rem;
}

.process-step-timing {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.4rem 1rem;
    background: rgba(201,169,110,0.1);
    border-radius: 100px;
    border: 1px solid rgba(201,169,110,0.2);
}

/* ============================================
   MEDIA SECTION
   ============================================ */
.media {
    padding: 8rem 4rem;
    background: var(--card-bg);
}

.media-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.media-header {
    margin-bottom: 4rem;
}

.media-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.media-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 500px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.media-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s var(--ease);
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.media-card-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-dark);
    overflow: hidden;
}

.media-card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 1;
    transition: opacity 0.4s;
    pointer-events: none;
}

.media-card-video:hover .media-card-overlay { opacity: 0; }

.media-play-icon {
    width: 60px;
    height: 60px;
    transition: transform 0.3s;
}

.media-card:hover .media-play-icon { transform: scale(1.15); }

.media-card-info {
    padding: 1.5rem 2rem 2rem;
}

.media-card-date {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.media-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.media-card-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.projects-header {
    margin-bottom: 5rem;
}

.projects-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.3;
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: start;
}

.project-showcase.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.project-showcase.reverse .project-gallery { order: -1; }

.project-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    text-align: right;
    max-width: 280px;
}

.stat-divider {
    height: 1px;
    background: var(--warm-gray);
}

.project-gallery { position: relative; overflow: hidden; border-radius: 16px; }

.project-gallery-track {
    display: flex;
    background: #f5f0eb;
    will-change: transform;
}

.project-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-slide img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 16px;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--warm-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}

.gallery-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.gallery-counter {
    font-size: 0.85rem;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
}

.gallery-current { color: var(--text); font-weight: 600; }

/* ============================================
   INSIGHT / VIDEO SECTION
   ============================================ */
.insight {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.insight-bg {
    position: absolute;
    inset: 0;
}

.insight-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    will-change: transform;
    transform: translateZ(0);
}

.insight-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,23,20,0.65);
}

.insight-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.insight-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.insight-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: gap 0.3s;
}

.play-btn:hover { gap: 1.5rem; }

.play-icon {
    width: 60px;
    height: 60px;
    transition: transform 0.3s;
}

.play-btn:hover .play-icon { transform: scale(1.1); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(10, 8, 6, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

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

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

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

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 9001;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 9001;
    line-height: 1;
}

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

.lightbox-counter {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.project-slide img { cursor: zoom-in; }

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.video-modal.active { opacity: 1; pointer-events: all; }

.video-modal video {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 12px;
}

.video-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.video-close:hover {
    background: white;
    color: var(--bg-dark);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 8rem 4rem;
    background: var(--bg-dark);
    color: white;
}

.contact-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    margin-bottom: 3rem;
}

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

.contact-item-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.contact-item-value {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

a.contact-item-value:hover { color: var(--accent); }

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: white;
    transition: border-color 0.3s;
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.contact .btn-primary {
    margin-top: 0.5rem;
    border: none;
    padding: 1.2rem;
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 4rem;
    color: white;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 1rem;
    line-height: 1.6;
}

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

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

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

.footer-bottom .roost-link {
    color: var(--accent) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-bottom .roost-link:hover {
    color: white !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ============================================
   RESPONSIVE — Tablette (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
    /* Nav */
    .nav { padding: 1.2rem 2rem; }
    .nav.scrolled { padding: 0.8rem 2rem; }
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }

    /* Hero */
    .hero-content { padding: 0 2.5rem; max-width: 100%; }
    .hero-title { font-size: clamp(2.4rem, 5vw, 4rem); }
    .hero-scroll { left: 2rem; }
    .hero-stats { right: 2rem; gap: 2rem; }
    .hero-actions { flex-wrap: wrap; }

    /* About */
    .about { padding: 6rem 2.5rem; }
    .about-content { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { max-width: 480px; margin: 0 auto; }

    /* Services */
    .services { padding: 6rem 2.5rem; }
    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .services-header-row { flex-direction: column; align-items: flex-start; gap: 1.5rem; }

    /* Process */
    .process { padding: 6rem 2.5rem; }
    .process-timeline { padding-left: 60px; }
    .process-step-marker { left: -60px; width: 40px; height: 40px; }
    .process-step-number { font-size: 0.75rem; }

    /* Projects */
    .projects { padding: 6rem 2.5rem; }
    .project-showcase,
    .project-showcase.reverse { grid-template-columns: 1fr; gap: 2rem; }
    .project-showcase.reverse .project-gallery { order: 0; }

    /* Media */
    .media { padding: 6rem 2.5rem; }
    .media-grid { grid-template-columns: 1fr; max-width: 600px; }

    /* Contact */
    .contact { padding: 6rem 2.5rem; }
    .contact-inner { grid-template-columns: 1fr; gap: 3rem; }

    /* Footer */
    .footer { padding: 4rem 2.5rem 2rem; }
    .footer-top { flex-direction: column; gap: 3rem; }
    .footer-links-grid { gap: 2.5rem; }
}

/* ============================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Nav */
    .nav { padding: 1rem 1.5rem; }

    /* Hero */
    .hero { min-height: 100svh; flex-direction: column; align-items: stretch; justify-content: center; }
    .hero-content {
        padding: 0 1.5rem;
        padding-top: 80px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 1rem; }
    .hero-subtitle { font-size: 0.9rem; max-width: 100%; margin-bottom: 1.5rem; }
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }
    .btn-primary, .btn-outline {
        display: inline-block;
        width: auto;
        align-self: flex-start;
        padding: 0.85rem 2rem;
        font-size: 0.9rem;
    }
    .hero-scroll { display: none; }
    .hero-stats {
        position: relative;
        bottom: auto; right: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1.5rem;
        padding: 1.5rem 1.5rem 2rem;
        flex-wrap: wrap;
    }
    .hero-stat { text-align: left; }
    .hero-stat-number { font-size: 1.8rem; }
    .hero-stat-label { font-size: 0.7rem; }

    /* About */
    .about { padding: 5rem 1.5rem; }
    .about-header { margin-bottom: 2.5rem; }
    .about-title { font-size: clamp(1.4rem, 5vw, 2rem); }
    .about-image { max-width: 100%; }
    .about-video-wrapper { max-height: 420px; }
    .about-image-badge {
        position: absolute;
        top: -20px;
        right: 1rem;
        bottom: auto;
        left: auto;
        padding: 0.9rem 1.3rem;
    }
    .badge-number { font-size: 1.5rem; }

    /* Services */
    .services { padding: 5rem 1.5rem; }
    .services-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .service-card { padding: 2rem 1.5rem; }

    /* Projects */
    .projects { padding: 5rem 1.5rem; }
    .projects-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .project-showcase,
    .project-showcase.reverse { grid-template-columns: 1fr; gap: 2.5rem; }
    .project-showcase.reverse .project-gallery { order: 0; }
    .project-gallery { transform: none !important; } /* annule parallax GSAP */
    .project-slide img { height: 420px; object-fit: cover; }
    .project-stats { gap: 0.6rem; }
    .stat-label { font-size: 0.7rem; }
    .stat-value { font-size: 0.85rem; }

    /* Process */
    .process { padding: 5rem 1.5rem; }
    .process-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .process-timeline { padding-left: 50px; gap: 2rem; }
    .process-step-marker { left: -50px; width: 34px; height: 34px; }
    .process-step-title { font-size: 1rem; }
    .process-step-desc { font-size: 0.85rem; }

    /* Insight */
    .insight { min-height: 60vh; }
    .insight-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .insight-content { padding: 0 1.5rem; }

    /* Media */
    .media { padding: 5rem 1.5rem; }
    .media-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .media-grid { max-width: 100%; }

    /* Contact */
    .contact { padding: 5rem 1.5rem; }
    .contact-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .form-row { grid-template-columns: 1fr; }
    .contact .btn-primary { width: 100%; text-align: center; }

    /* Footer */
    .footer { padding: 3rem 1.5rem 1.5rem; }
    .footer-links-grid { flex-direction: column; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; font-size: 0.8rem; }
}

/* ============================================
   RESPONSIVE — Petit mobile (≤ 390px)
   ============================================ */
@media (max-width: 390px) {
    .hero-title { font-size: 1.8rem; }
    .hero-stats { gap: 1rem; }
    .hero-stat-number { font-size: 1.5rem; }
    .btn-primary, .btn-outline { padding: 0.8rem 1.5rem; font-size: 0.85rem; }
    .about-title { font-size: 1.3rem; }
    .project-slide img { height: 380px; object-fit: cover; }
    .process-timeline { padding-left: 44px; }
    .process-step-marker { left: -44px; width: 30px; height: 30px; }
}
