:root {
    --navy: #0A1628;
    --navy-light: #152238;
    --terracotta: #C45C26;
    --terracotta-light: #E07A45;
    --gold: #D4A853;
    --white: #FFFFFF;
    --grey-100: #F5F6F8;
    --grey-200: #E8EAED;
    --grey-400: #9BA3B0;
    --grey-600: #5A6474;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 30px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --bg-page: var(--white);
    --bg-muted: var(--grey-100);
    --bg-surface: var(--white);
    --text-body: var(--navy);
    --text-muted: var(--grey-600);
    --border-color: var(--grey-200);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--bg-page);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Cursor glow */
.cursor-glow {
    position: fixed; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(196,92,38,0.06) 0%, transparent 70%);
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
    transition: opacity 0.3s; opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; transition: var(--transition);
}
.header.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px 20px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img {
    height: 52px; width: auto; max-width: 180px; object-fit: contain;
    background: rgba(255,255,255,0.97); padding: 6px 14px; border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15); filter: none;
    transition: var(--transition);
}
.logo:hover img { box-shadow: 0 4px 20px rgba(0,0,0,0.2); transform: scale(1.02); }
.nav {
    display: flex; align-items: center; justify-content: center;
    gap: 2px; flex-wrap: nowrap; min-width: 0;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
    padding: 8px 11px; font-size: 0.82rem; font-weight: 500;
    color: rgba(255,255,255,0.85); border-radius: 8px;
    white-space: nowrap; flex-shrink: 0;
}
.nav a:hover, .nav a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-devis {
    background: var(--terracotta) !important; color: var(--white) !important;
    border-radius: 8px !important; font-weight: 600 !important;
}
.nav-devis:hover { background: var(--terracotta-light) !important; }
.page-catalog .header {
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 24px rgba(0,0,0,0.25);
    z-index: 1100;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Theme toggle */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9); cursor: pointer; transition: var(--transition);
    font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
}
.theme-toggle-header {
    width: 40px; height: 40px; border-radius: 10px; padding: 0;
}
.theme-toggle-footer {
    width: 100%; padding: 10px 14px; border-radius: 10px;
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
    justify-content: flex-start;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(196,92,38,0.45);
    color: var(--white);
}
.theme-icon { width: 18px; height: 18px; flex-shrink: 0; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }
.theme-toggle-text { flex: 1; text-align: left; }

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.lang-switch a { color: rgba(255,255,255,0.5); padding: 4px 6px; }
.lang-switch a.active { color: var(--terracotta); }
.lang-switch span { color: rgba(255,255,255,0.3); }
.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
    position: relative; z-index: 1102;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--white); transition: var(--transition);
}
body.nav-open { overflow: hidden; }
body.nav-open::before {
    content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 1000; backdrop-filter: blur(2px);
}

/* Hero */
.hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.6) 50%, rgba(196,92,38,0.15) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 140px 24px 80px; max-width: 800px; }
.hero-badge {
    display: inline-block; padding: 8px 20px; margin-bottom: 24px;
    background: rgba(196,92,38,0.15); border: 1px solid rgba(196,92,38,0.3);
    border-radius: 50px; font-size: 0.85rem; font-weight: 500;
    color: var(--terracotta-light); letter-spacing: 0.05em;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 24px;
}
.hero-title .accent { color: var(--terracotta); }
.hero-sub {
    font-size: 1.15rem; color: rgba(255,255,255,0.75);
    max-width: 560px; margin-bottom: 40px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat-num {
    display: block; font-family: var(--font-display); font-size: 2.5rem;
    font-weight: 800; color: var(--terracotta);
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 2;
}
.scroll-indicator span {
    display: block; width: 24px; height: 40px; border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px; position: relative;
}
.scroll-indicator span::after {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; background: var(--terracotta); border-radius: 2px;
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; font-family: var(--font-body); font-size: 0.95rem;
    font-weight: 600; border-radius: var(--radius); border: 2px solid transparent;
    cursor: pointer; transition: var(--transition);
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196,92,38,0.3); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1fb855; }
.btn-full { width: 100%; }

/* Sections */
.section { padding: 100px 0; }
.section-tag {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--terracotta); margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.text-center { text-align: center; margin-top: 40px; }
.lead { font-size: 1.15rem; color: var(--grey-600); margin-bottom: 20px; }
.link-arrow { color: var(--terracotta); font-weight: 600; }
.link-arrow:hover { color: var(--terracotta-light); }

/* About preview */
.about-image { position: relative; }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-image-accent {
    position: absolute; bottom: -20px; right: -20px; width: 60%; height: 60%;
    border: 3px solid var(--terracotta); border-radius: var(--radius-lg); z-index: -1;
}
.about-text h2 {
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
    margin-bottom: 20px; line-height: 1.2;
}

/* Services */
/* Services preview with office background */
.services-preview {
    position: relative;
    overflow: hidden;
    background: var(--navy);
}
.services-preview-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-attachment: fixed;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.services-preview:hover .services-preview-bg { transform: scale(1.08); }
.services-preview-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.78) 50%, rgba(196,92,38,0.25) 100%);
}
.services-preview-content { position: relative; z-index: 2; }
.services-preview .section-tag { color: var(--terracotta-light); }
.services-preview .section-header h2 { color: var(--white); }
.services-preview .text-center .btn-secondary {
    background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4);
}
.services-preview .text-center .btn-secondary:hover {
    background: var(--white); color: var(--navy); border-color: var(--white);
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.service-card {
    background: rgba(255,255,255,0.97); padding: 32px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(196,92,38,0.2); }
.service-icon {
    width: 48px; height: 48px; margin-bottom: 20px; color: var(--terracotta);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--grey-600); }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.projects-grid-full { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* Portfolio masonry */
.projects-masonry {
    columns: 3;
    column-gap: 32px;
}
.project-card.masonry-item {
    break-inside: avoid;
    margin-bottom: 32px;
    display: block;
    box-shadow: var(--shadow);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}
.project-card.masonry-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.masonry-tall .project-image { aspect-ratio: 3/5; }
.masonry-standard .project-image { aspect-ratio: 4/3; }
.masonry-compact .project-image { aspect-ratio: 1/1; }
.projects-preview { background: var(--grey-100); }
.projects-preview .projects-masonry { margin-top: 8px; }
.projects-preview .project-overlay h3 { font-size: 1.15rem; line-height: 1.25; }
.projects-preview .project-overlay { padding: 22px; }

.project-card { border-radius: var(--radius-lg); overflow: hidden; display: block; }
.project-image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-image img { transform: scale(1.08); }
.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.9) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; color: var(--white);
}
.project-cat {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--terracotta-light); margin-bottom: 8px;
}
.project-overlay h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 4px; }
.project-location { font-size: 0.85rem; opacity: 0.7; }

/* CTA */
.cta-section { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.section.cta-section { padding: 70px 0; }
.cta-section::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 260px; height: 260px; border-radius: 50%;
    background: rgba(196,92,38,0.12); pointer-events: none;
}
.cta-section::after {
    content: ''; position: absolute; bottom: -60px; left: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(212,168,83,0.08); pointer-events: none;
}
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--terracotta-light); margin-bottom: 16px;
    padding: 6px 14px; border: 1px solid rgba(196,92,38,0.35); border-radius: 50px;
}
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 16px; }
.cta-inner p { opacity: 0.75; margin-bottom: 32px; line-height: 1.7; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-outline-light {
    background: transparent; color: var(--white);
    border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* Page hero */
.page-hero {
    position: relative; min-height: 50vh; display: flex; align-items: flex-end;
    padding-bottom: 60px; overflow: hidden;
}
.page-hero-sm { min-height: 40vh; }
.page-hero-bg {
    position: absolute; inset: 0; background-size: cover;
    background-position: center;
}
.page-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.5) 100%);
}
.page-hero-content { position: relative; z-index: 2; padding-top: 140px; color: var(--white); }
.page-hero-content h1 {
    font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800; margin-bottom: 12px;
}
.page-hero-content p { opacity: 0.75; font-size: 1.1rem; max-width: 600px; }
.page-hero-content .section-tag { color: var(--terracotta-light); }

/* Values */
.values-section { background: var(--grey-100); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
    background: var(--white); padding: 32px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.value-num {
    font-family: var(--font-display); font-size: 2rem; font-weight: 800;
    color: var(--terracotta); opacity: 0.3; margin-bottom: 12px;
}
.value-card h3 { font-family: var(--font-display); margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--grey-600); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-card { text-align: center; }
.team-avatar-img {
    width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px;
    object-fit: cover; background: var(--grey-100); border: 3px solid var(--terracotta);
}
.table-thumb { object-fit: cover; background: var(--grey-100); }
.preview-img { background: var(--grey-100); object-fit: contain; }
img[src*="avatar-default"] { object-fit: contain; background: var(--grey-100); }
.team-card h3 { font-family: var(--font-display); margin-bottom: 8px; }
.team-card p { font-size: 0.9rem; color: var(--grey-600); }

/* Services page */
.services-highlights { padding: 0; margin-top: -40px; position: relative; z-index: 3; }
.highlights-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); border: 1px solid var(--grey-200); overflow: hidden;
}
.highlight-item {
    text-align: center; padding: 28px 20px;
    border-right: 1px solid var(--grey-200);
}
.highlight-item:last-child { border-right: none; }
.highlight-item strong {
    display: block; font-family: var(--font-display); font-size: 2rem;
    font-weight: 800; color: var(--terracotta); margin-bottom: 4px;
}
.highlight-item span { font-size: 0.88rem; color: var(--grey-600); font-weight: 500; }
.services-page-section { padding-top: 80px; }
.services-page-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-page-card {
    position: relative; background: var(--white); padding: 32px 28px;
    border-radius: var(--radius-lg); border: 1px solid var(--grey-200);
    box-shadow: var(--shadow); transition: var(--transition); overflow: hidden;
}
.service-page-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--gold));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.service-page-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-lg);
    border-color: rgba(196,92,38,0.25);
}
.service-page-card:hover::before { transform: scaleX(1); }
.service-page-num {
    position: absolute; top: 16px; right: 20px;
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
    color: var(--terracotta); opacity: 0.08; line-height: 1;
}
.service-page-icon {
    width: 52px; height: 52px; margin-bottom: 20px; color: var(--terracotta);
    padding: 12px; background: rgba(196,92,38,0.08); border-radius: 12px;
}
.service-page-icon svg { width: 100%; height: 100%; }
.service-page-card h3 {
    font-family: var(--font-display); font-size: 1.15rem;
    margin-bottom: 10px; line-height: 1.3;
}
.service-page-card p { font-size: 0.9rem; color: var(--grey-600); line-height: 1.7; }
.services-why-section { background: var(--grey-100); }
.services-why-grid {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}
.services-why-text h2 {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 16px; line-height: 1.25;
}
.services-why-text > p { color: var(--grey-600); margin-bottom: 24px; line-height: 1.8; }
.services-why-list { list-style: none; margin-bottom: 28px; }
.services-why-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; font-weight: 500; color: var(--navy);
}
.services-why-list li span { color: var(--terracotta); font-weight: 700; }
.services-why-card {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-lg); padding: 40px; color: var(--white);
    display: flex; flex-direction: column; gap: 28px;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.services-why-card::after {
    content: ''; position: absolute; bottom: -40px; right: -40px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(196,92,38,0.15);
}
.services-why-stat { position: relative; z-index: 1; }
.services-why-stat strong {
    display: block; font-family: var(--font-display); font-size: 2.4rem;
    font-weight: 800; color: var(--terracotta-light); margin-bottom: 4px;
}
.services-why-stat span { font-size: 0.9rem; opacity: 0.75; }
.services-process-section { background: var(--white); }
.process-timeline {
    display: flex; gap: 0; position: relative; margin-top: 20px;
}
.process-timeline::before {
    content: ''; position: absolute; top: 28px; left: 10%; right: 10%;
    height: 2px; background: var(--grey-200); z-index: 0;
}
.process-timeline-step {
    flex: 1; text-align: center; padding: 0 12px; position: relative; z-index: 1;
}
.process-timeline-dot {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
    background: var(--terracotta); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
    box-shadow: 0 0 0 6px var(--white), 0 4px 16px rgba(196,92,38,0.25);
    transition: var(--transition);
}
.process-timeline-step:hover .process-timeline-dot {
    transform: scale(1.08); box-shadow: 0 0 0 6px var(--white), 0 6px 24px rgba(196,92,38,0.35);
}
.process-timeline-step h3 {
    font-family: var(--font-display); font-size: 1rem; margin-bottom: 8px;
}
.process-timeline-step p { font-size: 0.82rem; color: var(--grey-600); line-height: 1.6; }

/* Services list (legacy) */
.services-list { max-width: 800px; margin: 0 auto; }
.service-row {
    display: flex; gap: 32px; padding: 32px 0;
    border-bottom: 1px solid var(--grey-200);
}
.service-row-num {
    font-family: var(--font-display); font-size: 2rem; font-weight: 800;
    color: var(--terracotta); opacity: 0.4; min-width: 50px;
}
.service-row-content h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.service-row-content p { color: var(--grey-600); }

/* Process */
.process-section { background: var(--grey-100); }
.process-steps { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.process-step { text-align: center; flex: 1; min-width: 160px; max-width: 200px; }
.step-circle {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    background: var(--terracotta); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
}
.process-step h3 { font-family: var(--font-display); margin-bottom: 8px; font-size: 1rem; }
.process-step p { font-size: 0.85rem; color: var(--grey-600); }

/* Filter */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.filter-btn {
    padding: 10px 24px; border-radius: 50px; font-size: 0.9rem; font-weight: 500;
    background: var(--grey-100); color: var(--grey-600); transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: var(--white); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }
.news-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.news-image { display: block; aspect-ratio: 16/10; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-image img { transform: scale(1.05); }
.news-body { padding: 24px; }
.news-body time { font-size: 0.8rem; color: var(--terracotta); font-weight: 600; }
.news-body h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 8px 0 12px; }
.news-body h3 a:hover { color: var(--terracotta); }
.news-body p { font-size: 0.9rem; color: var(--grey-600); margin-bottom: 12px; }

/* Article */
.article-hero { max-height: 500px; overflow: hidden; }
.article-hero img { width: 100%; height: 500px; object-fit: cover; }
.article-content { max-width: 760px; margin: 0 auto; }
.article-date { color: var(--terracotta); font-weight: 600; font-size: 0.9rem; }
.article-content h1 {
    font-family: var(--font-display); font-size: 2.5rem;
    margin: 12px 0 32px; line-height: 1.2;
}
.article-body { font-size: 1.05rem; line-height: 1.9; margin-bottom: 40px; color: var(--grey-600); }

/* Project detail */
.project-detail-hero { position: relative; max-height: 70vh; overflow: hidden; }
.project-detail-hero img { width: 100%; height: 70vh; object-fit: cover; }
.project-detail-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.9) 0%, transparent 60%);
    display: flex; align-items: flex-end; padding-bottom: 60px; color: var(--white);
}
.project-detail-overlay h1 { font-family: var(--font-display); font-size: 3rem; margin: 8px 0; }
.project-detail-content { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.project-detail-meta { display: flex; flex-direction: column; gap: 24px; }
.meta-item span { display: block; font-size: 0.8rem; color: var(--grey-400); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.meta-item strong { font-size: 1.1rem; }

/* Form pages (Contact & Devis) */
.form-page-section { background: var(--grey-100); position: relative; }
.form-page-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(196,92,38,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.form-page-layout {
    display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start;
}
.form-sidebar { position: sticky; top: 100px; }
.form-sidebar-inner {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white); padding: 36px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.form-sidebar-inner::after {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(196,92,38,0.15); pointer-events: none;
}
.form-sidebar-tag {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--terracotta-light); margin-bottom: 12px;
}
.form-sidebar-inner h2 {
    font-family: var(--font-display); font-size: 1.6rem;
    margin-bottom: 12px; line-height: 1.25; position: relative; z-index: 1;
}
.form-sidebar-inner > p {
    font-size: 0.92rem; opacity: 0.75; line-height: 1.7;
    margin-bottom: 28px; position: relative; z-index: 1;
}
.contact-cards { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.contact-card {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius); transition: var(--transition);
}
.contact-card:not(.static):hover {
    background: rgba(255,255,255,0.12); border-color: rgba(196,92,38,0.4);
    transform: translateX(4px);
}
.contact-card-icon {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.contact-card-icon svg { width: 20px; height: 20px; }
.contact-card-icon.phone { background: rgba(196,92,38,0.2); color: var(--terracotta-light); }
.contact-card-icon.email { background: rgba(212,168,83,0.2); color: var(--gold); }
.contact-card-icon.whatsapp { background: rgba(37,211,102,0.2); color: #25D366; }
.contact-card-icon.location { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.contact-card strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.55; margin-bottom: 2px; }
.contact-card span { font-size: 0.9rem; font-weight: 500; }
.whatsapp-card:hover { border-color: rgba(37,211,102,0.5) !important; }
.sidebar-cta {
    display: block; margin-top: 24px; padding: 18px 20px;
    background: rgba(196,92,38,0.2); border: 1px solid rgba(196,92,38,0.35);
    border-radius: var(--radius); transition: var(--transition); position: relative; z-index: 1;
}
.sidebar-cta span { display: block; font-size: 0.82rem; opacity: 0.7; margin-bottom: 4px; }
.sidebar-cta strong { font-family: var(--font-display); font-size: 1rem; color: var(--terracotta-light); }
.sidebar-cta:hover { background: rgba(196,92,38,0.35); transform: translateY(-2px); }
.timeline-steps { display: flex; flex-direction: column; gap: 0; position: relative; z-index: 1; }
.timeline-step {
    display: flex; gap: 16px; padding-bottom: 24px; position: relative;
}
.timeline-step:not(:last-child)::before {
    content: ''; position: absolute; left: 15px; top: 36px; bottom: 0;
    width: 2px; background: rgba(255,255,255,0.12);
}
.timeline-dot {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: var(--terracotta); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
}
.timeline-step strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.timeline-step p { font-size: 0.82rem; opacity: 0.65; line-height: 1.5; }
.sidebar-trust {
    margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1;
}
.trust-item { font-size: 0.85rem; opacity: 0.8; display: flex; align-items: center; gap: 8px; }
.trust-item span { color: var(--terracotta-light); font-weight: 700; }
.sidebar-phone {
    display: flex; align-items: center; gap: 10px; margin-top: 20px;
    padding: 14px 18px; background: rgba(255,255,255,0.08);
    border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); position: relative; z-index: 1;
}
.sidebar-phone:hover { background: rgba(255,255,255,0.14); color: var(--terracotta-light); }
.form-main {
    background: var(--white); padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); border: 1px solid var(--grey-200);
}
.form-main-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--grey-200); }
.form-main-header h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 6px; }
.form-main-header p { font-size: 0.88rem; color: var(--grey-400); }
.form-section-block {
    margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--grey-200);
}
.form-section-block:last-of-type { border-bottom: none; margin-bottom: 24px; padding-bottom: 0; }
.form-section-title {
    display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px;
}
.form-section-num {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
    color: var(--terracotta); opacity: 0.25; line-height: 1;
}
.form-section-title h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.form-section-title p { font-size: 0.85rem; color: var(--grey-400); }
.form-submit-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 24px; font-size: 1rem; margin-top: 8px;
}
.form-success-card {
    text-align: center; max-width: 520px; margin: 0 auto; padding: 60px 40px;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); border: 1px solid var(--grey-200);
}
.form-success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #d4edda, #b8dfc4);
    color: #155724; font-size: 2.2rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; font-weight: 700;
    box-shadow: 0 8px 24px rgba(21,87,36,0.15);
}
.form-success-card h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 12px; }
.form-success-card p { color: var(--grey-600); margin-bottom: 28px; line-height: 1.7; }
.form-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.map-section-compact { padding-top: 0; }
.map-frame {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid var(--grey-200); background: var(--white);
}
.map-frame-header {
    display: flex; align-items: center; gap: 10px; padding: 16px 20px;
    background: var(--navy); color: var(--white); font-size: 0.9rem; font-weight: 500;
}
.map-frame-header svg { color: var(--terracotta-light); flex-shrink: 0; }
.map-frame iframe { width: 100%; height: 360px; border: none; display: block; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 2px solid var(--grey-200);
    border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
    background: var(--white); transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(196,92,38,0.1); }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6474' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 16px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.empty-state { text-align: center; color: var(--grey-400); padding: 60px; grid-column: 1/-1; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 36px 0 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.footer-logo {
    height: 40px; width: auto; max-width: 160px; object-fit: contain;
    filter: none; background: rgba(255,255,255,0.95); padding: 5px 10px;
    border-radius: 8px; margin-bottom: 10px;
}
.footer-links-extra {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; gap: 10px;
}
.footer-admin-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 16px; border-radius: 10px;
    border: 1px solid rgba(196, 92, 38, 0.5);
    background: linear-gradient(135deg, rgba(196, 92, 38, 0.22) 0%, rgba(196, 92, 38, 0.08) 100%);
    color: var(--terracotta-light) !important;
    font-weight: 600; font-size: 0.82rem;
    transition: var(--transition);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative; overflow: hidden;
}
.footer-admin-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: translateX(-100%); transition: transform 0.5s ease;
}
.footer-admin-btn:hover::before { transform: translateX(100%); }
.footer-admin-btn svg {
    width: 18px; height: 18px; flex-shrink: 0;
    padding: 3px; border-radius: 6px;
    background: rgba(196, 92, 38, 0.25);
}
.footer-admin-btn span:first-of-type { flex: 1; }
.footer-admin-arrow {
    font-size: 1rem; opacity: 0.7; transition: transform var(--transition);
}
.footer-admin-btn:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 92, 38, 0.35);
}
.footer-admin-btn:hover .footer-admin-arrow { transform: translateX(3px); opacity: 1; }
.footer-admin-btn:hover svg { background: rgba(255,255,255,0.2); }
.footer-brand p {
    font-size: 0.82rem; line-height: 1.5; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.footer-links h4, .footer-contact h4 {
    color: var(--white); font-family: var(--font-display);
    margin-bottom: 10px; font-size: 0.9rem;
}
.footer-links a, .footer-contact a {
    display: block; padding: 2px 0; font-size: 0.82rem; line-height: 1.6;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--terracotta); }
.whatsapp-link { display: flex !important; align-items: center; gap: 6px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 0.78rem;
}
.footer-social-icons { display: flex; gap: 10px; margin-top: 4px; }
.social-icon-link {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); background: rgba(255,255,255,0.1);
}
.social-icon-link svg { width: 18px; height: 18px; }
.social-icon-link.facebook { color: #1877F2; }
.social-icon-link.instagram { color: #E4405F; }
.social-icon-link.linkedin { color: #0A66C2; }
.social-icon-link:hover { transform: translateY(-2px); background: rgba(255,255,255,0.95); }
.developer-credit a { color: var(--terracotta); font-weight: 600; }
.developer-credit a:hover { color: var(--terracotta-light); }

/* Reveal animations */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1100px) {
    .nav {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: var(--navy); flex-direction: column; padding: 88px 24px 24px;
        transition: var(--transition); align-items: stretch;
        justify-content: flex-start; overflow-y: auto; overflow-x: hidden;
        z-index: 1001; box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    }
    .nav.open { right: 0; }
    .nav a { padding: 12px 16px; font-size: 0.95rem; }
    .menu-toggle { display: flex; }
}
@media (max-width: 968px) {
    .grid-2, .form-page-layout, .project-detail-content { grid-template-columns: 1fr; }
    .form-sidebar { position: static; }
    .services-grid, .projects-grid, .values-grid, .team-grid { grid-template-columns: 1fr 1fr; }
    .projects-masonry { columns: 2; column-gap: 24px; }
    .project-card.masonry-item { margin-bottom: 24px; }
    .services-page-grid { grid-template-columns: 1fr 1fr; }
    .services-why-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-timeline { flex-wrap: wrap; gap: 24px; }
    .process-timeline::before { display: none; }
    .process-timeline-step { flex: 1 1 40%; min-width: 140px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .services-grid, .projects-grid, .values-grid, .team-grid { grid-template-columns: 1fr; }
    .projects-masonry { columns: 1; column-gap: 0; }
    .project-card.masonry-item { margin-bottom: 20px; }
    .services-page-grid { grid-template-columns: 1fr; }
    .highlights-bar { grid-template-columns: 1fr; }
    .highlight-item { border-right: none; border-bottom: 1px solid var(--grey-200); }
    .highlight-item:last-child { border-bottom: none; }
    .process-timeline-step { flex: 1 1 100%; }
    .catalog-split { flex-direction: column; }
    .catalog-sidebar { width: 100%; max-width: none; height: 45vh; border-right: none; border-bottom: 1px solid rgba(196,92,38,0.2); }
    .catalog-map-zone { height: 55vh; flex: none; }
    .map-detail-float { left: 10px; right: 10px; bottom: 10px; max-width: none; }
    .catalog-topbar h1 { font-size: 0.95rem; }
    .catalog-stat { display: none; }
    .hero-stats { gap: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 56px; height: 56px; }
    .services-preview-bg { background-attachment: scroll; transform: none; }
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; 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);
    transition: var(--transition);
}
.whatsapp-float svg { width: 32px; height: 32px; color: #fff; position: relative; z-index: 2; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
.whatsapp-pulse {
    position: absolute; inset: 0; border-radius: 50%;
    background: #25D366; animation: whatsappPulse 2s infinite;
}
.whatsapp-pulse-2 { animation-delay: 1s; }
@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Catalog */
.catalog-download-banner {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white); padding: 32px 40px; border-radius: var(--radius-lg);
    margin-bottom: 48px; flex-wrap: wrap;
}
.catalog-download-banner h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.catalog-download-banner p { opacity: 0.75; font-size: 0.95rem; }
.catalog-download-banner .btn { display: inline-flex; gap: 10px; white-space: nowrap; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.catalog-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--grey-200);
    transition: var(--transition);
}
.catalog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.catalog-schema {
    position: relative; background: var(--grey-100); padding: 24px;
    border-bottom: 3px solid var(--terracotta);
}
.catalog-schema img { width: 100%; height: 220px; object-fit: contain; }
.catalog-surface {
    position: absolute; top: 16px; right: 16px;
    background: var(--terracotta); color: var(--white);
    padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
}
.catalog-body { padding: 28px; }
.catalog-cat {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--terracotta);
}
.catalog-body h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 8px 0 12px; }
.catalog-body > p { font-size: 0.9rem; color: var(--grey-600); margin-bottom: 16px; }
.catalog-specs {
    background: var(--grey-100); padding: 16px; border-radius: var(--radius);
    margin-bottom: 20px;
}
.catalog-specs h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-400); margin-bottom: 8px; }
.catalog-specs p { font-size: 0.85rem; color: var(--grey-600); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* Catalogue explorer (split layout) */
.page-catalog main { padding: 0; }
.page-catalog .footer { margin-top: 0; }

.catalog-workspace {
    margin-top: 72px;
    height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    background: var(--navy);
    overflow: hidden;
}
.catalog-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; flex-shrink: 0;
    background: linear-gradient(90deg, rgba(10,22,40,0.98) 0%, rgba(21,34,56,0.95) 100%);
    border-bottom: 1px solid rgba(196,92,38,0.25);
    gap: 16px;
}
.catalog-topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.catalog-topbar-tag {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--terracotta-light); padding: 4px 10px;
    border: 1px solid rgba(196,92,38,0.35); border-radius: 50px; white-space: nowrap;
}
.catalog-topbar h1 {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
    color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.catalog-topbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.catalog-stat {
    font-size: 0.78rem; color: rgba(255,255,255,0.5); white-space: nowrap;
}
.catalog-stat strong { color: var(--terracotta-light); font-family: var(--font-display); font-size: 0.95rem; }
.btn-compact { padding: 8px 14px !important; font-size: 0.82rem !important; gap: 6px; display: inline-flex; align-items: center; }

.catalog-split {
    flex: 1; display: flex; min-height: 0; overflow: hidden;
}

/* Sidebar liste */
.catalog-sidebar {
    width: 400px; max-width: 42vw; flex-shrink: 0;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #0d1a2e 0%, #0a1628 100%);
    border-right: 1px solid rgba(196,92,38,0.2);
    position: relative;
}
.catalog-sidebar::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(196,92,38,0.5), transparent);
    pointer-events: none;
}
.sidebar-head {
    padding: 10px 8px; flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.filter-scroll-wrap {
    display: flex; align-items: center; gap: 4px; position: relative;
}
.filter-scroll-wrap::before,
.filter-scroll-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 28px;
    pointer-events: none; z-index: 2; opacity: 0; transition: opacity 0.25s;
}
.filter-scroll-wrap::before {
    left: 32px;
    background: linear-gradient(90deg, #0d1a2e 0%, transparent 100%);
}
.filter-scroll-wrap::after {
    right: 32px;
    background: linear-gradient(270deg, #0d1a2e 0%, transparent 100%);
}
.filter-scroll-wrap.can-scroll-left::before,
.filter-scroll-wrap.can-scroll-right::after { opacity: 1; }
.filter-scroll-btn {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.filter-scroll-btn:hover:not([hidden]) {
    background: rgba(196,92,38,0.2); border-color: rgba(196,92,38,0.4); color: var(--terracotta-light);
}
.filter-scroll-btn[hidden] { display: none; }
.map-filter-bar {
    display: flex; gap: 6px; flex: 1; min-width: 0;
    overflow-x: auto; overflow-y: hidden;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: rgba(196,92,38,0.45) transparent;
    padding: 4px 2px 6px;
}
.map-filter-bar::-webkit-scrollbar { height: 4px; }
.map-filter-bar::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 4px; }
.map-filter-bar::-webkit-scrollbar-thumb { background: rgba(196,92,38,0.45); border-radius: 4px; }
.map-filter-bar::-webkit-scrollbar-thumb:hover { background: rgba(196,92,38,0.7); }
.map-filter-btn {
    padding: 6px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 600;
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
    transition: var(--transition); font-family: var(--font-body); white-space: nowrap; flex-shrink: 0;
}
.map-filter-btn:hover { border-color: rgba(196,92,38,0.5); color: var(--terracotta-light); }
.map-filter-btn.active {
    background: var(--terracotta); color: var(--white); border-color: var(--terracotta);
    box-shadow: 0 0 16px rgba(196,92,38,0.35);
}

.catalog-scroll {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin; scrollbar-color: rgba(196,92,38,0.4) transparent;
    padding: 8px 10px 16px;
}
.catalog-scroll::-webkit-scrollbar { width: 4px; }
.catalog-scroll::-webkit-scrollbar-thumb { background: rgba(196,92,38,0.4); border-radius: 4px; }

.scroll-group { margin-bottom: 8px; }
.scroll-group-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35); padding: 8px 8px 6px; position: sticky; top: 0;
    background: linear-gradient(180deg, #0d1a2e 80%, transparent); z-index: 2;
}
.scroll-group-label svg { color: var(--terracotta); opacity: 0.7; }

.sidebar-list-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 8px; margin-bottom: 4px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; cursor: pointer; transition: var(--transition);
    font-family: var(--font-body); text-align: left; color: var(--white);
}
.sidebar-list-item:hover {
    background: rgba(255,255,255,0.07); border-color: rgba(196,92,38,0.3);
    transform: translateX(3px);
}
.map-project-item.active {
    background: rgba(196,92,38,0.12); border-color: var(--terracotta);
    box-shadow: 0 0 20px rgba(196,92,38,0.15), inset 3px 0 0 var(--terracotta);
}
.sidebar-list-item.filtered-out { display: none; }

.item-thumb {
    width: 52px; height: 52px; border-radius: 8px; overflow: hidden;
    flex-shrink: 0; position: relative; background: rgba(255,255,255,0.05);
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-thumb-schema img { object-fit: contain; padding: 4px; background: rgba(255,255,255,0.95); }
.item-dot {
    position: absolute; bottom: 3px; right: 3px; width: 8px; height: 8px;
    border-radius: 50%; border: 1.5px solid var(--white);
}
.dot-residential { background: #C45C26; }
.dot-commercial { background: #4a6fa5; }
.dot-institutional { background: #D4A853; }
.dot-urban { background: #2E7D5A; }

.item-info { flex: 1; min-width: 0; }
.item-cat {
    display: block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--terracotta-light); margin-bottom: 2px;
}
.item-info strong {
    display: block; font-size: 0.85rem; font-weight: 600; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-info small { font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.item-chevron { color: rgba(255,255,255,0.25); flex-shrink: 0; transition: var(--transition); }
.sidebar-list-item:hover .item-chevron { color: var(--terracotta-light); }
.map-project-item.active .item-chevron { color: var(--terracotta); transform: translateX(2px); }

/* Modèles catalogue expandables */
.catalog-model-item { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.catalog-model-item .model-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 8px; background: none; border: none; cursor: pointer;
    font-family: var(--font-body); text-align: left; color: var(--white);
}
.catalog-model-item.open { border-color: rgba(196,92,38,0.35); background: rgba(196,92,38,0.06); }
.catalog-model-item.open .model-chevron { transform: rotate(180deg); color: var(--terracotta-light); }
.model-expand {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
    padding: 0 10px;
}
.catalog-model-item.open .model-expand { max-height: 280px; padding: 0 10px 10px; }
.model-expand p { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.55; margin-bottom: 8px; }
.model-specs {
    font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-bottom: 10px;
    padding: 8px; background: rgba(0,0,0,0.2); border-radius: 6px; line-height: 1.5;
}

/* Zone carte */
.catalog-map-zone {
    flex: 1; position: relative; min-width: 0; background: #0a1628;
}
.projects-map-canvas {
    width: 100%; height: 100%; z-index: 1;
}
.projects-map-canvas.leaflet-container { font-family: var(--font-body); background: #0a1628; }
.map-grid-overlay {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image:
        linear-gradient(rgba(196,92,38,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196,92,38,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.map-corner-label {
    position: absolute; top: 12px; left: 12px; z-index: 5;
    display: flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 50px;
    background: rgba(10,22,40,0.75); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.6);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.live-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #25D366;
    animation: live-pulse 2s ease infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(37,211,102,0); }
}

/* Marqueurs Leaflet */
.map-marker-leaflet { background: none !important; border: none !important; }
.map-pin { position: relative; display: flex; align-items: flex-end; justify-content: center; transition: transform 0.25s ease; cursor: pointer; }
.map-pin:hover, .map-pin-active { transform: scale(1.12) translateY(-4px); }
.map-pin-shape { display: block; filter: drop-shadow(0 4px 12px rgba(10,22,40,0.4)); }
.map-pin-pulse {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--pin-color); opacity: 0.25;
    animation: map-pin-pulse 1.5s ease-out infinite;
}
@keyframes map-pin-pulse {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0.4; }
    100% { transform: translateX(-50%) scale(1.8); opacity: 0; }
}
.leaflet-control-zoom { border: none !important; box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important; }
.leaflet-control-zoom a {
    background: rgba(10,22,40,0.85) !important; color: var(--white) !important;
    border-color: rgba(255,255,255,0.1) !important;
}
.leaflet-control-zoom a:hover { background: var(--terracotta) !important; }
.leaflet-control-attribution { font-size: 0.65rem !important; background: rgba(10,22,40,0.6) !important; color: rgba(255,255,255,0.4) !important; }
.leaflet-control-attribution a { color: rgba(255,255,255,0.6) !important; }

/* Détail flottant sur carte */
.map-detail-float {
    position: absolute; bottom: 16px; right: 16px; left: 16px; z-index: 10;
    max-width: 480px; margin-left: auto;
    background: rgba(10,22,40,0.88); backdrop-filter: blur(16px);
    border: 1px solid rgba(196,92,38,0.3); border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
    transition: var(--transition); overflow: hidden;
}
.map-detail-float.active { border-color: rgba(196,92,38,0.6); box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 24px rgba(196,92,38,0.15); }
.map-detail-empty {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    color: rgba(255,255,255,0.45); font-size: 0.82rem;
}
.map-detail-empty svg { color: var(--terracotta); flex-shrink: 0; opacity: 0.6; }
.map-detail-empty.hidden { display: none; }
.map-detail-content {
    display: flex; gap: 14px; padding: 12px; position: relative;
}
.map-detail-content.hidden { display: none; }
.detail-thumb {
    width: 100px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.detail-body h3 {
    font-family: var(--font-display); font-size: 0.95rem; color: var(--white);
    line-height: 1.25; margin: 0;
}
.panel-cat {
    display: inline-block; padding: 2px 8px; border-radius: 50px;
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--white); background: var(--terracotta); width: fit-content;
}
.panel-cat.cat-commercial { background: #4a6fa5; }
.panel-cat.cat-institutional { background: var(--gold); color: var(--navy); }
.panel-cat.cat-urban { background: #2E7D5A; }
.panel-meta { display: flex; gap: 10px; font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.detail-body > p {
    font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0;
}
.panel-gallery { display: flex; gap: 6px; overflow-x: auto; }
.panel-gallery.hidden { display: none; }
.panel-gallery-thumb {
    flex-shrink: 0; width: 48px; height: 36px; border-radius: 6px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer; padding: 0; background: none;
}
.panel-gallery-thumb.active, .panel-gallery-thumb:hover { border-color: var(--terracotta); }
.panel-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-close {
    position: absolute; top: 8px; right: 8px; z-index: 5;
    width: 28px; height: 28px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.1); color: var(--white); font-size: 1.1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); line-height: 1;
}
.panel-close:hover { background: var(--terracotta); }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--grey-200); border-radius: var(--radius);
    margin-bottom: 12px; overflow: hidden; background: var(--white);
    transition: var(--transition);
}
.faq-item.active { border-color: var(--terracotta); box-shadow: var(--shadow); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; background: none; border: none; cursor: pointer;
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
    text-align: left; color: var(--navy); gap: 16px;
}
.faq-question:hover { color: var(--terracotta); }
.faq-icon { flex-shrink: 0; transition: transform 0.3s; color: var(--terracotta); }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 24px 20px; color: var(--grey-600); line-height: 1.8; font-size: 0.95rem; }
.faq-cta {
    text-align: center; margin-top: 48px; padding: 40px;
    background: var(--grey-100); border-radius: var(--radius-lg);
}
.faq-cta h3 { font-family: var(--font-display); margin-bottom: 8px; }
.faq-cta p { color: var(--grey-600); margin-bottom: 20px; }

/* Legal */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 32px 0 16px; color: var(--navy); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--grey-600); line-height: 1.9; margin-bottom: 16px; }

/* Devis form specifics */
.client-type-toggle { display: flex; gap: 12px; }
.type-option {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 18px 14px; border: 2px solid var(--grey-200); border-radius: var(--radius);
    cursor: pointer; transition: var(--transition); font-weight: 600; font-size: 0.9rem;
    background: var(--grey-100);
}
.type-option svg { width: 28px; height: 28px; color: var(--grey-400); transition: var(--transition); }
.type-option input { display: none; }
.type-option:has(input:checked) {
    border-color: var(--terracotta); background: rgba(196,92,38,0.06); color: var(--terracotta);
    box-shadow: 0 4px 16px rgba(196,92,38,0.12);
}
.type-option:has(input:checked) svg { color: var(--terracotta); }
.calendar-box {
    background: linear-gradient(135deg, var(--grey-100) 0%, rgba(196,92,38,0.04) 100%);
    padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--grey-200);
}
.calendar-preview { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--grey-200); }
.calendar-preview-label {
    display: flex; align-items: center; gap: 8px; font-weight: 600;
    color: var(--navy); margin-bottom: 14px; font-size: 0.95rem;
}
.calendar-preview-label svg { color: var(--terracotta); }
.calendar-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
    padding: 10px 20px; border: 2px solid var(--grey-200); border-radius: 50px;
    background: var(--white); font-family: var(--font-body); font-size: 0.88rem;
    font-weight: 600; cursor: pointer; transition: var(--transition); min-width: 72px;
}
.slot-btn:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-1px); }
.slot-btn.selected {
    border-color: var(--terracotta); background: var(--terracotta); color: var(--white);
    box-shadow: 0 4px 12px rgba(196,92,38,0.3);
}
@media (max-width: 768px) {
    .form-main { padding: 28px 20px; }
    .form-sidebar-inner { padding: 28px 24px; }
    .client-type-toggle { flex-direction: column; }
    .map-frame iframe { height: 280px; }
}

/* ─── Mode nuit ─── */
[data-theme="dark"] {
    color-scheme: dark;
    --bg-page: #0A1628;
    --bg-muted: #111B2E;
    --bg-surface: #152238;
    --text-body: #E8EAED;
    --text-muted: #A8B0BC;
    --border-color: #1E3050;
    --grey-100: #111B2E;
    --grey-200: #1E3050;
    --grey-600: #A8B0BC;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .projects-preview,
[data-theme="dark"] .values-section,
[data-theme="dark"] .process-section,
[data-theme="dark"] .services-why-section,
[data-theme="dark"] .form-page-section,
[data-theme="dark"] .faq-cta,
[data-theme="dark"] .highlights-bar {
    background: var(--bg-muted);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .catalog-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .form-main,
[data-theme="dark"] .form-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .service-page-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .team-card {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-body);
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .lead,
[data-theme="dark"] .faq-answer p,
[data-theme="dark"] .legal-content p,
[data-theme="dark"] .catalog-body > p,
[data-theme="dark"] .catalog-specs p {
    color: var(--text-muted);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-body);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    border-color: var(--terracotta);
}

[data-theme="dark"] .faq-question,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .about-text h2,
[data-theme="dark"] .legal-content h2 {
    color: var(--text-body);
}

[data-theme="dark"] .highlight-item {
    border-color: var(--border-color);
}

[data-theme="dark"] .catalog-specs,
[data-theme="dark"] .catalog-schema,
[data-theme="dark"] .type-option,
[data-theme="dark"] .calendar-box {
    background: var(--bg-muted);
    border-color: var(--border-color);
}

[data-theme="dark"] .slot-btn {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-body);
}

[data-theme="dark"] .services-process-section {
    background: var(--bg-page);
}

[data-theme="dark"] .process-timeline::before {
    background: var(--border-color);
}

[data-theme="dark"] .cursor-glow {
    background: radial-gradient(circle, rgba(196,92,38,0.08) 0%, transparent 70%);
}

[data-theme="dark"] .page-hero:not(.hero) {
    background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-page) 100%);
}

[data-theme="dark"] .nav.open {
    background: #0A1628;
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    color: var(--text-body);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

[data-theme="dark"] .empty-state {
    color: var(--text-muted);
}

[data-theme="dark"] .preview-img,
[data-theme="dark"] .table-thumb,
[data-theme="dark"] img[src*="avatar-default"] {
    background: var(--bg-muted);
}

[data-theme="dark"] .services-preview .text-center .btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
}
