

        :root {
            --primary-blue: #1e3a8a;
            --secondary-orange: #D4941E;
            --gold-orange: #D4941E;
            --dark-gray: #1f2937;
            --light-gray: #f8fafc;
            --gold: #D4941E;
            --success-green: #10b981;
            --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --brand-gold: #D4941E;
            --brand-gold-hover: #B8821A;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        [dir="rtl"] {
            direction: rtl;
            text-align: right;
        }

        [dir="ltr"] {
            direction: ltr;
            text-align: left;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
            line-height: 1.6;
            background: #0a0a0a;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Animated Background with Particles */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
        }

        .particles {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            background: rgba(59, 130, 246, 0.6);
            border-radius: 50%;
            animation: float 20s infinite linear;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) translateX(0px);
                opacity: 0;
            }

            10% {
                opacity: 1;
            }

            90% {
                opacity: 1;
            }

            100% {
                transform: translateY(-10vh) translateX(100px);
                opacity: 0;
            }
        }

        .animated-bg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
            animation: bgPulse 8s ease-in-out infinite alternate;
        }

        @keyframes bgPulse {
            0% {
                opacity: 0.4;
                transform: scale(1) rotate(0deg);
            }

            100% {
                opacity: 0.8;
                transform: scale(1.1) rotate(5deg);
            }
        }

        /* Header with Glassmorphism */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            background: rgba(15, 23, 42, 0.1);
            backdrop-filter: blur(30px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            white-space: nowrap;
            height: 60px;
        }

        .nav-menu {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-menu a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            position: relative;
            overflow: hidden;
        }

        .nav-menu a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--secondary-orange);
            transition: width 0.3s ease;
        }

        .nav-menu a:hover::before {
            width: 100%;
        }

        .nav-menu a:hover {
            background: rgba(59, 130, 246, 0.2);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
        }

        .contact-nav {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .lang-toggle {
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .lang-toggle:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
        }

        /* Contact Bar */
        .contact-bar {
            background: var(--accent-orange);
            padding: 1rem 0;
            margin-top: 80px;
            position: relative;
            overflow: hidden;
        }

        .contact-bar::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: shimmer 3s infinite;
        }


        @keyframes shimmer {
            0% {
                left: -100%;
            }

            100% {
                left: 100%;
            }
        }

        .contact-items {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 3rem;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            color: white;
            font-weight: 600;
        }

        .contact-item i {
            font-size: 1.2rem;
        }

        .contact-item a {
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .contact-item a:hover {
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
            transform: scale(1.05);
        }

        /* Hero Section */
        .hero-categories {
            min-height: 60vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 6rem 2rem 2rem;
            background: rgba(0, 0, 0, 0.9);
            position: relative;
            overflow: hidden;
        }

        .hero-categories::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59,130,246,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        }

        .hero-content {
            max-width: 1200px;
            position: relative;
            z-index: 1;
        }

        .hero-content h1 {
            font-size: 4.5rem;
            font-weight: 900;
            color: white;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, #ffffff, #3b82f6, #D4941E);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-align: center;
        }

        .hero-content p {
            font-size: 1.4rem;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.8;
            margin-bottom: 3rem;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 4rem;
            flex-wrap: wrap;
            margin-top: 3rem;
        }

        .hero-stat {
            text-align: center;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            padding: 2rem;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .hero-stat:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(212, 148, 30, 0.3);
        }

        .hero-stat-number {
            font-size: 3rem;
            font-weight: 900;
            color: var(--secondary-orange);
            display: block;
            text-shadow: 0 0 20px rgba(212, 148, 30, 0.5);
        }

        .hero-stat-label {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
            font-weight: 600;
            margin-top: 0.5rem;
        }

        /* Categories Section */
        .categories-section {
            padding: 6rem 2rem;
            background: rgba(0, 0, 0, 0.8);
            position: relative;
        }

        .categories-container {
            max-width: 1600px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-title {
            font-size: 3rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, #ffffff, #3b82f6);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
            border-radius: 2px;
        }

        .section-subtitle {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.8);
            max-width: 800px;
            margin: 0 auto;
        }

        /* Categories Puzzle Layout */
        .categories-puzzle {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            margin-top: 4rem;
        }

        .category-piece {
            position: relative;
            height: 400px;
            border-radius: 25px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            background: rgba(255, 255, 255, 0.02);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .category-piece:hover {
            transform: translateY(-20px) scale(1.05) rotate(2deg);
            box-shadow: 0 30px 80px rgba(212, 148, 30, 0.4);
            border-color: var(--secondary-orange);
        }

        .category-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            transition: all 0.5s ease;
            filter: brightness(0.7) contrast(1.1);
        }

        .category-piece:hover .category-bg {
            transform: scale(1.2);
            filter: brightness(0.9) contrast(1.3);
        }

        .category-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg,
                    rgba(30, 58, 138, 0.8) 0%,
                    rgba(212, 148, 30, 0.8) 50%,
                    rgba(15, 23, 42, 0.9) 100%);
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .category-piece:hover .category-overlay {
            opacity: 0.6;
        }

        .category-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, var(--secondary-orange), var(--brand-gold-hover));
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 5px 15px rgba(212, 148, 30, 0.4);
            transform: translateX(100px);
            opacity: 0;
            transition: all 0.3s ease 0.1s;
        }

        .category-piece:hover .category-badge {
            transform: translateX(0);
            opacity: 1;
        }

        .category-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 2.5rem;
            color: white;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
            transform: translateY(20px);
            transition: all 0.3s ease;
        }

        .category-piece:hover .category-content {
            transform: translateY(0);
        }

        .category-icon {
            display: inline-block;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--secondary-orange), var(--brand-gold-hover));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
            box-shadow: 0 10px 30px rgba(212, 148, 30, 0.4);
            transition: all 0.3s ease;
        }

        .category-piece:hover .category-icon {
            transform: scale(1.1) rotate(10deg);
            box-shadow: 0 15px 40px rgba(212, 148, 30, 0.6);
        }

        .category-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: white;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .category-description {
            font-size: 1rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.9);
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .category-piece:hover .category-description {
            opacity: 1;
        }

        /* Special Puzzle Variations */
        .category-piece:nth-child(1) {
            animation-delay: 0.1s;
        }

        .category-piece:nth-child(2) {
            animation-delay: 0.2s;
        }

        .category-piece:nth-child(3) {
            animation-delay: 0.3s;
        }

        .category-piece:nth-child(4) {
            animation-delay: 0.4s;
        }

        .category-piece:nth-child(5) {
            animation-delay: 0.5s;
        }

        .category-piece:nth-child(6) {
            animation-delay: 0.6s;
        }

        .category-piece:nth-child(7) {
            animation-delay: 0.7s;
        }

        .category-piece:nth-child(8) {
            animation-delay: 0.8s;
        }

        .category-piece:nth-child(odd):hover {
            transform: translateY(-20px) scale(1.05) rotate(-2deg);
        }

        .category-piece:nth-child(even):hover {
            transform: translateY(-20px) scale(1.05) rotate(2deg);
        }

        /* Featured Category */
        .category-piece.featured {
            grid-column: span 2;
            height: 500px;
        }

        @media (max-width: 768px) {
            .category-piece.featured {
                grid-column: span 1;
                height: 400px;
            }
        }

        /* Interactive Glow Effect */
        .category-piece::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg,
                    transparent 30%,
                    rgba(212, 148, 30, 0.1) 50%,
                    transparent 70%);
            opacity: 0;
            transition: all 0.6s ease;
            pointer-events: none;
            z-index: 2;
        }

        .category-piece:hover::before {
            opacity: 1;
            animation: shine 1.5s ease-in-out;
        }

        @keyframes shine {
            0% {
                transform: translateX(-100%) rotate(45deg);
            }

            100% {
                transform: translateX(100%) rotate(45deg);
            }
        }

        /* CTA Section */
        .cta-section {
            padding: 6rem 2rem;
            background: rgba(0, 0, 0, 0.95);
            text-align: center;
            position: relative;
        }

        .cta-content {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .cta-content h2 {
            font-size: 3rem;
            font-weight: 800;
            color: white;
            margin-bottom: 2rem;
            background: linear-gradient(135deg, #ffffff, #3b82f6, #D4941E);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .cta-content p {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 3rem;
            line-height: 1.8;
        }

        .cta-buttons {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            padding: 1.2rem 2.5rem;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }

        .cta-btn.primary {
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
            color: white;
            box-shadow: 0 10px 30px rgba(212, 148, 30, 0.3);
        }

        .cta-btn.secondary {
            background: transparent;
            color: var(--secondary-orange);
            border: 2px solid var(--secondary-orange);
        }

        .cta-btn:hover {
            transform: translateY(-5px) scale(1.05);
        }

        .cta-btn.primary:hover {
            box-shadow: 0 20px 50px rgba(212, 148, 30, 0.5);
        }

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

        /* Footer */
        footer {
            background: rgba(0, 0, 0, 0.95);
            padding: 4rem 2rem 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
        }

        .footer-section h3 {
            color: white;
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .footer-section p,
        .footer-section a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-section a:hover {
            color: var(--secondary-orange);
        }

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

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer-contact-item {
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .footer-contact-item i {
            color: var(--secondary-orange);
            width: 20px;
        }

        .footer-bottom {
            text-align: center;
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
        }

        /* Floating Contact Buttons */
        .floating-contacts {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            z-index: 1000;
        }

        .floating-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            text-decoration: none;
            transition: all 0.3s ease;
            animation: floatingBounce 2s ease-in-out infinite;
            position: relative;
            cursor: pointer;
        }

        .floating-btn.whatsapp {
            background: linear-gradient(135deg, #25D366, #128C7E);
            box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
        }

        @keyframes floatingBounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        .floating-btn:hover {
            transform: scale(1.2);
            animation: none;
        }

        .floating-btn::after {
            content: attr(data-tooltip);
            position: absolute;
            right: 70px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            font-size: 0.9rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .floating-btn:hover::after {
            opacity: 1;
        }

        /* Animation Classes */
        .fade-in {
            animation: fadeInUp 0.8s ease-out forwards;
            opacity: 0;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .nav-menu {
                display: none;
            }

            .hero-content h1 {
                font-size: 3rem;
            }

            .hero-stats {
                gap: 2rem;
            }

            .hero-stat {
                padding: 1.5rem;
            }

            .categories-puzzle {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .category-piece {
                height: 350px;
            }

            .contact-items {
                flex-direction: column;
                gap: 1rem;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .floating-contacts {
                bottom: 1rem;
                right: 1rem;
            }

            .floating-btn {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }

            .floating-btn::after {
                display: none;
            }
        }

        /* RTL Support */
        [dir="rtl"] .nav-container {
            flex-direction: row-reverse;
        }

        [dir="rtl"] .nav-menu {
            flex-direction: row-reverse;
        }

        [dir="rtl"] .contact-nav {
            flex-direction: row-reverse;
        }

        [dir="rtl"] .logo {
            flex-direction: row-reverse;
        }

        [dir="rtl"] .floating-contacts {
            left: 2rem;
            right: auto;
        }

        [dir="rtl"] .floating-btn::after {
            left: 70px;
            right: auto;
        }

        [dir="rtl"] .category-badge {
            right: auto;
            left: 20px;
            transform: translateX(-100px);
        }

        [dir="rtl"] .category-piece:hover .category-badge {
            transform: translateX(0);
        }

        .category-contact {
            margin-top: 10px;
            display: flex;
            gap: 12px;
        }

        .category-contact a {
            font-size: 20px;
            color: #fff;
            background: rgba(0, 0, 0, 0.5);
            padding: 8px;
            border-radius: 50%;
            transition: 0.3s;
        }

        .category-contact a:hover {
            transform: scale(1.1);
        }

        .category-contact a:first-child:hover {
            background: #25d366;
            /* WhatsApp vert */
            color: #fff;
        }

        .category-contact a:last-child:hover {
            background: #d93025;
            /* Em
            ail rouge */
        }

        .arabic-numbers {
            font-family: inherit;
            /* garde la police actuelle */
            unicode-bidi: isolate;
            /* empêche la substitution automatique des chiffres */
            direction: ltr;
            /* force l’affichage de gauche à droite pour les chiffres */
        }
        
        @media (max-width: 768px) {
  .contact-items {
    display: flex;
    flex-wrap: nowrap;
    animation: scroll-left 15s linear infinite;
    width: max-content; /* largeur selon contenu */
  }

  .contact-bar {
    overflow: hidden; /* cache ce qui dépasse */
    white-space: nowrap;
  }

  .contact-item {
    flex: 0 0 auto;
    margin-right: 30px;
  }

  /* Animation */
  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

