:root {
    /* Light Theme Ultra Modern */
    --primary-orange: #ff5722;
    --orange-glow: rgba(255, 87, 34, 0.35);
    --bg-main: #f4f6f9;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-dark: #0f172a;
    --text-gray: #475569;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --hero-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 246, 249, 0.85));
}

body.dark-mode {
    /* Dark Theme Ultra Cyber / Modern */
    --bg-main: #090d16;
    --glass-bg: rgba(18, 26, 43, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-dark: #f8fafc;
    --text-gray: #94a3b8;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(9, 13, 22, 0.85);
    --hero-overlay: linear-gradient(135deg, rgba(9, 13, 22, 0.95), rgba(18, 26, 43, 0.85));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s ease;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), #ff9800);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease-out;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.orange-text {
    color: var(--primary-orange);
    transition: opacity 0.4s ease;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 2px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.5s ease;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-orange {
    color: var(--primary-orange);
    font-size: 1.5rem;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 24px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-orange);
}

.btn-contact {
    background: var(--primary-orange);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px var(--orange-glow);
}

.theme-toggle-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, background 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: rotate(360deg) scale(1.1);
    color: var(--primary-orange);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.btn-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px var(--orange-glow);
}

/* Hero Section */
.hero-section {
    background: var(--hero-overlay), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.dot.red {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.btn-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-orange);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 25px;
    box-shadow: 0 6px 20px var(--orange-glow);
}

/* Section Hours */
.section-hours {
    padding: 70px 0;
}

.hours-card {
    max-width: 550px;
    margin: 0 auto;
    padding: 30px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
}

.hour-row:last-child {
    border-bottom: none;
}

.status-closed {
    color: #ef4444;
    font-weight: bold;
}

/* Location Grid */
.section-location {
    padding: 70px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
}

.info-box {
    padding: 35px;
}

.info-box h2 {
    font-size: 1.8rem;
}

.subtitle {
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    margin: 25px 0;
}

.info-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
}

.info-list i {
    margin-top: 4px;
}

.btn-share-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.map-box {
    padding: 10px;
    overflow: hidden;
}

.map-box iframe {
    border-radius: 12px;
}

/* Services */
.section-services {
    padding: 70px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.service-card {
    padding: 30px;
    border-top: 5px solid var(--primary-orange);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

/* FAQ Accordion */
.section-faq {
    padding: 70px 0;
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 15px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
}

.faq-icon {
    transition: transform 0.4s ease;
    color: var(--primary-orange);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-gray);
}

.faq-item.active .faq-answer {
    padding: 15px 25px 25px;
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* CTA */
.section-cta {
    padding: 50px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-orange), #ff7043);
    color: white;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 30px var(--orange-glow);
}

.btn-call {
    background: white;
    color: var(--primary-orange);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Floating Elements */
.floating-email {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--primary-orange);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px var(--orange-glow);
    text-decoration: none;
    z-index: 99;
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 99;
    backdrop-filter: blur(10px);
}

/* Animations Keyframes */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.pulse-badge {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

footer {
    text-align: center;
    padding: 30px;
    background: #060911;
    color: white;
    font-weight: 500;
}

@media (max-width: 868px) {
    .location-grid, .cta-box {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    .hero-section h1 { font-size: 2rem; }
}
/* ==========================================
   MOBILE SWITCH STYLES & MOBILE OPTIMIZATION
   ========================================== */

/* Toggle Switch Design for Mobile */
.mobile-switch-container {
    display: none; /* كيظهر غير ف التلفون */
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 50%;
    z-index: 2;
}

input:checked + .slider {
    background-color: #1e293b;
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: var(--primary-orange);
}

.slider .icon-sun {
    color: #f59e0b;
    font-size: 0.75rem;
}

.slider .icon-moon {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Responsive Styles for Mobile Screens (Phones) */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }

    .mobile-switch-container {
        display: block;
    }

    .desktop-nav a:not(.btn-contact) {
        display: none; /* إخفاء الروابط العادية للحفاظ على مظهر نقي */
    }

    .theme-toggle-btn {
        display: none; /* إخفاء الزر القديم فالديسكتوب */
    }

    .hero-section {
        padding: 60px 16px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .glass-card {
        padding: 20px;
        border-radius: 14px;
    }

    .floating-email {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 78px;
        right: 20px;
        font-size: 1rem;
    }
}/* ==========================================================================
   OPTIMISATION TÉLÉPHONE (MOBILE & TABLET RESPONSIVE + SWITCH TOGGLE)
   ========================================================================== */

/* 1. Style du Toggle Switch (Light / Dark Mode) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #1e293b;
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: var(--primary-orange);
}

.slider .icon-sun {
    color: #f59e0b;
    font-size: 0.75rem;
}

.slider .icon-moon {
    color: #94a3b8;
    font-size: 0.75rem;
}


/* 2. Adaptation Spécifique pour Écrans Mobiles (Max 768px) */
@media (max-width: 768px) {

    /* Navigation & Header */
    .navbar {
        padding: 12px 15px;
    }

    .logo {
        font-size: 1.05rem;
    }

    .nav-menu a:not(.btn-contact) {
        display: none; /* Masque les liens secondaires sur petit écran */
    }

    .btn-contact {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 60px 15px;
    }

    .hero-section h1 {
        font-size: 1.65rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .btn-email {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    /* Grilles (Services & Localisation) */
    .location-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .glass-card {
        padding: 20px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    /* Section CTA */
    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }

    .btn-call {
        width: 100%;
        justify-content: center;
    }

    /* Boutons Flottants (Mobile Position) */
    .floating-email {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 15px;
        font-size: 1.3rem;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 78px;
        right: 15px;
        font-size: 1rem;
    }
}