/**
 * Weddinz - Custom Styles
 * Complément à Tailwind CSS
 */

/* ===== CUSTOM PROPERTIES ===== */
:root {
    --color-rose-500: #e04d72;
    --color-rose-600: #cc325d;
    --color-gold-400: #ddb56e;
    --color-gold-500: #d4a04a;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(224, 77, 114, 0.2);
    color: inherit;
}

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

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
    }
    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 0.4s ease-out forwards;
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Animation delays */
.delay-75 { animation-delay: 75ms; }
.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }

/* ===== SCROLL ANIMATIONS ===== */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-scroll].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: var(--color-rose-600);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(204, 50, 93, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-rose-500);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(204, 50, 93, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: white;
    color: #374151;
    font-weight: 600;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--color-rose-500);
    color: var(--color-rose-600);
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

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

/* ===== FORMS ===== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-rose-500);
    box-shadow: 0 0 0 3px rgba(224, 77, 114, 0.1);
}

/* Custom checkbox */
input[type="checkbox"] {
    accent-color: var(--color-rose-600);
}

/* ===== LOADING STATES ===== */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* ===== GRADIENTS ===== */
.gradient-rose {
    background: linear-gradient(135deg, #fdf2f4 0%, #fce7eb 100%);
}

.gradient-gold {
    background: linear-gradient(135deg, #fdfbf7 0%, #f9f3e6 100%);
}

.gradient-text-rose {
    background: linear-gradient(135deg, var(--color-rose-600) 0%, #e04d72 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== DECORATIVE ELEMENTS ===== */
.pattern-dots {
    background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-grid {
    background-image: linear-gradient(#e5e7eb 1px, transparent 1px),
                      linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    font-family: 'Playfair Display', serif;
    color: rgba(224, 77, 114, 0.1);
    line-height: 1;
}

/* ===== PRICING CARDS ===== */
.pricing-card.featured {
    transform: scale(1.05);
    z-index: 10;
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.is-open {
    background-color: #fdf2f4;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 640px) {
    .mobile-full {
        width: 100%;
    }
    
    .mobile-stack {
        flex-direction: column;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--color-rose-500);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-rose-600);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ===== ALPINE.JS CLOAK ===== */
[x-cloak] {
    display: none !important;
}
