/* Styles personnalisés pour Outilbox Front Public */

/* 
 * Utilisation de Tailwind via CDN dans index.php
 * Pour utiliser un build process Tailwind, décommenter les directives ci-dessous :
 */

/*
@tailwind base;
@tailwind components;
@tailwind utilities;
*/

/* Styles personnalisés et utilitaires */

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-secondary: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-success: #10b981;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
    --color-bg: #ffffff;
    --color-bg-light: #f9fafb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Classes utilitaires personnalisées */

.btn {
    @apply px-4 py-2 rounded-lg font-medium transition-colors duration-200;
}

.btn-primary {
    @apply bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2;
}

.btn-secondary {
    @apply bg-gray-200 text-gray-800 hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2;
}

.btn-danger {
    @apply bg-red-600 text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2;
}

.btn-success {
    @apply bg-green-600 text-white hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2;
}

.card {
    @apply bg-white rounded-lg shadow-md p-6 border border-gray-200;
}

.input {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}

.input-error {
    @apply border-red-500 focus:ring-red-500;
}

.alert {
    @apply p-4 rounded-lg border;
    min-width: 300px;
    max-width: 500px;
}

.alert-success {
    @apply bg-gray-200 border-gray-300 text-gray-800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-error {
    @apply bg-gray-200 border-gray-300 text-gray-800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-warning {
    @apply bg-gray-200 border-gray-300 text-gray-800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-info {
    @apply bg-gray-200 border-gray-300 text-gray-800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.spinner {
    @apply inline-block animate-spin rounded-full border-4 border-gray-200 border-t-blue-600;
}

/* Responsive utilities */
@media (max-width: 640px) {
    .container {
        @apply px-4;
    }
}

/* Animations personnalisées */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Styles pour les produits */
.product-card {
    @apply bg-white rounded-lg shadow-md overflow-hidden hover:shadow-lg transition-shadow duration-200;
}

.product-image {
    @apply w-full h-48 object-cover;
}

.product-title {
    @apply text-lg font-semibold text-gray-900 mb-2;
}

.product-price {
    @apply text-xl font-bold text-blue-600;
}

.product-price-compare {
    @apply text-sm text-gray-500 line-through ml-2;
}

/* Styles pour le panier */
.cart-item {
    @apply flex items-center justify-between p-4 border-b border-gray-200;
}

/* Styles pour les formulaires */
.form-group {
    @apply mb-4;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
}

.form-error {
    @apply text-sm text-red-600 mt-1;
}

/* Navigation */
.nav-link {
    @apply px-3 py-2 rounded-md text-sm font-medium text-gray-700 hover:text-blue-600 hover:bg-gray-100 transition-colors duration-200;
}

.nav-link-active {
    @apply text-blue-600 bg-blue-50;
}

/* Styles pour les avis Google avec scroll automatique */
#google-reviews-container {
    scroll-behavior: smooth;
    /* Masquer la scrollbar mais garder le scroll fonctionnel */
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

#google-reviews-container::-webkit-scrollbar {
    width: 6px;
}

#google-reviews-container::-webkit-scrollbar-track {
    background: transparent;
}

#google-reviews-container::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}

#google-reviews-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.8);
}

/* Styles pour les right panels */
.right-panel {
    will-change: transform;
}

.right-panel.translate-x-0 {
    transform: translateX(0);
}

.right-panel.translate-x-full {
    transform: translateX(100%);
}

/* Styles pour les left panels */
.left-panel {
    will-change: transform;
}

.left-panel.-translate-x-0 {
    transform: translateX(0);
}

.left-panel.-translate-x-full {
    transform: translateX(-100%);
}

/* Empêcher le scroll du body quand un panel est ouvert */
body.overflow-hidden {
    overflow: hidden;
}

/* Animation pour l'overlay */
#panel-overlay {
    backdrop-filter: blur(2px);
}

