/**
 * Landscape Music - Custom Styles
 * Styles complémentaires à Tailwind CSS
 */

/* Typography Enhancements */
.font-serif {
    font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

.fade-in-delay-4 {
    animation-delay: 0.4s;
}

/* Hero Background Pattern */
.hero-pattern {
    background-image: 
        linear-gradient(rgba(45, 79, 56, 0.85), rgba(45, 79, 56, 0.85)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Section Backgrounds */
.section-alt {
    background-color: #F3F1ED;
}

/* Language Badge */
.lang-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
}

.lang-badge-fr {
    background-color: #2D4F38;
    color: white;
}

.lang-badge-en {
    background-color: #C0775C;
    color: white;
}

.lang-badge-nl {
    background-color: #6B7280;
    color: white;
}

/* Resource Card */
.resource-card {
    border-left: 3px solid #C0775C;
    transition: border-color 0.3s ease;
}

.resource-card:hover {
    border-left-color: #2D4F38;
}

/* Button Styles */
.btn-primary {
    @apply bg-[#C0775C] text-white px-6 py-3 rounded-lg font-medium transition-colors;
}

.btn-primary:hover {
    @apply bg-[#a8654d];
}

.btn-secondary {
    @apply bg-[#2D4F38] text-white px-6 py-3 rounded-lg font-medium transition-colors;
}

.btn-secondary:hover {
    @apply bg-[#234029];
}

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #C0775C;
    box-shadow: 0 0 0 3px rgba(192, 119, 92, 0.2);
}

/* Link Underline Animation */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #C0775C;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F9F7F2;
}

::-webkit-scrollbar-thumb {
    background: #2D4F38;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #234029;
}

/* Table Styles */
table {
    @apply w-full border-collapse;
}

table th {
    @apply bg-[#2D4F38] text-white px-4 py-3 text-left font-serif;
}

table td {
    @apply px-4 py-3 border-b border-[#E5E7EB];
}

table tr:hover td {
    @apply bg-[#F9F7F2];
}

/* Image Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Print Styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
