/*
Theme Name: Lightroom Tailwind
Description: A basic WordPress theme using Tailwind CSS
Version: 1.0
Author: Your Name
*/

/* WordPress required styles - minimal reset to avoid Tailwind conflicts */
* {
    box-sizing: border-box;
}

/* Let Tailwind handle body styles */
body {
    margin: 0;
    padding: 0;
    background-color: #ffffff !important;
    min-height: 100vh;
}

/* Ensure html also has white background */
html {
    background-color: #ffffff !important;
}

/* Ensure Tailwind classes work properly */
.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.h-16 {
    height: 4rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Header améliorations personnalisées */
.header-gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.logo-shadow {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.nav-link-hover {
    position: relative;
    overflow: hidden;
}

.nav-link-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link-hover:hover::before {
    left: 100%;
}

.cta-button-enhanced {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #3b82f6, #6366f1);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
}

.cta-button-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cta-button-enhanced:hover::before {
    left: 100%;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.notification-badge {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.contact-bar {
    background: linear-gradient(90deg, #1e3a8a 0%, #3730a3 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive améliorations */
@media (max-width: 768px) {
    .contact-bar {
        display: none;
    }
    
    .header-gradient {
        padding-top: 0;
    }
}

/* Animation de chargement pour le header */
.header-loading {
    animation: slideInFromTop 0.8s ease-out;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sous-menu Articles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Amélioration du dropdown */
.dropdown-shadow {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animation de hover pour les articles */
.article-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Indicateur de scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Mode sombre - Styles principaux */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e5e7eb;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header en mode sombre */
body.dark-mode header {
    background: rgba(31, 41, 55, 0.95);
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

body.dark-mode .contact-bar {
    background: linear-gradient(90deg, #1f2937 0%, #374151 100%);
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

/* Navigation en mode sombre */
body.dark-mode nav a {
    color: #d1d5db;
}

body.dark-mode nav a:hover {
    color: #60a5fa;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Sous-menu articles en mode sombre */
body.dark-mode .dropdown-menu {
    background: #374151;
    border: 1px solid #4b5563;
    color: #e5e7eb;
}

body.dark-mode .dropdown-menu h3 {
    color: #f9fafb;
}

body.dark-mode .dropdown-menu article:hover {
    background-color: #4b5563;
}

body.dark-mode .dropdown-menu article h4:hover {
    color: #60a5fa;
}

/* Barre de recherche en mode sombre */
body.dark-mode #search-input {
    background: #374151;
    border: 1px solid #4b5563;
    color: #e5e7eb;
}

body.dark-mode #search-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.dark-mode #search-input::placeholder {
    color: #9ca3af;
}

/* Boutons en mode sombre */
body.dark-mode #search-toggle {
    color: #9ca3af;
}

body.dark-mode #search-toggle:hover {
    color: #60a5fa;
}

/* Cartes et contenus en mode sombre */
body.dark-mode .bg-white {
    background-color: #374151 !important;
    border: 1px solid #4b5563;
}

body.dark-mode .text-gray-800 {
    color: #f9fafb !important;
}

body.dark-mode .text-gray-700 {
    color: #d1d5db !important;
}

body.dark-mode .text-gray-600 {
    color: #9ca3af !important;
}

body.dark-mode .text-gray-500 {
    color: #6b7280 !important;
}

body.dark-mode .text-gray-400 {
    color: #4b5563 !important;
}

/* Bordures en mode sombre */
body.dark-mode .border-gray-200 {
    border-color: #4b5563 !important;
}

body.dark-mode .border-gray-100 {
    border-color: #374151 !important;
}

/* Fond des sections en mode sombre */
body.dark-mode .bg-gray-50 {
    background-color: #1f2937 !important;
}

body.dark-mode .bg-gray-100 {
    background-color: #374151 !important;
}

/* Popups en mode sombre */
body.dark-mode .popup-overlay {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .popup-content {
    background: #374151;
    border: 1px solid #4b5563;
}

/* Toast notifications en mode sombre */
body.dark-mode .toast {
    background: #374151;
    border: 1px solid #4b5563;
    color: #e5e7eb;
}

/* Animations et transitions pour le mode sombre */
body.dark-mode * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Scroll progress en mode sombre */
body.dark-mode .scroll-progress {
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
}

/* Barre de recherche dans header */
.search-input {
    transition: all 0.3s ease;
    width: 0;
    opacity: 0;
    overflow: hidden;
}

.search-input.active {
    width: 250px;
    opacity: 1;
}

/* Notification badge amélioré */
.notification-badge-enhanced {
    position: relative;
    overflow: hidden;
}

.notification-badge-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 2s infinite;
}

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

/* Responsive améliorations pour sous-menu */
@media (max-width: 1024px) {
    .dropdown-menu {
        width: 350px;
        left: -100px;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        width: 300px;
        left: -150px;
    }
    
    .search-input.active {
        width: 200px;
    }
}
