/* ==========================================================================
   CHONAMAR INTERIORS - PREMIUM DESIGN SYSTEM & VARIABLES
   ========================================================================== */

/* Font Family assignments & Design Tokens */
:root {
    /* Color Palette */
    --accent: #bd1e24;
    --accent-hover: #e3262d;
    --accent-rgb: 189, 30, 36;
    --whatsapp-green: #25d366;
    --whatsapp-green-hover: #20ba5a;
    
    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-arabic: 'Cairo', sans-serif;
    
    /* Dynamic Layout Variables */
    --header-height: 80px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    
    /* Light Mode Tokens (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8fa;
    --bg-tertiary: #f0f0f4;
    --text-primary: #0a0a0a;
    --text-secondary: #4a4a4f;
    --text-muted: #8e8e93;
    --border-color: rgba(10, 10, 10, 0.06);
    --header-bg: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-premium: 0 15px 40px rgba(10, 10, 10, 0.04), 0 1px 3px rgba(10, 10, 10, 0.01);
    --shadow-card-hover: 0 30px 60px rgba(10, 10, 10, 0.12);
    --overlay-color: rgba(10, 10, 10, 0.45);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121214;
    --bg-tertiary: #19191c;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    --border-color: rgba(245, 245, 247, 0.08);
    --header-bg: rgba(10, 10, 10, 0.85);
    --glass-bg: rgba(18, 18, 20, 0.45);
    --glass-border: rgba(245, 245, 247, 0.05);
    --shadow-premium: 0 15px 40px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 30px 60px rgba(0, 0, 0, 0.8);
    --overlay-color: rgba(0, 0, 0, 0.7);
}

/* Arabic Language Overrides */
html[lang="ar"] {
    --font-sans: var(--font-arabic);
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Dynamic Text Alignment for Arabic */
html[dir="rtl"] {
    text-align: right;
}

/* ==========================================================================
   GLOBAL UTILITIES
   ========================================================================== */
.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 24px;
}

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

html[lang="ar"] .text-accent {
    font-family: var(--font-arabic);
    font-style: normal;
    font-weight: 800;
}

.section-subtitle {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
}

html[lang="ar"] .section-subtitle {
    letter-spacing: 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 24px;
    max-width: 700px;
}

html[lang="ar"] .section-title {
    font-family: var(--font-arabic);
    font-weight: 700;
    font-size: 2.5rem;
}

.section-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-header-centered .section-title {
    margin-inline: auto;
}

.section-desc-centered {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* Custom Premium Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #ffffff;
    padding: 16px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.2);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.35);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    margin-inline-start: 10px;
    transition: var(--transition-smooth);
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

html[dir="rtl"] .btn-primary:hover svg {
    transform: translateX(-5px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--text-primary);
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
    margin-inline-start: 10px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover svg {
    transform: translateX(5px);
}

html[dir="rtl"] .btn-secondary:hover svg {
    transform: translateX(-5px);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--whatsapp-green);
    color: #ffffff;
    padding: 16px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.15);
    transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    margin-inline-end: 10px;
}

/* ==========================================================================
   STICKY HEADER
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-premium);
}

.header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo image */
.logo-img {
    height: auto;
    max-height: 50px;
    width: auto;
    display: block;
}
@media (max-width: 768px) {
    .logo-img {
        max-height: 40px;
    }
}
html[dir="rtl"] .logo-img {
    margin-inline-start: auto;
}

/* Fallback text if image fails */
.logo-img[src=""], .logo-img:not([src]) {
    content: "CHONAMAR";
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
}

/* Menu links */
.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

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

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

/* Header Actions controls */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background-color: var(--bg-secondary);
}

.lang-btn svg {
    width: 15px;
    height: 15px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-premium);
    width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 100;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-dropdown li:hover {
    background-color: var(--bg-secondary);
    color: var(--accent);
}

.lang-dropdown li.active {
    color: var(--accent);
    font-weight: 700;
}

/* Theme toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: var(--transition-smooth);
}

.theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}
.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}
[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Fixed Header CTA */
.btn-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #ffffff;
    padding: 12px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.15);
}

.btn-header-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-header-cta svg {
    width: 14px;
    height: 14px;
    margin-inline-start: 8px;
    transition: var(--transition-smooth);
}

.btn-header-cta:hover svg {
    transform: translateX(4px);
}

html[dir="rtl"] .btn-header-cta:hover svg {
    transform: translateX(-4px);
}

/* Mobile burger */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.burger-menu.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.open span:nth-child(2) {
    opacity: 0;
}

.burger-menu.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    will-change: transform;
}

/* Zoom au survol */
.hero-section:hover .hero-bg img {
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.05) 0%, rgba(10, 10, 10, 0.75) 60%, #0a0a0a 100%);
    z-index: 2;
}

[data-theme="dark"] .hero-overlay {
    background: radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.08) 0%, rgba(10, 10, 10, 0.85) 60%, #0a0a0a 100%);
}

.hero-content-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--header-height) 24px 0 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
}

.hero-text-wrapper {
    max-width: 800px;
    color: #ffffff;
    margin-top: auto;
    margin-bottom: auto;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 20px;
    position: relative;
}

html[lang="ar"] .hero-badge {
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 24px;
}

html[lang="ar"] .hero-title {
    font-family: var(--font-arabic);
    font-weight: 800;
    font-size: 3.8rem;
    line-height: 1.3;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    max-width: 600px;
    line-height: 1.7;
}

html[lang="ar"] .hero-subtitle {
    font-family: var(--font-arabic);
    font-size: 1.15rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-bottom: 40px;
    width: 100%;
    color: rgba(255, 255, 255, 0.6);
}

.hero-socials {
    display: flex;
    gap: 24px;
}

.social-icon-link {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.social-icon-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.social-icon-link svg {
    width: 20px;
    height: 20px;
}

/* Scroll down element */
.scroll-down {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
}

html[lang="ar"] .scroll-down {
    letter-spacing: 0;
}

.scroll-down:hover {
    color: var(--accent);
}

.scroll-down svg {
    width: 16px;
    height: 16px;
    animation: bounce 2s infinite;
}

/* ==========================================================================
   TRUST BAR SECTION
   ========================================================================== */
.trust-bar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 24px;
}

.bar-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.badge-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 6px;
}

html[lang="ar"] .badge-num {
    font-family: var(--font-arabic);
    font-weight: 800;
    font-size: 2rem;
}

.badge-txt {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

html[lang="ar"] .badge-txt {
    letter-spacing: 0;
}

.trust-bar .divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    background-color: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.about-paragraph {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0;
}

.value-item {
    display: flex;
    gap: 20px;
}

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 24px;
    height: 24px;
}

.value-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.value-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* About Visual Side */
.about-visual {
    position: relative;
    width: 100%;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.about-main-img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    filter: brightness(0.9);
}

/* Luxury visual overlay badge */
.luxury-badge {
    position: absolute;
    bottom: 40px;
    inset-inline-start: 40px;
    background-color: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 24px 32px;
    border-inline-start: 4px solid var(--accent);
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.luxury-badge-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 6px;
}

.luxury-badge-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

html[lang="ar"] .luxury-badge-title {
    font-family: var(--font-arabic);
    font-weight: 700;
    font-size: 1.3rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(var(--accent-rgb), 0.15);
}

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

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-icon-floating {
    position: absolute;
    bottom: -24px;
    inset-inline-end: 24px;
    width: 48px;
    height: 48px;
    background-color: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.3);
    z-index: 5;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-floating {
    transform: rotate(360deg);
}

.service-icon-floating svg {
    width: 20px;
    height: 20px;
}

.service-card-content {
    padding: 40px;
}

.service-card-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 16px;
}

html[lang="ar"] .service-card-title {
    font-family: var(--font-arabic);
    font-weight: 700;
    font-size: 1.5rem;
}

.service-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-card-details {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card-details li {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding-inline-start: 24px;
}

.service-card-details li::before {
    content: "■";
    font-size: 8px;
    color: var(--accent);
    position: absolute;
    inset-inline-start: 0;
    top: 2px;
}

.service-card-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.service-card-link:hover {
    color: var(--text-primary);
}

/* Services Banner CTA */
.services-banner-cta {
    position: relative;
    margin-top: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-premium);
}

.banner-glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.services-banner-cta h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 12px;
}

html[lang="ar"] .services-banner-cta h3 {
    font-family: var(--font-arabic);
    font-weight: 700;
    font-size: 1.8rem;
}

.services-banner-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-inline: auto;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 36px;
}

/* Form structure */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-alert.success {
    background-color: rgba(37, 211, 102, 0.08);
    color: var(--whatsapp-green-hover);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

html[lang="ar"] .form-group label {
    letter-spacing: 0;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.05);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: inset-inline-end 18px;
    background-size: 16px;
    padding-inline-end: 45px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    padding: 18px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.2);
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.35);
}

.btn-submit svg {
    width: 18px;
    height: 18px;
    margin-inline-start: 10px;
    transition: var(--transition-smooth);
}

.btn-submit:hover svg {
    transform: translateX(5px);
}

html[dir="rtl"] .btn-submit:hover svg {
    transform: translateX(-5px);
}

/* Info Cards Side */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

.info-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.info-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.info-links-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-link-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-link-item:hover .info-icon {
    background-color: var(--accent);
    color: #ffffff;
}

.info-link-item:hover .info-value {
    color: var(--accent);
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(var(--accent-rgb), 0.05);
    color: var(--accent);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.info-statement {
    display: flex;
    gap: 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-top: 40px;
}

.icon-shield {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.info-statement p {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   PORTFOLIO SECTION (BEFORE/AFTER SHOWCASE)
   ========================================================================== */
.portfolio-section {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

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

.portfolio-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(var(--accent-rgb), 0.15);
}

.portfolio-visual-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    background-color: #000000;
}

.portfolio-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-image-wrapper.active {
    opacity: 1;
    z-index: 2;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease, filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-image-wrapper.active img {
    transform: scale(1.05);
}

/* Grayscale Construction before state simulation for filter mode */
.portfolio-visual-container.filter-mode .filtered-img {
    filter: grayscale(1) brightness(0.6) contrast(1.3) sepia(0.15) blur(0.5px);
}

.portfolio-visual-container.filter-mode.after-state .filtered-img {
    filter: none !important;
}

/* Badge states */
.badge-state {
    position: absolute;
    top: 20px;
    inset-inline-start: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    z-index: 5;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

html[lang="ar"] .badge-state {
    letter-spacing: 0;
}

.badge-state.before {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(5px);
}

.badge-state.after {
    background-color: var(--accent);
}

.badge-state.after-active {
    background-color: var(--accent) !important;
}

/* Portfolio info */
.portfolio-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.portfolio-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

html[lang="ar"] .portfolio-tag {
    letter-spacing: 0;
}

.toggle-switch-container {
    display: inline-flex;
    background-color: var(--bg-tertiary);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.btn-toggle, .btn-toggle-filter {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-toggle.active, .btn-toggle-filter.active {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.2);
}

.portfolio-card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.3;
}

html[lang="ar"] .portfolio-card-title {
    font-family: var(--font-arabic);
    font-weight: 700;
    font-size: 1.25rem;
}

.portfolio-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   PREMIUM FOOTER
   ========================================================================== */
.main-footer {
    background-color: #0a0a0a;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-bold {
    color: #ffffff;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    max-width: 320px;
    line-height: 1.7;
}

.footer-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

html[dir="rtl"] .footer-nav a:hover {
    transform: translateX(-4px);
}

.footer-social-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-social-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 40px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-langs {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-lang-opt {
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-fast);
}

.footer-lang-opt.active, .footer-lang-opt:hover {
    color: var(--accent);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    inset-inline-end: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
    background-color: var(--whatsapp-green-hover);
    transform: translateY(-5px) scale(1.05);
}

.floating-whatsapp svg {
    width: 30px;
    height: 30px;
}

.whatsapp-tooltip {
    position: absolute;
    inset-inline-end: 80px;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

html[dir="rtl"] .whatsapp-tooltip {
    transform: translateX(-10px);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Mobile Navigation Drawer Fullscreen Overlay */
@media (max-width: 1024px) {
    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        inset-inline-start: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 1000;
    }

    .nav-menu.open {
        inset-inline-start: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .btn-header-cta {
        display: none;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .section-container {
        padding: 60px 16px;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    html[lang="ar"] .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-group-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trust-bar .divider {
        display: none;
    }

    .trust-badge {
        flex: 1 1 40%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-visual-container {
        height: 280px;
    }
}

/* ==========================================================================
   HERO VIDEO BACKGROUND
   ========================================================================== */
.hero-video-bg {
    background-color: #0a0a0a; /* fond noir immédiat */
}
   .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none; /* Pour que les clics passent à travers */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.08) 0%, rgba(10, 10, 10, 0.75) 60%, #0a0a0a 100%);
    z-index: 2;
    pointer-events: none;
}

[data-theme="dark"] .hero-overlay {
    background: radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.12) 0%, rgba(10, 10, 10, 0.85) 60%, #0a0a0a 100%);
}

/* Ajustement du contenu pour qu'il soit au-dessus */
.hero-content-container {
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   AUDIO PLAYER (floating button)
   ========================================================================== */
.audio-player {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.audio-player:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

.audio-control {
    background: transparent;
    border: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.audio-control svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.audio-control .icon-play {
    display: none;
}

.audio-control.playing .icon-pause {
    display: none;
}

.audio-control.playing .icon-play {
    display: block;
}

.audio-control:not(.playing) .icon-pause {
    display: block;
}

.audio-control:not(.playing) .icon-play {
    display: none;
}

@media (max-width: 768px) {
    .audio-player {
        bottom: 90px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .audio-control svg {
        width: 20px;
        height: 20px;
    }
}