/**
 * Vinovalo - Styles principaux
 * 
 * Styles extraits de theme.php et layout.php
 */

/* Typographie */
body {
    font-family: 'Source Sans 3', sans-serif;
}

.font-display {
    font-family: 'Cormorant Garamond', serif;
}

/* Background avec motif */
.bg-pattern {
    background-color: #1a0a10;
    background-image: 
        radial-gradient(ellipse at 20% 30%, rgba(114, 36, 72, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(114, 36, 72, 0.2) 0%, transparent 50%),
        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='%23722448' fill-opacity='0.08'%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");
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Input focus */
.input-wine:focus {
    box-shadow: 0 0 0 3px rgba(224, 186, 12, 0.3);
}

/* Bouton principal */
.btn-gold {
    background: linear-gradient(135deg, #e0ba0c 0%, #c19108 100%);
    transition: all 0.3s ease;
}

.btn-gold:hover:not(:disabled) {
    background: linear-gradient(135deg, #f0d324 0%, #e0ba0c 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(224, 186, 12, 0.3);
}

.btn-gold:active:not(:disabled) {
    transform: translateY(0);
}

.btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bouton secondaire */
.btn-wine {
    background: #722448;
    transition: all 0.3s ease;
}

.btn-wine:hover:not(:disabled) {
    background: #8f1d40;
}

/* Animation spinner */
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Bubbles animation */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(224, 186, 12, 0.4), rgba(224, 186, 12, 0.1));
    animation: rise 8s infinite ease-in;
    opacity: 0;
}

@keyframes rise {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-400px) scale(1); }
}

.bubble:nth-child(1) { left: 10%; width: 20px; height: 20px; animation-delay: 0s; animation-duration: 7s; }
.bubble:nth-child(2) { left: 25%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 9s; }
.bubble:nth-child(3) { left: 45%; width: 25px; height: 25px; animation-delay: 1s; animation-duration: 8s; }
.bubble:nth-child(4) { left: 65%; width: 18px; height: 18px; animation-delay: 3s; animation-duration: 7s; }
.bubble:nth-child(5) { left: 85%; width: 22px; height: 22px; animation-delay: 0.5s; animation-duration: 10s; }

/* Animation fade in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Validation d'input - animations d'erreur */
@keyframes pulse-red {
    0%, 100% { border-color: rgba(239, 68, 68, 0.4); }
    50% { border-color: rgba(239, 68, 68, 1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.input-invalid {
    border-color: #ef4444 !important;
    animation: pulse-red 2s infinite, shake 0.4s ease-in-out;
}

