<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo $__env->yieldContent('title', 'Adam Service'); ?> — Accessoires Mobile</title>
    <meta name="description" content="<?php echo $__env->yieldContent('meta_description', 'Boutique en ligne d\'accessoires pour téléphones mobiles iPhone et Android. Coques, chargeurs, batteries et plus.'); ?>">
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: {
                            DEFAULT: '#1e3a8a'
                            , 50: '#eff6ff'
                            , 100: '#dbeafe'
                            , 500: '#3b82f6'
                            , 600: '#2563eb'
                            , 700: '#1d4ed8'
                            , 800: '#1e40af'
                            , 900: '#1e3a8a'
                        }
                        , accent: {
                            DEFAULT: '#f59e0b'
                            , 50: '#fffbeb'
                            , 100: '#fef3c7'
                            , 400: '#fbbf24'
                            , 500: '#f59e0b'
                            , 600: '#d97706'
                        }
                    , }
                    , fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif']
                    }
                }
            }
        }

    </script>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
    <style>
        body {
            font-family: 'Inter', sans-serif;
        }

        .nav-link {
            transition: color .2s;
        }

        .nav-link:hover {
            color: #f59e0b;
        }

        .nav-link.active {
            color: #f59e0b;
            font-weight: 600;
        }

        .product-card {
            transition: transform .25s, box-shadow .25s;
        }

        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
        }

        .btn-primary {
            background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
            transition: opacity .2s, transform .1s;
        }

        .btn-primary:hover {
            opacity: .9;
            transform: translateY(-1px);
        }

        .btn-accent {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            transition: opacity .2s, transform .1s;
        }

        .btn-accent:hover {
            opacity: .9;
            transform: translateY(-1px);
        }

    </style>
    <?php echo $__env->yieldPushContent('styles'); ?>
</head>
<body class="bg-gray-50 text-gray-800">

    
    <nav class="bg-white shadow-md sticky top-0 z-50" x-data="{ open: false }">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex items-center justify-between h-16">

                
                <a href="<?php echo e(route('home')); ?>" class="flex items-center gap-2">
                    <div class="w-9 h-9 bg-gradient-to-br from-blue-700 to-blue-900 rounded-lg flex items-center justify-center">
                        <i class="fas fa-mobile-alt text-white text-sm"></i>
                    </div>
                    <span class="text-xl font-bold text-blue-900">Adam<span class="text-amber-500">Service</span></span>
                </a>

                
                <div class="hidden md:flex items-center gap-7 text-sm font-medium text-gray-700">
                    <a href="<?php echo e(route('home')); ?>" class="nav-link <?php echo e(request()->routeIs('home') ? 'active' : ''); ?>">Accueil</a>
                    <a href="<?php echo e(route('about')); ?>" class="nav-link <?php echo e(request()->routeIs('about') ? 'active' : ''); ?>">À propos</a>
                    <a href="<?php echo e(route('products')); ?>" class="nav-link <?php echo e(request()->routeIs('products*') ? 'active' : ''); ?>">Nos Produits</a>
                    <a href="<?php echo e(route('warranty')); ?>" class="nav-link <?php echo e(request()->routeIs('warranty') ? 'active' : ''); ?>">
                        Garantie
                    </a>
                    <a href="<?php echo e(route('contact')); ?>" class="nav-link <?php echo e(request()->routeIs('contact') ? 'active' : ''); ?>">Contact</a>
                </div>

                
                <div class="flex items-center gap-3">
                    <a href="<?php echo e(route('cart')); ?>" class="relative p-2 text-gray-700 hover:text-blue-700 transition-colors">
                        <i class="fas fa-shopping-cart text-xl"></i>
                        <?php $cartCount = collect(session('cart', []))->sum('quantity'); ?>
                        <?php if($cartCount > 0): ?>
                        <span class="absolute -top-1 -right-1 bg-amber-500 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center font-bold"><?php echo e($cartCount); ?></span>
                        <?php endif; ?>
                    </a>
                    <button @click="open = !open" class="md:hidden p-2 text-gray-700 hover:text-blue-700 focus:outline-none">
                        <i class="fas fa-bars text-xl" x-show="!open"></i>
                        <i class="fas fa-times text-xl" x-show="open" x-cloak></i>
                    </button>
                </div>
            </div>
        </div>

        
        <div x-show="open" x-cloak class="md:hidden bg-white border-t border-gray-100 px-4 py-3 space-y-2 text-sm font-medium text-gray-700">
            <a href="<?php echo e(route('home')); ?>" class="block py-2 px-3 rounded hover:bg-blue-50 hover:text-blue-700 <?php echo e(request()->routeIs('home') ? 'text-blue-700 bg-blue-50' : ''); ?>">
                <i class="fas fa-home mr-2"></i> Accueil
            </a>
            <a href="<?php echo e(route('about')); ?>" class="block py-2 px-3 rounded hover:bg-blue-50 hover:text-blue-700">
                <i class="fas fa-info-circle mr-2"></i> À propos
            </a>
            <a href="<?php echo e(route('products')); ?>" class="block py-2 px-3 rounded hover:bg-blue-50 hover:text-blue-700">
                <i class="fas fa-box mr-2"></i> Nos Produits
            </a>
            <a href="<?php echo e(route('warranty')); ?>" class="block py-2 px-3 rounded hover:bg-blue-50 hover:text-blue-700 <?php echo e(request()->routeIs('warranty') ? 'text-blue-700 bg-blue-50' : ''); ?>">
                <i class="fas fa-shield-alt mr-2"></i> Conditions de Garantie
            </a>
            <a href="<?php echo e(route('contact')); ?>" class="block py-2 px-3 rounded hover:bg-blue-50 hover:text-blue-700">
                <i class="fas fa-envelope mr-2"></i> Contact
            </a>
            <a href="<?php echo e(route('cart')); ?>" class="block py-2 px-3 rounded hover:bg-amber-50 hover:text-amber-600">
                <i class="fas fa-shopping-cart mr-2"></i> Panier
                <?php if($cartCount > 0): ?>
                <span class="ml-1 bg-amber-500 text-white text-xs rounded-full px-1.5 py-0.5"><?php echo e($cartCount); ?></span>
                <?php endif; ?>
            </a>
        </div>
    </nav>

    
    <?php if(session('success')): ?>
    <div class="max-w-7xl mx-auto px-4 pt-4" x-data="{ show: true }" x-show="show">
        <div class="bg-green-50 border border-green-200 text-green-800 rounded-lg px-4 py-3 flex items-center justify-between">
            <span><i class="fas fa-check-circle mr-2"></i><?php echo e(session('success')); ?></span>
            <button @click="show = false" class="text-green-500 hover:text-green-700"><i class="fas fa-times"></i></button>
        </div>
    </div>
    <?php endif; ?>
    <?php if(session('error')): ?>
    <div class="max-w-7xl mx-auto px-4 pt-4" x-data="{ show: true }" x-show="show">
        <div class="bg-red-50 border border-red-200 text-red-800 rounded-lg px-4 py-3 flex items-center justify-between">
            <span><i class="fas fa-exclamation-circle mr-2"></i><?php echo e(session('error')); ?></span>
            <button @click="show = false" class="text-red-500 hover:text-red-700"><i class="fas fa-times"></i></button>
        </div>
    </div>
    <?php endif; ?>

    
    <main>
        <?php echo $__env->yieldContent('content'); ?>
    </main>

    
    <footer class="bg-gray-900 text-gray-300">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">

                
                <div class="md:col-span-1">
                    <div class="flex items-center gap-2 mb-4">
                        <div class="w-9 h-9 bg-gradient-to-br from-blue-600 to-blue-800 rounded-lg flex items-center justify-center">
                            <i class="fas fa-mobile-alt text-white text-sm"></i>
                        </div>
                        <span class="text-xl font-bold text-white">Adam<span class="text-amber-400">Service</span></span>
                    </div>
                    <p class="text-sm text-gray-400 leading-relaxed">
                        Votre spécialiste en accessoires pour téléphones mobiles iPhone et Android.
                    </p>
                    <div class="flex gap-3 mt-4">
                        <a href="#" class="w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center hover:bg-blue-500 transition-colors"><i class="fab fa-facebook-f text-xs"></i></a>
                        <a href="#" class="w-8 h-8 bg-pink-600 rounded-full flex items-center justify-center hover:bg-pink-500 transition-colors"><i class="fab fa-instagram text-xs"></i></a>
                        <a href="#" class="w-8 h-8 bg-green-600 rounded-full flex items-center justify-center hover:bg-green-500 transition-colors"><i class="fab fa-whatsapp text-xs"></i></a>
                    </div>
                </div>

                
                <div>
                    <h4 class="text-white font-semibold mb-4">Navigation</h4>
                    <ul class="space-y-2 text-sm">
                        <li><a href="<?php echo e(route('home')); ?>" class="hover:text-amber-400 transition-colors">Accueil</a></li>
                        <li><a href="<?php echo e(route('about')); ?>" class="hover:text-amber-400 transition-colors">À propos</a></li>
                        <li><a href="<?php echo e(route('products')); ?>" class="hover:text-amber-400 transition-colors">Nos Produits</a></li>
                        <li><a href="<?php echo e(route('contact')); ?>" class="hover:text-amber-400 transition-colors">Contact</a></li>
                        <li><a href="<?php echo e(route('warranty')); ?>" class="hover:text-amber-400 transition-colors">Conditions de Garantie</a></li>

                    </ul>
                </div>

                
                <div>
                    <h4 class="text-white font-semibold mb-4">Catégories</h4>
                    <ul class="space-y-2 text-sm">
                        <li><a href="<?php echo e(route('products', ['category' => 'coques-iphone'])); ?>" class="hover:text-amber-400 transition-colors">Coques iPhone</a></li>
                        <li><a href="<?php echo e(route('products', ['category' => 'coques-android'])); ?>" class="hover:text-amber-400 transition-colors">Coques Android</a></li>
                        <li><a href="<?php echo e(route('products', ['category' => 'chargeurs'])); ?>" class="hover:text-amber-400 transition-colors">Chargeurs</a></li>
                        <li><a href="<?php echo e(route('products', ['category' => 'batteries'])); ?>" class="hover:text-amber-400 transition-colors">Batteries</a></li>
                        <li><a href="<?php echo e(route('products', ['category' => 'ecouteurs'])); ?>" class="hover:text-amber-400 transition-colors">Écouteurs</a></li>
                    </ul>
                </div>

                
                <div>
                    <h4 class="text-white font-semibold mb-4">Contact</h4>
                    <ul class="space-y-3 text-sm">
                        <li class="flex items-start gap-2"><i class="fas fa-map-marker-alt text-amber-400 mt-0.5"></i><span>Abidjan, Côte d'ivoire</span></li>
                        <li class="flex items-center gap-2"><i class="fas fa-phone text-amber-400"></i><a href="tel:+213555000000" class="hover:text-amber-400">+213 555 000 000</a></li>
                        <li class="flex items-center gap-2"><i class="fas fa-envelope text-amber-400"></i><a href="mailto:contact@adamservice.dz" class="hover:text-amber-400">contact@adamservice.dz</a></li>
                        <li class="flex items-center gap-2"><i class="fas fa-clock text-amber-400"></i><span>Lun–Sam : 9h – 18h</span></li>
                    </ul>
                </div>
            </div>

            <div class="border-t border-gray-700 mt-8 pt-6 flex flex-col sm:flex-row justify-between items-center gap-2 text-xs text-gray-500">
                <p>&copy; <?php echo e(date('Y')); ?> AdamService. Tous droits réservés.Designed by <a href="https://softsys.ci" class="hover:text-amber-400 transition-colors">Softsys</a></p>
                <a href="<?php echo e(route('admin.login')); ?>" class="hover:text-gray-300 transition-colors">
                    <i class="fas fa-lock mr-1"></i> Administration
                </a>
            </div>
        </div>
    </footer>

    <script src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
    <?php echo $__env->yieldPushContent('scripts'); ?>
</body>
</html>
<?php /**PATH C:\Softsys\adamSerice\resources\views/layouts/app.blade.php ENDPATH**/ ?>