/*
Theme Name: époK - Atelier d'ébénisterie
Theme URI: https://epok-ebenisterie.fr
Author: L'Étoile du Web
Author URI: https://letoileduweb.fr
Description: Thème sur mesure pour l'atelier d'ébénisterie époK à L'Isle-sur-la-Sorgue. Animations GSAP, smooth scroll Lenis, design contemporain.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: epok
*/

:root {
            --color-bg: #0C0B09;
            --color-bg-warm: #141210;
            --color-bg-card: #1A1816;
            --color-surface: #1E1C19;
            --color-text: #E8E2D8;
            --color-text-muted: #9B9487;
            --color-text-dim: #6B665E;
            --color-accent: #C8A87C;
            --color-accent-light: #D4BA94;
            --color-white: #F5F0E8;
            --color-border: rgba(200, 168, 124, 0.15);
            --color-border-light: rgba(232, 226, 216, 0.08);
            --font-display: 'Cormorant Garamond', 'Georgia', serif;
            --font-body: 'Outfit', 'Helvetica Neue', sans-serif;
            --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
            --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
            --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
            --header-height: 80px;
            --section-padding: clamp(80px, 12vh, 160px);
            --container-width: 1400px;
            --container-padding: clamp(20px, 4vw, 60px);
        }
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        html { font-size: 16px; -webkit-font-smoothing: antialiased; }
        /* Smooth native scroll */
        html { scroll-behavior: smooth; }
        body { font-family: var(--font-body); font-weight: 300; color: var(--color-text); background-color: var(--color-bg); line-height: 1.6; overflow-x: hidden; }
        a { color: inherit; text-decoration: none; }
        img { max-width: 100%; height: auto; display: block; }
        button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
        ::selection { background-color: var(--color-accent); color: var(--color-bg); }

        /* Loader */
        .site-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-bg); z-index: 9999; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 30px; }
        .loader-logo { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; font-style: italic; color: var(--color-accent); letter-spacing: 0.15em; opacity: 0; }
        .loader-line { width: 60px; height: 1px; background: var(--color-accent); transform-origin: left; transform: scaleX(0); }

        /* Cursor */
        .cursor { position: fixed; top: 0; left: 0; width: 20px; height: 20px; border: 1px solid var(--color-accent); border-radius: 50%; pointer-events: none; z-index: 9998; mix-blend-mode: difference; transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo); transform: translate(-50%, -50%); }
        .cursor.is-hovering { width: 50px; height: 50px; border-color: var(--color-white); }
        .cursor-dot { position: fixed; top: 0; left: 0; width: 4px; height: 4px; background: var(--color-accent); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); }
        @media (hover: none) { .cursor, .cursor-dot { display: none; } }

        /* Layout */
        .container { max-width: var(--container-width); margin: 0 auto; padding-left: var(--container-padding); padding-right: var(--container-padding); }
        .section { padding-top: var(--section-padding); padding-bottom: var(--section-padding); position: relative; z-index: 5; background: var(--color-bg); }

        /* Header */
        .site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 25px 0; background: rgba(12, 11, 9, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: padding 0.4s var(--ease-out-expo), background 0.4s; }
        .site-header.is-scrolled { padding: 15px 0; background: rgba(12, 11, 9, 0.95); }
        .header-inner { display: flex; align-items: center; justify-content: space-between; }
        .site-logo { font-family: var(--font-display); font-size: 1.8rem; font-weight: 300; font-style: italic; letter-spacing: 0.12em; color: var(--color-accent); }
        .main-nav { display: flex; align-items: center; gap: 40px; }
        .main-nav ul, .main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 40px; }
        .main-nav li { list-style: none; margin: 0; padding: 0; }
        .main-nav a { font-size: 0.8rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text-muted); position: relative; transition: color 0.3s; }
        .main-nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background: var(--color-accent); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out-expo); }
        .main-nav a:hover { color: var(--color-text); }
        .main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
        .header-contact { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--color-text-dim); display: flex; align-items: center; gap: 8px; }
        .header-contact span { display: inline-block; width: 20px; height: 1px; background: var(--color-text-dim); }
        .menu-toggle { display: none; flex-direction: column; gap: 6px; width: 30px; padding: 5px 0; }
        .menu-toggle span { display: block; height: 1px; background: var(--color-text); transition: transform 0.3s, opacity 0.3s; }
        .menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
        .menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        /* Hero */
        .hero { height: 100vh; min-height: 600px; display: flex; align-items: flex-end; position: relative; overflow: hidden; padding-bottom: clamp(60px, 10vh, 120px); z-index: 5; background: var(--color-bg); }
        .hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
        .hero-bg-image { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
        .hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(12,11,9,0.3) 0%, rgba(12,11,9,0.1) 40%, rgba(12,11,9,0.6) 70%, rgba(12,11,9,0.95) 100%); }
        .hero-content { position: relative; z-index: 2; width: 100%; }
        .hero-title { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(3rem, 8vw, 8rem); line-height: 0.95; letter-spacing: -0.02em; color: var(--color-white); margin-bottom: 30px; overflow: hidden; }
        .hero-title .line { display: block; overflow: hidden; }
        .hero-title .line-inner { display: block; transform: translateY(105%); }
        .hero-subtitle { font-size: clamp(0.75rem, 1.2vw, 0.9rem); font-weight: 300; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 15px; opacity: 0; }
        .hero-location { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 300; opacity: 0; }
        .hero-location span { display: inline-block; width: 30px; height: 1px; background: var(--color-accent); vertical-align: middle; margin: 0 12px; }
        .hero-scroll { position: absolute; bottom: 30px; right: var(--container-padding); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; opacity: 0; }
        .hero-scroll span { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-dim); writing-mode: vertical-rl; }
        .hero-scroll-line { width: 1px; height: 50px; background: var(--color-accent); transform-origin: top; animation: scrollLine 2s var(--ease-in-out) infinite; }
        @keyframes scrollLine { 0%{transform:scaleY(0);opacity:0} 40%{transform:scaleY(1);opacity:1} 80%{transform:scaleY(1);opacity:0} 100%{transform:scaleY(0);opacity:0} }

        /* Marquee */
        .marquee-section { padding: 30px 0; border-top: 1px solid var(--color-border-light); border-bottom: 1px solid var(--color-border-light); overflow: hidden; position: relative; z-index: 5; background: var(--color-bg); }
        .marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
        .marquee-item { display: flex; align-items: center; gap: 30px; padding: 0 30px; white-space: nowrap; font-family: var(--font-display); font-size: 1rem; font-weight: 300; font-style: italic; letter-spacing: 0.1em; color: var(--color-text-dim); }
        .marquee-item .dot { width: 4px; height: 4px; background: var(--color-accent); border-radius: 50%; flex-shrink: 0; }
        @keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

        /* Atelier */
        .atelier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
        .atelier-visual { position: relative; height: clamp(400px, 55vh, 700px); overflow: hidden; }
        .atelier-image-wrapper { width: 100%; height: 100%; overflow: hidden; position: relative; }
        .atelier-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
        .atelier-image-reveal { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-bg); transform-origin: top; }
        .atelier-accent-line { position: absolute; bottom: -20px; right: -20px; width: 100px; height: 100px; border-right: 1px solid var(--color-accent); border-bottom: 1px solid var(--color-accent); opacity: 0; }
        .atelier-content { max-width: 520px; }

        /* Project detail images wrapper */
        .sfp-project-images { display: flex; flex-direction: column; gap: 20px; }
        .section-label { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 25px; display: flex; align-items: center; gap: 15px; }
        .section-label::before { content: ''; display: inline-block; width: 30px; height: 1px; background: var(--color-accent); }
        .section-title { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; color: var(--color-white); margin-bottom: 30px; }
        .section-text { font-size: 0.95rem; line-height: 1.8; color: var(--color-text-muted); margin-bottom: 25px; }
        .text-accent { color: var(--color-accent); font-style: italic; }

        /* Services - Pinned split-screen */
        .services-section { background: var(--color-bg-warm); overflow: hidden; position: relative; z-index: 5; }
        .services-header { text-align: center; margin-bottom: 0; padding-bottom: clamp(40px, 6vh, 80px); }
        .services-header .section-title { max-width: 600px; margin-left: auto; margin-right: auto; }
        .services-split { position: relative; overflow: hidden; }
        .services-split-inner { display: grid; grid-template-columns: 1fr 1fr; height: 100vh; position: relative; }
        .services-visual { position: relative; overflow: hidden; height: 100%; }
        .services-visual-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
        .services-visual-slide img { width: 100%; height: 100%; object-fit: cover; }
        .services-visual-slide:nth-child(2) { opacity: 0; }
        .services-visual-progress { position: absolute; bottom: 40px; left: 40px; display: flex; gap: 8px; z-index: 5; }
        .services-progress-dot { width: 30px; height: 2px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; }
        .services-progress-dot-fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-accent); transform-origin: left; transform: scaleX(0); }
        .services-content { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; overflow: hidden; }
        .services-content-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 5vw, 80px); }
        .services-content-slide:nth-child(2) { opacity: 0; }
        .services-slide-number { font-family: var(--font-display); font-size: clamp(7rem, 12vw, 11rem); font-weight: 300; font-style: italic; color: var(--color-border); position: absolute; top: 50%; right: clamp(20px, 3vw, 50px); transform: translateY(-50%); line-height: 1; pointer-events: none; z-index: 0; }
        .services-slide-inner { position: relative; z-index: 1; max-width: 460px; }
        .services-slide-mobile-image { display: none; }
        .services-slide-divider { width: 40px; height: 1px; background: var(--color-accent); margin-bottom: 20px; }
        .services-slide-title { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1.05; color: var(--color-white); margin-bottom: 20px; }
        .services-slide-desc { font-size: 0.95rem; line-height: 1.8; color: var(--color-text-muted); margin-bottom: 35px; }
        .services-slide-link { display: inline-flex; align-items: center; gap: 15px; padding: 16px 35px; border: 1px solid var(--color-accent); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); position: relative; overflow: hidden; transition: color 0.4s 0.1s; }
        .services-slide-link::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out-expo); }
        .services-slide-link:hover { color: var(--color-bg); }
        .services-slide-link:hover::before { transform: scaleX(1); transform-origin: left; }
        .services-slide-link span, .services-slide-link svg { position: relative; z-index: 1; }
        .services-slide-link svg { width: 18px; transition: transform 0.4s var(--ease-out-expo); }
        .services-slide-link:hover svg { transform: translateX(5px); }
        @media (max-width: 1024px) { .services-split { overflow: visible; } .services-split-inner { display: block; height: auto; } .services-visual { display: none; } .services-slide-mobile-image { display: block; width: 100%; height: 50vh; min-height: 300px; overflow: hidden; } .services-slide-mobile-image img { width: 100%; height: 100%; object-fit: cover; } .services-content { display: block; height: auto; min-height: auto; overflow: visible; } .services-content-slide { position: relative !important; top: auto !important; left: auto !important; width: 100% !important; height: auto !important; opacity: 1 !important; transform: none !important; pointer-events: auto !important; padding: clamp(30px, 5vw, 60px); } .services-content-slide:nth-child(2) { opacity: 1 !important; border-top: 1px solid var(--color-border); } .services-slide-number { font-size: 5rem; position: relative; top: auto; right: auto; transform: none; opacity: 0.3; margin-bottom: 5px; z-index: 1; } .services-slide-divider { margin-top: 0; } }

        /* About */
        .about-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
        .about-content { padding-top: clamp(20px, 3vh, 60px); }
        .about-quote { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 300; font-style: italic; line-height: 1.4; color: var(--color-white); margin-bottom: 40px; padding-left: 30px; border-left: 1px solid var(--color-accent); }
        .about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
        .about-detail-item { padding: 20px 0; border-top: 1px solid var(--color-border); }
        .about-detail-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; color: var(--color-accent); line-height: 1; margin-bottom: 8px; }
        .about-detail-label { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--color-text-muted); }
        .about-images { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
        .about-image-wrapper { overflow: hidden; height: clamp(200px, 30vh, 350px); position: relative; }
        .about-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

        /* Réalisations */
        .realisations-section { background: var(--color-bg-warm); overflow: hidden; }
        .realisations-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(40px, 6vh, 80px); }
        .realisations-count { font-family: var(--font-display); font-size: 0.9rem; font-style: italic; color: var(--color-text-dim); }
        .realisations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
        .realisation-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/5; }
        .realisation-image { width: 100%; height: 100%; overflow: hidden; }
        .realisation-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out-expo); }
        .realisation-item:hover .realisation-image img { transform: scale(1.05); }
        .realisation-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: clamp(20px, 3vw, 40px); background: linear-gradient(to top, rgba(12,11,9,0.9) 0%, transparent 100%); transform: translateY(20px); opacity: 0; transition: transform 0.5s var(--ease-out-expo), opacity 0.5s; }
        .realisation-item:hover .realisation-overlay { transform: translateY(0); opacity: 1; }
        .realisation-category { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 6px; }
        .realisation-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; font-style: italic; color: var(--color-white); margin-bottom: 8px; }
        .realisation-desc { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

        /* Modal */
        .realisation-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
        .realisation-modal.is-active { opacity: 1; visibility: visible; }
        .modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(12,11,9,0.92); backdrop-filter: blur(10px); }
        .modal-content { position: relative; z-index: 2; width: 90%; max-width: 900px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--color-surface); overflow: hidden; transform: translateY(30px); transition: transform 0.5s var(--ease-out-expo); }
        .realisation-modal.is-active .modal-content { transform: translateY(0); }
        .modal-image { height: 100%; min-height: 400px; overflow: hidden; }
        .modal-image img { width: 100%; height: 100%; object-fit: cover; }
        .modal-info { padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; }
        .modal-category { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 15px; }
        .modal-title { font-family: var(--font-display); font-size: 2rem; font-weight: 300; font-style: italic; color: var(--color-white); margin-bottom: 20px; line-height: 1.2; }
        .modal-description { font-size: 0.9rem; line-height: 1.8; color: var(--color-text-muted); }
        .modal-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-border); }
        .modal-meta:empty { display: none; }
        .modal-meta-item { display: flex; flex-direction: column; gap: 4px; }
        .modal-meta-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); }
        .modal-meta-value { font-family: var(--font-display); font-size: 1rem; font-style: italic; color: var(--color-text); }
        .modal-gallery-nav { display: flex; gap: 10px; margin-top: 25px; }
        .modal-gallery-btn { width: 40px; height: 40px; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); transition: border-color 0.3s, color 0.3s; }
        .modal-gallery-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
        .modal-gallery-btn svg { width: 16px; height: 16px; }
        .modal-gallery-counter { font-size: 0.75rem; color: var(--color-text-dim); display: flex; align-items: center; padding: 0 10px; }
        .modal-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; z-index: 3; color: var(--color-text-muted); transition: color 0.3s; }
        .modal-close:hover { color: var(--color-white); }
        .modal-close svg { width: 20px; height: 20px; }

        /* Gallery — horizontal scroll */
        .gallery-scroll-wrapper { position: relative; background: var(--color-bg); z-index: 5; }
        .gallery-section { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; background: var(--color-bg); display: flex; flex-direction: column; }
        .gallery-top { display: flex; justify-content: space-between; align-items: flex-end; padding: clamp(25px, 4vh, 50px) var(--container-padding) 0; flex-shrink: 0; }
        .gallery-top .section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 300; font-style: italic; color: var(--color-white); line-height: 1.1; }
        .gallery-counter { font-family: var(--font-display); font-size: clamp(1rem, 1.5vw, 1.3rem); font-style: italic; color: var(--color-text-dim); white-space: nowrap; }
        .gallery-counter .current { color: var(--color-accent); font-size: 1.4em; }
        .gallery-track-area { flex: 1; display: flex; align-items: center; overflow: visible; position: relative; }
        .gallery-track { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding: 0 var(--container-padding); height: 70vh; will-change: transform; transform: translateX(0); }
        .gallery-hscroll-item { flex-shrink: 0; position: relative; overflow: hidden; border-radius: 3px; }
        .gallery-hscroll-item img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 0.7s cubic-bezier(0.25, 0, 0.25, 1); }
        .gallery-hscroll-item:hover img { transform: scale(1.0); }
        .gallery-hscroll-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,11,9,0.3) 0%, transparent 40%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
        .gallery-hscroll-item:hover::after { opacity: 1; }
        .gallery-hscroll-item--tall { width: clamp(280px, 28vw, 420px); height: 62vh; align-self: flex-start; margin-top: 2vh; }
        .gallery-hscroll-item--wide { width: clamp(380px, 36vw, 550px); height: 48vh; align-self: center; }
        .gallery-hscroll-item--small { width: clamp(220px, 22vw, 320px); height: 42vh; align-self: flex-end; margin-bottom: 2vh; }
        .gallery-progress-wrap { flex-shrink: 0; padding: 0 var(--container-padding) clamp(20px, 3vh, 40px); }
        .gallery-progress { width: 100%; height: 1px; background: var(--color-border); position: relative; overflow: hidden; }
        .gallery-progress-bar { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--color-accent); }
        @media (max-width: 768px) {
            .gallery-scroll-wrapper { height: auto !important; }
            .gallery-section { position: relative; height: auto; padding: var(--section-padding) 0; }
            .gallery-track-area { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
            .gallery-track { padding: 20px var(--container-padding); height: auto; gap: 12px; }
            .gallery-hscroll-item--tall, .gallery-hscroll-item--wide, .gallery-hscroll-item--small { width: 75vw; height: 55vh; align-self: center; margin: 0; scroll-snap-align: center; }
            .gallery-counter { display: none; }
            .gallery-progress-wrap { display: none; }
        }

        /* CTA */
        .cta-section { text-align: center; position: relative; overflow: hidden; z-index: 10; background: var(--color-bg); }
        .cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(200,168,124,0.05) 0%, transparent 70%); pointer-events: none; }
        .cta-title { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; color: var(--color-white); margin-bottom: 20px; }
        .cta-text { font-size: 1rem; color: var(--color-text-muted); margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }
        .btn-primary { display: inline-flex; align-items: center; gap: 15px; padding: 18px 40px; border: 1px solid var(--color-accent); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); position: relative; overflow: hidden; transition: color 0.4s 0.1s; }
        .btn-primary::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out-expo); }
        .btn-primary:hover { color: var(--color-bg); }
        .btn-primary:hover::before { transform: scaleX(1); transform-origin: left; }
        .btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
        .btn-primary svg { width: 18px; transition: transform 0.4s var(--ease-out-expo); }
        .btn-primary:hover svg { transform: translateX(5px); }

        /* Footer */
        /* Approach timeline */
        .approach-header { margin-bottom: clamp(40px, 6vh, 70px); }
        .approach-timeline { position: relative; }
        .approach-step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; opacity: 0; transform: translateY(50px); }
        .approach-step--reverse { direction: rtl; }
        .approach-step--reverse > * { direction: ltr; }
        .approach-step.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease, transform 0.8s ease; }
        .approach-step-visual { position: relative; }
        .approach-step-image { overflow: hidden; aspect-ratio: 4/5; }
        .approach-step-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .approach-step-number { font-family: var(--font-display); font-style: italic; font-size: clamp(3rem, 6vw, 5rem); color: var(--color-accent); opacity: 0.2; line-height: 1; display: block; margin-bottom: 10px; }
        .approach-step-title { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(1.3rem, 2.5vw, 2rem); color: var(--color-white); margin-bottom: 15px; line-height: 1.2; }
        .approach-arrow { display: flex; justify-content: center; padding: 15px 0; }
        .approach-arrow-svg { width: 60px; height: 120px; }
        .approach-arrow-path, .approach-arrow-head { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
        .approach-arrow.is-drawn .approach-arrow-path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s ease; }
        .approach-arrow.is-drawn .approach-arrow-head { stroke-dashoffset: 0; transition: stroke-dashoffset 0.5s ease 0.8s; }
        @media (max-width: 768px) { .approach-step { grid-template-columns: 1fr; } .approach-step--reverse { direction: ltr; } .approach-arrow-svg { height: 80px; } }

        /* Collaborations */
        .partenaire-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
        .partenaire-card--reverse { direction: rtl; }
        .partenaire-card--reverse > * { direction: ltr; }
        .partenaire-visual { position: relative; }
        .partenaire-content { position: relative; }
        .partenaire-content .section-title { font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin-bottom: 10px; }
        .partenaire-subtitle { font-family: var(--font-display); font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-style: italic; color: var(--color-text-muted); margin-top: 0; margin-bottom: 30px; }

        /* Slider collaborations */
        .partenaire-slider { position: relative; overflow: hidden; aspect-ratio: 4/5; }
        .partenaire-slider-track { display: flex; height: 100%; transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1); }
        .partenaire-slider-slide { flex: 0 0 100%; height: 100%; overflow: hidden; position: relative; }
        .partenaire-slider-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .partenaire-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(12, 11, 9, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(200, 168, 124, 0.2); color: var(--color-white); cursor: pointer; transition: background 0.3s, border-color 0.3s; z-index: 2; }
        .partenaire-slider-btn:hover { background: rgba(12, 11, 9, 0.85); border-color: var(--color-accent); }
        .partenaire-slider-btn svg { width: 16px; height: 16px; }
        .partenaire-slider-prev { left: 12px; }
        .partenaire-slider-next { right: 12px; }
        .partenaire-slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
        .partenaire-slider-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); background: transparent; cursor: pointer; transition: background 0.3s, border-color 0.3s; padding: 0; }
        .partenaire-slider-dot.is-active { background: var(--color-accent); border-color: var(--color-accent); }
        .photo-credit { position: absolute; bottom: 8px; right: 8px; background: rgba(255,255,255,0.85); color: #222; font-size: 0.6rem; letter-spacing: 0.03em; padding: 3px 7px; line-height: 1.3; z-index: 2; pointer-events: none; }
        @media (max-width: 768px) { .partenaire-card { grid-template-columns: 1fr; } .partenaire-card--reverse { direction: ltr; } .partenaire-slider { aspect-ratio: 1/1; } }

        /* Footer */
        .site-footer { border-top: 1px solid var(--color-border-light); padding: 60px 0 30px; position: relative; z-index: 10; background: var(--color-bg); }
        .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
        .footer-brand .site-logo { margin-bottom: 20px; }
        .footer-address { font-size: 0.85rem; line-height: 1.8; color: var(--color-text-muted); }
        .footer-heading { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-dim); margin-bottom: 25px; }
        .footer-links { display: flex; flex-direction: column; gap: 12px; }
        .footer-links a { font-size: 0.9rem; color: var(--color-text-muted); transition: color 0.3s; }
        .footer-links a:hover { color: var(--color-accent); }
        .footer-contact-item { display: block; margin-bottom: 10px; color: var(--color-text-muted); font-size: 0.9rem; transition: color 0.3s; }
        .footer-contact-item:hover { color: var(--color-accent); }
        .footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; border-top: 1px solid var(--color-border-light); font-size: 0.75rem; color: var(--color-text-dim); }
        .footer-credit a { color: var(--color-accent); }

        /* Back to top */
        .back-to-top { position: fixed; bottom: 30px; right: 30px; z-index: 90; width: 44px; height: 44px; border: 1px solid var(--color-border); background: rgba(12, 11, 9, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; color: var(--color-accent); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s, transform 0.4s var(--ease-out-expo), border-color 0.3s, background 0.3s; }
        .back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
        .back-to-top:hover { border-color: var(--color-accent); background: rgba(200, 168, 124, 0.1); }
        .back-to-top svg { width: 18px; height: 18px; }

        /* Animations init states */
        [data-animate] { opacity: 0; }
        [data-animate="fade-up"] { transform: translateY(40px); }
        [data-animate="reveal-left"] { clip-path: inset(0 100% 0 0); }

        /* Responsive */
        @media (max-width: 1024px) {
            .atelier-grid, .about-layout { grid-template-columns: 1fr; gap: 40px; }
            .services-grid { grid-template-columns: 1fr; }
            .realisations-grid { grid-template-columns: repeat(2, 1fr); }
            .footer-grid { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 768px) {
            /* Taille texte globale mobile */
            body { font-size: 17px; }
            .section-text { font-size: 1rem; line-height: 1.75; }

            /* Menu mobile — texte plus gros */
            .main-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; background: var(--color-bg); flex-direction: column; align-items: center; justify-content: center; gap: 0; z-index: 99; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
            .main-nav.is-open { opacity: 1; visibility: visible; }
            .main-nav.is-open ul, .main-nav.is-open .menu { flex-direction: column; gap: 0; }
            .main-nav a { font-size: 2rem; font-family: var(--font-display); font-style: italic; font-weight: 300; letter-spacing: 0.05em; text-transform: none; color: var(--color-text); padding: 20px 0; opacity: 0; transform: translateY(20px); transition: opacity 0.3s, transform 0.3s, color 0.3s; }
            .main-nav.is-open a { opacity: 1; transform: translateY(0); }
            .main-nav.is-open li:nth-child(1) a { transition-delay: 0.1s; }
            .main-nav.is-open li:nth-child(2) a { transition-delay: 0.15s; }
            .main-nav.is-open li:nth-child(3) a { transition-delay: 0.2s; }
            .main-nav.is-open li:nth-child(4) a { transition-delay: 0.25s; }
            .main-nav.is-open li:nth-child(5) a { transition-delay: 0.3s; }
            .main-nav a::after { display: none; }
            .main-nav a:hover { color: var(--color-accent); }
            .header-contact { display: none; }
            .menu-toggle { display: flex; z-index: 101; }

            /* Hero + marquee dans 100vh */
            .hero { height: calc(100dvh - 60px); min-height: 400px; padding-bottom: 40px; }
            .hero-scroll { display: none; }
            .marquee-section { padding: 18px 0; }
            .marquee-item { font-size: 0.85rem; gap: 20px; padding: 0 20px; }

            /* Savoir-faire — chiffres plus visibles */
            .services-slide-mobile-image { height: 45vh; min-height: 280px; }
            .services-slide-number { font-size: 4rem; color: var(--color-accent); opacity: 0.5; }

            /* Projets détail — slider sous le texte */
            .sfp-project-grid { direction: ltr !important; }
            .sfp-project-grid > * { direction: ltr !important; }
            .sfp-project-grid .atelier-content { order: 1; }
            .sfp-project-grid .sfp-project-images { order: 2; }
            .sfp-project-grid .partenaire-slider { aspect-ratio: 4/3; }

            /* Réalisations grid */
            .realisations-grid { grid-template-columns: 1fr; }
            .realisation-item { aspect-ratio: 3/4 !important; }

            /* Modal — fullscreen scrollable, image pleine largeur */
            .realisation-modal { align-items: flex-start; }
            .modal-content { grid-template-columns: 1fr; width: 100%; max-width: 100%; max-height: 100vh; max-height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 0; }
            .modal-image { min-height: auto; max-height: none; aspect-ratio: 16/10; }
            .modal-image img { width: 100%; height: 100%; object-fit: cover; }
            .modal-info { padding: 25px 20px 40px; }
            .modal-description { font-size: 1rem; }
            .modal-close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; background: rgba(12, 11, 9, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--color-border); border-radius: 50%; z-index: 10; }
            .modal-close svg { width: 18px; height: 18px; }
            .modal-close:hover { color: var(--color-white); }

            .footer-grid { grid-template-columns: 1fr; }
            .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
            .cursor, .cursor-dot { display: none; }
        }