/* Custom CSS for Cabinet Vétérinaire Mouroujveto */

/* Base styles */
body {
    transition: opacity 0.3s ease;
}

/* Language switcher */
.lang-button {
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.lang-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lang-button.active {
    background-color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

/* Header styles */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: linear-gradient(to right, #1e40af, #0891b2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Mobile menu */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
    max-height: 0;
}

/* Animation classes */
.animate-fade-in-down {
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

/* Reveal animations */
.reveal, .reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 0.8s ease;
    transform: translateY(20px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active, .reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Card hover effects */
.card, .vaccine-card, .toxic-food-card {
    transition: all 0.3s ease;
}

.card:hover, .vaccine-card:hover, .toxic-food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-icon {
    transition: transform 0.3s ease;
}

.card:hover .card-icon, .vaccine-card:hover .card-icon, .toxic-food-card:hover .card-icon {
    transform: scale(1.2);
}

/* Button styles */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

/* Image styles */
.styled-image {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.styled-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Contact highlight */
.contact-highlight {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    background-color: #f0f9ff;
    padding: 1rem;
    border-radius: 0.25rem;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Keyframes for animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reveal-left, .reveal-right {
        transform: translateY(20px);
    }
    
    .reveal-left.active, .reveal-right.active {
        transform: translateY(0);
    }
}
