@tailwind base;
@tailwind components;
@tailwind utilities;

/* Charte graphique HOCHMAN */
@layer base {
    :root {
        --hochman-red: #D52B2B;
        --hochman-black: #000000;
        --hochman-gray: #666666;
        --hochman-white: #FFFFFF;
    }
    
    body {
        font-family: 'Roboto', 'Open Sans', sans-serif;
        color: var(--hochman-black);
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-family: 'Roboto', sans-serif;
        font-weight: 700; /* Bold */
        color: var(--hochman-black);
    }
    
    .slogan {
        font-family: 'Roboto', sans-serif;
        font-weight: 500; /* Medium */
        font-style: italic;
        color: var(--hochman-gray);
    }
    
    .slogan::after {
        content: '.';
        color: var(--hochman-red);
        font-size: 1.2em;
    }
}

@layer components {
    /* Boutons selon la charte */
    .btn-hochman-primary {
        @apply bg-hochman-red text-white px-6 py-3 rounded-lg font-medium hover:bg-red-700 transition-all duration-200 transform hover:scale-105;
    }
    
    .btn-hochman-secondary {
        @apply border-2 border-hochman-red text-hochman-red hover:bg-hochman-red hover:text-white px-6 py-3 rounded-lg font-medium transition-all duration-200;
    }
    
    /* Liens selon la charte */
    .link-hochman {
        @apply text-hochman-black hover:text-hochman-red transition-colors duration-200;
    }
    
    /* Barres rouges de séparation */
    .separator-hochman {
        @apply h-px bg-hochman-red w-16 mx-auto my-6;
    }
    
    /* Sections avec espacement généreux */
    .section-hochman {
        @apply py-16 lg:py-24;
    }
    
    /* Cartes avec style sobre */
    .card-hochman {
        @apply bg-white rounded-lg shadow-lg hover:shadow-xl transition-all duration-300 border border-gray-100;
    }
}

@layer utilities {
    /* Animations personnalisées */
    .animate-fade-in {
        animation: fadeIn 0.6s ease-in-out;
    }
    
    .animate-slide-up {
        animation: slideUp 0.8s ease-out;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Styles HOCHMAN pour forcer la charte graphique */
.hochman-hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hochman-hero-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.hochman-lawyer-photo {
    width: 20rem;
    height: 24rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid #D52B2B;
}

@media (min-width: 1024px) {
    .hochman-lawyer-photo {
        width: 24rem;
        height: 31.25rem;
    }
}

.hochman-text-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hochman-text-content {
        text-align: left;
    }
}

.hochman-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    color: #FFFFFF;
}

.hochman-slogan {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    color: #9CA3AF;
}

.hochman-red-point {
    color: #D52B2B;
}

.hochman-cta-primary {
    background-color: #D52B2B;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.hochman-cta-primary:hover {
    transform: scale(1.05);
}

.hochman-cta-secondary {
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.hochman-cta-secondary:hover {
    transform: scale(1.05);
}

/* Styles pour recouvrement.blade.php - Charte HOCHMAN */
.bg-red-50 { background-color: rgba(213, 43, 43, 0.05) !important; }
.bg-gradient-to-br.from-red-50.to-gray-100 { 
    background: linear-gradient(to bottom right, rgba(213, 43, 43, 0.05), rgba(102, 102, 102, 0.1)) !important; 
}
.text-gray-900 { color: #000000 !important; }
.text-gray-700 { color: #666666 !important; }
.bg-gradient-to-br.from-black.via-gray-800.to-black { 
    background: linear-gradient(to bottom right, #000000, #333333, #000000) !important; 
}
.text-red-100 { color: rgba(213, 43, 43, 0.1) !important; }
.text-red-300 { color: rgba(213, 43, 43, 0.3) !important; }
.text-red-900 { color: #000000 !important; }
.bg-red-600 { background-color: #D52B2B !important; }
.hover\:bg-red-700:hover { background-color: #B22222 !important; }

/* Typographie Roboto */
.font-roboto {
    font-family: 'Roboto', sans-serif;
}

/* Couleurs HOCHMAN unifiées */
.text-red-400 { color: #D52B2B !important; }
.text-red-500 { color: #D52B2B !important; }
.text-red-600 { color: #D52B2B !important; }
.bg-red-400 { background-color: #D52B2B !important; }
.bg-red-500 { background-color: #D52B2B !important; }
.bg-red-600 { background-color: #D52B2B !important; }
.border-red-500 { border-color: #D52B2B !important; }
.border-red-600 { border-color: #D52B2B !important; }

/* Couleurs de hover */
.hover\:bg-red-600:hover { background-color: #B22222 !important; }
.hover\:bg-red-700:hover { background-color: #B22222 !important; }

/* Couleurs de texte grises */
.text-slate-900 { color: #000000 !important; }
.text-gray-900 { color: #000000 !important; }
.text-gray-700 { color: #666666 !important; }
.text-gray-600 { color: #666666 !important; }

/* Couleurs de fond grises */
.bg-slate-900 { background-color: #000000 !important; }
.bg-gray-50 { background-color: rgba(102, 102, 102, 0.05) !important; }

/* Couleurs de hover pour les fonds */
.hover\:bg-slate-800:hover { background-color: #333333 !important; }
.hover\:bg-slate-900:hover { background-color: #000000 !important; }

/* Couleurs de bordure */
.border-slate-900 { border-color: #000000 !important; }

/* Animations et transitions */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

.animate-shimmer {
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

:root {
    --hochman-red: #D52B2B;
    --hochman-red-dark: #B91C1C;
    --hochman-black: #000000;
    --hochman-grey: #666666;
    --hochman-white: #FFFFFF;
}

/* Blog Page Colors */
.from-red-600 {
    --tw-gradient-from: var(--hochman-red) !important;
}

.via-indigo-600 {
    --tw-gradient-via: var(--hochman-grey) !important;
}

.to-purple-600 {
    --tw-gradient-to: var(--hochman-red) !important;
}

.from-red-400 {
    --tw-gradient-from: var(--hochman-red) !important;
}

.from-indigo-400 {
    --tw-gradient-from: var(--hochman-grey) !important;
}

.from-purple-400 {
    --tw-gradient-from: var(--hochman-red) !important;
}

.text-red-600 {
    color: var(--hochman-red) !important;
}

.text-indigo-600 {
    color: var(--hochman-grey) !important;
}

.text-purple-600 {
    color: var(--hochman-red) !important;
}

.bg-red-100 {
    background-color: rgba(213, 43, 43, 0.1) !important;
}

.bg-red-500 {
    background-color: var(--hochman-red) !important;
}

.bg-red-600 {
    background-color: var(--hochman-red) !important;
}

.hover\:bg-red-700:hover {
    background-color: var(--hochman-red-dark) !important;
}

/* Cabinet Page Colors */
.from-red-500 {
    --tw-gradient-from: var(--hochman-red) !important;
}

.to-red-500 {
    --tw-gradient-to: var(--hochman-red) !important;
}

.to-red-600 {
    --tw-gradient-to: var(--hochman-red) !important;
}

.to-red-700 {
    --tw-gradient-to: var(--hochman-red-dark) !important;
}

.to-red-800 {
    --tw-gradient-to: var(--hochman-red-dark) !important;
}

.from-red-700 {
    --tw-gradient-from: var(--hochman-red-dark) !important;
}

.from-purple-500 {
    --tw-gradient-from: var(--hochman-red) !important;
}

.to-purple-500 {
    --tw-gradient-to: var(--hochman-red) !important;
}

.via-purple-400 {
    --tw-gradient-via: var(--hochman-red) !important;
}

.text-red-400 {
    color: var(--hochman-red) !important;
}

.text-purple-400 {
    color: var(--hochman-red) !important;
}

.text-yellow-400 {
    color: #FBBF24 !important;
}

/* Contact Page Colors */
.from-red-500 {
    --tw-gradient-from: var(--hochman-red) !important;
}

.via-orange-500 {
    --tw-gradient-via: var(--hochman-red) !important;
}

.to-yellow-500 {
    --tw-gradient-to: #FBBF24 !important;
}

.via-indigo-500 {
    --tw-gradient-via: var(--hochman-grey) !important;
}

.from-red-900 {
    --tw-gradient-from: var(--hochman-black) !important;
}

.via-red-900 {
    --tw-gradient-via: var(--hochman-black) !important;
}

.to-indigo-900 {
    --tw-gradient-to: var(--hochman-black) !important;
}

.text-red-200 {
    color: rgba(213, 43, 43, 0.7) !important;
}

.text-indigo-200 {
    color: rgba(102, 102, 102, 0.7) !important;
}

.bg-red-500 {
    background-color: var(--hochman-red) !important;
}

.bg-indigo-500 {
    background-color: var(--hochman-grey) !important;
}

.bg-purple-500 {
    background-color: var(--hochman-red) !important;
}

/* Defense Page Colors */
.from-red-400 {
    --tw-gradient-from: var(--hochman-red) !important;
}

.via-orange-400 {
    --tw-gradient-via: var(--hochman-red) !important;
}

.to-yellow-400 {
    --tw-gradient-to: #FBBF24 !important;
}

.from-green-600 {
    --tw-gradient-from: var(--hochman-red) !important;
}

.to-green-800 {
    --tw-gradient-to: var(--hochman-red-dark) !important;
}

.text-green-600 {
    color: var(--hochman-red) !important;
}

.hover\:text-green-700:hover {
    color: var(--hochman-red-dark) !important;
}

.from-purple-600 {
    --tw-gradient-from: var(--hochman-red) !important;
}

.to-purple-800 {
    --tw-gradient-to: var(--hochman-red-dark) !important;
}

.text-purple-600 {
    color: var(--hochman-red) !important;
}

.hover\:text-purple-700:hover {
    color: var(--hochman-red-dark) !important;
}

.from-orange-600 {
    --tw-gradient-from: var(--hochman-red) !important;
}

.to-orange-800 {
    --tw-gradient-to: var(--hochman-red-dark) !important;
}

.text-orange-600 {
    color: var(--hochman-red) !important;
}

.hover\:text-orange-700:hover {
    color: var(--hochman-red-dark) !important;
}

/* Honoraires Page Colors */
.from-red-900 {
    --tw-gradient-from: var(--hochman-black) !important;
}

.via-red-800 {
    --tw-gradient-via: var(--hochman-black) !important;
}

.to-red-900 {
    --tw-gradient-to: var(--hochman-black) !important;
}

.text-red-100 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.from-red-600 {
    --tw-gradient-from: var(--hochman-red) !important;
}

.to-red-800 {
    --tw-gradient-to: var(--hochman-red-dark) !important;
}

/* Global Text Colors */
.text-gray-900 {
    color: var(--hochman-black) !important;
}

.text-gray-800 {
    color: var(--hochman-black) !important;
}

.text-gray-700 {
    color: var(--hochman-grey) !important;
}

.text-gray-600 {
    color: var(--hochman-grey) !important;
}

.text-slate-900 {
    color: var(--hochman-black) !important;
}

.text-slate-800 {
    color: var(--hochman-black) !important;
}

/* Global Background Colors */
.bg-slate-900 {
    background-color: var(--hochman-black) !important;
}

.hover\:bg-slate-800:hover {
    background-color: var(--hochman-black) !important;
}

.bg-slate-800 {
    background-color: var(--hochman-black) !important;
}

/* Border Colors */
.border-slate-900 {
    border-color: var(--hochman-black) !important;
}

.hover\:bg-slate-900:hover {
    background-color: var(--hochman-black) !important;
}

/* Ensure consistent styling across all pages */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
}

p, span, div {
    font-family: 'Roboto', sans-serif !important;
}

/* Button consistency */
.btn-hochman {
    background: linear-gradient(135deg, var(--hochman-red), var(--hochman-red-dark));
    color: var(--hochman-white);
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hochman:hover {
    background: linear-gradient(135deg, var(--hochman-red-dark), var(--hochman-black));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(213, 43, 43, 0.3);
}

.bg-red-900 {
    background-color: #000000 !important;
}

.from-red-900 {
    --tw-gradient-from: #000000 !important;
}

.via-red-800 {
    --tw-gradient-via: #666666 !important;
}

.to-red-900 {
    --tw-gradient-to: #000000 !important;
}

.text-red-100 {
    color: #FFFFFF !important;
}

.from-red-600 {
    --tw-gradient-from: #D52B2B !important;
}

.to-red-800 {
    --tw-gradient-to: #000000 !important;
}

/* Cabinet Page */
.from-slate-900 {
    --tw-gradient-from: #000000 !important;
}

.via-gray-900 {
    --tw-gradient-via: #666666 !important;
}

.to-black {
    --tw-gradient-to: #000000 !important;
}

.from-red-400 {
    --tw-gradient-from: #D52B2B !important;
}

.via-purple-400 {
    --tw-gradient-via: #FFFFFF !important;
}

.to-red-400 {
    --tw-gradient-to: #D52B2B !important;
}

.text-red-400 {
    color: #D52B2B !important;
}

.text-purple-400 {
    color: #666666 !important;
}

.text-yellow-400 {
    color: #FFFFFF !important;
}

/* Honoraires Page */
.bg-gradient-to-br.from-black.via-gray-800.to-black {
    background: linear-gradient(to bottom right, #000000, #666666, #000000) !important;
}

.text-yellow-400 {
    color: #FFFFFF !important;
}

.text-gray-300 {
    color: #666666 !important;
}

.bg-red-600 {
    background-color: #D52B2B !important;
}

.hover\:bg-red-700:hover {
    background-color: #B91C1C !important;
}

.text-red-600 {
    color: #D52B2B !important;
}

.border-red-600 {
    border-color: #D52B2B !important;
}

/* Paiement Page */
.bg-indigo-400 {
    background-color: #666666 !important;
}

.bg-purple-400 {
    background-color: #000000 !important;
}

.bg-indigo-500 {
    background-color: #666666 !important;
}

.bg-purple-500 {
    background-color: #000000 !important;
}

.from-red-600.via-indigo-600.to-purple-600 {
    --tw-gradient-from: #D52B2B !important;
    --tw-gradient-via: #666666 !important;
    --tw-gradient-to: #000000 !important;
}

.from-red-600.to-indigo-600 {
    --tw-gradient-from: #D52B2B !important;
    --tw-gradient-to: #666666 !important;
}

.from-indigo-600.to-purple-600 {
    --tw-gradient-from: #666666 !important;
    --tw-gradient-to: #000000 !important;
}

.hover\:from-red-700.hover\:to-indigo-700:hover {
    --tw-gradient-from: #B91C1C !important;
    --tw-gradient-to: #555555 !important;
}

.from-red-400.to-indigo-400 {
    --tw-gradient-from: #D52B2B !important;
    --tw-gradient-to: #666666 !important;
}

.from-indigo-500.to-purple-500 {
    --tw-gradient-from: #666666 !important;
    --tw-gradient-to: #000000 !important;
}

.from-gray-600.to-black {
    --tw-gradient-from: #666666 !important;
    --tw-gradient-to: #000000 !important;
}

.from-red-600.to-gray-600 {
    --tw-gradient-from: #D52B2B !important;
    --tw-gradient-to: #666666 !important;
}

.hover\:from-red-700.hover\:to-gray-700:hover {
    --tw-gradient-from: #B91C1C !important;
    --tw-gradient-to: #555555 !important;
}

.from-red-400.to-gray-400 {
    --tw-gradient-from: #D52B2B !important;
    --tw-gradient-to: #666666 !important;
}

.from-gray-500.to-black {
    --tw-gradient-from: #666666 !important;
    --tw-gradient-to: #000000 !important;
}