/* ============================================
   MAISON D'OMBRE - Luxury Design v3
   Inspired by humaan.com

   Palette:
   - Background: #FDFBF7 (warm white)
   - Text: #1A1A1A (charcoal)
   - Accent: #9B4D2B (terracotta)
   - Secondary: #4A5568 (slate)
   ============================================ */

:root {
    /* Luxury Color Palette */
    --color-bg: #FDFBF7;
    --color-bg-alt: #F5F3EE;
    --color-text: #1A1A1A;
    --color-text-light: #6B7280;
    --color-accent: #9B4D2B;
    --color-accent-hover: #7D3D22;
    --color-secondary: #4A5568;
    --color-dark: #111111;
    --color-white: #FFFFFF;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ==========================================
   CUSTOM CURSOR - MAGNETIC EFFECT
   ========================================== */
@media (pointer: fine) {
    * {
        cursor: none !important;
    }

    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        pointer-events: none;
        z-index: 99999;
        mix-blend-mode: difference;
    }

    .cursor-dot {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        background: #FFFFFF;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: transform 0.15s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
    }

    .custom-cursor::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: transform 0.4s var(--ease-out), width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
    }

    /* Hover state */
    .custom-cursor.hover .cursor-dot {
        width: 60px;
        height: 60px;
        background: var(--color-accent);
    }

    .custom-cursor.hover::before {
        width: 80px;
        height: 80px;
        border-color: var(--color-accent);
    }

    /* Click state */
    .custom-cursor.click .cursor-dot {
        transform: translate(-50%, -50%) scale(0.8);
    }

    .custom-cursor.click::before {
        transform: translate(-50%, -50%) scale(0.9);
    }

    /* Text hover */
    .custom-cursor.text .cursor-dot {
        width: 4px;
        height: 30px;
        border-radius: 2px;
    }

    .custom-cursor.text::before {
        opacity: 0;
    }
}

/* Touch devices - no custom cursor */
@media (pointer: coarse) {
    .custom-cursor { display: none; }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3.5rem, 10vw, 8rem); }
h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 2rem 0;
    transition: all 0.5s var(--ease);
}

/* Initially transparent with white text over hero */
.nav .nav-logo,
.nav .nav-links a {
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.4s var(--ease);
}

.nav .nav-links a:hover {
    color: var(--color-accent);
    text-shadow: none;
}

.nav.scrolled {
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.nav.scrolled .nav-logo,
.nav.scrolled .nav-links a {
    color: var(--color-text);
    text-shadow: none;
}

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.logo-icon { display: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-secondary);
    transition: color 0.3s var(--ease);
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-cta {
    background: var(--color-text) !important;
    color: var(--color-white) !important;
    padding: 0.875rem 1.75rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.12em !important;
    transition: background 0.3s var(--ease) !important;
}

.nav-cta:hover {
    background: var(--color-accent) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    position: relative;
    /* original ↓ */
    gap: 5px;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
    transform-origin: center;
}

/* Solid pill background for visibility over hero images */
.nav-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    z-index: -1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.3s var(--ease);
}

.nav.scrolled .nav-toggle::before {
    background: transparent;
    box-shadow: none;
}

/* X anim on active */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Dark mode adapt */
[data-theme="dark"] .nav-toggle::before {
    background: rgba(15, 15, 15, 0.85);
}
[data-theme="dark"] .nav-toggle span {
    background: #fff;
}

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

.hero-bg {
    position: absolute;
    inset: -15%;
    z-index: 1;
    will-change: transform;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    /* Subtle anti-pixelization - reduced blur for sharper images */
    image-rendering: auto;
    filter: blur(0.3px) saturate(1.15) contrast(1.08) brightness(1.02);
    transform: scale(1.08);
    /* Smooth edges */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Stronger gradient to mask pixelation + cinematic look */
    background:
        linear-gradient(
            135deg,
            rgba(155, 77, 43, 0.15) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.1) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.45) 0%,
            rgba(0,0,0,0.25) 30%,
            rgba(0,0,0,0.35) 70%,
            rgba(0,0,0,0.65) 100%
        );
    z-index: 2;
}

/* Film grain texture - stronger for luxury cinema effect */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.08;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: overlay;
}

/* Hide old hero elements */
.hero::before,
.hero::after,
.moroccan-pattern,
.parallax-layer,
.celestial-container,
.canvas-container {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-white);
    padding: var(--space-md);
    max-width: 1000px;
    will-change: transform, opacity;
}

.hero-tagline,
.hero-subtitle,
.hero-cta,
.scroll-indicator {
    will-change: transform, opacity;
}

.hero-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.8),
        0 4px 20px rgba(0,0,0,0.6),
        0 8px 40px rgba(0,0,0,0.4);
}

.hero-tagline,
.hero-subtitle {
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.title-line {
    display: block;
    will-change: transform, opacity;
}

.title-line.accent {
    font-style: italic;
    font-weight: 400;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.9 !important;
    animation: none !important;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 3rem;
    opacity: 0.85 !important;
    line-height: 1.7;
    animation: none !important;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 1 !important;
    animation: none !important;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--color-white);
    opacity: 0.6 !important;
    animation: none !important;
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--color-white);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(8px); }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 2.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease);
}

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

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

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

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

.btn-dark {
    
    color: var(--color-white);
}

.btn-dark:hover {
    background: var(--color-accent);
}

.btn-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

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

.section-title {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   INTRO STATEMENT
   ========================================== */
.intro {
    padding: var(--space-xl) 0;
    background: var(--color-bg);
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-text);
}

.intro-text .highlight {
    color: var(--color-accent);
    font-style: italic;
}

/* ==========================================
   EXPERTISE
   ========================================== */
.expertise {
    background: var(--color-bg-alt);
}

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

.expertise-card {
    background: var(--color-white);
    overflow: hidden;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}

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

.expertise-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.expertise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
    /* Anti-pixelization */
    image-rendering: auto;
    filter: blur(0.3px) saturate(1.05);
}

/* Grain overlay for expertise images */
.expertise-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

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

.expertise-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.expertise-content {
    padding: 2rem;
}

.expertise-icon {
    display: none;
}

.expertise-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.expertise-content p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.expertise-features {
    margin-bottom: 1.5rem;
}

.expertise-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.expertise-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
}

.expertise-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.expertise-link:hover {
    gap: 0.75rem;
}

.expertise-link svg {
    width: 14px;
    height: 14px;
}

/* ==========================================
   GALLERY
   ========================================== */
.realisations {
    background: var(--color-bg);
}

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

.filter-btn {
    padding: 0.875rem 1.75rem;
    min-height: 44px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    background: transparent;
    border: 1px solid #E5E5E5;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

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

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15);
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(155, 77, 43, 0.25);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* will-change retiré : 12+ items × 2 props excédait le budget Firefox.
       GSAP gère le compositing automatiquement à l'animation. */
}

/* Gallery grid layout - masonry style */
.gallery-item:nth-child(1) { grid-column: span 8; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(6) { grid-column: span 6; }
.gallery-item:nth-child(7) { grid-column: span 6; }
.gallery-item:nth-child(8) { grid-column: span 8; }
.gallery-item:nth-child(9) { grid-column: span 4; }
.gallery-item:nth-child(n+10) { grid-column: span 4; }

.gallery-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
}

.gallery-item:nth-child(1) .gallery-image {
    padding-bottom: 56%;
}

.gallery-image img {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out), filter 0.4s var(--ease);
    /* Subtle anti-pixelization - reduced blur for sharper images */
    image-rendering: auto;
    filter: blur(0.3px) saturate(1.1) contrast(1.05) brightness(1.02);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Grain overlay for gallery items - stronger */
.gallery-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: var(--color-white);
    transform: translateY(10px);
    transition: transform 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h4 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.gallery-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.gallery-location {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ==========================================
   PARALLAX IMAGE
   ========================================== */
.parallax-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-section {
    overflow: hidden;
}

.parallax-img-container,
.parallax-bg {
    position: absolute;
    inset: -20%;
    z-index: 1;
}

.parallax-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 100%
    );
    z-index: 2;
}

.parallax-img,
.parallax-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Subtle anti-pixelization - reduced blur for sharper images */
    image-rendering: auto;
    filter: blur(0.3px) saturate(1.15) contrast(1.08) brightness(1.02);
    transform: scale(1.1);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Grain texture overlay for parallax images - luxury film effect */
.parallax-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}

.parallax-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.parallax-section.dark .parallax-img-container::after {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.5) 0%,
        rgba(0,0,0,0.7) 100%
    );
}

.parallax-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: var(--space-md);
}

.parallax-content h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.parallax-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto;
}

/* ==========================================
   STATS
   ========================================== */
.stats-section {
    padding: var(--space-lg) 0;
    
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: var(--color-white);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 5rem);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ==========================================
   CLIENTS
   ========================================== */
.clients-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, #FDFBF7 0%, #F8F5EF 50%, #FDFBF7 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative lines */
.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
}

.clients-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.15em;
    text-transform: none;
    color: var(--color-text);
    margin-bottom: 4rem;
    position: relative;
}

.clients-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

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

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px;
    transition: all 0.5s var(--ease-out);
    position: relative;
    min-height: 120px;
    backdrop-filter: blur(10px);
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 2px;
    background: var(--color-accent);
    transition: transform 0.4s var(--ease-out);
    transform-origin: center;
}

.client-logo:hover {
    background: rgba(255,255,255,0.95);
    border-color: rgba(155, 77, 43, 0.15);
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px -15px rgba(155, 77, 43, 0.15),
        0 0 0 1px rgba(155, 77, 43, 0.05);
}

.client-logo:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* SVG Hotel Logos */
.hotel-logo {
    width: 140px;
    height: 50px;
    color: var(--color-text);
    opacity: 0.75;
    transition: all 0.4s var(--ease);
}

.client-logo:hover .hotel-logo {
    opacity: 1;
    color: var(--color-accent);
}

/* Location text under logo */
.client-location {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    opacity: 0.6;
    transition: all 0.4s var(--ease);
}

.client-logo:hover .client-location {
    opacity: 1;
    color: var(--color-accent);
}

/* Legacy support for text-only logos */
.client-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    font-style: italic;
    color: var(--color-text);
    opacity: 0.7;
    transition: all 0.4s var(--ease);
}

.client-logo:hover .client-name {
    opacity: 1;
    color: var(--color-accent);
}

.client-type {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================
   POURQUOI NOUS
   ========================================== */
.pourquoi {
    background: #1A1A1A !important;
    color: #FFFFFF !important;
    
    color: var(--color-white);
}

.pourquoi::before { display: none; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: var(--space-lg);
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s var(--ease);
    opacity: 1 !important;
    transform: none !important;
}

.feature-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px) !important;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* Stats Bar in Pourquoi */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat .stat-number::after {
    content: '+';
}

.stat .stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ==========================================
   PROCESS
   ========================================== */
.processus {
    background: var(--color-bg);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-timeline::before { display: none; }

.process-step {
    text-align: center;
    opacity: 1 !important;
    transform: none !important;
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: var(--color-bg-alt);
    line-height: 1;
    margin-bottom: 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials {
    background: var(--color-bg-alt);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
}

.testimonial-card {
    background: var(--color-white);
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.5s var(--ease-out);
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    position: relative;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--color-accent);
    line-height: 0.5;
    opacity: 0.2;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--color-accent);
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    
    border-color: var(--color-text);
}

.testimonial-prev svg,
.testimonial-next svg {
    width: 18px;
    height: 18px;
    color: var(--color-text);
    transition: color 0.3s var(--ease);
}

.testimonial-prev:hover svg,
.testimonial-next:hover svg {
    color: var(--color-white);
}

.testimonials-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E5E5E5;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    /* Touch target padding */
    padding: 8px;
    box-sizing: content-box;
    margin: -8px;
}

.dot:hover {
    background: #CCC;
}

.dot.active {
    background: var(--color-accent);
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
    background: #1A1A1A !important;
    color: #FFFFFF !important;
    
    color: var(--color-white);
}

.contact::before { display: none; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-info .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-info .section-label {
    color: var(--color-accent);
}

.contact-info .section-title {
    color: var(--color-white);
}

.contact-info .section-subtitle {
    color: rgba(255,255,255,0.6);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.contact-item strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 2px;
}

.contact-item a,
.contact-item > span {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s var(--ease);
}

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

.contact-form {
    background: var(--color-white);
    padding: 3rem;
}

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

.form-group {
    margin-bottom: 1rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid #E5E5E5;
    transition: all 0.3s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-bg { display: none; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-lg) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .nav-logo {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    max-width: 300px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.footer-social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    color: var(--color-white);
}

.footer-links h4 {
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s var(--ease);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .gallery-item:nth-child(1) { grid-column: span 12; }
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) { grid-column: span 6; }
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(7),
    .gallery-item:nth-child(8) { grid-column: span 4; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        padding: 4rem 2rem;
        z-index: 99;
        margin: 0;
        list-style: none;
        overflow-y: auto;
    }

    .nav-links.active { display: flex !important; }
    .nav-links a {
        font-size: 1.75rem;
        font-family: var(--font-display);
        color: var(--color-text) !important;
        font-weight: 500;
        letter-spacing: 0.02em;
        padding: 0.5rem 1.5rem;
        transition: color 0.2s var(--ease);
    }
    .nav-links a:hover { color: var(--color-accent) !important; }
    .nav-links .nav-cta {
        margin-top: 1rem;
        background: var(--color-accent);
        color: #fff !important;
        padding: 1rem 2.5rem;
        border-radius: 999px;
        font-size: 1rem;
    }
    .nav-links .nav-cta:hover { background: var(--color-accent-hover); color: #fff !important; }
    .nav-toggle { display: flex; }

    /* Dark mode mobile menu */
    [data-theme="dark"] .nav-links {
        background: #0F0F0F;
    }
    [data-theme="dark"] .nav-links a {
        color: #fff !important;
    }

    .expertise-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; }

    .gallery-item { grid-column: span 12 !important; }

    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
}

/* Reveal animations (handled by JS) */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9998;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(37, 211, 102, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 30px rgba(37, 211, 102, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2);
    animation: none;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #FFFFFF;
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;
    
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.whatsapp-float .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--color-text);
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(37, 211, 102, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow:
            0 4px 30px rgba(37, 211, 102, 0.6),
            0 2px 12px rgba(0, 0, 0, 0.2),
            0 0 0 8px rgba(37, 211, 102, 0.15);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-float .tooltip {
        display: none;
    }
}

/* ==========================================
   ACCESSIBILITY - FOCUS STATES
   ========================================== */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Buttons and links */
.btn:focus-visible,
.filter-btn:focus-visible,
.nav-links a:focus-visible,
.nav-cta:focus-visible,
.expertise-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Form elements */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(155, 77, 43, 0.15);
}

/* Testimonial navigation */
.testimonial-prev:focus-visible,
.testimonial-next:focus-visible,
.dot:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Gallery items */
.gallery-item:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* WhatsApp button */
.whatsapp-float:focus-visible {
    outline: 3px solid var(--color-white);
    outline-offset: 3px;
}

/* Skip to content link (accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    
    color: var(--color-white);
    padding: 1rem 2rem;
    z-index: 10000;
    transition: top 0.3s var(--ease);
}

.skip-link:focus {
    top: 1rem;
}

/* ==========================================
   GRADIENT MESH AURORA BACKGROUND
   ========================================== */
.aurora-bg {
    position: relative;
}

.aurora-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(155, 77, 43, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(74, 85, 104, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(155, 77, 43, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 10% 70%, rgba(26, 26, 26, 0.05) 0%, transparent 50%);
    animation: auroraFlow 20s ease-in-out infinite;
}

.aurora-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 70% 60%, rgba(155, 77, 43, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 30% 40%, rgba(74, 85, 104, 0.08) 0%, transparent 50%);
    animation: auroraFlow 25s ease-in-out infinite reverse;
}

@keyframes auroraFlow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5%, 3%) rotate(2deg);
    }
    50% {
        transform: translate(-3%, 5%) rotate(-1deg);
    }
    75% {
        transform: translate(3%, -3%) rotate(1deg);
    }
}

/* Apply to sections */
.pourquoi {
    background: #1A1A1A !important;
    color: #FFFFFF !important;
    position: relative;
    overflow: hidden;
}

.pourquoi::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(155, 77, 43, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(155, 77, 43, 0.05) 0%, transparent 40%);
    animation: auroraFlow 30s ease-in-out infinite;
    pointer-events: none;
}

/* ==========================================
   GLASSMORPHISM CARDS
   ========================================== */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(155, 77, 43, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Explicit glass-card class for detection */
.glass-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(155, 77, 43, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

/* Feature numbers with gradient */
.feature-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    background: linear-gradient(135deg, var(--color-accent) 0%, #D4A574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

/* ==========================================
   PREMIUM HOVER EFFECTS
   ========================================== */
.expertise-card {
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.7s var(--ease);
    z-index: 10;
    pointer-events: none;
}

.expertise-card:hover::before {
    left: 100%;
}

/* Gallery item shine effect */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    z-index: 5;
    pointer-events: none;
    transition: left 0.7s var(--ease);
}

.gallery-item:hover::before {
    left: 125%;
}

/* CTA Buttons glow effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--color-accent), #D4A574, var(--color-accent));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    filter: blur(10px);
}

.btn-primary:hover::before {
    opacity: 0.5;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s var(--ease-out);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s var(--ease-out);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: perspective(1000px) rotateX(10deg) translateY(40px);
    transition: all 1s var(--ease-out);
}

.reveal-rotate.revealed {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.4s; }

.stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Text scramble effect */
.scramble-char {
    color: var(--color-accent);
}

/* Kinetic typography chars */
.title-line .char {
    display: inline-block;
    /* will-change retiré : 13 chars × 2 props = budget Firefox dépassé.
       L'animation kinetic typography est ponctuelle (1× au load). */
}

/* Hero content parallax */
.hero-content {
    will-change: transform;
}

/* Enhanced title shadow */
.hero-title {
    text-shadow:
        0 2px 4px rgba(0,0,0,0.8),
        0 4px 20px rgba(0,0,0,0.6),
        0 8px 40px rgba(0,0,0,0.4),
        0 0 80px rgba(155, 77, 43, 0.3);
}

/* ==========================================
   EXPLICIT COLOR FIXES - CONTRAST
   ========================================== */
.pourquoi,
.contact {
    background: #1A1A1A !important;
}

.pourquoi .section-title,
.pourquoi .section-label,
.pourquoi h3,
.contact .section-title,
.contact h3 {
    color: #FFFFFF !important;
}

.pourquoi p,
.contact p,
.pourquoi .section-subtitle,
.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

.feature-card h3 {
    color: #FFFFFF !important;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6) !important;
}

.feature-number {
    color: #9B4D2B !important;
    font-size: 3rem !important;
    font-weight: 600 !important;
}

.clients-title {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Footer explicit colors */
.footer {
    background: #111111 !important;
}

.footer h4,
.footer .nav-logo {
    color: #FFFFFF !important;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer a:hover {
    color: #9B4D2B !important;
}

/* WhatsApp tooltip fix */
.whatsapp-float .tooltip {
    background: #1A1A1A !important;
    color: #FFFFFF !important;
}

/* Footer CTA Buttons */
.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
}

.footer-cta .btn-primary {
    background: #9B4D2B;
    color: #FFFFFF !important;
    border: none;
}

.footer-cta .btn-primary:hover {
    background: #7a3d22;
    transform: translateY(-2px);
}

.footer-cta .btn-outline {
    background: transparent;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   FOOTER LEGAL & CREDIT
   ========================================== */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    text-align: center;
}

.footer-legal-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #9B4D2B !important;
}

.footer-legal-links span {
    color: rgba(255, 255, 255, 0.3);
}

.footer-credit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4) !important;
}

.footer-credit a {
    color: #9B4D2B !important;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ==========================================
   LEGAL MODALS
   ========================================== */
.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.legal-modal:target,
.legal-modal.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-content {
    background: #FDFBF7;
    color: #1A1A1A;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem;
    border-radius: 12px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.legal-modal:target .legal-modal-content,
.legal-modal.active .legal-modal-content {
    transform: translateY(0);
}

.legal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.legal-close:hover {
    background: #9B4D2B;
    color: #FFFFFF;
}

.legal-modal-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1A1A1A;
}

.legal-modal-content h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
    color: #9B4D2B;
}

.legal-modal-content p,
.legal-modal-content li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4A5568;
}

.legal-modal-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.legal-modal-content li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

.legal-modal-content a {
    color: #9B4D2B;
}

@media (max-width: 768px) {
    .legal-modal-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-legal-links span {
        display: none;
    }
}

/* ==========================================
   PREMIUM MAP SECTION
   ========================================== */
.map-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: filter 0.5s ease;
}

.map-container:hover iframe {
    filter: grayscale(30%) contrast(1.05) brightness(0.95);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(
        135deg,
        rgba(17, 17, 17, 0.7) 0%,
        transparent 50%,
        transparent 100%
    );
}

.map-card {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 320px;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.map-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9B4D2B, #D4A574, #9B4D2B);
    border-radius: 16px 16px 0 0;
}

.map-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.map-address {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.map-address svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #9B4D2B;
    margin-top: 2px;
}

.map-address span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.map-card-hours {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.map-card-hours strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.map-card-hours p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #9B4D2B;
    color: #FFFFFF !important;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.map-directions-btn svg {
    width: 18px;
    height: 18px;
}

.map-directions-btn:hover {
    background: #7a3d22;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(155, 77, 43, 0.3);
}

/* Responsive Map */
@media (max-width: 768px) {
    .map-section {
        height: auto;
    }
    
    .map-container {
        display: flex;
        flex-direction: column;
    }
    
    .map-overlay {
        position: relative;
        background: #111111;
        padding: 2rem;
    }
    
    .map-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    
    .map-card-accent {
        display: none;
    }
    
    .map-container iframe {
        height: 300px;
        filter: grayscale(50%);
    }
}

/* ==========================================
   COMPREHENSIVE RESPONSIVE FIXES
   ========================================== */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .testimonial-card {
        padding: 2rem;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    /* Expertise cards */
    .expertise-card {
        padding: 2rem;
    }
    
    .expertise-content h3 {
        font-size: 1.25rem;
    }
    
    /* Feature cards */
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-number {
        font-size: 2.5rem !important;
    }
    
    /* Process timeline */
    .step-content {
        padding: 1.5rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 2rem;
    }
    
    /* Floating buttons */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 1.25rem;
        right: 1.25rem;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-float .tooltip {
        display: none;
    }
    
    /* Gallery filters */
    .gallery-filter {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Parallax sections */
    .parallax-content h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.75rem, 12vw, 2.5rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    
    .feature-number {
        font-size: 2rem !important;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .expertise-card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-cta .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Touch devices - remove hover effects that don't work well */
@media (hover: none) {
    .gallery-item:hover .gallery-overlay {
        opacity: 1;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    }
    
    .expertise-card:hover {
        transform: none;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .preloader {
        display: none;
    }
}
