/* ============================================
   CHAPES BATIMENTS â Modern Website
   Light/Dark Theme System + Gallery + Lightbox
   ============================================ */

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

/* === LIGHT THEME (Default) === */
:root {
    --bg-primary: #f8f8f6;
    --bg-secondary: #f1efec;
    --bg-tertiary: #e8e5e0;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);

    --text-primary: #1a1110;
    --text-secondary: #4a3f3d;
    --text-muted: #6b5e5c;
    --text-dim: #9a8e8c;

    /* Charte graphique rouge brique */
    --accent-primary: #B5312C;
    --accent-primary-light: #D4493F;
    --accent-primary-dark: #8B1E1E;
    --accent-warm: #C94A3F;
    --accent-deep: #6B1515;
    --accent-muted: #A0524D;

    /* Harmonious secondary accents (warm palette) */
    --accent-blue: #B5312C;
    --accent-emerald: #B5312C;
    --accent-violet: #8B1E1E;
    --accent-cyan: #C94A3F;
    --accent-amber: #D4493F;
    --accent-rose: #A0524D;

    --gradient-primary: linear-gradient(135deg, #B5312C, #8B1E1E);
    --gradient-alt: linear-gradient(135deg, #C94A3F, #B5312C);
    --gradient-warm: linear-gradient(135deg, #D4493F, #6B1515);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 60px rgba(181, 49, 44, 0.1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --container-max: 1280px;
    --section-spacing: clamp(80px, 12vw, 140px);

    --header-bg: rgba(248, 248, 246, 0.85);
    --mobile-menu-bg: rgba(248, 248, 246, 0.98);
    --orb-opacity: 0.2;
    --form-input-bg: rgba(0, 0, 0, 0.02);
    --form-focus-bg: rgba(181, 49, 44, 0.04);
    --select-arrow: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b5e5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E);
    --card-shadow: var(--shadow-md);
    --icon-blue-bg: rgba(181, 49, 44, 0.08);
    --icon-emerald-bg: rgba(181, 49, 44, 0.08);
    --icon-violet-bg: rgba(139, 30, 30, 0.08);
    --icon-cyan-bg: rgba(201, 74, 63, 0.08);
    --icon-amber-bg: rgba(212, 73, 63, 0.08);
    --icon-rose-bg: rgba(160, 82, 77, 0.08);
    --glow-blue: rgba(181, 49, 44, 0.1);
    --glow-emerald: rgba(181, 49, 44, 0.1);
    --glow-violet: rgba(139, 30, 30, 0.1);
    --glow-cyan: rgba(201, 74, 63, 0.1);
    --glow-amber: rgba(212, 73, 63, 0.08);
    --glow-rose: rgba(160, 82, 77, 0.08);
    --featured-border: rgba(181, 49, 44, 0.2);
    --featured-bg: rgba(181, 49, 44, 0.04);
    --toggle-bg: rgba(0, 0, 0, 0.06);
    --toggle-bg-hover: rgba(0, 0, 0, 0.1);
    --toggle-icon-color: var(--accent-primary);
    --hero-overlay: linear-gradient(135deg, rgba(248,248,246,0.92) 0%, rgba(248,248,246,0.75) 50%, rgba(248,248,246,0.5) 100%);
    --tab-bg: rgba(0, 0, 0, 0.04);
    --tab-active-bg: var(--accent-primary);
    --tab-active-color: #fff;
    --tab-color: var(--text-muted);
    --lightbox-bg: rgba(0, 0, 0, 0.92);
}

/* === DARK THEME === */
[data-theme="dark"] {
    --bg-primary: #0a0808;
    --bg-secondary: #110e0d;
    --bg-tertiary: #161211;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.045);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(255, 255, 255, 0.12);

    --text-primary: #f4f2f1;
    --text-secondary: #b0a8a6;
    --text-muted: #7a706e;
    --text-dim: #564e4c;

    /* Charte graphique rouge brique â tons clairs pour dark mode */
    --accent-primary: #D4493F;
    --accent-primary-light: #E8665C;
    --accent-primary-dark: #B5312C;
    --accent-warm: #D4493F;
    --accent-deep: #8B1E1E;
    --accent-muted: #C17872;

    --accent-blue: #D4493F;
    --accent-emerald: #D4493F;
    --accent-violet: #C17872;
    --accent-cyan: #E8665C;
    --accent-amber: #D4493F;
    --accent-rose: #E8665C;

    --gradient-primary: linear-gradient(135deg, #D4493F, #8B1E1E);
    --gradient-alt: linear-gradient(135deg, #E8665C, #B5312C);
    --gradient-warm: linear-gradient(135deg, #D4493F, #6B1515);

    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-glow: 0 0 60px rgba(212, 73, 63, 0.08);

    --header-bg: rgba(10, 8, 8, 0.85);
    --mobile-menu-bg: rgba(10, 8, 8, 0.98);
    --orb-opacity: 0.25;
    --form-input-bg: rgba(255, 255, 255, 0.03);
    --form-focus-bg: rgba(212, 73, 63, 0.03);
    --select-arrow: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237a706e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E);
    --card-shadow: none;
    --icon-blue-bg: rgba(212, 73, 63, 0.1);
    --icon-emerald-bg: rgba(212, 73, 63, 0.1);
    --icon-violet-bg: rgba(193, 120, 114, 0.1);
    --icon-cyan-bg: rgba(232, 102, 92, 0.1);
    --icon-amber-bg: rgba(212, 73, 63, 0.1);
    --icon-rose-bg: rgba(232, 102, 92, 0.1);
    --glow-blue: rgba(212, 73, 63, 0.15);
    --glow-emerald: rgba(212, 73, 63, 0.15);
    --glow-violet: rgba(193, 120, 114, 0.15);
    --glow-cyan: rgba(232, 102, 92, 0.15);
    --glow-amber: rgba(212, 73, 63, 0.12);
    --glow-rose: rgba(232, 102, 92, 0.12);
    --featured-border: rgba(212, 73, 63, 0.15);
    --featured-bg: rgba(212, 73, 63, 0.03);
    --toggle-bg: rgba(255, 255, 255, 0.05);
    --toggle-bg-hover: rgba(255, 255, 255, 0.1);
    --toggle-icon-color: var(--accent-primary);
    --hero-overlay: linear-gradient(135deg, rgba(10,8,8,0.92) 0%, rgba(10,8,8,0.8) 50%, rgba(10,8,8,0.55) 100%);
    --tab-bg: rgba(255, 255, 255, 0.04);
    --tab-active-bg: var(--accent-primary);
    --tab-active-color: #fff;
    --tab-color: var(--text-muted);
    --lightbox-bg: rgba(0, 0, 0, 0.96);
}

/* === Transition for theme change === */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease !important;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* === Container === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

/* === Ambient Background === */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: var(--orb-opacity);
    transition: opacity 0.6s ease;
}

.ambient-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(181, 49, 44, 0.12), transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-orb 20s ease-in-out infinite;
}

.ambient-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 30, 30, 0.08), transparent 70%);
    bottom: 30%;
    left: -150px;
    animation: float-orb 25s ease-in-out infinite reverse;
}

.ambient-orb--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 74, 63, 0.06), transparent 70%);
    bottom: -100px;
    right: 20%;
    animation: float-orb 18s ease-in-out infinite;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* === Theme Toggle Button === */
.theme-toggle {
    position: relative;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--toggle-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--toggle-bg-hover);
    border-color: var(--glass-border-hover);
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle__icon {
    position: relative;
    width: 22px;
    height: 22px;
    color: var(--toggle-icon-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.theme-toggle__sun,
.theme-toggle__moon {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.theme-toggle__sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle__moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle__sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle__moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* === Typography === */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 8vw, 80px);
}

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-alt {
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(181, 49, 44, 0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(181, 49, 44, 0.35), 0 0 0 4px rgba(181, 49, 44, 0.1);
}

.btn--glass {
    background: var(--glass);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.btn--glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

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

/* === Header / Navigation === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    padding: 10px 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__logo-img {
    height: 44px;
    width: auto;
    transition: opacity 0.3s;
}

.nav__logo:hover .nav__logo-img {
    opacity: 0.8;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-primary);
    background: var(--glass);
}

.nav__link.active {
    color: var(--accent-primary);
}

.nav__link--external {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-warm) !important;
    font-size: 0.85rem;
}

.nav__link--external:hover {
    color: var(--text-primary) !important;
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__cta {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* --- Mobile Menu Toggle (it-secure standard) --- */
.nav-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    z-index: 1001;
}

.nav-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Navigation Overlay (it-secure standard) --- */
.nav-mobile {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 24px clamp(16px, 5vw, 40px);
    overflow-y: auto;
}

.nav-mobile.open {
    display: block;
    animation: fadeInMenu 0.3s ease;
}

@keyframes fadeInMenu {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-mobile-link {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    transition: color 0.3s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: var(--accent-primary);
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(181, 49, 44, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(181, 49, 44, 0); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 620px;
}

.hero__subtitle--secondary {
    font-size: clamp(0.92rem, 1.5vw, 1.05rem);
    margin-bottom: 40px;
    opacity: 0.85;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.5; }
}

/* === Services === */
.services {
    padding: var(--section-spacing) 0;
    position: relative;
    z-index: 2;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.service-card__icon--blue { background: var(--icon-blue-bg); color: var(--accent-blue); }
.service-card__icon--emerald { background: var(--icon-emerald-bg); color: var(--accent-emerald); }
.service-card__icon--violet { background: var(--icon-violet-bg); color: var(--accent-violet); }
.service-card__icon--cyan { background: var(--icon-cyan-bg); color: var(--accent-cyan); }
.service-card__icon--amber { background: var(--icon-amber-bg); color: var(--accent-amber); }
.service-card__icon--rose { background: var(--icon-rose-bg); color: var(--accent-rose); }

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card__features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-card__features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    flex-shrink: 0;
}

.service-card__glow {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-card__glow {
    opacity: 1;
}

.service-card__glow--blue { background: var(--glow-blue); }
.service-card__glow--emerald { background: var(--glow-emerald); }
.service-card__glow--violet { background: var(--glow-violet); }
.service-card__glow--cyan { background: var(--glow-cyan); }
.service-card__glow--amber { background: var(--glow-amber); }
.service-card__glow--rose { background: var(--glow-rose); }

.service-card--featured {
    border-color: var(--featured-border);
    background: var(--featured-bg);
}

/* === Portfolio / RÃ©alisations === */
.portfolio {
    padding: var(--section-spacing) 0;
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
}

[data-theme="dark"] .portfolio {
    background: transparent;
}

.portfolio__intro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: -40px auto 48px;
    line-height: 1.8;
}

/* Gallery Tabs */
.portfolio__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.portfolio__tab {
    padding: 10px 24px;
    background: var(--tab-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--tab-color);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.portfolio__tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--glass-border-hover);
}

.portfolio__tab.active {
    background: var(--tab-active-bg);
    color: var(--tab-active-color);
    border-color: var(--tab-active-bg);
}

/* Gallery Grid */
.portfolio__gallery-group {
    display: none;
}

.portfolio__gallery-group.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    animation: gallery-fade-in 0.4s ease;
}

@keyframes gallery-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.portfolio__img-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio__img-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.portfolio__img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio__img-item:hover img {
    transform: scale(1.08);
}

.portfolio__img-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio__img-item:hover::after {
    opacity: 1;
}

/* Zoom icon on hover */
.portfolio__img-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
    background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
}

.portfolio__img-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* === Lightbox === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--lightbox-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) scale(1.08);
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
}

/* === About === */
.about {
    padding: var(--section-spacing) 0;
    position: relative;
    z-index: 2;
}

.about__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(48px, 8vw, 80px);
    align-items: center;
}

.about__text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about__text strong {
    color: var(--text-primary);
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.about__feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.about__feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(181, 49, 44, 0.08);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

[data-theme="dark"] .about__feature-icon {
    background: rgba(212, 73, 63, 0.1);
}

.about__feature strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.about__feature p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* About visual side */
.about__visual {
    position: relative;
}

.about__image-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}

.about__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.about__stats-cards {
    display: flex;
    gap: 16px;
    margin-top: -60px;
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.about__stat-card {
    flex: 1;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about__stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.about__stat-card--2 .about__stat-number {
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about__stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.about__sister-company {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.about__sister-company p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about__made-badge {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.about__made-img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.about__made-img:hover {
    opacity: 1;
}

/* === CTA Section === */
.cta-section {
    padding: 0 0 var(--section-spacing);
    position: relative;
    z-index: 2;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: clamp(48px, 8vw, 80px) clamp(24px, 5vw, 64px);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.cta-card__glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(181, 49, 44, 0.08), transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .cta-card__glow {
    background: radial-gradient(ellipse, rgba(212, 73, 63, 0.12), transparent 70%);
}

.cta-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
}

.cta-card__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.8;
    position: relative;
}

.cta-card__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

/* === Contact === */
.contact {
    padding: var(--section-spacing) 0;
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
}

[data-theme="dark"] .contact {
    background: transparent;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 8vw, 80px);
    align-items: start;
}

.contact__heading {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact__text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.contact__detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact__detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact__detail strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact__detail p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact__detail a {
    color: var(--accent-primary);
}

.contact__detail a:hover {
    text-decoration: underline;
}

/* Map */
.contact__map {
    margin-top: 8px;
}

.contact__map-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact__map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

.contact__map-wrapper iframe {
    display: block;
}

/* Contact CTA Card */
.contact__cta-wrapper {
    position: relative;
}

.contact__cta-card {
    padding: 48px 36px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

[data-theme="dark"] .contact__cta-card {
    background: var(--bg-card);
}

.contact__cta-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(181, 49, 44, 0.08);
    border-radius: 50%;
    color: var(--accent-primary);
    margin-bottom: 24px;
    transition: transform 0.3s ease, background 0.3s ease;
}

[data-theme="dark"] .contact__cta-icon {
    background: rgba(212, 73, 63, 0.1);
}

.contact__cta-card:hover .contact__cta-icon {
    transform: scale(1.08);
    background: rgba(181, 49, 44, 0.12);
}

.contact__cta-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact__cta-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 400px;
}

.contact__cta-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
}

.contact__cta-divider::before,
.contact__cta-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.contact__cta-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 24px;
    font-style: italic;
    line-height: 1.5;
}

.contact__cta-card .btn--full {
    max-width: 100%;
}

/* === Footer === */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
    background: var(--bg-tertiary);
}

[data-theme="dark"] .footer {
    background: var(--bg-secondary);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer__logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links li,
.footer__links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--text-primary);
}

.footer__badge {
    margin-top: 20px;
}

.footer__badge-img {
    height: 48px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer__badge-img:hover {
    opacity: 1;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    color: var(--text-dim);
    transition: color 0.3s;
}

.footer__legal a:hover {
    color: var(--text-secondary);
}

/* === Animations === */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* === Responsive === */
@media (max-width: 1100px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .nav__menu {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .nav__cta {
        display: none;
    }

    .hero__title {
        font-size: clamp(2.4rem, 10vw, 4rem);
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

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

    .portfolio__tabs {
        gap: 6px;
    }

    .portfolio__tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .about__features {
        grid-template-columns: 1fr;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .lightbox__prev { left: 12px; }
    .lightbox__next { right: 12px; }

    .lightbox__prev,
    .lightbox__next {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        justify-content: center;
    }

    .portfolio__gallery-group.active {
        grid-template-columns: 1fr;
    }

    .portfolio__tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .portfolio__tab {
        text-align: center;
    }

    .about__stats-cards {
        flex-direction: column;
        padding: 0 12px;
    }

    .cta-card__actions {
        flex-direction: column;
    }

    .cta-card__actions .btn {
        justify-content: center;
    }
}
